Newton Raphson Method or Newton Method is a powerful technique for solving equations numerically. It is most commonly used for approximation of the roots of the real-valued functions. Newton Rapson Method was developed by Isaac Newton and Joseph Raphson, hence the name Newton Rapson Method.

Newton Raphson Method involves iteratively refining an initial guess to converge it toward the desired root. However, the method is not efficient to calculate the roots of the polynomials or equations with higher degrees but in the case of small-degree equations, this method yields very quick results. In this article, we will learn about Newton Raphson Method and the steps to calculate the roots using this method as well.

## What is Newton Raphson Method?

The Newton-Raphson method which is also known as Newton’s method, is an iterative numerical method used to find the roots of a real-valued function. This formula is named after Sir Isaac Newton and Joseph Raphson, as they independently contributed to its development. Newton Raphson Method or Newton’s Method is an algorithm to approximate the roots of zeros of the real-valued functions, using guess for the first iteration (x_{0}) and then approximating the next iteration(x_{1}) which is close to roots, using the following formula.

x_{1 }= x_{0 }– f(x_{0})/f'(x_{0})where,

x_{0}_{ }is the initial value of x,f(x_{0}is the value of the equation at initial value, and)f'(x_{0}is the value of the first order derivative of the equation or function at the initial value x)_{0.}

** Note: **f'(x

_{0}) should not be zero else the fraction part of the formula will change to infinity which means f(x) should not be a constant function.

## Newton Raphson Method Formula

In the general form, the Newton-Raphson method formula is written as follows:

x_{n }= x_{n-1 }– f(x_{n-1})/f'(x_{n-1})Where,

x_{n-1}_{ }is the estimated (n-1)^{th}root of the function,f(x_{n-1}is the value of the equation at (n-1))^{th}estimated root, andf'(x_{n-1}is the value of the first order derivative of the equation or function at x)_{n-1}.

## Newton Raphson Method Calculation

Assume the equation or functions whose roots are to be calculated as f(x) = 0.

In order to prove the validity of Newton Raphson method following steps are followed:

Draw a graph of f(x) for different values of x as shown below:Step 1:

A tangent is drawn to f(x) at xStep 2:_{0}. This is the initial value.

This tangent will intersect the X- axis at some fixed point (xStep 3:_{1},0) if the first derivative of f(x) is not zero i.e.f'(x_{0}) ≠ 0.

As this method assumes iteration of roots, this xStep 4:_{1 }is considered to be the next approximation of the root.

Now steps 2 to 4 are repeated until we reach the actual root xStep 5:^{*}.

Now we know that the slope-intercept equation of any line is represented as y = mx + c,

Where ** m** is the slope of the line and

**is the x-intercept of the line.**

**c**Using the same formula we, get

y = f(x_{0}) + f'(x_{0}) (x − x_{0})

Here f(x_{0}) represents the c and f'(x_{0}) represents the slope of the tangent m. As this equation holds true for every value of x, it must hold true for x_{1}. Thus, substituting x with x_{1}, and equating the equation to zero as we need to calculate the roots, we get:

0 = f(x_{0}) + f'(x_{0}) (x_{1 }− x_{0})

x_{1 }= x_{0 }– f(x_{0})/f'(x_{0})Which is the Newton Raphson method formula.

Thus, Newton Raphson’s method was mathematically proved and accepted to be valid.

### Convergence of Newton Raphson Method

The Newton-Raphson method tends to converge if the following condition holds true:

|f(x).f”(x)| < |f'(x)|

^{2}

It means that the method converges when the modulus of the product of the value of the function at x and the second derivative of a function at x is lesser than the square of the modulo of the first derivative of the function at x. The Newton-Raphson Method has a convergence of order 2 which means it has a quadratic convergence.

**Note:**

Newton Raphson’s method is not valid if the first derivative of the function is 0 which means f'(x) = 0. It is only possible when the given function is a constant function.

## Newton Raphson Method Example

Let’s consider the following example to learn more about the process of finding the root of a real-valued function.

**Example: For the initial value x**_{0 }**= 3, approximate the root of f(x)=x**^{3}**+3x+1.**

**Solution:**

Given, x

_{0 }= 3 and f(x) = x^{3}+3x+1f'(x) = 3x

^{2}+3f'(x

_{0}) = 3(9) + 3 = 30f(x

_{0}) = f(3) = 27 + 3(3) + 1 = 37Using Newton Raphson method:

x

_{1}= x_{0}– f(x_{0})/f'(x_{0})= 3 – 37/30

= 1.767

## Solved Problems of Newton Raphson Method

**Problem 1: For the initial value x**_{0 }**= 1, approximate the root of f(x)=x**^{2}**−5x+1.**

**Solution:**

Given, x

_{0 }= 1 and f(x) = x^{2}-5x+1f'(x) = 2x-5

f'(x

_{0}) = 2 – 5 = -3f(x

_{0}) = f(1) = 1 – 5 + 1 = -3Using Newton Raphson method:

x

_{1}= x_{0}– f(x_{0})/f'(x_{0})⇒ x

_{1 }= 1 – (-3)/-3⇒ x

_{1 }= 1 -1⇒ x

_{1 }= 0

**Problem 2: For the initial value x**_{0 }**= 2, approximate the root of f(x)=x**^{3}**−6x+1.**

**Solution:**

Given, x

_{0 }= 2 and f(x) = x^{3}-6x+1f'(x) = 3x

^{2}– 6f'(x

_{0}) = 3(4) – 6 = 6f(x

_{0}) = f(2) = 8 – 12 + 1 = -3Using Newton Raphson method:

x

_{1}= x_{0}– f(x_{0})/f'(x_{0})⇒ x

_{1 }= 2 – (-3)/6⇒ x

_{1 }= 2 + 1/2⇒ x

_{1 }= 5/2 = 2.5

**Problem 3: For the initial value x**_{0 }**= 3, approximate the root of f(x)=x**^{2}**−3.**

**Solution:**

Given, x

_{0 }= 3 and f(x) = x^{2}-3f'(x) = 2x

f'(x

_{0}) = 6f(x

_{0}) = f(3) = 9 – 3 = 6Using Newton Raphson method:

x

_{1}= x_{0}– f(x_{0})/f'(x_{0})⇒ x

_{1 }= 3 – 6/6⇒ x

_{1 }= 2

**Problem 4: Find the root of the equation f(x) = x**^{3}** – 3 = 0, if the initial value is 2.**

**Solution:**

Given x

_{0}= 2 and f(x) = x^{3}– 3f'(x) = 3x

^{2}f'(x

_{0}= 2) = 3 × 4 = 12f(x

_{0}) = 8 – 3 = 5Using Newton Raphson method:

x

_{1}= x_{0}– f(x_{0})/f'(x_{0})⇒ x

_{1}= 2 – 5/12⇒ x

_{1}= 1.583Using Newton Raphson method again:

x

_{2}= 1.4544x

_{3}= 1.4424x

_{4}= 1.4422Therefore, the root of the equation is approximately x = 1.442.

**Problem 5: Find the root of the equation f(x) = x**^{3}** – 5x + 3 = 0, if the initial value is 3.**

**Solution:**

Given x

_{0}= 3 and f(x) = x^{3}– 5x + 3 = 0f'(x) = 3x

^{2}– 5f'(x

_{0}= 3) = 3 × 9 – 5 = 22f(x

_{0}= 3) = 27 – 15 + 3 = 15Using Newton Raphson method:

x

_{1}= x_{0}– f(x_{0})/f'(x_{0})⇒ x

_{1}= 3 – 15/22⇒ x

_{1}= 2.3181Using Newton Raphson method again:

x

_{2}= 1.9705x

_{3}= 1.8504x

_{4}= 1.8345x

_{5}= 1.8342Therefore, the root of the equation is approximately x = 1.834.

## FAQs of Newton Raphson Method

### Q1: Define Newton Raphson Method.

**Answer:**

Newton Raphson Method is a numerical method to approximate the roots of any given real-valued function. In this method, we used various iterations to approximate the roots, and the higher the number of iterations the less error in the value of the calculated root.

### Q2: What is the Advantage of Newton Raphson Method?

**Answer:**

Newton Raphson method has an advantage that it allows us to guess the roots of an equation with a small degree very efficiently and quickly.

### Q3: What is the Disadvantage of Newton Raphson Method?

**Answer:**

The disadvantage of Newton Raphson method is that it tends to become very complex when the degree of the polynomial becomes very large.

### Q4: State any real-life application of Newton Raphson’s Method.

**Answer:**

Newton Raphson method is used to analyse the flow of water in water distribution networks in real life.

### Q5: Which theory is the Newton-Raphson Method based upon?

**Answer:**

Newton Raphson method is based upon the theory of calculus and tangent to a curve.