Let Q = (0,5) and R = (10,6) be given points in the plane. We want to find the point P = (x,0) on the x axis such that the sum of distances PQ+PR is as small as possible.

To solve this problem, we need to minimize the following function of x: f(x) = ?

over the closed interval [A,B] where A = ? and B = ?