If A and B be square matrices of the same order such that AB=BA, then show that (A+B)2=A2+2AB+B2.
Show that if A and B are square matrices such that AB = BA, then (A+B)2=A2+2AB+B2.