6) Horizontal Tangent Lines
These are found where m=0
> solve(m(x)=0);
The y coordinates are given by
> (f(0),f(1),f(-2));
If we plot the slope function we have
> plot(m(x),x=-3..3,-5..5);