4.4 First Derivative Dictates Monotonicity

In calculus, we transition from static snapshots of functions to the dynamic understanding of how they evolve. The derivative f′⁢(x)f^{\prime}(x) is our primary tool for this. It answers the question: How does the global shape of a curve emerge from the local information at each point?

We begin by formalizing the notion of growing.

Definition 4.4.1 (Monotonicity).

Let f:I→ℝf:I\to\mathbb{R} be a function on an interval II.

  1. 1.
    ​

    ff is increasing if for any x1,x2∈Ix_{1},x_{2}\in I, x1≤x2⟹f⁢(x1)≤f⁢(x2)x_{1}\leq x_{2}\implies f(x_{1})\leq f(x_{2}).

  2. 2.
    ​

    ff is strictly increasing if x1<x2⟹f⁢(x1)<f⁢(x2)x_{1}<x_{2}\implies f(x_{1})<f(x_{2}).

  3. 3.
    ​

    ff is decreasing (resp. strictly decreasing) if the inequalities are reversed.

Intuition.

Imagine you are hiking on a mountain range. The function f⁢(x)f(x) represents your altitude at position xx. The derivative f′⁢(x)f^{\prime}(x) is the slope of the ground beneath your feet. If f′⁢(x)>0f^{\prime}(x)>0, you are moving uphill; if f′⁢(x)<0f^{\prime}(x)<0, you are descending. The idea is that by knowing the sign of the slope everywhere, we can reconstruct the entire terrain, identifying peaks, valleys, and plateaus.

Corollary 4.4.2 (Criteria for Monotonicity).

If f′⁢(x)>0f^{\prime}(x)>0 (reps. f′⁢(x)≥0f^{\prime}(x)\geq 0) on an interval II, then ff is strictly increasing (resp. increasing) on II.

If f′⁢(x)<0f^{\prime}(x)<0 (reps. f′⁢(x)≤0f^{\prime}(x)\leq 0) on an interval II, then ff is strictly decreasing (resp. decreasing) on II.

Ideas of proof.

Connect the local property (f′⁢(x)f^{\prime}(x)) with the global property (the slope of an appropriate secant line) via the Mean Value Theorem. ∎

Moral (The Sign-Slope Correspondence).

If the slope is positive, the function must be increasing. Why? If it weren’t, there would have to be a point where it “turned back” or “dipped,” which would force the derivative to be negative or zero at some point in between (by the Mean Value Theorem). Thus, the sign of the derivative is a global constraint imposed by local data.

Example 4.4.3.

We back to Example 4.3.1, where we consider f⁢(x)=x2⁢log⁡xf(x)=x^{2}\log x with dom⁡(f)=(0,∞)\operatorname{dom}(f)=(0,\infty). We seek its global behavior using first derivative.

  1. 1.
    ​

    Derivative calculation: Using the product rule: f′⁢(x)=dd⁢x⁢(x2)⁢log⁡x+x2⁢dd⁢x⁢(log⁡x)=2⁢x⁢log⁡x+x2⁢(1x)=2⁢x⁢log⁡x+x=x⁢(2⁢log⁡x+1)f^{\prime}(x)=\frac{\mathrm{d}}{\mathrm{d}x}(x^{2})\log x+x^{2}\frac{\mathrm{d% }}{\mathrm{d}x}(\log x)=2x\log x+x^{2}(\frac{1}{x})=2x\log x+x=x(2\log x+1).

  2. 2.
    ​

    Finding critical points: f′f^{\prime} exist everywhere on dom⁡(f).\operatorname{dom}(f). We have f′⁢(x)=0⇔x⁢(2⁢log⁡x+1)=0f^{\prime}(x)=0\iff x(2\log x+1)=0. Since x>0x>0, we solve 2⁢log⁡x+1=0⟹log⁡x=−1/2⟹x=e−1/22\log x+1=0\implies\log x=-1/2\implies x=\mathrm{e}^{-1/2}.

  3. 3.
    ​

    Sign analysis: For x<e−1/2x<\mathrm{e}^{-1/2}, f′⁢(x)<0f^{\prime}(x)<0 (decreasing). For x>e−1/2x>\mathrm{e}^{-1/2}, f′⁢(x)>0f^{\prime}(x)>0 (increasing). We organize the calculation into Figure 4.7, with extra information from the derivative: it tells us on which interval the function decreases or increases. The double red vertical lines represent where the function does not defined (and does the derivative f′f^{\prime}).

    A sign and variation table for f(x) = x^2 ln x on the interval from 0 to infinity. The columns correspond to x = 0, e^(-1/2), and infinity, placed completely equidistant from each other. Row 1 lists these x-values. Row 2 shows the signs of the derivative f'(x): negative (highlighted in orange) symmetrically placed between 0 and e^(-1/2), 0 at e^(-1/2), and positive (highlighted in blue) symmetrically placed between e^(-1/2) and infinity. Row 3 shows the variation of f(x): a downward arrow representing a decrease from the boundary at x=0 down to the global minimum of -1/(2e) at x = e^(-1/2), followed by an upward arrow representing an increase towards infinity.
    Figure 4.7: Sign analysis table for the function f⁢(x)=x2⁢log⁡xf(x)=x^{2}\log x.

    The function reaches a global minimum at x=e−1/2x=\mathrm{e}^{-1/2} with value f⁢(e−1/2)=(e−1/2)2⁢log⁡(e−1/2)=e−1⁢(−1/2)=−12⁢ef(\mathrm{e}^{-1/2})=(\mathrm{e}^{-1/2})^{2}\log(\mathrm{e}^{-1/2})=\mathrm{e}% ^{-1}(-1/2)=-\frac{1}{2\mathrm{e}}.

Example 4.4.4.

Consider f⁢(x)=x⁢e−xf(x)=x\mathrm{e}^{-x} with dom⁡(f)=(−∞,∞)\operatorname{dom}(f)=(-\infty,\infty).

  1. 1.
    ​

    Derivative: f′⁢(x)=1⋅e−x+x⋅(−e−x)=e−x⁢(1−x)f^{\prime}(x)=1\cdot\mathrm{e}^{-x}+x\cdot(-\mathrm{e}^{-x})=\mathrm{e}^{-x}(1% -x).

  2. 2.
    ​

    Critical points: f′f^{\prime} exist everywhere on dom⁡(f).\operatorname{dom}(f). f′⁢(x)=0⟹1−x=0⟹x=1f^{\prime}(x)=0\implies 1-x=0\implies x=1.

    A sign and variation table for a function f(x) on the interval from negative infinity to infinity. The columns correspond to x = negative infinity, 1, and infinity, placed equidistantly. Row 1 lists these x-values. Row 2 shows the signs of the derivative f'(x): a green positive sign between negative infinity and 1, a 0 with a vertical dashed line at 1, and a green negative sign between 1 and infinity. Row 3 shows the variation of f(x): an upward arrow representing an increase from negative infinity to the local maximum f(1) = e^(-1) at x = 1, followed by a downward arrow representing a decrease towards infinity.
    Figure 4.8: Sign analysis table for the function f⁢(x)f(x) showing a peak at x=1x=1.
  3. 3.
    ​

    Sign analysis: At x=1x=1, we have a local maximum f⁢(1)=e−1f(1)=\mathrm{e}^{-1}, see Figure 4.8.

Exercise 4.4.5.

Analyze the monotonicity of f⁢(x)=x⁢(x−2)3f(x)=x(x-2)^{3}. Hint: Find f′⁢(x)f^{\prime}(x) using the product rule. Note that f′⁢(x)=(x−2)3+3⁢x⁢(x−2)2=(x−2)2⁢(x−2+3⁢x)=(x−2)2⁢(4⁢x−2)f^{\prime}(x)=(x-2)^{3}+3x(x-2)^{2}=(x-2)^{2}(x-2+3x)=(x-2)^{2}(4x-2). Locate the critical points and check the sign of f′⁢(x)f^{\prime}(x) in intervals (−∞,1/2)(-\infty,1/2), (1/2,2)(1/2,2), and (2,∞)(2,\infty).

Theorem 4.4.6 (First Derivative Test).

Suppose ff is continuous on an interval II, and c∈Ic\in I is a critical point of ff.

  1. 1.
    ​

    If f′f^{\prime} changes sign from ++ to −- as xx increases through cc, then ff has a local maximum at cc.

  2. 2.
    ​

    If f′f^{\prime} changes sign from −- to ++ as xx increases through cc, then ff has a local minimum at cc.

  3. 3.
    ​

    If f′f^{\prime} is positive on both sides near cc or negative on both sides near cc, then ff has no local extreme value at cc.

Moral (Jumping over Critical Points).

The test is not about the value of f′⁢(c)f^{\prime}(c) itself–which is zero or does not exist–but about the change in the direction of the slope as we cross cc. It is the transition that defines the extremum.

Thus, it is clear that figuring out the sign of f′f^{\prime} is of utmost importance. Here is an important trick if higher derivative(s) of ff exists at c.c. In this case, Taylor theorem (we will study in Calculus 2, which is essentially the polynomial extension of the linear approximation in Theorem 3.3.1) implies that

f′⁢(x)≈an⁢(x−c)nwhenever x is closed to c,f^{\prime}(x)\approx a_{n}(x-c)^{n}\qquad\text{whenever $x$ is closed to $c$},

here n∈ℕn\in\mathbb{N} and ana_{n} is a constant. Thus if nn is odd, then f′⁢(x)f^{\prime}(x) changes its sign when xx jumps over cc. If nn is even, then f′⁢(x)f^{\prime}(x) keeps the same sign when xx jumps over cc.

For example, in Figure 4.8, the critical point x=1x=1 is simple, that means n=1n=1, and f′f^{\prime} changes sign crossing x=1.x=1. (n=1n=1 is the reason we draw a single vertical line under 0 in the second line of our table.)

Note that if f′′⁢(c)f^{\prime\prime}(c) does not exist, the trick does not work, and one need to pick a point inside each interval next to cc to evaluate the sign of f′f^{\prime} on such interval.

Example 4.4.7.

Consider the function f⁢(x)=3⁢x4−4⁢x3−6⁢x2+12⁢x+1f(x)=3x^{4}-4x^{3}-6x^{2}+12x+1. We wish to find its intervals of increase/decrease and its local extrema.

  1. 1.
    ​

    Domain: The domain is dom⁡(f)=(−∞,∞)\operatorname{dom}(f)=(-\infty,\infty).

  2. 2.
    ​

    Critical Points: The derivative is:

    f′⁢(x)=12⁢x3−12⁢x2−12⁢x+12f^{\prime}(x)=12x^{3}-12x^{2}-12x+12

    Using the grouping method (or Vieta’s insight):

    f′⁢(x)=12⁢(x3−x2−x+1)=12⁢(x2⁢(x−1)−1⁢(x−1))=12⁢(x−1)⁢(x2−1)=12⁢(x−1)⁢(x−1)⁢(x+1)=12⁢(x−1)2⁢(x+1).\begin{split}f^{\prime}(x)&{}=12(x^{3}-x^{2}-x+1)=12(x^{2}(x-1)-1(x-1))=12(x-1% )(x^{2}-1)\\ &{}=12(x-1)(x-1)(x+1)=12(x-1)^{2}(x+1).\end{split}

    We have f′f^{\prime} is well-defined everywhere on dom⁡(f).\operatorname{dom}(f). f′⁢(x)=0f^{\prime}(x)=0 when x=1x=1 (double root) and x=−1x=-1 (single root).

  3. 3.
    ​

    Sign Table:

    A TikZ-drawn sign and variation table for a function f. The top row lists equidistant x-values: negative infinity, -1, 1, and positive infinity. Row 2 lists the signs of the derivative f': negative between negative infinity and -1, a 0 with a red continuous vertical line breaking around it at -1, positive between -1 and 1, a 0 with a narrow double red continuous vertical line at 1, and positive between 1 and positive infinity. Row 3 lists the variations of f, where the infinity values are vertically aligned under the corresponding infinity values of row 1: decreasing from infinity to -10, then increasing to 6, and continuing to increase to infinity.
    Figure 4.9: Sign table for the quartic function ff.

    From Figure 4.9, at x=−1x=-1, f′f^{\prime} changes from −- to ++, so we have a local minimum at f⁢(−1)=3⁢(−1)4−4⁢(−1)3−6⁢(−1)2+12⁢(−1)+1=3+4−6−12+1=−10f(-1)=3(-1)^{4}-4(-1)^{3}-6(-1)^{2}+12(-1)+1=3+4-6-12+1=-10. At x=1x=1, f′f^{\prime} does not change sign (it is positive on both sides). Thus, x=1x=1 is not an extreme (it is actually a point of inflection–which is studied in the next section).

Exercise 4.4.8.

Analyze the local extrema of g⁢(x)=x2/3⁢(2−x)g(x)=x^{2/3}(2-x). Note that g′⁢(x)g^{\prime}(x) is undefined at x=0x=0. How does this affect your sign table?

Exercise 4.4.9 (Challenge).

The Fundamental Theorem of Algebra says that if ff is a polynomial of degree nn, then it has nn complex roots. Prove that if ff is a polynomial of degree nn, it can have at most n−1n-1 (real) critical points. Why does this limit the number of local extrema?

Caveat.

Always check the points where f′⁢(x)f^{\prime}(x) does not exist. A cusp or a vertical tangent can be a local extreme even if the derivative is not zero there!