How to find a Taylor series

A Taylor series represents a function as an infinite sum of terms calculated from the values of its derivatives at a single point. It applies whenever a function is infinitely differentiable in a neighborhood around the chosen center point x=ax=a.

The setup

Identify the function f(x)f(x) and the center point x=ax=a. You must be able to differentiate f(x)f(x) repeatedly. Write down the general Taylor series definition: f(x)=n=0f(n)(a)n!(xa)nf(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!} (x-a)^n.

The steps

  1. Evaluate the base function at the center: find f(a)f(a). 2. Compute the first few derivatives f(x),f(x),f(x)f'(x), f''(x), f'''(x) and evaluate each at x=ax=a. 3. Substitute these scalar values into the Taylor series formula. 4. Identify the mathematical pattern in the evaluated derivatives to write the general nn-th term for the sum.

Checking the result

Apply the Ratio Test to the general term to find the interval of convergence. Verify that substituting x=ax=a into your series collapses all terms except the first, yielding f(a)f(a).

Common errors

Omitting the n!n! denominator in the series terms. Forgetting the (xa)n(x-a)^n factor or writing xnx^n instead of (xa)n(x-a)^n when aeq0a eq 0. Making sign errors when differentiating trigonometric functions repeatedly.

Worked example

Find the Taylor series for f(x)=sin(x)f(x) = \sin(x) centered at a=0a = 0.

  1. f(0)=sin(0)=0f(0) = \sin(0) = 0. 2. f(x)=cos(x)    f(0)=1f'(x) = \cos(x) \implies f'(0) = 1. f(x)=sin(x)    f(0)=0f''(x) = -\sin(x) \implies f''(0) = 0. f(x)=cos(x)    f(0)=1f'''(x) = -\cos(x) \implies f'''(0) = -1. f(4)(x)=sin(x)    f(4)(0)=0f^{(4)}(x) = \sin(x) \implies f^{(4)}(0) = 0. 3. Substitute into formula: f(x)=0+11!x02!x213!x3+0+15!x5...f(x) = 0 + \frac{1}{1!}x - \frac{0}{2!}x^2 - \frac{1}{3!}x^3 + 0 + \frac{1}{5!}x^5 - ... 4. The even terms are zero and odd terms alternate signs. The general term is n=0(1)n(2n+1)!x2n+1\sum_{n=0}^{\infty} \frac{(-1)^n}{(2n+1)!} x^{2n+1}.

FAQ

Run your own problem

References: Calculus: Early Transcendentals by James Stewart · OpenStax Calculus Volume 2

See also