Which of the following is correct?
a) (a−b)2=a2+2ab−b2
b) (a−b)2=a2−2ab+b2
c) (a−b)2=a2−b2
d) (a+b)2=a2+2ab−b2
Consider (a−b)2=(a−b)(a−b)
=a(a−b)−b(a−b)
=(a×a)−(a×b)−(b×a)+(b×b)
=a2−ab−ab+b2
=a2−2ab+b2 [because a.b=b.a]
and also (a+b)2=(a+b)(a+b)
=(a×a)+(a×b)+(b×a)+(b×b)
=a2+2ab+b2
Hence, the only correct option is (b).