The converse is false: f(x)=∣x∣ is continuous at 0 but not differentiable at 0.
5.2 Differentiation Rules
Theorem 5.1. If f and g are differentiable at cThen:
(f+g)′(c)=f′(c)+g′(c)
(fg)′(c)=f′(c)g(c)+f(c)g′(c)
(f/g)′(c)=g(c)2f′(c)g(c)−f(c)g′(c) (if g(c)=0)
(f∘g)′(c)=f′(g(c))⋅g′(c) (Chain Rule)
5.3 Mean Value Theorem
Theorem 5.2 (Rolle’s Theorem). If f:[a,b]→R is continuous on [a,b]Differentiable On (a,b)And f(a)=f(b)Then there exists c∈(a,b) such that f′(c)=0.
Proof. By the Extreme Value Theorem, f attains its maximum M and minimum m on [a,b]. If M=mThen f is constant and f′(c)=0 for all c∈(a,b). Otherwise, at least one Of M or m is attained at some c∈(a,b) (since f(a)=f(b)). By Fermat’s theorem, f′(c)=0. ■
Theorem 5.3 (Mean Value Theorem). If f:[a,b]→R is continuous on [a,b] and Differentiable on (a,b)Then there exists c∈(a,b) such that
f′(c)=b−af(b)−f(a)
Proof. Define g(x)=f(x)−b−af(b)−f(a)(x−a). Then g(a)=g(b) and g satisfies the Hypotheses of Rolle’s theorem. So g′(c)=0 for some c∈(a,b)Which gives the result. ■
Corollary 5.4. If f′(x)=0 for all x∈(a,b)Then f is constant on [a,b].
Corollary 5.5. If f′(x)>0 for all x∈(a,b)Then f is strictly increasing on [a,b].
Theorem 5.3a (Cauchy’s Mean Value Theorem). If f,g:[a,b]→R are continuous on [a,b] and differentiable on (a,b)Then there exists c∈(a,b) such that
(f(b)−f(a))g′(c)=(g(b)−g(a))f′(c)
Proof. Define h(x)=(f(b)−f(a))g(x)−(g(b)−g(a))f(x). Then h(a)=h(b)So by Rolle’s Theorem, h′(c)=0 for some c∈(a,b)Which gives the result. ■
Remark. When g(x)=xCauchy’s MVT reduces to the standard MVT. Cauchy’s MVT is the key Ingredient in the …/1-number-and-algebra/3_proof-and-logic of L’Hôpital’s rule.
Corollary 5.6. If f is differentiable on (a,b) and ∣f′(x)∣≤M for all x∈(a,b) Then f is Lipschitz continuous with constant M: ∣f(x)−f(y)∣≤M∣x−y∣ for all x,y∈(a,b).
Proof. Apply the MVT to f on the interval between x and y. ■
5.4 Taylor’s Theorem
Theorem 5.6 (Taylor’s Theorem with Lagrange Remainder). If f is (n+1)-times differentiable on An open interval containing aThen for each x in that interval:
f(x)=∑k=0nk!f(k)(a)(x−a)k+Rn(x)
Where the remainder is
Rn(x)=(n+1)!f(n+1)(ξ)(x−a)n+1
For some ξ between a and x.
Proof. Fix x=a and define
g(t)=f(x)−∑k=0nk!f(k)(t)(x−t)k
Then g(a)=Rn(x) and g(x)=0. By the generalized Rolle’s theorem (or direct computation Using the Cauchy mean value theorem), there exists ξ between a and x with g′(ξ)=0. Computing:
g′(t)=−n!f(n+1)(t)(x−t)n
Setting g′(ξ)=0 yields the result after comparing g(a)=Rn(x) with the integral form. A Cleaner approach uses the standard MVT applied to g on [a,x]. ■
5.5 L’Hôpital’s Rule
Theorem 5.7 (L’Hôpital’s Rule, 00 case). Suppose f and g are differentiable on An open interval containing c (except possibly at c itself), g′(x)=0 near cAnd limx→cf(x)=limx→cg(x)=0. If limx→cf′(x)/g′(x)=L exists (as a finite Number or ±∞), then limx→cf(x)/g(x)=L.
Proof. Extend f and g continuously to c by setting f(c)=g(c)=0. For x=cBy Cauchy’s Mean Value Theorem, there exists ξ strictly between c and x such that
g(x)−g(c)f(x)−f(c)=g′(ξ)f′(ξ)
I.e., g(x)f(x)=g′(ξ)f′(ξ). As x→cWe have ξ→c (since ξ is trapped between c and x). Therefore limx→cf(x)/g(x)=limξ→cf′(ξ)/g′(ξ)=L. ■
Theorem 5.7b (L’Hôpital’s Rule, ∞∞ case). Suppose f and g are Differentiable on (a,b) (except possibly at c), g′(x)=0 near cAnd limx→c∣f(x)∣=limx→c∣g(x)∣=∞. If limx→cf′(x)/g′(x)=L exists, Then limx→cf(x)/g(x)=L.
Proof (sketch). Fix ε>0. For x,y near c with x=yBy Cauchy’s MVT:
g(x)−g(y)f(x)−f(y)=g′(ξ)f′(ξ)
For some ξ between x and y. Since f′(ξ)/g′(ξ)≈L for ξ near cWe have:
Since f(x),g(x)→∞By fixing y and letting x→cThe fractions f(y)/f(x) and g(y)/g(x) tend to 0So the second factor tends to 1. The first factor tends to L by Cauchy’s MVT. Hence f(x)/g(x)→L. ■
Solution. Both numerator and denominator approach 0 as x→0. Applying L’Hôpital’s rule:
limx→0x2ex−1−x=limx→02xex−1
This is still 00So apply L’Hôpital again:
=limx→02ex=21
■
5.6 Darboux’s Theorem
Theorem 5.8 (Darboux’s Theorem). If f is differentiable on [a,b]Then f′ has the Intermediate value property: for any y between f′(a) and f′(b)There exists c∈(a,b) With f′(c)=y.
Remark. This means derivatives satisfy the intermediate value property even though they need not Be continuous. For example, f(x)=x2sin(1/x) (with f(0)=0) is differentiable everywhere, But f′ is not continuous at 0.
Proof. Assume without loss of generality that f′(a)<y<f′(b). Define g(x)=f(x)−yx. Then g is differentiable on [a,b] with
g′(a)=f′(a)−y<0andg′(b)=f′(b)−y>0
Since g′(a)<0There exists x1>a with g(x1)<g(a) (otherwise g(x)≥g(a) For x near aContradicting g′(a)<0). Similarly, since g′(b)>0There exists x2<b with g(x2)<g(b).
Therefore g attains its minimum at some c∈(a,b). By Fermat’s theorem on interior extrema, g′(c)=0So f′(c)=y. ■
Worked Example: Apply Darboux's theorem to $f(x) = x^2 \sin(1/x)$ ($f(0) = 0$)
Solution. For x=0: f′(x)=2xsin(1/x)−cos(1/x). At x=0: f′(0)=limh→0hh2sin(1/h)=limh→0hsin(1/h)=0.
So f′(0)=0. For any δ>0The term −cos(1/x) oscillates between −1 and 1 on (0,δ)So f′ takes all values in [−1,1] infinitely often on (0,δ).
But Darboux’s theorem says f′ has the intermediate value property. Indeed, f′ is not continuous At 0 (it oscillates wildly), yet it still satisfies the IVP. This shows that derivatives can be Highly discontinuous while retaining the intermediate value property. ■
5.7 Worked Examples
Worked Example. Compute the third-order Taylor polynomial of f(x)=ex about a=0.
f(0)=1, f′(0)=1, f′′(0)=1, f′′′(0)=1. So
T3(x)=1+x+2x2+6x3
The remainder is R3(x)=24eξx4 for some ξ between 0 and x.
Worked Example: Approximate $\sin(0.1)$ with error less than $10^{-10}$
Solution. For f(x)=sinx about a=0: f(k)(0)∈{0,1,−1} and the Taylor Polynomial of degree n has the form Tn(x)=x−x3/3!+x5/5!−⋯ (odd terms only).
The Lagrange remainder is ∣Rn(x)∣=(n+1)!∣f(n+1)(ξ)∣∣x∣n+1≤(n+1)!∣x∣n+1 (since ∣f(k)∣≤1 for all k).
We need (n+1)!(0.1)n+1<10−10. Testing: for n=56!(0.1)6=72010−6≈1.39×10−9>10−10. For n=7: 8!(0.1)8=4032010−8≈2.48×10−13<10−10.
So T7(0.1)=0.1−6(0.1)3+120(0.1)5−5040(0.1)7=0.1−0.00016667+0.00000083−0.00000000≈0.09983342.
The error is at most 2.48×10−13<10−10. ■
Worked Example: Find the Maclaurin series for $\ln(1 + x)$ and its radius of convergence
Solution. For f(x)=ln(1+x): f(0)=0, f′(x)=1/(1+x), f′′(x)=−1/(1+x)2f(k)(x)=(−1)k−1(k−1)!/(1+x)k for k≥1. So f(k)(0)=(−1)k−1(k−1)!.
By the ratio test: limk→∞∣ak+1/ak∣=limk→∞k+1k∣x∣=∣x∣. The series converges for ∣x∣<1 and diverges for ∣x∣>1. At x=1 we get the alternating Harmonic series (converges to ln2). At x=−1 we get the negative harmonic series (diverges).
The radius of convergence is R=1 and the interval of convergence is (−1,1]. ■
Worked Example: Compute the Taylor expansion of $\cos x$ about $a = \pi/3$ with remainder bound
Solution. Compute derivatives: f(x)=cosx, f′(x)=−sinx, f′′(x)=−cosx, f′′′(x)=sinxf(4)(x)=cosx. Evaluated at a=π/3:
The remainder satisfies ∣R3(x)∣≤24∣x−π/3∣4 (since ∣f(4)(ξ)∣=∣cosξ∣≤1).
For example, at x=1: ∣R3(1)∣≤24∣1−π/3∣4≈240.04724≈2.1×10−7. ■
:::caution Common Pitfall L’Hôpital’s rule only applies to indeterminate forms 00 and ∞∞. Applying it to forms like 01 or 1∞ will give incorrect results. Always Verify the indeterminate form before applying the rule. Also, L’Hôpital’s rule requires that the Limit of the quotient of derivatives exists; if it does not exist (oscillates), the original limit May still exist.