If a2+b2=10 and ab=3, then find a−b.
Formula (a−b)2=a2+b2−2abGiven, a2+b2=10 and ab=3So, (a−b)2=a2+b2−2ab=10−2×3=10−6=4
If a + b = 10 and ab = 16, find the value of a2−ab+b2 and a2+ab+b2.