In this demonstration, the function f(x) and its domain are defined in the control panel. The graph of the function is colored blue where it is decreasing and orange where it is increasing.