Something like in the 'vector potential field equations' that the velocity between the charge, there is a term whose derivative is always zero, and the velocity part was in that so math wise it also cancells out or balance's out or whatever.
I have to go learn this stuff again, it's been a while.
Wish I knew Lagrangian and Hamiltonian mechanics a lot more, but not yet, I have video games.