6)
a)(x-1)(x+2)=x2+2x-x-2=x2-x-2
b) (x-2)(x2+2x+4)=x3-8(HĐT số 7)
c)(x+y)(x-y)=x2-y2(HĐT số 3)
d)(x-2y)(x2+2xy+4y2)=x3-8y3(HĐT số 7)
7)
(x-2)(x+3)-(x+1)(x-4)
=x2+3x-2x-6-(x2-4x+x-4)
= x2+3x-2x-6-x2+4x-x+4=4x-2
Bài 9:
Ta có: \(\left(x-y\right)\left(x^2+xy+y^2\right)-\left(x+y\right)\left(x^2-y^2\right)\)
\(=x^3-y^3-\left(x^3-xy^2+x^2y-y^3\right)\)
\(=x^3-y^3-x^3+xy^2-x^2y+y^3\)
\(=xy^2-x^2y\)
\(=xy\left(y-x\right)\)
\(=\left(-2\right)\cdot\left(-1\right)\cdot\left(-1+2\right)\)
=2