TL;DR: This write-up presents a detailed derivation of the analytical solution for the optimal velocity field in flow matching. It also includes several remarks on the non-uniqueness of velocity fields, coupling of distributions (related to rectified flow), and an interpretation of the analytical solution.