I have the following integral:
$$\int \frac{x^2}{1+x^2} dx$$
Now, I know that there is a fairly simple way to solve this integral by doing some manipulation on the numerator and then splitting up the expression into two fractions. From this method, I know that my answer should be $x - \arctan(x) + C$.
However, I am required to use $u$-substitution to solve this problem. Maybe I'm missing something really simple here, but I'm completely flummoxed on what my choice of $u$ should be. Any suggestions?
This can be computed in fewer steps than the other answer here, and this also avoids using hyperbolic functions in your substitution. It suffices to use the substitution $x=\tan(u)$ .
Here we have: $$ dx = \frac{1}{\cos^2(u)} \, du $$
Substituting all of this in and simplifying gives us the following integral:
$$ \int \tan^2(u) \, du $$
Note: I am making use of the identity: $$ 1 + \tan^2(y) = \frac{1}{\cos^2(y)} $$
This then fairly straightforwardly evaluates to $\tan(u) - u + c$ and so we can substitute $u = \arctan(x)$ into our result to give us the final answer.