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

Example 19: Local minimum of 3+∣x∣3+|x| at a corner

ExamplesFirst derivative test · Section 6.4
The question

Find local minimum value of the function ff given by f(x)=3+∣x∣f(x) = 3 + |x|⁠, x∈Rx \in \R⁠.

Exam answer

For x<0x < 0⁠, f(x)=3−xf(x) = 3 - x⁠, so f′(x)=−1<0f'(x) = -1 < 0⁠.

For x>0x > 0⁠, f(x)=3+xf(x) = 3 + x⁠, so f′(x)=1>0f'(x) = 1 > 0⁠.

ff is not differentiable at x=0x = 0⁠, so x=0x = 0 is a critical point, and f′f' changes sign from negative to positive there.

So x=0x = 0 is a point of local minima.

Hence the local minimum value is f(0)=3f(0) = 3⁠.

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

The one idea this problem is built on

The graph of 3+∣x∣3 + |x| is a V with its corner at (0,3)(0, 3)⁠. At a corner there is no derivative, so the Second Derivative Test, which needs f′(0)f'(0) and f′′(0)f''(0)⁠, cannot even start. The First Derivative Test still works, because it only needs f′f' beside the point, not at it: the slope is −1-1 on the left and +1+1 on the right, so the graph falls into the corner and climbs out of it.

Given, to find, and the plan
Given
f(x)=3+∣x∣f(x) = 3 + |x| for all real xx⁠.
To find
The local minimum value of ff⁠.
Plan
Remove the modulus by cases; show ff is continuous but not differentiable at 0, so 0 is a critical point; apply the First Derivative Test; confirm with Definition 4 and check there are no other local extrema.

Basics you need

1Absolute value by cases

∣x∣=−x|x| = -x for x<0x < 0 and ∣x∣=x|x| = x for x≥0x \ge 0⁠. Geometrically, ∣x∣|x| is the distance from xx to 0.

2Critical point (Note before Theorem 3)

A point cc where f′(c)=0f'(c) = 0 or ff is not differentiable at cc⁠. Local extrema can only occur at critical points (Theorem 2). Lesson: maxima and minima

3First and Second Derivative Tests (Theorems 3 and 4)

Theorem 3 needs ff continuous at the critical point cc and looks at the sign of f′f' just left and right of cc⁠: −- to ++ means local minima. Theorem 4 needs ff twice differentiable at cc (Note after Theorem 4), with f′(c)=0f'(c) = 0⁠. Lesson: first and second derivative tests

4Local minima (Definition 4(b))

cc is a point of local minima if there is an h>0h > 0 with f(c)≤f(x)f(c) \le f(x) for all xx in (c−h,c+h)(c-h, c+h)⁠.

Solution

  1. Write ff without the modulus

    By Basic 1,

    f(x)={3−x,x<0,3+x,x≥0.f(x) = \begin{cases} 3 - x, & x < 0, \\ 3 + x, & x \ge 0. \end{cases}

    Both formulas give 3 at x=0x = 0⁠: lim⁡x→0−(3−x)=3\lim_{x\to0^-}(3 - x) = 3⁠, lim⁡x→0+(3+x)=3\lim_{x\to0^+}(3 + x) = 3 and f(0)=3f(0) = 3⁠. So ff is continuous at 0.

    The First Derivative Test (Theorem 3) requires ff to be continuous at the critical point, so this must be checked, not assumed. A jump at 0 would make the sign of f′f' on the two sides meaningless for an extremum.
  2. ff is not differentiable at 0, so 0 is a critical point

    With h>0h > 0⁠:

    LHD=lim⁡h→0f(0−h)−f(0)−h=lim⁡h→0(3+h)−3−h=−1,RHD=lim⁡h→0f(0+h)−f(0)h=lim⁡h→0(3+h)−3h=1.\begin{aligned} \text{LHD} &= \lim_{h\to0}\frac{f(0-h) - f(0)}{-h} \\ &= \lim_{h\to0}\frac{(3+h) - 3}{-h} = -1, \\ \text{RHD} &= \lim_{h\to0}\frac{f(0+h) - f(0)}{h} \\ &= \lim_{h\to0}\frac{(3+h) - 3}{h} = 1. \end{aligned}

    (For the left side, f(−h)=3−(−h)=3+hf(-h) = 3 - (-h) = 3 + h⁠.) The two one-sided derivatives differ, so ff is not differentiable at x=0x = 0, and 0 is a critical point. Consequently the Second Derivative Test cannot be used: it needs f′′(0)f''(0)⁠, and even f′(0)f'(0) does not exist.

    The book says "the second derivative test fails". More precisely, it does not apply: its hypothesis (twice differentiable at cc⁠) is not met. The First Derivative Test has no such hypothesis at cc itself, only continuity.
    This is the same corner as ∣x∣|x| at 0 in Example 15; adding the constant 3 lifts the graph without changing any slope.
  3. First Derivative Test at 0

    To the left of 0, f(x)=3−xf(x) = 3 - x⁠, so f′(x)=−1<0f'(x) = -1 < 0⁠. To the right of 0, f(x)=3+xf(x) = 3 + x⁠, so f′(x)=1>0f'(x) = 1 > 0⁠.

    So f′f' changes sign from negative to positive as xx increases through 0, and ff is continuous at 0 (Step 1). By Theorem 3(ii), x=0x = 0 is a point of local minima, and the local minimum value is

    f(0)=3+∣0∣=3.f(0) = 3 + |0| = 3.
    x y O −3 −2 −1 1 2 3 1 2 4 5 6 (0, 3) 3 slope −1 slope 1
    The graph of f(x)=3+∣x∣f(x) = 3 + |x|⁠: the line y=3−xy = 3 - x (slope −1-1⁠) for x<0x < 0 and y=3+xy = 3 + x (slope 1) for x≥0x \ge 0⁠, meeting at the corner (0,3)(0, 3)⁠. Equal scales on both axes.
    Falling (slope −1-1⁠) until 0 and rising (slope 1) after: the corner is the bottom of a valley, just a sharp one rather than a rounded one.
    Theorem 3(ii), Section 6.4. Lesson: first and second derivative tests
  4. Confirm with the definition, and check there is nothing else

    Definition 4(b). For every real xx⁠, f(x)=3+∣x∣≥3=f(0)f(x) = 3 + |x| \ge 3 = f(0)⁠. So the inequality holds on every interval (−h,h)(-h, h)⁠, and 0 is a point of local minima. (It is even the minimum on all of R\R⁠.)

    No other local extrema. At any x≠0x \ne 0⁠, ff is differentiable with f′(x)=−1f'(x) = -1 or 11⁠, never 0. So no x≠0x \ne 0 is a critical point, and by Theorem 2 none is a local extremum. In particular ff has no local maximum.

    The question asks for "the local minimum value", which presumes there is exactly one; this step justifies that.
Result

ff is not differentiable at x=0x = 0 (so the second derivative test cannot be used), but f′(x)=−1f'(x) = -1 for x<0x < 0 and f′(x)=1f'(x) = 1 for x>0x > 0⁠. By the first derivative test, x=0x = 0 is a point of local minima, and the local minimum value is f(0)=3f(0) = 3. This agrees with the book's solution.

Check it with numbers

f(−0.5)=3.5f(-0.5) = 3.5⁠, f(−0.1)=3.1f(-0.1) = 3.1⁠, f(0)=3f(0) = 3⁠, f(0.1)=3.1f(0.1) = 3.1⁠, f(0.5)=3.5f(0.5) = 3.5⁠. The value at 0 is below all its neighbours, and the drop on each side is exactly ∣x∣|x| (slope 1 in size).

Common mistakes
  1. Differentiating ∣x∣|x| at 0 as if it were 0 or 1. ∣x∣|x| has no derivative at 0; the one-sided derivatives are −1-1 and 11⁠.
  2. Trying f′(x)=0f'(x) = 0⁠. It has no solution; the critical point here is of the "not differentiable" kind.
  3. Using the second derivative test. It requires f′(0)f'(0) and f′′(0)f''(0)⁠, which do not exist.
  4. Skipping continuity. The first derivative test is stated for a critical point where ff is continuous; here it is, but it must be said.
What to take away
  1. Critical points include points where ff is not differentiable; corners of modulus functions are the standard example.
  2. At such points use the first derivative test (with continuity checked), not the second.
  3. Adding a constant shifts the extreme value but not the extreme point.

Every fact used, and where it comes from

FactUsed inSource
∣x∣=−x|x| = -x for x<0x < 0⁠, xx for x≥0x \ge 0Step 1Definition of absolute value
Continuity at a point by one-sided limitsStep 1Section 5.2 (Chapter 5)
Not differentiable when the one-sided derivatives differStep 2Section 5.3 (Chapter 5); Example 15
Critical point; Theorem 2Steps 2, 4Note before Theorem 3; Theorem 2, Section 6.4 (Lesson)
Second Derivative Test needs ff twice differentiable at ccStep 2Theorem 4 and the Note after it, Section 6.4
First Derivative TestStep 3Theorem 3(ii), Section 6.4 (Lesson)
Local minimaStep 4Definition 4(b), Section 6.4
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 →