M150B Lab

Assignment #2

Feb 28, 2008

Part 2:

Recall: If a function $f$ is $n+1$ times continuously differentiable at a point $a$ we can compute its Taylor polynomial of degree $n$ at $a$ as follows:

$P_{n}(x)$ MATH

and

MATH

where $R_{n}(x;a)$ is a remainder term which satisfies

MATH

with $M$ the maximal value of MATH for all $t$ such that MATH $\leq $ MATH.

The Taylor polynomial is an approximation of the function, and the remainder term measures the error in this approximation.

For example, we can find the Taylor polynomial of degree 5 at 0 for the function $f(x)=\sin x$.

Find the first five derivatives of $\sin x$ and evaluate each at $x=0$:

$f(0)=\sin 0=0$

$f^{^{\prime }}(0)$=$\cos 0=1$

MATH

MATH

MATH

MATH

MATH

Scientific Notebook can do the entire computation for us, by using Compute+Power Series and choosing 6 for the number of terms and $x$ for the power:

MATH

The remainder MATH

The notation MATH (called the big Oh notation) signifies that the remainder is

of sixth order term.

Example: Recall the Taylor series of $f(x)=$ $\sin x:$

MATH

The 5th degree Taylor polynomial is

$P_{5}(x)=$ MATH Graph $\sin x$ and $P_{5}(x)$


M150B Lab power series2_27_08__39.png

Now we want to study MATH Look at the graph:


M150B Lab power series2_27_08__42.pngMATH

$P_{5}(x)$ appears to be a "pretty good" approximation to $f(x)$ near $x=0.$

How can we quantify "pretty good?" Perhaps we can ask a specific question, such as for which $x$ is MATH The "pretty good" is translated as

$f(x)$ and $P_{5}(x)$ $\ $are within a tolerance of $0.1.$


M150B Lab power series2_27_08__52.png

Solve MATH

Solution MATH

M150B Lab, Assignment #2, Part 2, Due Feb 28

Consider each of the following functions, complete exercises A-D below:

1. MATH $\ a=0$

2. $f_{2}(x)=\ln x,$ $a=1$

3. MATH $a=0$

A. Find $P_{2}(x)$ and $P_{5}(x)$ for each of the $\ f_{i},$ $i=1,2,3.$

B. Graph $f_{i}$ and $P_{2}(x)$ and $P_{5}(x)$ on the same graph, $i=1,2,3. $

C. Graph MATH and MATH

D. Find for which $x$, MATH

and find for which $x$, MATH for $i=1,2,3.$

You can do this from the graph or analytically.

This document created by Scientific Notebook 4.0.