L’Hôpital’s Rule

A hand pointing at audio waveforms in editing software on a studio monitor.
Photo by cottonbro studio on Pexels.

When we divide one changing quantity by another, we’re comparing their sizes. If both approach zero, the quotient depends on how quickly each one shrinks; if both grow without bound, it depends on how their growth compares. Does one eventually become much larger than the other, or do they stay in roughly the same proportion?

Near a point where both functions are zero, comparing their tangent lines can help us understand how their outputs compare. The slopes describe how quickly each function changes near that point. L’Hôpital’s Rule builds on this idea, connecting a quotient’s limit with the relative rates of change of its two parts.

By the end of this lesson, you should be able to:

  • Determine when L’Hôpital’s Rule applies and use it to evaluate limits, including repeated applications.
  • Compare the growth rates of two functions by evaluating the limit of their quotient.
  • Rewrite indeterminate products, differences, and powers so their limits can be evaluated.

Consider the function

\[R(x)=\frac{\sin x}{x}.\]

This quotient is often called the sinc function. It appears in digital signal processing, where shifted and scaled copies of its curve help reconstruct a continuous waveform from a sequence of measurements, or samples. This gives an ideal mathematical way to recover a sound wave from its samples when all its frequencies are below half the sampling rate.

Here we’re using radians, as we did when studying sine in Chapter \( 4 \). As \( x \) approaches \( 0 \), both the numerator and denominator approach \( 0 \). We’ve seen that this leaves a question to settle: how do their sizes compare as they approach zero together?

Start with the graph of the quotient. Follow the curve toward \( x=0 \) from each side; you can use the zoom controls to look more closely near the missing point.

The curve shows the quotient for nonzero inputs. The open circle marks the missing point.

From the graph, the limit appears to be . We could make the function continuous at \( 0 \) by assigning \( R(0)= \).

The graph suggests that \( \sin x \) and \( x \) are nearly equal when \( x \) is close to zero. To understand why, let’s look at the numerator and denominator separately. The denominator already describes the line \( y=x \); what line would approximate the numerator near the origin?

Let \( f(x)=\sin x \) and \( g(x)=x \). The numerator’s derivative is \( f'(x)= \), so its slope at \( x=0 \) is . Since the sine curve passes through \( (0,0) \), its tangent line there has equation \( y= \).

The tangent line is \( y=x \), exactly the line in our denominator. Recall that when we defined sine in Chapter \( 4 \), its starting conditions included a value of \( 0 \) and a slope of \( 1 \). We’re using that known slope to understand this quotient.

In the next graph, blue shows \( y=\sin x \) and red shows \( y=x \). Zoom in around the origin and follow how closely the sine curve runs alongside the line.

Blue: \( y=\sin x \). Red: \( y=x \), the tangent line to sine at \( x=0 \).

Using this tangent-line approximation for the numerator gives

\[\frac{\sin x}{x}\approx\frac{x}{x}\qquad\text{for small nonzero }x.\]

The quotient on the right is , agreeing with our graphical prediction. The tangent slope tells us that near the origin, sine changes at approximately .

What happens when the two rates are different? Consider

\[\limit{x\to0}\frac{\sin(3x)}{2x}.\]

Both parts still approach \( 0 \), but the numerator’s graph is now compressed horizontally. Using the Chain Rule, its derivative is \( 3\cos(3x) \), so its slope at the origin is . The tangent line passes through \( (0,0) \) and has equation \( y= \). Meanwhile, the denominator describes the line \( y=2x \), with slope .

Compare the three graphs below. Near the origin, the blue curve \( y=\sin(3x) \) follows its green tangent line \( y=3x \). The red line \( y=2x \) gives the denominator. Zoom in to see how comparing the blue curve with the red line becomes much like comparing the green and red lines.

Blue: the numerator \( \sin(3x) \). Green: its tangent approximation \( 3x \). Red: the denominator \( 2x \).

The tangent approximation suggests

\[\frac{\sin(3x)}{2x}\approx\frac{3x}{2x}\qquad\text{for small nonzero }x.\]

After canceling the nonzero \( x \), the quotient on the right is . The numbers that remain are .

Thus our tangent-line comparison predicts a limit of \( \displaystyle \frac32 \). Near the origin, the numerator changes at roughly \( \displaystyle \frac32 \) times the rate of the denominator, and we expect the ratio of their outputs to approach that same number.

We’ve used derivatives to make a prediction about a limit: approximate the numerator with its tangent line, then compare it with the denominator. L’Hôpital’s Rule tells us when comparing derivatives establishes the limit of the original quotient. In Learn, we’ll develop that connection and see how to use it for other limits.

L’Hôpital’s Rule

Suppose we want to find the limit of \( \displaystyle \frac{f(x)}{g(x)} \), and we find that both \( f(x) \) and \( g(x) \) approach zero. We still need to know how their outputs compare as they approach zero.

For example, suppose we want to find \( \displaystyle \limit{x\to 1}\frac{x^2-1}{x^3-1} \). Both \( f(x)=x^2-1 \) and \( g(x)=x^3-1 \) pass through \( (1,0) \), as you can see in the figures below. Notice that as we zoom in closer to \( (1,0) \), both curves start to resemble their tangent lines.

The curves meet at \( (1,0) \). Blue is \( f(x)=x^2-1 \); red is \( g(x)=x^3-1 \).
Zoomed in near \( (1,0) \), the same curves look nearly straight, with different slopes.

At \( x=1 \), we have \( f'(1)=2 \) and \( g'(1)=3 \), so the tangent lines are \( y=2(x-1) \) and \( y=3(x-1) \). For inputs close to \( 1 \), these lines give the approximations

\[\frac{f(x)}{g(x)}\approx\frac{2(x-1)}{3(x-1)}=\frac23\qquad(x\ne1).\]

When we cancel the shared factor \( x-1 \), we’re left with the ratio of the slopes, which suggests that the original quotient approaches \( \displaystyle \frac23 \). L’Hôpital’s Rule (pronounced “loh-pee-TAHL”) tells us when we can find a quotient’s limit by comparing the derivatives in this way.

We can use the same rule for one-sided limits and for limits as \( x\to+\infty \) or \( x\to-\infty \). For a one-sided limit, we check the conditions at all sufficiently close inputs on that side of \( a \); for a limit at infinity, we check them at all inputs sufficiently far to the right for \( +\infty \), or sufficiently far to the left for \( -\infty \). In every case, we use the same approach for both functions and for the ratio of their derivatives.

Repeated applications

In the logarithm example, differentiating the two parts gave us a quotient we could evaluate by substitution. What if \( f'(x) \) and \( g'(x) \) still both approach zero? We can try differentiating those two functions as well, after checking the theorem’s conditions for them just as we did for \( f \) and \( g \). Let’s see how that works when one round of differentiation leaves us with another zero-over-zero limit.

We differentiated twice because the first resulting quotient still had the zero-over-zero form. That gives us a way to decide when to stop: after each application, check what the new numerator and denominator approach. In the next example, we can substitute after differentiating just once.

Relative growth

L’Hôpital’s Rule also helps us compare functions that grow as \( x\to+\infty \). Their quotient tells us how large the numerator is as a fraction of the denominator. When that quotient approaches zero, the numerator makes up an ever smaller fraction of the denominator, even as both functions continue growing.

After reaching its highest value, the ratio decreases toward zero. Farther to the right, the logarithm makes up a smaller fraction of the square root.

We can extend this reasoning to higher powers. Fix a positive integer \( n \) and a positive constant \( k \), and compare \( x^n \) with \( \ee^{kx} \). Each time we differentiate the numerator, its degree drops by one; differentiating the denominator multiplies it by \( k \). Eventually the numerator becomes constant, and dividing that constant by the growing exponential gives a limit of zero. At every earlier step, both parts approach \( +\infty \) and the denominator’s derivative stays positive. Repeated applications of L’Hôpital’s Rule therefore give

\[\limit{x\to+\infty}\frac{x^n}{\ee^{kx}}=0.\]

However large a fixed positive integer power we choose, its value eventually becomes an arbitrarily small fraction of the exponential.

Products and differences

We can also use quotient techniques to evaluate limits of products and differences. When one factor approaches zero and the other approaches \( +\infty \) or \( -\infty \), we have the indeterminate form \( 0\cdot\infty \). The product’s behavior depends on how quickly the two factors change relative to each other. Rewriting the product as a quotient gives us a way to compare those changes using L’Hôpital’s Rule.

When we subtract two functions that both approach \( +\infty \), we have the indeterminate form \( \infty-\infty \). Here we’re asking how far apart the two growing outputs are, so we examine how that gap changes as we take the limit. Algebra can help us express the difference as a quotient that is easier to work with.

Variable powers

When both the base and exponent change, we encounter three indeterminate power forms: \( 0^0 \), \( 1^\infty \), and \( \infty^0 \). These describe a base and exponent both approaching zero, a base approaching \( 1 \) with an exponent growing in magnitude, or a base approaching \( +\infty \) with an exponent approaching zero. In each case, the power’s limit depends on how the base and exponent change together.

For a positive base, taking a logarithm brings the exponent down as a multiplying factor. We can then use the product and quotient techniques we just studied to find the logarithm’s limit. Finally, we use the exponential function to return to the original power.

This limit is also a common way to define \( \ee \), through compound interest. Start with a balance of \( 1 \) and a nominal annual interest rate of \( 100\% \). If interest is compounded over \( n \) equal periods in one year, each period multiplies the balance by \( \displaystyle 1+\frac1n \), giving a final balance of \( \displaystyle \left(1+\frac1n\right)^n \). As the number of compounding periods increases, that balance approaches \( \ee \).

The compounding model uses positive integers \( n \); our calculation allows all positive real inputs \( x \). Starting from the exponential function we defined in Chapter \( 4 \), we’ve now connected its value \( \ee \) to this compound-interest limit.

  1. Evaluate each limit using L’Hôpital’s Rule. Check the form before differentiating.

    1. \( \displaystyle \limit{x\to0}\frac{\sin(2x)}{5x}= \).

      Solution

      Both parts approach \( 0 \). They are differentiable, and the denominator’s derivative is the nonzero constant \( 5 \), so

      \[\begin{aligned}\limit{x\to0}\frac{\sin(2x)}{5x}&=\limit{x\to0}\frac{2\cos(2x)}5\\&=\frac25.\end{aligned}\]

    2. \( \displaystyle \limit{x\to0}\frac{\ee^{3x}-1}{x}= \).

      Solution

      The numerator and denominator both approach \( 0 \), and the denominator’s derivative is \( 1 \). Differentiating the two parts gives

      \[\begin{aligned}\limit{x\to0}\frac{\ee^{3x}-1}{x}&=\limit{x\to0}3\ee^{3x}\\&=3.\end{aligned}\]

    3. \( \displaystyle \limit{x\to1}\frac{\ln x}{x-1}= \).

      Solution

      Here \( \ln x \) and \( x-1 \) both approach \( 0 \). They are differentiable near \( 1 \), and the denominator’s derivative is \( 1 \), so

      \[\begin{aligned}\limit{x\to1}\frac{\ln x}{x-1}&=\limit{x\to1}\frac1x\\&=1.\end{aligned}\]

  2. For each limit, decide whether the original quotient has a form permitted by L’Hôpital’s Rule. Evaluate it, including separate one-sided conclusions when needed.

    1. \( \displaystyle \limit{x\to0}\frac{2+x}{3+x}= \). Is a derivative comparison justified?

      Solution

      The denominator approaches \( 3 \), so continuity lets us substitute directly:

      \[\limit{x\to0}\frac{2+x}{3+x}=\frac23.\]

      The numerator approaches \( 2 \) and the denominator approaches \( 3 \), so this quotient has neither indeterminate form required by L’Hôpital’s Rule.

    2. \( \displaystyle \limit{x\to0}\frac{1+x}{x} \). Explain what happens on the two sides.

      Solution

      The numerator approaches \( 1 \) and stays positive near zero. Dividing by a small negative input gives a negative quotient of large magnitude; dividing by a small positive input gives a positive quotient of large magnitude. Hence

      \[\begin{aligned}\limit{x\to0^-}\frac{1+x}{x}&=-\infty,\\\limit{x\to0^+}\frac{1+x}{x}&=+\infty.\end{aligned}\]

      The two sides disagree, so the two-sided limit does not exist. Since the numerator approaches \( 1 \), this is not one of the indeterminate forms for L’Hôpital’s Rule.

    3. \( \displaystyle \limit{x\to0}\frac{\sin(3x)}x= \). Give two methods.

      Solution

      Both parts approach \( 0 \). They are differentiable near zero, and the denominator’s derivative is \( 1 \), so L’Hôpital’s Rule gives

      \[\begin{aligned}\limit{x\to0}\frac{\sin(3x)}x&=\limit{x\to0}\frac{3\cos(3x)}1\\&=3.\end{aligned}\]

      We can also use the sinc limit. Multiplying and dividing by \( 3 \) puts the sine’s input in the denominator:

      \[\begin{aligned}\limit{x\to0}\frac{\sin(3x)}x&=3\limit{x\to0}\frac{\sin(3x)}{3x}\\&=3\cdot1\\&=3.\end{aligned}\]

      As \( x\to0 \), the input \( 3x \) approaches zero as well, so the inner quotient approaches \( 1 \).

  3. Evaluate \( \displaystyle \limit{x\to0}\frac{\ln(${base})}{\ee^{${bx}}-1} \). Explain why the rule applies on both sides sufficiently near zero.

    The limit is .

    Solution

    As \( x\to0 \), the logarithm’s argument approaches \( 1 \), so it is positive on both sides near zero. The numerator and denominator both approach \( 0 \). They are differentiable nearby, and the denominator’s derivative \( ${b_prefix}\ee^{${bx}} \) is positive. Differentiating the two parts gives

    \[\begin{aligned}\limit{x\to0}\frac{\ln(${base})}{\ee^{${bx}}-1}&=\limit{x\to0}\frac{\ \dfrac{${a}}{${base}}\ }{\ ${b_prefix}\ee^{${bx}}\ }\\&=\limit{x\to0}\frac{${a}}{${b_prefix}(${base})\ee^{${bx}}}\\&=${answer}.\end{aligned}\]

    In the last quotient, both \( ${base} \) and \( \ee^{${bx}} \) approach \( 1 \), leaving the ratio of the two coefficients.

  4. Evaluate the following limits. Identify the new form after the first derivative comparison.

    1. \( \displaystyle \limit{x\to0}\frac{\ee^{${ax}}-(${linear})}{x^2}= \).

      Solution

      As \( x\to0 \), the exponential and the expression being subtracted both approach \( 1 \), so the numerator approaches zero along with \( x^2 \). The functions are differentiable, and the denominator’s derivative \( 2x \) is nonzero at nearby nonzero inputs. Thus

      \[\begin{aligned}\limit{x\to0}\frac{\ee^{${ax}}-(${linear})}{x^2}&=\limit{x\to0}\frac{${a_prefix}\ee^{${ax}}-${a}}{2x}\\&=\limit{x\to0}\frac{${a_prefix}(\ee^{${ax}}-1)}{2x}.\end{aligned}\]

      The numerator and denominator still both approach \( 0 \). Differentiating again gives a denominator of \( 2 \), so we can finish by substitution:

      \[\begin{aligned}\limit{x\to0}\frac{${a_prefix}(\ee^{${ax}}-1)}{2x}&=\limit{x\to0}\frac{${square_prefix}\ee^{${ax}}}{2}\\&=${answer}.\end{aligned}\]

      The final limit establishes the preceding one, and hence the limit of the original quotient.

    2. \( \displaystyle \limit{x\to0}\frac{1-\cos(${ax})}{x^2}= \).

      Solution

      Since \( \cos(${ax})\to1 \), both parts of the original quotient approach zero. The denominator’s derivative is \( 2x \), which is nonzero for the nearby inputs used in the limit. Applying the Chain Rule in the numerator gives

      \[\limit{x\to0}\frac{1-\cos(${ax})}{x^2}=\limit{x\to0}\frac{${a_prefix}\sin(${ax})}{2x}.\]

      This is another zero-over-zero limit. The next denominator derivative is \( 2 \), so another application gives

      \[\begin{aligned}\limit{x\to0}\frac{${a_prefix}\sin(${ax})}{2x}&=\limit{x\to0}\frac{${square_prefix}\cos(${ax})}{2}\\&=${answer}.\end{aligned}\]

      Both differentiations are valid near zero, and the last limit gives the value of the original limit.

  5. Find \( \displaystyle \limit{x\to+\infty}\frac{${power}}{\ee^{${kx}}} \) and interpret what it says about the two growing functions.

    The limit is .

    Solution

    Both \( ${power} \) and \( \ee^{${kx}} \) approach \( +\infty \). Each time we differentiate, the numerator’s degree drops by one, while the exponential keeps its form. On positive inputs, the denominator and each of its derivatives are positive. We apply L’Hôpital’s Rule until the numerator becomes constant:

    \[\begin{aligned}\limit{x\to+\infty}\frac{${power}}{\ee^{${kx}}}${row1}${row2}${row3}\\&=0.\end{aligned}\]

    At each stage before the constant numerator, both parts still approach \( +\infty \). The final quotient approaches zero, so we can work backward through the applications to obtain the original limit. Thus \( ${power} \) becomes arbitrarily small as a fraction of \( \ee^{${kx}} \), even while both functions grow.

    The ratio reaches a maximum, then decreases toward zero. The numerator itself continues growing.
  6. Evaluate \( \displaystyle \limit{x\to+\infty}\frac{\ee^x}{x} \). What does the result tell us about the relative growth of the two functions?

    Solution

    Both functions approach \( +\infty \) and are differentiable, with denominator derivative \( 1 \). L’Hôpital’s Rule gives

    \[\begin{aligned}\limit{x\to+\infty}\frac{\ee^x}{x}&=\limit{x\to+\infty}\ee^x\\&=+\infty.\end{aligned}\]

    The exponential \( \ee^x \) eventually exceeds any fixed positive multiple of \( x \).

  7. As \( x\to0^+ \), find the limit of \( ${power}\ln x \). Rewrite it as a quotient before making a derivative comparison.

    The limit is .

    Solution

    For positive \( x \), \( ${power} \) approaches zero while \( \ln x\to-\infty \). Rewrite multiplication by \( ${power} \) as division by \( x^{-${p}} \). The resulting numerator approaches \( -\infty \) and denominator approaches \( +\infty \), and the denominator’s derivative \( ${den_derivative} \) is nonzero. Thus

    \[\begin{aligned}\limit{x\to0^+}${power}\ln x&=\limit{x\to0^+}\frac{\ln x}{x^{-${p}}}\\&=\limit{x\to0^+}\frac{x^{-1}}{-${p_prefix}x^{-${p+1}}}\\&=\limit{x\to0^+}\left(${factor}x^{-1-(-${p+1})}\right)\\&=\limit{x\to0^+}\left(${quotient}\right)\\&=0.\end{aligned}\]

    The exponent after subtraction is \( ${p} \), which is positive. The power of \( x \) therefore approaches zero. Since the original logarithm is negative for \( 0<x<1 \), the product approaches zero through negative values.

  8. Evaluate \( \displaystyle \limit{x\to+\infty}(\sqrt{${radicand}}-x) \) by a method of your choice.

    The limit is .

    Solution

    For sufficiently large positive \( x \), the radicand is positive and both terms approach \( +\infty \). Multiply by the conjugate to combine the difference into a quotient. Since \( x>0 \), we can then take \( x \) out of the square root and divide both parts by it:

    \[\begin{aligned}\limit{x\to+\infty}(\sqrt{${radicand}}-x)&=\limit{x\to+\infty}\frac{${linear}}{\sqrt{${radicand}}+x}\\&=\limit{x\to+\infty}\frac{${linear}}{x\sqrt{${scaled}}+x}\\&=\limit{x\to+\infty}\frac{${a}}{\sqrt{${scaled}}+1}\\&=${answer}.\end{aligned}\]

    The expression inside the square root approaches \( 1 \), so the denominator approaches \( 2 \). The difference therefore approaches \( ${answer} \).

  9. Evaluate \( \displaystyle \limit{x\to0^+}\left(\frac1x-\frac1{\ee^x-1}\right) \). Begin by combining the fractions.

    Solution

    Both reciprocals approach \( +\infty \), so we have the form \( \infty-\infty \). A common denominator gives

    \[\begin{aligned}&\limit{x\to0^+}\left(\frac1x-\frac1{\ee^x-1}\right)\\&=\limit{x\to0^+}\frac{\ee^x-1-x}{x(\ee^x-1)}.\end{aligned}\]

    Both parts now approach \( 0 \). They are differentiable, and the denominator’s derivative \( \ee^x-1+x\ee^x \) is positive for \( x>0 \). Applying L’Hôpital’s Rule gives

    \[\begin{aligned}&\limit{x\to0^+}\frac{\ee^x-1-x}{x(\ee^x-1)}\\&=\limit{x\to0^+}\frac{\ee^x-1}{\ee^x-1+x\ee^x}.\end{aligned}\]

    This is still zero over zero. Differentiating the denominator again gives \( 2\ee^x+x\ee^x \), which stays positive, so a second application gives

    \[\begin{aligned}&\limit{x\to0^+}\frac{\ee^x-1}{\ee^x-1+x\ee^x}\\&=\limit{x\to0^+}\frac{\ee^x}{2\ee^x+x\ee^x}\\&=\limit{x\to0^+}\frac1{2+x}\\&=\frac12.\end{aligned}\]

  10. Evaluate \( \displaystyle \limit{x\to0}(${base})^{${exponent}} \). Give an exact answer and explain how you return from the logarithm to the original power.

    Solution

    The base approaches \( 1 \) and stays positive on both sides near zero. Set \( \displaystyle y=(${base})^{${exponent}} \) and take its logarithm to bring down the exponent:

    \[\ln y=\frac{${b_prefix}\ln(${base})}{x}.\]

    Both parts approach \( 0 \). They are differentiable nearby, and the denominator’s derivative is \( 1 \), so

    \[\begin{aligned}\limit{x\to0}\ln y&=\limit{x\to0}\frac{${b_prefix}\ln(${base})}{x}\\&=\limit{x\to0}\frac{\ \dfrac{${a*b}}{${base}}\ }{\ 1\ }\\&=\limit{x\to0}\frac{${a*b}}{${base}}\\&=${log_limit}.\end{aligned}\]

    We return to the power using \( y=\ee^{\ln y} \). Continuity of the exponential function gives

    \[\limit{x\to0}(${base})^{${exponent}}=${exp_answer}.\]

  11. Identify the indeterminate form in each limit, then evaluate it by taking a logarithm.

    1. \( \displaystyle \limit{x\to0^+}(2x)^x \).

      Solution

      The base and exponent both approach \( 0 \), giving the form \( 0^0 \). For \( x>0 \), let \( y=(2x)^x \). Then

      \[\ln y=x\ln(2x)=\frac{\ln(2x)}{x^{-1}}.\]

      The numerator approaches \( -\infty \) and the denominator approaches \( +\infty \). The Chain Rule gives the numerator’s derivative \( \displaystyle \frac2{2x}=\frac1x \); the denominator’s derivative is the nonzero \( -x^{-2} \). Thus

      \[\begin{aligned}\limit{x\to0^+}\ln y&=\limit{x\to0^+}\frac{\ln(2x)}{x^{-1}}\\&=\limit{x\to0^+}\frac{x^{-1}}{-x^{-2}}\\&=\limit{x\to0^+}(-x)\\&=0.\end{aligned}\]

      Using \( y=\ee^{\ln y} \) and continuity of the exponential function gives

      \[\limit{x\to0^+}(2x)^x=\ee^0=1.\]

    2. \( \displaystyle \limit{x\to+\infty}x^{\frac2{\ln x}} \).

      Solution

      The base approaches \( +\infty \) and the exponent approaches \( 0 \), giving the form \( \infty^0 \). For \( x>1 \), let \( \displaystyle y=x^{\frac2{\ln x}} \). Its logarithm simplifies directly:

      \[\ln y=\frac2{\ln x}\ln x=2.\]

      Therefore \( \displaystyle \limit{x\to+\infty}\ln y=2 \), and continuity of the exponential function gives

      \[\limit{x\to+\infty}x^{\frac2{\ln x}}=\ee^2.\]

  12. Evaluate each limit using an efficient method, and explain your choice.

    1. \( \displaystyle \limit{x\to2}\frac{x^2-4}{x-2}= \).

      Solution

      The numerator factors as \( (x-2)(x+2) \). For the nearby inputs in our limit, \( x\ne2 \), so we can cancel \( x-2 \):

      \[\begin{aligned}\limit{x\to2}\frac{x^2-4}{x-2}&=\limit{x\to2}\frac{(x-2)(x+2)}{x-2}\\&=\limit{x\to2}(x+2)\\&=4.\end{aligned}\]

      Factoring gives a continuous expression whose value we can substitute directly.

    2. \( \displaystyle \limit{x\to+\infty}\frac{\ln x}x= \).

      Solution

      Both parts approach \( +\infty \). They are differentiable for positive inputs, and the denominator’s derivative is \( 1 \). L’Hôpital’s Rule reduces the quotient to a reciprocal:

      \[\begin{aligned}\limit{x\to+\infty}\frac{\ln x}{x}&=\limit{x\to+\infty}\frac{\ \dfrac1x\ }{\ 1\ }\\&=\limit{x\to+\infty}\frac1x\\&=0.\end{aligned}\]

    3. \( \displaystyle \limit{x\to0^+}x^x= \). Compare this power limit with the earlier power whose base approaches 1.

      Solution

      For positive inputs, set \( y=x^x \). Taking a logarithm gives \( \ln y=x\ln x \), so we can use the product limit established in Learn:

      \[\begin{aligned}\limit{x\to0^+}\ln y&=\limit{x\to0^+}x\ln x\\&=0.\end{aligned}\]

      Since \( y=\ee^{\ln y} \) and the exponential is continuous,

      \[\limit{x\to0^+}x^x=\ee^0=1.\]

      Here the base and exponent both approach zero. In the earlier power limit, the base approached \( 1 \) while the exponent grew in magnitude. Taking logarithms let us turn each power into a product or quotient and examine how its two parts change together.

  13. To find \( \displaystyle \limit{x\to0}\frac{\ln(1+x)}x \), a student applies the Quotient Rule to \( \displaystyle \frac{\ln(1+x)}x \), then tries to take the resulting derivative's limit to find the original limit. Another student correctly reaches \( \displaystyle \frac1{1+x} \) by L’Hôpital’s Rule, but differentiates its numerator and denominator again to report 0. Explain both errors and give the original limit.

    Solution

    The first student calculated how the whole quotient changes. L’Hôpital’s Rule instead asks us to differentiate the numerator and denominator separately and divide those derivatives. Since \( \ln(1+x) \) and \( x \) both approach zero, are differentiable nearby, and the denominator’s derivative is \( 1 \), the correct calculation is

    \[\begin{aligned}\limit{x\to0}\frac{\ln(1+x)}x&=\limit{x\to0}\frac{\ \dfrac1{1+x}\ }{\ 1\ }\\&=\limit{x\to0}\frac1{1+x}\\&=1.\end{aligned}\]

    The second student reached the correct quotient after one application. Its numerator and denominator both approach \( 1 \), so continuity finishes the calculation. Differentiating again would use L’Hôpital’s Rule on a quotient outside its allowed forms.

  14. Consider \( \displaystyle \limit{x\to+\infty}\frac{x}{\sqrt{x^2+1}} \). Follow the steps below to compare differentiation with an algebraic approach.

    1. Check the indeterminate form and differentiate the numerator and denominator separately. Simplify the resulting quotient.

      Solution

      Both parts approach \( +\infty \). For \( x>0 \), they are differentiable and the denominator’s derivative is positive. Differentiating the two parts gives the quotient

      \[\begin{aligned}\frac{\ 1\ }{\ \dfrac{x}{\sqrt{x^2+1}}\ }&=1\cdot\frac{\sqrt{x^2+1}}x\\&=\frac{\sqrt{x^2+1}}x.\end{aligned}\]

    2. Check the form of this new quotient, then differentiate its numerator and denominator separately. What do you notice?

      Solution

      The new numerator and denominator both approach \( +\infty \). Differentiating them gives

      \[\begin{aligned}\frac{\ \dfrac{x}{\sqrt{x^2+1}}\ }{\ 1\ }&=\frac{x}{\sqrt{x^2+1}}.\end{aligned}\]

      We are back at the original quotient. Repeating these differentiations alternates between the same two expressions, so we return to the original limit and try algebra.

    3. Return to the original quotient and divide its numerator and denominator by \( x \). Use the radical techniques from Section \( 5.2 \) to find the limit.

      Solution

      For positive \( x \), we have \( \sqrt{x^2}=|x|=x \). Factoring \( x^2 \) from inside the square root therefore lets us cancel \( x \):

      \[\begin{aligned}\limit{x\to+\infty}\frac{x}{\sqrt{x^2+1}}&=\limit{x\to+\infty}\frac{x}{x\sqrt{1+\frac1{x^2}}}\\&=\limit{x\to+\infty}\frac1{\sqrt{1+\frac1{x^2}}}\\&=1.\end{aligned}\]

      After rewriting, we can see that the denominator approaches \( 1 \). This gives the limit directly, whereas repeatedly differentiating the two parts kept returning us to the same expressions.