\(x^4-30x^2+31x-30\)
\(=x^4+x-30x^2+30x-30\)
\(=x\left(x^3+1\right)-30\left(x^2-x+1\right)\)
\(=x\left(x+1\right)\left(x^2-x+1\right)-30\left(x^2-x+1\right)\)
\(=\left(x^2+x\right)\left(x^2-x+1\right)-30\left(x^2-x+1\right)\)
\(=\left(x^2-x+1\right)\left(x^2+x-30\right)\)
\(x^4-30x^2+31x-30\)
\(=x^4-5x^3+5x^3-25x^2-5x^2+25x+6x-30\)
\(=x^3\left(x-5\right)+5x^2\left(x-5\right)-5x\left(x-5\right)+6\left(x-5\right)\)
\(=\left(x-5\right)\left(x^3+5x^2-5x+6\right)\)
\(=\left(x-5\right)\left(x^3+6x^2-x^2-6x+x+6\right)\)
\(=\left(x-5\right)\left[x^2\left(x+6\right)-x\left(x+6\right)+\left(x+6\right)\right]\)
\(=\left(x-5\right)\left(x+6\right)\left(x^2-x+1\right)\)
x4−30x2+31x−30
=x4+x−30x2+30x−30
=x(x3+1)−30(x2−x+1)
=x(x+1)(x2−x+1)−30(x2−x+1)
=(x2+x)(x2−x+1)−30(x2−x+1)
=(x2−x+1)(x2+x−30)