Defining the Derivative of a Function and Using Derivative Notation
Why this matters
Imagine you're driving from Dallas to Austin for a weekend trip. If the 195-mile drive takes you 3 hours, your average speed was 65 mph. That's a simple algebra calculation. But you know you didn't drive exactly 65 mph the whole time. You slowed down in Waco traffic and sped up on the open highway. At any given moment, your speedometer showed your instantaneous speed.
How could you calculate that instantaneous speed mathematically? If you try to use the distance/time formula for a single instant, you get 0 miles divided by 0 seconds, which doesn't help.
Calculus gives us the tool to solve this. We're about to build the mathematical equivalent of that speedometer. It's called the derivative, and it allows us to move from the world of average change to the world of instantaneous change. We'll learn exactly how to define it and use it to find the slope of a curve at a single, precise point.
Concept overview
flowchart TD
A[Start: Find tangent line to f(x) at x=a] --> B{1. Find the Point};
B --> C[Calculate y1 = f(a) --> Point is (a, f(a))];
A --> D{2. Find the Slope};
D --> E[Set up limit def: f'(x) = lim(h->0) ...];
E --> F[Simplify algebra, cancel h];
F --> G[Evaluate limit to find f'(x)];
G --> H[Calculate slope m = f'(a)];
C --> I{3. Write Equation};
H --> I;
I --> J[Use Point-Slope Form: y - f(a) = m(x - a)];
J --> K[End: Equation of Tangent Line];
Core explanation
From Average Slope to Instantaneous Slope
You've been calculating slope for years. The slope of a line is its "rate of change." You take two points, (x1, y1) and (x2, y2), and use the formula:
m = (y2 - y1) / (x2 - x1)
When we do this for a curve, we're finding the slope of a secant line—a line that cuts through the curve at two points. This gives us the average rate of change between those two points.
But how do we find the rate of change at a single point? This is the central question of differential calculus. We want the slope of the tangent line—a line that just touches the curve at one point, matching its steepness there perfectly.
Imagine zooming in on a smooth curve with a powerful microscope. The more you zoom in, the straighter the curve appears. The tangent line is the line that matches the slope of that infinitely-zoomed-in piece of the curve.
Building the Definition of the Derivative
Let's make this idea precise.
-
Start with a point on our function
f(x). We'll call it(x, f(x)). -
Let's pick a second point, very close to the first. We'll say it's a tiny horizontal distance,
h, away. So this second point is(x + h, f(x + h)). -
Now, let's find the slope of the secant line between these two points using our old algebra formula:
m_sec = ( f(x + h) - f(x) ) / ( (x + h) - x ) -
Look at the denominator. The
xand-xcancel out, leaving justh.m_sec = ( f(x + h) - f(x) ) / h
This expression is incredibly important. It's called the difference quotient. It represents the average rate of change between x and x+h.
To get the instantaneous rate of change, we need to make the distance between our two points, h, get as close to zero as possible. We want to shrink that gap until the secant line becomes the tangent line.
This is where limits come to the rescue! We can't just plug in h=0 (that would give us 0/0), but we can ask: "What value does this slope approach as h gets infinitely close to 0?"
This leads us to the formal definition of the derivative.
The derivative of a function f, denoted f'(x), is:
f'(x) = lim(h->0) (f(x + h) - f(x)) / h
This formula calculates the instantaneous rate of change of f(x) at any x where the limit exists. It gives us a new function, f'(x), that tells us the slope of the original function f(x) at every single point.
Notations and What It All Means
The derivative is a function that gives you the slope of the tangent line.
- AnalyticallyThe formula
f'(x) = lim(h->0) ...is how we find it. - GraphicallyThe value of
f'(a)is the slope of the line tangent to the graph off(x)atx=a. Iff'(2) = 5, it means the graph off(x)has a slope of 5 at the point wherex=2. - VerballyWe can describe the derivative as the "instantaneous rate of change."
Mathematicians use a few different notations for the derivative, and you need to know them all. If we have a function y = f(x), its derivative can be written as:
f'(x): Read as "f prime of x." This is Newton's notation. It's clean and emphasizes that the derivative is itself a function of x.dy/dx: Read as "dee-why, dee-ex." This is Leibniz's notation. It looks like a fraction, which helps you rememberchange in y / change in x, but it's not a fraction you can separate. It means "the derivative of y with respect to the variable x."y': Read as "y prime." This is a simple, quick shorthand.
All three mean the exact same thing: the derivative of f(x).
The Tangent Line Problem
The most direct application of the derivative is finding the equation of a tangent line. Remember from algebra, to write the equation of a line, you need two things:
- A point
(x1, y1) - A slope
m
If we want to find the equation of the line tangent to f(x) at x=a:
- 1The PointThe line touches the curve at
x=a, so the point is(a, f(a)). You find the y-value by pluggingainto the original function. - 2The SlopeThe slope of the tangent line is the derivative at that point. The slope is
m = f'(a). You find this by finding the derivative functionf'(x)and then pluggingainto it.
Once you have your point and your slope, you use the point-slope form you learned in algebra:
y - y1 = m(x - x1)
This is the blueprint we'll use over and over again.
Worked examples
Let's walk through the process together. It's mostly algebra, so be patient and organized with your work.
Finding the Derivative Function
Problem: For the function f(x) = x² + 3, find the derivative f'(x) using the limit definition.
Solution:
Our goal is to apply the formula f'(x) = lim(h->0) (f(x + h) - f(x)) / h. Let's do it step-by-step.
-
Find
f(x+h): This is a common place for mistakes. Everywhere you see anxinf(x), replace it with the entire quantity(x+h).f(x+h) = (x+h)² + 3f(x+h) = (x² + 2xh + h²) + 3 -
Set up the difference quotient: Now plug
f(x+h)andf(x)into the numerator.(f(x+h) - f(x)) / h = ( (x² + 2xh + h² + 3) - (x² + 3) ) / hWhy? We are setting up the slope formula for the secant line betweenxandx+h. -
Simplify the numerator: Distribute the negative sign and combine like terms.
= (x² + 2xh + h² + 3 - x² - 3) / h= (2xh + h²) / hNotice that the terms withouth(x²and3) canceled out. This will always happen if your algebra is correct. It's a great way to check your work. -
Factor out
hand cancel:= h(2x + h) / h= 2x + h -
Take the limit: Now that we've cancelled the
hin the denominator, we can finally evaluate the limit by substitutingh=0.f'(x) = lim(h->0) (2x + h) = 2x + 0 = 2x
Finding the Equation of a Tangent Line
Problem: Find the equation of the line tangent to the curve g(x) = 2x² - x at the point where x = 3.
Solution: We need a point and a slope.
-
Find the point
(x1, y1): The x-coordinate is given:x1 = 3. To find the y-coordinate, plugx=3into the original functiong(x).y1 = g(3) = 2(3)² - 3 = 2(9) - 3 = 18 - 3 = 15So, our point of tangency is(3, 15). -
Find the slope
m: The slope is the derivative evaluated atx=3, which isg'(3). First, we must find the derivative functiong'(x)using the limit definition.g(x+h) = 2(x+h)² - (x+h) = 2(x² + 2xh + h²) - x - h = 2x² + 4xh + 2h² - x - hg'(x) = lim(h->0) ( (2x² + 4xh + 2h² - x - h) - (2x² - x) ) / hg'(x) = lim(h->0) (4xh + 2h² - h) / hg'(x) = lim(h->0) h(4x + 2h - 1) / hg'(x) = lim(h->0) (4x + 2h - 1) = 4x - 1Now that we have the slope functiong'(x) = 4x - 1, we can find the specific slope atx=3.m = g'(3) = 4(3) - 1 = 12 - 1 = 11
-
Write the equation of the line: Use the point-slope form
y - y1 = m(x - x1).y - 15 = 11(x - 3)
Try it yourself
Ready to try on your own? Take your time, write out every step, and check your algebra.
-
Find the derivative
f'(x)forf(x) = 5x - 2x²using the limit definition. Hint: Be very careful when you substitutef(x+h)andf(x)into the numerator. Remember to distribute the negative sign to both terms off(x). -
Find the equation of the line tangent to the function
f(x) = 1/xatx=2. Hint: You'll need a point and a slope. First, find the point by calculatingf(2). Then, use the limit definition to find the slope functionf'(x). To simplify the complex fraction in the numerator, find a common denominator.
In simple terms, the derivative is a tool for finding the exact, instantaneous rate of change—like the speed on a speedometer—at any single point on a function's graph.
f'(x) = lim(h->0) (f(x + h) - f(x)) / h
- CHA-2.B: Represent the derivative of a function as the limit of a difference quotient.
- CHA-2.C: Determine the equation of a line tangent to a curve at a given point.
- CHA-2.B.2
- The derivative of f is the function whose value at x is lim(h->0) (f(x+h)-f(x))/h, provided this limit exists.
- CHA-2.B.3
- For y = f(x), notations for the derivative include dy/dx, f'(x), and y'.
- CHA-2.B.4
- The derivative can be represented graphically, numerically, analytically, and verbally.
- CHA-2.C.1
- The derivative of a function at a point is the slope of the line tangent to a graph of the function at that point.
flowchart TD
A[Start: Find tangent line to f(x) at x=a] --> B{1. Find the Point};
B --> C[Calculate y1 = f(a) --> Point is (a, f(a))];
A --> D{2. Find the Slope};
D --> E[Set up limit def: f'(x) = lim(h->0) ...];
E --> F[Simplify algebra, cancel h];
F --> G[Evaluate limit to find f'(x)];
G --> H[Calculate slope m = f'(a)];
C --> I{3. Write Equation};
H --> I;
I --> J[Use Point-Slope Form: y - f(a) = m(x - a)];
J --> K[End: Equation of Tangent Line];
Read what Saavi narrates
(Sound of a soft, encouraging synth intro)
Hey there, it's Saavi from Shrutam. Let's talk about one of the biggest ideas in all of calculus.
Imagine you're driving from Dallas to Austin. Your average speed might be 65 miles per hour. But at any single moment... when you glance at your speedometer... it shows your instantaneous speed. How do we find that exact speed, at that exact moment? That's the question the derivative answers.
We're going to build a precise tool, the derivative, to measure the exact rate of change at a single moment. It's built from the slope formula you already know, but super-charged with the power of limits.
Let's try an example. Say we have the function f of x equals x-squared, which is a simple parabola. And we want to find its derivative, f-prime of x. The derivative will be a new function that tells us the slope of the parabola at any point.
The formula is the limit as h approaches zero, of f of x plus h, minus f of x, all over h.
First, we figure out f of x plus h. We get... x-squared plus 2xh plus h-squared.
Next, we subtract the original function, x-squared. This leaves us with 2xh plus h-squared in the numerator.
Now, we can factor an h out of the top, which gives us h times the quantity 2x plus h.
This lets us cancel the h in the numerator with the h in the denominator. We're left with just 2x plus h.
Finally, we take the limit as h goes to zero. The expression 2x plus h just becomes 2x.
So, the derivative of x-squared is 2x. That's it! This function, 2x, tells us the slope of the original parabola for any x-value.
Now, a really common mistake here is with the algebra. When you're finding f of x plus h for a function like x-squared minus 4x... many students will write x-squared plus h-squared minus 4x. That's wrong because you have to substitute x plus h for *every* x, and you have to expand it correctly. Be patient with your algebra. It's the engine that makes calculus work.
You are so capable of mastering this. It takes practice, but this idea—finding the instantaneous rate of change—is the key that unlocks the rest of calculus. You've got this.
(Outro music fades in)
The expression `(f(x+h)-f(x))/h` is *not* equal to the derivative; only its limit is. Omitting the `lim` is a major notational and conceptual error that will lose points.
Keep writing `lim(h->0)` at the start of each step until you are ready to substitute `h=0`.
You must substitute `(x+h)` for *every* `x`. You also must expand `(x+h)²` correctly.
Be methodical. `f(x+h) = (x+h)² - 4(x+h)`. Then expand and distribute: `(x² + 2xh + h²) - (4x + 4h)`.
While this works, it's much more work if you have to find the slope at multiple points. It's also not what you do when you learn derivative rules later.
Find the general derivative `f'(x)` first. Then, as a final step, plug in `x=3` to get `f'(3)`.
You can only cancel common factors, not individual terms.
First, factor `h` out of the entire numerator: `h(2x + h)`. Then you can cancel the `h` in the numerator with the `h` in the denominator.
The question asks for the *equation of the line*, not just its slope.
Once you have the slope `m` and the point `(x1, y1)`, always finish the problem by plugging them into the point-slope form: `y - y1 = m(x - x1)`.