When you don't know how to solve a problem - differentiate!