On the x-axis and at a distance x from the origin, the gravitational field due to a mass distribution is given by in the x-direction. The magnitude of gravitational potential on the x-axis at a distance x, taking its value to be zero at infinity, is :