Solving 2nd order differential equations and plotting the solutions