Calculus · real student question

Find the Taylor series of 3 sin(x)/cos^2(x) + sin(2x) at x = 0 up to degree 5.

Question

Find the Taylor series of f(x)=3sinxcos2x+sin(2x)f(x)=\frac{3\sin x}{\cos^{2}x}+\sin(2x) about x=0x=0, up to and including the term in x5x^{5}.

Step-by-step solution

  1. Turn the quotient into a product of known series. Direct repeated differentiation of 3sinx/cos2x3\sin x/\cos^2 x is painful, so write it as 3sinxsec2x3\sin x\cdot\sec^{2}x and use two standard Maclaurin expansions: sinx=xx36+x5120+O(x7),sec2x=1+x2+23x4+O(x6).\sin x=x-\frac{x^{3}}{6}+\frac{x^{5}}{120}+O(x^{7}),\qquad \sec^{2}x=1+x^{2}+\frac{2}{3}x^{4}+O(x^{6}).

  2. Multiply, keeping only terms up to x^5. Collecting the products whose total degree is at most 55: x1=xx\cdot 1=x; xx2=x3x\cdot x^{2}=x^{3}; x361=x36-\frac{x^{3}}{6}\cdot 1=-\frac{x^{3}}{6}; x23x4=23x5x\cdot\frac23x^{4}=\frac23x^{5}; x36x2=x56-\frac{x^{3}}{6}\cdot x^{2}=-\frac{x^{5}}{6}; x51201=x5120\frac{x^{5}}{120}\cdot 1=\frac{x^{5}}{120}. Hence sinxsec2x=x+56x3+(2316+1120)x5+O(x6)=x+56x3+91120x5+O(x6).\sin x\,\sec^{2}x=x+\frac56x^{3}+\left(\frac23-\frac16+\frac1{120}\right)x^{5}+O(x^{6})=x+\frac56x^{3}+\frac{91}{120}x^{5}+O(x^{6}).

  3. Scale by 3. Multiplying through gives 3sinxcos2x=3x+52x3+9140x5+O(x6).\frac{3\sin x}{\cos^{2}x}=3x+\frac{5}{2}x^{3}+\frac{91}{40}x^{5}+O(x^{6}).

  4. Expand the second term by substitution. Replacing xx by 2x2x in the sine series, sin(2x)=2x(2x)36+(2x)5120+O(x7)=2x43x3+415x5+O(x7).\sin(2x)=2x-\frac{(2x)^{3}}{6}+\frac{(2x)^{5}}{120}+O(x^{7})=2x-\frac43x^{3}+\frac{4}{15}x^{5}+O(x^{7}).

  5. Add the two series coefficient by coefficient. The xx terms give 3+2=53+2=5; the x3x^{3} terms give 5243=1586=76\frac52-\frac43=\frac{15-8}{6}=\frac76; the x5x^{5} terms give 9140+415=273+32120=305120=6124\frac{91}{40}+\frac{4}{15}=\frac{273+32}{120}=\frac{305}{120}=\frac{61}{24}. Only odd powers survive, as expected since ff is odd.

  6. Check the polynomial numerically. Evaluating f(x)(5x+76x3+6124x5)f(x)-\left(5x+\frac76x^{3}+\frac{61}{24}x^{5}\right) at x=0.01,0.02,0.05x=0.01,\,0.02,\,0.05 gives 7.5×1011-7.5\times10^{-11}, 2.40×109-2.40\times10^{-9} and 2.34×107-2.34\times10^{-7}; dividing each by x7x^{7} gives roughly the same constant, confirming the error is O(x7)O(x^{7}) and no lower-order term was dropped.

Answer

5x+76x3+6124x5+O(x7)5x+\frac{7}{6}x^{3}+\frac{61}{24}x^{5}+O(x^{7})

Need to solve a different problem like this? Open the solver →