An exact solution for a dynamic system with quadratic costs and linear differential equation describing the dynamics.