Your Equation

Library / Foundations: Maths / FMA-29

Foundations: Maths

Newton–Raphson step

Improved root estimate from the current guess.

Ref
FMA-29
Rev
v1
Field
Foundations: Maths
Result
xₙ₊₁

Approximates a root of f(x) = 0 from a starting guess. A zero derivative prevents a step and convergence depends on the starting value.

Draw the tangent to the curve at the current guess; where it meets the axis is a better guess for the root.

Calculator

Solve for
0.55
0.54
18
  • Step size f/f′0.5
  • Size of f at the guess |f|2

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

Next estimate () current value 1.5
xnCurrent guessKey driver
04.5
f′(xn)Gradient
01.75
f(xn)Function value
11.88
  • Near a simple root the number of correct digits roughly doubles each step.
  • Poor starting guesses or zero gradients can send the iteration away from the root.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing ()Local stepChange in result
xn Current guess0.5 to 5 04.54.5+10%+13.3 %
f′(xn) Gradient1 to 8 01.751.75+10%+3.03 %
f(xn) Function value0.5 to 4 11.8750.875+10%−3.33 %

Sweep of Gradient

GradientNext estimate
10
1.8750.9333
2.751.273
3.6251.448
4.51.556
5.3751.628
6.251.68
7.1251.719
81.75

Sweep one variable

Next estimate ()Hover, touch, or use the arrow keys on the chart
00.511.5 1357 Gradient now 1.5

Variables and how each one contributes

xₙ₊₁

Next estimate

Result ·

What the equation gives you. Everything else feeds it.

xn

Current guess

· typical 0.5 to 5

The current estimate of the root. Moves the next estimate one-for-one.

f(xn)

Function value

· typical 0.5 to 4

Value of f at the current guess. A larger value means a bigger correction.

f′(xn)

Gradient

· typical 1 to 8

Gradient of f at the current guess. A steep gradient means a small step.

Worked example with the values above

  1. Step: f/f′ = 2 / 4 = 0.5.
  2. Subtract from the current guess: 2 − 0.5.
  3. xn+1 = 1.5.

Assumptions and limits

  • f is differentiable near the root.
  • The starting guess is close enough to converge.

Common mistakes

  • Dividing by a zero gradient.
  • Adding instead of subtracting the step.

Statistics and uncertainty

Rounding is fine because each step corrects earlier errors; the final accuracy is limited by how accurately f can be evaluated.

Where it is used

  • Solving equations that cannot be rearranged, such as transcendental design equations.
  • Computer root-finding routines.

Maths you need

  • Differentiation: gradient of f
  • Tangent lines: straight-line approximation

Related formulas

Practise this formula