If a + b = 10 and ab = 16, find the value of a2−ab+b2 and a2+ab+b2.
Show that if A and B are square matrices such that AB = BA, then (A+B)2=A2+2AB+B2.