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=m Then 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. ■
Theorem 5.6 (Taylor’s Theorem with Lagrange Remainder). If f is (n+1)-times differentiable on An open interval containing a Then 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]. ■
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 c And 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 c And 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 0 So the second factor tends to 1. The first factor tends to L by Cauchy’s MVT. Hence f(x)/g(x)→L. ■
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)=0 So 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. ■
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 derivative is most deeply understood not as a “slope” but as the best linear approximation to a function at a point. Near x=a, a differentiable function f(x) is well approximated by the tangent line f(a) + f’(a)(x-a). The error in this approximation vanishes faster than |x-a| as x approaches a. This is why differentiation is local: the derivative captures the linear part of how f behaves near a, discarding higher-order curvature.
This perspective explains why the chain rule works as it does. If f is locally linear near g(x) and g is locally linear near a, then their composition is locally linear near a, and the slopes multiply. It also explains why not every continuous function is differentiable: f(x)=|x| is continuous at 0 but has no single linear approximation there — the left and right slopes disagree. The Mean Value Theorem says that the instantaneous linear approximation (the derivative) must at some point match the average rate of change over an interval. Taylor’s theorem extends this: the derivative is the first-order term in a polynomial approximation, and the remainder controls how well that approximation works.
The Mean Value Theorem says: for a smooth curve connecting two points, there is a point on the curve where the tangent line is parallel to the chord (secant line) connecting the endpoints.
More precisely, if f is continuous on [a,b] and differentiable on (a,b), then there exists c∈(a,b) with
f′(c)=b−af(b)−f(a)
Physical interpretation: If you drive 100 miles in 2 hours, your average speed is 50 mph. The MVT says that at some instant, your speedometer must have read exactly 50 mph.
Why this fails without differentiability: For f(x)=∣x∣ on [−1,1], f(1)−f(−1)=0, so the average rate of change is 0. But f′(x) is never 0: it equals 1 for x>0 and −1 for x<0. The MVT fails because f is not differentiable at x=0, where the chord from (−1,1) to (1,1) is horizontal, but no tangent line is horizontal.
L’Hopital’s rule only applies to indeterminate forms 00 or ∞∞. Applying it to forms like 01 or 1∞ will give incorrect results. Always verify the indeterminate form before applying the rule.
L’Hopital’s rule requires that the limit of f′/g′ exists. If f′/g′ oscillates (e.g., f(x)=x+sinx, g(x)=x, then f′/g′=1+cos(x)/1 which oscillates), the original limit may still exist. In such cases, use algebraic manipulation instead.
The MVT requires continuity on [a,b] and differentiability on (a,b). If f is not differentiable at some points, the MVT conclusion may fail.
Taylor’s theorem gives the remainder for a specific ξ between a and x. To bound the error, use ∣Rn(x)∣≤(n+1)!M∣x−a∣n+1 where M=supξ∣f(n+1)(ξ)∣.
Continuity: Differentiability implies continuity, and the mean value theorem connects local derivative behaviour to global function properties.
Riemann Integration: The fundamental theorem of calculus links differentiation and integration, with the Riemann integral defined via limits of Riemann sums.
Lebesgue Integration: Lebesgue integration generalises the Riemann integral and handles a broader class of functions with discontinuities.