In electrodynamics, the E field is time dependent and induces a time-dependent B field also (again by Faraday's law), so the curl of E is not zero like before, which implies the electric field is no longer the gradient of electric potential. A time-dependent term must be added: