Stuck on this? Solve it with AI
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)=3sin⁡xcos⁡2x+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 3sin⁡x/cos⁡2x3\sin x/\cos^2 x is painful, so write it as 3sin⁡x⋅sec⁡2x3\sin x\cdot\sec^{2}x and use two standard Maclaurin expansions: sin⁡x=x−x36+x5120+O(x7),sec⁡2x=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: x⋅1=xx\cdot 1=x; x⋅x2=x3x\cdot x^{2}=x^{3}; −x36⋅1=−x36-\frac{x^{3}}{6}\cdot 1=-\frac{x^{3}}{6}; x⋅23x4=23x5x\cdot\frac23x^{4}=\frac23x^{5}; −x36⋅x2=−x56-\frac{x^{3}}{6}\cdot x^{2}=-\frac{x^{5}}{6}; x5120⋅1=x5120\frac{x^{5}}{120}\cdot 1=\frac{x^{5}}{120}. Hence sin⁡x sec⁡2x=x+56x3+(23−16+1120)x5+O(x6)=x+56x3+61120x5+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{61}{120}x^{5}+O(x^{6}).

  3. Scale by 3. Multiplying through gives 3sin⁡xcos⁡2x=3x+52x3+6140x5+O(x6).\frac{3\sin x}{\cos^{2}x}=3x+\frac{5}{2}x^{3}+\frac{61}{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)=2x−43x3+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 52−43=15−86=76\frac52-\frac43=\frac{15-8}{6}=\frac76; the x5x^{5} terms give 6140+415=183+32120=215120=4324\frac{61}{40}+\frac{4}{15}=\frac{183+32}{120}=\frac{215}{120}=\frac{43}{24}. Only odd powers survive, as expected since ff is odd.

  6. Check the polynomial numerically. Evaluating f(x)−(5x+76x3+4324x5)f(x)-\left(5x+\frac76x^{3}+\frac{43}{24}x^{5}\right) at x=0.01, 0.02, 0.05x=0.01,\,0.02,\,0.05 gives 8.0×10−158.0\times10^{-15}, 1.0×10−121.0\times10^{-12} and 6.3×10−106.3\times10^{-10}; dividing each by x7x^{7} gives roughly the same constant 0.800.80, confirming the error is O(x7)O(x^{7}) and no lower-order term was dropped.

Answer

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

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