Variation of 'g'

1) Variation of 'g' with altitude:

2) Variation of 'g' with depth:

3) Relation between 'g' and 'h' interms of density

g = (4/3)πGRρ [ρ = density]