This demo displays all the points on the graph of some function f(x) (shown in white) that satisfy the side condition that some function g(x) (in green) equals some constant c (line y = c in blue). These points are displayed as red tick marks.
The constrained maxima here are the points with the highest and lowest values of f(x).