A shell of mass M and radius R has a point mass m placed at a distance r from its centre. The gravitational potential energy U (r) vs r will be
Gravitational P.E. = m × gravitational potential
U = mV So the graph of U will be same as that of V for a spherical shell.