Example: The gravitational field in x direction due to some mass distribution is E=x3k, where k is a constant. Assuming the gravitational potential to be zero at infinity, then what will be its value at a distance x ? Solution: Gravitational potential energy is given by the relation, V=−∫E.dx V=−∫(x3k).dx V=2x2k