The following is a textbook problem where one is asked to find the $x$ and $y$ coordinates of the center of mass AND those of the center of gravity in a non-uniform gravitational field:
The location of the center of mass and the x-coordinate of the center of gravity are trivial, but I am having trouble with the y-coordinate of the center of gravity.
A solution I found online shows this:
Which yields 1.97 meters, which agrees with the answer given in the textbook.
This is intuitive, but at the same time I don't understand where this equation is coming from, or what the exact definition of center of gravity means. If it is the point where the net force can act on an extended object and create the same net torque, then any location with the x-coordinate of the center of gravity should work, since the force points down.
If I rotate the object clockwise by 90 degrees, and find the location where the net force will create the same net torque as all the individual torques on each mass, then, yes, I get the same answer, but, the point is that the gravitational field is not uniform, thus it will depend on the position of the masses, and since those have changed, so most likely have the gravitational fields each mass feels, since they are at a different position.