1: \begin{abstract}
2: We prove a Trotter product formula for gradient flows in metric
3: spaces. This result is applied to establish convergence in the $L^2$-Wasserstein metric of the splitting method for some Fokker-Planck equations and porous medium type equations perturbed by a potential.
4: \end{abstract}
5: