Solving First order linear differential equation