where \mathbf{A} is the vector potential of the magnetic field, and the i-superscripted symbols denote the cartesian components of the corresponding vectors.
These two expressions can be proved to be equivalent to each other for any electromagnetic field that vanishes fast enough outside a finite region of space.