I'm a first-year calculus student but love messing around with the concepts, even though I'm not quite understanding them. I initially thought that intuitively, this should be true:
$$\int_{0}^{\pi/2} \sin x\ dx = \frac{\pi}{4}$$
But that's not the case. It equals $1$. Geometrically, I saw this as an integral that has rectangles of height $\sin\ x$ and width $dx$, and that integrating from $0$ to $\pi/2$ would give us a quarter of the area of a circle. I'm not quite sure why this is wrong intuition, but I continued to experiment.
I found that if the integration depends on $\cos\ x$ and I switched the integration bounds, it actually works, and from research I think this type of integral is a Reimann-Stieltjes integral!
$$\int_{\pi/2}^{0} \sin x\ d(\cos\ x) = \frac{\pi}{4}$$
My friend with a better understanding of $u$-substition, showed that this becomes:
$$\int_{\pi/2}^{0} \ -sin^2 x\ dx = \frac{\pi}{4}$$ My questions are as follows:
How exactly does one interpret this integral geometrically? Does it match my original intuition?
Why was the first integral I evaluated not equal to $\pi/4$ also?
Geometrically, the integral $$\int_{\pi/2}^0 \sin(\theta)\,d(\cos(\theta))$$represents the area of the quarter circle of radius $1$.
To see this, we partition the angle, $\theta$, between the $x$-axis a point on the circle into $N$ equal segments, $\Delta \theta=\frac{\pi/2}{N}$. The $n$'th segment has $\theta_n=n\Delta \theta$.
The area of the quarter circle, $A$, is approximated by the sum of rectangles of height $\sin(\theta_n)$ and width $\cos(\theta_{n-1})-\cos(\theta_n)$. We can write the area formally as
$$A\approx\sum_{n=1}^N \sin(\theta_n)\left(\cos(\theta_{n-1})-\cos(\theta_n)\right)$$
As $N\to \infty$, $\cos(\theta_{n-1})-\cos(\theta_n)\to d(\cos(\theta))$. Therefore, we can write the area as
$$A=\lim_{N\to \infty}\sum_{n=1}^N \sin(\theta_n)\left(\cos(\theta_{n-1})-\cos(\theta_n)\right)=\int_{\pi/2}^{0}\sin(\theta)\,d(\cos(\theta))$$
as expected!