We know that in electrostatics, there is path independency for line integral of E, so E is a conservative field and thus we have E=-gradV. Integrating this from ro(reference point of our choice) to the point r we are studying, along a random path, we get the solution of the above equation...