Question
How indefinite integral : $$\int \frac{1}{1+x^2} dx$$
I know this $$\int \frac{dx}{1+x^2}=\arctan x + C$$
One of my friends in high school studied integration and came across this example. He does not know arctan x and does not know anything about it. I want to help him answer this question. My question is, are there other ways to answer this integral?
By partial fractions, $$\begin{array} .\int\frac{dx}{x^2+1}&=\frac{1}{2i}\left(\frac1{x-i}-\frac1{x+i}\right)dx\\ &=\frac1{2i}(\ln(x-i)-\ln(x+i))+C\\ &=\frac1{2i}\ln(\tfrac{x-i}{x+i})+C \end{array}$$