Write down the Taylor series expansion about the origin in the region $|x| < 1$ for the function $$f(x)=x\tan^{-1}x-\frac{1}{2}\log(1+x^2)$$
I cant find the general formula for $f^{(n)}(x)$.an I get some help?
Write down the Taylor series expansion about the origin in the region $|x| < 1$ for the function $$f(x)=x\tan^{-1}x-\frac{1}{2}\log(1+x^2)$$
I cant find the general formula for $f^{(n)}(x)$.an I get some help?
Hint:
Write down the standard expansion of $\arctan x$. Multiply term by term by $x$.
Write down the standard expansion of $\ln(1+t)$. Replace $t$ everywhere by $x^2$. Multiply term by term by $-\frac{1}{2}$.
Add the results of (1) and (2), collecting the coefficients of like powers of $x$ together.
Remark: If you do not know the power series expansion of $\arctan x$, you can probably write down the power series expansion of $\frac{1}{1-u}$, and hence of $\frac{1}{1+t^2}$. Then use the fact that $$\arctan x=\int_0^x \frac{dt}{1+t^2}\,dt,$$ integrating the series for $\frac{1}{1+t^2}$ term by term.
If you do not know the power series expansion of $\ln(1+t)$, integrate the power series expansion of $\frac{1}{1+u}$ term by term from $0$ to $t$.
$f(u)=\frac{1}{1-u}\Rightarrow f'(x)=\dfrac{(-1)(-1)}{(1-u)^2}=\dfrac{1}{(1-u)^2}$
$f''(u)=\dfrac{1.(-2).(-1)}{(1-u)^3}=\dfrac{1.2}{(1-u)^3}$
$f'''(u)=\dfrac{1.2.(-3)(-1)}{(1-u)^4}=\dfrac{1.2.3}{(1-u)^4}$
More generally ; $f^{(n)}(u)=\dfrac{n!}{(1-u)^{n+1}}$
Taylor series for $f(u)$ is $$\sum_{n=0}^{\infty} f(u)=\sum_{n=0}^{\infty}u^n$$
For $u=-t^2$ we have $$\sum_{n=0}^{\infty} f(t)=\sum_{n=0}^{\infty}(-1)^n(t)^{2n}$$
$$\arctan x=\int_0^x \frac{dt}{1+t^2}$$ $$=\int_0^x \sum_{n=0}^{\infty}(-1)^n(t)^{2n}\,dt=\sum_{n=0}^{\infty}(-1)^n\int_0^x (t)^{2n}dt=\sum_{n=0}^{\infty}(-1)^n\frac{x^{2n+1}}{2n+1}$$
So, $$\arctan x=\sum_{n=0}^{\infty}(-1)^n\frac{x^{2n+1}}{2n+1}$$
$$x\arctan x=\sum_{n=0}^{\infty}(-1)^n\frac{x^{2n+2}}{2n+1}$$
$f(u)=\dfrac{1}{1+u}\Rightarrow f'(u)=\dfrac{-1}{(1+u)^2}$
$f''(u)=\dfrac{(-1)(-2)}{(1+u)^3}=\frac{1.2}{(1+u)^3}$
$f'''(u)=\dfrac{1.2.(-3)}{(1+u)^4}=\frac{(-1).1.2.3}{(1+u)^4}$
More generally , $f^{(n)}(u)=\frac{(-1)^nn!}{(1+u)^{n+1}}$
Taylor series for $f(u)$ is $$\sum_{n=0}^{\infty} f(u)=\sum_{n=0}^{\infty}(-1)^n u^n$$
$$\log (1+x)=\int_0^x \frac{du}{1+u}$$
$$=\int_0^x \sum_{n=0}^{\infty}(-1)^n u^n du=\sum_{n=0}^{\infty}(-1)^n \frac{x^{n+1}}{n+1}$$
We have $$\log (1+x)=\sum_{n=0}^{\infty}(-1)^n \frac{x^{n+1}}{n+1}\Rightarrow \log (1+x^2)=\sum_{n=0}^{\infty}(-1)^n \frac{x^{2n+2}}{n+1}$$ $$\Rightarrow \frac{1}{2}\log (1+x^2)=\sum_{n=0}^{\infty}(-1)^n \frac{x^{2n+2}}{2(n+1)}$$
$$\Rightarrow -\frac{1}{2}\log (1+x^2)=\sum_{n=0}^{\infty}(-1)^{n+1} \frac{x^{2n+2}}{2(n+1)}$$
We have : $$x\arctan x=\sum_{n=0}^{\infty}(-1)^n\frac{x^{2n+2}}{2n+1}; -\frac{1}{2}\log (1+x^2)=\sum_{n=0}^{\infty}(-1)^{n+1} \frac{x^{2n+2}}{2(n+1)}$$
$$x\arctan x-\frac{1}{2}\log (1+x^2)=\sum_{n=0}^{\infty}(-1)^n\frac{x^{2n+2}}{2n+1}+\sum_{n=0}^{\infty}(-1)^{n+1} \frac{x^{2n+2}}{2(n+1)}$$
$$=\sum_{n=0}^{\infty}\frac{(-1)^n(2n+2)+(2n+1)(-1)^{n+1}}{(2n+1)2(n+1)}x^{2n+2}$$
$$=\sum_{n=0}^{\infty}\frac{(-1)^n}{(2n+1)2(n+1)}x^{2n+2}$$
$$=\sum_{n=0}^{\infty}\frac{(-1)^n}{(2n+1)2(n+1)}x^{2(n+1)}$$
$$=\sum_{n=1}^{\infty}\frac{(-1)^{n-1}}{2n(2n-1)}x^{2n}$$