You are about to erase your work on this activity. Are you sure you want to do this?
Updated Version Available
There is an updated version of this activity. If you update to the most recent version of this activity, then your current progress on this activity will be erased. Regardless, your record of completion will remain. How would you like to proceed?
Mathematical Expression Editor
We can approximate sufficiently differentiable functions by polynomials.
Previously, we have seen that if a function is differentiable on an open interval
containing a point \(x=c\), we can approximate the function near \(x=c\) by the tangent line at \(x=c\).
Visually, we recall that as we “zoom in" on the graph around \(x=c\), it becomes
less distinguishable from the graph of a line (which is the tangent line at
\(x=c\)).
When \(y\) is given by an explicit formula in terms of \(x\), the point \((x_0,y_0)\) is found by evaluating
the \(y=f(x)\) at \(x_0\), and the slope is found by evaluating the derivative \(f'(x)\) at \(x=x_0\). By taking advantage
of the point-slope form of a line
\[ y-y_0=m\left (x-x_0\right ), \]
an equation for the tangent line is found. Let’s explore this in the context of an
example.
Suppose that we want to approximate \(e^{2x}\) near \(x=0\). We pick \(c=0\) as the point off of which our
approximation will be based, and find the equation of the tangent line to \(y=e^{2x}\) at
\(x=0\).
\(y_0=f(0) = \answer [given]{1}\), so the point \((0,1)\) is on the line.
\(f'(x) = \answer [given]{2e^{2x}}\), so the slope is found by noting \(m_{tan} = f'(0) = \answer {2}\).
If we “zoom in” on the graphs of the function \(y=e^{2x}\) and its tangent line at \(x=0\), denoted by \(l_0(x)=2x+1\),
we see the following picture.
From tangent line approximation, we can approximate values of \(e^{2x}\) near \(x=0\). Visually, we
can see this since the graphs are quite close. Computationally, we obtain the
approximations by plugging \(x\)-values into the equation of the tangent line; for instance,
we can approximate \(e^{.2}\) by noting
\[ e^{.2} = f(.1) \approx 2(.1)+1 =1.2. \]
The actual value of \(e^{.2}\) to three decimal places is \(1.221\), so the simple arithmetic needed to
estimate using the tangent line produces a reasonable approximation. As we “zoom
out” to a larger viewing window, however, the graphs start to become quite
different.
Since evaluating polynomials involves only arithmetic operations, we would like to be
able to use them to give better results than the tangent line approximation. Also,
polynomials are easy to integrate and differentiate, so it would be nice to use
polynomial approximations in applications that involve these operations. This will
require that we try to extract the idea from the tangent line approximation in a way
that allows us to generalize it.
1 Revisiting the Tangent Line Approximation
Let’s look for a first degree polynomial of the form
\[ p_1(x) = a_0+a_1x, \]
where \(a_0\) and \(a_1\) are constants that must be determined.
What do we want out of our
approximation?
We certainly want the function and the approximation to agree at the
\(x\)-value off of which the approximation is based; that is, we want
\[ p_1(0) =f(0). \]
In our example, we note
\(f(0) = e^{2(0)} =1\).
\(p_1(0) = a_0+a_1(0) = a_0\).
Thus, the requirement \(p_1(0) =f(0)\) gives us that \(a_0=\answer {1}\).
We also want to make sure that the function and the approximation
change at the same initial rate so that both graphs head in similar
general directions. Since the derivative measures the rate of change, we
require
\[ p_1'(0) =f'(0). \]
In our example, we note
\(f'(x) = 2e^{2x}\), so \(f'(0) = 2\).
\(p_1'(x) = a_1\), so \(p_1'(0) = a_1\).
Thus, the requirement \(p_1'(0) =f'(0)\) gives us that \(a_1=\answer {2}\).
Our approximation is thus \(p_1(x) = a_0+a_1x = 1+2x\), which matches the equation of the tangent line at \(x=0\).
2 A Quadratic Approximation
While this should not be too surprising, it does allow for us to think of conditions
that will allow for higher degree polynomial approximations. Suppose that we want
to use a quadratic polynomial \(p_2(x)\) of the form
\[ p_2(x) = a_0+a_1x+a_2x^2 \]
for making estimates. Note that \(f(x)=e^{2x}\) is clearly not linear; in fact, it is concave-up on its
domain. Note that by drawing tangent lines at different points near \(x=0\), the slopes are
different, which is roughly what concavity quantifies. Slopes of tangent lines are
found from the first derivative, so in order to measure how these slopes are
changing, we should look at the derivative of the first derivative. This is really
nothing new; we know already that concavity is measured using the second
derivative.
We’ll keep the previous two conditions - that \(p_2(0) = f(0)\) and \(p_2'(0) = f'(0)\) - and also require that \(p_2''(0) = f''(0)\). We thus
look for look for a polynomial
Let’s now explore our approximations. Geometrically, we can interpret the
effectiveness of the approximations by looking at their graphs.
We can also explore the approximations quantitatively for a given \(x\)-value. For
instance, if we want to approximate \(e^{.2}\), we note that \(f(x)=e^{2x}\), so \(e^{.2}=f(.1)\). We thus approximate \(e^{.2}\) by
evaluating the polynomials at \(x=.1\).
By noting that the actual value to three decimal place is \(1.221\), we can see that the
quadratic approximation is better!
3 Higher Order Approximations
We can continue to look for higher degree polynomial approximations. Note that our
approximations above require that the function be sufficiently differentiable at the
point at which we wish to base the approximation.
Let \(f(x)\) be a function whose first \(n\) derivatives exist at \(x=c\). The \(n\)-th order Taylor polynomial
centered at \(x=c\) is the polynomial
whose coefficients \(a_k\) are found by requiring \(p_n^{(k)}(c) = f^{(k)}(c)\) for each \(0 \leq k \leq n\).
We will develop a more computationally efficient method for computing Taylor
Polynomials in the next section, but we conclude this section with a question that
explores the ideas put forth so far.
Suppose that \(f(x)\) is a function for which \(f''(2) = 4\).
Which of the following that could be the second degree Taylor polynomial centered
at \(x=2\) for \(f(x)\)?
We must find the polynomial \(p_2(x)\) for which \(p_2''(2) = 4\). Of the polynomials listed, only \(3+2(x+2)^2\) has this
property.
Let \(p_2(x) =3+2(x-2)^2\).
Is there enough information to determine what \(f'(2)\) is?
Yes No
We find that \(f'(2) = \answer [given]{0}\).
Is there enough information to determine what \(f(3)\) is?
Yes No
Since \(p_2(x) = 3+2(x+2)^2\) is the second degree Taylor polynomial centered at \(x=2\) for \(f(x)\), we only know for
sure that \(f(2)=p_2(2)\), \(f'(2)=p_2'(2)\), and \(f''(2)=p_2''(2)\). We can use \(p_2(x)\) to approximate \(f(x)\) at other \(x\)-values, but there is no
guarantee that \(p_2(x)\) and \(f(x)\) will agree at any \(x\)-value other than \(x=2\). The curious reader may
inquire whether this would provide a reasonable approximation, and this will be
discussed in a subsequent section.