Problem:
Given the functions

draw the graphs of the functions f, g, fg, and gf.


Visualization:
Using Maple:

> f:= x -> 1/(1+x^2);

> g:= x -> sin(x);

> plot({f(x),g(x),(f@g)(x),(g@f)(x)},x=-3..3);