exact solution for cosim