a) Clearly, if X=αA+α′I2, then X and A commute. Conversely, let A=(a1a1′a2a2′) and X=(x1x1′x2x2′). The equality AX=XA implies
a2x1′=a1′x2,(1)
(a1−a2′)x2+a2(x2′−x1)=0,(2)
(a1−a2′)x1′+a1′(x2′−x1)=0.(3)
Since A=aI2, a∈C, either one of a2,a1′ is non-zero, or a2=a1′=0 and a1=a2′.
In the first case, if, for instance, a2=0, we obtain
X=a2x2A+(x1−a2a1x2)I2,
while in the second case
X=a1−a2′x1−x2′A+a1−a2′a1x2′−a2′x1I2.
b) We prove that C=γI2, for some complex number γ, hence C commutes with all matrices in M2(C). Suppose the contrary. Since A and C commute, there exist α and α′, such that A=αC+α′I2. Similarly, there exist β and β′, such that B=βC+β′I2, therefore AB=BA, a contradiction.