Stuck on this? Solve it with AI
Algebra · real student question

Factor x^3 - 5x^2 + 3x + 2, or show that it does not factor over the rationals, and find its real roots.

Question

Factor

x3−5x2+3x+2x^3-5x^2+3x+2

over the rationals, or show that it cannot be factored, and locate its real roots.

Step-by-step solution

  1. List the candidate rational roots. By the Rational Root Theorem, a rational root pq\tfrac{p}{q} in lowest terms has pp dividing the constant 22 and qq dividing the leading coefficient 11. So q=±1q=\pm1 and the only candidates are

    x=±1, ±2x=\pm1,\ \pm2

  2. Test every candidate.

    f(1)=1−5+3+2=1,f(−1)=−1−5−3+2=−7f(1)=1-5+3+2=1,\qquad f(-1)=-1-5-3+2=-7

    f(2)=8−20+6+2=−4,f(−2)=−8−20−6+2=−32f(2)=8-20+6+2=-4,\qquad f(-2)=-8-20-6+2=-32

    None is zero, so there is no rational root and hence no linear factor with rational coefficients. A cubic factors over Q\mathbb{Q} only if it has a rational root (any factorisation must include a linear piece), so this cubic is irreducible over Q\mathbb{Q}.

  3. Do not confuse irreducible with rootless. A real cubic always has at least one real root, because it runs from −∞-\infty to +∞+\infty continuously. "Does not factor over the rationals" says nothing about real roots — it only says none of them is a fraction.

  4. Count the real roots with sign changes. Evaluate at a few points: f(−1)=−7f(-1)=-7, f(0)=+2f(0)=+2, f(1)=+1f(1)=+1, f(2)=−4f(2)=-4, f(5)=+17f(5)=+17. The sign changes between −1-1 and 00, between 11 and 22, and between 22 and 55 — three sign changes, so all three roots are real and irrational.

  5. Locate them numerically. Bisecting on a fine grid over [−10,10][-10,10]:

    x1≈−0.3914,x2≈1.2271,x3≈4.1642x_1\approx-0.3914,\qquad x_2\approx1.2271,\qquad x_3\approx4.1642

    So the real factorisation is (x+0.3914)(x−1.2271)(x−4.1642)(x+0.3914)(x-1.2271)(x-4.1642) to four decimals — perfectly valid over R\mathbb{R}, just not over Q\mathbb{Q}.

  6. Check with Vieta's formulas. The roots should sum to −b/a=5-b/a=5: −0.3914+1.2271+4.1642=4.9999-0.3914+1.2271+4.1642=4.9999 ✓, and their product should be −d/a=−2-d/a=-2: (−0.3914)(1.2271)(4.1642)=−2.0000(-0.3914)(1.2271)(4.1642)=-2.0000 ✓. Both agree to grid accuracy, confirming that three real roots have been found and none was missed.

Answer

Irreducible over Q (no rational root); three real irrational roots x≈−0.3914, 1.2271, 4.1642\text{Irreducible over }\mathbb{Q}\text{ (no rational root); three real irrational roots } x\approx-0.3914,\ 1.2271,\ 4.1642

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