Lesson 1.4: Calculus Review - Derivatives (The 'Slope')

Welcome! In this lesson, we're going to learn about one of the two most important ideas in all of calculus: the Derivative.

This is more than just a math formula. It's a "superpower" that lets you measure instantaneous change. If you've ever looked at a car's speedometer and wondered, "How does it know my speed right now?", you were asking for a derivative.

The "Why": The Speedometer Problem

In finance, risk management is just another name for measuring "sensitivity to change." We must be able to answer "how-fast" questions:

  • How fast does my option price change when the stock price moves $1?
  • How fast does my portfolio lose value as time passes?
  • How fast does my bond price change when interest rates move 1%?

All of these are "speed" questions. The tool we use to answer them is the derivative.

The Core Paradox: How Do You Measure "Instantaneous"?

This is the central "wow" moment of all calculus. Our 7th-grade algebra formula for speed is:

Speed = Change in Distance / Change in Time

This formula requires a time interval (e.g., 1 hour). But a speedometer's "instantaneous speed" happens over a time interval of zero. This gives:

Speed = 0 / 0

...which is undefined! This is the paradox. How can we find the "speed" at a single, indivisible point in time?

The answer is the Derivative.

The Core Concept: Finding the Slope

Let's visualize this. In the "hard case" of a curved line like f(x)=x2f(x) = x^2, the slope is constantly changing. How can we find the exact slope at a single, instantaneous point (like x=2x=2)?

The "Calculus" Leap: The Limit (The "Cheat")

Here is the brilliant "cheat" that makes calculus work. We can't find the slope at one point, but we can find the slope of a line between two points.

  1. Pick Two Points: We'll pick our "anchor point" xx and a second point that's just a tiny step Deltax\\Delta x away, called x+Deltaxx + \\Delta x.
  2. Find Their "Y" Values: The "y-value" at our anchor point is f(x)f(x), and at our new point is f(x+Deltax)f(x + \\Delta x).
  3. Calculate the "Fake" Slope: This gives us the slope of the secant line between the two points:
Approximate Slope=f(x+Δx)f(x)Δx\text{Approximate Slope} = \frac{f(x + \Delta x) - f(x)}{\Delta x}

To make the approximation perfect, we make the "step" Deltax\\Delta x infinitely small. We take the limit as Deltax\\Delta x approaches 0. This "perfect" slope that it approaches is the Derivative.

Interactive Slope Explorer
Drag the slider to move the anchor point along the curve $f(x) = x^2$. Observe how the slope of the tangent line changes.
Slope at x = 2.00 is: 4.00

The "How-To": Common Rules

You don't need to re-derive these every time. Here are the "lookup table" rules we will use in this course.

Function f(x)f(x)Derivative f(x)f'(x)Example
cc00The slope of a flat line is 0.
xnx^nnxn1n \cdot x^{n-1}f(x)=x3impliesf(x)=3x2f(x)=x^3 \\implies f'(x)=3x^2
exe^xexe^xThe function's value is its slope!
ln(x)\\ln(x)1/x1/x
sin(x)\\sin(x)cos(x)\\cos(x)

Partial Derivatives (The Bridge to Lesson 1.7)

What if our function has two inputs, like our option price V(t,St)V(t, S_t)? This is the "Mountain Map" problem. A Partial Derivative is a derivative in one specific direction, while you pretend all other variables are just constant numbers. We use a "curly d" (partial\\partial) to show it's a partial derivative.

For f(x,y)=3x2+5y4f(x, y) = 3x^2 + 5y^4:

fracpartialfpartialx=6x\\frac{\\partial f}{\\partial x} = 6x

fracpartialfpartialy=20y3\\frac{\\partial f}{\\partial y} = 20y^3

What's Next? (The 'Hook')

    You've just learned what the "Greeks" are! In finance, this isn't just abstract math. It is the literal definition of risk:

    • Delta (Delta\\Delta) is just VS\frac{\partial V}{\partial S} (the "slope" in the stock's direction).
    • Theta (Theta\\Theta) is just Vt\frac{\partial V}{\partial t} (the "slope" in the time direction).
    • Gamma (Gamma\\Gamma) is the second derivative, 2VS2\frac{\partial^2 V}{\partial S^2} (the "curvature" or the "change in the slope").

    This tool, the partial derivative, is the heart of risk management. Now that we can "slice" (Derivatives) and "sum" (Integrals), we are ready to build our most important tool: the Taylor Expansion (Lesson 1.6).