Solution

Linear inside, $1/r^2$ outside.

$g = \left(\frac{GM_e}{R_e^3}\right)r$ for $0 < r \le R_e$ (increases linearly)
$g = \frac{GM_e}{r^2}$ for $r \ge R_e$ (decreases as $1/r^2$)

Concept g-variation-graph

Gravitation in past papers

66 questions from this chapter have appeared across 26 exam years.