3Blue1Brown

# Chapter 13Higher order derivatives

## Introduction

In the next chapter, about Taylor series, I make frequent reference to higher order derivatives. If you're already comfortable with second derivatives, third derivatives and such, great! Feel free to skip right ahead to that lesson now.

Somehow I've managed not to bring up higher order derivatives at all so far this series, so for the sake of completeness, I thought I'd give this little footnote to briefly go over them. I'll focus mainly on the second derivative, showing what it looks like in the context of graphs and motion, and leave you to think about the analogies for higher orders.

## Graphical meaning

Given some function $f(x)$, the derivative can be interpreted as the slope of its graph above some input, right? A steep slope means a high value for the derivative, a downward slope means a negative derivative.

Review question: what is the slope at $x=2$ and $x=4$?

The second derivative, whose notation I'll explain in a moment, is the derivative of the derivative, meaning it tells you how that slope is changing. The way to see this at a glance is to think of how the graph of $f(x)$ curves. At points where it curves upward, the slope is increasing, so the second derivative is positive. At points where it curves downward, the slope is decreasing, so the second derivative is negative.

For example, let's plot the derivative and second derivative alongside the original function. The plot tells us a lot about how the slope is changing: At $x=1$ the slope is decreasing at a rate of $-1$, at $x=2$ the slope isn't changing at all, and at $x=3$ the slope is increasing at a rate of $1$.

## Notation

As far as notation goes, you could try writing it like this:

$\frac{d\left(\frac{d f}{d x}\right)}{d x}$

... indicating some small change to the derivative function divided by some small change to $x$, where as always the use of that letter $d$ suggests that you really want to consider what this ratio approach as $dx$, both $dx$'s in this case, approach $0$. That's pretty awkward and clunky, so the standard is to abbreviate it as $\frac{d^{2}f}{dx^2}$.

$\frac{d^2 f}{d x^2}$

It's not terribly important for getting an intuition of the second derivative, but perhaps it's worth showing how you can read this notation. Think of starting at some input to your function, and taking two small steps to the right, each with a size $dx$. I'm choosing rather big steps here so that we'll better see what's going on, but in principle think of them as rather tiny.

The first step causes some change to the function, which I'll call $df_1$, and the second step causes some similar, but possibly slightly different change, which I'll call $df_2$.

The difference between these; the change in how the function changes, is what we'll call $d(df)$.

You should think of this as really small, typically proportional to the size of $(dx)^2$. So if your choice for $dx$ was $0.01$, you'd expect this $d(df)$ to be proportional to $0.001$.

$d x=0.01 \Rightarrow(d x)^2=0.0001$

And the second derivative is the size of this change to the change, divide by the size of $(dx)^2$. Or, more precisely, it's whatever that ratio approaches as $dx$ approaches $0$. Even though it's not like the letter $d$ is a variable being multiplied by $f$, for the sake of more compact notation you write this as $\frac{d^2f}{dx^2}$, and you don't bother with any parentheses on the bottom.

For higher order derivatives, like the third derivative, fourth derivative and so are are written using the same compact notation.

## Physical meaning

Maybe the most visceral understanding of the second derivative is that it represents acceleration.

$\frac{d^2 s}{d t^2}(t) \Leftrightarrow \text { Acceleration }$

Given some movement along a line, suppose you have some function that records distance traveled vs. time, and maybe its graph looks something like this, steadily increasing over time.

Then its derivative tells you velocity at each point in time, right? For the example, the graph might look like this bump, increasing to some maximum, then decreasing back to $0$.

Then its second derivative tells you the rate of change for velocity, the acceleration at each point in time.

In the example, the second derivative is positive for the first half of the journey, which indicates indicates speeding up. That's sensation of being pushed back into your car seat with a constant force. Or rather, having the car seat push you with a constant force.

The third derivative, and this is not a joke, is called jerk. So if the jerk is not zero, it means the strength of the acceleration itself is changing.

## Comprehensive Question

A Pi Creature is aboard a spaceship and is set to journey into space. The height $s(t)$ of the spaceship from the ground, in meters, as a function of time $t$, in seconds, is given by:

$s(t)=t^4-4 t^3+6 t^2$

Based on the displacement function $s(t)$, determine the velocity function $v(t)$ of the spaceship.

Given the velocity function from the previous question, what is the acceleration function $a(t)$ of the spaceship?

Determine the jerk function $j(t)$ of the spaceship, which is the rate of change of acceleration.

If you plot the acceleration of the function $a(t)$, how would you interpret the motion of the spaceship at $t=1$ second?

If you plot the acceleration function $a(t)$, you'll notice that at $t=1$ second, the acceleration dips to be $0$ before increasing again.