What is a derivative, and how can we calculate it? In this article, we’ll discuss the definition of a derivative and 3 steps to differentiate functions. Then, you can test your knowledge with some examples.

Derivatives measure the instantaneous rate of change of a function. When we talk about rates of change, we’re talking about slopes.

The instantaneous rate of change of a function at a point is equal to the slope of the function at that point. When we find the slope of a curve at a single point, we find the slope of the tangent line. The tangent line to a function at a point is a line that just barely touches the function at that point.

So, the derivative of a function at a single point is equal to the slope of the tangent line at that point.

To visualize the tangent line, let’s look at an example where the equation for the tangent line has already been calculated. Consider the function $f(x) = \ln{(x)}$, indicated by the blue line.

Suppose we want to find the derivative of $f(x)$ at the point $(1, 0)$. The tangent line to the curve $f(x)$ at $(1, 0)$ is represented by the red line, $f(x) = x - 1$. Notice how this line touches $f(x) = \ln{(x)}$ at just one point, $(1, 0)$.

The tangent line $f(x) = x - 1$ is given in the slope-intercept form $f(x) = mx +b$, where $m$ is the slope. So, we can easily see that the slope of $f(x) = x - 1$ is 1.

This means that the instantaneous rate of change, or derivative, of the function $f(x) = \ln{(x)}$ at the point $(0, 1)$ is 1.

The instantaneous rate of change of $f$ at $a$, or the derivative of $f$at $a$, is represented by the notation $f’(a)$. We read aloud the symbol $f’(a)$ as either “the derivative of $f$ evaluated at $a$” or “$f$ prime at $a$.”

The general derivative function of $y = f(x)$ is usually represented by either $f’(x)$ or $\frac{dy}{dx}$. (You can read more about the meaning of dy/dx if needed.) This function tells us the instantaneous rate of change of $f$ with respect to $x$ at any point on the curve.

You can watch Dr. Hannah Fry explain more about what a derivative is below.

3 Steps to Find Derivatives

Next, we’ll learn exactly how to find the derivative of a function. So far, we’ve learned that the slope at a point on a curve is called the slope of the tangent line or the instantaneous rate of change.

By contrast, the slope between two separate points on a curve is called the slope of the secant line. This slope value is also referred to as the average rate of change. The average rate of change will help us calculate the derivative of a function.

To find the average rate of change, we divide the change in the output values (y-values) by the change in the input values (x-values). The delta symbol $\Delta{x}$ represents the "change in $x$," which is the value that $x$ is changing by. The average rate of change of the function $f$ over the interval $[a, b]$ is:

By making $\Delta{x}$ approach 0, we can find the instantaneous rate of change. Take a look at the limit definition of a derivative below.

The derivative of $f$ at $x$ is equal to the limit of the average rate of change of $f$ over the interval $[x, x +\Delta{x}]$ as $\Delta{x}$ approaches 0. This limit is given by:

If this limit exists, then $f(x)$ is differentiable, and the derivative of the function $f$ at $x$ is $L$. For a brief review of limits, read What Are Limits? and How to Find Limits.

Here are 3 simple steps to calculating a derivative:

Substitute your function into the limit definition formula.

Simplify as needed.

Evaluate the limit.

Let’s walk through these steps using an example. Suppose we want to find the derivative of $f(x) = 2x^2$.

Step 1

First, we need to substitute our function $f(x) = 2x^2$ into the limit definition of a derivative. Substituting the first term of the limit definition’s numerator correctly can be tricky at first. The key is to simply substitute $x$ with $(x + \Delta{x})$ wherever $x$ appears in the function.

Next, we simplify our function as much as we can. First, we’ll expand the term $2(x + \Delta{x})^2$, and then combine like terms. Then, since $\Delta{x}$ is present in all terms of the numerator and denominator, we can divide by $\Delta{x}$.

Finally, we can evaluate the limit as $\Delta{x}$ approaches 0. Since we’re left with a polynomial function and polynomials are always continuous, we can simply substitute $\Delta{x} = 0$ into the function we’re left with.

Thus, the general derivative formula of $f(x) = 2x^2$ is $4x$. If you want to find the derivative at a single point, you can simply plug $x = a$ into $f’(x) = 4x$. For example:

$f’(1) = 4(1) = 4$. This value represents the slope of the tangent line at $x = 1$.

$f’(2) = 4(2) = 8$. This value represents the slope of the tangent line at $x = 2$.

$f’(100) = 4(100) = 400$. This value represents the slope of the tangent line at $x = 100$.

Standard Derivative Rules

Now that you’re familiar with the limit definition of a derivative, you can begin to memorize the standard derivative rules below. These derivative rules are derived from the limit definition of a derivative. They allow us to evaluate derivatives much faster.

Here are some of the most common derivative rules to know:

Constant Rule

$\frac{d}{dx}c = 0$

Power Rule

$\frac{d}{dx}(x^n) = nx^{n-1}$

Special Case of the Power Rule (where n=1): $\frac d{dx}(x)=1$

Dr. Tim Chartier explains more about the Product and Quotient derivative rules.

4 Practice Exercises

Exercise 1

Let $f(x) = 7x - 1$. Using the limit definition of a derivative, find $f’(x)$.

Solution

Substituting your function into the limit definition can be the hardest step for functions with multiple terms. Remember to double-check your answer, use parentheses where necessary, and distribute negative signs appropriately.

Let $f(x) = \frac{1}{x}$. Using the limit definition of a derivative, find $f’(x)$.

Solution

After substituting our function into the limit definition, we’ll need to combine the two fractions in the numerator by finding a common denominator and then multiplying appropriately.

Let $f(x) = 3x^2 + e^{cos{(x)}}$. Using the derivative rules, find $f’(x)$.

Solution

For this problem, we’ll need to use the Sum Rule. The Sum Rule states that the derivative of a sum of functions is equal to the sum of their derivatives. To find the derivative of each separate function, we can use the Power Rule and the Constant Multiple Rule for the first term, and the Chain Rule, trigonometry rules, and the exponential rule for the second term.

For the first term, we use the Power Rule with $n=2$, combining that with the Constant Multiple Rule where $c=3$. Using these, we see that the derivative of the first term is $f'(x)=3\cdot2x^{2-1}=3\cdot2x=6x$.

For the second term, we also have a composition of functions with $e^{\cos{(x)}}$. The Chain Rule says that the derivative of a composition of functions is found by first taking the derivative of the "outside" function and leaving the “inside” unchanged, and then multiplying by the derivative of the "inside" function.

So, to find the derivative of $e^{\cos{(x)}}$, we can simply use the exponential rule and then multiply by $-\sin{(x)}$, which is the derivative of the inside function $\cos{(x)}$.

$f’(x) = 6x + e^{\cos{(x)}}\cdot (-\sin{(x)})$

$f’(x) = 6x -\sin{(x)}e^{\cos{(x)}}$

So, $f’(x) = 6x -\sin{(x)}e^{\cos{(x)}}$.

Exercise 4

Let $f(x) = 2x\sin{(5x)}$. Using the derivative rules, find $f’(x)$.

Solution

For this problem, we’ll need to use the Product Rule. The product rule states that the derivative of a product of functions is the sum of the first function times the derivative of the second and the second function times the derivative of the first.

The first function in our product is $2x$. To find the derivative of this we use the special case of the Product Rule with $n=1$ as well as the Constant Multiple Rule with $c=2$. Applying these rules, we find that the derivative of $2x$ is

$\frac d{dx}\left(2x\right)=2\cdot1=2$

For the second function in our product, we have a composition of functions with $\sin{(5x)}$. The Chain Rule says that the derivative of a composition of functions is found by first taking the derivative of the "outside" function and leaving the “inside” unchanged, and then multiplying by the derivative of the "inside" function.

So, to find the derivative of $\sin{(5x)}$, we can simply use the trigonometry rules for sin and then multiply by $5$, which is the derivative of the inside function $5x$. The derivative of the inside function is found by using the special case of the Power Rule for $n=1$ and the Constant Multiple Rule.

Plugging the derivatives we found into the Product Rule, we get:

Outlier (from the co-founder of MasterClass) has brought together some of the world's best instructors, game designers, and filmmakers to create the future of online college.