If A and B are two matrices such that AB=B and BA=A, then A2+B2 equals
Show that if A and B are square matrices such that AB = BA, then (A+B)2=A2+2AB+B2.