I need to evaluate $$ \int_0^1 \dfrac 1{(x^2+1)^2}. $$
I was absent for this lecture and I'm sort of lost on where to go.
I set $x = \tan (\theta)$ and $dx = \sec^2(\theta)\, d\theta$. And this implies that
$$x^2 + 1 = \tan^2(\theta) + 1 = \sec^2(\theta).$$
Now I have the integral of $\dfrac {\sec^2(\theta)}{(\sec^2\theta)^2}\, d\theta.$
I don't think I've done this properly, but if you could explain the process of doing trig substitutions in general, I would be greatly appreciative.