Finding the peaks and valleys of a mathematical function can feel like searching for hidden treasures. If you want to know exactly where a function reaches its highest point (a local maximum) or lowest point (a local minimum), you need a reliable tool. Enter the first derivative test. This fundamental calculus technique allows you to identify relative maxima and minima by analyzing how the slope of the function changes at its critical points. Whether you are studying economics, physics, or pure mathematics, understanding this method is crucial for graphing accurately and solving optimization problems. This guide will walk you through everything you need to know about how to use the first derivative test, step-by-step, so you can master this essential calculus skill.
No fluff here — just what actually works.
Introduction
In calculus, derivatives provide powerful insights into the behavior of functions. While the first derivative tells you whether a function is increasing or decreasing at any given point, the first derivative test takes this information a step further. It uses the sign of the derivative on either side of a critical point to classify that point as a local maximum, a local minimum, or neither. This method is particularly valuable because it relies solely on the first derivative, making it highly versatile. Think about it: unlike the second derivative test, which can sometimes be inconclusive if the second derivative equals zero, the first derivative test consistently provides clear answers regarding the nature of critical points. By understanding how to apply this test, you gain the ability to sketch accurate graphs and solve real-world optimization problems where finding the absolute best outcome—whether maximizing profit or minimizing cost—is the ultimate goal Worth knowing..
Steps to Apply the First Derivative Test
Applying the first derivative test might seem daunting at first, but by breaking it down into manageable steps, the process becomes straightforward. Here is the exact procedure you should follow:
Step 1: Find the First Derivative Start by taking the derivative of your function, denoted as $f'(x)$. This new function represents the rate of change, or the slope, of the original function $f(x)$ at any given point Still holds up..
Step 2: Find the Critical Numbers Set the first derivative equal to zero ($f'(x) = 0$) and solve for $x$. Additionally, identify any values of $x$ where the derivative is undefined. These values are your critical numbers. They represent the potential locations of maxima and minima. Note that critical numbers must lie within the domain of the
Step 3: Create a Sign Chart (or Interval Table) Draw a number line and mark your critical numbers on it. These points divide the number line into distinct intervals. Choose a test point from inside each interval (not the critical numbers themselves) and plug these test points into the first derivative, $f'(x)$. You only care about the sign (positive or negative) of the result, not the exact numerical value. Record the sign ($+$ or $-$) above each interval on your number line.
Step 4: Analyze the Sign Changes Examine how the sign of $f'(x)$ changes as you pass through each critical number from left to right. This sign transition tells you exactly what is happening to the original function $f(x)$:
- $f'(x)$ changes from Positive ($+$) to Negative ($-$): The function was increasing, then started decreasing. This indicates a Local Maximum at that critical number.
- $f'(x)$ changes from Negative ($-$) to Positive ($+$): The function was decreasing, then started increasing. This indicates a Local Minimum at that critical number.
- $f'(x)$ does NOT change sign (stays $+$ or stays $-$): The function continues increasing or continues decreasing through the point. This indicates Neither a maximum nor a minimum (often a saddle point or inflection point with a horizontal tangent).
Step 5: Find the Function Values (Optional but Recommended) If the problem asks for the coordinates of the extrema (the "y-values"), substitute the critical numbers back into the original function $f(x)$ to find the corresponding $y$-coordinates.
Worked Example: Putting It All Together
Let’s apply the test to the function $f(x) = x^3 - 3x^2 - 9x + 5$.
Step 1: Find the First Derivative $f'(x) = 3x^2 - 6x - 9$
Step 2: Find Critical Numbers Set $f'(x) = 0$: $3x^2 - 6x - 9 = 0$ Divide by 3: $x^2 - 2x - 3 = 0$ Factor: $(x - 3)(x + 1) = 0$ Critical numbers: $x = -1$ and $x = 3$. (The derivative is a polynomial, so it is defined everywhere).
Step 3: Create a Sign Chart Intervals: $(-\infty, -1)$, $(-1, 3)$, $(3, \infty)$. Test points: $x = -2$, $x = 0$, $x = 4$.
- $f'(-2) = 3(4) - 6(-2) - 9 = 12 + 12 - 9 = 15 \rightarrow \mathbf{+}$
- $f'(0) = -9 \rightarrow \mathbf{-}$
- $f'(4) = 3(16) - 6(4) - 9 = 48 - 24 - 9 = 15 \rightarrow \mathbf{+}$
Sign Chart:
(-) (+) (-) (+)
<------(-1)-------(0)--------(3)--------(4)------>
Inc x=-1 Dec x=3 Inc
Step 4: Analyze Sign Changes
- At $x = -1$: Sign changes from + to -. $\rightarrow$ Local Maximum.
- At $x = 3$: Sign changes from - to +. $\rightarrow$ Local Minimum.
Step 5: Find Coordinates
- $f(-1) = (-1)^3 - 3(-1)^2 - 9(-1) + 5 = -1 - 3 + 9 + 5 = 10$. Local Max at $(-1, 10)$.
- $f(3) = (3)^3 - 3(3)^2 - 9(3) + 5 = 27 - 27 - 27 + 5 = -22$. Local Min at $(3, -22)$.
First Derivative Test vs. Second Derivative Test
A common question arises: When should I use the first derivative test versus the second derivative test?
The Second Derivative Test is often faster—if $f''(c) > 0$, it’s a min; if $f''(c) < 0$, it’s a max. The First Derivative Test is the universal backup. In practice, it works on any critical number (where $f'$ exists or is undefined) and always gives a definitive answer (Max, Min, or Neither) provided you can determine the sign of $f'$. Even so, it fails if $f''(c) = 0$ or if the second derivative is difficult to compute. If the second derivative test is inconclusive, you must revert to the first derivative test.
...which is valuable for sketching the graph and understanding the function's overall behavior. While the second derivative test reveals concavity, the first derivative test delivers the complete increasing/decreasing picture without extra work Simple, but easy to overlook..
Critical Numbers Where the Derivative Is Undefined
Critical numbers where the derivative is undefined—such as cusps, corners, or vertical tangents—are handled identically in the First Derivative Test. Since the test relies solely on the sign of $f'(x)$ on intervals around the critical number, the fact that $f'(c)$ does not exist at the specific point $x=c$ is irrelevant. You simply treat $x=c$ as a partition point on your sign chart and evaluate the sign of $f'(x)$ on the intervals immediately to the left and right.
Worked Example: A Cusp (Derivative Undefined)
Consider $f(x) = x^{2/3}$ Small thing, real impact..
Step 1: Find the First Derivative $f'(x) = \frac{2}{3}x^{-1/3} = \frac{2}{3\sqrt[3]{x}}$
Step 2: Find Critical Numbers $f'(x) = 0$ has no solutions (numerator is constant 2). $f'(x)$ is undefined at $x = 0$ (division by zero). Since $f(0)=0$ is defined, $x=0$ is a critical number Simple, but easy to overlook..
Step 3: Create a Sign Chart Intervals: $(-\infty, 0)$, $(0, \infty)$. Test points: $x = -1$, $x = 1$.
- $f'(-1) = \frac{2}{3\sqrt[3]{-1}} = \frac{2}{-3} = \mathbf{-}$
- $f'(1) = \frac{2}{3\sqrt[3]{1}} = \frac{2}{3} = \mathbf{+}$
Sign Chart:
(-) (+)
<-------(0)--------(1)------>
Dec x=0 Inc
Step 4: Analyze Sign Change At $x = 0$: Sign changes from - to +. $\rightarrow$ Local Minimum at $x=0$. $f(0) = 0$. Local Min at $(0, 0)$.
Note: The graph has a sharp cusp at the origin, yet the First Derivative Test correctly identifies the minimum without a second derivative (which also fails to exist here).
Common Pitfalls to Avoid
1. Confusing Critical Numbers with Extrema Not every critical number yields a local extremum. If the sign of $f'$ does not change (e.g., $+$ to $+$ or $-$ to $-$), the critical number corresponds to a plateau or inflection point with horizontal tangent (like $f(x)=x^3$ at $x=0$), not a max or min.
2. Ignoring the Domain Always verify that the critical number $c$ is in the domain of the original function $f(x)$. If $f(c)$ is undefined (e.g., a vertical asymptote), $c$ is not a critical number for the purpose of finding extrema, though it remains a partition point for the sign chart.
3. Endpoints on Closed Intervals The First Derivative Test applies to open intervals. If you are finding absolute extrema on a closed interval $[a, b]$, you must evaluate $f(x)$ at the endpoints $a$ and $b$ separately. Endpoints cannot be classified as "local" max/min via the derivative test because the function is not defined on both sides Less friction, more output..
4. Sign Chart Errors A frequent algebraic slip is miscalculating the sign of the derivative for negative test points, especially with rational or radical functions. Always compute the numerical value of $f'(\text{test point})$ explicitly rather than guessing based on the variable's sign.
Summary: The First Derivative Test Workflow
| Step | Action | Goal |
|---|---|---|
| 1 | Differentiate to find $f'(x)$. | |
| 5 | Read sign changes at each $c$: $+\to -$ = Max, $-\to +$ = Min, No change = Neither. | Classify extrema. |
| 3 | Plot $c$ on a number line; pick test points in each interval. | |
| 2 | Solve $f'(x)=0$ and find where $f'(x)$ is DNE (but $f(x)$ exists). | Partition the domain. |
| 4 | Determine sign of $f'(x)$ at each test point. | Obtain the slope function. |
| 6 | Evaluate $f(c)$ for coordinates. | State final answer as ordered pairs $(x, y)$. |
Conclusion
The First Derivative Test is the cornerstone of curve sketching and optimization in calculus. Its power lies in its universality: it functions equally well
...it functions equally well on smooth, infinitely differentiable curves as it does on functions with sharp corners, vertical tangents, and cusps where higher-order derivatives fail to exist. By relying purely on the sign change of the
...derivative, it bypasses the need for second derivatives entirely, offering a reliable, intuitive method grounded in the fundamental geometry of increasing and decreasing behavior. Whether analyzing a simple polynomial, a rational function with asymptotes, or a piecewise-defined model from economics or physics, the logic remains identical: the derivative changes sign, the function changes direction.
The official docs gloss over this. That's a mistake Surprisingly effective..
Mastering this test requires more than mechanical number-line filling; it demands a conceptual link between the algebraic sign of $f'$ and the visual shape of $f$. When you can look at a sign chart and instantly "see" the peaks and valleys of the graph, you have moved from performing calculus to understanding it. This insight—that local extrema are precisely the boundaries between rising and falling—is the key that unlocks the vast majority of optimization problems and qualitative analysis in single-variable calculus That's the part that actually makes a difference..