Solve for :
Read the scale off the coefficients before touching a solver. The coefficients drop by roughly two decades per degree (, , ), which is the fingerprint of roots near to . The constant term is a further seven decades smaller, so one root must be far tinier than the other two.
Rescale to a well-conditioned cubic. Substituting multiplies the coefficient by :
Now every coefficient sits within a couple of orders of magnitude, so a root finder loses far less precision to cancellation.
Locate the two large roots by sign changes. With : , , , . So roots lie in and ; bisecting to machine precision gives and .
Get the tiny root from the constant term. Near the cubic and quadratic terms are negligible, so gives , refined by Newton to . Dividing all three back by :
Check with Vieta's formulas, computed not assumed. Sum of roots should be ; the three roots add to ✓. Product should be ; the roots multiply to ✓. A widely circulated answer of and fails this test — those values leave residuals near instead of .
Need to solve a different problem like this? Open the solver →