Solving non-exact differential equations (student stuff)