# 5.1 Local Max/Min # Art Belmonte, Summer 1996 # These are the shaded gray examples which appear in Section 5.1. # In-line plots have been removed to conserve disk space. > restart; f:=x^3 + 0.2*x^2 - x; 3 2 f := x + .2 x - x > Df:=diff(f, x); 2 Df := 3 x + .4 x - 1 > xmax:=fsolve(Df=0, x=-1..0); xmax := -.6478531925 > xmin:=fsolve(Df=0, x=0..1); xmin := .5145198591 > subs(x=xmax, f); subs(x=xmin, f); .4598830456 -.3253645270 > f:=x->x^3 + 0.2*x^2 - x; > xmax:=fsolve(D(f)(x)=0, x=-1..0); 3 2 f := x -> x + .2 x - x xmax := -.6478531925 > f(xmax); .4598830456 >