This is unsigned distance; it's |f(x)-g(x)|, not f(x)-g(x). The traditional line graphs are the graph implicitly defined by the equation.