Deriving the Taylor Series
My previous post Deriving the Maclaurin Series is a prerequisite for this post.
We’ve just learned how to approximate a function
If you care about the region around 0, you’re golden. This is a great approximation. But what if you care about
When might you know beforehand which x-region you care about in real life? Actually, quite often. Let’s say the function you’re approximating is the percentage humidity in the air as a function of temperature. Are you particularly interested in a temperature of 0? Probably not. You’re probably most interested in temperatures that are close to your current temperature. If you come up with real-life examples, there’s often a natural “default” x value and you probably care most about the x-region around that default value.
So what’s the better way? It’s called the Taylor Series, and it’s just two small steps away from the Maclaurin Series.
Step 1
We want the polynomial
Because we’re now using the function value (and derivatives) around
A picture is going to be much easier to understand:
Notice how the red line,
Step 2
This is the easy step, we need to shift our function to the right by
And, not that it will surprise you, but here’s the final picture (re-centered around
Notice that