A and B are two matrices such that AB = A and BA = B then what is B^2 equal to

A and B are two matrices such that AB = A and BA = B then what is B2 equal to?

  1. B
  2. A
  3. I
  4. -I

Solution

AB = A and BA = B

B2 = B.B

= (BA).B

= B.(AB)

= B.A

= B

The correct option is A.