๐Ÿ“ˆ Animated numerical methods ยท Higher-degree equations

Solving equations when exact formulas get ugly

For quadratic equations we have a clean formula. For cubic and quartic there are formulas, but they are often unpleasant. For degree 5 and above, there is no general formula using radicals. Numerical methods instead search for roots step by step.

Tip: try both methods on the same equation. Newton jumps using a tangent line; Regula Falsi stays inside a sign-changing bracket.

The big idea

1. Turn the equation into a root problem

To solve a higher-degree equation, rewrite it as:

f(x) = 0

Example:

xยณ โˆ’ x โˆ’ 2 = 0

The solution is where the graph crosses the x-axis.

2. Use geometry to improve the guess

Numerical methods repeatedly produce better approximations:

xโ‚€ โ†’ xโ‚ โ†’ xโ‚‚ โ†’ xโ‚ƒ โ†’ ... โ†’ root

The goal is to make f(x) very close to zero.

Newton's Method

Newton's method starts from one guess xโ‚™. It draws the tangent line to the curve at that point. Where the tangent crosses the x-axis becomes the next guess.

xโ‚™โ‚Šโ‚ = xโ‚™ โˆ’ f(xโ‚™) / fโ€ฒ(xโ‚™)
Intuition: โ€œIf the curve near my guess behaves like this tangent line, where would it hit zero?โ€

Strengths and weaknesses

Very fast near the root Needs derivative Can diverge from bad guesses

Newton is often excellent when your initial guess is close enough and the derivative is not near zero.

Regula Falsi, or False Position Method

Regula Falsi starts with two points a and b such that the function changes sign:

f(a) ยท f(b) < 0

That guarantees a root between them, assuming the function is continuous.

It draws a secant line through (a,f(a)) and (b,f(b)). The x-intercept of that line becomes the new candidate:

c = (a f(b) โˆ’ b f(a)) / (f(b) โˆ’ f(a))
Intuition: โ€œUse the straight line between both sides of the root, then keep the side where the sign still changes.โ€

Newton vs Regula Falsi

MethodNeedsGeometric ideaTypical behavior
NewtonOne starting guess + derivativeTangent lineVery fast, but can fail
Regula FalsiTwo points with opposite signsSecant line inside bracketSafer, often slower