Polynomial Approximation
Table of Contents
Introduction
Imagine you have a smooth curve and you want to estimate its value near some point . If you zoom in close enough, the curve starts looking almost like a straight line.
For small changes , we can write:
This is just the tangent line equation. It works because the first derivative gives the slope of the curve at that point.
But what if the function bends away from the tangent line?
We can correct that error by adding a curvature term that accounts for how fast the slope itself changes. This is given by the second derivative:
If that's still not enough, we can keep correcting by adding higher-order derivatives, each compensating for the leftover error of the previous approximation. The more terms we include, the closer our polynomial becomes to the real curve.
Deriving the Formula
To see how this comes together, let's build the pattern step by step.
Suppose can be represented as a polynomial centered at :
We can find the coefficients by differentiating both sides and evaluating at :
So in general:
Plugging this back gives us the Taylor Series formula:
This expression allows any infinitely differentiable function to be written as an infinite sum of powers, each weighted by its derivatives at a single point.
Maclaurin Series
When the series is centered at , it becomes a simpler form called the Maclaurin Series:
This form is often used for common functions like , , and .
Examples of Taylor Series
Let's see how the Taylor formula works in practice by expanding a few well-known functions. Each of these is infinitely differentiable, meaning we can keep taking derivatives forever. Their repeating derivative patterns make them perfect examples.
Exponential Function
The derivative of is itself:
At :
Plugging into the Maclaurin formula:
Sine Function
Now for something oscillatory. Let's write out the derivatives:
At :
So the series becomes:
Notice how:
- Only odd powers of appear.
- The signs alternate every term.
Cosine Function
Similarly, cosine's derivatives repeat every four steps:
At :
Substituting:
Here:
- Only even powers of appear.
- The signs alternate as well.
Together, the sine and cosine series complement each other: one starts at 0 and oscillates through odd powers, while the other starts at 1 and oscillates through even powers.