◀ Back to Note

Tony's Intertwingled Memex • Reference Manual

L'Hôpital's Rule

Formulas & Definitions
Core Definition

L'Hôpital's Rule states that if functions f(x)f(x)f(x) and g(x)g(x)g(x) are differentiable on an open interval containing aaa (except possibly at aaa itself), g′(x)≠0g'(x) \neq 0g′(x)=0 near aaa, and direct evaluation of the limit yields an indeterminate quotient form:

lim⁡x→af(x)g(x)=00orlim⁡x→af(x)g(x)=±∞±∞\lim_{x \to a} \frac{f(x)}{g(x)} = \frac{0}{0} \quad \text{or} \quad \lim_{x \to a} \frac{f(x)}{g(x)} = \frac{\pm\infty}{\pm\infty}x→alim​g(x)f(x)​=00​orx→alim​g(x)f(x)​=±∞±∞​
then the limit of the quotient of the functions is equal to the limit of the quotient of their derivatives, provided that limit exists or is ±∞\pm\infty±∞:
lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)}x→alim​g(x)f(x)​=x→alim​g′(x)f′(x)​
(The rule applies equally to one-sided limits x→a+x \to a^+x→a+, x→a−x \to a^-x→a− and limits at infinity x→±∞x \to \pm\inftyx→±∞.)


Concept Explanation

1. Geometric Intuition via Linear Approximations

When evaluating a limit lim⁡x→af(x)g(x)\lim_{x \to a} \frac{f(x)}{g(x)}limx→a​g(x)f(x)​ where both f(a)=0f(a) = 0f(a)=0 and g(a)=0g(a) = 0g(a)=0, both curves pass through zero at x=ax = ax=a. For values of xxx very close to aaa, differentiable functions are well-approximated by their tangent lines (linearizations):

f(x)≈f(a)+f′(a)(x−a)=0+f′(a)(x−a)f(x) \approx f(a) + f'(a)(x - a) = 0 + f'(a)(x - a)f(x)≈f(a)+f′(a)(x−a)=0+f′(a)(x−a)
g(x)≈g(a)+g′(a)(x−a)=0+g′(a)(x−a)g(x) \approx g(a) + g'(a)(x - a) = 0 + g'(a)(x - a)g(x)≈g(a)+g′(a)(x−a)=0+g′(a)(x−a)

Taking their ratio near x=ax = ax=a:

f(x)g(x)≈f′(a)(x−a)g′(a)(x−a)=f′(a)g′(a)\frac{f(x)}{g(x)} \approx \frac{f'(a)(x - a)}{g'(a)(x - a)} = \frac{f'(a)}{g'(a)}g(x)f(x)​≈g′(a)(x−a)f′(a)(x−a)​=g′(a)f′(a)​
Thus, the limiting ratio of two quantities that both vanish simultaneously is simply the ratio of their instantaneous local rates of change.

       y ^              Tangent line to f(x): slope = f'(a)
         |             / 
         |            /   Curve f(x)
         |           /   /
         |          /  /
         |         / /
       0 +--------•------------------> x
         |       /a \ 
         |      /    \  Curve g(x)
         |     /      \
         |    /        \ Tangent line to g(x): slope = g'(a)

2. The Strict "STOP & CHECK" Protocol

L'Hôpital's Rule is an exceptional diagnostic tool, not a general differentiation method for quotients. Applying the rule when direct substitution yields a determinate number leads to catastrophically incorrect results:

lim⁡x→0x+2x+1=0+20+1=2(Correct determinate value)\lim_{x \to 0} \frac{x + 2}{x + 1} = \frac{0 + 2}{0 + 1} = 2 \quad \text{(Correct determinate value)}x→0lim​x+1x+2​=0+10+2​=2(Correct determinate value)
Erroneous L’Hoˆpital Application: lim⁡x→0ddx[x+2]ddx[x+1]=lim⁡x→011=1(COMPLETELY WRONG)\text{Erroneous L'Hôpital Application: } \lim_{x \to 0} \frac{\frac{d}{dx}[x+2]}{\frac{d}{dx}[x+1]} = \lim_{x \to 0} \frac{1}{1} = 1 \quad \text{(COMPLETELY WRONG)}Erroneous L’Hoˆpital Application: x→0lim​dxd​[x+1]dxd​[x+2]​=x→0lim​11​=1(COMPLETELY WRONG)

Always verify that direct substitution explicitly yields 00\frac{0}{0}00​ or ±∞±∞\frac{\pm\infty}{\pm\infty}±∞±∞​ before differentiating.

3. L'Hôpital's Rule vs. The Quotient Rule

A pervasive student misconception is confusing L'Hôpital's Rule with the Quotient Rule:

  • Differentiating a Quotient Function: ddx[f(x)g(x)]=f′(x)g(x)−f(x)g′(x)[g(x)]2\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)g(x) - f(x)g'(x)}{[g(x)]^2}dxd​[g(x)f(x)​]=[g(x)]2f′(x)g(x)−f(x)g′(x)​
  • Evaluating an Indeterminate Limit: lim⁡x→af(x)g(x)=L’Hlim⁡x→af′(x)g′(x)\lim_{x \to a} \frac{f(x)}{g(x)} \overset{\text{L'H}}{=} \lim_{x \to a} \frac{f'(x)}{g'(x)}limx→a​g(x)f(x)​=L’Hlimx→a​g′(x)f′(x)​

In L'Hôpital's Rule, you never use the Quotient Rule. Differentiate the numerator and denominator independently as separate, standalone functions.

4. Repeated Applications

If the first application of L'Hôpital's Rule results in another indeterminate form (00\frac{0}{0}00​ or ±∞±∞\frac{\pm\infty}{\pm\infty}±∞±∞​), the rule can be applied again:

lim⁡x→af(x)g(x)=L’Hlim⁡x→af′(x)g′(x)=L’Hlim⁡x→af′′(x)g′′(x)\lim_{x \to a} \frac{f(x)}{g(x)} \overset{\text{L'H}}{=} \lim_{x \to a} \frac{f'(x)}{g'(x)} \overset{\text{L'H}}{=} \lim_{x \to a} \frac{f''(x)}{g''(x)}x→alim​g(x)f(x)​=L’Hx→alim​g′(x)f′(x)​=L’Hx→alim​g′′(x)f′′(x)​
Before each subsequent step, pause and simplify algebraically, then re-check the indeterminate form.


Engineering Applications

  • Electrical & Computer Engineering (Digital Signal Filtering): The sinc function sinc(t)=sin⁡(πfct)πfct\text{sinc}(t) = \frac{\sin(\pi f_c t)}{\pi f_c t}sinc(t)=πfc​tsin(πfc​t)​ models ideal brick-wall bandpass filtering. At t=0t = 0t=0, both numerator and denominator vanish (00\frac{0}{0}00​). Applying L'Hôpital's Rule proves the peak carrier pulse gain is lim⁡t→0sinc(t)=1\lim_{t \to 0}\text{sinc}(t) = 1limt→0​sinc(t)=1, enabling DSP firmware to avoid runtime division-by-zero exceptions (see Digital Signal Sinc Pulse Filtering (Electrical & Computer Engineering)).
  • Aerospace & Mechanical Engineering (Compressible Gas Dynamics): In supersonic convergent-divergent nozzles, governing equations for isentropic Mach expansion yield indeterminate ratios of form 00\frac{0}{0}00​ at the nozzle throat (M→1M \to 1M→1). L'Hôpital's Rule resolves the sonic throat temperature and pressure gradients.
  • Structural Engineering (Notch Stress Concentrations): Stress equations at sharp structural corners often contain ratios of local notch radii to plate widths that collapse to indeterminate forms under asymptotic boundary analysis.

Example Problems

Example 1: Basic Indeterminate Quotient (00\frac{0}{0}00​)

Evaluate lim⁡x→0e3x−1−3xx2\lim_{x \to 0} \frac{e^{3x} - 1 - 3x}{x^2}limx→0​x2e3x−1−3x​.

Solution

Step 1: Check the form via direct substitution Numerator: e0−1−0=1−1=0e^0 - 1 - 0 = 1 - 1 = 0e0−1−0=1−1=0 Denominator: 02=00^2 = 002=0 Form: 00\frac{0}{0}00​. L'Hôpital's Rule applies.

Step 2: First application of L'Hôpital's Rule Differentiate numerator and denominator independently with respect to xxx:

lim⁡x→0e3x−1−3xx2=L’Hlim⁡x→03e3x−32x\lim_{x \to 0} \frac{e^{3x} - 1 - 3x}{x^2} \overset{\text{L'H}}{=} \lim_{x \to 0} \frac{3e^{3x} - 3}{2x}x→0lim​x2e3x−1−3x​=L’Hx→0lim​2x3e3x−3​

Step 3: Re-check the indeterminate form Numerator: 3e0−3=3−3=03e^0 - 3 = 3 - 3 = 03e0−3=3−3=0 Denominator: 2(0)=02(0) = 02(0)=0 Form: 00\frac{0}{0}00​. Apply L'Hôpital's Rule a second time.

Step 4: Second application of L'Hôpital's Rule

lim⁡x→03e3x−32x=L’Hlim⁡x→09e3x2=9e02=92\lim_{x \to 0} \frac{3e^{3x} - 3}{2x} \overset{\text{L'H}}{=} \lim_{x \to 0} \frac{9e^{3x}}{2} = \frac{9e^0}{2} = \frac{9}{2}x→0lim​2x3e3x−3​=L’Hx→0lim​29e3x​=29e0​=29​

Example 2: Quotient at Infinity (∞∞\frac{\infty}{\infty}∞∞​)

Evaluate lim⁡x→∞ln⁡(x)x\lim_{x \to \infty} \frac{\ln(x)}{\sqrt{x}}limx→∞​x​ln(x)​.

Solution

Step 1: Check the form via direct substitution Numerator: ln⁡(∞)→∞\ln(\infty) \to \inftyln(∞)→∞ Denominator: ∞→∞\sqrt{\infty} \to \infty∞​→∞ Form: ∞∞\frac{\infty}{\infty}∞∞​. L'Hôpital's Rule applies.

Step 2: Differentiate numerator and denominator

lim⁡x→∞ln⁡(x)x1/2=L’Hlim⁡x→∞1x12x−1/2\lim_{x \to \infty} \frac{\ln(x)}{x^{1/2}} \overset{\text{L'H}}{=} \lim_{x \to \infty} \frac{\frac{1}{x}}{\frac{1}{2}x^{-1/2}}x→∞lim​x1/2ln(x)​=L’Hx→∞lim​21​x−1/2x1​​

Step 3: Simplify algebraically before taking the limit

1x12x=1x⋅2x1=2xx=2x\frac{\frac{1}{x}}{\frac{1}{2\sqrt{x}}} = \frac{1}{x} \cdot \frac{2\sqrt{x}}{1} = \frac{2\sqrt{x}}{x} = \frac{2}{\sqrt{x}}2x​1​x1​​=x1​⋅12x​​=x2x​​=x​2​

Step 4: Evaluate

lim⁡x→∞2x=2∞=0\lim_{x \to \infty} \frac{2}{\sqrt{x}} = \frac{2}{\infty} = 0x→∞lim​x​2​=∞2​=0


Connections & References

  • Parent Concepts:
    • Rates of Change and the Derivative
    • Linear Approximations
  • Sub-Concepts & Analytical Strategies:
    • Indeterminate Forms
    • Indeterminate Powers and Logarithmic Transformation
    • Growth Rates of Functions
  • Course Sessions:
    • Session 12 - L’Hopital’s Rule and Indeterminate Forms