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 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.

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];
This flowchart shows the three main stages for finding the equation of a tangent line. The process flows from finding the point of tangency, to finding the slope using the limit definition of the derivative, and finally to combining them in point-slope form.

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.

  1. Start with a point on our function f(x). We'll call it (x, f(x)).

  2. 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)).

  3. 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 )

  4. Look at the denominator. The x and -x cancel out, leaving just h.

    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.

  • Analytically
    The formula f'(x) = lim(h->0) ... is how we find it.
  • Graphically
    The value of f'(a) is the slope of the line tangent to the graph of f(x) at x=a. If f'(2) = 5, it means the graph of f(x) has a slope of 5 at the point where x=2.
  • Verbally
    We 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 remember change 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:

  1. A point (x1, y1)
  2. A slope m

If we want to find the equation of the line tangent to f(x) at x=a:

  1. 1
    The Point
    The line touches the curve at x=a, so the point is (a, f(a)). You find the y-value by plugging a into the original function.
  2. 2
    The Slope
    The slope of the tangent line is the derivative at that point. The slope is m = f'(a). You find this by finding the derivative function f'(x) and then plugging a into 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.

Example 1

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.

  1. Find f(x+h): This is a common place for mistakes. Everywhere you see an x in f(x), replace it with the entire quantity (x+h). f(x+h) = (x+h)² + 3 f(x+h) = (x² + 2xh + h²) + 3

  2. Set up the difference quotient: Now plug f(x+h) and f(x) into the numerator. (f(x+h) - f(x)) / h = ( (x² + 2xh + h² + 3) - (x² + 3) ) / h Why? We are setting up the slope formula for the secant line between x and x+h.

  3. Simplify the numerator: Distribute the negative sign and combine like terms. = (x² + 2xh + h² + 3 - x² - 3) / h = (2xh + h²) / h Notice that the terms without h ( and 3) canceled out. This will always happen if your algebra is correct. It's a great way to check your work.

  4. Factor out h and cancel: = h(2x + h) / h = 2x + h

  5. Take the limit: Now that we've cancelled the h in the denominator, we can finally evaluate the limit by substituting h=0. f'(x) = lim(h->0) (2x + h) = 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) = 2x² - x at the point where x = 3.

Solution: We need a point and a slope.

  1. Find the point (x1, y1): The x-coordinate is given: x1 = 3. To find the y-coordinate, plug x=3 into the original function g(x). y1 = g(3) = 2(3)² - 3 = 2(9) - 3 = 18 - 3 = 15 So, our point of tangency is (3, 15).

  2. Find the slope m: The slope is the derivative evaluated at x=3, which is g'(3). First, we must find the derivative function g'(x) using the limit definition.

    • g(x+h) = 2(x+h)² - (x+h) = 2(x² + 2xh + h²) - x - h = 2x² + 4xh + 2h² - x - h
    • g'(x) = lim(h->0) ( (2x² + 4xh + 2h² - x - h) - (2x² - x) ) / h
    • g'(x) = lim(h->0) (4xh + 2h² - h) / h
    • g'(x) = lim(h->0) h(4x + 2h - 1) / h
    • g'(x) = lim(h->0) (4x + 2h - 1) = 4x - 1 Now that we have the slope function g'(x) = 4x - 1, we can find the specific slope at x=3. m = g'(3) = 4(3) - 1 = 12 - 1 = 11
  3. 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.

  1. Find the derivative f'(x) for f(x) = 5x - 2x² using the limit definition. Hint: Be very careful when you substitute f(x+h) and f(x) into the numerator. Remember to distribute the negative sign to both terms of f(x).

  2. Find the equation of the line tangent to the function f(x) = 1/x at x=2. Hint: You'll need a point and a slope. First, find the point by calculating f(2). Then, use the limit definition to find the slope function f'(x). To simplify the complex fraction in the numerator, find a common denominator.