Work done in an electric field by transporting an object having an electric charge q coulombs from a point having a potential V1 volts to a point having potential V2 is given by-
W=q(V2−V1)
The work done is also defined as the force×displacement.
W=P2∫P1Fds=P2∫P1[q×E(x,y)]ds=q×P2∫P1E(x,y)ds=q×[V]V2V1=q×[V2−V1]as, E(x,y)=dVdsElectric field at a point (x,y)=space gradient of electric potential.
So no matter whichever path S is taken from point P1 to point P2, the integral will have only one value.