# Differentiation Rules

While it's possible to compute derivatives using the definition of the derivative as a limit, it is too much work if you're differentiating anything complicated. It's more efficient to develop a set of differentiation rules to use as shortcuts.

Several remarks are in order. First, it is silly to memorize the rules. You should learn them by doing examples.

Second, differentiation is a skill --- it is something you learn by practicing. You can't learn to differentiate by watching the instructor do examples. Since you will need to compute derivatives in virtually all the calculus courses you take, it is worth learning to do well now to avoid grief in the future.

On the other hand, you should keep things in perspective. Calculus is not just a matter of computing derivatives and integrals. The computations acquire their meaning when they are used to do things: Compute rates of change, find maxima and minima, determine areas or volumes, and so on.

The fact that calculators can do arithmetic does not mean that people don't need to learn arithmetic. A certain amount of computation is necessary in order to develop an intuition for numbers.

In the same way, the fact that computer programs like Mathematica or Derive can compute derivatives and integrals does not mean that people don't need to learn to differentiate or integrate. I don't think you can have a complete understanding of what a derivative is if you've never computed a few derivatives. However, at some point you may want to use a computer to do the ugly computations, in the same way that you use a calculator to do arithmetic.

I'll illustrate the differentiation rules with some examples. In these examples, I'll write

for the derivative of with respect to x.

1. The derivative of a constant is 0.

This makes sense, because a constant doesn't change, and the derivative gives the rate of change.

Example.

1. ( The Power Rule) , for .

This rule is called the Power Rule, because it tells you how to differentiate a power of the variable. In words, you "bring the power down" and decrease the power by 1.

Example.

Notice that n can be any nonzero real number:

1. .

This rule says that constants may be "pulled out" when you differentiate. Another way to think of this is that the constant just "sits there", while the thing it multiplies gets differentiated.

Don't confuse this rule with the first rule --- the derivative of a constant is 0. In that situation, the constant was "by itself". In this situation, the constant multiplies something.

Example. The second derivative of f is the derivative of with respect to x. It's denoted . Thus,

Likewise, the third derivative is the derivative of the second derivative, and so on:

For example, suppose . Here are the first few derivatives:

Example. A function has a vertical tangent at a if f is continuous at a and

Geometrically, this means that the graph has a vertical tangent line at a.

For example, consider . Then , so

The graph has a vertical tangent at . Picture:

Example. A function has a cusp at a if f is continuous at a and:

• approaches from one side of a.
• approaches from the other side of a.

For example, consider . Then , so

Thus, has a cusp at . Picture:

Remark. If the power n is a positive integer, it's pretty easy to derive the Power Rule from the binomial formula. Let . Then

First, if , this comes out to

which is indeed . So assume that .

Recall that ( n factorial) is the product of the integers from 1 to n:

The binomial formula says

Therefore,

Next, divide by h:

As , all the terms but the first go to 0, because they contain positive powers of h. Therefore,

because

If n is not a positive integer, the derivation gets a little trickier. For one thing, it is not obvious what means if n is, say, . Nevertheless, the technicalities can be resolved, and the formula does work for all nonzero real powers.

Example.

I'll discuss trig functions later on, and I'll show that

Hence,

1. The derivative of a sum is the sum of the derivatives:

Example.

1. ( The Product Rule)

Example.

The following picture shows why the Product Rule works.

If I change by a small amount and by a small amount the change in the product is

However, the last term is a product of two small numbers, which is {\it very} small compared to the other two terms. I may neglect it, and I obtain

Now divide by to pass to rates of change.

Here's how the proof looks if I use limits.

1. ( The Quotient Rule)

(That's on the bottom!)

Example.

Note, however, that if either the top or the bottom is just a {\it number}, it is better not to use the Quotient Rule. If the number is on the bottom, you can divide:

If the number is on the top, you can use

You shouldn't memorize this formula; it's a special case of the Chain Rule, which I'll talk about later. Here's an example:

I obtained the derivative by trying to find the slope of the tangent line to a curve. Here are some examples which apply the differentiation rules to problems on tangent lines.

Example. Find the equation of the tangent lines to which pass through the point .

The x-axis is clearly one such tangent line. Its equation is .

To find the other tangent, let be the point of tangency. The slope of the tangent line is ; when , .

On the other hand, the line passes through and , so its slope is . equate the two expressions for the slope and solve for c:

gives the x-axis, which I know about already. gives ; since the line passes through , its equation is

Example. At what point(s) does the graph of have a horizontal tangent?

A horizontal line has slope 0. Since the derivative gives the slope of the tangent, I'll find the derivative and set it equal to 0:

Clearly, when . , so there is a horizontal tangent at the point .

Example. Find the equation of the line which is {\it perpendicular} to the graph of at the point .

To be perpendicular to the graph is the same as being perpendicular to the tangent line. The slope of the tangent is given by the derivative, which is . Hence, at , the tangent has slope .

Perpendicular line have slopes which are negative reciprocals of each other. Therefore, the slope of the perpendicular line is . Since the line passes through the point , its equation is

Contact information