Taylor Series

A Taylor Series expresses a function as an infinite polynomial centered at a point, approximating smooth functions using just derivatives.

f(x)=n=0f(n)(a)n!(xa)nf(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x - a)^n

Solve a problem with Taylor Series

Type the problem. The solver will use Taylor Series where Taylor 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 Taylor Series takes
ff
aa
xx
nn
Taylor Series
SymbolMeaning
ffThe function being approximated—the original smooth function you want to express as a power series.
aaThe center point where you expand the series; choose this point near where you need the approximation, since accuracy decreases as you move away from aa.
xxThe variable of the function—the input value you're approximating; the series tells you what the function outputs for values of xx near aa.
nnThe index counting which derivative you're using and which power of (xa)(x-a) appears in that term; larger nn means more terms and better accuracy near aa.

When to use it

Reach for Taylor Series when you need a polynomial approximation of a smooth function near a specific point.

Level

Usually taught in: Calculus II

Worked examples

1. Find the first three nonzero terms of a sine series expansion

Problem

Write out the first three nonzero terms of the Taylor series for f(x)=sin(x)f(x) = \sin(x) centered at a=0a = 0.
  1. f(0)(x)=sin(x),f(1)(x)=cos(x),f(2)(x)=sin(x),f(3)(x)=cos(x),f(4)(x)=sin(x),f(5)(x)=cos(x)f^{(0)}(x) = \sin(x), \quad f^{(1)}(x) = \cos(x), \quad f^{(2)}(x) = -\sin(x), \quad f^{(3)}(x) = -\cos(x), \quad f^{(4)}(x) = \sin(x), \quad f^{(5)}(x) = \cos(x)

    We find successive derivatives of sine by recalling that the derivative of sine is cosine, and the derivative of cosine is negative sine.

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

    Each derivative is evaluated at the center point a=0a = 0 to find the coefficients in the series.

  3. 00!x0+11!x+02!x2+13!x3+04!x4+15!x5+\frac{0}{0!}x^0 + \frac{1}{1!}x + \frac{0}{2!}x^2 + \frac{-1}{3!}x^3 + \frac{0}{4!}x^4 + \frac{1}{5!}x^5 + \cdots

    We plug each evaluated derivative into the Taylor series formula for the corresponding value of nn.

  4. xx36+x5120x - \frac{x^3}{6} + \frac{x^5}{120} - \cdots

    Terms with zero derivatives vanish; the remaining terms simplify, with 3!=63! = 6 and 5!=1205! = 120.

Answer: xx36+x5120x75040+x - \frac{x^3}{6} + \frac{x^5}{120} - \frac{x^7}{5040} + \cdots

This example shows the classic Taylor Series for sine. The pattern of alternating signs and factorials in the denominator emerges directly from plugging trigonometric derivatives into the formula. Recognizing this pattern—which you can derive rather than memorize—helps you build series for related functions.

2. Expand a logarithm around a non-zero center point

Problem

Find the first four terms of the Taylor series for f(x)=ln(x)f(x) = \ln(x) centered at a=1a = 1.
  1. f(0)(x)=ln(x),f(1)(x)=1x,f(2)(x)=1x2,f(3)(x)=2x3,f(4)(x)=6x4f^{(0)}(x) = \ln(x), \quad f^{(1)}(x) = \frac{1}{x}, \quad f^{(2)}(x) = -\frac{1}{x^2}, \quad f^{(3)}(x) = \frac{2}{x^3}, \quad f^{(4)}(x) = -\frac{6}{x^4}

    We compute successive derivatives using the power rule rewritten for negative exponents: if f(x)=xkf(x) = x^{-k}, then f(x)=kxk1f'(x) = -kx^{-k-1}.

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

    We evaluate each derivative at the center a=1a = 1 instead of a=0a = 0, which is essential because ln(x)\ln(x) is undefined at x=0x = 0.

  3. 00!(x1)0+11!(x1)+12!(x1)2+23!(x1)3+64!(x1)4\frac{0}{0!}(x-1)^0 + \frac{1}{1!}(x-1) + \frac{-1}{2!}(x-1)^2 + \frac{2}{3!}(x-1)^3 + \frac{-6}{4!}(x-1)^4

    Notice that the formula uses (xa)=(x1)(x - a) = (x - 1) instead of just xx; each term involves powers of this shifted variable.

  4. (x1)12(x1)2+26(x1)3624(x1)4=(x1)(x1)22+(x1)33(x1)44(x-1) - \frac{1}{2}(x-1)^2 + \frac{2}{6}(x-1)^3 - \frac{6}{24}(x-1)^4 = (x-1) - \frac{(x-1)^2}{2} + \frac{(x-1)^3}{3} - \frac{(x-1)^4}{4}

    We simplify by computing factorials and reducing fractions: 2/6=1/32/6 = 1/3 and 6/24=1/46/24 = 1/4.

Answer: (x1)(x1)22+(x1)33(x1)44+(x-1) - \frac{(x-1)^2}{2} + \frac{(x-1)^3}{3} - \frac{(x-1)^4}{4} + \cdots

Choosing the center point a=1a = 1 instead of a=0a = 0 is crucial here because the logarithm has a singularity at x=0x = 0. This example shows that Taylor Series give you flexibility to expand any smooth function around any point—a key strength that lets you approximate functions accurately in regions where they are well-behaved.

3. Approximate a game mechanic using a Taylor series (RPG magic scaling)

Problem

In a fantasy role-playing game, a player's magic effectiveness scales with magic level as f(L)=10Lf(L) = 10\sqrt{L}. Find the first four terms of the Taylor series centered at L=4L = 4 to approximate effectiveness between levels 3 and 5.
  1. f(L)=10L=10L1/2f(L) = 10\sqrt{L} = 10L^{1/2}

    We rewrite the square root as a fractional exponent to make differentiation easier using the power rule.

  2. f(1)(L)=1012L1/2=5L1/2,f(2)(L)=5(12)L3/2=52L3/2,f(3)(L)=52(32)L5/2=154L5/2f^{(1)}(L) = 10 \cdot \frac{1}{2}L^{-1/2} = 5L^{-1/2}, \quad f^{(2)}(L) = 5 \cdot \left(-\frac{1}{2}\right)L^{-3/2} = -\frac{5}{2}L^{-3/2}, \quad f^{(3)}(L) = -\frac{5}{2} \cdot \left(-\frac{3}{2}\right)L^{-5/2} = \frac{15}{4}L^{-5/2}

    Each derivative follows the power rule with exponents decreasing by 1 and coefficients multiplying in front.

  3. f(4)=104=20,f(1)(4)=512=52,f(2)(4)=5218=516,f(3)(4)=154132=15128f(4) = 10\sqrt{4} = 20, \quad f^{(1)}(4) = 5 \cdot \frac{1}{2} = \frac{5}{2}, \quad f^{(2)}(4) = -\frac{5}{2} \cdot \frac{1}{8} = -\frac{5}{16}, \quad f^{(3)}(4) = \frac{15}{4} \cdot \frac{1}{32} = \frac{15}{128}

    We substitute L=4L = 4 into each derivative: 4=2\sqrt{4} = 2, 43=8\sqrt{4^3} = 8, 45=32\sqrt{4^5} = 32.

  4. 200!(L4)0+5/21!(L4)+5/162!(L4)2+15/1283!(L4)3\frac{20}{0!}(L-4)^0 + \frac{5/2}{1!}(L-4) + \frac{-5/16}{2!}(L-4)^2 + \frac{15/128}{3!}(L-4)^3

    We apply the Taylor formula by substituting the derivative values and factorials.

  5. 20+52(L4)532(L4)2+5256(L4)320 + \frac{5}{2}(L-4) - \frac{5}{32}(L-4)^2 + \frac{5}{256}(L-4)^3

    We simplify by computing factorials and reducing: 2!=22! = 2 gives 5/161/2=5/32-5/16 \cdot 1/2 = -5/32, and 3!=63! = 6 gives 15/1281/6=15/768=5/25615/128 \cdot 1/6 = 15/768 = 5/256.

Answer: 20+52(L4)532(L4)2+5256(L4)3+20 + \frac{5}{2}(L-4) - \frac{5}{32}(L-4)^2 + \frac{5}{256}(L-4)^3 + \cdots

This example shows Taylor Series applied to a real-world scaling function in a game context. By computing just the first few terms, the game engine can approximate magic effectiveness for nearby levels without evaluating square roots, which saves computation. This is why Taylor polynomials are so valuable in numerical computing, graphics, and physics engines—they trade a small amount of precomputation (finding derivatives) for the ability to quickly approximate functions.

Common mistakes

Where Taylor Series usually goes wrong
Answer came out wrong
Writing a term as f(x)1!(xa)\frac{f'(x)}{1!}(x-a) instead of f(a)1!(xa)\frac{f'(a)}{1!}(x-a).
Always evaluate the derivative at exactly the center point aa: write f(a)f'(a), not f(x)f'(x).
Writing a general term like n=0f(n)(a)(n+1)!(xa)n\sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{(n+1)!}(x-a)^n with the factorial shifted by one.
Keep all three nn values aligned: n=0f(n)(a)n!(xa)n\sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n.
Using the Taylor series for f(x)=ln(x)f(x) = \ln(x) centered at a=1a = 1 to approximate ln(2)\ln(-2) or ln(5)\ln(5).
Before using a Taylor series to approximate, find the radius of convergence (typically using the Ratio Test) and verify that your target xx-value lies within it.
The mistakeWhy it is wrongThe fix
Writing a term as f(x)1!(xa)\frac{f'(x)}{1!}(x-a) instead of f(a)1!(xa)\frac{f'(a)}{1!}(x-a).The coefficient must be a constant number, not a function of xx; if you write f(x)f'(x), you have a function, not a coefficient.Always evaluate the derivative at exactly the center point aa: write f(a)f'(a), not f(x)f'(x).
Writing a general term like n=0f(n)(a)(n+1)!(xa)n\sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{(n+1)!}(x-a)^n with the factorial shifted by one.The factorial index must match the derivative order and the power; the nn in f(n)f^{(n)} (meaning the nn-th derivative) must be exactly the same nn as in n!n! and the exponent (xa)n(x-a)^n.Keep all three nn values aligned: n=0f(n)(a)n!(xa)n\sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n.
Using the Taylor series for f(x)=ln(x)f(x) = \ln(x) centered at a=1a = 1 to approximate ln(2)\ln(-2) or ln(5)\ln(5).A Taylor series only converges within a specific interval around the center point aa, called the radius of convergence; outside this interval, the series may diverge or give meaningless results.Before using a Taylor series to approximate, find the radius of convergence (typically using the Ratio Test) and verify that your target xx-value lies within it.

Tips and when to use something else

  • Always evaluate derivatives at the center point aa, not the variable xx—write f(a)f(a), not f(x)f(x), and f(a)f'(a), not f(x)f'(x).
  • The more terms you keep in the Taylor polynomial, the better the approximation near aa, but accuracy falls off rapidly as you move away from aa—choose your center point strategically.
  • If you need to approximate a function over a wide range of values, Fourier Series may be better for periodic functions; while Taylor Series excels at local accuracy around a single point, Fourier Series can represent periodic functions accurately across their entire period.
  • Use a Taylor polynomial (finitely many terms) rather than the full series when you only need an approximation to a fixed precision—discarding the tail saves computation and avoids convergence issues.

Frequently asked questions

What is the difference between a Taylor Series and a Maclaurin Series?
A Maclaurin Series is simply a Taylor Series centered at a=0a = 0. Every Maclaurin Series is a Taylor Series, but not every Taylor Series is a Maclaurin Series. Maclaurin Series are simpler to compute because all derivatives are evaluated at x=0x = 0, so they are often taught first.
Do I need to memorize Taylor Series formulas for common functions like sin(x)\sin(x) and exe^x?
No—you should learn to derive them from scratch using the Taylor Series formula, as shown in the examples above. Memorizing the final formulas helps speed up exams, but understanding how to build them from first principles is far more important because it lets you handle functions you have never seen before.
Why does a Taylor Series only give a good approximation near the center point aa?
The Taylor Series uses information (the function's derivatives) collected at a single point aa. Far from that point, the function's behavior may be very different from what those derivatives alone can predict. Closer to aa, the early terms dominate and the approximation is excellent; farther away, you would need many more terms to maintain accuracy.
What is the radius of convergence, and when do I need to find it?
The radius of convergence is the distance from the center aa within which the series converges to the actual function value. You need to find it if you want to know the valid domain for your series. The Ratio Test is the standard method; at the boundary of the interval, you may need to test separately. For example, the Taylor series for ln(x)\ln(x) centered at a=1a=1 converges for 0<x20 < x \leq 2.

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