Using only the series expansions $\sin x = x- \dfrac{x^3} {3!} + \dfrac{x^5} {5!} + ...$ and $\cos x = 1 - \dfrac{x^2} {2!} + \dfrac{x^4}{4!} + ...$ Find the series expansions of the $\tan x$ function up to the $x^5$ term.
So it is: $$ \frac {x- \dfrac{x^3} {3!} + \dfrac{x^5} {5!} + ...} {1 - \dfrac{x^2} {2!} + \dfrac{x^4}{4!} + ...} $$
However many times I retry, trying long division results :
$$ \require{enclose} \begin{array}{rll} Q(x) \\[-3pt] 1 - \dfrac{x^2} {2!} + \dfrac{x^4}{4!} + ... \enclose{longdiv}{x- \dfrac{x^3} {3!} + \dfrac{x^5} {5!} + ...}\kern-.2ex \\[-3pt] \underline{x-\dfrac{x^3} {2!} + \dfrac{x^5} {4!}\phantom{0000}} \\[-3pt] \dfrac{-x^3} {3!} + \dfrac{x^3} {2!}+ \dfrac{x^5} {5!}-\dfrac{x^5} {4!} \phantom{00}&& \\[-3pt] \underline{\phantom{0}\dfrac{-x^3} {3!} + \dfrac{x^3} {2!}- \dfrac{x^5} {2!2!}+ \dfrac{x^5} {3!2!}} && \\[-3pt] \dfrac{x^5} {5!} - \dfrac{x^5} {4!} + \dfrac{x^5} {2!2!}-\dfrac{x^5} {3!2!}&& \\[-3pt] \end{array} $$
Sorry for the horrible format. but this is the best i can do..
$$ Q(x) = x + (\frac {x^3}{2!} - \frac {x^3}{3!}) + (\dfrac {x^5}{5!} - \dfrac {x^5}{4!} + \dfrac {x^5}{2!2!} - \dfrac {x^5}{3!2!}) + ... $$
Which results the coefficients of the $x^5$ term $\dfrac 1 {20}$.
This is clearly a wrong value.
I can't seem to get $\dfrac 2 {15}$ instead.
Where did I get wrong?
Many thanks in advance.