At the core of **differential calculus** is the idea of the **slope of a curve**. Until now you may have only thought about slopes of lines, but any *curve* can have a slope at a given point, provided that the curve is "well behaved" at that point (more on that later).

The slope of a curve at some point in its domain is the slope of the line that is **tangent** to the curve at that point. Recall that a tangent is a line that just touches a curve at a single point.

One very important reason for finding the slope of the curve is that its value is zero (i.e. the tangent is horizontal) at a maximum or minimum of the function (see the figure above). The tangent to a function is a horizontal line at a maximum or minimum. Among other things, this will allow us to find the *exact* solutions to optimization (most profit, least cost, &c...) problems *without* estimating with a calculator.

The **slope of a curve** at a point is defined as the slope of the line tangent to the curve at that point.

Use the sliders on the graph of **y = -x ^{3} + x^{2} + 10x + 5** — just a nondescript polynomial — below to change the position of the tangent line along the curve. Pay attention to the value of the slope of the line as you move it.

Notice that at the minimum and maximum of **f(x)**, the value of the slope is **zero**. That will come in handy later for *finding* maxima and minima, and for solving real problems such as maximizing profit or minimizing material used to perform some task.

The **derivative** of a function, **f(x)** is another function, **f'(x)** ("f-prime of x") that returns the slope of **f(x)** at any point in its domain. This short section is a tour through the logic of finding the derivative. It's surprisingly simple (there is nothing essentially mysterious about calculus – don't worry).

Let's say we want to find the **average slope** of the curve **f(x)** between two points on its graph, **x _{1}** and

Now of course m, as shown, is just the *average* value of the slope of **f(x)** between **x _{1}** and

Could we find the value of the slope at just one of those intermediate points on the curve?

This time we'll try to find the slope of our curve at some specific point **x**.

To do that, we'll first change our notation a little and use **x** and (**x + Δx**) instead of x_{1} and x_{2} to label our two points. This will allow us to reduce the width of the interval between them (the x-distance) by reducing **Δx**.

The slope of our secant line (magenta), **m**, is written above the graph in terms of **x**, **Δx**, **f(x)** and **f(x+Δx)**. Convince yourself that this equation still just represents rise over run, **Δy / Δx ** (and don't forget that **y = f(x)**).

OK, almost there. Now do the following thought exercise: Imagine that **Δx** gets smaller and smaller, and eventually vanishes or becomes "infinitessimally small." In the **limit** that **Δx = 0**, we would have the **exact slope** of our function at point **x**.

That is the essence of differential calculus: Finding the limit of a slope function as the change in the independent variable approaches zero. The graphs below will help you visualize how making the distance between our two points smaller gives us a better and better estimate of the slope of **f(x)** at **x**. We'll wait for a while to actually *prove* that this limit is the slope of **f(x)** at **x**.

In the graphs above, our estimate of the slope of a function **f(x)** at **x** is just that – an estimate. In order to make it exact, we look at the slope,

If **Δx** could be reduced to zero, then our slope would be *exact*. What we're talking about there is the limit of the slope function as **Δx** → 0:

The expression for m is often referred to as the **difference quotient**, and the limit of the difference quotient as **Δx** → 0 is the derivative of the function at **x**.

You might have noticed that if **Δx** goes to zero, the function "blows up," so this is a tricky limit. The thing to keep in mind is that **Δx** is present in both the numerator and denominator of this limit; each is heading toward zero as **Δx** → 0, and these "compete" in a way to give a finite limit. It's always that way with derivatives. You'll see how it works in the examples below.

Finally, just a simple change of notation, replacing **Δx** with **h**, simply to match most of the calculus textbooks you're likely to encounter.

Let's step through the logic again. Pick a point, **x**, on the smooth curve **f(x)**. Move some distance, **h**, away in the domain and choose a second point **(x+h, f(x+h))**. Draw a secant line between the two.

Find the equation of the slope of that secant **(x, f(x))** and **(x+h, f(x+h))**.

Find the **limit** of this slope function as **h→0**. This will yield a function that gives the slope of **f(x)** at any arbitrary point in its domain, provided that **f(x)** has no discontinuities, like asymptotes, holes, sharp corners or the like. (More on these later).

In preparation to use our new method to find the derivative of the simple quadratic function **f(x) = x ^{2}**, let's take a look at the graph and think first about what we should

When **x < 0**, any tangent to the curve will have a negative slope. For points close to zero, the steepness of those slopes approaches zero, and at **x = 0**, the global minimum of the function, the slope of the tangent is zero. Finally, for **x > 0**, the slope of the tangent to any point is positive.

Our derivative function will have to have those properties.

First we write the definition of the derivative, the limit of the difference quotient. The notation **df/dx** will be explained below. It is one of several ways to indicate a derivative.

Now plug the function in; f(x+x), for example, is (x+h)^{2}.

Expand the expression in the numerator and simplify. What generally happens in these limits is that the only terms to survive in the numerator all contain an h (or **Δx**), and that eliminates the possibility of a zero denominator:

That gives us our derivative function:

So we've found the derivative of **f(x) = x ^{2}**. It's

Here ( → ) are graphs of **f(x)** (top) and its derivative.

Note that while sometimes you'll see the a function and its derivative plotted on the same axes, I'll avoid doing that. The two functions have differenty-coordinates and should be plotted on separate axes.

The right side of **f(x)** (**x > 0**) has positive slope, and that slope is increasing as **x** grows. The left side (**x < 0**) has negative slope, with that slope increasing (but never becoming positive) as **x** approaches zero. At the vertex, **x = 0**, the slope is zero.

All of these characteristics are reflected in **f'(x)**, which also shows that the *increase* in the slope of **f(x)** in the upper right quadrant is *linear*. Likewise the increase in slope when **x < 0** is also linear. Note that it's the *change* in slope that's linear, not the shape of the graph of **f(x)** itself.

There are a few ways of writing the derivative of a function. The first and last in this table are the most common. There are good reasons to know how to use both, as you will see later on in your study of calculus.

This notation was used by Leibniz, and it's one of the most useful. The ratio df/dx is pronounced "dee-f dee-x." | |

This is Newton's notation and it isn't used that often. | |

This shorthand for a derivative, "f-prime of x" is very handy and used a lot. |

This is a slightly different way to find the derivative of a function, this time at a single point in its domain, and you should be familiar with it. It's summarized in the graph →

We'd like to evaluate the slope of the curve **f(x)** at the point **x = a**. The only difference here is that the distance **h** is replaced by the difference between some coordinate **x** and** x = a**, or **x - a**.

The slope is

and the difference quotient is:

You should be able to recognize either of these difference quotients as the derivative of a function. The one on the left is the general derivative **f'(x)**, and the other is the derivative of **f(x)** at a specific point, **x = a**, or **f'(a)**.

The **slope** of a __distance vs. time__ graph like this one (blue curve) is, by definition, the speed: speed = distance / time which is rise / run.

If we know the distance and time at any two points, it's easy to calculate the **average speed**, **Δx / Δt** (red line). But average speed is quite different from **instantaneous speed**, the speed at any instant in time.

In the figure, the instantaneous speed is calculated at two different times, **t _{1}** and

Until now we haven't had a convenient way to arrive at instantaneous speeds. There are many more such derivative relationships in physics. Here are some of them:

This is an interesting function–a rational function. It has a vertical asymptote at **x = 1**, therefore finding the slope of **f(x)** at **x = 1** makes no sense – the function has no actual *value* there. The function (see graph below right) has a positive slope for all **x** in its domain, except for **x = 0**, at which the slope is undefined. Here is the derivative expression for this function; it's just a matter of plugging the function into the difference quotient expression:

*Note: I'm switching back and forth between Δx and h notation on this page, I know. The meaning should be clear from the context of the problem, though. Get used to using both.*

Now focus on what's above **Δx** and make a common denominator:

The **Δx** in the denominator is just the full numerator multiplied by **Δx**; multiply and cancel terms in the numerator:

The **Δx**'s cancel:

And the limit can be found directly by substitution of 0 for **Δx**:

Below are graphs of **f(x)** and **f'(x)**. Notice that the slope of **f(x)** is positive across its domain, and that the slope isn't defined at the vertical asymptote, **x = 0** (because there's no value of the function at **x = 0**).

The graph of the derivative, **f'(x)**, reflects that by being positive everywhere. The derivative curve is also undefined at **x = 0**.

We begin by writing this function into the difference quotient limit. In the first term of the numerator **x** is **(x + Δx)**:

Now we'll do two things. First, dividing by **Δx** is the same as multiplying by the reciprocal; that's how the **Δx** ends up in the denominator of the next step. Second, we'll get a common denominator and add those two fractions in the numerator:

Expanding the numerator a bit gives:

... and expanding all the way and cancelling where we can, including that **Δx** in the denominator looks like this:

Now as **Δx**→0, two terms vanish:

Which gives us our derivative, f(x). Notice that we worked with this expression until taking the limit as **Δx**→0 would no longer cause a zero denominator. It always works that way with derivatives.

Our function **f(x)** and its derivative **f'(x)** are plotted below. It's tricky to interpret these graphs. You have to remember that the value of derivative (red) gives the slope of the function. Verify for yourself that the derivative makes sense. It's positive where the slope of **f(x)** is positive, negative when the slope of **f(x)** is negative, and passes right through zero where we expect the slope of **f(x)** to level out (at the maximum).

For each function, **f(x)**, find the derivative, **f'(x)**. Hover over the problems for answers. You can also download full written solutions.

Find the derivative of each of these functions using the difference quotient:

1. f(x) = 7

2. f(x) = 2x^{2}

3. f(x) = 3x^{2} - 4

4. f(x) = x

5. f(x) = x - 100

6. f(x) = x^{2} - 100

7. f(x) = 3x^{2} + x - 2

8. f(x) = x^{3}

9. f(x) = ^{1}/_{x}

If you did just the few problems above diligently, you may have noticed some patterns (besides that these can be long and tedious problems). Take a look again at each function and its derivative. These are derivatives of polynomial functions; the degree of the derivative is one less than that of the function. Also, the constant in the function is not in the derivative (though there may still be a constant term in the derivative).

There are a few simple rules and shortcuts you can take in figuring out derivatives that will make life much easier. The first is this rule

The graph of the constant function, **f(x) = C**, where **C** is a number, is a horizontal line. The slope of such a line is zero.

So the derivative of any constant function, **f(x) = C**, is zero. Easy peasy.

The sum rule of derivatives looks like this:

It can be derived using the limit difference quotient, writing a function that is a sum as:

**y = f(x) = u(x) + v(x) +** ... , then

**(y + Δy) = (u + Δu) + (v + Δv) +** ... ,

so **Δy = Δu + Δv +** ...

Then if we divide each term by **Δx**, we get the derivative on the left as a sum of derivatives on the right. It's easy to generalize to subtraction, which is just addition of the negative.

This is the real time saver. If you sit down and solve enough problems using the limit definition of the derivative we developed above, you'll see that it can be cumbersome and time-consuming.

If you work enough problems, you'll see a pattern. It's shown on the left, and it's something you should definitely memorize as soon as possible.

For** f(x) = Ax ^{n}**, where A and n are numbers and

Pretty simple. Make sure to work through the examples here. Most students get the hang of using this algorithm pretty quickly.

The power rule of differentiation is the single most powerful rule you'll use when finding derivatives of functions:

To prove the power rule, we'll take advantage of the pattern we find in the expansion of a binomial **(a + b)** taken to the **n ^{th}** power. We're dealing only with integer powers here, but in another section we'll expand this definition to include all real-number exponents.

The binomial expansion formula is:

The expansion of **(a + b) ^{n}** looks like this:

Now we plug that into the difference quotient definition of the derivative:

Now notice that the first and last terms, **x ^{n}**, cancel to give us the following equation with only one term containing

Now each term of the denominator contains an h but all contain higher powers of h than 1 except for the first term, therefore when we divide each term by h and take the limit as h → 0, all terms but the first vanish, leaving

Now the binomial expansion is only defined for integers, therefore this proof is only for integer exponents of x.

**xaktly.com** by Dr. Jeff Cruzan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. © 2012, Jeff Cruzan. All text and images on this website not specifically attributed to another source were created by me and I reserve all rights as to their use. Any opinions expressed on this website are entirely mine, and do not necessarily reflect the views of any of my employers. Please feel free to send any questions or comments to jeff.cruzan@verizon.net.