Highlights of this Chapter: we prove many foundational theorems about the derivative that one sees in an early calculus course. We see how to take the derivative of scalar multiples, sums, products, quotients and compositions. We also compute - directly from the definition - the derivative of exponential functions. This leads to an important discovery: there is a unique simplest, or natural exponential, whose derivative is itself. This is the origin of in Analysis.
Finally - on to some calculus! Here we will define the derivative, and study its properties. This may sound daunting at first, remembering back to the days of calculus when it all seemed so new and advanced. But hopefully, after so much exposure to sequences and series during this course, the rigorous notion of a derivative will feel more just like a nice application of what we’ve learned, than a whole new theory.
Difference Quotients
The derivative is defined to capture the slope of a graph at a point. Elementary algebra tells us we can compute the slope of a line given two points as rise over run, and so we can compute the slope of a secant line of a function between the points as
The derivative is the limit of this, as :
Definition 21.1 (The Derivative) Let be a function defined on an open interval containing . Then is differentiable at if the following limit of difference quotients exists. In this case, we define the limiting value to be the derivative of at .
Exercise 21.1 (Equivalent Formulation) Prove that we may alternatively use the following limit definition to calculate the derivative:
Example 21.1 The function is differentiable at .
This is a classic problem from calculus 1, whose argument is already pretty much rigorous! We wish to compute the limit
So, we choose an arbitrary sequence with but and compute
Where the arithmetic is justified since for all by definition, so everything is defined. But now, as we can just use the limit laws to see
Since was arbitrary, this holds for all such sequences, so the limit exists and equals 4. Because this limit defines the derivative, we have that is differentiable at 2 and
Exercise 21.2 Compute the derivative of at an arbitrary point , directly from the definition and show .
As defined above, the derivative is a limit , which depends on values of both greater than and less than . But sometimes its useful to have a notion of the derivative that only cares about one sided limits (for instance, when computing the slope at the end of an interval). We give the analogous definition below
Definition 21.2 (One Sided Derivatives) Let be a function defined at ; then its 1-sided derivatives are defined by the following limits, when they exist
This definition, together with our previous work on limits, implies that a function is differentiable if and only if its two one sided derivatives exist and are equal. This is useful in practice, for instance in showing the non-differentiability of the absolute value:
Exercise 21.3 Show that is not differentiable at .
Derivative as a Function
So far we have been discussing the derivative at a point as a number; the result of a limiting process. But we can let this point vary, and produce a function taking in and outputting the derivative at :
Definition 21.3 (The Function ) Let be a function, and suppose that the derivative of exists at each point of a set . Then we may define a function by
If is continuous, is called continuously differentiable on .
For example, is continuously differentiable on since by Exercise 21.2 we see its derivative is the function , and this is a polynomial: we proved all polynomials are continuous.
Since the derivative of a function yields another function, we can look at iterating this process to produce higher derivatives
Definition 21.4 (nth Derivatives) Given a differentiable function , the second derivative is defined as the derivative of . A function is twice differentiable at if exists. Continuing inductively, we define the derivative of a function at as the derivative of the derivative of at .
We will use the prime notation for small numbers of derivatives, like , and . For higher derivatives it is traditional to denote via the number of derivatives in parentheses: , and so on; so for the 47th derivative of .
Exercise 21.4 (A Difference Quotient for 2nd Derivative) If is twice differentiable at , show that
Find a limit depending only on (not or ) which computes the third derivative
Its useful to have a notation for functions which admit derivatives, we say a function is if you can differentiate it times (but not necessairly times). And, we call a function smooth if you can differentiate it times for any . The set of smooth functions is denoted .
Continuity
Before jumping in we prove one small oft-useful result often not mentioned in a calculus class, relating differentiability to continuity.
Theorem 21.1 (Differentiable implies Continuous) Let be differentiable at . Then is continuous at .
Proof. Since is differentiable at , we know the limit of the difference quotient is finite We also know that $ So, using the limit theorems we may multiply these together and get what we want. Precisely, let be any sequence with for all . Then we have
Thus so by the limit theorems we see . Since was arbitrary with this holds for any such sequence, we see that is continuous at using the sequence definition.
Thus continuous functions must be differentiable, but what can we say about the derivative itself? If a function is everywhere differentiable must the derivative itself be continuous? In fact not, as the following example shows
Example 21.2 While its hard to imagine a function that is differentiable at every point but not continuously differentiable such things exist. For example
Its possible to find a formula for when , and show that does not exist (we will do this later). However one can also calculate directly the derivative at zero: and find . This means as one side does not exist and the other is zero: thus is not continuous at .
Exercise 21.5 For as above in Example 21.2, calculate directly using the limit definition. (Perhaps surprisingly, all you need to know about the sine function here is that it is bounded between and !)
Field Operations
Here we prove the ‘derivative laws’ of Calculus I:
Sums and Multiples
Theorem 21.2 (Differentiating Constant Multiples) Let be a function and . Then if is differentiable at a point so is , and
Proof. Let’s use the difference quotient with to change things up: Let be arbitrary, and we wish to compute the limit By the limit laws we can pull out the constant , and the remainder converges to , as is assumed to be differentiable at .
Because this is true for all sequences with , the limit exists, and equals .
Theorem 21.3 (Differentiating Sums) Let be functions which are both differentiable at a point . Then is also differentiable at , and
Exercise 21.6 Prove the differentiability rule for sums.
Products and Quotients
Theorem 21.4 (Differentiating Products) Let be functions which are both differentiable at a point . Then is differentiable at and
Proof. Let be differentiable at , and choose an arbitrary sequence . Then we wish to compute
To the numerator we add and regroup with algebra:
Using the limit laws, we can take each of these limits individually so long as they exist (which we will show they do). But even more, note that the first term has a common factor of in the numerator that can be factored out, and the second a common factor of . Thus, by the limit laws, we see
Because is differentiable at , its continuous at , and so we know . The other two limits above converge to the derivatives and respectively. Thus, alltogether we find the resulting limit to be
As this was the result for an arbitrary sequence with , it must be the same for all sequences, meaning the limit exists, and
Exercise 21.7 Let be a function and be a point such that and is differentiable at . Prove that is also differentiable at and
Theorem 21.5 (Differentiating Quotients) Let be a functions which are differentiable at a point and assume . Then the function is also differentiable at and
Exercise 21.8 Use the Reciprocal Rule and Product Rule to prove the quotient rule.
Compositions and Inverses
The Chain Rule
Theorem 21.6 (The Chain Rule) If is differentiable at and is differentiable at then the composition is differentiable at , with
Proof (Wish this Worked!). We are taking the derivative at , so let wtih be arbitrary. Then the limit defining is
We multiply the numerator and denominator of this fraction by $ and regroup:
Because is continuous at , we know , and because is differentiable at we recognize the first term here as the limit defining at ! Since the second term is the limit defining the derivative of , both of these exist by our assumptions, and so by the limit theorems we can compute
Unfortunately, this proof fails at one crucial step! Wile we do know that (in the definition of , we only choose sequences with ) we do not know that the other denominator is nonzero.
If this problem could only happen finitely many times it would be no trouble - we could just truncate the beginning of our sequence and rest assured we had not affected the value of the limit. But functions - even differentiable functions - can be pretty wild. The function (from Example 21.2) ends up equaling zero infinitely often in any neighborhood of zero! So such things are a real concern.
Happily the fix - while tedious - is straightforward. It’s given below.
Exercise 21.9 We define the auxiliary function as follows:
This function equals our problematic difference quotient most of the time, but equals the quantity we want it to be when the denominator is zero.
Prove that is continuous at and we may use in place of the difference quotient in our computation: that for all , the following equality holds:
Given this, the original proof is rescued:
Proof. We are taking the derivative at , so let with be arbitrary. Then the limit defining is (by the exercise)
Because is continuous at and we know . And, as is differentiable at we know the limit of the difference quotient exists. Thus, by the limit laws we can separate them and
Differentiating Inverses
Theorem 21.7 (Differentiating Inverses) Let be an invertible function and a point where . Assume is differentiable at with . Then its inverse function is differentiable at , and
One may be tempted to prove this using the chain rule, by the following argument: since we differentiate to yield and apply the chain rule to the left hand side, resulting in
Solving for and plugging in yields the result. However a more careful review shows doesn’t actually do what we think: in applying the chain rule, we’ve implicitly assumed that is invertible; which is part of what we want to prove! (This proof does go through when we already know to be differentiable, but we are unfortunately not often already in possession of that knowledge). Below we give a direct proof of the theorem from the limit definition, fixing this oversight:
Proof. We attempt to compute the limit defining the derivative for : . To compute such a limit we choose an arbitrary sequence with and evaluate By definition , and for each there is a unique such that : making these substitutions yields The composition is the identity since they are inverse functions so and . Making these additional substitutions our limit statement becomes
By assumption is differentiable at and , so we know that
The limit we are interested in is the reciprocal of this, and as the limit value is nonzero by assumption, the limit laws imply
Since the sequence was arbitrary, this argument holds for any such sequence. Thus the limit defining exists, and .
Exercise 21.10 Compute the derivative of using this idea.
The Power Rule
Perhaps the most memorable fact from Calculus I is the power rule, that . In this short section, we prove the power level at various levels of generality, starting with natural number exponents and proceeding to arbitrary real exponents.
Exercise 21.11 (Power Rule: Integer Exponents)
We can use the chain rule, and the the functional equation for roots to differentiate ^{th}$ roots as well:
Proposition 21.1 If is the root function, then
Proof. The definition of the root function is that . We differentiate this equation with the chain rule, using that is a natural number exponent:
The other side was , whose derivative is . Thus, and, solving for yields
Exercise 21.12 (Power Rule: Rational Exponents) Run a similar argument to the root case to prove that if is rational, then is differentiable and .
When it comes to arbitrary real exponents one can use their definition as limits of rational powers, and work to differentiate such a limit. This is possible but requires an exchange of limits, so needs care. Another method is to use the work we’ve already put into understanding exponentials and logarithms to help us out!
Problems
The pasting lemma has a differentiable analog, which shows exactly when gluing two pieces (like the absolute value) is differentiable, and when its not.
Exercise 21.13 Let be two continuous and differentiable functions with a point such that . Prove that the piecewise function is differentiable at if and only if . (recall we saw such a function is always continuous at in ?exr-pasting-lemma).
Exercise 21.14 (Differentiable, but The Derivative is Not Continuous) While its hard to imagine a function that is differentiable at every point but not continuously differentiable such things exist. For example
Assume for the sake of this problem that is a differentiable function on the entire real line, and prove that is differentiable at every nonzero point, using the product/chain rules.
At this method fails, but we can compute directly using the limit definition. Do this, and show you get zero. (Perhaps surprisingly, all you need to know about the sine function here is that it is bounded between and !)