Solve the initial value problem