Throughout this sheet, we let f:A⟶R be a real valued function with domain A⊂R.
Remark 10.0. Theorem 9.21 holds for a function f:A⟶R if we change "p∈R" to "p∈A" and "(p−δ,p+δ)" to "A∩(p−δ,p+δ)". Similarly, Theorem 9.24 and Definition 9.25 hold for f:A⟶R so long as we take p∈A and change the condition "if ∣x−p∣<δ" to "if x∈A and ∣x−p∣<δ".
Definition 10.1. Let a∈R such that there exists a region R containing a with R∖{a}⊂A. The limit of f at a point a∈R is a number L∈R satisfying the following condition: for every ϵ>0, there exists a δ>0 such that
if x∈A and 0<∣x−a∣<δ,then ∣f(x)−L∣<ϵ.
If the limit L of f at a exists, we write this as:
x→alimf(x)=L.
More generally, we can extend the above definition to any a∈R such that a is a limit point of A. In this case, the fact that a is a limit point guarantees that for all δ>0 there exists an x such that x∈A and 0<∣x−a∣<δ. So the "if" part of the statement is never vacuous.
Proposition 10.2. Limits are unique: if limx→af(x)=L and limx→af(x)=L′, then L=L′.
Exercise 10.3. Give an example of a set A⊂R, a function f:A⟶R, and a point a (such that there exists a region R with R∖{a}⊂A) such that limx→af(x) does not exist.
Theorem 10.4. A function f is continuous at a if and only if:
x→alimf(x)=f(a).
Exercise 10.5. (i) For every c∈R, the constant function f:R→R, defined by f(x)=c for all x∈R, is continuous.
(ii) The identity function, defined by g(x)=x, is continuous.
The following lemma is very useful in proofs involving inequalities. (Hint: the second inequality follows from the first.)
Lemma 10.6. For any real numbers x and y, we have:
The Triangle Inequality: ∣x+y∣≤∣x∣+∣y∣,The Reverse Triangle Inequality: ∣x∣−∣y∣≤∣x−y∣.
Exercise 10.7. Show that the absolute value function f:R→R, f(x)=∣x∣, is continuous.
Given real-valued functions f and g, we define new functions f+g, fg and f1 by:
(f+g)(x)=f(x)+g(x),(fg)(x)=f(x)⋅g(x),f1(x)=f(x)1, provided that f(x)=0.
We wish to understand the limits of f+g, fg and f1 in terms of the limits of f and g.
Lemma 10.8. If ∣x−x0∣<2ϵ and ∣y−y0∣<2ϵ, then ∣(x+y)−(x0+y0)∣<ϵ.
Theorem 10.9. Suppose that limx→af(x)=L and limx→ag(x)=M. Then:
Corollary 10.14. If f and g are continuous at a, then f+g, fg and 1/f are continuous at a (the latter provided that f(a)=0).
Definition 10.15. A polynomial in one variable with real coefficients is a function f of the form
f(x)=anxn+an−1xn−1+⋯+a1x+a0
for some n∈N∪{0}, where ai∈R for 0≤i≤n. A rational function in one variable with real coefficients is a function of the form h(x)=g(x)f(x) where f and g are polynomials in one variable with real coefficients.
Corollary 10.16. Polynomials in one variable with real coefficients are continuous. A rational function in one variable with real coefficients h(x)=g(x)f(x) is continuous at all a∈R where g(a)=0.
Now we want to look at limits of the composition of functions. It is not quite true in general that if limx→ag(x)=M and limy→Mf(y)=L, then limx→af(g(x))=L, but it is true in some cases.
which can be remembered as "limits pass through continuous functions."
Corollary 10.20. If g is continuous at a and f is continuous at g(a), then f∘g is continuous at a.
We now assume the domain A⊂R is open.
Definition 10.21. The derivative of f at a point a∈A is the number f′(a) defined by the following limit:
f′(a)=h→0limhf(a+h)−f(a),
provided the limit on the right hand side exists. If f′(a) exists, we say that f is differentiable at a. If f is differentiable at all points of its domain, we say that f is differentiable. In this case, the values f′(a) define a new function f′:A⟶R called the derivative of f.
Here is a useful reformulation of the definition of the derivative.
Theorem 10.22. If f is differentiable at a, the derivative of f at a is given by the limit:
f′(a)=x→alimx−af(x)−f(a).
Theorem 10.23. If f is differentiable at a, then f is continuous at a.
(ii) Use this to prove that if f(x)=xn for some n∈N, then f′(a)=nan−1.
Exercise 10.26. Suppose that f and g are differentiable at a.
(i) Compute (f+g)′(a) in terms of f′(a) and g′(a).
(ii) Compute (fg)′(a) in terms of f(a), g(a), f′(a) and g′(a).
(iii) Compute (f1)′(a) in terms of f′(a) and f(a).
These results are known as the Sum Rule, Product Rule, and (a special case of the) Quotient Rule for Derivatives, respectively.
Exercise 10.27. Suppose f and g are differentiable at a and g(a)=0.
(i) Show that g(x)f(x) is continuous at a.
(ii) Show that g(x)f(x) is differentiable at a, and compute (gf)′(a) in terms of f(a), g(a), f′(a) and g′(a).
This last result is known as the Quotient Rule for Derivatives.
One of the most important results concerning the differentiation of functions is the Chain Rule for the derivative of a composition of functions. Let f:B→R, g:A→R be functions such that g(A)⊂B. Thus, the composition (f∘g)(x)=f(g(x)) is defined for all x∈A.
Lemma 10.28. Given f and g as above, define a new function ϕ:B→R (note that the domain is the same as the domain of f) by
(Hint: Consider the function ϕ∘g and distinguish between the two cases when g(x)=g(a) and when g(x)=g(a).)
Theorem 10.30 (Chain Rule). Let a∈A, suppose that g is differentiable at a and f is differentiable at g(a). Then f∘g is differentiable at a and:
(f∘g)′(a)=f′(g(a))⋅g′(a).
We finish this sheet with a discussion of maxima and minima of real-valued functions and the most important theorem in differential Calculus, the Mean Value Theorem.
Definition 10.31. Let f:A⟶R be a function. If f(a) is the last point of f(A), then f(a) is called the maximum value of f. If f(a) is the first point of f(A), then f(a) is the minimum value of f. We say that f(a) is a local maximum value of f if there exists a region R containing a such that f(a) is the last point of f(A∩R). We say that f(a) is a local minimum value of f if there exists a region R containing a such that f(a) is the first point of f(A∩R).
Remark 10.32. Equivalently, f(a) is a local maximum (resp. minimum) value of f if there exists U open in A such that f(a) is the last (resp. first) point of f(U).
Theorem 10.33. Let f:A⟶R be differentiable at a. Suppose that f(a) is the maximum value or minimum value of f. Then f′(a)=0.
Corollary 10.34. Let f:A⟶R be differentiable at a. Suppose that f(a) is a local maximum or local minimum value of f. Then f′(a)=0.
Theorem 10.35 (Rolle's Theorem). Suppose that f:[a,b]⟶R is continuous, differentiable on (a,b) and that f(a)=f(b)=0. Then there exists a point c∈(a,b) such that f′(c)=0.