Access this content offline
Omniguides
Skip to the reading

Approximation and Second Derivatives

This original textbook reading covers part of the AP topic. Follow the AP course outline for complete topic instruction and practice.

This reading includes verified answer corrections and explicitly stated clarifications.

Interactive 3.3.1 Newton-Raphson Method

Interactive 3.3.1 Newton-Raphson Method
Read all original figure notes

3) Next iteration

Sadly, our first approximation is not very close. 2.75 is a bit farther away from 0 than we’d like. So we repeat step 2, drawing another tangent line (shown in red), checking the 0, and the computer will keep doing this until a better approximation is reached.

1) The initial guess

Often we have a general idea of a number close to the zero of our function of interest. In this case, we choose 1.

2) The Approximation

We draw a tangent line at our point of interest, (1, -1) and see that the tangent line crosses y=0 at the point x=1.5. How close is this to the zero of our function? Well, let’s plug in x=1.5 and find out.

Newton-Raphson Method

Often we are interested in finding the roots (or zeros) of a function, but we do not want to do all that work, so we ask a computer to do it for us. The problem? Computers cannot solve equations. So we have to provide them with the steps to come up with an approximate solution. Here is one method:

The Formula

Moving from the initial guess to the next x-value can be accomplished by using the formula:

x2=x1-f(x1)f′(x1)

A closer examination reveals that this is simply the original formula of a derivative/slope rearranged!

f′(x1)=0-f(x1)x2-x1

We use a 0 here because we are interested in the roots of the function, or when it crosses y = 0. This is our y2.

We can test to see that the formula is true by referring to the graph on the previous page. With an initial guess of 1, the slope of the tangent line,f′(x), at that point was equal to 2, and the function value at 1 was equal to -1. Plugging those values into the equation gives

x2=1--12

or 1.5, which as it turns out, is the point at which the blue tangent line crosses the x-axis! Let’s try our hand at some problems using the Newton-Raphson Method.

Example Problem 3.3.1

Compute two iterations to get a numerical approximation of the root of the function f(x)=x2-2 starting at x = 2.

Let’s write some values that will help solve this problem using the Newton-Raphson Method:

f′(x)=2xf(2)=2f′(2)=4​

 

x2=x1-f(x)f′(x)​
x2=2-24=1.5​
For the next iteration

x3=x2-f(x2)f′(x2)​
Again, we write down values that will help us calculate these quantities:

f(1.5) = 0.25 and f′(1.5) = 3, so the next step is x3=32−143=1712≈1.416667.

That completes the second iteration. The positive root is √2 ≈ 1.414214. Starting at 2, we reached 17/12 ≈ 1.416667, an error of about 0.00245 after two steps. Newton’s method is an approximation method; it does not guarantee success from every starting point.

Note: Notice that we reach the second iteration when x’s value is 3, or 1 greater than our desired number of iterations. This is why sometimes the Newton-Raphson formula is written as

x1=x0-f(x0)f′(x0) .

Limitations of the Newton-Raphson Method

The Newton Raphson Method often only works when the initial guess is close to the solution. Otherwise, we could run into a few inconveniences, as shown in Gallery 3.3.1. So remember, make a good initial guess.

Pop Quiz 3.3.1 All about Newton and Raphson

Question 1 of 5 · 0 correct

What is the Newton-Raphson Method

Select one answer.
Glossary and deeper reading · 3 refreshers

These editorial refreshers supplement the reading. Definitions and examples are added guidance; original source wording and recorded answers remain in their original context.

  • Derivative

    A derivative gives the instantaneous rate of change of a function with respect to its input. At a point, it is the finite limit of the difference quotient when that limit exists. For example, the derivative of x² is 2x, so the tangent slope at x=3 is 6. A derivative function collects those rates across the inputs where the function is differentiable.

    Read more: 2.2 · Derivative →

  • Tangent line

    A tangent line at a differentiable point passes through the point and has slope equal to the derivative there. It describes the function’s local linear behavior. For example, y=x² has tangent line y=4+4(x−2) at x=2. A tangent can cross the curve, so touching at exactly one point is not its general definition.

    Read more: 4.6 · Tangent line →

  • Function

    A mathematical function assigns exactly one output to each input in its domain. Inputs can share an output, but one input cannot have two different outputs. For example, f(x)=x² assigns the output 9 to both 3 and −3. Function notation names the rule and its input; f(3) means the output when the input is 3.

Search lessons, terms and problems