We have A=(12−1α), B=(β110).
Part 1: Finding α1 from (A+B)2=A2+(2222)
Expand (A+B)2=A2+AB+BA+B2.
So the condition becomes AB+BA+B2=(2222).
AB=(12−1α)(β110)=(β−12β+α12)
BA=(β110)(12−1α)=(β+21−β+α−1)
B2=(β110)(β110)=(β2+1ββ1)
AB+BA+B2=((β−1)+(β+2)+(β2+1)(2β+α)+1+β1+(−β+α)+β2+(−1)+1)
=(β2+2β+23β+α+1α+12)
From position (1,2): α+1=2⟹α1=1.
From position (1,1): β2+2β+2=2⟹β2+2β=0⟹β(β+2)=0.
So β=0 or β=−2.
From position (2,1): 3β+α1+1=2⟹3β+2=2⟹β=0.
Therefore α1=1 (with β=0).
Part 2: Finding α2 from (A+B)2=B2
(A+B)2=B2 means A2+AB+BA=O (the zero matrix).
A2=(12−1α)(12−1α)=(1−22+2α−1−α−2+α2)=(−12+2α−1−αα2−2)
=(−1+(β−1)+(β+2)(2+2α)+(2β+α)+1(−1−α)+1+(−β+α)(α2−2)+2+(−1))
=(2β3α+2β+3−βα2−1)
From (1,1): 2β=0⟹β=0.
From (1,2): −β=0⟹β=0. (Consistent.)
From (2,2): α2−1=0⟹α=1 or α=−1.
From (2,1): 3α+0+3=0⟹α=−1.
Therefore α2=−1.
∣α1−α2∣=∣1−(−1)∣=2.
The answer is 2.