I am studying integration and differentiation again and have come across an equation that I can't wrap my head around.
$$\int{\frac{1}{x^2 + a^2}}dx = \frac{1}{a}\tan^{-1}\Bigr(\frac{x}{a}\Bigr) + C$$
This is one of the basic integration equations regarding fractions, but I'm having trouble understanding how it came to be, and I don't want to just memorize it. Could someone be kind enough explain how the right hand side was derived?
Thank you.
Applying the formula for the derivative of an inverse function, we know that for any $x\in \mathbb{R}$, $$arctan'(x)=\frac{1}{tan'(arctan(x))}$$
Now, recall that for any $\theta \in \mathbb{R}$, $\theta \notin \pi\mathbb{Z}+\frac{\pi}{2}$, we have $$tan'(\theta)=1+tan(\theta)^2$$
Hence, $$arctan'(x)=\frac{1}{1+x^2}$$
It then follows that $$arctan'\left(\frac{x}{a}\right)=\frac{1}{a}\times\frac{1}{1+\left(\frac{x}{a}\right)^2}=\frac{a}{a^2+x^2}$$