Solve
How many real roots does it have, and what are they?
Rule out rational roots. Candidates are with and . Testing the plausible small ones with :
None vanishes, and neither does any other candidate, so the cubic is irreducible over the rationals and cannot be factored by inspection.
Count the real roots from the discriminant. For the discriminant is
Because there is exactly one real root and a conjugate pair of complex ones. That settles the counting question before any numerical work — a sweep of over indeed shows a single sign change, near .
Bracket and bisect the real root. From and the root lies in . Halving repeatedly and keeping the sign-changing half converges to
Check: ✓. A rougher quote such as leaves , so the extra digits matter if the root feeds into later work.
Get the exact value with Cardano. Depressing the cubic by gives with
Since and , Cardano gives
Verify the closed form at high precision. Evaluating that expression with 60-digit arithmetic returns
and substituting it back gives ✓. Note the second cube root is of the tiny number , so evaluating this form in ordinary floating point loses accuracy — the bisection value is the safer one to quote in practice.
Need to solve a different problem like this? Open the solver →