We wish to prove:
![]()
We begin by using partial fraction decomposition to re-express the integrand:
![Rendered by QuickLaTeX.com \begin{align*} \int \frac{1}{x^2 + 1}\,dx &= \int \frac{1}{(x-i)(x+i)}\, dx \quad \text{(2)} \\ &= \int \left[\frac{\displaystyle \frac{1}{2i}}{x-i} + \frac{\displaystyle \frac{-1}{2i}}{x+i}\right]\,dx \quad \text{(3)} \end{align*}](https://www.samartigliere.com/wp-content/ql-cache/quicklatex.com-f26377b06082796673136105466dda4d_l3.png)
(To see how we came to eq. (3), click .)
![Rendered by QuickLaTeX.com \begin{align*} \int \frac{1}{x^2 + 1}\,dx &= \frac{1}{2i}\int \left( \frac{1}{x-i} + \frac{1}{x+i} \right)\,dx \\ &= \frac{1}{2i}\left[\ln(x-i)-\ln(x+i)\right] + C_1\quad \text{(4)} \end{align*}](https://www.samartigliere.com/wp-content/ql-cache/quicklatex.com-0db66a29985006bb41354605c2b559af_l3.png)
The next step is to change to polar coordinates. To see how to do this, click .
Therefore:
![Rendered by QuickLaTeX.com \begin{align*} \int \frac{1}{x^2 + 1}\,dx &= \frac{1}{2i} [\, \ln(\sqrt{x^2 + (-1)^2}\,e^{\displaystyle i\cdot \arctan(-1/x)}) \\& - \ln(\sqrt{x^2 + (-1)^2}\,e^{\displaystyle i\cdot \arctan(1/x)})\,]+C_1 \\ \\ &= \frac{1}{2i}[\, \cancel{\ln(\sqrt{x^2 + 1})} + \ln(e^{\displaystyle i\cdot \arctan(-1/x)})\\ &- \cancel{\ln(x^2 + 1)} - \ln(e^{\displaystyle i\cdot \arctan(1/x)}) \,] + C_1 \\ &= \frac{1}{2i}\left[ -i\arctan(\frac{1}{x}) - i\arctan(\frac{1}{x}) \right] + C_1\\ &= -\arctan(\frac{1}{x}) + C_1 \quad \text{(5)}\end{align*}](https://www.samartigliere.com/wp-content/ql-cache/quicklatex.com-8adef0be68f4575e9a72baeef27a8d28_l3.png)
At this point, we need to use the identity:
![]()
To see where this comes from, click .
Rearranging eq. (6), we get:
![]()
Now we substitute this into eq.(5):

Let
![]()
Then:
![]()

