Existence and uniqueness for an elliptic problem with evolution arising in electrodynamics