hello I am having some issue and need a little guidance with this taylor expansion
$$f(x)=arctan(e^x -1)$$
the terms i should get are $x+\frac{x^2}{2}-\frac{x^3}{6}-\frac{11 x^4}{24}-\frac{5 x^5}{24}$ but I am having some trouble with the expansion
should I use the definition of $e^x = \sum_{k=0}^\infty \frac{x^k}{k!}$ and truncate the first two terms $ 1 + x$ or should do three terms instead $1 + x +\frac{x^2}{2}$ after which taking the derivative of $$arctan(x)= \frac{1}{1 + x^2}*\frac{dy}{dx} $$ and then applying the the integration of the geometric series where by $$\int\frac{1}{1-x}= \int\sum_{k=0}^\infty {x^k}$$
or should i approach the question differently all together?
Best Answer
All roads lead to rome! Let's proceed by your first idea. We have $$\frac1{1+u^2}=1-u^2+u^4+O(u^6)$$ hence using that $\arctan(0)=0$ we get $$\arctan u=u-\frac{u^3}{3}+\frac{u^5}{5}+O(u^6)$$ moreover we have
$$e^x-1=x+\frac{x^2}{2}+\frac{x^3}{6}+\frac{x^4}{24}+\frac{x^5}{120}+O(x^6)$$ now we replace $u$ by $x+\frac{x^2}{2}+\frac{x^3}{6}+\frac{x^4}{24}+\frac{x^5}{120}$ and we only retain the terms with degree less or equal $5$ we get the desired result.