In the applet below, the graphs of both f and g could be dragged up and down at any point. This will automatically change the result of the operation. The graph of f is depicted in black and that of g in green. For the sum (f + g), I use blue, and for the difference (f - g) red color. Thus of the three graphs only two -- the black and the green -- are draggable.