The derivative of −sinxis −cosx. One more derivative gives sinx again, so the derivatives repeat every four steps.
f′′′(x)=−cosx
4
Evaluate at 0
sin0=0 and cos0=1, so the values at 0 cycle 0, 1,0,−1.
Derivatives of sinx at 0
k
0
1
2
3
4
5
f(k)(x)
sinx
cosx
−sinx
−cosx
sinx
cosx
f(k)(0)
0
1
0
−1
0
1
5
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−3!x3+5!x5−⋯
6
Approximate sin0.5
Substitute 0.5 into the cubic. 0.5−0.125/6=23/48≈0.479167.
0.5−60.53=4823
7
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.
1200.55=38401
Result
sinx=x−x3/3!+x5/5!−⋯, and sin0.5≈0.479167, with error below 0.00026.
sinx=x−3!x3+5!x5−⋯
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 cosxare −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.
Use the sine series to find the first three nonzero terms of the series of sin(2x), without differentiating.
Show the answer and explanation
2x−4x3/3+4x5/15.
Replace x with 2x in x−x3/3!+x5/5!. That gives 2x−8x3/6+32x5/120, which simplifies to 2x−4x3/3+4x5/15. At x=0.1 it gives 0.198669, which matches sin0.2 to six places.
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.