Taylor series / Taylor expansion
The question is....
- If we have a function
, - and we know lots of things about the function when
, such as- the value of the function at
, that is , - derivatives w.r.t.
at , that is etc.
- the value of the function at
- Evaluating this at
to find . - Take the first derivative, and evaluate at
to find that . - Take another derivative, and evaluate at
to find . - Google around a bit to find out....What's a Maclaurin series--how is it related to a Taylor series?
- If you Taylor expand
around , the Taylor series is a good approximation only for a limited range of . Use some math package to make a graph with ,- 5 terms in the Taylor expansion,
- 12 terms in the Taylor expansion.
does the Taylor series appear to give a good approximation to the function? - Derive the Madhava sequence for
: a Taylor expansion about . - Derive the Taylor expansion for
(where is a constant) about . - Use the two results above, and the Madhava sequence for
to prove Euler's equation: . - The tangent of a
angle is . You can invert this to get Oh-ho! This gives us a way to come up with a series representation for ! Do this:- Calculate / look up the first four derivatives of the arctan function, and evaluate those derivatives at 1.
- Now you've got what you need to
expand
in a Taylor series about . Write that out. - Set
in your Taylor expansion, and you have a series representation for . Based on the terms that you calculated (going up to the term that involves the fourth derivative...) what does it look like the pattern for larger terms will be? Write down the first 8 terms in the series based on the pattern you've discovered with the first couple of terms. - Now calculate the approximation you get for
using the first 2, then the first 4, then the first 8 terms.
Image credits
...is this enough information to let us calculate what
xkcd
Some crude approximations
The crudest first approximation with this information might be to say
We might do a bit better by using the rate of change of the function at
This is certainly better than our first crude approximation, but still not terribly exact. Can we use higher order derivatives to improve this approximation even further??
If the function can be written exactly as a power series in powers of
Try this to find the coefficients
Repeating this procedure we find a general formula for the coefficients of the power series in terms of the 'n'th derivative
The resulting power series for
The "Taylor expansion of
Note the equals sign: This is not an approximation, but an exact result. Though we may need an infinite number of terms to fulfill the precise equality.
The Taylor expansion is so useful because there are many functions which you can approximate pretty well with just a few terms from its Taylor expansion.
A (real) function which is equal to its Taylor series on some open interval is said to be analytic.
A function which is analytic for its entire domain is said to be entire. An example is the exponential function (animated at right) expanded in this case about
Madhava series for
Madhava of Sangamagrama (c. 1350-c. 1425) was an astronomer in Kerala (India) who came up with series approximations for
To Taylor expand
For higher order derivatives, we'll once again cycle through 0,1,0,-1...
Substituting these derivatives into our Taylor formula and expanding in powers of
Graphically, you can see this sequence (slowly) converging to the
n=3
The graphs shown are....