Taylor Series Calculator

Type a function, a centre and an order to find its Taylor polynomial.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

A number such as 0 or 1, or pi/2. The function must be defined there.

The highest power to keep, a whole number from 0 to 20.

Try

Result

You enteredT4[ex] about x=0T_{4}\left[e^{x}\right] \text{ about } x = 0

1+x+x22+x36+x424\displaystyle 1 + x + \frac{x^{2}}{2} + \frac{x^{3}}{6} + \frac{x^{4}}{24}

Next term

x5120\displaystyle \frac{x^{5}}{120}
Show the work
  1. Taylor series

    The Taylor series about a=0a = 0 has coefficients f(k)(a)k!\frac{f^{(k)}(a)}{k!}: take derivatives, evaluate each at aa and divide by k!k!.

    Using ∑k=0∞f(k)(a)k! (x−a)k\sum_{k=0}^{\infty} \frac{f^{(k)}(a)}{k!}\,(x - a)^k

  2. Function value

    Evaluate ff at x=0x = 0.

    f(0)(x)=exf(0)(0)=1f(0)(a)0!=1\begin{gathered} f^{(0)}(x) = e^{x} \\ f^{(0)}\left(0\right) = 1 \\ \frac{f^{(0)}(a)}{0!} = 1 \end{gathered}
  3. Derivative of order 1

    Differentiate once more, evaluate at x=0x = 0 and divide by 1!=11! = 1.

    f(1)(x)=exf(1)(0)=1f(1)(a)1!=1\begin{gathered} f^{(1)}(x) = e^{x} \\ f^{(1)}\left(0\right) = 1 \\ \frac{f^{(1)}(a)}{1!} = 1 \end{gathered}
  4. Derivative of order 2

    Differentiate once more, evaluate at x=0x = 0 and divide by 2!=22! = 2.

    f(2)(x)=exf(2)(0)=1f(2)(a)2!=12\begin{gathered} f^{(2)}(x) = e^{x} \\ f^{(2)}\left(0\right) = 1 \\ \frac{f^{(2)}(a)}{2!} = \frac{1}{2} \end{gathered}
  5. Derivative of order 3

    Differentiate once more, evaluate at x=0x = 0 and divide by 3!=63! = 6.

    f(3)(x)=exf(3)(0)=1f(3)(a)3!=16\begin{gathered} f^{(3)}(x) = e^{x} \\ f^{(3)}\left(0\right) = 1 \\ \frac{f^{(3)}(a)}{3!} = \frac{1}{6} \end{gathered}
  6. Derivative of order 4

    Differentiate once more, evaluate at x=0x = 0 and divide by 4!=244! = 24.

    f(4)(x)=exf(4)(0)=1f(4)(a)4!=124\begin{gathered} f^{(4)}(x) = e^{x} \\ f^{(4)}\left(0\right) = 1 \\ \frac{f^{(4)}(a)}{4!} = \frac{1}{24} \end{gathered}
  7. Assemble the polynomial

    Multiply each coefficient by (x−a)k(x - a)^k and add, leaving out the terms whose coefficient is 0.

    T4(x)=1+x+x22+x36+x424T_{4}(x) = 1 + x + \frac{x^{2}}{2} + \frac{x^{3}}{6} + \frac{x^{4}}{24}
  8. Result

    The Taylor polynomial of order 4 is 1+x+x22+x36+x4241 + x + \frac{x^{2}}{2} + \frac{x^{3}}{6} + \frac{x^{4}}{24}.

Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = e^x
  • y = 1 + x + x^2/2 + x^3/6 + x^4/24

Points on the graph

  • y = 1 + x + x^2/2 + x^3/6 + x^4/24: minimum (-1.596072, 0.270395)
  • y = e^x and y = 1 + x + x^2/2 + x^3/6 + x^4/24: intersection (0, 1)

Worked examples