f(x):=x**2;

ab:diff(f(x),x);

wxplot2d([f(x),ab], [x,-5,5])$

f(x):=3*x;

ab:diff(f(x),x);

wxplot2d([f(x),ab], [x,-5,5])$

f(x):=sin(x);

ab:diff(f(x),x);

wxplot2d([f(x),ab], [x,-5,5])$

f(x):=log(x);

ab:diff(f(x),x);

wxplot2d([f(x),ab], [x,-5,5], [y,-10,10])$

f(x):=exp(x);

ab:diff(f(x),x);

wxplot2d([f(x),ab], [x,-5,5])$