What are derivatives really?
- #math
TL;DR: Derivatives measure the slope at a given point.
When we have a linear function like:
We know the slope is 2 because as x changes by 1, y changes by 2. So the derivative of 2x is 2.
But if we have a quadratic function (or any other function where the slope isn’t constant) like then the slope changes at different points. We can approximate it at a given point by changing x slightly and then calculating the slope. The smaller the change the more exact our slope is:
That’s the definition for derivatives with limits. A limit describes the value the function will reach as it gets closer to a value in this case 0. Now from the limit definition we can derive the derivative of :
which generalizes to the power rule:
There are multiple notations for derivatives. The Leibniz one used here is: . Then there’s also the Lagrange notation which uses apostrophes so for the first derivative. Newton uses a dot and it specifically means the derivative with respect to time , you’ll see it mostly in physics.
Now here’s a list of common functions and their derivatives:
| Notes | ||
|---|---|---|
| (a constant) | A flat line has no slope | |
| Power rule with | ||
| Works for any real , not just integers | ||
| Function is the same as the derivative | ||
| Only defined for | ||
| Differentiate four times and you’re back to | ||
| Watch the minus sign | ||
| Power rule with |
Now knowing what derivatives are, there are a few nice side effects that are helpful for analyzing functions:
- Critical points are where the slope of a function equals 0
- The Second Derivative Test (SDT) tells us what kind of critical point that is.
So for example has exactly 1 Critical Point at because the second derivative is 2, which is positive, so it’s a local minimum. So we can use derivatives to maximize a function and more generally find its critical points and classify them using SDT.
In this post I just scratched the surface of calculus, there is way more to it. If you want to go deeper I’d recommend Dr. Chris Tisdell’s videos. He has a great playlist called Engineering Mathematics