Solve the differential equation with given initial condition