Bài 5:
a) \(x^2+4x-5=x^2-x+5x-5=x\left(x-1\right)+5\left(x-1\right)=\left(x+5\right)\left(x-1\right)\)
b) \(2x^2-14x+20=2x^2-4x-10x+20=2x\left(x-2\right)-10x\left(x-2\right)=2\left(x-5\right)\left(x-2\right)\)
c) \(3x^2+8x+5=3x^2+3x+5x+5=3x\left(x+1\right)+5\left(x+1\right)=\left(3x+5\right)\left(x+1\right)\)
d) \(6x^2-xy-7y^2=6x^2+6xy-7xy-7y^2=6x\left(x+y\right)-7y\left(x+y\right)\)
\(=\left(6x-7y\right)\left(x+y\right)\)
Bài 4:
a) \(x^3-6x^2+12x-8=x^3-2.3.x^2+3.2^2.x-2^3=\left(x-2\right)^3\)
b) \(\left(x-1\right)^3+\left(3-x\right)^3=\left(x-1+3-x\right)\left[\left(x-1\right)^2-\left(x-1\right)\left(3-x\right)+\left(3-x\right)^2\right]\)
\(=2\left(x^2-2x+1+x^2-4x+3+x^2-6x+9\right)\)
\(=2\left(3x^2-12x+13\right)\)
c) \(x^3+y^3+z^3-3xyz=\left(x+y\right)^3-3xy\left(x+y\right)+z^3-3xyz\)
\(=\left(x+y+z\right)^3-3z\left(x+y\right)\left(x+y+z\right)-3xy\left(x+y+z\right)\)
\(=\left(x+y+z\right)\left[\left(x+y+z\right)^2-3xy-3yz-3zx\right]\)
\(=\left(x+y+z\right)\left(x^2+y^2+z^2-xy-yz-zx\right)\)