advanced29 min studyLesson 126 in Physics

Velocity-dependent potentials

Derive the electromagnetic Lorentz force from a velocity-dependent Lagrangian and distinguish canonical from mechanical momentum.

On this page

What you’ll understand

  • Use the full generalized-force formula for a velocity-dependent potential.
  • Derive canonical momentum and the Lorentz-force signs.
  • Explain gauge changes as total time derivatives of the Lagrangian.

Magnetic forces depend on velocity, so a position-only potential energy cannot describe them. A Lagrangian can still describe a nonrelativistic charged particle by including a term linear in velocity. That extension changes the definition of canonical momentum while leaving the measurable mechanical momentum equal to mass times velocity. Working through one gauge choice makes the distinction concrete and prevents a conserved coordinate momentum from being mistaken for a constant velocity.

Generalize the potential without dropping a derivative

Let L=T−U, where U may depend on position, velocity, and time. The generalized force represented by U is minus its position derivative plus the time derivative of its velocity derivative. Using only minus the position gradient would omit part of the force. This representation does not cover every dissipative force; ordinary linear drag is usually kept as a nonconservative generalized force or described with a Rayleigh dissipation function. A velocity-dependent term should be justified by the intended dynamics, not inserted merely because a force contains velocity.

For a particle with charge e, choose U=eΦ−e A·v in SI conventions. The scalar potential Φ and vector potential A define E=−grad Φ−∂tA and B=curl A. The kinetic energy is mv²/2 in the nonrelativistic regime. Differentiate the Lagrangian carefully: the velocity derivative gives m v+e A, while spatial derivatives also act on the components of A. Combining those terms produces the magnetic cross product rather than an extra scalar-potential force.

Qi=−∂U∂qi+ddt∂U∂q˙i,L=m2v2+eA⋅v−eΦ,p=mv+eAQ_i=-\frac{\partial U}{\partial q_i}+\frac{d}{dt}\frac{\partial U}{\partial\dot q_i},\qquad L=\frac m2\mathbf v^2+e\mathbf A\cdot\mathbf v-e\Phi,\qquad \mathbf p=m\mathbf v+e\mathbf A
The last expression is canonical momentum in the chosen gauge. Mechanical momentum is m v and is the quantity whose derivative equals the Lorentz force.↔ Scroll wide equations horizontally.

Read the force and energy from the same model

In Cartesian components, the acceleration equals e times the electric field plus e times velocity crossed with magnetic field, divided by mass. The antisymmetric combination of vector-potential derivatives generates the cross product. This gives a useful sign check: for positive charge moving along positive x in a positive z magnetic field, the magnetic force points along negative y. Reversing the charge reverses the deflection. The magnetic force is perpendicular to velocity and therefore does no instantaneous mechanical work.

The Lagrangian energy is the sum of velocity times canonical momentum minus L. Its linear vector-potential terms cancel, leaving kinetic energy plus eΦ in this nonrelativistic model. This quantity is conserved when the chosen Lagrangian has no explicit time dependence. With time-dependent potentials, differentiate it rather than assuming conservation from the word magnetic. Gauge-dependent potential terms and externally maintained fields require care when interpreting the energy of the particle alone; the field-producing apparatus is outside this reduced description.

mv˙=e(E+v×B),E=v⋅p−L=m2v2+eΦ,(v×B)⋅v=0m\dot{\mathbf v}=e(\mathbf E+\mathbf v\times\mathbf B),\qquad \mathcal E=\mathbf v\cdot\mathbf p-L=\frac m2\mathbf v^2+e\Phi,\qquad (\mathbf v\times\mathbf B)\cdot\mathbf v=0
The zero dot product establishes that the magnetic part changes direction rather than instantaneous kinetic energy. Electric fields can change that energy.↔ Scroll wide equations horizontally.

Gauge freedom changes bookkeeping, not the orbit

Under A→A+grad χ and Φ→Φ−∂tχ, the Lagrangian changes by e times the total time derivative of χ. Fixed-endpoint path variations therefore give the same equations of motion. Canonical momentum shifts by e grad χ, while mechanical momentum and the electromagnetic fields remain unchanged. Consequently, comparing canonical momenta computed in two gauges without transforming them is meaningless. A coordinate that appears cyclic in one gauge can encode its physical symmetry through a boundary term in another.

The vector lab supports the right-angle geometry behind the no-work statement only indirectly. Set a vector angle, predict which perpendicular direction a magnetic force would have using the right-hand rule, then compare the displayed projections with your sketch. The lab itself contains just one planar vector, not a magnetic field, cross-product calculator, or charged-particle orbit. The worked example supplies the field and gauge analytically. Keeping those limits explicit avoids confusing a vector illustration with a Lorentz-force simulation.

A conserved canonical momentum with changing velocity

Use normalized units m=e=B=1, Φ=0, and A=(0,x,0). At an instant x=1, vx=2, vy=3. Find py and the instantaneous acceleration, and check conservation of py.

  1. The Lagrangian is (vx²+vy²)/2+x vy. It has no y dependence, so py=∂L/∂vy=vy+x=4 is conserved along the motion.

  2. The x equation gives vxdot=vy=3. The y equation gives vydot=−vx=−2, in agreement with v×B=(vy,−vx,0).

  3. Differentiate py=vy+x: pydot=vydot+vx=−2+2=0. Velocity changes even though the canonical momentum associated with y remains constant.

py=vy+x,v˙x=vy,v˙y=−vx,p˙y=0p_y=v_y+x,\qquad \dot v_x=v_y,\qquad \dot v_y=-v_x,\qquad \dot p_y=0
The example uses explicitly normalized constants. Restoring units gives py=m vy+e Bx and cyclotron frequency eB/m.↔ Scroll wide equations horizontally.
The result

The conserved quantity is vy+x in this gauge. Mechanical y momentum vy alone is not conserved.

Explore the model

Interactive lab

Interactive lab · vectors

Check magnetic-force orientation on paper

Use Angle and Magnitude to choose a planar velocity and inspect its components. Predict its perpendicular magnetic-force direction for positive Bz. Only velocity is drawn; the lab does not compute a cross product or an orbit.

Check magnetic-force orientation on paperPlayback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Current readings: x component: 1.393; y component: 0.975; Magnitude: 1.7. All parameters are adjustable with the labeled controls below.−7.46−3.7303.737.46−3.5−1.7501.753.5xyvvₓ = 1.39
Vectorx / y projectionsTrace marker
x component
1.393
y component
0.975
Magnitude
1.7
t = 0 s

Playback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forA gauge can change canonical momentum without changing the measurable force or mechanical velocity.

Check your understanding

Which momentum changes under A→A+grad χ while the physical velocity stays fixed?

Try it yourself

In the normalized example, suppose x=2 and vy=1. Find conserved py. When the same orbit reaches x=1.5, what must vy be? Explain why this does not determine vx.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Keep vy+x fixed. Energy provides separate information about the total speed.

Compare with the solution

Initially py=1+2=3. At x=1.5, vy=3−1.5=1.5. This relation alone says nothing about the instantaneous sign or magnitude of vx. A specified kinetic energy would constrain vx², and additional phase information would choose its sign.

Take it with you

  • Velocity-dependent potentials contribute a time derivative to generalized force.
  • Canonical and mechanical momenta differ in electromagnetic fields.
  • Gauge transformations change L by a total derivative and preserve the force.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.