a) \(x^3+4x^2-21x\)
\(=x\left(x^2+4x-21\right)\)
\(=x\left(x^2-3x+7x-21\right)\)
\(=x\left[x\left(x-3\right)+7\left(x-3\right)\right]\)
\(=x\left(x-3\right)\left(x+7\right)\)
b) \(5x^3+6x^2+x\)
\(=x\left(5x^2+6x+1\right)\)
\(=x\left(5x^2+5x+x+1\right)\)
\(=x\left[5x\left(x+1\right)+\left(x+1\right)\right]\)
\(=x\left(x+1\right)\left(5x+1\right)\)
c) \(x^3-7x+6\)
\(=x^3+2x^2-3x-2x^2-4x+6\)
\(=x\left(x^2+2x-3\right)-2\left(x^2+2x-3\right)\)
\(=\left(x-2\right)\left(x^2+2x-3\right)\)
\(=\left(x-2\right)\left(x-1\right)\left(x+3\right)\)
d) \(3x^3+2x-5\)
\(=3x^3+3x^2+5x-3x^2-3x-5\)
\(=x\left(3x^2+3x+5\right)-\left(3x^2+3x+5\right)\)
\(=\left(x-1\right)\left(3x^2+3x+5\right)\)