[Math] Finding centroid of an area

centroid

qn

working out for the solution

why should the integral be multiplied by 1/2 for finding the y bar? I dont understand that.

Thanks!

Best Answer

Cut it into small vertical rectangles each with height $y$ and length $dx$. Then the center of each rectangle is at $y/2$.

So the $y$ coordinate of the center is at $$Y=\frac{\int \frac{y}{2}ydx}{\int y dx}$$