Open In App

L’ Hopital Rule in Calculus

Last Updated : 23 Jul, 2025
Comments
Improve
Suggest changes
9 Likes
Like
Report

L’ Hopital Rule in Calculus is one of the most frequently used tools in entire calculus, which helps us calculate the limit of those functions that seem indeterminate forms. For many years, these indeterminate forms have been considered impossible to solve for functions, but some scholars have found out that some functions have limits which can be seen in the graph but the calculation seems to result in an indeterminate form. Hence, the L'Hopital rule is born.

In this article, we will learn about the concept of indeterminate forms and the L'Hopital Rule in detail, along with the L'Hopital Rule formula, and proofs of the L'Hopital Rule formula with examples as well.

L'Hopital Rule in Calculus

L'Hôpital's Rule, named after the French mathematician Guillaume de l'Hôpital, is a mathematical theorem used to evaluate limits of indeterminate forms. The L'Hopital rule uses derivatives of each function to solve the limit which helps us evaluate the limits which results in an indeterminate form.

L'Hopital rule states that when the limit is applied to a fraction of two functions resulting in an indeterminate form then it is equal to the limit of the fraction formed by the individual derivatives of functions.

Indeterminate Forms

The indeterminate forms are the forms with two functions whose limits cannot be determined by putting the limits in the function. The indeterminate form is the form that is undefined mathematically. The forms whose value cannot be evaluated by directly applying the limits are called indeterminate forms. Indeterminate form includes 0/0, ±∞/±∞, 0×∞, ∞-∞, 00, 1 etc. The 0/0, and ±∞/±∞ are the most common indeterminate forms in which the L'Hopital rule is applied.

L'Hopital Rule Formula

For two continuous and differentiable functions f(x) and g(x) if limits x tends to result in an indeterminate form, then the L'Hopital rule is applied and it states,

If the limit \lim_{{x \to c}} \frac{f(x)}{g(x)}​ results in an indeterminate form of \frac{0}{0}​ or \frac{\infty}{\infty}​, and if the derivatives f′(x) and g′(x) exist and are continuous near c, and g′(x)≠0 for x near c, then:

\lim_{{x \to c}} \frac{f(x)}{g(x)} = \lim_{{x \to c}} \frac{f'(x)}{g'(x)}

L'Hospital-Rule

Where,

  • a is any real number or infinity.
  • f'(x) is derivative of f(x)
  • g'(x) is derivative of g(x) and g(x) and g(a) ≠ 0

Conditions for L'Hopital Rule

The L Hopital rule is used when the limits of two differentiable functions after applying the limit gives an indeterminate form. Commonly, for the indeterminate forms 0/0, ±∞/±∞ we apply the L'Hopital rule directly to evaluate the limit.

Some necessary conditions for applying the L'Hopital rule

  • f(x) and g(x) must be differentiable.
  • The limit of the quotient of the derivatives of a given function should exist i.e.,

limx→a f'(x) / g'(x) = Some Finite Number

L'Hopital Rule Proof

The L Hopital rule is applied when limits result in indeterminate form 0/0, ±∞/±∞. We can prove the L Hopital rule by using Cauchy's Mean Value Theorem.

Let f(x) and g(x) be two continuous functions on the interval [a, b] and differentiable on the interval (a, b) and we know for any function f(x), its derivative at x = c is given as

f'(c) = [f(x) - f(c)]/(x - c)

Assume that g(x) = 0 on (a, b), then there exists c in (a, b) such that

lim x→b [f'(x) / g'(x)] = lim x→b [{(f(x)- f(b)) / (x - b)} / {(g(x)- g(b)) / (x - b)}]

Let the functions f and g be differentiable at x = c satisfying where c belongs to the interval in which functions are defined. Let f(c) = g(c) = 0.

By Cauchy's Mean Value Theorem,

limx→c [f(x) / g(x)]= lim x→c[f(x) -f(c)]/[g(x) - g(c)]

⇒ lim x→c [f(x) / g(x)]= lim x→c[f(x) - 0] / [g(x) - 0]    {as f(c) = g(c) = 0}

⇒ lim x→c [f(x) / g(x)]= lim x→c[f(x) - f(c)] / [g(x) - g(c)]

⇒ limx→c [f(x) / g(x)] = lim x→c [{(f(x)- f(c)) / (x - c)} / {(g(x)- g(c)) / (x - c)}]

⇒ limx→c [f(x) / g(x)] = limx→c [f'(x) / g'(x)]

Which is the required result.

Learn more about Mean Value Theorem.

How to Apply L'Hopital Rule?

L'Hopital rule is applied when we get an indeterminate form after applying the limits. For applying the L'Hopital Rule these are the following steps:

  • First check after applying the limit we get indeterminate form or not. If we do not get indeterminate form then, we cannot apply L Hopital rule.
  • When we get indeterminate form, simplify the fraction before applying the rule.
  • Find the derivatives of the functions separately.
  • Determine the value of ratio of derivatives to get the result.

Example: Find limx→1 [(x10 - 1) / (x2 - 1)]

Solution:

First apply the limit

limx→1 [(x10 - 1) / (x2 - 1)] = [110 -1] / [12 -1] = 0 / 0

After applying the limit, we get 0 / 0 form so, we apply L'Hopital rule

f(x) = x10 - 1

⇒ f'(x) = 10x9

g(x) = x2 - 1

⇒ g'(x) = 2x

limx→1 [(x10 - 1) / (x2 - 1)] = (10x9) / 2x

Now, put limit x = 1, we get

⇒ limx→1 [(x10 - 1) / (x2 - 1)] = [(10×19 )-1] / [2×1] = 10 / 2

⇒ limx→1 [(x10 - 1) / (x2 - 1)] = 5

Applying L'Hopital Rule Multiple Times

When the L'Hopital rule is applied once and also after applying the limit we get an indeterminate form then after simplifying the fraction, we can again apply L'Hopital Rule. We can apply the rule multiple times until we get an indeterminate form. Before each application of the L'Hopital rule, we should simplify the fractions.

Example: Find limx→0 [(sinx - x) / x2]

Solution:

First apply the limit

limx→0 [(sinx - x) / x2] = (sin0 - 0) / 02 = 0/0

After applying the limit, we get 0 / 0 form so, we apply L'Hopital rule

f(x) = sin x - x

⇒ f'(x) = cos x -1

g(x) = x2

⇒ g'(x) = 2x0

limx→0 [(sinx - x) / x2] = (cos x -1) / 2x

Now, put limit x = 0, we get

limx→0 [(sinx - x) / x2] = (cos 0 -1) / 2×0 = 0 / 0

Again we get 0 / 0 form so, we again apply L'Hopital rule

f(x) = cos x - 1

⇒ f'(x) = -sinx

g(x) = 2x

⇒ g'(x) = 2

limx→0 [(sinx - x) / x2] = (-sin x) / 2

Now, put limit x = 0, we get

limx→0 [(sinx - x) / x2] = (- sin 0) / 2 = 0

⇒ limx→0 [(sinx - x) / x2] = 0

How to apply L'Hopital Rule for Exponents

When the variable is in power, we equate the limit with a variable and take the logarithm on both sides and then apply the L'Hopital rule.

Example: Evaluate: limx→∞ x1/x

Solution:

The given limit gives 0

In this question we have variable in the exponent, so we take ln

y = x1/x

Taking ln both sides in the above equation.

ln y = ln x1/x

⇒ ln y = (1 / x) ln x

Applying limit

limx→∞ ln y = limx→∞ (1 / x) × ln x

⇒ limx→∞ ln y = limx→∞ (ln x) / x

Applying L'Hopital rule

limx→∞ ln y = limx→∞ (1 / x) / 1

⇒ limx→∞ ln y = limx→∞ (1 / x)

putting limit

limx→∞ ln y = 1 / ∞ = 0

⇒ ln [limx→∞ y] = 0

⇒ limx→∞ y = e0

⇒ limx→∞ y = 1

⇒ limx→∞ x1/x= 1

Key Points about L’ Hopital Rule

Some of the key points which we need to remember related to L'Hopital's rule are:

  • If the limit does not result in an indeterminate form after applying the limit, then we cannot apply the L'Hopital rule (it provides an incorrect result).
  • Each time before applying the rule, we should simplify the rational expression.
  • If the limit is given in product form like f(x). g(x) then, for applying the rule we can rewrite it as f(x) / 1 / g(x) or g(x) / 1 / f(x).
  • While applying the L'Hopital rule multiple times always check if the resulting rational expression gives an indeterminate form or not.

People Also Read:

Solved Examples with Solutions

Example 1. Find limx→-2 [(x + 2) / (x2 + 3x + 2)]

Solution:

First apply the limit

limx→-2 [(x + 2) / (x2 + 3x + 2)] = limx→-2 [(- 2 + 2) / ((-2)2 + 3×(-2) + 2)] = 0 / 0

After applying the limit, we get 0 / 0 form so, we apply L'Hopital rule

f(x) = x + 2

⇒ f'(x) = 1

g(x) = x2 + 3x + 2

⇒ g'(x) = 2x + 3

limx→-2 [(x + 2) / (x2 + 3x + 2)] = 1 / (2x + 3)

Now, put limit x = -2, we get

limx→-2 [(x + 2) / (x2 + 3x + 2)] = 1 / [2×(-2) + 3] = 1 / (-4 + 3)

⇒ limx→-2 [(x + 2) / (x2 + 3x + 2)] = -1

Example 2. Find limx→0 [sin 3x / x]

Solution:

First apply the limit

limx→0 [sin 3x / x] = sin 3(0) / 0 = 0 / 0

After applying the limit, we get 0 / 0 form so, we apply L'Hopital rule

f(x) = sin3x

⇒ f'(x) = 3cos3x

g(x) = x

⇒ g'(x) = 1

limx→0 [sin 3x / x] = 3cos 3x / 1

Now, put limit x = 0, we get

limx→0 [sin 3x / x] = [3cos 3(0)] / 1 = 3 / 1

⇒ limx→0 [sin 3x / x] = 3

Example 3. Find limx→∞ [x2 / ex]

Solution:

First apply the limit

limx→∞ [x2 / ex] = ∞2 / e = ∞ / ∞

After applying the limit, we get ∞ / ∞ form so, we apply L'Hopital rule

f(x) = x2

⇒ f'(x) = 2x

g(x) = ex

⇒ g'(x) = ex

⇒ limx→∞ [x2 / ex] = 2x / ex

Now, put limit x = ∞, we get

limx→∞ [x2 / ex] = (2 × ∞)/ e = ∞ / ∞

Again we get ∞ / ∞ form so, we again apply L'Hopital rule

f(x) = 2x

⇒ f'(x) = x

g(x) = ex

⇒ g'(x) = ex

limx→∞ [x2 / ex] = 2 / ex

Now, put limit x = ∞, we get

limx→∞ [x2 / ex] = 2 / ex = 2 / e = 2 / ∞

⇒ limx→∞ [x2 / ex] = 0

Example 4. Evaluate: limx→∞ xx

Solution:

The given limit gives

In this question we have variable in the exponent, so we take ln

y = xx

Taking ln

ln y = ln xx

⇒ ln y = x ln x

Applying Limit

limx→∞ ln y = limx→∞ xlnx

⇒ limx→∞ ln y = limx→∞ [lnx / ( 1 / x)]

Applying L'Hopital rule

limx→∞ ln y = limx→∞ [(1 / x) / ( -1 / x2)]

⇒ limx→∞ ln y = limx→∞ [-(1 / x) / (1 / x)2]

⇒ limx→∞ ln y = limx→∞ [-1 / (1 / x)]

⇒ limx→∞ ln y = limx→∞ (-x)

putting limit

limx→∞ ln y = -∞

⇒ ln limx→∞ y = -∞

⇒ limx→∞ y = e-∞

⇒ limx→∞ y = 0

⇒ limx→∞ xx = 0

Practice Problems on L Hopital Rule

Find the following limits using L' Hopital Rule

Problem: 1\lim_{{x \to 2}} \frac{{x^2 - 4}}{{x - 2}}

Problem: 2\lim_{{x \to 0}} \frac{{e^x - 1}}{{x}}

Problem: 3\lim_{{x \to \infty}} \frac{{x^2 + 3x}}{{2x^2 - 5}}

Problem: 4\lim_{{x \to \infty}} \frac{{\ln(x)}}{{x}}

Problem: 5\lim_{{x \to 0}} \frac{{\sin(x)}}{{x}}

Problem: 6\lim_{{x \to 0}} \frac{{1 - \cos(x)}}{{x^2}}

Problem: 7\lim_{{x \to \infty}} \left(1 + \frac{2}{x}\right)^x

Problem: 8\lim_{{x \to \infty}} \left(\frac{{x + 1}}{{x}}\right)^{3x}

Conclusion

L'Hopital's Rule is a calculus technique used to evaluate limits that result in indeterminate forms like 0/0 or infinity/infinity. The rule simplifies these limits by using derivatives: if the limit of f(x)/g(x) is indeterminate, then it can be found by evaluating the limit of f'(x)/g'(x), where f'(x) and g'(x) are the derivatives of f(x) and g(x). This rule is applicable when both functions are differentiable and the limit initially results in an indeterminate form. If the limit of the derivatives also yields an indeterminate form, the rule can be applied multiple times. For example, it can simplify limits like (x^10 - 1) / (x^2 - 1) to 5, or (sin x - x) / x^2 to 0 after applying the rule twice.


Explore