Taylor's Theorem
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll see Taylor’s theorem stated with an exact remainder rather than a vague ”≈”, learn to prove it by the same subtract-off-the-known-part trick that gave the mean value theorem, use the remainder to get honest error bounds, and understand the difference between a Taylor series converging and a Taylor series converging to the function it came from.
The Concept
Section titled “The Concept”Calculus introduced Taylor series as an infinite sum and asked you to trust it. Analysis does the opposite: it starts with a finite polynomial plus an error term you can control, and only afterwards asks whether the error goes to zero.
The Taylor polynomial
Section titled “The Taylor polynomial”Suppose has derivatives at . The th Taylor polynomial of about is
It is the unique polynomial of degree at most whose first derivatives at match those of . That matching is the whole design goal: agrees with in value, slope, curvature, and so on, up to order , at the single point .
The linear case is the tangent line. Taylor’s theorem is what tangent-line approximation grows into.
The theorem
Section titled “The theorem”Taylor’s theorem (Lagrange form). Let be times differentiable on an open interval containing and . Then there is a point strictly between and with
Write for the remainder. The theorem says has exactly the shape of the next term in the pattern, except that the derivative is evaluated at an unknown interior point instead of at .
Two things to notice. First, this is an equality, not an estimate - nothing has been thrown away. Second, the only thing unspecified is where sits, and that is precisely the same concession the mean value theorem makes. Taking recovers the MVT exactly:
So Taylor’s theorem is the MVT extended to higher order, and it is proved the same way.
Proof. Fix and choose the number so that
which is possible since . The claim is that for some interior .
Let
Because matches to order at , we get , and by the choice of we also get .
Now apply Rolle repeatedly. Since , there is between them with . Since , there is between those with . Continuing times produces strictly between and with
But has degree at most , so its st derivative vanishes, and the st derivative of is . Hence
∎
Subtract off the part you already understand, then apply Rolle. That is the same move as in the MVT proof, iterated. It is worth seeing that the entire content of Taylor’s theorem is Rolle applied times.
Using the remainder
Section titled “Using the remainder”In practice you never know , so you bound the derivative instead. If
then
That is the working form. Everything on the right is computable, and the in the denominator is why Taylor approximation is so effective at short range.
Two separate effects shrink the error:
- Increasing the degree divides by a larger factorial.
- Moving closer to shrinks , and shrinks it faster for larger .
The second is why is a local tool. Away from the factor grows, and for a function whose derivatives are large the bound can be useless.
Taylor series, and when it fails
Section titled “Taylor series, and when it fails”Letting gives the Taylor series
Here is where calculus quietly assumed something false. The series converging is not the same as the series converging to . The correct statement is:
The Taylor series converges to if and only if .
And can fail in two different ways.
The series can diverge. For about 0, the series is , which diverges for even though is perfectly well behaved at, say, .
The series can converge to the wrong function. Define
Every derivative of this function at 0 is 0. So its Taylor series about 0 is the zero series, which converges everywhere - to the zero function, which is not . The remainder never goes to zero for .
That example is the reason smooth and analytic are different words. A function is smooth if it has derivatives of all orders; it is analytic at if it also equals its Taylor series near . Analytic implies smooth, and this function shows the converse fails.
Taylor’s theorem in the little-o form
Section titled “Taylor’s theorem in the little-o form”There is a weaker but often more convenient statement, requiring only derivatives:
meaning . This says nothing quantitative at a fixed , but it is exactly what you want when computing limits, and it is the form behind the standard limit tricks.
Worked Examples
Section titled “Worked Examples”Example 1: Build for about 0 and bound the error at .
Solution. Derivatives at 0 cycle , so
The fourth derivative is , so works everywhere. Then
Checking: and . The true error is about , ten times better than the bound.
The bound is honest but not tight, because it assumes the worst possible fourth derivative on the interval. That is typical and acceptable: a guaranteed bound is worth more than a sharp guess.
Example 2: How many terms for to six decimal places?
Solution. Take , , . All derivatives are , bounded on by . So
We want this below , so we need . Since and , take , that is .
against ✓
This is how a library function decides where to stop. The factorial growth means ten terms buy six digits.
Example 3: Why has a radius of only 1.
Solution. , so and the series is .
That geometric series converges exactly when . Yet is smooth at every , including .
A Taylor series about is blind to good behaviour beyond the nearest singularity, even a singularity in the other direction. The radius here is 1 because the pole at is at distance 1, and that limit applies symmetrically.
Example 4: A smooth function that is not analytic.
Show the Taylor series of (with ) about 0 is identically zero.
Solution. For , each derivative is times a rational function of . At 0, apply the limit definition:
Substituting turns this into , since the exponential beats any power. The same argument, with a higher power of , gives for every .
So for all , and for . The remainder does not vanish.
Smooth does not imply analytic. This function is infinitely flat at the origin without being zero near it.
Example 5: Estimate with an error bound.
Solution. Take , , so , , .
For the bound, , which on is largest at : . So
The true value is , so the actual error is about . Here the bound is nearly tight, because the third derivative barely varies on such a short interval.
Example 6: Use Taylor to evaluate a limit.
Find .
Solution. From ,
Dividing by gives .
Compare L’Hôpital, which needs three rounds of differentiation. Substituting a Taylor expansion is usually faster and always tells you which term is doing the work.
Example 7: Second-derivative test, derived.
Suppose and . Show is a local minimum.
Solution. Taylor with gives, for some between and ,
If is continuous at and positive there, it stays positive on some interval around . For in that interval, lies in it too, so the last term is positive and . ∎
The second-derivative test is Taylor’s theorem at . It also shows why the test is silent when : the sign information came from that term, and there is none.
Real-World Applications
Section titled “Real-World Applications”Numerical libraries. Evaluating , , or in hardware or software means reducing the argument to a small range and then using a polynomial. The degree is chosen from a remainder bound like Example 2, so the routine can promise a result correct to the last bit.
Finite-difference methods. Every discretization of a derivative, and the order of accuracy quoted for it, comes from expanding in Taylor series and seeing which terms cancel. The leading uncancelled term is the error term.
Physics linearization. The small-angle approximation that makes the pendulum solvable is , and the remainder bound tells you the angle at which the model stops being trustworthy.
Optimization. Newton’s method is built by minimizing at each step, and the quadratic convergence rate comes from the size of . Quasi-Newton methods are approximations of the same quadratic model.
Computer graphics and audio. Polynomial approximation of transcendental functions is standard where a per-sample or per-pixel cost matters, and the acceptable degree is set by an error budget.
Error propagation in measurement. Expanding a formula to first order in its inputs is exactly how uncertainty is propagated through a calculation; the second-order remainder is what tells you when the linear rule is inadequate.
Retrying will remove your ✅ checkmark until you pass again.