I am trying to integrate the following integral:
$$\int_{0}^{1} \frac{dx}{(x^2+1)^2}$$
However, I am always getting the wrong answer in the end.
What I have tried doing is the following: $$\int \frac{dx}{(x^2+1)^2} = \int \frac{1}{(\tan^2\alpha + 1)}\times \sec^2\alpha \text{ }d\alpha = \int \frac{1}{\sec^2\alpha}d\alpha =\int \cos^2\alpha \text{ }d\alpha$$
$$= \frac{1}{2} \int1+\cos(2\alpha) \text{ }d\alpha$$ Now, at this step I was trying to get $\alpha$ in terms of $x$ using the triangle. So I know that $\alpha = \arctan(x)$ and $\sin(2\alpha)=2\sin \alpha \cos\alpha = 2(\frac{x}{x^2+1})(\frac{1}{x^2+1})$. Upon substituting it back, I get that $$\int \frac{dx}{(x^2+1)^2} =\frac{1}{2}(\arctan(x)+\frac{x}{2(x^2+1)^2})$$ And when I try to find $\int_{0}^{1} \frac{dx}{(x^2+1)^2}$, I get: $$\int_{0}^{1} \frac{dx}{(x^2+1)^2} = \frac{1}{2}(\arctan(1)+\frac{1}{2(1^2+1)^2}) - \frac{1}{2}(\arctan(0)+\frac{0}{2(0^2+1)^2}) = 0.5177$$ However, the answer in the textbook is said to be $0.6427$ and interestingly enough, when I add a $2$ like so $$\int \frac{dx}{(x^2+1)^2} =\frac{1}{2}(\arctan(x)+\mathbf{2}\frac{x}{(x^2+1)^2})$$ I get the correct solution, which is quite odd since I based my solution on the fact that $$\frac{1}{2}\sin(2\alpha) = \cos(\alpha)\sin(\alpha)$$ So there should not be a $2$ there. I am probably missing something, which sadly I can't find...
$$ \frac1{2}\int \cos (2 \alpha )\mathop{}!d \alpha =\frac1{4}\sin (2\alpha )+C $$
– Masacroso Jul 01 '20 at 02:46