Potential Difference Path Independence: Difference between revisions

From Physics Book
Jump to navigation Jump to search
Rwang767 (talk | contribs)
Keep content within Physics 2 scope: simplify math model, new superposition Difficult example, simpler Connectedness, trim upper-level reading
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The potential difference <math>\Delta V = V_B - V_A</math> between two locations A and B does not depend on the path taken between the locations.  
<span style="font-size:160%;">'''Claimed by Rachel Wang – Fall 2026'''</span>
 
The potential difference <math>\Delta V = V_B - V_A</math> between two locations depends only on where you start and where you end, not on the route you take between them. Because of this, the potential difference around any closed path (a "round trip") is zero.


Claimed alanghauser3
==The Main Idea==
==The Main Idea==


The potential difference between two locations A and B does not depend on the path taken between the locations. A round trip potential difference is always zero.
Electric potential is like altitude on a hiking map. If you walk from the parking lot to the summit, your change in altitude is the same whether you take the steep trail or the long switchbacks; it only depends on the two endpoints. If you walk back to the parking lot, your total change in altitude is zero.
 
The electric field made by charges that are sitting still (a '''Coulomb''' field) behaves the same way. To find a potential difference we add up <math>-\vec{E}\cdot\Delta\vec{l}</math> for each small step along a path. That sum comes out the same for every path between the same two points, so:
 
* You are free to pick the '''easiest''' path to calculate along. Usually that means steps that are either parallel to <math>\vec{E}</math> or perpendicular to it.
* Any step perpendicular to <math>\vec{E}</math> contributes '''zero''' to <math>\Delta V</math>, because <math>\vec{E}\cdot\Delta\vec{l} = 0</math>.
* A round trip that ends where it started always has <math>\Delta V_{\text{round trip}} = 0</math>. In circuits, this fact is the '''loop rule''' (Kirchhoff's voltage law).
* The change in electric potential energy of a charge, <math>\Delta U = q\,\Delta V</math>, is also path independent. That is why the electric force from stationary charges is a '''conservative''' force.
 
'''Important limit:''' path independence holds for electric fields produced by stationary charges. A ''curly'' (non-Coulomb) electric field, like the one induced by a changing magnetic field, does '''not''' have this property, and its round trip <math>\oint \vec{E}\cdot d\vec{l}</math> is not zero (it equals the emf; see [[Faraday's Law]]).
 
===A Mathematical Model===
 
'''Definition.''' The potential difference from an initial location ''i'' to a final location ''f'' is
 
<math>\Delta V = V_f - V_i = -\int_i^f \vec{E}\cdot d\vec{l}</math>
 
'''Uniform field.''' If <math>\vec{E}</math> is constant along a straight step <math>\Delta\vec{l} = \langle \Delta x, \Delta y, \Delta z\rangle</math>:
 
<math>\Delta V = -\vec{E}\cdot\Delta\vec{l} = -\left(E_x\,\Delta x + E_y\,\Delta y + E_z\,\Delta z\right)</math>
 
'''Breaking a path into pieces.''' For a path made of several segments, add the pieces:
 
<math>\Delta V_{i \to f} = \Delta V_1 + \Delta V_2 + \cdots = -\sum_{\text{segments}} \vec{E}\cdot\Delta\vec{l}</math>
 
'''Path independence.''' For any two paths 1 and 2 that start at ''i'' and end at ''f'' in a field made by stationary charges:
 
<math>-\int_{\text{path 1}} \vec{E}\cdot d\vec{l} \;=\; -\int_{\text{path 2}} \vec{E}\cdot d\vec{l}</math>
 
'''Round trip.''' Going out along path 1 and coming back along path 2 is a closed loop, so
 
<math>\Delta V_{\text{round trip}} = -\oint \vec{E}\cdot d\vec{l} = 0</math>
 
'''Why it works (point charge).''' Every Coulomb field is a superposition of point-charge fields, so it is enough to show it for one point charge. For a small step <math>d\vec{l}</math>, only the part of the step along <math>\hat{r}</math> matters: <math>\hat{r}\cdot d\vec{l} = dr</math>, the change in distance from the charge. Then
 
<math>\vec{E}\cdot d\vec{l} = \frac{1}{4\pi\varepsilon_0}\frac{Q}{r^2}\,\hat{r}\cdot d\vec{l} = \frac{1}{4\pi\varepsilon_0}\frac{Q}{r^2}\,dr</math>
 
<math>\Delta V = -\int_{r_i}^{r_f}\frac{1}{4\pi\varepsilon_0}\frac{Q}{r^2}\,dr = \frac{1}{4\pi\varepsilon_0}\,Q\left(\frac{1}{r_f} - \frac{1}{r_i}\right)</math>
 
The answer only contains <math>r_i</math> and <math>r_f</math>. Nothing about the shape of the path survives, so every path gives the same result.
 
'''Connection to energy.''' For a charge ''q'' moving from ''i'' to ''f'':
 
<math>\Delta U = q\,\Delta V, \qquad W_{\text{by field}} = -\Delta U = -q\,\Delta V</math>
 
Both are path independent, just like the work done by gravity near Earth's surface.
 
'''Field from potential.''' Because <math>V</math> has one value at each location, you can also work backward and find the field from how fast <math>V</math> changes with position. Along the x direction, <math>E_x = -\frac{\Delta V}{\Delta x}</math>.
 
===Problem-Solving Strategy===
# Pick a path that makes the integral easy: segments '''along''' field lines and segments '''perpendicular''' to them (perpendicular segments give zero).
# For each segment, compute <math>-\vec{E}\cdot\Delta\vec{l}</math> (or <math>-\int \vec{E}\cdot d\vec{l}</math> if <math>\vec{E}</math> changes).
# Add the segments. Do a sign check: moving '''in the direction of''' <math>\vec{E}</math> should make <math>V</math> '''decrease''' (<math>\Delta V < 0</math>).
# If a problem asks about work or energy, use <math>\Delta U = q\,\Delta V</math>, and do not worry about the actual path the charge took.
 
===A Computational Model===
 
The program below checks path independence numerically. It places a +2 nC point charge at the origin and walks from A = ⟨0.10, 0, 0⟩ m to B = ⟨−0.05, 0.15, 0⟩ m along two very different paths: a straight line, and a wavy path that also wanders out of the ''xy''-plane. At every small step it adds <math>-\vec{E}\cdot\Delta\vec{l}</math> (using the field at the midpoint of the step), exactly like the iterative momentum updates used earlier in the course. It then graphs the running total for each path and prints both results next to the exact value <math>\frac{1}{4\pi\varepsilon_0}Q\left(\frac{1}{r_B}-\frac{1}{r_A}\right)</math>.
 
[[File:PDPI_computational_model_animation.gif|frame|none|The model running: the program traces path 1 (blue) and then path 2 (orange) and plots the running total of −E·Δl for each. Both finish at −66.16 V and the round trip comes out about 0. Original animation by Rachel Wang, made with Python/matplotlib from the same calculation as the code below.]]
 
'''Run it yourself:''' [https://www.glowscript.org/#/user/rwang767/folder/MyPrograms/program/PotentialDifferencePathIndependence Click here to run this program on glowscript.org] (runs in your browser, no sign-in needed). The full code is below, so you can also paste it into your own Web VPython program and change it.
 
<pre>
Web VPython 3.2
# Potential difference path independence - Rachel Wang, Fall 2026
# Adds up -E.dl along two different paths from A to B near a point
# charge, then compares both totals to the exact answer.
 
scene.range = 0.12
scene.center = vec(0.025, 0.075, 0)  # frame the charge, A, and B
k = 9e9                      # 1/(4 pi epsilon_0), N m^2/C^2
Q = 2e-9                      # source charge, C
source = sphere(pos=vec(0,0,0), radius=0.008, color=color.red)
 
A = vec(0.10, 0, 0)          # start location, m
B = vec(-0.05, 0.15, 0)      # end location, m
sphere(pos=A, radius=0.004, color=color.white)
sphere(pos=B, radius=0.004, color=color.white)
label(pos=A, text='A', xoffset=15, yoffset=-15, box=False)
label(pos=B, text='B', xoffset=-15, yoffset=15, box=False)
 
def E_field(r):
    return k*Q/mag(r)**2 * norm(r)
 
def path1(s):                # straight line, s goes from 0 to 1
    return A + s*(B - A)
 
def path2(s):                # wavy path that also leaves the xy-plane
    return A + s*(B - A) + 0.05*sin(pi*s)*vec(1,1,0) + 0.06*sin(3*pi*s)*vec(0,0,1)
 
g = graph(title='Running total of -E.dl', xtitle='fraction of path completed', ytitle='Delta V (volts)')
plot1 = gcurve(color=color.blue, label='path 1 (straight)')
plot2 = gcurve(color=color.orange, label='path 2 (wavy)')
 
def walk(path, gc, col, N):
    tracer = sphere(pos=path(0), radius=0.004, color=col, make_trail=True)
    dV = 0
    r_old = path(0)
    for i in range(1, N+1):
        rate(400)
        r_new = path(i/N)
        dl = r_new - r_old
        dV = dV - dot(E_field((r_new + r_old)/2), dl)  # field at midpoint of step
        tracer.pos = r_new
        gc.plot(i/N, dV)
        r_old = r_new
    return dV
 
dV1 = walk(path1, plot1, color.cyan, 2000)
dV2 = walk(path2, plot2, color.orange, 2000)
exact = k*Q*(1/mag(B) - 1/mag(A))
 
print('Path 1 (straight): Delta V =', dV1, 'V')
print('Path 2 (wavy):    Delta V =', dV2, 'V')
print('Exact kQ(1/rB - 1/rA)      =', exact, 'V')
print('Round trip (out on path 2, back on path 1) =', dV2 - dV1, 'V')
</pre>


===Potential Difference Equations===
'''What you should see''' (same as the animation above): both paths end at <math>\Delta V \approx -66.16\ \text{V}</math>, matching the exact value, and the round trip comes out essentially zero (about <math>10^{-4}</math> V, which is just numerical error from using finite steps). The running totals look completely different along the way. The straight path first moves ''closer'' to the positive charge, so <math>V</math> rises to about +75 V before falling, while the wavy path goes down and wiggles. Only the endpoints decide the final answer.
In a uniform electric field the potential difference is equal to
<math>\Delta V = -\vec{E}●\Delta \vec{l} = -(E_x●\Delta x + E_y●\Delta y + E_z●\Delta z</math>).


In a nonuniform electric field the potential difference is equal to
'''Try it yourself:''' change <code>path2</code> to any shape you like (as long as it does not pass through the charge), or reduce the number of steps <code>N</code> to see how the numerical error grows.
<math> \textstyle\int\limits_{i}^{f}-Edl </math>


==Examples==
==Examples==


===Simple Example of Two Different Paths===
===Simple===
Calculate the potential difference going from A to C: <math>\Delta V = V_C - V_A = ?</math>
 
'''Problem.''' A region has a uniform electric field <math>\vec{E} = \langle 300, 0, 0\rangle\ \text{V/m}</math>. Find <math>\Delta V = V_C - V_A</math> from <math>A = \langle 0, 0, 0\rangle\ \text{m}</math> to <math>C = \langle 0.2, 0.3, 0\rangle\ \text{m}</math> along the three paths in the figure. Then find the change in potential energy of a proton that moves from A to C.
 
[[File:PDPI_uniform_field_paths.png|frame|none|Three paths from A to C in a uniform field. Original diagram by Rachel Wang, made with Python/matplotlib.]]
 
'''Path 1 (straight from A to C).''' <math>\Delta\vec{l} = \langle 0.2, 0.3, 0\rangle\ \text{m}</math>
 
<math>\Delta V = -\left(E_x\,\Delta x + E_y\,\Delta y + E_z\,\Delta z\right) = -\left[(300)(0.2) + (0)(0.3) + (0)(0)\right] = -60\ \text{V}</math>
 
'''Path 2 (A to B, then B to C).'''


'''''Path 1'''''
A to B: <math>\Delta\vec{l} = \langle 0.2, 0, 0\rangle\ \text{m}</math>, so <math>\Delta V_{AB} = -(300)(0.2) = -60\ \text{V}</math>
[[File:figure16.30.png|thumb|none|alt=Potential Difference Path Independence.|Angled Path.]] Since the electric field inside the capacitor is uniform all along the path we can use the equation for a uniform electric field <math>\Delta V = -\vec{E}●\Delta \vec{l} = -(E_x●\Delta x + E_y●\Delta y + E_z●\Delta z</math>)
The displacement vector:
<math>\Delta l = <\Delta x, \Delta y, \Delta z> = <(x_1 - 0),(-y_1 - 0)> = <(x_1,-y_1)></math>  


The electric field vector is given as:
B to C: <math>\Delta\vec{l} = \langle 0, 0.3, 0\rangle\ \text{m}</math> is perpendicular to <math>\vec{E}</math>, so <math>\Delta V_{BC} = -\left[(300)(0) + (0)(0.3)\right] = 0</math>
<math>\vec{E} = <(E_x,0,0)></math>
Therefore the potential difference between A and C is:
<math>\Delta V = -\vec{E}●\Delta \vec{l} = -E_x(x_1) + 0(-y_1) + 0(0) = -E_xx_1</math>


'''''Path 2'''''
Total: <math>\Delta V = -60\ \text{V} + 0 = -60\ \text{V}</math>
[[File:figure16.31.png|thumb|none|alt=Potential Difference Path Independence.|Path 2]]
Along the path from A to B:


The displacement vector:
'''Path 3 (curvy).''' Split the path into many tiny straight steps. Since <math>E_y = E_z = 0</math>, each step contributes <math>-E_x\,\Delta x</math>, so
<math>\Delta l = <\Delta x, \Delta y, \Delta z> = <(x_1 - 0),(0 - 0)> = <(x_1,0)></math>


The potential difference between A and B is:
<math>\Delta V = -\sum E_x\,\Delta x = -E_x \sum \Delta x = -E_x\,(x_C - x_A) = -(300)(0.2) = -60\ \text{V}</math>
<math>V_B - V_A = -\vec{E}●\Delta \vec{l} = -E_x(x_1) + 0(0) + 0(0) = -E_xx_1</math>


Along the path from B to C:
The steps that go backward in ''x'' cancel the extra steps that go forward, so the wiggles do not matter.


The displacement vector:
'''Proton.''' <math>\Delta U = q\,\Delta V = (1.6\times10^{-19}\ \text{C})(-60\ \text{V}) = -9.6\times10^{-18}\ \text{J}</math>. If the electric force is the only force doing work, the proton gains <math>9.6\times10^{-18}\ \text{J}</math> of kinetic energy, no matter which path it takes.
<math>\Delta l = <\Delta x, \Delta y, \Delta z> = <(x_1 - x_1),(0 - y_1)> = <(0,-y_1)></math>


The potential difference between B and C is:
===Middling===
<math>V_C - V_B = -\vec{E}●\Delta \vec{l} = -E_x(0) + 0(-y_1) + 0(0) = 0</math>


Therefore the potential difference from A to C is:
'''Problem.''' A point charge <math>Q = +4\ \text{nC}</math> sits at the origin. (a) Find <math>V_f - V_i</math> from <math>i = \langle 0.05, 0, 0\rangle\ \text{m}</math> to <math>f = \langle 0, 0.10, 0\rangle\ \text{m}</math>. (b) An electron starts at ''i''. What is the minimum speed it needs to reach ''f''?
<math>\Delta V = (V_B - V_A) + (V_C - V_B) = -E_xx_1 + 0 = -E_xx_1</math>
 
[[File:PDPI_point_charge_paths.png|frame|none|Path 1 follows an arc at constant r and then goes straight out radially; path 2 goes directly from i to f. Original diagram by Rachel Wang, made with Python/matplotlib.]]
 
'''(a)''' The straight path (path 2) is hard to integrate directly because both the size and direction of <math>\vec{E}</math> change along it. Path independence lets us use path 1 instead.
 
''i to D (arc at r = 0.05 m):'' <math>\vec{E}</math> points radially outward and every step along the arc is tangent to the circle, so <math>\vec{E}\cdot d\vec{l} = 0</math> and <math>\Delta V_{iD} = 0</math>.
 
''D to f (radially outward from r = 0.05 m to r = 0.10 m):''
 
<math>\Delta V_{Df} = -\int_{0.05}^{0.10}\frac{1}{4\pi\varepsilon_0}\frac{Q}{r^2}\,dr = \frac{1}{4\pi\varepsilon_0}\,Q\left(\frac{1}{0.10} - \frac{1}{0.05}\right)</math>
 
<math>= (9\times10^{9})(4\times10^{-9})\left(10 - 20\right) = (36\ \text{V}\cdot\text{m})(-10\ \text{m}^{-1}) = -360\ \text{V}</math>
 
Total: <math>V_f - V_i = 0 + (-360\ \text{V}) = -360\ \text{V}</math>. By path independence, path 2 (or any other path) gives the same −360 V. The sign makes sense: f is farther from a positive charge, so its potential is lower.
 
'''(b)''' For the electron, <math>q = -1.6\times10^{-19}\ \text{C}</math>:
 
<math>\Delta U = q\,\Delta V = (-1.6\times10^{-19}\ \text{C})(-360\ \text{V}) = +5.76\times10^{-17}\ \text{J}</math>
 
The electron is attracted to the positive charge, so moving away raises its potential energy. Using the energy principle with only the electric force doing work, <math>\Delta K + \Delta U = 0</math>. The minimum speed is the one that leaves the electron with <math>K_f = 0</math> at ''f'':
 
<math>\tfrac{1}{2} m v_i^2 = 5.76\times10^{-17}\ \text{J} \quad\Rightarrow\quad v_i = \sqrt{\frac{2(5.76\times10^{-17})}{9.11\times10^{-31}}} \approx 1.1\times10^{7}\ \text{m/s}</math>
 
This is about 4% of the speed of light, so the non-relativistic kinetic energy formula is fine. Notice that we never needed to know the electron's actual path.


==Two Different Paths Near a Point Charge===
Along a straight path from a point charge Q we know that
<math>\Delta V = \frac{1}{4 \pi \epsilon_0 }Q(\frac{1}{r_f} - \frac{1}{r_i})</math>
===Difficult===
===Difficult===
'''Problem.''' A large charged capacitor makes a uniform field <math>\vec{E}_{cap} = \langle 5000, 0, 0\rangle\ \text{V/m}</math> in a region of space. A small sphere with charge <math>Q = +3\ \text{nC}</math> is fixed at the origin inside this region (assume it does not change the charges on the plates). (a) Find <math>V_B - V_A</math> from <math>A = \langle 0.03, 0, 0\rangle\ \text{m}</math> to <math>B = \langle 0, 0.06, 0\rangle\ \text{m}</math>. (b) A proton starts from rest at A and moves to B. If the electric force is the only force doing work, how fast is it moving at B?
[[File:PDPI_superposition_example.png|frame|none|The capacitor's uniform field plus the field of the charged sphere at the origin. Original diagram by Rachel Wang, made with Python/matplotlib.]]
'''(a)''' The total field is the capacitor's field plus the sphere's field (superposition), so the potential difference is also a sum:
<math>V_B - V_A = \Delta V_{cap} + \Delta V_{sphere}</math>
Here is the key idea: each piece is path independent on its own, so we can use whichever path is easiest for each source. We never have to add the two fields together at every point along a path.
''Capacitor (uniform field):'' only the displacement matters. <math>\Delta\vec{l} = \langle 0 - 0.03,\ 0.06 - 0,\ 0\rangle = \langle -0.03, 0.06, 0\rangle\ \text{m}</math>
<math>\Delta V_{cap} = -\left(E_x\,\Delta x + E_y\,\Delta y + E_z\,\Delta z\right) = -\left[(5000)(-0.03) + (0)(0.06) + (0)(0)\right] = +150\ \text{V}</math>
This is positive because the move has a component opposite to the field direction (toward −x).
''Sphere (point charge):'' only the distances from the charge matter, <math>r_A = 0.03\ \text{m}</math> and <math>r_B = 0.06\ \text{m}</math>:
<math>\Delta V_{sphere} = \frac{1}{4\pi\varepsilon_0}\,Q\left(\frac{1}{r_B} - \frac{1}{r_A}\right) = (9\times10^{9})(3\times10^{-9})\left(\frac{1}{0.06} - \frac{1}{0.03}\right) = (27\ \text{V}\cdot\text{m})(-16.7\ \text{m}^{-1}) = -450\ \text{V}</math>
''Total:'' <math>V_B - V_A = +150\ \text{V} + (-450\ \text{V}) = -300\ \text{V}</math>
'''(b)''' For the proton:
<math>\Delta U = q\,\Delta V = (1.6\times10^{-19}\ \text{C})(-300\ \text{V}) = -4.8\times10^{-17}\ \text{J}</math>
By the energy principle with only the electric force doing work, <math>\Delta K = -\Delta U = +4.8\times10^{-17}\ \text{J}</math>. Starting from rest:
<math>v_B = \sqrt{\frac{2\,\Delta K}{m_p}} = \sqrt{\frac{2(4.8\times10^{-17})}{1.67\times10^{-27}}} \approx 2.4\times10^{5}\ \text{m/s}</math>
We never needed the proton's actual path. Superposition plus path independence did all the work.


==Connectedness==
==Connectedness==
#How is this topic connected to something that you are interested in?
 
#How is it connected to your major?
#'''How is this topic connected to something I am interested in?''' I am interested in simulation, and the computational model on this page is the same idea used in any time-stepping simulation: break a continuous process into small steps and accumulate a running total. It also highlights the difference between a ''state function'' (like electric potential energy, which depends only on where you are) and a ''path function'' (like work done by friction, which depends on how you got there). Knowing which kind of quantity you are tracking tells you whether you can take a shortcut.
#Is there an interesting industrial application?
#'''How is it connected to my major?''' In industrial and systems engineering, network problems (like finding the cheapest route through a shipping network) sometimes give each location a "potential" value. Just like electric potential, the difference between two locations does not depend on the route, and a loop always adds up to zero. Finance has the same idea: if trading money around a loop of currencies leaves you with more than you started with, that is an arbitrage, which is like a field whose round trip is not zero.
#'''Is there an interesting industrial application?''' Every circuit simulator (for example SPICE) solves for a single voltage at each node of a circuit. That only makes sense because potential difference is path independent, so the loop rule holds and each node has one well-defined voltage. Path independence also explains a real measurement problem: near transformers, motors, and power electronics there are changing magnetic fields, and a voltmeter's reading can depend on how its leads are routed. Engineers twist the leads together and keep measurement loops small to reduce this effect.


==History==
==History==


Put this idea in historical context. Give the reader the Who, What, When, Where, and Why.
The idea of a potential started with gravity. In 1773, Joseph-Louis Lagrange showed that gravitational forces could be described using a single function of position, and Pierre-Simon Laplace and Siméon Denis Poisson developed its mathematics in the following decades. After Charles-Augustin de Coulomb established the inverse-square law for electric forces in 1785, the same mathematics could be applied to electricity, and Poisson did so in the early 1800s.
 
The name came from George Green, a largely self-taught miller from Nottingham, England. In 1828 he published ''An Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism'', where he introduced the term "potential function." Carl Friedrich Gauss independently used the term "Potential" in his 1840 work on inverse-square forces.
 
In 1845, Gustav Kirchhoff, then a student in Königsberg, stated his circuit laws. His voltage (loop) law is the round-trip version of path independence. Michael Faraday's 1831 discovery of electromagnetic induction showed where path independence breaks down: changing magnetic fields create curly electric fields whose round trip is not zero. The unit of potential difference, the volt, was named after Alessandro Volta, inventor of the electric battery (1800), and was formally adopted at the International Electrical Congress in 1881.


== See also ==
== See also ==


Are there related topics or categories in this wiki resource for the curious reader to explore?  How does this topic fit into that context?
* [[Electric Potential]] – the general idea of potential and how to compute it
* [[Potential Difference in a Uniform Field]] – the straight-segment calculation used in the Simple example
* [[Potential Difference of Point Charge in a Non-Uniform Field]] – the integral used in the Middling example
* [[Path Independence of Electric Potential]] – another student page on the same theme
* [[Sign of a Potential Difference]] – quick sign checks for <math>\Delta V</math>
* [[Electric Potential Energy]] and [[Potential Energy]] – how <math>\Delta U = q\Delta V</math> connects to the energy principle
* [[Gravitational Potential Energy]] – the gravitational version of a path-independent potential
* [[Kirchoff's Laws]] – the loop rule is the round-trip statement for circuits
* [[Curly Electric Fields]] and [[Faraday's Law]] – fields that are '''not''' path independent
* [[Iterative Prediction]] and [[VPython]] – background for the computational model


===Further reading===
===Further reading===


Books, Articles or other print media on this topic
* Chabay, R. W., & Sherwood, B. A. ''Matter & Interactions'' (4th ed.), Vol. 2, Chapter 16: Electric Potential. Wiley.
* Feynman, R. P., Leighton, R. B., & Sands, M. ''The Feynman Lectures on Physics'', Vol. II, Chapter 4: Electrostatics.


===External links===
===External links===


Internet resources on this topic
* [https://openstax.org/books/university-physics-volume-2/pages/7-2-electric-potential-and-potential-difference OpenStax University Physics Vol. 2, 7.2: Electric Potential and Potential Difference]
* [https://www.feynmanlectures.caltech.edu/II_04.html Feynman Lectures Vol. II, Ch. 4: Electrostatics]
* [https://phet.colorado.edu/en/simulations/charges-and-fields PhET simulation: Charges and Fields] (use the voltage probe to map equipotential lines; moving between two equipotentials gives the same potential difference by any route)
* [https://www.glowscript.org Web VPython (GlowScript)] for running the computational model


==References==
==References==


This section contains the the references you used while writing this page
* Chabay, R. W., & Sherwood, B. A. (2015). ''Matter & Interactions'' (4th ed.), Vol. 2, Chapter 16. Wiley.
* Ling, S. J., Sanny, J., & Moebs, W. (2016). ''University Physics Volume 2'', Chapter 7. OpenStax. https://openstax.org/details/books/university-physics-volume-2
* Feynman, R. P., Leighton, R. B., & Sands, M. (1964). ''The Feynman Lectures on Physics'', Vol. II, Chapter 4. https://www.feynmanlectures.caltech.edu/II_04.html
* Green, G. (1828). ''An Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism''. Nottingham.
* Romer, R. H. (1982). "What do 'voltmeters' measure?: Faraday's law in a multiply connected region." ''American Journal of Physics'', 50(12), 1089–1093.
* Ahuja, R. K., Magnanti, T. L., & Orlin, J. B. (1993). ''Network Flows: Theory, Algorithms, and Applications''. Prentice Hall.
* All figures on this page are original work by Rachel Wang (Fall 2026), created with Python/matplotlib.


[[Category:Which Category did you place this in?]]
[[Category:Fields]]

Latest revision as of 23:03, 29 November 2026

Claimed by Rachel Wang – Fall 2026

The potential difference [math]\displaystyle{ \Delta V = V_B - V_A }[/math] between two locations depends only on where you start and where you end, not on the route you take between them. Because of this, the potential difference around any closed path (a "round trip") is zero.

The Main Idea

Electric potential is like altitude on a hiking map. If you walk from the parking lot to the summit, your change in altitude is the same whether you take the steep trail or the long switchbacks; it only depends on the two endpoints. If you walk back to the parking lot, your total change in altitude is zero.

The electric field made by charges that are sitting still (a Coulomb field) behaves the same way. To find a potential difference we add up [math]\displaystyle{ -\vec{E}\cdot\Delta\vec{l} }[/math] for each small step along a path. That sum comes out the same for every path between the same two points, so:

  • You are free to pick the easiest path to calculate along. Usually that means steps that are either parallel to [math]\displaystyle{ \vec{E} }[/math] or perpendicular to it.
  • Any step perpendicular to [math]\displaystyle{ \vec{E} }[/math] contributes zero to [math]\displaystyle{ \Delta V }[/math], because [math]\displaystyle{ \vec{E}\cdot\Delta\vec{l} = 0 }[/math].
  • A round trip that ends where it started always has [math]\displaystyle{ \Delta V_{\text{round trip}} = 0 }[/math]. In circuits, this fact is the loop rule (Kirchhoff's voltage law).
  • The change in electric potential energy of a charge, [math]\displaystyle{ \Delta U = q\,\Delta V }[/math], is also path independent. That is why the electric force from stationary charges is a conservative force.

Important limit: path independence holds for electric fields produced by stationary charges. A curly (non-Coulomb) electric field, like the one induced by a changing magnetic field, does not have this property, and its round trip [math]\displaystyle{ \oint \vec{E}\cdot d\vec{l} }[/math] is not zero (it equals the emf; see Faraday's Law).

A Mathematical Model

Definition. The potential difference from an initial location i to a final location f is

[math]\displaystyle{ \Delta V = V_f - V_i = -\int_i^f \vec{E}\cdot d\vec{l} }[/math]

Uniform field. If [math]\displaystyle{ \vec{E} }[/math] is constant along a straight step [math]\displaystyle{ \Delta\vec{l} = \langle \Delta x, \Delta y, \Delta z\rangle }[/math]:

[math]\displaystyle{ \Delta V = -\vec{E}\cdot\Delta\vec{l} = -\left(E_x\,\Delta x + E_y\,\Delta y + E_z\,\Delta z\right) }[/math]

Breaking a path into pieces. For a path made of several segments, add the pieces:

[math]\displaystyle{ \Delta V_{i \to f} = \Delta V_1 + \Delta V_2 + \cdots = -\sum_{\text{segments}} \vec{E}\cdot\Delta\vec{l} }[/math]

Path independence. For any two paths 1 and 2 that start at i and end at f in a field made by stationary charges:

[math]\displaystyle{ -\int_{\text{path 1}} \vec{E}\cdot d\vec{l} \;=\; -\int_{\text{path 2}} \vec{E}\cdot d\vec{l} }[/math]

Round trip. Going out along path 1 and coming back along path 2 is a closed loop, so

[math]\displaystyle{ \Delta V_{\text{round trip}} = -\oint \vec{E}\cdot d\vec{l} = 0 }[/math]

Why it works (point charge). Every Coulomb field is a superposition of point-charge fields, so it is enough to show it for one point charge. For a small step [math]\displaystyle{ d\vec{l} }[/math], only the part of the step along [math]\displaystyle{ \hat{r} }[/math] matters: [math]\displaystyle{ \hat{r}\cdot d\vec{l} = dr }[/math], the change in distance from the charge. Then

[math]\displaystyle{ \vec{E}\cdot d\vec{l} = \frac{1}{4\pi\varepsilon_0}\frac{Q}{r^2}\,\hat{r}\cdot d\vec{l} = \frac{1}{4\pi\varepsilon_0}\frac{Q}{r^2}\,dr }[/math]

[math]\displaystyle{ \Delta V = -\int_{r_i}^{r_f}\frac{1}{4\pi\varepsilon_0}\frac{Q}{r^2}\,dr = \frac{1}{4\pi\varepsilon_0}\,Q\left(\frac{1}{r_f} - \frac{1}{r_i}\right) }[/math]

The answer only contains [math]\displaystyle{ r_i }[/math] and [math]\displaystyle{ r_f }[/math]. Nothing about the shape of the path survives, so every path gives the same result.

Connection to energy. For a charge q moving from i to f:

[math]\displaystyle{ \Delta U = q\,\Delta V, \qquad W_{\text{by field}} = -\Delta U = -q\,\Delta V }[/math]

Both are path independent, just like the work done by gravity near Earth's surface.

Field from potential. Because [math]\displaystyle{ V }[/math] has one value at each location, you can also work backward and find the field from how fast [math]\displaystyle{ V }[/math] changes with position. Along the x direction, [math]\displaystyle{ E_x = -\frac{\Delta V}{\Delta x} }[/math].

Problem-Solving Strategy

  1. Pick a path that makes the integral easy: segments along field lines and segments perpendicular to them (perpendicular segments give zero).
  2. For each segment, compute [math]\displaystyle{ -\vec{E}\cdot\Delta\vec{l} }[/math] (or [math]\displaystyle{ -\int \vec{E}\cdot d\vec{l} }[/math] if [math]\displaystyle{ \vec{E} }[/math] changes).
  3. Add the segments. Do a sign check: moving in the direction of [math]\displaystyle{ \vec{E} }[/math] should make [math]\displaystyle{ V }[/math] decrease ([math]\displaystyle{ \Delta V \lt 0 }[/math]).
  4. If a problem asks about work or energy, use [math]\displaystyle{ \Delta U = q\,\Delta V }[/math], and do not worry about the actual path the charge took.

A Computational Model

The program below checks path independence numerically. It places a +2 nC point charge at the origin and walks from A = ⟨0.10, 0, 0⟩ m to B = ⟨−0.05, 0.15, 0⟩ m along two very different paths: a straight line, and a wavy path that also wanders out of the xy-plane. At every small step it adds [math]\displaystyle{ -\vec{E}\cdot\Delta\vec{l} }[/math] (using the field at the midpoint of the step), exactly like the iterative momentum updates used earlier in the course. It then graphs the running total for each path and prints both results next to the exact value [math]\displaystyle{ \frac{1}{4\pi\varepsilon_0}Q\left(\frac{1}{r_B}-\frac{1}{r_A}\right) }[/math].

The model running: the program traces path 1 (blue) and then path 2 (orange) and plots the running total of −E·Δl for each. Both finish at −66.16 V and the round trip comes out about 0. Original animation by Rachel Wang, made with Python/matplotlib from the same calculation as the code below.

Run it yourself: Click here to run this program on glowscript.org (runs in your browser, no sign-in needed). The full code is below, so you can also paste it into your own Web VPython program and change it.

Web VPython 3.2
# Potential difference path independence - Rachel Wang, Fall 2026
# Adds up -E.dl along two different paths from A to B near a point
# charge, then compares both totals to the exact answer.

scene.range = 0.12
scene.center = vec(0.025, 0.075, 0)   # frame the charge, A, and B
k = 9e9                       # 1/(4 pi epsilon_0), N m^2/C^2
Q = 2e-9                      # source charge, C
source = sphere(pos=vec(0,0,0), radius=0.008, color=color.red)

A = vec(0.10, 0, 0)           # start location, m
B = vec(-0.05, 0.15, 0)       # end location, m
sphere(pos=A, radius=0.004, color=color.white)
sphere(pos=B, radius=0.004, color=color.white)
label(pos=A, text='A', xoffset=15, yoffset=-15, box=False)
label(pos=B, text='B', xoffset=-15, yoffset=15, box=False)

def E_field(r):
    return k*Q/mag(r)**2 * norm(r)

def path1(s):                 # straight line, s goes from 0 to 1
    return A + s*(B - A)

def path2(s):                 # wavy path that also leaves the xy-plane
    return A + s*(B - A) + 0.05*sin(pi*s)*vec(1,1,0) + 0.06*sin(3*pi*s)*vec(0,0,1)

g = graph(title='Running total of -E.dl', xtitle='fraction of path completed', ytitle='Delta V (volts)')
plot1 = gcurve(color=color.blue, label='path 1 (straight)')
plot2 = gcurve(color=color.orange, label='path 2 (wavy)')

def walk(path, gc, col, N):
    tracer = sphere(pos=path(0), radius=0.004, color=col, make_trail=True)
    dV = 0
    r_old = path(0)
    for i in range(1, N+1):
        rate(400)
        r_new = path(i/N)
        dl = r_new - r_old
        dV = dV - dot(E_field((r_new + r_old)/2), dl)   # field at midpoint of step
        tracer.pos = r_new
        gc.plot(i/N, dV)
        r_old = r_new
    return dV

dV1 = walk(path1, plot1, color.cyan, 2000)
dV2 = walk(path2, plot2, color.orange, 2000)
exact = k*Q*(1/mag(B) - 1/mag(A))

print('Path 1 (straight): Delta V =', dV1, 'V')
print('Path 2 (wavy):     Delta V =', dV2, 'V')
print('Exact kQ(1/rB - 1/rA)      =', exact, 'V')
print('Round trip (out on path 2, back on path 1) =', dV2 - dV1, 'V')

What you should see (same as the animation above): both paths end at [math]\displaystyle{ \Delta V \approx -66.16\ \text{V} }[/math], matching the exact value, and the round trip comes out essentially zero (about [math]\displaystyle{ 10^{-4} }[/math] V, which is just numerical error from using finite steps). The running totals look completely different along the way. The straight path first moves closer to the positive charge, so [math]\displaystyle{ V }[/math] rises to about +75 V before falling, while the wavy path goes down and wiggles. Only the endpoints decide the final answer.

Try it yourself: change path2 to any shape you like (as long as it does not pass through the charge), or reduce the number of steps N to see how the numerical error grows.

Examples

Simple

Problem. A region has a uniform electric field [math]\displaystyle{ \vec{E} = \langle 300, 0, 0\rangle\ \text{V/m} }[/math]. Find [math]\displaystyle{ \Delta V = V_C - V_A }[/math] from [math]\displaystyle{ A = \langle 0, 0, 0\rangle\ \text{m} }[/math] to [math]\displaystyle{ C = \langle 0.2, 0.3, 0\rangle\ \text{m} }[/math] along the three paths in the figure. Then find the change in potential energy of a proton that moves from A to C.

Three paths from A to C in a uniform field. Original diagram by Rachel Wang, made with Python/matplotlib.

Path 1 (straight from A to C). [math]\displaystyle{ \Delta\vec{l} = \langle 0.2, 0.3, 0\rangle\ \text{m} }[/math]

[math]\displaystyle{ \Delta V = -\left(E_x\,\Delta x + E_y\,\Delta y + E_z\,\Delta z\right) = -\left[(300)(0.2) + (0)(0.3) + (0)(0)\right] = -60\ \text{V} }[/math]

Path 2 (A to B, then B to C).

A to B: [math]\displaystyle{ \Delta\vec{l} = \langle 0.2, 0, 0\rangle\ \text{m} }[/math], so [math]\displaystyle{ \Delta V_{AB} = -(300)(0.2) = -60\ \text{V} }[/math]

B to C: [math]\displaystyle{ \Delta\vec{l} = \langle 0, 0.3, 0\rangle\ \text{m} }[/math] is perpendicular to [math]\displaystyle{ \vec{E} }[/math], so [math]\displaystyle{ \Delta V_{BC} = -\left[(300)(0) + (0)(0.3)\right] = 0 }[/math]

Total: [math]\displaystyle{ \Delta V = -60\ \text{V} + 0 = -60\ \text{V} }[/math]

Path 3 (curvy). Split the path into many tiny straight steps. Since [math]\displaystyle{ E_y = E_z = 0 }[/math], each step contributes [math]\displaystyle{ -E_x\,\Delta x }[/math], so

[math]\displaystyle{ \Delta V = -\sum E_x\,\Delta x = -E_x \sum \Delta x = -E_x\,(x_C - x_A) = -(300)(0.2) = -60\ \text{V} }[/math]

The steps that go backward in x cancel the extra steps that go forward, so the wiggles do not matter.

Proton. [math]\displaystyle{ \Delta U = q\,\Delta V = (1.6\times10^{-19}\ \text{C})(-60\ \text{V}) = -9.6\times10^{-18}\ \text{J} }[/math]. If the electric force is the only force doing work, the proton gains [math]\displaystyle{ 9.6\times10^{-18}\ \text{J} }[/math] of kinetic energy, no matter which path it takes.

Middling

Problem. A point charge [math]\displaystyle{ Q = +4\ \text{nC} }[/math] sits at the origin. (a) Find [math]\displaystyle{ V_f - V_i }[/math] from [math]\displaystyle{ i = \langle 0.05, 0, 0\rangle\ \text{m} }[/math] to [math]\displaystyle{ f = \langle 0, 0.10, 0\rangle\ \text{m} }[/math]. (b) An electron starts at i. What is the minimum speed it needs to reach f?

Path 1 follows an arc at constant r and then goes straight out radially; path 2 goes directly from i to f. Original diagram by Rachel Wang, made with Python/matplotlib.

(a) The straight path (path 2) is hard to integrate directly because both the size and direction of [math]\displaystyle{ \vec{E} }[/math] change along it. Path independence lets us use path 1 instead.

i to D (arc at r = 0.05 m): [math]\displaystyle{ \vec{E} }[/math] points radially outward and every step along the arc is tangent to the circle, so [math]\displaystyle{ \vec{E}\cdot d\vec{l} = 0 }[/math] and [math]\displaystyle{ \Delta V_{iD} = 0 }[/math].

D to f (radially outward from r = 0.05 m to r = 0.10 m):

[math]\displaystyle{ \Delta V_{Df} = -\int_{0.05}^{0.10}\frac{1}{4\pi\varepsilon_0}\frac{Q}{r^2}\,dr = \frac{1}{4\pi\varepsilon_0}\,Q\left(\frac{1}{0.10} - \frac{1}{0.05}\right) }[/math]

[math]\displaystyle{ = (9\times10^{9})(4\times10^{-9})\left(10 - 20\right) = (36\ \text{V}\cdot\text{m})(-10\ \text{m}^{-1}) = -360\ \text{V} }[/math]

Total: [math]\displaystyle{ V_f - V_i = 0 + (-360\ \text{V}) = -360\ \text{V} }[/math]. By path independence, path 2 (or any other path) gives the same −360 V. The sign makes sense: f is farther from a positive charge, so its potential is lower.

(b) For the electron, [math]\displaystyle{ q = -1.6\times10^{-19}\ \text{C} }[/math]:

[math]\displaystyle{ \Delta U = q\,\Delta V = (-1.6\times10^{-19}\ \text{C})(-360\ \text{V}) = +5.76\times10^{-17}\ \text{J} }[/math]

The electron is attracted to the positive charge, so moving away raises its potential energy. Using the energy principle with only the electric force doing work, [math]\displaystyle{ \Delta K + \Delta U = 0 }[/math]. The minimum speed is the one that leaves the electron with [math]\displaystyle{ K_f = 0 }[/math] at f:

[math]\displaystyle{ \tfrac{1}{2} m v_i^2 = 5.76\times10^{-17}\ \text{J} \quad\Rightarrow\quad v_i = \sqrt{\frac{2(5.76\times10^{-17})}{9.11\times10^{-31}}} \approx 1.1\times10^{7}\ \text{m/s} }[/math]

This is about 4% of the speed of light, so the non-relativistic kinetic energy formula is fine. Notice that we never needed to know the electron's actual path.

Difficult

Problem. A large charged capacitor makes a uniform field [math]\displaystyle{ \vec{E}_{cap} = \langle 5000, 0, 0\rangle\ \text{V/m} }[/math] in a region of space. A small sphere with charge [math]\displaystyle{ Q = +3\ \text{nC} }[/math] is fixed at the origin inside this region (assume it does not change the charges on the plates). (a) Find [math]\displaystyle{ V_B - V_A }[/math] from [math]\displaystyle{ A = \langle 0.03, 0, 0\rangle\ \text{m} }[/math] to [math]\displaystyle{ B = \langle 0, 0.06, 0\rangle\ \text{m} }[/math]. (b) A proton starts from rest at A and moves to B. If the electric force is the only force doing work, how fast is it moving at B?

The capacitor's uniform field plus the field of the charged sphere at the origin. Original diagram by Rachel Wang, made with Python/matplotlib.

(a) The total field is the capacitor's field plus the sphere's field (superposition), so the potential difference is also a sum:

[math]\displaystyle{ V_B - V_A = \Delta V_{cap} + \Delta V_{sphere} }[/math]

Here is the key idea: each piece is path independent on its own, so we can use whichever path is easiest for each source. We never have to add the two fields together at every point along a path.

Capacitor (uniform field): only the displacement matters. [math]\displaystyle{ \Delta\vec{l} = \langle 0 - 0.03,\ 0.06 - 0,\ 0\rangle = \langle -0.03, 0.06, 0\rangle\ \text{m} }[/math]

[math]\displaystyle{ \Delta V_{cap} = -\left(E_x\,\Delta x + E_y\,\Delta y + E_z\,\Delta z\right) = -\left[(5000)(-0.03) + (0)(0.06) + (0)(0)\right] = +150\ \text{V} }[/math]

This is positive because the move has a component opposite to the field direction (toward −x).

Sphere (point charge): only the distances from the charge matter, [math]\displaystyle{ r_A = 0.03\ \text{m} }[/math] and [math]\displaystyle{ r_B = 0.06\ \text{m} }[/math]:

[math]\displaystyle{ \Delta V_{sphere} = \frac{1}{4\pi\varepsilon_0}\,Q\left(\frac{1}{r_B} - \frac{1}{r_A}\right) = (9\times10^{9})(3\times10^{-9})\left(\frac{1}{0.06} - \frac{1}{0.03}\right) = (27\ \text{V}\cdot\text{m})(-16.7\ \text{m}^{-1}) = -450\ \text{V} }[/math]

Total: [math]\displaystyle{ V_B - V_A = +150\ \text{V} + (-450\ \text{V}) = -300\ \text{V} }[/math]

(b) For the proton:

[math]\displaystyle{ \Delta U = q\,\Delta V = (1.6\times10^{-19}\ \text{C})(-300\ \text{V}) = -4.8\times10^{-17}\ \text{J} }[/math]

By the energy principle with only the electric force doing work, [math]\displaystyle{ \Delta K = -\Delta U = +4.8\times10^{-17}\ \text{J} }[/math]. Starting from rest:

[math]\displaystyle{ v_B = \sqrt{\frac{2\,\Delta K}{m_p}} = \sqrt{\frac{2(4.8\times10^{-17})}{1.67\times10^{-27}}} \approx 2.4\times10^{5}\ \text{m/s} }[/math]

We never needed the proton's actual path. Superposition plus path independence did all the work.

Connectedness

  1. How is this topic connected to something I am interested in? I am interested in simulation, and the computational model on this page is the same idea used in any time-stepping simulation: break a continuous process into small steps and accumulate a running total. It also highlights the difference between a state function (like electric potential energy, which depends only on where you are) and a path function (like work done by friction, which depends on how you got there). Knowing which kind of quantity you are tracking tells you whether you can take a shortcut.
  2. How is it connected to my major? In industrial and systems engineering, network problems (like finding the cheapest route through a shipping network) sometimes give each location a "potential" value. Just like electric potential, the difference between two locations does not depend on the route, and a loop always adds up to zero. Finance has the same idea: if trading money around a loop of currencies leaves you with more than you started with, that is an arbitrage, which is like a field whose round trip is not zero.
  3. Is there an interesting industrial application? Every circuit simulator (for example SPICE) solves for a single voltage at each node of a circuit. That only makes sense because potential difference is path independent, so the loop rule holds and each node has one well-defined voltage. Path independence also explains a real measurement problem: near transformers, motors, and power electronics there are changing magnetic fields, and a voltmeter's reading can depend on how its leads are routed. Engineers twist the leads together and keep measurement loops small to reduce this effect.

History

The idea of a potential started with gravity. In 1773, Joseph-Louis Lagrange showed that gravitational forces could be described using a single function of position, and Pierre-Simon Laplace and Siméon Denis Poisson developed its mathematics in the following decades. After Charles-Augustin de Coulomb established the inverse-square law for electric forces in 1785, the same mathematics could be applied to electricity, and Poisson did so in the early 1800s.

The name came from George Green, a largely self-taught miller from Nottingham, England. In 1828 he published An Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism, where he introduced the term "potential function." Carl Friedrich Gauss independently used the term "Potential" in his 1840 work on inverse-square forces.

In 1845, Gustav Kirchhoff, then a student in Königsberg, stated his circuit laws. His voltage (loop) law is the round-trip version of path independence. Michael Faraday's 1831 discovery of electromagnetic induction showed where path independence breaks down: changing magnetic fields create curly electric fields whose round trip is not zero. The unit of potential difference, the volt, was named after Alessandro Volta, inventor of the electric battery (1800), and was formally adopted at the International Electrical Congress in 1881.

See also

Further reading

  • Chabay, R. W., & Sherwood, B. A. Matter & Interactions (4th ed.), Vol. 2, Chapter 16: Electric Potential. Wiley.
  • Feynman, R. P., Leighton, R. B., & Sands, M. The Feynman Lectures on Physics, Vol. II, Chapter 4: Electrostatics.

External links

References

  • Chabay, R. W., & Sherwood, B. A. (2015). Matter & Interactions (4th ed.), Vol. 2, Chapter 16. Wiley.
  • Ling, S. J., Sanny, J., & Moebs, W. (2016). University Physics Volume 2, Chapter 7. OpenStax. https://openstax.org/details/books/university-physics-volume-2
  • Feynman, R. P., Leighton, R. B., & Sands, M. (1964). The Feynman Lectures on Physics, Vol. II, Chapter 4. https://www.feynmanlectures.caltech.edu/II_04.html
  • Green, G. (1828). An Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism. Nottingham.
  • Romer, R. H. (1982). "What do 'voltmeters' measure?: Faraday's law in a multiply connected region." American Journal of Physics, 50(12), 1089–1093.
  • Ahuja, R. K., Magnanti, T. L., & Orlin, J. B. (1993). Network Flows: Theory, Algorithms, and Applications. Prentice Hall.
  • All figures on this page are original work by Rachel Wang (Fall 2026), created with Python/matplotlib.