If A and B are square matrices of order \(n \times n\), then \((A-B)^2\) is equal to:
A. \(A^2-AB-BA+B^2\)
B. \(A^2-2AB+B^2\)
C. \(A^2-2BA+B^2\)
D. \(A^2-B^2\)
E. \(A^2+2AB+B^2\)
Choose the correct answer from the options given below:
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → A only
Expanding with the distributive law, keeping the order of every product:
\((A-B)^2 = (A-B)(A-B)\)
\(= A^2-AB-BA+B^2\)
Matrix multiplication is not commutative: in general \(AB \ne BA\), so \(-AB-BA\) cannot be combined into \(-2AB\) or \(-2BA\).
So \((A-B)^2 = A^2-AB-BA+B^2\), and it equals \(A^2-2AB+B^2\) only when \(AB = BA\).
Checking the statements
(A) \(A^2-AB-BA+B^2\) — Correct. This is the expansion, true for all square matrices of the same order.
(B) \(A^2-2AB+B^2\) — Incorrect. It needs \(BA = AB\), which is not true in general.
(C) \(A^2-2BA+B^2\) — Incorrect. It needs \(AB = BA\), which is not true in general.
(D) \(A^2-B^2\) — Incorrect. The terms \(-AB-BA\) do not vanish in general.
(E) \(A^2+2AB+B^2\) — Incorrect. The middle terms have a minus sign: \(-AB-BA\).