I have learned that a torque on an object due to the gravity can be calculated as if the gravity acts on the center of mass of the object when the object is near the surface of the earth.
Now I want to prove it...
So, I have $$\tau=\int d\tau=\int r(dmg)sin\theta=g\int rsin\theta dm.$$
Then, how do you obtain $$\int rsin\theta dm= mr_{cm}sin(\theta_{cm}),$$ where $r_{cm}$ is the distance between an axis of rotation and the center of mass, and $\theta_{cm}$ is the angle between the two vectors $\vec{r_{cm}}$ and $m\vec{g}$ at the center of mass??? Would $$\int r dm=mr_{cm}$$ be helpful to prove this?
Would the integral be dependent on the object I use, or would there be a general way to prove this?