Using power series representation find an approximation to $$\int_{0}^{0.1} \arctan(2x)dx$$
This is my solution:
$$\frac{d}{dx}\arctan(2x)=\ \frac{2}{1+4x^2} $$ $$\int_{0}^{0.1}\frac{d}{dx}\arctan(2x)=\ \int_{0}^{0.1}\frac{2}{1+4x^2} dx$$ $$\arctan(2x)=\ \int_{0}^{0.1}\frac{2}{1+4x^2} dx$$
$$= \int_{0}^{0.1}2\frac{1}{1-(-4x^2)} \, dx =\int_{0}^{0.1} \sum_{n=0}^\infty 2(-1)^n (4x^2)^n \, dx= \sum_{n=0}^{\infty}\frac{2(-1)^{n}4^{n}0.1^{2n+1}}{2n+1}$$
When I input the formula that I got in the calculator I get a value of 0.1973. But when I input the integral of arctangent I get 0.0099. I guess I missed something and can't find what. Where is my mistake?
No, you are confusing things and you are not doing what you are required to do: you are not required to integrate the derivative of $\arctan$, but $\arctan$ itself.
Start by finding the Taylor series of $\arctan x$ around $0$:
$$(\arctan x)' = \frac 1 {1 + x^2} = \sum _{n = 0} ^\infty (-x^2)^n \implies \arctan x = \int \sum _{n = 0} ^\infty (-x^2)^n \ \Bbb d x = \sum _{n = 0} ^\infty (-1)^n \frac {x^{2n+1}} {2n+1} + C .$$
Since $\arctan 0 = 0$, we get that $C=0$.
Next, plugging $2x$ instead of $x$ in the above series leads to
$$\arctan 2x = \sum _{n = 0} ^\infty (-1)^n 2^{2n+1} \frac {x^{2n+1}} {2n+1} .$$
Using this series we may write
$$\int \limits _0 ^{0.1} \arctan 2x \ \Bbb d x = \int \limits _0 ^{0.1} \sum _{n = 0} ^\infty (-1)^n 2^{2n+1} \frac {x^{2n+1}} {2n+1} \ \Bbb d x = \sum _{n = 0} ^\infty \frac {(-1)^n 2^{2n+1}} {2n+1} \int \limits _0 ^{0.1} x^{2n+1} \ \Bbb d x = \\ \sum _{n = 0} ^\infty \frac {(-1)^n 2^{2n+1}} {2n+1} \frac {x^{2n+2}} {2n+2} \Bigg| _0 ^{0.1} = \sum _{n = 0} ^\infty \frac {(-1)^n 2^{2n+1}} {2n+1} \frac {(0.1)^{2n+2}} {2n+2} = \\ 0.02 \sum _{n = 0} ^\infty \frac {(-0.04)^n} {(2n+1)(2n+2)} .$$
Since the terms of this series decrease very quickly, it is enough to compute just the first 3 of it in order to obtain a satisfactory approximation:
$$0.02 \sum _{n = 0} ^2 \frac {(-0.04)^n} {(2n+1)(2n+2)} = 0.02 \left( \frac 1 2 - \frac {0.04} {12} + \frac {0.04^2} {30} \right) = 0.0099344 .$$