Question: finding the extremes of a function?

Hi all, Given two functions f(x)=x^2-1 and g(x)=2x+1 we can plot the following command restart:f:=x^2-1:g:=2*x+1:plot([(f),(g)],x=-2..4,y=-2..8); We have a local extreme of -1. Which command should I use to give me the local extreme where -2 <> 2?? Thanks in advance
Please Wait...