Introduction

Dylan
I’m so tired of having to solve roots by hand. It’s a real drag.
Julia
Yeah, some of these roots are rough. I wish there was a better way!
James
There’s always a better way!
Dylan and Julia
Show us!!!
James
Maybe you’ve heard of Sir Isaac Newton? He got tired of solving roots too, and made a whole method to approximate them!
Dylan
Wow! I’m just like him except worse in every way!

Newton’s Method is a system of approximating roots of polynomials by using tangent lines from an initial estimate. While this method is extremely accurate when used properly, it is possible to have a very inaccurate estimate when used improperly.

Answer all questions to at least three decimal places where possible!

Guided Example

In the following figure we have an initial guess , then we have the blue tangent line with respect to the point

PIC

What is the slope, in general, for the tangent line of at ?

What is the equation of the tangent line for the point ?

How would you use the tangent line you found above to estimate the value of the root?

Solve for to find a point near the actual root. Solve for to find a point near the actual root. Take the derivative of the tangent line to find where the second derivative is zero. Evaluate the tangent line at a -value which was the initial estimate.

On Your Own

Consider the function .

Find the equation of the tangent line at an initial estimate of .

Plot the tangent line and function on the same axes. Does the x-intercept of the tangent line seem more or less accurate than your initial estimate?

More Accurate Less Accurate

What is the x-intercept of the tangent line?

Continue this process until the x-intercepts change by less than .0001 on each iteration. How many iterations did this take?

Consider the function . Why does have only one solution? Explain with the help of a graph.

Fortunately, with the use of Sage Cells, we don’t have to do all of this by hand! The following Sage Cell contains the commands through which we can perform Newton’s Method, along with comments explaining just what it is that Sage is doing.

The only way to run Newton’s Method like this will be to take the first few lines of code and put them in each cell after this - the method is not defined as a function in Sage.

Using from before, use an initial guess of 2. After 5 iterations, what result do you get?

Why is it important to use caution with your first guess when doing Newton’s Method by hand? It might help you to understand why if you plot both the function and the tangent lines from Newton’s method in the following Desmos graph.

Consider the function .

Use an initial guess of to estimate a root of . What did you get after the fifth iteration?

Look at the graph, and attempt to estimate another root using . Did you find the root to the right or the left of this point?

Left Right

Increment the guess by and use Newton’s method until you find the root on the right. What value of is the first to work?

In Summary

Julia
Wow! Newton’s Method is awesome!
Dylan
Yeah, it’s way more accurate than just guessing! If you’re too far off on that initial guess though...
James
Things can go downhill quickly. While Newton’s Method can be handy, it’s important to remember how important an accurate initial estimate is!
Dylan and Julia
Thanks James!