To find the trajectory with the maximum distance, I found the grade of the hill and subtracted 1/2 it's value from 45*. That path is represented by the black line and the 45* path is represented by the red line. My black line calculation does go farther, but not by much.