Arithly

← All maths topics

Solve cubic equations step by step

A cubic equation contains an x³ term and can have up to three roots. There is no need for a cubic formula at school level: find one root by testing, divide the cubic by the matching factor, and what remains is an ordinary quadratic.

Any whole-number root must be a factor of the constant term, so the list of candidates to test is short. The division is done with synthetic division — a compact table that uses only the coefficients.

Think first

Before reading the solution, try to answer these — they are the hints Arithly itself gives:

Worked example

Solve x³ − 6x² + 11x − 6 = 0

  1. Collect everything on the left-hand side: x³ - 6x² + 11x - 6 = 0.
  2. The rational root theorem says any fraction root is ±(a factor of 6) ÷ (a factor of 1): ±1, ±2, ±3, ±6.
  3. Try x = 1 first: (1)³ - 6(1)² + 11(1) - 6 = 0 ✓ — so (x − 1) is a factor.
  4. Now divide the cubic by (x − 1) using synthetic division — here is the division itself, step by step:
  5. Write the coefficients in a row: 1, -6, 11, -6. Divide by the root 1.
  6. Bring down the first coefficient: 1.
  7. Multiply by the root: 1 × 1 = 1; add to the next coefficient: -6 + 1 = -5.
  8. Multiply by the root: 1 × -5 = -5; add to the next coefficient: 11 + (-5) = 6.
  9. Multiply by the root: 1 × 6 = 6; add to the last coefficient: -6 + 6 = 0 — the remainder is 0 ✓.
  10. The bottom row 1, -5, 6 gives the quotient x² - 5x + 6 (the powers drop by one: x², x, constant), so x³ - 6x² + 11x - 6 = (x − 1)(x² - 5x + 6).
  11. Find two numbers that multiply to 6 and add to -5: -2 and -3 (check: -2 × (-3) = 6 and -2 + (-3) = -5).
  12. So x² - 5x + 6 = (x − 2)(x − 3), giving x = 2 or x = 3.
  13. Altogether: x = 1 or x = 2 or x = 3.

Answer: x = 1 or x = 2 or x = 3

Practice

Try these yourself. Each one opens in Arithly with the question already filled in — solve it there and check your working:

More topics: all maths topics · Next topic: Simultaneous equations: two equations, two unknowns

© 2026 Arithly. Content: CC BY-NC 4.0 · Code & solver: all rights reserved.