If A and B are square matrices of order n × 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 the factors in each product:
\((A-B)^2 = (A-B)(A-B)\)
\(= A^2 - AB - BA + B^2\)
Matrix multiplication is not commutative: in general AB ≠ BA, so −AB − BA cannot be combined into −2AB.
So \((A-B)^2 = A^2 - AB - BA + B^2\) for all square matrices A and B of the same order, and AB ≠ BA in general.
Checking the statements
(A) \(A^2-AB-BA+B^2\) — Correct. This is the expansion itself.
(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 also needs AB = BA.
(D) \(A^2-B^2\) — Incorrect. The terms −AB − BA are missing.
(E) \(A^2+2AB+B^2\) — Incorrect. The middle terms have the wrong sign; even for AB = BA this is \((A+B)^2\).