let f: IR → IR be defined as f(x) = |x| + |x² - 1|. The total number of points at which f attains either a local maximum or a local minimum is
f(x)=∣x∣+∣x2−1∣
To find: total number of local maxima/minima of f
∣x∣=0⇒x=0;x2−1=0⇒x=±1
breakpoints: −1, 0, 1
f(x)= x²-x-1, x<-1
-x²-x+1, -1≤ x<0
-x²+x+1, 0≤ x<1
x²+x-1, x≥ 1
Plan: f′ on each piece; check sign change at −1,0,1
x<−1: f′=2x−1;−1<x<0: f′=−2x−1
0<x<1: f′=−2x+1;x>1: f′=2x+1
x<−1: f′=2x−1<0;x>1: f′=2x+1>0
−1<x<0: f′=−2x−1=0⇒x=−21,f′′<0⇒local max
0<x<1: f′=−2x+1=0⇒x=21,f′′<0⇒local max
x=−1: f′ changes −→+⇒local min
x=0: f′ changes −→+⇒local min
x=1: f′ changes −→+⇒local min
maxima=2,minima=3⇒total=5
Total number of local extrema=5