Bài 1:
\(a.7x^2y+21xy-14x\\ =7x\left(xy+3y-2\right)\)
\(b.x^2-xy+5\left(x-y\right)\\ =x\left(x-y\right)+5\left(x-y\right)\\ =\left(x-y\right)\left(x+5\right)\)
Bài 2:
\(a.x\left(3-x\right)+\left(x+1\right)\left(x-1\right)\\ =3x-x^2+\left(x^2-1\right)\\ =3x-x^2+x^2-1\\ =3x-1\)
\(b.\left(x-1\right)\left(x^2+x+1\right)+10\\ =x^3-1+10\\ =x^3+9\)
\(c.\left(5x^3y^2-20x^4y+15x^2y^2\right):5x^2y\\ =xy-4x^2+3y\)
\(d.\frac{2x-4}{x-1}+\frac{2x+2}{x^2-1}\\ =\frac{\left(2x-4\right)\left(x+1\right)}{\left(x-1\right)\left(x+1\right)}+\frac{2x+2}{\left(x-1\right)\left(x+1\right)}\\ =\left(2x-4\right)\left(x+1\right)+\left(2x+2\right)\\ =2x^2+2x-4x-4+2x+2\\ =2x^2-2\)