If AB = A and BA = B, then B2 is equal to
B
A
1
0
Since BA = B
∴(BA)B = BB = B2
⇒B(AB) = B2⇒BA=B2 ∵AB=A
⇒B=B2 (∵BA = B)