Free for students · Ad-free · WCAG 2.1 AA Compliant · Accessibility

Defining the Derivative of a Function and Using Derivative Notation

Lesson ~10 min read

In simple terms: In simple terms, the derivative is about finding the exact, instantaneous rate of change—like a car's speedometer reading—for any function at a single moment.

Why this matters

Imagine you're at Six Flags Over Texas, waiting to ride the Titan rollercoaster. As you crest that first massive 255-foot hill, you're moving slowly. Then, you plunge. Your speed changes every single millisecond on the way down. An engineer could tell you your average speed over the whole drop, but what if you want to know your exact speed at the very bottom, at that one specific instant you feel the most force? How would you measure that?

That single-moment speed is the core idea of the derivative. It's the speedometer for any function, telling us not the average rate of change over an interval, but the instantaneous rate of change at a precise point. In this lesson, we'll build the tool for this from the ground up: the limit definition of the derivative. We'll also learn how to use it to find the equation of a tangent line, which is the geometric picture of this instantaneous rate.

Concept overview

flowchart TD
    A[Start with f(x) and a point x=a] --> B{Goal: Find slope of tangent line at x=a};
    B --> C[Write the Difference Quotient<br>(f(x+h) - f(x)) / h];
    C --> D[Place it in the Limit Definition<br>lim h->0 ...];
    D --> E[Step 1: Algebraically simplify the numerator];
    E --> F[Step 2: Factor out h from the numerator];
    F --> G[Step 3: Cancel h from numerator and denominator];
    G --> H[Step 4: Evaluate the limit by plugging in h=0<br>This gives the derivative function, f'(x)];
    H --> I[Step 5: Substitute x=a into f'(x) to find the slope, m];
    I --> J[Result: m = f'(a) is the slope of the tangent line];
This flowchart shows the process for finding the slope of a tangent line using the limit definition of the derivative. It begins with a function and a point, moves through setting up the difference quotient and limit, details the algebraic simplification steps, and concludes with evaluating the limit to find the derivative function and the specific slope.

Core explanation

Hello! I'm Saavi, and I'm so glad you're here. We're about to tackle one of the foundational ideas in all of calculus. It might seem abstract at first, but I promise it's built on a concept you already know very well.

From Algebra to Calculus: The Slope Problem

You know how to find the slope of a straight line. You pick two points, (x1, y1) and (x2, y2), and use the formula: slope = (y2 - y1) / (x2 - x1)

This tells you the rate of change for the entire line, because it's constant. But what about a curve, like the path of a thrown baseball or the graph of f(x) = x^2? The "steepness" is always changing. How can we talk about the slope at a single point?

We can't use the slope formula with one point. But we can start by approximating it. Let's pick a point on our curve, (x, f(x)). Now, let's pick a second point that's super close to the first one. We'll say it's just a tiny horizontal distance, h, away. So the coordinates of our second point are (x + h, f(x + h)).

The line connecting these two points is called a secant line. Its slope is a pretty good estimate of the curve's slope at our original point, especially if h is small.

Using the slope formula, the slope of our secant line is: m_secant = (f(x + h) - f(x)) / ((x + h) - x)

The denominator simplifies nicely: m_secant = (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.

The Magic of Limits

Now, how do we go from a good approximation (the secant line's slope) to the exact answer (the tangent line's slope)?

Imagine those two points on the curve getting closer and closer together. The secant line pivots, getting closer and closer to the true tangent line at our point x. The way we make the points get closer is by making the distance between them, h, shrink to zero.

And what's the tool we use in calculus to see what happens as a value approaches zero? The limit!

By taking the limit of the difference quotient as h approaches 0, we find the exact slope of the tangent line at the point x. This is the derivative.

The Limit 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 is the heart of this lesson. It gives us a new function, f'(x), that tells us the slope of the original function f(x) at any value of x.

Think of it like this: f(x) might tell you your position at any time x. The derivative, f'(x), tells you your speed at any time x.

Notation, Notation, Notation

In math, we often have several ways to write the same thing. You'll see the derivative written in a few common ways. If we start with y = f(x), these all mean the same thing:

  • f'(x): Called "f prime of x". This is Newton's notation. It's clean and emphasizes the "function" nature of the derivative.
  • dy/dx: Called "dee-y, dee-x". This is Leibniz's notation. It looks like a fraction because it comes from the slope formula Δy/Δx, but d signifies an infinitesimally small change.
  • y': Called "y prime". This is just a shorthand for f'(x).

Don't let the different notations throw you. They are all asking for the same thing: find the derivative.

The Tangent Line Connection

So, what do we do with this? The most direct application is finding the equation of a tangent line.

Remember, the derivative f'(x) gives you a formula for the slope of the tangent line at any x. If you want the slope at a specific point, say x = a, you just calculate f'(a).

Once you have that slope, m = f'(a), and you know the point on the curve, (a, f(a)), you can write the equation of the tangent line using the point-slope form you learned in Algebra 1:

y - y1 = m(x - x1) y - f(a) = f'(a) * (x - a)

The derivative can be understood in four ways (and the AP exam expects you to be flexible):

  • Graphically
    It's the slope of the tangent line.
  • Numerically
    It's the value you approach when you calculate the difference quotient for tiny values of h (like h=0.001).
  • Analytically
    It's the function f'(x) you find by solving the limit definition.
  • Verbally
    It's described as the "instantaneous rate of change."

For now, we'll focus on the analytical process, but keep these other ideas in mind. They are all connected.

Worked examples

Let's make this concrete. Seeing the algebra in action is the best way to understand the process.

Example 1

Finding the Derivative of a Parabola

Problem: Find the derivative of f(x) = x² + 2 using the limit definition.

Solution:

Our goal is to solve f'(x) = lim(h→0) [ (f(x + h) - f(x)) / h ].

  1. 1
    Find the pieces
    • We know f(x) = x² + 2.
    • Now we need f(x + h). This means we substitute (x + h) everywhere we see x in the original function. f(x + h) = (x + h)² + 2
  2. 2
    Substitute into the difference quotient
    f'(x) = lim(h→0) [ ((x + h)² + 2) - (x² + 2) ] / h

    Why this step? We're setting up the slope of the secant line before we take the limit. A common mistake is messing up the parentheses here, especially the second term. Always wrap f(x) in parentheses to ensure you distribute the negative sign correctly.

  3. 3
    Simplify the numerator
    • First, expand (x + h)²: (x + h)(x + h) = x² + 2xh + h².
    • Now substitute that back in and distribute the negative sign: lim(h→0) [ (x² + 2xh + h² + 2) - x² - 2 ] / h
    • Combine like terms. Notice that cancels with -x², and +2 cancels with -2. This will almost always happen! If terms without an h don't cancel, you've likely made an algebraic error. lim(h→0) [ 2xh + h² ] / h
  4. 4

    Factor out h and cancel: lim(h→0) [ h(2x + h) ] / h Now we can cancel the h in the numerator and denominator. This is the crucial step that resolves the 0/0 issue. lim(h→0) [ 2x + h ]

  5. 5
    Evaluate the limit
    Now we can substitute h = 0: f'(x) = 2x + 0 = 2x

Example 2

Finding the Equation of a Tangent Line

Problem: Find the equation of the line tangent to the curve g(x) = 3/x at the point where x = 1.

Solution:

We need two things for a line's equation: a point and a slope.

  1. 1
    Find the point
    The x-coordinate is given: x = 1. The y-coordinate is g(1) = 3/1 = 3. So, our point is (1, 3).
  2. 2
    Find the slope using the derivative
    We need to find g'(x) first, then evaluate it at x=1. g'(x) = lim(h→0) [ (g(x + h) - g(x)) / h ] g'(x) = lim(h→0) [ (3/(x+h)) - (3/x) ] / h

    Why this step? This is the trickiest part. We have a complex fraction. The strategy is to combine the fractions in the numerator first.

    • Find a common denominator for the numerator: x(x+h). lim(h→0) [ (3x / (x(x+h))) - (3(x+h) / (x(x+h))) ] / h
    • Combine them: lim(h→0) [ (3x - 3(x+h)) / (x(x+h)) ] / h
    • Simplify the numerator: lim(h→0) [ (3x - 3x - 3h) / (x(x+h)) ] / h lim(h→0) [ -3h / (x(x+h)) ] / h
    • Now, dividing by h is the same as multiplying by 1/h: lim(h→0) [ -3h / (x(x+h)) ] * (1/h)
    • Cancel the h: lim(h→0) -3 / (x(x+h))
  3. 3
    Evaluate the limit
    Substitute h = 0: g'(x) = -3 / (x(x+0)) = -3 / x²
  4. 4
    Calculate the specific slope
    We need the slope at x = 1. m = g'(1) = -3 / (1)² = -3.
  5. 5
    Write the equation of the line
    Using point-slope form with point (1, 3) and slope m = -3: y - 3 = -3(x - 1) You can leave it in this form, or simplify to y = -3x + 6.

Try it yourself

Ready to try a couple on your own? Remember to follow the steps carefully. The algebra is the workout here.

  1. 1
    Problem
    Use the limit definition of the derivative to find f'(x) for the function f(x) = 2x² - 3x.
    • Hint: Remember to be very careful when you substitute and expand f(x+h). Write out every term. The -3x part will introduce a -3h term that will be important.
  2. 2
    Problem
    Find the equation of the line tangent to f(x) = √x at x = 9.
    • Hint: You'll end up with (√(9+h) - 3) / h inside your limit. To simplify this, you'll need to multiply the numerator and denominator by the conjugate of the numerator, which is √(9+h) + 3. This classic algebra trick will help you cancel the h.

Take your time, write out each step, and check your algebra. You can do this!