If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

L'Hôpital's rule review

L'Hôpital's rule helps us find many limits where direct substitution ends with the indeterminate forms 0/0 or ∞/∞. Review how (and when) it's applied.

What is L'Hôpital's rule?

L'Hôpital's rule helps us evaluate indeterminate limits of the form 00 or .
In other words, it helps us find limxcu(x)v(x), where limxcu(x)=limxcv(x)=0 (or, alternatively, where both limits are ±).
The rule essentially says that if the limit limxcu(x)v(x) exists, then the two limits are equal:
limxcu(x)v(x)=limxcu(x)v(x)
Want to learn more about L'Hôpital's rule? Check out this video.

Using L'Hôpital's rule to find limits of quotients

Let's find, for example, limx07xsin(x)x2+sin(3x).
Substituting x=0 into 7xsin(x)x2+sin(3x) results in the indeterminate form 00. So let's use L’Hôpital’s rule.
=limx07xsin(x)x2+sin(3x)=limx0ddx[7xsin(x)]ddx[x2+sin(3x)]L’Hopital’s rule=limx07cos(x)2x+3cos(3x)=7cos(0)2(0)+3cos(30)Substitution=2
Note that we were only able to use L’Hôpital’s rule because the limit limx0ddx[7xsin(x)]ddx[x2+sin(3x)] actually exists.
Problem 1.1
limx0ex12x=?
Choose 1 answer:

Want to try more problems like this? Check out this exercise.

Using L'Hôpital's rule to find limits of exponents

Let's find, for example, limx0(1+2x)1sin(x). Substituting x=0 into the expression results in the indeterminate form 1.
To make the expression easier to analyze, let's take its natural log (this is a common trick when dealing with composite exponential functions). In other words, letting y=(1+2x)1sin(x), we will find limx0ln(y). Once we find it, we will be able to find limx0y.
ln(y)=ln(1+2x)sin(x)
Substituting x=0 into ln(1+2x)sin(x) results in the indeterminate form 00, so now it's L’Hôpital’s rule's turn to help us with our quest!
=limx0ln(y)=limx0ln(1+2x)sin(x)=limx0ddx[ln(1+2x)]ddx[sin(x)]L’Hopital’s rule=limx0(21+2x)cos(x)=(21)1Substitution=2
We found that limx0ln(y)=2, which means limx0y=e2.
Problem 2.1
limx0[cos(2πx)]1x=?
Choose 1 answer:

Want to try more problems like this? Check out this exercise.

Want to join the conversation?

  • starky ultimate style avatar for user ∆
    Why is 1^infinity an indeterminate form?
    (4 votes)
    Default Khan Academy avatar avatar for user
  • male robot hal style avatar for user Yash
    In the article's example for using L'Hopital's rule for finding limits of exponents, they get (1+2(0))^1/sin(0) = 1^infinity (direct substitution). But won't 1/sin(0) be undefined, thus resulting in 1^undefined = undefined?
    (4 votes)
    Default Khan Academy avatar avatar for user
  • duskpin ultimate style avatar for user khan academy
    In the explanation to problem 1.2, the derivative of the top equation is shown as

    d/dx​[xcos(πx)] = cos(xπ) - πxsin(xπ)
    .

    Where does the π in - πxsin... come from?
    (1 vote)
    Default Khan Academy avatar avatar for user
  • duskpin tree style avatar for user Fahimuzzaman
    what is the derivative of e^1/2 or e^0.5
    (1 vote)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user 470050
    i watched the video.
    (1 vote)
    Default Khan Academy avatar avatar for user
  • mr pants teal style avatar for user adt
    in the exercises, I was confused

    how: ln(y) =(x-1)ln(x-1)
    became: ln(y)=( ln(x-1) ) / (x-1)^-1

    could someone help?
    the question was to find the limit as x approaches 1 from the positive side for (x-1)^(x-1)
    (1 vote)
    Default Khan Academy avatar avatar for user
    • sneak peak green style avatar for user Aeges97
      (x-1) is the same as 1/(x-1)^-1. Putting it in that form makes it useful for checking L'Hopital's Rule because we don't care about the overall function/quotient to start with, just the individual functions themselves.

      The limit of (x-1)^-1 = 1/(x-1) as x approaches 1 from the positive direction is infinity, which is readily apparent if you graph it on Desmos or some such. Going through L'Hopital's rule you'll eventually get the limit of Ln(y) = 0, so for that to be true the limit of y, and thus the limit we want, must be 1. Hope that helps.
      (1 vote)
  • piceratops ultimate style avatar for user hummusw
    Is there a printable version of this page?
    (1 vote)
    Default Khan Academy avatar avatar for user
  • male robot hal style avatar for user Osmis
    I had a problem (1-4/x)^x . My question was when they took (4/x^2)/((1-4/x)(-1/x^2)) and got (4x^2)/(1-4/x)(-x^-2).
    (1 vote)
    Default Khan Academy avatar avatar for user
  • male robot hal style avatar for user Vincent Pace
    When using L'Hôpital's rule to find limits of exponents, there's a step that sets, for example, lim x->∞ ln(y) equal to ln (lim x->∞ y). Which logarithm or limit property allows this?
    (1 vote)
    Default Khan Academy avatar avatar for user
    • leafers ultimate style avatar for user Paras Sharma
      Here we can use this property because here we are not applying the limit to whole ln(y(x)) operator we have our variable x in the y(x) , So here we just wanna find the limiting value of y(x)
      It doesn't violate our previous method that we use we just plug the value and try to come up w/ a more subtle and concrete way of understanding this.
      (1 vote)
  • aqualine ultimate style avatar for user John He
    What about lim x→0 cot(x)/In(x)?If you apply L'Hôpital's rule,try to differentiate this,you will get into great trouble!

    ​​
    (0 votes)
    Default Khan Academy avatar avatar for user
    • leaf green style avatar for user kubleeka
      Direct substitution gives ∞/∞, so taking the derivatives of according to l'Hôpital yields
      -csc²(x)/(1/x). This rearranges into -x/sin²(x).
      Direct substitution now yields 0/0, so we can apply l'Hôpital's Rule again. Differentiate to get -1/(2sin(x)cos(x))

      Now, finally, direct substitution yields -1/0, which indicates that the limit does not exist.
      (2 votes)