Intro Calculus

What Is a Derivative, Really?

You have heard the word “derivative” thrown around, maybe with intimidating notation like dy/dx or f’(x). But the core idea is surprisingly simple:

A derivative tells you how fast something is changing.

That is it. If you have a curve, the derivative at any point is the slope of the curve at that exact spot. And the trick to finding it? Zoom in until the curve looks straight.

1. Start with a Curve

Let’s work with the simplest interesting curve: y = x².

-4-3-2-11234-2-112345678910

Look at this parabola. At x = 0 the curve is flat — it is not going up or down. At x = 2 it is climbing steeply. At x = -3 it is falling fast. The derivative is the tool that makes “climbing steeply” and “falling fast” precise.

But how do we actually measure the slope of a curve? A curve is not a straight line — it does not have one single slope. Or does it?

2. Secant Lines: Sneaking Up on the Slope

Here is the key idea. Pick a point on the curve, then pick a second point nearby. Draw the straight line through both of them. That line is called a secant line, and its slope is something we can calculate easily:

slope of secant=f(a+h)f(a)0\text{slope of secant} = \frac{f(a+h) - f(a)}0

The variable a is the x-coordinate of your first point, and h is how far away the second point is. Now here is the magic: drag h smaller and smaller and watch what happens to the secant line.

a (point on curve)1
-33
h (distance to second point)2
0.013
y=x2with secant through x=1 and x=1+2y = x^2 \quad \text{with secant through } x = 1 \text{ and } x = 1 + 2
-4-224-4-22468101214y = x²secant line
Try This

Try this: Set a = 1 and slowly drag h from 3 down toward 0.01. Watch the red secant line rotate and settle into position. That final position — where the line just barely touches the curve instead of cutting through it — is the tangent line. Its slope is the derivative.

As h gets tiny, the secant slope approaches a specific number. For y = x² at x = 1, that number is 2. At x = 3, it approaches 6. Can you see the pattern?

3. The Tangent Line: h Goes to Zero

When h actually reaches zero, the secant line becomes the tangent line. Its slope is the derivative at that point. For y = x², the tangent line at x = a has the equation:

y=2a(xa)+a2y = 2a(x - a) + a^2

Use the slider below to move the tangent along the curve. Notice how the line tilts more steeply as you move away from the origin.

a (tangent point)1
-33
Tangent at x=1:y=21(x1)+12\text{Tangent at } x = 1: \quad y = 2 \cdot 1 \cdot (x - 1) + 1^2
-4-224-224681012y = x²tangent line
Connection

The tangent line is what the curve looks like when you zoom in really close. Try imagining yourself as an ant standing on the parabola at x = a. The curve would look like a straight ramp to you — and the steepness of that ramp is the derivative.

4. The Derivative as a Function

Here is where it gets beautiful. The derivative at x = 1 is 2. At x = 2 it is 4. At x = -3 it is -6. The pattern: the derivative of x² is 2x.

That means the derivative is not just a single number — it is a whole function that tells you the slope everywhere at once. Let’s plot both together:

-4-224-8-6-4-2246810f(x) = x²f'(x) = 2x

Read the red line like a report card for the blue curve:

Try This

Look at x = 0. The derivative (red line) is zero there, and the original curve (blue parabola) has its lowest point there. That is not a coincidence — it is one of the most important facts in all of calculus.

5. Try Other Functions

The derivative of x² is 2x. What about other functions? Let’s explore.

x³ and its derivative 3x²

-22-10-8-6-4-2246810f(x) = x³f'(x) = 3x²

Notice that the derivative of x³ is always positive (except at the origin where it is zero). This makes sense: x³ is always increasing, just with a brief pause at x = 0 where it flattens out.

sin(x) and its derivative cos(x)

-6-4-2246-22f(x) = sin(x)f'(x) = cos(x)

This one is stunning. The derivative of the sine wave is the cosine wave — it is the same shape, just shifted over. Wherever sin(x) reaches a peak (slope = 0), cos(x) crosses zero. Wherever sin(x) is climbing fastest (at its steepest point), cos(x) is at its maximum.

Connection

Do you see a pattern forming?

  • The derivative of is 2x (power drops by 1, old power comes out front)
  • The derivative of is 3x² (same rule!)
  • In general, the derivative of x^n is n * x^(n-1)

This is called the power rule, and it is the single most-used rule in calculus.

6. What the Derivative Tells You

The derivative is not just an abstract formula. It answers real questions:

Where is the function flat? Wherever f’(x) = 0. These are peaks, valleys, or flat inflection points. In the graph below, watch how the roots (zero-crossings) of the derivative line up with the high and low points of the original:

-4-3-2-11234-6-5-4-3-2-1123456x = -1.73x = 1.73x = -0.99x = 1.01f(x) = x³ - 3xf'(x) = 3x² - 3

The red curve crosses zero at x = -1 and x = 1. Look at the blue curve at those same x-values: x = -1 is a local peak and x = 1 is a local valley. The derivative found them without any guesswork.

Is the function going up or down?

Challenge

Challenge: The function f(x) = x³ - 3x has a peak and a valley. Using the derivative f’(x) = 3x² - 3, can you solve 3x² - 3 = 0 by hand to confirm the peak and valley are at x = -1 and x = 1?

Hint: factor out the 3, then you have a difference of squares.

The Big Idea

Here is everything in one sentence:

The derivative of a function at a point is the slope of the curve at that point, found by zooming in until the curve looks like a straight line.

You started by drawing secant lines through two points and watching what happens as those points slide together. The limiting slope is the derivative. And because you can do this at every point, the derivative is itself a function — a function that tells you the story of how the original one changes.

That is what a derivative really is. Everything else in calculus — the formulas, the rules, the notation — is just machinery for computing this one beautiful idea efficiently.

Take the Quiz