# Thread: [SOLVED] Find x-coordinate of centroid

1. ## [SOLVED] Find x-coordinate of centroid

Hi!

Problem: Find x-coordinate of centroid of the solid spherical segment.

Solution attempt:

$dV=\pi\cdot r^{2} \cdot dx$

I need to express $r$ in terms of $R \mbox{ and } x$ .

I did, (and this part is probably wrong): $\frac{R}{R}=\frac{r}{\frac{R}{2}-x} \, \Rightarrow \, r = \frac{R}{2}-x$

And for the moment arm I used $\frac{R}{2}+x$

Then integrate from $\frac{R}{2} \mbox{ to } R$

I have solved it now, and OMG did my first solution attempt suck, dont read it