Taylor series calculator with steps

Type or scan a function and a center. MathBuddy builds the Taylor polynomial term by term from its derivatives.

Loading math input...

What this page covers

  • Taylor polynomials of a chosen degree about any center x=ax = a, and Maclaurin polynomials about 0.
  • Each derivative evaluated at the center and divided by the matching factorial to give the coefficient.
  • The standard series for exe^x, sin⁡x\sin x, cos⁡x\cos x, ln⁡(1+x)\ln(1+x) and 11−x\frac{1}{1-x}, and substitution into them.
  • Not covered here: the radius and interval of convergence of the full series (use Power series calculator).

How to enter the problem

  • Type the function, the center and the degree, such as Taylor polynomial of degree 3 of ln x at x = 1.
  • Scan it. Fit the one problem in the frame.
  • Choose a photo. Several problems in one photo are solved as a list.
  • Then tap Solve.

Worked examples

Example 1

Problem

Find the Maclaurin polynomial of degree 3 for e2x\displaystyle e^{2x}.

Answer

Verified

The answer is

1+2x+2x2+4x331 + 2x + 2x^2 + \frac{4x^3}{3}

Explanation

  1. Differentiate three times
    f=e2xf = e^{2x}, f′=2e2xf' = 2e^{2x}, f′′=4e2xf'' = 4e^{2x}, f′′′=8e2xf''' = 8e^{2x}.
  2. Evaluate at the center 0
    f(0)=1f(0) = 1, f′(0)=2f'(0) = 2, f′′(0)=4f''(0) = 4, f′′′(0)=8f'''(0) = 8.
  3. Divide by the factorials
    The coefficients are 10!=1\frac{1}{0!} = 1, 21!=2\frac{2}{1!} = 2, 42!=2\frac{4}{2!} = 2, 83!=43\frac{8}{3!} = \frac{4}{3}.
  4. Write the polynomial
    1+2x+2x2+43x31 + 2x + 2x^2 + \frac{4}{3}x^3.

Example 2

Problem

Find the Taylor polynomial of degree 3 for ln⁡x\displaystyle \ln x centered at x=1\displaystyle x = 1.

Answer

Verified

The answer is

(x−1)−(x−1)22+(x−1)33(x-1) - \frac{(x-1)^2}{2} + \frac{(x-1)^3}{3}

Explanation

  1. Differentiate three times
    f=ln⁡xf = \ln x, f′=1xf' = \frac{1}{x}, f′′=−1x2f'' = -\frac{1}{x^2}, f′′′=2x3f''' = \frac{2}{x^3}.
  2. Evaluate at the center 1
    f(1)=0f(1) = 0, f′(1)=1f'(1) = 1, f′′(1)=−1f''(1) = -1, f′′′(1)=2f'''(1) = 2.
  3. Divide by the factorials
    The coefficients are 00, 11, −12-\frac{1}{2} and 26=13\frac{2}{6} = \frac{1}{3}.
  4. Use powers of (x−1)(x - 1)
    The center is 1, so each term uses (x−1)n(x-1)^n rather than xnx^n.

Example 3

Problem

Find the Maclaurin polynomial of degree 5 for sin⁡(2x)\displaystyle \sin(2x) by substitution.

Answer

Verified

The answer is

2x−4x33+4x5152x - \frac{4x^3}{3} + \frac{4x^5}{15}

Explanation

  1. Start from the series for sine
    sin⁡u≈u−u36+u5120\sin u \approx u - \frac{u^3}{6} + \frac{u^5}{120} up to degree 5.
  2. Substitute u=2xu = 2x
    2x−(2x)36+(2x)5120=2x−8x36+32x51202x - \frac{(2x)^3}{6} + \frac{(2x)^5}{120} = 2x - \frac{8x^3}{6} + \frac{32x^5}{120}
  3. Simplify the coefficients
    86=43\frac{8}{6} = \frac{4}{3} and 32120=415\frac{32}{120} = \frac{4}{15}.

Common mistakes

  • Leaving out the factorials. For e2xe^{2x} that gives 1+2x+4x2+8x31 + 2x + 4x^2 + 8x^3 instead of 1+2x+2x2+4x331 + 2x + 2x^2 + \frac{4x^3}{3}.
  • Writing powers of xx instead of (x−a)(x - a) when the center is not 0. About x=1x = 1, every term uses (x−1)n(x-1)^n.
  • Counting the degree by the number of terms. The degree 4 polynomial of cos⁡x\cos x has only three nonzero terms, because the odd derivatives of cos⁡x\cos x are 0 at the center.

Checks, assumptions and limits

  • Check numerically near the center. At x=0.1x = 0.1 the runnable example gives 1−0.005+0.0000041667≈0.99500421 - 0.005 + 0.0000041667 \approx 0.9950042, and cos⁡(0.1)≈0.9950042\cos(0.1) \approx 0.9950042.
  • The polynomial is an approximation. It is closest near the center and usually drifts away farther out.
  • Angles are in radians. The series for sin⁡x\sin x and cos⁡x\cos x hold only with xx in radians.
  • MathBuddy can make mistakes. Double check important steps.

Frequently asked questions

A Maclaurin series is a Taylor series centered at x=0x = 0. The method is the same: evaluate the derivatives at the center, divide the nnth one by n!n!, and multiply by (x−a)n(x - a)^n.

As many as the degree asks for. A degree nn polynomial includes every power up to (x−a)n(x - a)^n, even when some of the coefficients are 0.

Yes. Ask a follow-up question in the same thread. A typed follow-up needs sign-in.

1 math question to try today without signing in, 3 a day signed in, unlimited with Pro.

Ready to solve your next math problem?

Try one problem free in your browser. Create a free account for 3 math questions a day.

Last updated: · MathBuddy