Thus, like the potential energy of a mass in a gravitational
field, we can define electrostatic potential energy of a charge in an
electrostatic field Consider an electrostatic field E due to some charge configuration First, for simplicity, consider the field E due to a charge Q placed at the
origin Now, imagine that we bring a test charge q from a point R to a
point P against the repulsive force on it due to the charge Q