Higher Derivatives, From Acceleration to Jerk
Understand second, third and higher derivatives through motion, curve shape and patterns you can compute and check.
Key takeaways
- The second derivative is the rate of change of the first derivative; for motion, it is acceleration.
- An object speeds up when velocity and acceleration have the same sign and slows down when the signs differ.
- On a graph, the sign of the second derivative tells you whether the curve bends upward or downward.
- Polynomials eventually differentiate to zero, while sine, cosine and exponential functions repeat in patterns.
- Higher derivatives at a single point supply the coefficients of a Taylor series.
A higher derivative is what you get by differentiating more than once. If a function gives position over time, its first derivative is velocity, its second is acceleration, and its third is called jerk. Each one measures how fast the one before it is changing.
You can feel the first few. At a steady speed on a smooth road you barely notice motion. Accelerating presses you into the seat. A sudden change in that pressure, such as the lurch as a car stops, is jerk.
Notation for repeated differentiation
For a function f, the derivatives are written f′, f″ and f‴. Beyond three, primes become hard to count, so you write f⁽⁴⁾, f⁽⁵⁾ and generally f⁽ⁿ⁾. The parentheses distinguish a fourth derivative from a fourth power.
In Leibniz notation, the second derivative of y with respect to x is d²y/dx². It means d/dx applied twice. The positions of the 2s reflect that structure, and the expression is not the square of dy/dx.
Units make the idea concrete. If position is measured in meters and time in seconds, velocity is in meters per second, acceleration in meters per second per second (m/s²), and jerk in m/s³. Each differentiation divides by another unit of time.
Not every function can be differentiated repeatedly. The function x · |x| has first derivative 2|x|, which has a corner at 0, so it has no second derivative there. The distinction is explored in differentiability and continuity.
A motion example, start to finish
Say a particle moves along a line with position s(t) = t³ − 6t² + 9t meters at time t seconds, for t ≥ 0.
velocity: v(t) = 3t² − 12t + 9 = 3(t − 1)(t − 3)
acceleration: a(t) = 6t − 12
jerk: j(t) = 6
fourth: 0 | t (s) | s (m) | v (m/s) | a (m/s²) |
|---|---|---|---|
| 0 | 0 | 9 | −12 |
| 1 | 4 | 0 | −6 |
| 2 | 2 | −3 | 0 |
| 3 | 0 | 0 | 6 |
| 4 | 4 | 9 | 12 |
The particle moves forward, stops at t = 1, backs up until t = 3, and then goes forward again.
Speed is the size of velocity, ignoring direction. The particle speeds up when v and a share a sign: between t = 1 and t = 2 (both negative) and after t = 3 (both positive). It slows down before t = 1 and between t = 2 and t = 3. Negative acceleration therefore does not always mean slowing down.
Acceleration and force
Newton's second law, in its familiar form for constant mass, says that force equals mass times acceleration. Because acceleration is a second derivative of position, much of physics is written as equations involving second derivatives.
Near Earth's surface, and ignoring air resistance, a falling object has a nearly constant downward acceleration of about 9.8 m/s². Differentiating backward, constant acceleration a means velocity v₀ + at and position s₀ + v₀t + at²/2, where v₀ and s₀ are the initial velocity and position.
Suppose a ball is thrown straight up from ground level at 19.6 m/s. Then s(t) = 19.6t − 4.9t² and v(t) = 19.6 − 9.8t. The velocity is zero at t = 2 seconds, when the height is 39.2 − 19.6 = 19.6 meters. The acceleration at that instant is still −9.8 m/s². The ball has paused, but the rate at which its velocity changes has not.
Jerk, snap and comfort
Jerk matters wherever people or delicate machinery are involved. Elevator controllers typically ramp acceleration up and down gradually so passengers do not feel a jolt. Railway and highway engineers join straight sections to circular curves with transition curves, along which curvature changes gradually. Without them, a vehicle at constant speed would need sideways acceleration to appear all at once.
In robotics and machine tools, limiting jerk reduces vibration and wear. Motion planners often choose paths made of polynomial pieces precisely so that velocity, acceleration and sometimes jerk join without jumps.
The fourth derivative of position is usually called snap, or jounce. The fifth and sixth are sometimes playfully named crackle and pop. These names are informal, and the higher quantities are used far less often than the first three. A fourth derivative with respect to distance, rather than time, appears in the standard theory of how beams bend under load.
What the second derivative says about shape
On a graph, f′ is the slope and f″ is the rate at which the slope changes. Where f″ > 0, slopes are increasing and the curve is concave up, like a cup. Where f″ < 0, it is concave down, like a cap.
An inflection point is a point on the graph where the concavity changes. Setting f″ = 0 only finds candidates. For f(x) = x⁴, f″(0) = 0, but the curve is concave up on both sides, so there is no inflection.
The second derivative also helps classify flat spots as peaks or valleys, as explained in the first and second derivative tests. And its size is related to how sharply a curve turns, although true curvature also involves the first derivative: for a graph, it is |f″| divided by (1 + f′²) raised to the power 3/2.
Patterns in repeated derivatives
Some families reveal tidy rules after a few steps.
- Polynomials. Each differentiation lowers the degree by one. A polynomial of degree n has a constant nth derivative and zero afterward. For x⁴ the sequence is 4x³, 12x², 24x, 24, 0.
- Sine. The derivatives of sin x run cos x, −sin x, −cos x, sin x, repeating every four steps.
- Exponentials. The nth derivative of e^(kx) is kⁿ e^(kx).
- Reciprocal. For 1/x with x ≠ 0, you get −1/x², then 2/x³, then −6/x⁴. In general the nth derivative is (−1)ⁿ n!/x^(n+1), where n! is the product of the whole numbers from 1 to n.
So the 10th derivative of sin x is the same as the 2nd, because 10 leaves remainder 2 on division by 4. It is −sin x.
The repeating pattern of sine also explains why it solves the equation s″ = −s. More generally, s″ = −ω²s, where ω is a constant, describes ideal vibration: a spring or a small pendulum swing pulled back toward the center in proportion to its displacement.
Vibration shows how fast the numbers grow
Consider an object bobbing with position s(t) = 2 sin(3t), in centimeters. Each differentiation brings out another factor of 3 from the chain rule.
s(t) = 2 sin 3t
v(t) = 6 cos 3t
a(t) = −18 sin 3t
j(t) = −54 cos 3t The object never strays more than 2 cm from center, yet its top speed is 6 cm/s, its largest acceleration 18 cm/s² and its largest jerk 54 cm/s³. Raise the frequency from 3 to 30 and those become 60, 1800 and 54000. This is why a vibration that is too small to see can still be violent: acceleration grows with the square of the frequency, and jerk with the cube.
Notice also that a(t) = −9 s(t). Acceleration always points back toward the center and is largest at the extremes, where the velocity is momentarily zero.
Products need more care
There is no rule saying that the second derivative of a product is the product of second derivatives. Applying the product rule twice to uv gives a pattern that resembles squaring a sum:
(uv)′ = u′v + uv′
(uv)″ = u″v + 2u′v′ + uv″
(uv)‴ = u‴v + 3u″v′ + 3u′v″ + uv‴ The coefficients are the rows of Pascal's triangle, and the general statement is known as the Leibniz rule. For y = x² eˣ, take u = x² and v = eˣ. The second derivative is 2eˣ + 2 · 2x · eˣ + x² eˣ, which factors as eˣ(x² + 4x + 2). Differentiating twice step by step gives the same thing, so use whichever you find easier to check.
Differences, data and Taylor series
With measured data you can estimate higher derivatives using differences. Take positions 0, 1, 4, 9, 16 recorded at one-second intervals. The first differences are 1, 3, 5, 7, and the second differences are 2, 2, 2. That constant second difference matches s = t², whose second derivative is 2.
Real measurements contain noise, and each round of differencing magnifies it. Estimating jerk from raw sensor readings usually requires smoothing first.
In theory, higher derivatives let you rebuild a function near a point. The polynomial that matches the value and the first n derivatives of f at 0 has the term f⁽ᵏ⁾(0) xᵏ/k! for each k from 0 to n. For eˣ every derivative at 0 equals 1, giving 1 + x + x²/2 + x³/6 and so on. At x = 0.1, those four terms give about 1.105167, very close to e^0.1 ≈ 1.105171. The full idea is developed in Taylor series explained.
Common slips
- Reading d²y/dx² as (dy/dx)². For y = x³, the first is 6x and the second is 9x⁴.
- Assuming negative acceleration means the object is slowing.
- Assuming zero velocity means zero acceleration.
- Declaring an inflection point wherever f″ = 0 without checking for a sign change.
- Forgetting units, which are often the quickest check that you differentiated the right number of times.
A good exercise is to sketch s, v and a stacked above one another for the example above, lining up the times. Every stop in the top graph should sit above a zero crossing in the middle one.