The function f ( x ) = x − x is guaranteed to have an absolute maximum and minimum on the interval [ 1 , 5 ] .