Class 12 Maths, Worked in Full Past papersGet updates
Chapter 6 · Application of Derivatives

Example 15: ∣x∣|x| on R\R⁠: minimum 0 at a corner, no maximum

ExamplesMaxima and minima · Section 6.4
The question

Find the maximum and minimum values of ff⁠, if any, of the function given by f(x)=∣x∣f(x) = |x|⁠, x∈Rx \in \R⁠.

Exam answer

For all x∈Rx \in \mathbf{R}⁠, f(x)=∣x∣≥0=f(0)f(x) = |x| \ge 0 = f(0)⁠.

So the minimum value of ff is 0, at x=0x = 0⁠.

For any c∈Rc \in \mathbf{R}⁠,

f(∣c∣+1)=∣c∣+1>∣c∣=f(c)\begin{aligned} f(|c| + 1) &= |c| + 1 \\ &> |c| = f(c) \end{aligned}

So no point cc is a point of maximum value.

Hence the minimum value of ff is 0, at x=0x = 0⁠, and ff has no maximum value.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Exactly as for x2x^2 in Example 14: a distance is never negative, so ∣x∣≥0=∣0∣|x| \ge 0 = |0| gives the minimum, and ∣x∣|x| grows without bound, so there is no maximum. The new feature is where the minimum sits: at the sharp corner of the V-shaped graph, a point where ff has no derivative. So a minimum can occur where "f′(x)=0f'(x) = 0" is not even meaningful.

Given, to find, and the plan
Given
f(x)=∣x∣f(x) = |x| for every real xx⁠.
To find
The maximum and minimum values of ff on R\R⁠, if they exist.
Plan
Use Definition 3: prove the minimum with ∣x∣≥0|x| \ge 0⁠; disprove any maximum by beating an arbitrary point; treat the book's Note on [−2,1][-2,1]⁠; finally show ff is not differentiable at the minimum point.

Basics you need

1Maximum and minimum value (Definition 3, Section 6.4)

cc is a point of minimum value in I if f(c)≤f(x)f(c) \le f(x) for all xx in I, and of maximum value if f(c)≥f(x)f(c) \ge f(x) for all xx in I. (The reprint prints << and >>⁠; as explained in Example 14, they must be read as ≤\le and ≥\ge⁠.) Lesson: maxima and minima

2Absolute value

∣x∣=x|x| = x for x≥0x \ge 0 and ∣x∣=−x|x| = -x for x<0x < 0⁠. It is the distance from xx to 0, so ∣x∣≥0|x| \ge 0⁠, with ∣x∣=0|x| = 0 only at x=0x = 0⁠. Also ∣x∣≤2  ⟺  −2≤x≤2|x| \le 2 \iff -2 \le x \le 2⁠. Basics: interval notation

3Differentiability at a point

ff is differentiable at cc when the left-hand and right-hand limits of f(c+h)−f(c)h\frac{f(c+h) - f(c)}{h} as h→0h \to 0 exist and are equal (Section 5.3).

Solution

  1. The minimum value is 0, at x=0x = 0

    For every real xx⁠, f(x)=∣x∣≥0=f(0)f(x) = |x| \ge 0 = f(0) (Basic 2). So c=0c = 0 satisfies f(c)≤f(x)f(c) \le f(x) for all x∈Rx \in \R⁠, and by Definition 3(b) the minimum value of ff is 0, at the point x=0x = 0. No other point gives 0, since ∣x∣=0|x| = 0 only for x=0x = 0⁠.

    The book reads this off the graph (Fig 6.9): the V touches the xx-axis only at its corner, the origin. The inequality ∣x∣≥0|x| \ge 0 is the reason.
  2. There is no maximum value

    Take any c∈Rc \in \R and the point x=∣c∣+1x = |c| + 1⁠. Then

    f(∣c∣+1)=∣c∣+1>∣c∣=f(c).f(|c|+1) = |c| + 1 > |c| = f(c).

    So cc is not a point of maximum value. As cc was arbitrary, ff has no maximum value in R\R and no point of maximum value.

    Whatever point is proposed as "highest", moving one unit further from the origin gives a higher point on the graph. A largest value would have to beat all of these, and none does.
  3. Note (i): restrict the domain to [−2,1][-2, 1]

    For −2≤x≤1-2 \le x \le 1 we have ∣x∣≤2|x| \le 2⁠, so f(x)≤2=∣−2∣=f(−2)f(x) \le 2 = |-2| = f(-2)⁠. Hence on [−2,1][-2,1]⁠, the maximum value is 2, at x=−2x = -2 (the only point there with ∣x∣=2|x| = 2⁠). The minimum value is still 0, at x=0x = 0⁠.

    x y O −3 −2 −1 1 2 3 1 2 3 (−2, 2) minimum 0 at (0, 0) (1, 1) y = |x|
    The graph of y=∣x∣y = |x| (thin blue): a V with its corner at the origin, no highest point. Over [−2,1][-2, 1] (thick gold) the highest point is (−2,2)(-2, 2)⁠. Equal scales on both axes.
    On [−2,1][-2,1] the farthest point from 0 is −2-2⁠, at distance 2, and ∣x∣|x| is exactly that distance.
  4. Note (ii): ff is not differentiable at the minimum point

    At c=0c = 0⁠, for h≠0h \ne 0 the difference quotient is ∣0+h∣−∣0∣h=∣h∣h\frac{|0+h| - |0|}{h} = \frac{|h|}{h}⁠.

    From the right (h>0h > 0⁠): ∣h∣h=hh=1\frac{|h|}{h} = \frac{h}{h} = 1⁠, so the right-hand limit is 11⁠.

    From the left (h<0h < 0⁠): ∣h∣h=−hh=−1\frac{|h|}{h} = \frac{-h}{h} = -1⁠, so the left-hand limit is −1-1⁠.

    The one-sided limits differ, so ff is not differentiable at x=0x = 0, the very point where the minimum occurs.

    The book's Note (ii) says "the function ff in Example 27 is not differentiable at x=0x = 0". That reference is a leftover from an older numbering: Example 27 in this reprint is 2x3−15x2+36x+12x^3 - 15x^2 + 36x + 1 on [1,5][1, 5]⁠, a polynomial that is differentiable everywhere. The Note is about the present function ∣x∣|x| (it follows Example 15 and speaks of non-differentiability at 0), and the book proves this fact in Section 5.3 (right after Corollary 1).
    Why it matters: looking only for points where f′(x)=0f'(x) = 0 would miss this minimum completely, since f′(x)=±1f'(x) = \pm1 wherever it exists. This is why a critical point (Note before Theorem 3) is a point where f′(c)=0f'(c) = 0 or ff is not differentiable. Lesson: first and second derivative tests
Result

On R\R⁠: the minimum value of ff is 0, at x=0x = 0⁠; there is no maximum value and no point of maximum value. On [−2,1][-2,1]⁠: maximum value ∣−2∣=2|-2| = 2 at x=−2x = -2⁠, minimum value 0 at x=0x = 0⁠. The minimum point x=0x = 0 is a point where ff is not differentiable. This agrees with the book's solution and Notes.

Check it with numbers
xx−2-2−1-1−0.5-0.500.51
∣x∣|x|210.500.51

Difference quotients at 0: with h=0.001h = 0.001⁠, ∣h∣h=1\frac{|h|}{h} = 1⁠; with h=−0.001h = -0.001⁠, ∣h∣h=−1\frac{|h|}{h} = -1⁠. They do not approach a common value.

Common mistakes
  1. Solving f′(x)=0f'(x) = 0 to find the minimum. f′(x)f'(x) is 11 or −1-1 wherever it exists and never 0; the minimum is at the point where f′f' does not exist.
  2. "The maximum value is ∞\infty⁠." ∞\infty is not a value of ff⁠. Say "no maximum value".
  3. Following the book's "Example 27" reference. It is a stale cross-reference; the non-differentiable function meant is ∣x∣|x| itself.
What to take away
  1. Extreme values can occur at corners, where the derivative does not exist.
  2. So candidate points for extrema are: points with f′=0f' = 0⁠, points where ff is not differentiable, and (on a closed interval) the end points.
  3. "No maximum" is shown by beating an arbitrary candidate, as in Example 14.

Every fact used, and where it comes from

FactUsed inSource
Maximum and minimum value of ff in ISteps 1–3Definition 3, Section 6.4 (Lesson)
∣x∣≥0|x| \ge 0⁠, zero only at 0; ∣x∣≤2  ⟺  −2≤x≤2|x| \le 2 \iff -2 \le x \le 2Steps 1, 3Properties of absolute value
Restriction to [−2,1][-2,1]⁠: maximum ∣−2∣=2|-2| = 2Step 3Note (i) after Example 15
∣x∣|x| is not differentiable at 0 (one-sided limits −1-1⁠, 11⁠)Step 4Section 5.3, after Corollary 1; Note (ii) after Example 15
Critical point: f′(c)=0f'(c) = 0 or ff not differentiable at ccStep 4Note before Theorem 3, Section 6.4 (Lesson)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →