At some stage, you may need to solve a differential equation to find the path. It is not hard to do, but you may wish to review Chapter 10.3 of your textbook.