Contents / Real Analysis / Differentiation
Chapter 4
Differentiation
The derivative from the difference quotient; differentiability implies continuity; the differentiation rules proved from the definition, with the chain rule via Caratheodory's formulation; Rolle, the Mean Value Theorem and monotonicity; Cauchy's MVT and L'Hopital's rule; Taylor's theorem with Lagrange, integral, Cauchy and Peano remainders; and the standard counterexamples of a discontinuous derivative and a smooth non-analytic function.
Introduction
The derivative is the first genuinely local construction in analysis. Continuity, proved in Continuity at a point, only asks that stay near ; differentiability asks something far stronger — that agree with a straight line to an error which is small compared with the distance travelled. That extra demand is what buys the whole of the calculus: a linear model accurate to first order can be added, multiplied, composed and inverted by rules, and once it exists at every point of an interval it constrains the function globally.
The chapter has four movements. The first builds the derivative from the difference quotient, extracts the linear-approximation formulation that makes every differentiation rule a one-line computation, and proves the rules. The second is the Mean Value Theorem, which is where local information becomes global: from " at every point" — a statement about infinitely many separate instants — we shall deduce " is increasing", a statement about pairs of points arbitrarily far apart. Nothing in the definition of the derivative makes that deduction obvious, and the bridge is built out of the Extreme Value Theorem. The third movement iterates the idea: if one derivative gives a line, derivatives give a degree- polynomial, with an error term we can bound exactly. The fourth cashes Taylor's machinery in for L'Hôpital's rule.
Two counterexamples run through the chapter and are worth naming in advance, because each kills a plausible belief. The function is differentiable at every real number and yet its derivative is discontinuous at — so "differentiable" does not imply "continuously differentiable", and the derivative of a function need not be a function one can plot without lifting the pen. The function is infinitely differentiable everywhere and has every derivative equal to zero at the origin — so its Taylor series there is identically and converges to the wrong function everywhere except one point. The first shows that the derivative operator loses regularity; the second shows that infinitely many derivatives still do not determine a function. Both are elementary, and both are the reason the theorems below are stated with the hypotheses they carry rather than shorter ones.
Throughout, denotes an interval with more than one point, and all functions are real-valued functions of a real variable.
4.1The Difference Quotient and the Derivative
The average rate of change of across is the slope of the chord joining the two endpoints of the graph. The derivative is what that slope becomes when the chord collapses to a point — provided it becomes anything at all.
Definition 4.1 (Derivative at a point). Let be defined on an open interval containing . The derivative of at is
whenever this limit exists and is finite, in which case is differentiable at . If is differentiable at every point of an interval , it is differentiable on , and is its derivative function.
The two displayed limits are the same limit written in two variables, ; the second form is the more useful one in proofs, the first in computations. Both require to be defined on a neighbourhood of , because the limit must be approached from both sides. That is not a technicality — it is what makes the derivative a two-sided constraint.
Definition 4.2 (One-sided derivatives). The right-hand and left-hand derivatives of at are
when these limits exist. At an endpoint of a closed interval, "differentiable" means the appropriate one-sided derivative exists.
By the theorem Two-sided limits from one-sided limits, is differentiable at an interior point exactly when and both exist and are equal. A corner is precisely the failure of that equality.
The difference quotient is awkward to manipulate: it is undefined at , which is the only value we care about. The following reformulation removes the quotient entirely, and with it most of the epsilon-chasing in the proofs that follow.
Proposition 4.3 (Linear approximation and Carathéodory's formulation). Let be defined near and let . The following are equivalent.
- is differentiable at with .
- where as (equivalently, the error is ).
- There is a function , defined near and continuous at , with and
Proof. . Define for and . Rearranging gives the displayed identity, and is exactly the statement .
. Set for and . Then by , and as , so is continuous at .
. For divide the identity by to get . Letting and using continuity of at , the quotient tends to .∎
Form is the one to carry in the head: differentiable means well approximated by a line, with error negligible against . Form , due to Carathéodory, is the one to carry into proofs, because it has no division in it and therefore survives composition without a case analysis. We shall use it for the chain rule, where the naive argument breaks.
Example 4.4 (A corner: the absolute value at the origin). Show that is not differentiable at , and identify its one-sided derivatives there.
Solution.
- For , , so .
- For , , so .
- The one-sided limits exist but differ, so by the theorem Two-sided limits from one-sided limits the two-sided limit does not exist and is undefined.
- Note what did not fail: is continuous at , and it is differentiable at every other point. Non-differentiability here is a single-point defect caused by the graph having two distinct tangent directions rather than one.
Remark. Definition Derivative at a point demands a finite limit. Some texts write for ; we do not, because every theorem in this chapter uses as a real number in an arithmetic identity, and admitting would break them all.
4.2Differentiability, Continuity, and Higher Derivatives
Differentiability is strictly stronger than continuity. The proof is three lines and the converse is false, and the gap between the two is much larger than the single counterexample suggests.
Theorem 4.5 (Differentiability implies continuity). If is differentiable at , then is continuous at .
Proof. By the proposition Linear approximation and Carathéodory's formulation, there is continuous at with near . Both factors on the right are continuous at , and the second vanishes there, so by the theorem Limit laws
Hence , which is continuity at .∎
The converse fails, and the example A corner: the absolute value at the origin already shows it at one point. It fails much more dramatically than that: Weierstrass exhibited a function continuous on all of and differentiable at no point, so the implication cannot be reversed even approximately. Continuity is a constraint on values; differentiability is a constraint on how the values are approached.
Definition 4.6 (Higher derivatives and smoothness classes). If is itself differentiable on , its derivative is , and inductively , with . Write if exists and is continuous on , and — smooth — if for every .
The distinction between " is times differentiable" and " " looks pedantic and is not. The second is strictly stronger, and the function that separates them is the first of the chapter's two standing counterexamples.
Proposition 4.7 (A differentiable function with a discontinuous derivative). Define
Then is differentiable at every real number, with , but is not continuous at . Hence is differentiable everywhere yet .
Proof. For the function is a product and composite of functions differentiable there, so by the theorem Differentiation rules and the theorem Chain rule below,
At the origin we must use the definition, since the formula above is not available:
and , so by the Squeeze Theorem the limit exists and .
Now let along the sequence . Then and , so for every , while . By the theorem Sequential characterization of continuity, is discontinuous at . The term does tend to ; it is , which oscillates without settling, that destroys continuity.∎
Intuition. Read the counterexample as a statement about scales. Near the origin the graph of is squeezed between the parabolas , so it is flattened into the origin fast enough for the tangent to exist and be horizontal. But it wiggles infinitely often on the way in, and each wiggle, however small in height, is steep — a wiggle of height across a horizontal distance of order has slope of order . So the height of the oscillation dies (giving differentiability) while its slope does not (destroying continuity of the derivative).
Pitfall. " is differentiable, so I may differentiate " is a non-sequitur, and " exists near , so is continuous at " is false, by the proposition A differentiable function with a discontinuous derivative. Whenever a theorem below asks for or for continuity of , that hypothesis is doing real work and cannot be weakened to mere existence.
Example 4.8 (Matching one-sided derivatives to make a join). Find so that for and for is differentiable at .
Solution.
- Continuity at is necessary by the theorem Differentiability implies continuity: and , so .
- The left derivative is ; the right derivative of a line is its slope, .
- Equality of one-sided derivatives forces , hence .
- So for , the tangent line to at — which is the only possible answer, since a line agreeing with in value and slope at is the tangent.
4.3The Rules of Differentiation and the Chain Rule
Every differentiation rule is a statement that the linear approximation of a combination is the corresponding combination of the linear approximations. Proving them from the definition is short once the algebra is arranged correctly, and the arrangement is the content.
Theorem 4.9 (Algebra of derivatives). Let and be differentiable at and . Then , and are differentiable at , and so is provided , with
Proof. Sum and scalar multiple. The difference quotient of is the sum of the two difference quotients, and the limit of a sum is the sum of the limits by the theorem Limit laws; the same argument gives .
Product. Add and subtract the cross term in the numerator:
As the two quotients tend to and , and because is continuous at by the theorem Differentiability implies continuity — this is where that theorem earns its place. The limit is .
Reciprocal. Since is continuous at and , there is a neighbourhood of on which , so the quotient is defined there. Then
Quotient. Apply the product rule to :
Theorem 4.10 (Chain rule). Suppose is differentiable at and is differentiable at . Then is differentiable at and
Proof. Write . By the proposition Linear approximation and Carathéodory's formulation applied to at , there is continuous at with and
for all near . Substituting , which is legitimate for near because is continuous at and so keeps near ,
Divide by for :
As , the second factor tends to . For the first, is continuous at and is continuous at , so is continuous at and . The product of the limits is .∎
Remark. The naive proof multiplies and divides by and fails, because can vanish at points arbitrarily close to — take , or , whose zeros accumulate at the origin. Carathéodory's formulation avoids the division altogether, which is exactly why it was worth proving.
Proposition 4.11 (Derivative of an inverse function). Let be continuous and strictly monotone on an interval , differentiable at with , and let . Then is differentiable at and
Proof. By the theorem Intermediate Value Theorem, a continuous strictly monotone maps onto an interval and is continuous and strictly monotone. Let in with , and put , so and by continuity of . Then
The inner quotient tends to , so by the theorem Limit laws the reciprocal tends to .∎
Example 4.12 (The derivative of ). Use the proposition Derivative of an inverse function to differentiate .
Solution.
- Take on , which is continuous, strictly increasing, and has throughout.
- With , the proposition gives .
- Since , this is . Renaming the variable, .
- Sanity check: the answer is positive, as it must be for an increasing function, and it tends to as , matching the horizontal asymptotes at .
4.4From Local to Global: Interior Extrema
Everything so far is local bookkeeping: the derivative at is computed from values of arbitrarily close to , and no statement yet relates at two distant points. The bridge is a single observation about maxima, and it is the reason the Extreme Value Theorem appears in a chapter about derivatives at all.
Theorem 4.13 (Interior extremum theorem). Let be defined on and let be a point at which attains a local maximum or a local minimum. If is differentiable at , then .
Proof. Suppose is a local maximum, so for all sufficiently small .
For such the quotient has a non-positive numerator and a positive denominator, so it is ; letting preserves the weak inequality, giving .
For such the numerator is still but the denominator is negative, so the quotient is ; letting gives .
Both limits equal , since is differentiable at , so and therefore . For a local minimum apply the result to .∎
Three hypotheses are each indispensable, and dropping any one produces a counterexample rather than a harder proof. Interior: on attains both extrema, at endpoints, with . Differentiable: has a minimum at where does not exist. Extremum: has without an extremum there — so the converse is false, and is necessary but not sufficient.
Call a critical point of if or fails to exist. In that language the theorem Interior extremum theorem says: every interior local extremum is a critical point.
That last sentence is the whole optimisation method: to find the extrema of a continuous on , the Extreme Value Theorem guarantees they exist, and the theorem Interior extremum theorem confines them to the critical points together with the two endpoints — a search over a typically finite set instead of an interval.
Example 4.14 (Optimisation on a closed interval). Find the absolute maximum and minimum of on .
Solution.
- is a polynomial, hence continuous on a closed bounded interval, so by the Extreme Value Theorem both extrema are attained.
- , so the critical points are , both interior.
- Evaluate at the critical points and the endpoints: , , , .
- The maximum value is , attained twice — at the interior point and at the endpoint — and the minimum is at .
- Note that the minimum sits at an endpoint where ; searching only for zeros of would have missed it entirely.
The theorem Interior extremum theorem is the last purely local result in the chapter. Everything from here — Rolle, the Mean Value Theorem, monotonicity, Taylor's theorem, L'Hôpital's rule — is a consequence of combining it with the Extreme Value Theorem, and every one of those results has the same shape: a hypothesis about at every point of an interval, a conclusion about at the interval's ends.
4.5The Mean Value Theorem: Statement and Geometry
Theorem 4.15 (Mean Value Theorem). Let be continuous on and differentiable on . Then there exists with
The proof is deferred to the next section, where Rolle's theorem supplies it in two lines. First, what the statement says.
Geometrically: the chord joining to has slope equal to the average rate of change, and the theorem asserts that somewhere strictly inside the interval the tangent is parallel to that chord. Physically: if a car covers kilometres in two hours, at some instant its speedometer read exactly km/h. The average is not merely approached — it is attained, exactly, at some interior instant.
Two features of the statement deserve emphasis because they are routinely misread. The theorem is existential: it asserts that some exists and gives no procedure for finding it, no formula for it, and no claim that it is unique — for on there are two such points. And the conclusion places in the open interval, which is what makes the theorem usable: a allowed to sit at an endpoint would say nothing, since need not even exist there.
The asymmetry in the hypotheses — continuity on the closed interval, differentiability only on the open one — is deliberate and is what lets the theorem apply to on , whose derivative blows up at the left endpoint. In the figure above, is unbounded near , yet the conclusion holds with given by , that is .
Example 4.17 (Locating explicitly). Find every guaranteed by the Mean Value Theorem for on .
Solution.
- The chord slope is .
- Solve , giving .
- Only lies in the open interval ; the value is the endpoint and is excluded.
- So the guaranteed point is unique here, — but uniqueness is an accident of this , not part of the theorem.
4.6Rolle's Theorem, and the Proof of the Mean Value Theorem
Rolle's theorem is the Mean Value Theorem in the special case of a horizontal chord. It looks weaker and is in fact equivalent, because tilting the picture is an algebraic operation that costs nothing.
Theorem 4.18 (Rolle's theorem). Let be continuous on , differentiable on , and suppose . Then there exists with .
Proof. Since is continuous on the closed bounded interval , the Extreme Value Theorem says attains a maximum value and a minimum value on .
Case 1: . Then is constant on , so for every , and the interval is non-empty since .
Case 2: . Since , that common value cannot equal both and ; say (otherwise run the argument with ). Let be a point with . Then and , because , so lies in the open interval . There has a local — indeed global — maximum and is differentiable by hypothesis, so the theorem Interior extremum theorem gives .∎
Everything in that proof is inherited: the existence of the extremum comes from compactness via the Extreme Value Theorem, and the vanishing of the derivative comes from the theorem Interior extremum theorem. The only new idea is the bookkeeping that forces the extremum to be interior, and it is the hypothesis that supplies it.
Proof. Proof of the theorem Mean Value Theorem. Subtract the chord. Define, for ,
Then is continuous on and differentiable on , because it is minus a polynomial. Moreover and
so . By the theorem Rolle's theorem there is with , that is
which is the claim.∎
Intuition. The function measures the vertical gap between the graph and its own chord. That gap is zero at both ends, so it must turn around somewhere in between, and at the turning point its derivative vanishes — which says the graph and the chord are momentarily changing at the same rate. Rolle's theorem is thus not a special case that got lucky; it is the Mean Value Theorem viewed in a coordinate system where the chord is the horizontal axis.
Example 4.19 (Rolle's theorem counts roots). Show that has exactly one real root.
Solution.
- At least one. and , so the Intermediate Value Theorem gives a root in .
- At most one. Suppose had two distinct roots . Then is continuous on , differentiable on , and , so the theorem Rolle's theorem supplies with .
- But for every real , so no such exists — a contradiction.
- Hence exactly one real root. The argument used no root-finding at all: the derivative's sign alone limited the number of roots.
4.7Consequences: Monotonicity, Bounds, and Inequalities
The Mean Value Theorem converts pointwise information about into statements about on whole intervals. Every result in this section is the same one-line deduction applied to a different hypothesis on the sign or size of .
Corollary 4.20 (Zero derivative means constant). If is continuous on an interval and for every interior point , then is constant on . Consequently, if throughout , then is constant.
Proof. Let in . Then is continuous on and differentiable on , so the theorem Mean Value Theorem gives with
Hence for every pair, so is constant. For the second claim apply the first to , whose derivative is identically by the theorem Algebra of derivatives.∎
Pitfall. The hypothesis " is an interval" cannot be dropped. On the set the function has derivative everywhere and is not constant. The Mean Value Theorem needs to lie inside the domain, which fails when the domain is disconnected — and this is precisely why " " in an antiderivative means one constant per interval.
Theorem 4.21 (Monotonicity from the sign of the derivative). Let be continuous on an interval and differentiable at every interior point.
- If throughout, is non-decreasing on ; if throughout, is non-increasing.
- If throughout, is strictly increasing; if throughout, is strictly decreasing.
Proof. Let in . By the theorem Mean Value Theorem there is with
and . So the sign of is exactly the sign of .
If everywhere then , giving (1); if everywhere then strictly, giving (2). The decreasing cases follow by applying these to .∎
The converse of part (2) is false in one direction only, and the example is worth remembering: is strictly increasing on yet . So strict monotonicity forces but not . What is true is that with vanishing only at isolated points still gives strict increase, since the proof above yields a strict inequality as soon as is non-zero somewhere in .
Corollary 4.22 (Derivative bounds give Lipschitz bounds). If is differentiable on an interval with for all , then
Proof. For the theorem Mean Value Theorem on the interval with endpoints and gives strictly between them with . Take absolute values and use . The case is trivial.∎
This is how the Mean Value Theorem is used in practice: not to find , but to throw it away after bounding . The unknown is harmless precisely because the bound holds at every point.
Example 4.23 (Proving an inequality by differentiation). Show that for every , with equality only at .
Solution.
- Set on , so the claim is .
- , whose denominator is positive on the domain. So on and on .
- By the theorem Monotonicity from the sign of the derivative, is strictly decreasing on and strictly increasing on , so its minimum over the whole domain is at .
- , hence everywhere with equality only at , which is the claim.
Theorem 4.24 (Cauchy Mean Value Theorem). Let and be continuous on and differentiable on . Then there exists with
If in addition never vanishes on , then and the conclusion may be divided:
The statement is recorded here because the next sections need it; its proof is given in the section Proving Cauchy's Mean Value Theorem, where it belongs to the discussion of L'Hôpital's rule. Taking recovers the theorem Mean Value Theorem, so it is a genuine generalisation.
4.8When the Hypotheses Are Really Needed
The Mean Value Theorem carries three hypotheses: continuity on the closed interval, differentiability on the open interval, and real-valuedness. Each is sharp, and the counterexamples are small.
Example 4.25 (Dropping continuity at an endpoint). Let for and . Show the conclusion of the Mean Value Theorem fails on .
Solution.
- is differentiable on with , so the differentiability hypothesis holds.
- But is not continuous at : .
- The chord slope is , yet for every .
- No works. A single endpoint discontinuity is enough: it lets the chord slope be chosen freely without any constraint on inside.
Example 4.26 (Dropping differentiability at one interior point). Show the conclusion fails for on .
Solution.
- is continuous on and differentiable except at the single point .
- The chord slope is .
- But for and for ; the value is never attained.
- So one bad interior point destroys the conclusion. The derivative here takes only the values — it skips — which is possible only because is undefined at ; a derivative that exists on a whole interval cannot skip values, by Darboux's theorem.
Remark. Notice what is not required: need not be continuous, need not be bounded, and need not exist at either endpoint. The theorem applies to from the proposition A differentiable function with a discontinuous derivative and to on without modification. Weakening hypotheses to exactly what the proof consumes is what makes a theorem reusable, and the proof consumed only the Extreme Value Theorem, which needs continuity on a closed bounded interval, plus differentiability where the extremum can land.
4.9Taylor's Theorem with the Lagrange Remainder
The Mean Value Theorem says : the function is a constant plus an exactly-corrected linear term. Taylor's theorem is the same statement with a degree- polynomial in place of the constant, and it is proved by the same device — build an auxiliary function with enough vanishing and apply Rolle repeatedly.
Definition 4.27 (Taylor polynomial). Let be times differentiable at . The -th Taylor polynomial of at is
and the remainder is . When this is also called the Maclaurin polynomial.
is the unique polynomial of degree at most that matches in value and in the first derivatives at : differentiating the sum times and setting kills every term but one, leaving for . Everything interesting is in .
Theorem 4.28 (Taylor's theorem, Lagrange form of the remainder). Let be times differentiable on an open interval containing , with continuous on the closed interval between and . Then for each with there is a point strictly between and such that
For this is precisely the theorem Mean Value Theorem.
Proof. Fix and choose the number so that
this is possible, and defines uniquely, because . The claim is that for some between and .
Define, for in the closed interval between and ,
Then is times differentiable there. Two families of zeros are available:
- , and more: since for , and every derivative of up to order vanishes at , we get for .
- by the choice of .
Now apply the theorem Rolle's theorem repeatedly. Since , there is strictly between and with . Since , there is strictly between and with . Continuing, after applications we obtain strictly between and with
Compute that derivative. has degree at most , so , and . Hence
so , which is the assertion.∎
The remainder term is the -st term of the series with one change: the derivative is evaluated not at but at an unknown interior point . That single substitution is what makes the formula an identity rather than an approximation, and — exactly as with the Mean Value Theorem — the practical use is to bound on the interval and discard .
Example 4.29 (The remainder for the exponential). Write with its degree- Maclaurin polynomial and Lagrange remainder, and bound the error for .
Solution.
- All derivatives of are , so and .
- The theorem Taylor's theorem, Lagrange form of the remainder gives for some between and .
- For we have , so and .
- At : against , an actual error of — inside the bound, as it must be, and about half of it, since the bound used the worst-case .
4.10Other Forms of the Remainder
Lagrange's form is the sharpest tool when can be bounded. When it cannot, or when the remainder must be manipulated rather than estimated, two other forms are better.
Theorem 4.30 (Integral form of the remainder). If is continuous on the closed interval between and , then
Proof. Induct on . For the claim is , which is the theorem Fundamental Theorem of Calculus, Part 2, applicable since is continuous.
Assume the formula for . Integrate the case by parts, taking and , so that :
The boundary term vanishes at and equals at . So
and since by the definition Taylor polynomial, the induction closes.∎
The integral form requires more of — continuity of , so that the integral exists — and gives more in return: no unknown point, and a remainder that can be estimated, integrated again, or differentiated under the integral sign.
Corollary 4.31 (Lagrange and Cauchy forms from the integral form). Suppose is continuous between and . Then there exist points strictly between and with
Proof. Take ; the case is identical with the orientation reversed.
Cauchy form. Apply the mean value theorem for integrals to , treating the whole integrand as a continuous function: there is with the integral equal to .
Lagrange form. Instead apply the weighted mean value theorem for integrals with weight , which does not change sign: there is with
which is the Lagrange expression. The two forms differ only in which factor was pulled out of the integral.∎
A third form asks nothing about at all, and says nothing quantitative in exchange — only that the remainder is of smaller order than the last term kept.
Proposition 4.32 (Peano form of the remainder). If is times differentiable at , then
that is, .
Proof. For this is condition (2) of the proposition Linear approximation and Carathéodory's formulation. For general , both and tend to as , and for by construction of . Apply the theorem L'Hôpital's rule, the form times:
where at each stage numerator and denominator both vanish at , so the hypotheses are met. The last limit is
using only that is differentiable at — which is all the hypothesis gives — and that .∎
Remark. The three forms answer three different questions. Lagrange: how big can the error be? Integral: what exactly is the error, as a formula I can operate on? Peano: is the error negligible against the last term I kept? Peano's is the one used to compute limits, because it needs only derivatives at the single point — the cheapest hypothesis in the chapter.
4.11Taylor Series and When They Represent the Function
Letting in the definition Taylor polynomial produces a power series. Whether that series converges, and whether it converges to , are two separate questions, and both can fail.
Definition 4.33 (Taylor series; analytic functions). For smooth near , the Taylor series of at is the formal power series
is analytic at if this series converges to on some open interval around , and analytic on a set if it is analytic at each of its points.
Theorem 4.34 (Remainder criterion for series representation). Let be smooth on an interval containing . Then the Taylor series of at converges to for a given if and only if as . In particular, if there are constants with for all and all between and , then the series converges to .
Proof. The -th partial sum of the series is exactly , so by the definition of ,
The left side tends to precisely when the series converges to , and the right side tends to precisely when ; the two statements are therefore the same statement.
For the sufficient condition, the theorem Taylor's theorem, Lagrange form of the remainder gives
For fixed the sequence tends to , since it is the general term of the convergent series for and the theorem Term test forces the terms of a convergent series to vanish. Hence .∎
Example 4.35 (The exponential series converges everywhere). Prove that for every real .
Solution.
- Fix and let . Every derivative of is , and for between and we have .
- So : the hypothesis of the theorem Remainder criterion for series representation holds with and .
- Therefore and the series converges to for that . Since was arbitrary, this holds on all of .
- The same argument with handles and , which is why those three series are the ones quoted without further comment.
Convergence of the series is not the issue; convergence to is. The following function is the standard demonstration that smoothness is not enough.
Proposition 4.36 (A smooth function that is not analytic). Define
Then and for every . Its Taylor series at is identically zero and therefore converges to only at ; is not analytic at .
Proof. For , repeated use of the theorem Chain rule and the theorem Algebra of derivatives shows by induction that
for some polynomial : the base case is , and differentiating produces , again of that shape.
It remains to show for all , by induction. Suppose . Then
where is a polynomial. Put , so as , and the modulus of the expression is at most once denotes the polynomial with the absolute values of the coefficients. For any fixed degree , as , since for every by the series for the exponential, and choosing makes . Hence the difference quotient tends to and . Continuity of at follows from the same estimate applied to .
So all derivatives at vanish, the Taylor series at is , and it converges (to ) for every — but for every , so it represents nowhere except at the origin.∎
Intuition. A real-analytic function is rigid: its values on any tiny interval determine it everywhere it is analytic, because they determine every derivative at a point and hence the whole series. A merely smooth function is floppy: is identically to infinite order at the origin and yet is strictly positive one step to the right. That floppiness is a feature, not a defect — it is exactly what makes bump functions possible, and bump functions are the reason smooth partitions of unity exist while analytic ones do not.
4.12Applications: Approximation and Error Bounds
The practical content of Taylor's theorem is a two-step routine: write down , then bound on the interval of interest and read off the error. The second step is where the theorem does work no numerical experiment can do — it bounds the error without knowing the true value.
Example 4.39 (How many terms for four-decimal accuracy?). Find the smallest for which of at approximates with error below .
Solution.
- By the theorem Taylor's theorem, Lagrange form of the remainder, with , so .
- Require .
- Test values: gives , too big; gives , which passes.
- So suffices. Checking, against , an error near — the bound was conservative by an order of magnitude, as bounds built on worst-case derivatives usually are.
4.13L'Hôpital's Rule: the Form
A quotient whose numerator and denominator both tend to has no determined limit: , and all have the form . The symbol records which limit laws fail, not a value.
A limit is called an indeterminate form when substituting the limiting behaviour of its parts yields one of
that is, an expression whose value is not determined by the limits of the parts alone.
The point of the list is its complement. , and are not indeterminate: those limits are determined, and applying L'Hôpital's rule to them is an error, not merely a waste.
Theorem 4.40 (L'Hôpital's rule, the form). Let be differentiable on an open interval with there, and suppose
If exists, finite or infinite, then
The same holds for left-hand limits, two-sided limits, and limits at .
Proof. Extend and to by setting . The hypothesis on the limits makes both extensions continuous at , and they remain differentiable on .
Fix . The functions are continuous on and differentiable on , and does not vanish there, so the theorem Cauchy Mean Value Theorem applies and produces a point with
The first equality uses ; the denominator is non-zero by the second part of that theorem.
Now let . Since , the Squeeze Theorem gives . Therefore by hypothesis, and by the identity above as well.∎
The proof explains the hypotheses exactly. Both functions must vanish in the limit, or the first equality is false; must not vanish, or Cauchy's theorem cannot be divided; and the limit of must exist, because the rule transfers a known limit and does not create one.
Example 4.41 (A first application, and why one pass is not always enough). Evaluate .
Solution.
- Numerator and denominator both tend to , and for , so the theorem L'Hôpital's rule, the form applies.
- Differentiating: , again of the form .
- Apply the rule a second time: .
- Since the last limit exists, the rule transfers backwards through both steps, and the original limit is . Checking with the proposition Peano form of the remainder: , giving immediately.
4.14The Form and the Other Indeterminates
Theorem 4.42 (L'Hôpital's rule, the form). Let be differentiable on with there, and suppose as . If exists, finite or infinite, then
Notably, nothing need be assumed about beyond differentiability.
Proof. Take finite; the infinite case follows by applying the finite one to . Let . Choose so close to that
For the theorem Cauchy Mean Value Theorem on gives with
Now write the quotient we actually want in terms of that one:
Here is now fixed and as , so the marked factor tends to and the last term tends to . Hence for sufficiently close to the right-hand side differs from by less than , and therefore from by less than . As was arbitrary, the limit is .∎
The device in that proof — freeze , let run — is the reason the form needs a separate argument rather than a substitution trick, and it is also why no hypothesis on is required: the term is killed by the growth of alone.
The remaining indeterminate forms are handled by rewriting them as quotients. A product of the form becomes or , and the two rewrites are not equally convenient — choose the one whose derivative is simpler, since the other frequently produces something worse than the original. A difference of the form is combined over a common denominator, or has its dominant term factored out, until it reads as or . The three exponential forms , and are reduced by logarithms: set , so that is a form, evaluate , and conclude by continuity of the exponential.
For example, as is ; its logarithm is , a form whose derivative quotient is , so the original limit is .
Example 4.43 (Polynomials lose to exponentials). Show that for every fixed positive integer .
Solution.
- The form is and never vanishes, so the theorem L'Hôpital's rule, the form applies.
- One application lowers the power: , still .
- After applications the numerator is the constant and the limit is , which exists.
- Transferring back through the steps gives . This is the precise sense in which "exponential beats polynomial", and iterating once more shows likewise beats for every simultaneously.
4.15Proving Cauchy's Mean Value Theorem
Both forms of L'Hôpital's rule rest on one generalisation of the Mean Value Theorem, stated earlier as the theorem Cauchy Mean Value Theorem. Its proof is the debt this chapter still owes, and it is settled in a few lines by the same trick used for the Mean Value Theorem itself: build an auxiliary function that vanishes at both endpoints, and call Rolle.
Proof. Proof of the theorem Cauchy Mean Value Theorem. Define, for ,
Then is continuous on and differentiable on , being a linear combination of and with constant coefficients. Evaluate at the endpoints:
These are equal, so and the theorem Rolle's theorem supplies with , that is
which is the first conclusion.
For the second, suppose never vanishes on . If then the theorem Rolle's theorem applied to alone would give a point where , a contradiction; so , and both and are non-zero, permitting the division.∎
Intuition. Read the conclusion parametrically. The pair traces a curve in the plane as runs over ; the chord from to has slope , while the tangent vector to the curve at parameter is , of slope . Cauchy's theorem says the tangent is parallel to the chord somewhere — the same picture as the ordinary Mean Value Theorem, drawn for a parametrised curve rather than a graph. Taking parametrises the graph of and recovers the original.
Example 4.44 (Cauchy's theorem used directly). For and on , find the point of the theorem Cauchy Mean Value Theorem.
Solution.
- .
- for .
- Solve , giving and .
- This lies in , as promised. Note it is not the point produced by the ordinary Mean Value Theorem for either function separately — for that would be .
4.16Where L'Hôpital's Rule Goes Wrong
The rule is applied wrongly more often than any other result in elementary analysis, and every failure is one of four kinds.
Pitfall. Checking the form is not optional. Applying the rule to , which is and hence determinate, gives — a confident, wrong answer. Verify that numerator and denominator both tend to , or that the denominator tends to , before differentiating.
Example 4.45 (The converse direction fails). Show that exists but that the quotient of derivatives has no limit.
Solution.
- Directly: , and , so the limit is .
- The derivatives give , which oscillates between and forever and has no limit.
- There is no contradiction: the theorem L'Hôpital's rule, the form concludes something if exists, and says nothing when it does not.
- So "L'Hôpital fails" never means "the limit does not exist" — it means the tool was uninformative and another method is needed.
Pitfall. It is not the quotient rule. The rule replaces by — the derivatives taken separately — which is emphatically not . Writing at this point is a different, and useless, computation.
Pitfall. The hypothesis is real. Both proofs divide by for a point we do not control, so must be non-vanishing on a whole one-sided neighbourhood, not merely at points where it is convenient. A denominator like near , whose derivative vanishes on a sequence approaching the limit point, is outside the theorem's scope even though the form is .
- Assuming a derivative is continuous. By the proposition A differentiable function with a discontinuous derivative, is differentiable everywhere with a derivative that is discontinuous at . "Differentiable" and "continuously differentiable" are different hypotheses and theorems distinguish them.
- Reversing the theorem Differentiability implies continuity. Continuity gives nothing: is continuous and not differentiable at , and Weierstrass's function is continuous nowhere differentiable.
- Treating as proof of an extremum. It is necessary at an interior extremum, not sufficient — at . And extrema at endpoints or at non-differentiable points are not found this way at all.
- Forgetting the endpoints when optimising. The Extreme Value Theorem guarantees the extrema exist somewhere in ; the theorem Interior extremum theorem only narrows down where the interior ones can be.
- Solving for in the Mean Value Theorem when the problem does not ask. The theorem's power is that can be bounded and discarded, as in the corollary Derivative bounds give Lipschitz bounds. Only exercises explicitly ask for .
- Applying the corollary Zero derivative means constant across a gap. A zero derivative forces constancy on each interval of the domain separately; is the counterexample on a disconnected domain.
- Claiming a Taylor series always represents its function. By the proposition A smooth function that is not analytic, has an identically zero Taylor series at . Convergence of the series and convergence to must be checked separately, via the theorem Remainder criterion for series representation.
- Bounding the remainder with instead of . The Lagrange remainder is evaluated at an unknown between and , so the bound must hold over the entire interval, not just at the centre.
- Applying L'Hôpital's rule to a determinate form. , and are not indeterminate, and differentiating them produces confident nonsense.
- Concluding that a limit fails to exist because has no limit. The rule is one-directional; has limit while has none.
- Differentiating the quotient instead of the numerator and denominator separately. L'Hôpital's rule is not the quotient rule, and confusing the two changes the problem.
- Iterating L'Hôpital without rechecking the form. Each pass needs the hypotheses verified again; once the form becomes determinate, the next differentiation is invalid and the answer silently wrong.