A Dog, a Ball, and Calculus

Some dogs live to play fetch, especially if the object of interest is a favorite tennis ball or toy. Others, like ours, fetch only when the reward is a particularly tantalizing tidbit. At least one dog, however, appears to take the enterprise seriously enough to figure out an optimal path to the target.