Maclaurin Series

A Maclaurin Series expresses a function as an infinite polynomial using its derivatives at zero, letting you approximate functions without a calculator.

f(x)=n=0f(n)(0)n!xnf(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n!}x^n

Solve a problem with Maclaurin Series

Type the problem. The solver will use Maclaurin Series where Maclaurin Series is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Maclaurin Series takes
ff
xx
nn
Maclaurin Series
SymbolMeaning
ffThe original function being approximated; f(n)(0)f^{(n)}(0) means the nn-th derivative of ff evaluated at zero, so if ff is not differentiable at zero, the series does not exist.
xxThe input variable; the series is a polynomial in xx, and it converges only for values within a certain distance of zero (the radius of convergence).
nnThe index running from zero to infinity, counting which derivative term appears; n!n! (n factorial) grows rapidly, which is why later terms contribute less to the sum.

When to use it

Reach for a Maclaurin Series when you need to approximate a transcendental function or evaluate it near x=0x = 0 without a calculator.

Level

Usually taught in: Calculus II

Worked examples

1. Find the first four terms of the Maclaurin series for $e^x$

Problem

Find the first four non-zero terms of the Maclaurin series for f(x)=exf(x) = e^x.
  1. f(x)=exf(0)=1,f(x)=exf(0)=1f(x) = e^x \Rightarrow f(0) = 1, \quad f'(x) = e^x \Rightarrow f'(0) = 1

    Identify the function and compute its derivative at x=0x = 0.

  2. f(x)=exf(0)=1,f(x)=exf(0)=1f''(x) = e^x \Rightarrow f''(0) = 1, \quad f'''(x) = e^x \Rightarrow f'''(0) = 1

    Continue computing derivatives; all derivatives of exe^x equal exe^x, so they all equal 1 at x=0x = 0.

  3. n=03f(n)(0)n!xn=10!x0+11!x+12!x2+13!x3\sum_{n=0}^{3} \frac{f^{(n)}(0)}{n!}x^n = \frac{1}{0!}x^0 + \frac{1}{1!}x + \frac{1}{2!}x^2 + \frac{1}{3!}x^3

    Substitute the derivatives into the Maclaurin formula.

  4. =1+x+x22+x36= 1 + x + \frac{x^2}{2} + \frac{x^3}{6}

    Evaluate the factorials: 0!=10! = 1, 1!=11! = 1, 2!=22! = 2, 3!=63! = 6.

Answer: ex=1+x+x22+x36+e^x = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots

Because all derivatives of exe^x equal exe^x, and e0=1e^0 = 1, every term has numerator 1. The factorial in the denominator prevents divergence and ensures each term's contribution decreases as nn increases.

2. Find the Maclaurin series for $\sin(x)$ with alternating pattern

Problem

Find the first five non-zero terms of the Maclaurin series for f(x)=sin(x)f(x) = \sin(x).
  1. f(x)=sin(x),f(x)=cos(x),f(x)=sin(x),f(x)=cos(x),f(4)(x)=sin(x)f(x) = \sin(x), \quad f'(x) = \cos(x), \quad f''(x) = -\sin(x), \quad f'''(x) = -\cos(x), \quad f^{(4)}(x) = \sin(x)

    Compute successive derivatives, which cycle with period 4.

  2. f(0)=0,f(0)=1,f(0)=0,f(0)=1,f(4)(0)=0,f(5)(0)=1f(0) = 0, \quad f'(0) = 1, \quad f''(0) = 0, \quad f'''(0) = -1, \quad f^{(4)}(0) = 0, \quad f^{(5)}(0) = 1

    Evaluate each derivative at x=0x = 0; even derivatives are zero and odd derivatives alternate between 1 and 1-1.

  3. n=05f(n)(0)n!xn=0+x+0x33!+0+x55!\sum_{n=0}^{5} \frac{f^{(n)}(0)}{n!}x^n = 0 + x + 0 - \frac{x^3}{3!} + 0 + \frac{x^5}{5!}

    Substitute into the Maclaurin formula; even-indexed terms vanish because their numerators are zero.

  4. =xx36+x5120= x - \frac{x^3}{6} + \frac{x^5}{120}

    Evaluate the factorials: 3!=63! = 6 and 5!=1205! = 120.

Answer: sin(x)=xx36+x5120\sin(x) = x - \frac{x^3}{6} + \frac{x^5}{120} - \cdots

Sine is an odd function, so its Maclaurin series contains only odd powers of xx. The alternating signs come from the pattern of odd derivatives: at x=0x = 0, they cycle as 1,1,1,1,1, -1, 1, -1, \ldots

3. Approximate exponential cooling with Maclaurin series

Problem

A hot cup cools according to T(t)=100etT(t) = 100e^{-t}, where TT is temperature in Celsius and tt is time in seconds. Use the first four terms of the Maclaurin series to approximate the temperature at t=0.2t = 0.2 seconds.
  1. T(0)=100e0=100,T(t)=100et,T(0)=100,T(0)=100,T(0)=100T(0) = 100e^0 = 100, \quad T'(t) = -100e^{-t}, \quad T'(0) = -100, \quad T''(0) = 100, \quad T'''(0) = -100

    Evaluate TT and its derivatives at t=0t = 0 using the chain rule repeatedly.

  2. T(t)=1000!+1001!t+1002!t2+1003!t3+=100100t+50t21006t3+T(t) = \frac{100}{0!} + \frac{-100}{1!}t + \frac{100}{2!}t^2 + \frac{-100}{3!}t^3 + \cdots = 100 - 100t + 50t^2 - \frac{100}{6}t^3 + \cdots

    Substitute the derivatives into the Maclaurin formula; simplify factorials: 1002=50\frac{100}{2} = 50 and 100616.67\frac{100}{6} \approx 16.67.

  3. T(0.2)100100(0.2)+50(0.04)1006(0.008)=10020+20.86=820.13381.87T(0.2) \approx 100 - 100(0.2) + 50(0.04) - \frac{100}{6}(0.008) = 100 - 20 + 2 - \frac{0.8}{6} = 82 - 0.133 \approx 81.87

    Substitute t=0.2t = 0.2: (0.2)2=0.04(0.2)^2 = 0.04, (0.2)3=0.008(0.2)^3 = 0.008, and 0.860.133\frac{0.8}{6} \approx 0.133.

Answer: T(0.2)81.87 °CT(0.2) \approx 81.87 \text{ °C}

The Maclaurin series converts the transcendental function into a polynomial, avoiding the need for a calculator to evaluate e0.2e^{-0.2}. The approximation is accurate near t=0t = 0 because higher-order terms are negligible for small tt.

Common mistakes

Where Maclaurin Series usually goes wrong
Answer came out wrong
Writing the series starting at n=1n = 1 and forgetting the constant term f(0)f(0).
Always include the n=0n = 0 term, which equals f(0)f(0); this is the constant term.
Using the derivative function itself instead of evaluating it at zero, e.g., writing sin(x)=cos(x)+\sin(x) = \cos(x) + \cdots.
Always compute f(n)(0)f^{(n)}(0) as a number (the value of the nn-th derivative at x=0x = 0) before placing it in the series.
Attempting to write a Maclaurin series for f(x)=ln(x)f(x) = \ln(x) centered at x=0x = 0.
Before constructing a Maclaurin series, check that f(0)f(0) is defined and all relevant derivatives exist at x=0x = 0.
The mistakeWhy it is wrongThe fix
Writing the series starting at n=1n = 1 and forgetting the constant term f(0)f(0).Misreading the formula's index: n=0\sum_{n=0}^{\infty} starts at n=0n = 0, not n=1n = 1.Always include the n=0n = 0 term, which equals f(0)f(0); this is the constant term.
Using the derivative function itself instead of evaluating it at zero, e.g., writing sin(x)=cos(x)+\sin(x) = \cos(x) + \cdots.Confusing the notation f(n)(0)f^{(n)}(0) with f(n)(x)f^{(n)}(x): the zero in parentheses means evaluate at x=0x = 0, not leave the derivative as a function.Always compute f(n)(0)f^{(n)}(0) as a number (the value of the nn-th derivative at x=0x = 0) before placing it in the series.
Attempting to write a Maclaurin series for f(x)=ln(x)f(x) = \ln(x) centered at x=0x = 0.The function ln(x)\ln(x) is undefined at x=0x = 0, so its derivatives do not exist there; a Maclaurin series requires the function and all its derivatives to be defined at the center.Before constructing a Maclaurin series, check that f(0)f(0) is defined and all relevant derivatives exist at x=0x = 0.

Tips and when to use something else

  • The Maclaurin series converges only within a finite interval around x=0x = 0, called the radius of convergence; for exe^x it is all real numbers, but for 11x\frac{1}{1-x} it is only x<1|x| < 1.
  • If you need to expand a function around a point other than zero (say, near x=2x = 2), use the Taylor Series instead—Maclaurin is the special case where the center is zero.
  • Maclaurin series are most powerful when evaluating transcendental functions (like sin(x)\sin(x) or exe^x) at small values without a calculator.
  • To verify your work, check that the constant term equals f(0)f(0) and that the derivative of your series at x=0x = 0 matches f(0)f'(0).

Frequently asked questions

When do I use Maclaurin instead of Taylor Series?
Use Maclaurin when expanding around x=0x = 0; use Taylor Series to expand around any other point. Maclaurin is a special case of Taylor with center at zero.
Why do some derivatives vanish at zero, like for sin(x)\sin(x)?
Sine is an odd function: sin(x)=sin(x)\sin(-x) = -\sin(x). Odd functions have all even derivatives equal to zero at the origin, which forces even powers out of the series and leaves only odd powers.
How many terms of the series should I include?
It depends on your accuracy goal and how close xx is to zero. For most practical problems, 3–5 terms suffice when xx is small. Use the Ratio Test or an error bound formula to determine how many terms you need for your desired precision.
Can every function have a Maclaurin series?
No. The function must be infinitely differentiable at x=0x = 0 with all derivatives finite there. For example, x|x| has a corner at zero and is not differentiable, so it has no Maclaurin series. Additionally, even if the series exists, it may not converge for all xx.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18