I'm stuck when I try to solve this integral:
$$\int_{0}^{1}\frac{1}{1+x^{2}}dx$$
I try this:
$$\int_{0}^{1}\frac{1}{1+x^{2}}dx=\lim_{n\rightarrow\infty}\sum_{i=1}^{n}\frac{1}{1+(\frac{i}{n})^{2}}\frac{1}{n}=\lim_{n\rightarrow\infty}\frac{1}{n}\sum_{i=1}^{n}\frac{1}{1+(\frac{i}{n})^{2}}$$
Can someone help with the next step? I'm stuck.
We want
$$\int_{0}^{1}\frac{1}{1+x^{2}}dx$$
Let $x=\tan \theta,\quad dx=d\theta/\cos^2\theta$, then
$$\int_{0}^{1}\frac{1}{1+x^{2}}dx=\int_0^{\pi/4}\frac{d\theta}{(1+\tan^2\theta)\cos^2\theta}=\int_0^{\pi/4}d\theta=\frac{\pi}{4}$$
In fact,
$$\int_{0}^{a}\frac{1}{1+x^{2}}dx=\tan^{-1}a$$ $$\int_{0}^{\infty}\frac{1}{1+x^{2}}dx=\frac{\pi}{2};\quad \int_{0}^{\sqrt{3}}\frac{1}{1+x^{2}}dx=\frac{\pi}{3};\quad \text{etc.}$$