Calculator Numerical methods
Newton-Raphson calculator
In one sentence
Runs Newton-Raphson steps for a polynomial.
Last checked Source: uk-dfe-alevel-maths-subject-content Source: Department for Education, GCE AS and A level subject content for mathematics (topics derived; every example and value computed here), uk-dfe-alevel-maths-subject-content www.gov.uk (opens in a new tab)
Key facts
Newton-Raphson calculator
- Formula ref
- xₙ₊₁ = xₙ − f(xₙ)/f′(xₙ)
- Topic
- Numerical methods
Inputs
- f, x₀, steps
Worked input
- Input f(x) = x³ − 3x − 5, x₀ = 2.5.
- x₁ = 2.30159, x₂ = 2.27929.
- x₃ = 2.27902.
- Apply the method to f(x) = x² − 5 from x₀ = 2, the standard way to find √5. The iterates are x₁ = 2.25000, x₂ = 2.23611 and x₃ = 2.23607. Each step replaces the guess by the point where the tangent crosses the axis, and for a square root the new guess is the average of the guess and the target divided by the guess, which is the ancient method of Heron. Check: √5 is 2.23607, and the error roughly squares at each step, which is the quadratic convergence of this method.
- Apply the method to f(x) = x³ − 3x − 1 from x₀ = 1, a starting point where f′(1) = 3 − 3 = 0. The formula needs a division by f′(x₀), so the tool reports that the step fails. A starting point where the derivative is zero makes the tangent horizontal, so it never meets the axis and the formula divides by zero, which is the classic way for the method to fail. Check: the tangent at x = 1 is horizontal, so it never meets the axis, which is why no next value x₁ exists.
- Apply the method to f(x) = x³ − 2 from x₀ = 1, to find the cube root of 2. The iterates are x₁ = 1.33333, x₂ = 1.26389 and x₃ = 1.25993. For a cube root the iteration converges just as quickly, the number of correct digits roughly doubling at every step, and the final check is to cube the result and compare it with the target. Check: 1.25992 cubed is 2.0000, so the third iterate is already correct to five decimal places.
How to use it
- Enter f and x₀.
- Stop when digits stop changing.
Newton-Raphson calculator in your study of A-level maths, set out with its source.
Related pages include Two-stage tree diagram calculator, Probability union and conditional calculator, Trapezium rule calculator and Coefficient of xᵏ in a binomial expansion.
Study brief
- In the study of mathematics, specifically for the Pearson Edexcel Level 3 Advanced GCE in Mathematics, students learn to solve equations approximately using numerical methods. When using the Newton-Raphson method, it is important to understand how the process works. A potential issue with this specific technique is that the method can fail when it is applied near points where the gradient is small. This occurs within the context of solving equations that cannot be solved analytically. While other iterative methods use a form such as xn + 1 = f(xn) to find a root for x = f(x), and can be visualized through staircase diagrams or cobweb diagrams, the Newton-Raphson method is a distinct numerical approach. Understanding the convergence of these methods through geometrical terms is a key part of the curriculum. For exams, students must be aware of how such methods can fail to provide a solution. These mathematical topics are part of the Specification – Issue 4 – February 2020.
Practise for free
Test yourself with exam-style questions and see why each answer is right or wrong.
More from Numerical methods
-
Change of sign checker
Tests whether a root lies in an interval.
-
Trapezium rule calculator
Estimates ∫ f with n strips.
-
Number of terms of an arithmetic series
Finds how many terms are needed to reach a target sum or term.
-
Optimisation calculator: open box
Finds the cut-out square that maximises the volume of an open box.
-
Parametric curve point and gradient
Evaluates x(t), y(t) and dy/dx at a chosen parameter value.
-
Partial fractions calculator
Splits (px + q)/((x − a)(x − b)) into A/(x − a) + B/(x − b).
-
Perpendicular bisector calculator
Finds the perpendicular bisector of the segment AB.
-
Perpendicular line calculator
Finds the line perpendicular to a given line through a given point.