Skip to content
We use only essential cookies to keep you signed in and remember your preferences. See our Cookie Policy.
TestStop
MocksPracticeResourcesIndiaBlogPricing
Sign in
Resources › Taylor series
Mathematics · Complete guide

Taylor series, and the simple trick for writing one

A Taylor series rebuilds a complicated function as a polynomial, the easiest thing in maths to work with, by copying its value, slope and bend at one point. Exams ask for a second-order expansion, a limit, an approximation or a growth rate, and all of them come from one table. This guide teaches that table, the shortcuts that skip it, and shows the polynomial hugging the curve as you add terms.

In this guide
About 25 minutes, with the exercises
  1. The idea: copy a curve with a polynomial
  2. The formula, and where the k! comes from
  3. The simple trick: the table method
  4. The Taylor lab
  5. Five series to know by heart
  6. Shortcuts: substitute, don't differentiate
  7. What it's for: limits, approximations, growth rates
  8. How good is the approximation?
  9. Exercises, with answers
  10. One-page revision sheet
01
Start here

The idea: copy a curve with a polynomial

Stand at one point on a curve, x = a. How would you build a polynomial that looks as much like the curve as possible near that point? Match it one feature at a time:

Degree 0
T0​=f(a)

Same height. A flat line: right at a, useless anywhere else.

Degree 1
T1​=f(a)+f′(a)(x−a)

Same height and slope: the tangent line, or linear approximation.

Degree 2
T2​=T1​+2!f′′(a)​(x−a)2

Same bend too. A parabola that curves the way the function curves.

Keep going
Tn​=Tn−1​+n!f(n)(a)​(x−a)n

Each new term matches one more derivative, and the fit spreads further from a.

Key idea

A Taylor polynomial of degree n is the one polynomial that agrees with f at a in value and in its first n derivatives. Let n run to infinity and you get the Taylor series; about a = 0 it is called the Maclaurin series.

02
The formula

The formula, and where the k! comes from

Taylor series of f about x = a
f(x)=k=0∑∞​k!f(k)(a)​(x−a)k=f(a)+f′(a)(x−a)+2!f′′(a)​(x−a)2+3!f′′′(a)​(x−a)3+⋯
Put a = 0 for the Maclaurin series: f(x) = f(0) + f′(0)x + f″(0)x²/2! + …

Why divide by k!? Differentiate (x−a)k k times and you get k! (the power comes down as k, then k − 1, and so on). So the k-th derivative of the term ck​(x−a)k at a is k!ck​, and every other term contributes 0 there. For that to equal f(k)(a) we need ck​=f(k)(a)/k!.

The same fact, read backwards

If a series is ∑ck​xk, then f(k)(0)=k!ck​. That turns “find the 6th derivative at 0” into “find one coefficient”, often with no differentiating at all (chapter 6).

03
The method

The simple trick: the table method

Never write the formula out in one go. Build a table with four columns and fill it row by row:

  1. Differentiate: list f, f′, f″, f‴ down the first column, as many as the degree you need.
  2. Plug in a: evaluate each at the centre.
  3. Divide by k!: 1, 1, 2, 6, 24, 120… That gives the coefficient.
  4. Attach (x − a)^k and add the rows.
Worked question · the table method
Write the third-order Taylor polynomial of f(x)=lnx about a=1, and use it to estimate ln 1.1.
  1. 1
    Fill the table.
    kf⁽ᵏ⁾(x)at x = 1÷ k!
    0lnx00
    11/x11
    2−1/x2−1−1/2
    32/x321/3
  2. 2
    Read off the polynomial.
    T3​(x)=(x−1)−21​(x−1)2+31​(x−1)3
  3. 3
    Estimate ln 1.1 with x − 1 = 0.1.
    ln1.1≈0.1−0.005+0.000333=0.095333(true value 0.095310)
Answer
T3​(x)=(x−1)−21​(x−1)2+31​(x−1)3; ln 1.1 ≈ 0.0953, correct to four decimals from three terms.
04
Interactive

The Taylor lab

Pick a function and press play: terms are added one at a time and the blue polynomial wraps itself around the black curve. Move the centre to get a Taylor series about a different point. The green band is where the series converges; outside it, extra terms make things worse. The table under the graph is the table method, filled in live.

T3​(x)=1+x+21​x2+61​x3
−4−3−2−1123−22468xycentre a = 0
eˣTaylor polynomial, degree 3
At x = 1

True value 2.7183, polynomial gives 2.6667: an error of 0.0516. Add terms and the error shrinks: each new term fixes one more derivative at the centre.

3
0
a = 0: this is the Maclaurin series.
1
Or drag on the graph.
The numbers
f(x)2.7183
T3(x)2.6667
Error0.0516
The table method, filled in for you
kk-th derivativeValue at a = 0÷ k!Term
0f(x)=ex1÷ 11
1f(1)(x)=ex1÷ 11x
2f(2)(x)=ex1÷ 20.5x2
3f(3)(x)=ex1÷ 60.1667x3
Try eˣ, sin x, cos x

These converge everywhere. However far out you go, enough terms will catch the curve.

Try ln(1 + x) and 1/(1 − x)

These only converge for |x| < 1 about 0. Past x = 1 the polynomial flaps wildly however many terms you add.

Try sin x with n = 1, 2

No change from 1 to 2: sin is odd, so its even-power terms are all zero. The same happens to cos with odd powers.

05
Memorise

Five series to know by heart

FunctionMaclaurin seriesValid for
ex1+x+2!x2​+3!x3​+⋯all x
sinxx−3!x3​+5!x5​−⋯all x
cosx1−2!x2​+4!x4​−⋯all x
ln(1+x)x−2x2​+3x3​−4x4​+⋯−1<x≤1
1−x1​1+x+x2+x3+⋯∣x∣<1
(1+x)m1+mx+2!m(m−1)​x2+⋯∣x∣<1 (any real m)
Patterns that make them easy to remember

eˣ has every power with k! underneath. sin takes the odd powers and cos the even ones, both with alternating signs. ln(1 + x) has no factorials, just 1/k with alternating signs. The last row is the binomial theorem, which also works for fractional and negative m: put m = −1 and replace x by −x to get 1/(1 − x).

06
Faster

Shortcuts: substitute, don't differentiate

Differentiating e−x2 four times is miserable. You don't need to: a Maclaurin series stays valid when you substitute something else for x, multiply two series together, or differentiate and integrate term by term.

Worked question · substitution
Find the Maclaurin series of f(x)=e−x2 up to x6, and hence f(4)(0) and f(3)(0).
  1. 1
    Replace x by −x² in the series for eˣ.
    eu=1+u+2u2​+6u3​+⋯⇒e−x2=1−x2+2x4​−6x6​+⋯
  2. 2
    Read derivatives off the coefficients.
    f(4)(0)=4!×21​=12. There is no x3 term, so f(3)(0)=3!×0=0.
Answer
1−x2+21​x4−61​x6; f(4)(0)=12, f(3)(0)=0.
Substitute

ln(1−x)=−x−2x2​−3x3​−⋯ (x → −x). e2x=1+2x+2x2+34​x3+⋯ (x → 2x).

Multiply

xex=x+x2+2x3​+⋯. Multiply each term of the series by x.

Differentiate term by term

dxd​1−x1​=(1−x)21​=1+2x+3x2+⋯

07
Applications

What it's for: limits, approximations, growth rates

Limits
Find x→0lim​x21−cosx​ and x→0lim​x3sinx−x​.
  1. 1
    Expand the top.
    1−cosx=2x2​−24x4​+⋯,sinx−x=−6x3​+120x5​−⋯
  2. 2
    Divide and let x → 0.
    Every term after the first still has a power of x, so it vanishes.
Answer
1/2 and −1/6. No L'Hôpital needed.
Approximations
Estimate 4.1​ and e0.1 without a calculator.
  1. 1
    Write it as (1 + small).
    4.1​=21+0.025​≈2(1+20.025​)=2.025
  2. 2
    Use the series.
    e0.1≈1+0.1+20.01​+60.001​=1.10517
Answer
2.025 (true 2.0248) and 1.10517 (true 1.10517).

Economics: why growth rates are log differences

The first-order series ln(1+g)≈g for small g is used all the time. It is why a growth rate can be computed as lnYt​−lnYt−1​, why the growth rate of a product is the sum of growth rates, and where the rule of 70 comes from:

Doubling time
(1+g)T=2⇒T=ln(1+g)ln2​≈g0.693​≈growth rate in %70​
At 5% growth: 70 / 5 = 14 years (exact answer ln 2 / ln 1.05 = 14.2).
Why +10% then −10% loses money

1.1 × 0.9 = 0.99. In logs: ln1.1+ln0.9≈(0.1−0.005)+(−0.1−0.005)=−0.01. The first-order terms cancel; the second-order terms −2g2​ don't. Volatility drags down compound growth, here by about 0.5% a year.

Risk premium (second order)

Expanding a utility function to second order around expected wealth gives the Arrow–Pratt result: the risk premium is about 21​σ2⋅(−u′u′′​). Curvature (u″) is exactly what the second Taylor term measures.

08
Accuracy

How good is the approximation?

Lagrange form of the remainder
f(x)=Tn​(x)+Rn​(x),Rn​(x)=(n+1)!f(n+1)(ξ)​(x−a)n+1
ξ is some unknown point between a and x. Bound |f⁽ⁿ⁺¹⁾| on that interval to bound the error.
Close to a

The error behaves like (x−a)n+1. Halve the distance from the centre and a second-order approximation becomes about 8 times more accurate.

More terms

The (n+1)! underneath grows very fast, which is why eˣ, sin and cos converge everywhere.

Radius of convergence

Some series only converge within a distance R of the centre. For ln(1 + x) and 1/(1 − x) about 0, R = 1: the distance to the nearest point where the function breaks.

09
Practice

Exercises, with answers

0 of 13 correct so far

A. Coefficients and derivatives

Decimals or fractions (like 4/3) are both fine.

Problem 1 · a coefficient
What is the coefficient of x3 in the Maclaurin series of e2x?
Problem 2 · a derivative from a series
For f(x)=ex2, find f(4)(0).
Problem 3 · a coefficient of ln
What is the coefficient of x4 in the Maclaurin series of ln(1+x)?

B. Limits and approximations

Problem 4 · a limit
x→0lim​x2ex−1−x​
Problem 5 · first and second order
Approximate 9.18​ using the Taylor polynomial of x​ about 9, first to first order and then to second order (4 decimals).
Problem 6 · rule of 70
A country's GDP grows at 3.5% a year. Roughly how many years does it take to double?

C. Concept checks

One attempt each. Read the explanation even when you get it right.

1The second-order Maclaurin approximation of e⁻ˣ is:
2The coefficient of (x − a)ᵏ in the Taylor series of f about a is:
3The Maclaurin series of an odd function such as sin x contains:
4The series x − x²/2 + x³/3 − … converges to ln(1 + x) for:
5The first-order Taylor polynomial of f about a is:
6If f(x) = 1 + 3x + 5x² + 7x³ + …, then f″(0) is:
10
Revise

One-page revision sheet

The formula

∑k!f(k)(a)​(x−a)k. About a = 0 it is the Maclaurin series.

The table method

Differentiate → plug in a → divide by k! → attach (x − a)^k → add.

Backwards

f(k)(0)=k!× (coefficient of xk). A missing power means that derivative is 0.

Know by heart

eˣ, sin x, cos x, ln(1 + x) (−1 < x ≤ 1), 1/(1 − x) and (1 + x)ᵐ (|x| < 1).

Shortcuts

Substitute (x → −x², 2x, …), multiply by powers of x, differentiate or integrate term by term.

Uses

Limits (expand the top), approximations (write as 1 + small), ln(1 + g) ≈ g, rule of 70, second-order risk.

Watch out for

The mistakes examiners are fishing for

  • Forgetting the k!. The coefficient of (x − a)² is f″(a)/2, not f″(a).
  • Evaluating the derivatives at x instead of at a. The coefficients are numbers: derivatives at the centre.
  • Expanding powers of x when the centre isn't 0. About a = 1 the terms are powers of (x − 1).
  • Using a series outside its range. ln(1 + x) = x − x²/2 + … fails for x > 1, however many terms you take.
  • Mixing up the signs of ln(1 + x) and ln(1 − x). The second has every term negative.
Try it on real questions

Eight past-paper questions this unlocks

From CUET-PG, JNU, IIT JAM and the University of Hyderabad: second-order Taylor expansions, limits that fall straight out of a series, e as a limit, and a growth-rate approximation.

✦These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.

Practice these →All questions on this topic →More resources →

Read next

All resources →
MathematicsMaxima, minima, increasing and decreasingEvery derivative test, when each one fails, closed intervals and the profit and cost questions, on a live graph.Complete guide · 35 minMathematicsRank of a matrix, all three waysMinors, echelon form and normal form, each worked, plus a lab that replays every step for any matrix you type.Complete guide · 30 minStatisticsHypothesis testing in one placeThe 2×2 of Type I and Type II errors, power and p-values, with a lab that shows the α–β trade-off as areas.Complete guide · 30 min