The acceleration due to gravity at the surface of a planet is given by:
g=R2GM
Since M=34πR3ρ, we get:
g=R2G×34πR3ρ=34πGRρ
So g∝Rρ.
For Planet A: Radius = R, Density = ρ
gA=34πGRρ
For Planet B: Radius = 4R, Density = 3ρ
gB=34πG(4R)(3ρ)=34πG×34Rρ
The ratio:
gBgA=34RρRρ=4RρRρ×3=43
Therefore, gA:gB=3:4.