\(\left(a+b\right)^2=\left(a+b\right)\left(a+b\right)=a\times\left(a+b\right)+b\times\left(a+b\right)=a^2+ab+ab+b^2\)
\(=a^2+2ab+b^2\)
\(\Rightarrow\left(a+b\right)^2=a^2+ab+b^2\)
\(\left(a-b\right)^2=\left(a-b\right)\left(a-b\right)=a\left(a-b\right)-b\left(a-b\right)=a^2-ab-ab+b^2\)
\(=a^2-2ab+b^2\)
\(\left(a-b\right)^2=a^2-2ab+b^2\)
(a+b)2=(a+b).(a+b)=a.(a+b)+b.(a+b) =a.a+a.b+a.b+b.b mà a.a=a2;a.b+a.b =2.a.b;b.b=b2suy ra (a+b)2=a2+2.a.b+b2 (đpcm).(a-b)2=(a-b)(a-b)=[a(a-b)]-[b(a-b)] =(a.a-a.b)-(a.b-b.b)=a.a-a.b-a.b+b.b =a.a-(a.b+a.b)+b.b mà a.a=a2; a.b+a.b=2.a.b ; b.b=b2 suy ra : (a-b)2 = a2-2.a.b+b2 (đpcm)