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