This demonstration is similar to critical points demo. As in that demo, the function f(x) and its domain are defined in the control panel. This time, the graph of the function is colored magenta where it is concave downward and yellow where it is concave upward.