If AandBare square matrices of size n×n such that A2–B2=(A–B)(A+B), then which of the following will be always correct?
AB=BA
either AorB is a zero matrix
either AorB is an identity matrix
A=B
Explanation for the correct option:
Given:
A2–B2=(A–B)(A+B)=A2+AB–BA–B2⇒AB=BA
Hence, the correct answer is option A
Show that if A and B are square matrices such that AB = BA, then (A+B)2=A2+2AB+B2.