Compute the gravitational potential due to a thin rod of length L and mass M at a distance R from the center of the rod and in a direction perpendicular to the rod. Secondly, consider a point mass located at a distance D from the nearest end of a thin rod of length L and mass M along the axis of the rod. Discover the gravitational force exerted on the point mass with the rod.