If A and B are square matrices of order $n \times n$, then $(A-B)^2$ is equal to:
A. $A^2-A B-B A+B^2$
B. $A^2-2 A B+B^2$
C. $A^2-2 B A+B A$
D. $A^2-B^2$
E. $A^2+2 A B+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
$(A-B)^2=(A-B)(A-B)$
$=A^2-AB-BA-B^2$