Equations of motion for variational electrodynamics