Second Derivative Calculator
Compute $\frac{d^2}{dx^2}$ for any function. Supports polynomials, rational functions, trigonometry, and exponentials.
We start with the function $f(x)$:
Differentiate $f(x)$ with respect to $x$ to find $f'(x)$:
Differentiate the result from Step 2 ($f'(x)$) once more:
The Complete Guide to the Second Derivative: Concavity, Inflection & Acceleration
A definitive guide to understanding $f”(x)$, using the Second Derivative Test for optimization, and analyzing the physics of motion.
In Calculus I, the first derivative ($f’$) gets all the attention. It tells us the slope, the speed, the direction. But to truly understand the behavior of a function—how it bends, twists, and accelerates—we must look deeper.
The Second Derivative ($f”$ or $\frac{d^2y}{dx^2}$) is the “derivative of the derivative.” It measures the rate at which the slope is changing. I developed this free Second Derivative Calculator to help students visualize these abstract concepts, verify their Inflection Points, and master the art of curve sketching.
1. Decoding Concavity: The “Cup” Analogy
The most important application of the second derivative is determining Concavity. This tells us if a graph is curving upwards or downwards.
2. How to Find Inflection Points (Step-by-Step)
An Inflection Point is a dramatic moment in the life of a function: it’s where the concavity flips from up to down (or vice versa). Finding these is a classic exam question.
The 3-Step Verification Process
- Derive Twice: Calculate $f”(x)$ using the Power Rule, Chain Rule, or Product Rule.
- Find Candidates: Solve for $x$ where $f”(x) = 0$ or where $f”(x)$ is undefined. These are potential inflection points.
- The “Sign Test” (Crucial): Pick test numbers on either side of your candidate.
If the sign changes (e.g., $+\to-$), it IS an inflection point.
If the sign stays the same (e.g., $+\to+$), it is NOT an inflection point.
Consider $f(x) = x^4$.
Second derivative: $f”(x) = 12x^2$.
If we set $f”(x)=0$, we get $x=0$. Is this an inflection point? NO!
Test $x=-1$: $f”(-1) = 12 > 0$ (Concave Up).
Test $x=1$: $f”(1) = 12 > 0$ (Concave Up).
Since concavity didn’t change (Up to Up), $x=0$ is just a flat spot, not an inflection point.
3. The Second Derivative Test for Optimization
Why calculate $f”$ if we can find Max/Min with just the first derivative? Because the Second Derivative Test is often faster. It allows you to classify a critical point without making a messy sign chart.
| Critical Point ($f'(c)=0$) | Value of $f”(c)$ | Shape at $c$ | Conclusion |
|---|---|---|---|
| Horizontal Tangent | Positive (+) | Concave Up ($\cup$) | Local Minimum (Valley Bottom) |
| Horizontal Tangent | Negative (-) | Concave Down ($\cap$) | Local Maximum (Hill Top) |
| Horizontal Tangent | Zero (0) | Flat / Unknown | Test Fails (Must use 1st Derivative Test) |
4. Real-World Applications: Physics & Economics
Calculus isn’t just abstract math. The second derivative represents “acceleration” in almost every field of science.
Physics: Motion and Jerk
If $s(t)$ represents the position of a car at time $t$:
- Velocity ($v$): $s'(t)$. How fast you are moving.
- Acceleration ($a$): $s”(t)$. How fast your speed is changing (Pressing the gas pedal).
- Jerk ($j$): $s”'(t)$. The Third Derivative. This is the “snap” you feel when you brake suddenly. Engineering focuses on minimizing jerk to ensure passenger comfort.
Economics: Diminishing Returns
In economics, if a profit function $P(x)$ is increasing ($P’ > 0$) but the second derivative is negative ($P” < 0$), it represents The Law of Diminishing Returns. You are still making money, but every new dollar earns you less than the previous one. The curve is flattening out.
5. Deep Dive Walkthrough: Rational Functions
Polynomials are easy. Let’s tackle a rational function, which requires the Quotient Rule. This is where most students make algebra errors.
Problem: Find $f”(x)$ for $f(x) = \frac{x}{x+1}$
Step 1: First Derivative (Quotient Rule)
Tip: Rewriting as a negative exponent makes the next step easier!
Step 2: Second Derivative (Chain Rule)
Step 3: Analysis
$f”(x)$ is never zero. However, it is undefined at $x=-1$ (Vertical Asymptote).
For $x > -1$, denominator is positive, so $f” < 0$ (Concave Down).
For $x < -1$, denominator is negative, so $f'' > 0$ (Concave Up).
6. Frequently Asked Questions (FAQ)
Yes. If the graph has a “cusp” (sharp corner) or a vertical tangent, the second derivative will not exist. These points are also critical values for determining concavity changes.
This is Leibniz Notation. It means “differentiate $y$ with respect to $x$, twice.” It is equivalent to $f”(x)$ or $y”$. It helps remind you what variable you are changing.
This specific tool is for explicit functions ($y=$). For equations like $x^2+y^2=1$, please use our dedicated Implicit Differentiation Calculator which solves for $y”$ using the implicit formula.
Use our calculator to find the inflection points (where $f”=0$). These points divide the number line into intervals. Pick a test number in each interval and plug it into $f”(x)$. If positive, that interval is Concave Up.
7. Authoritative References
To ensure accuracy, our calculator’s logic is based on standard theorems found in these textbooks:
Chapter 4.3: “How Derivatives Affect the Shape of a Graph”. The gold standard for Concavity definitions.
Detailed problem sets for “The Shape of a Graph, Part II”. Excellent for practice.
Visit Paul’s Notes →
Analyze Your Function’s Curvature Now
Don’t guess the shape. Get the exact second derivative, inflection points, and concavity intervals instantly.
Calculate Second Derivative ↑Making higher-order calculus accessible to everyone.