Analyzing Function Behavior with Derivatives
From the Calca curriculum
Analyzing Function Behavior with Derivatives
TL;DR
Derivatives tell you how a function is changing, helping you find where it goes up, down, or flat. We use the first derivative to locate local maximums, minimums, and inflection points. The second derivative then helps us understand the concavity, distinguishing between hills and valleys.
1. The Mental Model
Think of a function as a path you're walking. The derivative is like a slope detector, telling you if you're walking uphill, downhill, or on flat ground. Analyzing these slopes helps you map out the high points, low points, and where the path's curve changes.
2. The Core Material
When you're trying to understand what a function is doing, derivatives are your best friends. They give you a local look at how the function's output changes as its input changes.
The First Derivative: Slope and Critical Points

Photo by Dr Photographer on Pexels
The first derivative, denoted as $f'(x)$ or $\frac{dy}{dx}$, tells you the slope of the tangent line to the function at any point.
- If $f'(x) > 0$, the function is increasing (going uphill).
- If $f'(x) < 0$, the function is decreasing (going downhill).
- If $f'(x) = 0$, the function has a horizontal tangent. These points are called critical points, and they're where local maximums, minimums, or flat spots (like plateaus) can occur.
To find local maximums and minimums, you'll:
1. Find $f'(x)$.
2. Set $f'(x) = 0$ and solve for $x$ to find critical points.
3. Use the First Derivative Test or Second Derivative Test (discussed next) to classify these critical points.
The First Derivative Test involves checking the sign of $f'(x)$ on either side of a critical point:
* If $f'(x)$ changes from positive to negative, you have a local maximum.
* If $f'(x)$ changes from negative to positive, you have a local minimum.
* If $f'(x)$ doesn't change sign, it's neither (often an inflection point, which we'll cover soon).
The Second Derivative: Concavity and Inflection Points

Photo by Monstera Production on Pexels
The second derivative, $f''(x)$ or $\frac{d^2y}{dx^2}$, tells you about the concavity of the function. Concavity describes the curve's "bend."
- If $f''(x) > 0$, the function is concave up (like a cup holding water, or a valley).
- If $f''(x) < 0$, the function is concave down (like an inverted cup, or a hill).
- If $f''(x) = 0$ (and changes concavity around that point), you have an inflection point. This is where the curve changes from concave up to concave down, or vice-versa.
Inflection points are found by:
1. Finding $f''(x)$.
2. Setting $f''(x) = 0$ and solving for $x$.
3. Checking if $f''(x)$ changes sign around these points.
The Second Derivative Test is a shortcut for classifying critical points:
* If $f'(c) = 0$ and $f''(c) > 0$, then $c$ is a local minimum.
* If $f'(c) = 0$ and $f''(c) < 0$, then $c$ is a local maximum.
* If $f'(c) = 0$ and $f''(c) = 0$, the test is inconclusive, and you'd use the First Derivative Test.
Here's how these pieces fit together:
graph TD
A["Start with f(x)"] --> B["Calculate First Derivative f'(x)"]
B --> C1{"f'(x) > 0 ?"}
C1 -- "Yes" --> D1["Function is Increasing"]
C1 -- "No" --> C2{"f'(x) < 0 ?"}
C2 -- "Yes" --> D2["Function is Decreasing"]
C2 -- "No (f'(x) = 0)" --> E["Critical Points (Possible Max/Min)"]
E --> F["Calculate Second Derivative f''(x)"]
F --> G1{"f''(x) > 0 at Critical Point ?"}
G1 -- "Yes" --> H1["Local Minimum"]
G1 -- "No" --> G2{"f''(x) < 0 at Critical Point ?"}
G2 -- "Yes" --> H2["Local Maximum"]
G2 -- "No (f''(x) = 0)" --> H3["Test Inconclusive / Inflection Point"]
F --> I{"f''(x) > 0 in interval ?"}
I -- "Yes" --> J1["Concave Up"]
I -- "No" --> K1{"f''(x) < 0 in interval ?"}
K1 -- "Yes" --> J2["Concave Down"]
K1 -- "No (f''(x) = 0 & changes sign)" --> J3["Inflection Point"]
3. Worked Example
Let's analyze the function $f(x) = x^3 - 6x^2 + 9x + 1$.
-
Find the first derivative:
$f'(x) = 3x^2 - 12x + 9$ -
Find critical points (set $f'(x) = 0$):
$3x^2 - 12x + 9 = 0$
Divide by 3: $x^2 - 4x + 3 = 0$
Factor: $(x-1)(x-3) = 0$
So, critical points are $x=1$ and $x=3$. -
Find the second derivative:
$f''(x) = 6x - 12$ -
Use the Second Derivative Test for critical points:
- At $x=1$: $f''(1) = 6(1) - 12 = -6$. Since $f''(1) < 0$, there's a local maximum at $x=1$.
$f(1) = (1)^3 - 6(1)^2 + 9(1) + 1 = 1 - 6 + 9 + 1 = 5$. So, local max at $(1, 5)$. - At $x=3$: $f''(3) = 6(3) - 12 = 18 - 12 = 6$. Since $f''(3) > 0$, there's a local minimum at $x=3$.
$f(3) = (3)^3 - 6(3)^2 + 9(3) + 1 = 27 - 54 + 27 + 1 = 1$. So, local min at $(3, 1)$.
- At $x=1$: $f''(1) = 6(1) - 12 = -6$. Since $f''(1) < 0$, there's a local maximum at $x=1$.
-
Find inflection points (set $f''(x) = 0$):
$6x - 12 = 0$
$6x = 12$
$x = 2$ -
Check concavity around $x=2$:
- For $x < 2$ (e.g., $x=0$): $f''(0) = 6(0) - 12 = -12 < 0$. Function is concave down.
- For $x > 2$ (e.g., $x=3$): $f''(3) = 6(3) - 12 = 6 > 0$. Function is concave up.
Since concavity changes at $x=2$, there's an inflection point at $x=2$.
$f(2) = (2)^3 - 6(2)^2 + 9(2) + 1 = 8 - 24 + 18 + 1 = 3$. So, inflection point at $(2, 3)$.
4. Key Takeaways
- The first derivative tells you where a function is increasing, decreasing, or flat.
- Critical points, where the first derivative is zero, are candidates for local maximums or minimums.
- The second derivative tells you about a function's concavity (whether it's shaped like a cup or an inverted cup).
- Inflection points occur where the concavity of the function changes.
- The Second Derivative Test can efficiently classify critical points as local max or min.
- If the Second Derivative Test is inconclusive, always fall back to the First Derivative Test.
Common Mistakes to Avoid:
- Forgetting to check the sign change for concavity when finding inflection points; $f''(x)=0$ isn't enough.
- Confusing critical points (from $f'(x)=0$) with inflection points (from $f''(x)=0$).
- Not calculating the actual $y$-values for critical and inflection points once you find the $x$-values.
- Assuming a critical point where $f'(x)=0$ is automatically a local max or min without further testing.
5. Now Try It
Analyze the function $g(x) = x^4 - 4x^3$. Find all critical points, classify them as local maximums, minimums, or neither, and identify any inflection points. For each point, state its $(x, y)$ coordinates.
Success looks like: You should have identified one local minimum and two inflection points, providing both their $x$ and $y$ coordinates.
Frequently asked about Analyzing Function Behavior with Derivatives
More from Calca
Get the full Calca curriculum
Clone the complete plan to your dashboard for unlimited AI-generated notes, practice quizzes, and a personalised revision schedule.
Create Free Account