Solve for :
Use the lopsided coefficients to predict the root pattern. With the sum of the roots is and their product is . Those two facts cannot both hold unless one root is around and the other two are within a few hundredths of zero - so treat the two regimes separately instead of reaching for the general cubic formula.
Find the two small roots by discarding . If is only a few hundredths then is of order , utterly negligible beside . Dropping it leaves the quadratic whose discriminant is The quadratic formula then gives
Refine those two with one Newton step. The discarded term shifts each root in the seventh decimal place, and applying Newton's method to the full cubic converges to Compared with the quadratic estimates the corrections are only and , which is exactly what "drop " promised: the neglected term was of size against a term of size .
Get the large root from the root sum, not from the cubic formula. Since the three roots must add to , Substituting this value into returns zero to twelve significant figures.
Verify with both Vieta relations. The three roots , and sum to exactly and multiply to , matching as required. The product check is the one that matters here: a pair of small roots can be wrong and still satisfy the sum, because the large root simply absorbs the difference - only the product exposes the error.
State the solution set. All three roots are real, consistent with a cubic that crosses the axis once just below zero, once just above, and once far out at .
Need to solve a different problem like this? Open the solver →