Many problems expressed in mathematics are today solved using numeric methods. This means that we approximate the result using an algorithm. Theoretical mathematics suggests the methods that will work and proves the usefulness of the methods.
In this section we will look at two, simple numeric methods which use the concept of derivatives.
Subsection3.5.1Linearization
From the section on the nature of differentiable curves we know that if a curve is differentiable on an interval, that the curve looks like a line if zoomed in sufficiently. This is because the line tangent to the curve at a point matches the curve in direction at that point. That is for a moment the line and the curve are headed the same way.This suggests that we can approximate a function using a tangent line.
Activity3.5.1.Calculating a Square Root.
The goal of this activity is to determine how to approximate a square root of numbers that are not perfect squares. Note the graph of the square root function and its tangent lines at \(x=1\) and at \(x=4\) in Figure 3.5.1.
(a)
Calculate the equation of the line tangent to the square root at \(x=1\text{.}\)
(b)
Evaluate this tangent line at \(x=2\text{.}\)
(c)
Calculate the equation of the line tangent to the square root at \(x=4\text{.}\)
(d)
Evaluate this tangent line at \(x=2\text{.}\)
(e)
Using an approximation of \(\sqrt{2}\) from a device determine which approximation is better.
(f)
Why does this happen?
(g)
Which tangent line would be better for approximating \(\sqrt{3}\text{?}\)
Subsection3.5.2Newton’s Method
We often need to approximate solutions to equations. Here we will use the line like nature of differentiable curves to approximate the roots to functions. Recall the a root of a function \(f(x)\) is a value \(x_o\) such that \(f(x_0)=0\text{.}\)
Activity3.5.2.Chutes and Ladders.
The goal of this activity is to demonstrate how tangent lines can be used to approximate roots of functions. This method is illustrated in Figure 3.5.2.
(a)
Note the tangent line to the curve at point \(A\) (\(x=-1.2\)). Imagine sliding along this tangent to the x-axis (the root of the tangent labeled Aapprox). Roughly how close is this to the actual root? Note we are asking about x values.
(b)
Imagine climbing down the line from Aapprox to \(A^\prime\text{.}\) This is the new approximation. Move the point \(B\) onto the point \(A^\prime\text{.}\) Note the lines will all move with it. To make it easier to see move point \(A\) somewhere else.
(c)
Imagine sliding along the tangent from point \(B\) to the x-axis (the root of the tangent line labeled Bapprox). Roughly how close is this to the actual root? Compare it to the first root approximation.
(d)
What could we do to obtain a better approximation?
Activity3.5.3.Calculating a Root.
The goal of this activity is to approximate a root using the method developed in Activity 3.5.2.
(a)
Use technology to find all three roots of \(f(x)\text{.}\)
(b)
Let \(f(x)=x^3+2x^2-x-1.\) Calculate \(f'(x)\text{.}\)
(c)
Find the equation of the tangent line at \(x_0=-\frac{12}{10}.\)
(d)
Find the intersection of this tangent line with the x-axis. Call this \(x_1\text{.}\)
(e)
How far is this from the root nearest \(x_0\) found using technology?
(f)
Find the equation of the tangent line at \(x_1.\)
(g)
Find the intersection of this tangent line with the x-axis. Call this \(x_2\text{.}\)
(h)
How far is this from the root nearest \(x_0\) found using technology?
(i)
How can we improve the approximation?
(j)
How do we know the approximation is improving?
(k)
How is the formula \(x_{i+1} = x_i-\frac{f(x_i)}{f'(x_i)}\) related to this process?