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.

Before we start, here are several comments. First, it is silly to memorize the rules. You should learn them by doing examples.

Second, computing derivatives 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 and computers 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 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 "$\der {} x (\hbox{junk})$ " for the derivative of $\hbox{junk}$ with respect to x.

1. ( Derivative of a Constant) The derivative of a constant is 0.

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

Thus,

$$\der {} x 17^{-3} = 0.$$

$$\der {} x \pi = 0.$$

$$\der {} t \left[(\sin t)^2 + (\cos t)^2\right] = \der {} t 1 = 0.$$

Proofs of the derivative rules depend on the properties we proved for limits. I'll give proofs of some of the rules by way of example.

Proof. (The Derivative of a Constant) In this case, $f(x) = c$ , where c is a constant. This means that the output of f is c, no matter what the input is. Hence, $f(x + h) = c$ as well. Then

$$f'(x) = \lim_{h \to 0} \dfrac{f(x + h) - f(x)}{h} = \lim_{h \to 0} \dfrac{c - c}{h} = \lim_{h \to 0} \dfrac{0}{h} = 0.\quad\halmos$$

2. ( The Power Rule) $\displaystyle \der {} x x^n =
   n x^{n - 1}$ , if n is a nonzero integer.

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.

$$\der {} x x^{217} = 217 x^{216}.$$

$$\der {} x \sqrt{x} = \der {} x x^{1/2} = \dfrac{1}{2} x^{-1/2} = \dfrac{1}{2\sqrt{x}}.$$

$$\der {} x \dfrac{1}{x^7} = \der {} x x^{-7} = -7 x^{-8} = \dfrac{-7}{x^8}.$$

Notice that n can be any nonzero real number:

$$\der {} x x^{\sqrt{2}} = \sqrt{2} x^{\sqrt{2}-1}.\quad\halmos$$


Proof. (Power Rule) I'll just consider the case where n is a positive integer. the proof will use the Binomial Formula, which I'll give below. Let $f(x) = x^n$ . Then

$$f'(x) = \lim_{h \to 0} \dfrac{f(x + h) - f(x)}{h} = \lim_{h \to 0} \dfrac{(x + h)^n - x^n}{h}.$$

If $n = 1$ , this comes out to

$$\lim_{h \to 0} \dfrac{(x + h) - x}{h} = \lim_{h \to 0} \dfrac{h}{h} = 1.$$

This is the same as $1\cdot x^0$ , so the formula works. So assume that $n \ge 2$ .

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

$$n! = 1 \cdot 2 \cdot \cdots \cdot n.$$

The binomial formula says

$$(x + h)^n = x^n + \dfrac{n!}{1!(n - 1)!} x^{n-1} h + \dfrac{n!}{2!(n - 2)!} x^{n-2} h^2 + \dfrac{n!}{3!(n - 3)!} x^{n-3} h^3 + \cdots + \dfrac{n!}{(n - 1)!1!} x^1 h^{n-1} + h^n.$$

Therefore,

$$(x + h)^n - x^n = \dfrac{n!}{1!(n - 1)!} x^{n-1} h + \dfrac{n!}{2!(n - 2)!} x^{n-2} h^2 + \dfrac{n!}{3!(n - 3)!} x^{n-3} h^3 + \cdots + \dfrac{n!}{(n - 1)!1!} x^1 h^{n-1} + h^n.$$

Next, divide by h:

$$\dfrac{(x + h)^n - x^n}{h} = \dfrac{n!}{1!(n - 1)!} x^{n-1} + \dfrac{n!}{2!(n - 2)!} x^{n-2} h + \dfrac{n!}{3!(n - 3)!} x^{n-3} h^2 + \cdots + \dfrac{n!}{(n - 1)!1!} x^1 h^{n-2} + h^{n-1}.$$

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

$$f'(x) = \dfrac{n!}{1!(n - 1)!} x^{n-1} = nx^{n-1}.$$

I simplified the fraction by writing

$$\dfrac{n!}{1!(n - 1)!} = \dfrac{1\cdot 2\cdot \cdots \cdot (n - 1)\cdot n} {1\cdot 2\cdot \cdots \cdot (n - 1)} = n.$$

If n is a negative integer, you can use the result for positive powers together with the Quotient Rule. For more general powers, the easiest way to prove the Power rule is to express $x^n$ as $e^{n \ln x}$ . This requires knowing the differentiation rules for $e^x$ and $\ln
   x$ , as well as the Chain Rule.

3. ( Multiplication by Constants) $\displaystyle \der {} x (c
   \cdot f(x)) = c \cdot \der {} x f(x)$ .

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. Compute $\der {} x 8 x^{10}$ .

By the Power Rule and the Multiplication by Constants rule,

$$\der {} x 8 x^{10} = 8 \der {} x x^{10} = 8 \cdot 10 x^9 = 80 x^9.$$

With some experience, most people will just multiply the 8 and the 10 in their heads and write "80" in one step.


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

$$\der {} x \sin x = \cos x.$$

Compute $\der {} x 7 \sin
   x$ .

$$\der {} x 7 \sin x = 7 \cos x.\quad\halmos$$


The second derivative of f is the derivative of $\der f x$ with respect to x. It's denoted $\dfrac{d^2 f}{dx^2}$ . Thus,

$$\dfrac{d^2 f}{dx^2} = \der {} x \left(\der f x\right).$$

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

$$\dfrac{d^3 f}{dx^3} = \der {} x \left(\dfrac{d^2 f}{dx^2}\right).$$

Example. Compute the first, second, and third derivatives of $f(x) =
   x^{100}$ .

$$\der f x = 100 x^{99}, \quad \dfrac{d^2 f}{dx^2} = 99 \cdot 100 x^{98}, \quad \dfrac{d^3 f}{dx^3} = 98 \cdot 99 \cdot 100 x^{97}.\quad\halmos$$


Definition. A function $f(x)$ has a vertical tangent at a if f is continuous at a and

$$\lim_{x\to a} |f'(x)| = +\infty.$$

Example. Show that $f(x) = x^{1/5}$ has a vertical tangent at $x = 0$ .

I have $f'(x) =
   \dfrac{1}{5}x^{-4/5}$ , so

$$\lim_{x\to 0} |f'(x)| = \lim_{x\to 0} \dfrac{1}{5} x^{-4/5} = \dfrac{1}{5} \lim_{x\to 0} \dfrac{1}{x^{4/5}} = +\infty.$$

Thus, the graph has a vertical tangent at $x = 0$ . Picture:

$$\hbox{\epsfysize=2.5in \epsffile{differentiation-rules-1.eps}}\quad\halmos$$


Definition. A function $f(x)$ has a cusp at a if f is continuous at a and:

(a) $f'(x)$ approaches $+\infty$ from one side of a.

(b) $f'(x)$ approaches $-\infty$ from the other side of a.

Example. Show that $f(x) = x^{2/5}$ has a cusp at $x = 0$ .

I have $f'(x) =
   \dfrac{2}{5} x^{-3/5}$ , so

$$\lim_{x\to 0^+} f'(x) = +\infty \quad\hbox{while}\quad \lim_{x\to 0^-} f'(x) = -\infty.$$

Thus, $f(x)$ has a cusp at $x = 0$ . Here's the graph:

$$\hbox{\epsfysize=2.5in \epsffile{differentiation-rules-2.eps}}\quad\halmos$$


4. ( Sums) The derivative of a sum is the sum of the derivatives:

$$\der {} x \left(f(x) + g(x)\right) = \der {} x f(x) + \der {} x g(x).$$


Example. Compute $\der {} x \left(9 \sqrt{x} -
   \dfrac{14}{x^{3/2}}\right)$ .

It's a good idea to write $\sqrt{x}$ as $x^{1/2}$ (and in general, to write $\root n \of x$ as $x^{1/n}$ ). That way, you can see the number power to apply the Power Rule.

$$\der {} x \left(9 \sqrt{x} - \dfrac{14}{x^{3/2}}\right) = \der {} x \left(9 x^{1/2} - 14 x^{-3/2}\right) = \dfrac{9}{2} x^{-1/2} + 21 x^{-5/2} = \dfrac{9}{2} \cdot \dfrac{1}{\sqrt{x}} + \dfrac{21}{x^{5/2}}. \quad\halmos$$


5. ( The Product Rule)

$$\der {} x (u \cdot v) = u \der {} x v + v \der {} x u.$$

The formula above is the traditional way this rule is stated. However, if you are trying to remember this rule, it's useful to remember it in a way that makes it easy to recite, and so that the statement tells you what to do. Here's what I'd suggest.

I'll write "D" to mean "the derivative of". Then the rule is

$$D((\hbox{first}) \cdot (\hbox{second})) = (\hbox{first}) \cdot D (\hbox{second}) + (\hbox{second}) D (\hbox{first}).$$

This makes it easy to recite, and it comes out like: "The first times the derivative of the second plus the second times the derivative of the first." --- or maybe: "first-D-second-plus-second-D-first" for short.

The point is that by using "first" and "second" instead of random symbols like "u" and "v" (a popular choice), the statement of the rule tells you what to do.


Example. Compute $\der {} x (x^3 + 2 x^2 +
   7)(x^4 - x^3 - x + 2)$ .

Note: In problems like this, you don't need to multiply answers out unless you're asked to.

$$\der {} x (x^3 + 2 x^2 + 7)(x^4 - x^3 - x + 2) = (3 x^2 + 4 x)(x^4 - x^3 - x + 2) + (x^3 + 2 x^2 + 7)(4 x^3 - 3 x^2 - 1).\quad\halmos$$


The following picture shows why the Product Rule works.

$$\hbox{\epsfysize=2.5in \epsffile{differentiation-rules-3.eps}}$$

If I change $\hbox{hi}$ by a small amount $d(\hbox{hi})$ and $\hbox{ho}$ by a small amount $d(\hbox{ho})$ the change in the product $\hbox{hi}\cdot \hbox{ho}$ is

$$d(\hbox{hi}\cdot \hbox{ho}) = \hbox{hi}\cdot d(\hbox{ho}) + \hbox{ho}\cdot d(\hbox{hi}) + d(\hbox{hi})\cdot d(\hbox{ho}).$$

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

$$d(\hbox{hi}\cdot \hbox{ho}) \approx \hbox{hi}\cdot d(\hbox{ho}) + \hbox{ho}\cdot d(\hbox{hi}).$$

Now divide by $dx$ to pass to rates of change. Here's the formal proof using limits.

Proof. (Product Rule)

$$\der {} x \left[f(x) g(x)\right] = \lim_{h\to 0} \dfrac{f(x + h)g(x + h) - f(x)g(x)}{h} =$$

$$\lim_{h\to 0} \dfrac{f(x + h)g(x + h) - f(x)g(x + h) + f(x)g(x + h) - f(x)g(x)}{h} =$$

$$\lim_{h\to 0} \dfrac{f(x + h)g(x + h) - f(x)g(x + h)}{h} + \lim_{h\to 0} \dfrac{f(x)g(x + h) - f(x)g(x)}{h} =$$

$$\lim_{h\to 0} \dfrac{f(x + h) - f(x)}{h}\cdot g(x + h) + \lim_{h\to 0} f(x)\cdot \dfrac{g(x + h) - g(x)}{h} =$$

$$\left(\der {} x f(x)\right)\cdot g(x) + f(x)\cdot \left(\der {} x g(x)\right).\quad\halmos$$

I'll give the next rule in a form that makes it easy to recite, as I did with the Product Rule.

6. ( The Quotient Rule)

$$\der {} x \dfrac{\hbox{top}}{\hbox{bottom}} = \dfrac{\hbox{bottom} \cdot \der {} x (\hbox{top}) - \hbox{top} \cdot \der {} x (\hbox{bottom})}{\hbox{bottom}^2}.$$

Some people prefer "hi" and "lo", Take your pick.


Example. (a) Compute $\der {} x \dfrac{x^2 + 1}{x^2
   - 3 x - 1}$ .

(b) Compute $\der {} x
   \dfrac{x^2 - 4 x + 6}{2}$ .

(a)

$$\der {} x \dfrac{x^2 + 1}{x^2 - 3 x - 1} = \dfrac{(x^2 - 3 x - 1)(2 x) - (x^2 + 1)(2 x - 3)}{(x^2 - 3 x - 1)^2}.\quad\halmos$$

(b) If either the top or the bottom is just a number, it is better not to use the Quotient Rule. If the number is on the bottom, you can divide:

$$\der {} x \dfrac{x^2 - 4 x + 6}{2} = \der {} x \left(\dfrac{1}{2}x^2 - 2 x + 3\right) = x - 2.\quad\halmos$$

I'll note now that if the number is on the top, you can use

$$\der {} x \dfrac{\hbox{number}}{\hbox{junk}} = -\dfrac{\hbox{number}\cdot \der {} x \hbox{junk}}{\hbox{junk}^2}.$$

You shouldn't memorize this formula; it's a special case of the Chain Rule, which I'll talk about later. But in case you want to try it, here's an example:

$$\der {} x \dfrac{5}{x^2 + 3} = -\dfrac{5\cdot (2 x)}{(x^2 + 3)^2}.$$


Sometimes it's useful to express the differentiation rules using the "prime" notation. Here are the rules for sums, products, and quotients:

(a) (Sums) $(f + g)'(x) =
   f'(x) + g'(x)$ .

(b) (Products) $(f\,
   g)'(x) = f(x) g'(x) + g(x) f'(x)$

(c) (Quotients) $\left(\dfrac{f}{g}\right)'(x) = \dfrac{g(x) f'(x) - f(x)
   g'(x)}{g(x)^2}$ .

Example. Suppose f and g are differentiable functions satisfying

$$f(3) = 5, \quad g(3) = 7, \quad f'(3) = 10, \quad g'(3) = -2.$$

(a) Find $(f\, g)'(3)$ .

(b) Find $\left(\dfrac{f}{g}\right)'(3)$ .

(a)

$$(f\, g)'(3) = f(3) g'(3) + g(3) f'(3) = (5)(-2) + (7)(10) = 60.\quad\halmos$$

(b)

$$\left(\dfrac{f}{g}\right)'(3) = \dfrac{g(3) f'(3) - f(3) g'(3)}{g(3)^2} = \dfrac{(7)(10) - (5)(-2)}{7^2} = \dfrac{80}{49}.\quad\halmos$$


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 $y = x^2$ which pass through the point $(2,0)$ .

$$\hbox{\epsfysize=2.5in \epsffile{differentiation-rules-4.eps}}$$

The x-axis is clearly one such tangent line. Its equation is $y = 0$ .

To find the other tangent, let $(c,c^2)$ be the point of tangency. The slope of the tangent line is $y' = 2 x$ ; when $x = c$ , $y' =
   2 c$ .

On the other hand, the line passes through $(2,0)$ and $(c,c^2)$ , so its slope is $\dfrac{c^2 - 0}{c -
   2}$ . equate the two expressions for the slope and solve for c:

$$\eqalign{ 2 c & = \dfrac{c^2}{c - 2} \cr \noalign{\vskip2 pt} 2 c^2 - 4 c & = c^2 \cr c^2 - 4 c & = 0 \cr c = 0 & \quad\hbox{or}\quad c = 4 \cr}$$

$c = 0$ gives the x-axis, which I know about already. $c = 4$ gives $y' = 8$ ; since the line passes through $(2,0)$ , its equation is

$$y = 8(x - 2).\quad\halmos$$


Example. At what point(s) does the graph of $y = \dfrac{x}{(x -
   1)^2}$ 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:

$$y' = \dfrac{(x - 1)^2(1) - (x)(2)(x - 1)}{(x - 1)^4} = \dfrac{-(x + 1)}{(x - 1)^3}.$$

Clearly, $y' = 0$ when $x = -1$ . $y(-1)
   = -\dfrac{1}{4}$ , so there is a horizontal tangent at the point $\left(-1,
   -\dfrac{1}{4}\right)$ .


Example. Find the equation of the line which is perpendicular to the graph of $y = x^2 - 3 x - 4$ at the point $(3,-4)$ .

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 $y'
   = 2 x - 3$ . Hence, at $x = 3$ , the tangent has slope $y'(3) = 3$ .

Perpendicular line have slopes which are negative reciprocals of each other. Therefore, the slope of the perpendicular line is $-\dfrac{1}{3}$ . Since the line passes through the point $(3,-4)$ , its equation is

$$-\dfrac{1}{3}(x - 3) = y + 4, \quad\hbox{or}\quad -\dfrac{1}{3}x - 3 = y.\quad\halmos$$



Contact information

Bruce Ikenaga's Home Page

Copyright 2018 by Bruce Ikenaga