Chalk−1

Math · Calculus II · Worked example

Find the Maclaurin series of sin x

Find the Maclaurin series of sinx, and use its first two terms to approximate sin0.5.

sinx=∑k=0∞f⁡(k)(0)k!xk

Try one — Chalk checks each line

Differentiate once

Start from f⁡(x)=sinx. Its derivative is cosx.

f′(x)=cosx

Differentiate again

The derivative of cosx is −sinx.

f′′(x)=−sinx

Differentiate a third time

The derivative of −sinx is −cosx. One more derivative gives sinx again, so the derivatives repeat every four steps.

f′′⁢′(x)=−cosx

Evaluate at 0

sin0=0 and cos0=1, so the values at 0 cycle 0, 1, 0, −1.

Derivatives of sinx at 0
k012345
f⁡(k)(x)sinxcosx−sinx−cosxsinxcosx
f⁡(k)(0)010−101

Build the series

The even derivatives are 0 at 0, so only odd powers survive, and their signs alternate. Dividing by the factorials gives the series. Stopping after the x3 term gives the cubic P⁢(x)=x−x3/6.

sinx=x−x33!+x55!−⋯

Approximate sin0.5

Substitute 0.5 into the cubic. 0.5−0.125⁢/6 =23⁢/48 ≈0.479167.

0.5−0.536=2348

Bound the error

At x=0.5 the series alternates with terms that shrink, so the error is less than the next term, 0.55/5!≈0.00026. The true value, sin0.5=0.479426, is 0.000259 away.

0.55120=13840

Result

sinx =x−x3/3!+x5/5!−⋯, and sin0.5≈0.479167, with error below 0.00026.

sinx=x−x33!+x55!−⋯

Your turn

1. One like the example

Find the first three nonzero terms of the Maclaurin series of cosx, and use them to approximate cos0.5.

Show the answer and explanation

1−x2/2+x4/24, which gives cos0.5≈0.877604.

The derivatives of cosx are −sinx, −cosx, sinx and cosx, so their values at 0 cycle 1, 0, −1, 0, 1. Dividing by the factorials gives 1−x2/2!+x4/4!. At 0.5 this is 0.877604, within 0.00003 of cos0.5.

f⁡(x)=cosxf′(x)=−sinxf′′(x)=−cosxf′′⁢′(x)=sinxf⁡(4)(x)=cosxP⁢(x)=1−x22+x424P⁢(0.5)≈0.877604

2. A variation

Use the sine series to find the first three nonzero terms of the series of sin(2⁢x), without differentiating.

Show the answer and explanation

2⁢x−4x3/3+4x5/15.

Replace x with 2⁢x in x−x3/3!+x5/5!. That gives 2⁢x−8x3/6+32x5/120, which simplifies to 2⁢x−4x3/3+4x5/15. At x=0.1 it gives 0.198669, which matches sin0.2 to six places.

P⁢(x)=2⁢x−(2⁢x)36+(2⁢x)5120P⁢(x)=2⁢x−4x33+4x515P⁢(0.1)≈0.198669

3. Somewhere new

e−x2 has no elementary antiderivative. Use the first three terms of its series to estimate the integral of e−x2 from 0 to 0.5.

Show the answer and explanation

443⁢/960≈0.4615. The true value is 0.46128.

Substituting −x2 into the series for ex gives 1−x2+x4/2−⋯. Integrating term by term from 0 to 0.5 gives 0.5−0.125⁢/3+0.03125⁢/10 =443⁢/960. The series of the integral alternates, so the error is below the next term, 0.57/42≈0.00019.

∫00.5(1−x2+x42)d⁢x0.5−0.533+0.5510443960443960≈0.4615

Keep exploring

In Taylor Approximation, raise the degree from 3 to 5. The sampled error on [0,0.5] falls from 0.00026 to 0.0000015.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Open Taylor Approximation Check the steps in Math Study the 7 key terms Open worked example on a board Taylor Approximation in Math Reference

Your existing work stays on this device. Examples open as editable copies.