Plans

The best way to get a 5 on your AP exam.

Personalized study sets, mock tests, interactive modules and an AI tutor.

Contents

BlogAP Calculus BC

Taylor Series Explained by a Caveman (AP Calculus BC)

7 min read

Watercolor still life: a sandstone slab painted with a rising curve, a straight line touching it at one point and a bent line following it more closely, beside straight sticks and a curved twig.
Illustration: AP Rush

How can a polynomial copy a curve?

How can a polynomial, which only adds and multiplies, stand in for a curve like sin x or eˣ?

First comes the caveman explanation. Then you’ll see how to use the idea on the AP exam.

The caveman version

Me want copy hill. Whole hill big. Me pick one spot. Me put red rock there. Good rock. Stay where me put it.

Me hold stick at same height as hill at red rock. Me tilt stick till it point same way hill go. Me ant walk on stick. For one tiny step, ant get good idea of hill.

But hill bend up. Stick keep going straight. Me make new stick with bend. At red rock, me keep old height, keep old tilt, match how fast hill tilt change. Me ant take few more steps. Still close to hill.

Me could fit stick to more little ways hill bend near rock. Me still look before me send ant far. Ant ask for lunch break.

What the caveman meant

The hill is the graph of the function f. The red rock marks the center, the input a where you have information about f. The ant’s steps measure a change in input, the displacement x − a.

The straight stick is the tangent line. Its height at the rock is f(a), and its tilt is the first derivative f′(a).

The bent stick is a Taylor polynomial that also matches the second derivative f″(a), the rate at which the slope changes. Finer details come from higher derivatives.

You can shape a real stick by looking at the hill in several places. A Taylor polynomial gets its coefficients from measurements at one input. How far you can trust it depends on what the function does between that input and your target.

Match the height and slope with a tangent line

To put numbers on the straight stick, start at the height f(a). Move horizontally by x − a. A line with slope f′(a) gains f′(a)(x − a) in height over that move. Adding the gain to the starting height gives the tangent-line approximation, P₁(x) = f(a) + f′(a)(x − a).

Take f(x) = eˣ and choose a = 0. The starting height is 1, and the slope is also 1 because the derivative of eˣ is eˣ. Your line is P₁(x) = 1 + x. At x = 0.1 it predicts 1.1. The exponential’s slope keeps increasing as you move right, so the line comes in low.

Add powers to match more derivatives

To let the line bend, add a quadratic term, c(x − a)². At x = a, this term is zero. Its first derivative, 2c(x − a), is zero there too. Changing c preserves both earlier matches. The second derivative of the new term is 2c, so choose c to make 2c = f″(a).

For eˣ at zero, f″(0) = 1, so c = 1/2. That gives P₂(x) = 1 + x + x²/2. A cubic term lets you match one more derivative. At the center, the cubic term and its first two derivatives all vanish. Its third derivative is a constant you can adjust to match f‴(0).

Divide by the factorial to get each coefficient

Differentiate x³ three times. You get 3x², then 6x, then 6. That last number is the factorial 3! = 3 × 2 × 1. In general, differentiating (x − a)ⁿ exactly n times gives n!. Lower powers have disappeared by then, and higher powers still have a factor of x − a that vanishes at the center.

So the Taylor coefficient of (x − a)ⁿ is f⁽ⁿ⁾(a)/n!. For eˣ at zero, the value and the first three derivatives are all 1. Dividing by 0!, 1!, 2!, and 3! gives coefficients 1, 1, 1/2, and 1/6. Here 0! = 1. The third-degree polynomial is P₃(x) = 1 + x + x²/2 + x³/6.

Substitute 0.1 for x. The square is 0.01 and the cube is 0.001, so P₃(0.1) = 1 + 0.1 + 0.005 + 0.001/6 ≈ 1.105167. For comparison, the true value of e raised to 0.1 rounds to 1.105171 to six decimal places. The cubic captures most of the missing rise.

Recognize four Maclaurin series by their terms

Keep the coefficient pattern going indefinitely and you get a Taylor series. When the center is zero, it’s called a Maclaurin series. For eˣ the pattern is 1 + x + x²/2! + x³/3! + ⋯. Every power appears with a positive sign, and the power of x tells you which factorial belongs underneath it.

For sin x, the values at zero cycle through 0, 1, 0, −1 as you differentiate, starting with the function itself. This gives sin x = x − x³/3! + x⁵/5! − ⋯. For cosine the cycle starts at 1, giving cos x = 1 − x²/2! + x⁴/4! − ⋯. Both patterns alternate signs and skip every other power.

The exponential, sine, and cosine series above equal their functions for every real x. The geometric series has a narrower interval. Each term is x times the one before it, and 1 + x + x² + x³ + ⋯ sums to 1/(1 − x) when |x| < 1. Keep that condition with the formula.

Use the next derivative to bound the error

When you stop one of these patterns after order n, the remainder is the difference f(x) − Pₙ(x). If the derivatives through order n + 1 are continuous between a and x, the Lagrange error bound gives |f(x) − Pₙ(x)| ≤ M|x − a|ⁿ⁺¹/(n + 1)!. Choose M large enough to bound the absolute value of the next derivative throughout that interval.

For the cubic estimate at 0.1, the next derivative is the fourth, again eˣ. On the interval from 0 to 0.1 it increases and stays below 2, so M = 2 covers the whole interval. The error is at most 2 × (0.1)⁴/24 = 1/120000. The distance enters to the fourth power here, which helps explain the accuracy so close to zero.

Common mistakes

Using the nth derivative at zero as the coefficient of xⁿ misses the factorial. If you put 1 in front of x³ for eˣ, the third derivative at zero comes out to 6. A coefficient of 1/6 gives the required 1.

Trusting a Taylor polynomial everywhere ignores the distance from the center. Accuracy typically falls off as that distance grows. Even the infinite series has an interval of convergence, and it represents the function wherever its remainder tends to zero.

Confusing order with degree can make you add an extra term. For sin x at zero, the second derivative is zero. The second-order polynomial is just x. Its highest surviving power is x¹, so its degree is one.

Try one

A function f has f(2) = 3, f′(2) = −1, and f″(2) = 4. Write the second-degree Taylor polynomial for f about x = 2 and use it to approximate f(2.1). Show the coefficients and the arithmetic.

The coefficients are 3/0! = 3, −1/1! = −1, and 4/2! = 2. Thus P₂(x) = 3 − (x − 2) + 2(x − 2)². The displacement is 2.1 − 2 = 0.1, so f(2.1) ≈ P₂(2.1) = 3 − 0.1 + 2(0.01) = 2.92.

This tests how you build coefficients and use the displacement from the center.

Back to the opening question

A polynomial can stand in for sin x or eˣ because its coefficients let you copy the curve’s height, slope, and bending at one center. Each new power can match another derivative while preserving earlier matches. Adding terms can make the copy good farther from the center, and an error bound tells you when it’s close enough.

Questions

What’s the difference between a Taylor polynomial and a Taylor series?

A Taylor polynomial stops at a chosen order. A Taylor series keeps going, and its sum equals the function at inputs where the remainder tends to zero.

Can you use a Maclaurin series for ln x?

A Maclaurin series needs a function value at zero, where ln x is undefined. You can expand ln x around 1 using powers of x − 1.

How do you find a derivative from a Taylor coefficient?

Multiply the coefficient by the factorial of its power. If the coefficient of (x − 1)⁴ is 5, the fourth derivative at 1 is 5 × 4! = 120.

Do the first three nonzero terms of sin x give the third-order polynomial?

The third-order Maclaurin polynomial stops at x − x³/6. To get three nonzero terms, you include the next one, x⁵/120, which reaches degree five.

Secure your 5 on the AP exam today.

Get started for free

Free to start, with 3 keys a week.

Sign in