[Math] Finding the area of a triangle with integration

calculus

I want to compute the area of the triangle with vertices $(0,0), (1,0), (1,1)$ by parameterizing the line segments parallel to the hypotenuse of the triangle. For example, the length of the segment $(0,0), (1,1)$ is $\sqrt{2}$, and more generally, for any $0 \leq x \leq 1$, the line through $(x,0)$ with slope $1$ hits the other side of my triangle at the point $(1, 1-x)$, so the length of the line segment contained in my triangle is $\sqrt{ 2 \cdot (1-x)^2 } = \sqrt{2}(1-x)$. As $x$ ranges in $[0,1]$, I conclude that the area of my triangle is $$\int_0^1 \sqrt{2}(1-x)\,dx = \sqrt{2} \cdot \frac{1}{2}$$
But the area of my triangle is actually $1/2$. Where am I going wrong?

Best Answer

Your attempt isn't so bad, but when you sweep the hypothenuse by $dx$, the elementary area that you cover isn't $l\,dx$ but $\dfrac l{\sqrt2}dx$ because you need to multiply the base by the height, not by the length.

Said differently, if you consider that you are sweeping perpendicularly to the hypothenuse, then the area is $l\,\dfrac{dx}{\sqrt2}$, because the motion in the perpendicular direction is smaller than in the horizontal direction.

Hence,

$$\int_0^1 \sqrt{2}(1-x)\frac1{\sqrt2}\,dx = \frac{1}{2}.$$