Write down the function to be expanded
f(x)=sinxcosx The expansion is built from the standard series, not from a table of derivatives.
Quote the standard series for the first factor
sinu=u−3!u3+5!u5−⋯ This standard result is quoted, not re-derived.
Substitute u=x into the standard series for the first factor
The composite series is obtained by substituting the inner function into the standard result.
Expand sin(x) in ascending powers of x for the first factor
sin(x)=x−6x3+120x5−5040x7+⋯ Every power of x above x7 is discarded straight away.
Quote the standard series for the second factor
cosu=1−2!u2+4!u4−⋯ This standard result is quoted, not re-derived.
Substitute u=x into the standard series for the second factor
The composite series is obtained by substituting the inner function into the standard result.
Expand cos(x) in ascending powers of x for the second factor
cos(x)=1−2x2+24x4−720x6+⋯ Every power of x above x7 is discarded straight away.
Multiply the series together
f(x)≈(x−6x3+120x5−5040x7)(1−2x2+24x4−720x6) Only the products that give a power of x at most x7 are needed.
Expand the product and collect like powers of x
f(x)≈x−32x3+152x5−3154x7+6048041x9−50400x11+3628800x13+⋯ Collecting like terms gives the coefficients of the composite series.
Discard the terms of degree greater than x7
f(x)≈x−32x3+152x5−3154x7 The question only asks for the terms up to x7.
State the interval of validity of the expansion
The expansion is only valid where every standard series used converges.
Check the expansion numerically at x=501
f(501)≈0.019994667,P(501)≈0.019994667 The truncated series and the function agree to several decimal places for small x, as they must.
Check the expansion numerically at x=1001
f(1001)≈0.0099993333,P(1001)≈0.0099993333 The truncated series and the function agree to several decimal places for small x, as they must.
Recall the exponential series
eu=1+u+2!u2+3!u3+4!u4+⋯ This is a standard result; it is valid for every real u.
Recall the sine series
sinu=u−3!u3+5!u5−⋯ Only odd powers appear, and the signs alternate.
Recall the cosine series
cosu=1−2!u2+4!u4−⋯ Only even powers appear, and the signs alternate.
Recall the logarithmic series
ln(1+u)=u−2u2+3u3−4u4+⋯ This series is only valid for −1<u≤1.
State the required series expansion
f(x)≈x−32x3+152x5−3154x7 This is the required series expansion in ascending powers of x.