Calculus · real student question

Find the Maclaurin series of tan(x)/(1 + x^2) up to and including the degree 7 term.

Question

Find the Maclaurin series of

f(x)=tanx1+x2f(x)=\frac{\tan x}{1+x^2}

up to and including the x7x^7 term.

Step-by-step solution

  1. Choose multiplication over repeated differentiation. Computing f(7)(0)f^{(7)}(0) directly would be brutal. Instead use two series you already know and multiply them, keeping only terms of degree 7\le 7:

    tanx=x+x33+2x515+17x7315+O ⁣(x9)\tan x=x+\frac{x^3}{3}+\frac{2x^5}{15}+\frac{17x^7}{315}+O\!\left(x^9\right)

    11+x2=1x2+x4x6+O ⁣(x8)\frac{1}{1+x^2}=1-x^2+x^4-x^6+O\!\left(x^8\right)

    The second is the geometric series (1)nx2n\sum(-1)^n x^{2n}, valid for x<1|x|<1.

  2. Note that only odd powers can survive. tanx\tan x is odd and 11+x2\dfrac{1}{1+x^2} is even, so their product is odd — every even coefficient must vanish. That halves the bookkeeping and gives an instant error check.

  3. Collect the x3x^3 and x5x^5 coefficients. Multiply each term of the tangent series by each term of the geometric series and gather like powers:

    [x3]:  1(1)+131=23[x^3]:\; 1\cdot(-1)+\frac13\cdot 1=-\frac23

    [x5]:  11+13(1)+2151=155+215=1215=45[x^5]:\; 1\cdot 1+\frac13\cdot(-1)+\frac{2}{15}\cdot 1=\frac{15-5+2}{15}=\frac{12}{15}=\frac45

  4. Collect the x7x^7 coefficient. Four products contribute:

    [x7]:  1(1)+131+215(1)+173151[x^7]:\;1\cdot(-1)+\frac13\cdot 1+\frac{2}{15}\cdot(-1)+\frac{17}{315}\cdot 1

    Over the common denominator 315315: 315+10542+17315=235315=4763\dfrac{-315+105-42+17}{315}=\dfrac{-235}{315}=-\dfrac{47}{63}.

  5. Assemble the series and test it numerically.

    tanx1+x2=x23x3+45x54763x7+O ⁣(x9)\frac{\tan x}{1+x^2}=x-\frac{2}{3}x^3+\frac{4}{5}x^5-\frac{47}{63}x^7+O\!\left(x^9\right)

    At x=0.1x=0.1 the truncated series gives 0.099341258730.09934125873 while tan(0.1)/1.01=0.09934125949\tan(0.1)/1.01=0.09934125949 — agreement to 88 decimal places, exactly the accuracy an O(x9)O(x^9) error term predicts \checkmark.

Answer

tanx1+x2=x23x3+45x54763x7+O ⁣(x9)\frac{\tan x}{1+x^2}=x-\frac{2}{3}x^3+\frac{4}{5}x^5-\frac{47}{63}x^7+O\!\left(x^9\right)

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