Let f:R→R be defined as f(x)=∣x∣+x2−1. The total number of points at which f attains either a local maximum or a local minimum is
Answer: 5
Solution
f(x)=∣x∣+∣x2−1∣. The critical points occur where the derivative changes sign. We need to consider the points where x=0, x=±1 (where the expressions inside absolute values change sign). Analyzing the derivative in each interval: