Algebra · real student question

Factor x^3 - 3x^2 + 5x + 1 over the rationals, or show that it cannot be factored, and determine how many real roots it has.

Question

Factor

x33x2+5x+1x^3-3x^2+5x+1

over the rationals, or show that it cannot be factored, and determine how many real roots it has.

Step-by-step solution

  1. List and test the candidate rational roots. The constant term is 11 and the leading coefficient is 11, so the only candidates are x=±1x=\pm1:

    f(1)=13+5+1=4,f(1)=135+1=8f(1)=1-3+5+1=4,\qquad f(-1)=-1-3-5+1=-8

    Neither is zero. With no rational root there is no rational linear factor, and since any factorisation of a cubic must contain a linear factor, the polynomial is irreducible over Q\mathbb{Q}.

  2. Differentiate to study the shape.

    f(x)=3x26x+5f'(x)=3x^2-6x+5

  3. Show the derivative is never zero. Its discriminant is

    (6)24(3)(5)=3660=24<0(-6)^2-4(3)(5)=36-60=-24<0

    so ff' has no real roots, and since its leading coefficient 33 is positive, f(x)>0f'(x)>0 for every real xx. Completing the square makes it plain: 3x26x+5=3(x1)2+22>03x^2-6x+5=3(x-1)^2+2\ge2>0.

  4. Conclude there is exactly one real root. A strictly increasing function crosses any horizontal line at most once, and a cubic must cross y=0y=0 at least once. So ff has exactly one real root — and therefore two complex conjugate roots. Note the contrast with x35x2+3x+2x^3-5x^2+3x+2, which is also irreducible over Q\mathbb{Q} but has three real roots: irreducibility says nothing about how many roots are real.

  5. Locate the real root. Since f(1)=8<0f(-1)=-8<0 and f(0)=1>0f(0)=1>0, the root lies in (1,0)(-1,0). Bisecting on a fine grid gives

    x0.1795x\approx-0.1795

    Check: f(0.1795)=0.00579+(0.09666)+(0.8975)+1=0.0000f(-0.1795)=-0.00579+(-0.09666)+(-0.8975)+1=0.0000 to four decimals ✓.

  6. Verify both claims numerically. Scanning 200,001200{,}001 points over [10,10][-10,10] finds exactly one sign change ✓, and f(x)=3x26x+5f'(x)=3x^2-6x+5 evaluated at 20002000 points from 10-10 to 1010 is positive at every one, with minimum value 22 at x=1x=1 ✓.

Answer

Irreducible over Q; f(x)=3(x1)2+2>0 so exactly one real root, x0.1795\text{Irreducible over }\mathbb{Q};\ f'(x)=3(x-1)^2+2>0\ \text{so exactly one real root, } x\approx-0.1795

Need to solve a different problem like this? Open the solver →