Using L'Hopitals rule

monet A

As a revision exercise we have been given.

find

$$\lim_{\substack{x\rightarrow infty} } (x+e^x) ^ (2/x)$$

****Darn It it wont work, the above is (x+e^x) all raised to (2/x)

our lecturer has given us a walkthrough the solution which is done by letting the function = y and taking logs of both sides, which gives a limit of infinity/infinity, so we can use L'hopitals rule to derive a limit for lny to infinity then invert it onto the index of e for the answer.

This all makes sense to me, I just have one problem with the working.

the function for lny comes out to $$\frac {2ln(x+e^x)}{x}$$

and the derivative of this is given as $$\frac {2(1+e^x)/(x+e^x)}{1}$$

The numerator makes sense to me to be the derivative of 2ln(x+e^x) but I don't understand how the denominator becomes so simple. It looks to me like the solution just differentiates the top and then differentiates the bottom?
:uhh:

Last edited:
Related Introductory Physics Homework Help News on Phys.org

whozum

You got the derivative for the lny function wrong, use the quotient rule.

monet A

whozum said:
You got the derivative for the lny function wrong, use the quotient rule.

Yes, whozum that is the point of my post, if that derivative is wrong then the following solution given in my notes is wrong.

So I am very confused.

The derivative given by the quotient rule is quite messy and doesn't simplify the search for a limit like the derivative given in my notes has, I wondered if perhaps the said derivative using the quotient rule simplifies to the one given in my notes, but I struggle sometimes with log simplifications..

Here is the derivative I got using the product rule which I though would be simpler than the quotient rule.

ln $$y' = \frac {-2ln(x+e^x)} {x^2} + \frac {2(1+e^x)} {x}$$

Last edited:

whozum

Theres only one derivative to that function, and its obtained by the quotient rule.

$$\frac {2ln(x+e^x)}{x}$$

$$\frac{d}{dx} \ above \ = \frac{(\frac{2x}{x+e^x})(1+e^x) - 2ln(x+e^x)}{x^2}$$

Show me what you have in your notes.

Last edited:

monet A

Just two things whozum.

1. I don't think you understood my question, I am trying to tell you that this:

$$\frac {2(1+e^x)/(x+e^x)}{1}$$

is given to me by my lecturer as the solution. **It is not my solution. And I need to exhaust all the possibilites that it is right (including simplifictions that I hadn't thought of or a flaw in my understanding of the problem) before I write it off.

Secondly I do think that the derivative can be rightly obtained using the product rule. Unless I am wrong that.

$$\frac {2ln(x+e^x)}{x} = 2ln(x+e^x )* (1/x)$$

?

Hi again I just saw your edit asking for what is in my notes. Basically the notes tell me that after I derive,

$$\frac {2(1+e^x)/(x+e^x)}{1}$$

the limit is still infinity/infinity so I apply L'Hopitals a second time to get

$$2 \frac {(1+e^x)}{(1+e^x)}$$

Which gives a limit of lny to infinity of 2 and the limit of the original equation as e^2 but I hadn't really worked on that part yet.

The thing that is coming to mind is wondering wether my lecturer is showing me to use the Algebra of limits theorem and take the derivatives separately and their respective limits separately also by relying on that rule.

It seems to be possible but am not quite able to get my head around how it's done. Just to note, the actual question states: using any appropriate technique evaluate the limit, I take that to be a hint that you apply a few rules simultaneously to get the answer.

Last edited:

Curious3141

Homework Helper
Whozum, you are incorrect. The notes are right. The method proposed by the lecturer is to call the whole original expression y, and to define a new function z = lny, and to find the limit of z by LH. It's perfectly valid.

$$z = \ln y = \frac {2\ln(x+e^x)}{x}$$

The quotient rule doesn't apply here, only the chain rule. Because they're only finding the derivative of the numerator, which is $\frac{d}{dx}2\ln(x+e^x) = 2\frac{1 + e^x}{x + e^x}$. The derivative of the denominator is $\frac{d}{dx}x = 1$

We go through the steps :

$$\lim_{x \rightarrow \infty}z = \lim_{x \rightarrow \infty}2\frac{1 + e^x}{x + e^x}$$

Applying LH rule 2 more times in succession like so :

$$\lim_{x \rightarrow \infty}2\frac{1 + e^x}{x + e^x} = \lim_{x \rightarrow \infty}2\frac{e^x}{1 + e^x} = \lim_{x \rightarrow \infty}2\frac{e^x}{e^x} = 2$$

yields the limit of z as 2, which means the limit of the orig. expression is $e^2$.

Last edited:

Curious3141

Homework Helper
monet A said:
Just two things whozum.

1. I don't think you understood my question, I am trying to tell you that this:

$$\frac {2(1+e^x)/(x+e^x)}{1}$$

is given to me by my lecturer as the solution. **It is not my solution. And I need to exhaust all the possibilites that it is right (including simplifictions that I hadn't thought of or a flaw in my understanding of the problem) before I write it off.

Secondly I do think that the derivative can be rightly obtained using the product rule. Unless I am wrong that.

$$\frac {2ln(x+e^x)}{x} = 2ln(x+e^x )* (1/x)$$

?

Hi again I just saw your edit asking for what is in my notes. Basically the notes tell me that after I derive,

$$\frac {2(1+e^x)/(x+e^x)}{1}$$

the limit is still infinity/infinity so I apply L'Hopitals a second time to get

$$2 \frac {(1+e^x)}{(1+e^x)}$$

Which gives a limit of lny to infinity of 2 and the limit of the original equation as e^2 but I hadn't really worked on that part yet.

The thing that is coming to mind is wondering wether my lecturer is showing me to use the Algebra of limits theorem and take the derivatives separately and their respective limits separately also by relying on that rule.

It seems to be possible but am not quite able to get my head around how it's done. Just to note, the actual question states: using any appropriate technique evaluate the limit, I take that to be a hint that you apply a few rules simultaneously to get the answer.
Your application of LH rule the second time is incorrect, please see my working.

whozum

Curious3141 said:
Whozum, you are incorrect. The notes are right. The method proposed by the lecturer is to call the whole original expression y, and to define a new function z = lny, and to find the limit of z by LH. It's perfectly valid.

$$z = \ln y = \frac {2\ln(x+e^x)}{x}$$

The quotient rule doesn't apply here, only the chain rule. Because they're only finding the derivative of the numerator, which is $\frac{d}{dx}2\ln(x+e^x) = 2\frac{1 + e^x}{x + e^x}$. The derivative of the denominator is $\frac{d}{dx}x = 1$
This is what I was tryin to wrap my head around but I couldnt quite get to it. I actually thought of it while i was going potty, but you've already got it.

monet A

Curious3141 said:
$$z = \ln y = \frac {2\ln(x+e^x)}{x}$$

The quotient rule doesn't apply here, only the chain rule. Because they're only finding the derivative of the numerator,

Thankyou for validating my notes for me Curious, could you please explain this step in more detail?

monet A

Curious3141 said:
Your application of LH rule the second time is incorrect, please see my working.

I didn't get to that part yet, that is just what my notes gave as the next step.

VietDao29

Homework Helper
monet A, read your notes again thoroughly.
1. L' Hospitals rule:
$$\lim_{x \rightarrow \alpha} \frac{f(x)}{g(x)}$$
And you meet : $\frac{0}{0}$ Or $\frac{\infty}{\infty}$
g'(x) <> 0.
And you'll have : $$\lim_{x \rightarrow \alpha} \frac{f(x)}{g(x)} = \lim_{x \rightarrow \alpha} \frac{f'(x)}{g'(x)}$$
2. To type something like $x^{2x}$. Use {...}.
3. What Curious is doing is to find the limit of z as x tends to infinity.
Viet Dao,

Curious3141

Homework Helper
Actually, the easiest way (IMHO) to do this limit is with the binomial expansion and maybe a limited one time use of LH.

$$y = (x + e^x)^{\frac{2}{x}} = e^2(1 + xe^{-x})^{\frac{2}{x}}$$

By LH rule, the expression $$xe^{-x} = \frac{x}{e^x}$$ tends to the limit 0 as x grows without bound.

Since $xe^{-x}[/tex] is "small" as we tend to the limit, we're justified in using a first order approximation in the binomial expansion of y, like so : $$y$$ approximates $$e^2 [1 + (\frac{2}{x})(xe^{-x})] = e^2(1 + 2e^{-x})$$, the limit of which is obviously [itex]e^2$

EDIT : The Tex came out wrong because I couldn't remember the code for approx equal. Yeah, I'm dumb. Last edited:

Curious3141

Homework Helper
monet A said:
Thankyou for validating my notes for me Curious, could you please explain this step in more detail?
Remember that $\ln a^b = b\ln a$ ? This is just the same thing, "bring the power down" and see whether you can get the same expresssion.

monet A

VietDao29 said:
monet A, read your notes again thoroughly.
1. L' Hospitals rule:
$$\lim_{x \rightarrow \alpha} \frac{f(x)}{g(x)}$$
And you meet : $\frac{0}{0}$ Or $\frac{\infty}{\infty}$
g'(x) <> 0.
And you'll have : $$\lim_{x \rightarrow \alpha} \frac{f(x)}{g(x)} = \lim_{x \rightarrow \alpha} \frac{f'(x)}{g'(x)}$$
Meaning that the two functions can be differentiated separately and that is entirely valid? I think I understand that now, my problem was probably that in my head I was seeing ...

$$\frac{f'(x)}{g'(x)}$$

as

$$(\frac{f(x)}{g(x)} )'$$

**I have written and rewritten this and I swear my latex does not have x^2x in it anywhere. My code says. I saw f'(x)/g'(x) in my head as (f(x)/g(x))' what is going on with this??? Ahh refreshed the page and the correction is there at last VietDao29 said:
2. To type something like $x^{2x}$. Use {...}.
Thankyou

VietDao29 said:
3. What Curious is doing is to find the limit of z as x tends to infinity.
Viet Dao,
I knew that. You're the third person to miss that I understood that part and thik that it was my problem.

:rofl:

Last edited:

monet A

Curious3141 said:
Remember that $\ln a^b = b\ln a$ ? This is just the same thing, "bring the power down" and see whether you can get the same expresssion.

Wrong step curious.

I mean the step we all keep discussing but noone seems to understand that I dont get it.

Why are we differentiating the numerator and the denominator separately? was my question, but I think I have finally understood the answer in my above post to Vietdao, can you check that and tell me if I am right.

Oh, and we are not using binomial expansions in this course.

Curious3141

Homework Helper
monet A said:
Wrong step curious.

I mean the step we all keep discussing but noone seems to understand that I dont get it.

Why are we differentiating the numerator and the denominator separately? was my question, but I think I have finally understood the answer in my above post to Vietdao, can you check that and tell me if I am right.

Oh, and we are not using binomial expansions in this course.
That's basically LH rule. VietDao has already explained it, and you can just do a search on google for the formal statement of the rule and the conditions that the numerator and denominator functions must satisfy before the rule is valid.

Basically, just differentiate the top, differentiate the bottom, and see whether the result makes any more sense. That's all there is to LH. I would've thought you'd have covered binomial expansions before LH. In any case, as the saying goes, there are many ways to skin a cat. The essence of good math is finding the best way. VietDao29

Homework Helper
Hmm, you should refer your book for L'Hospital rule. I don't think you have understand it correctly. In L'Hospital rule, you want to fnd the differentiation of the numerator and denominator separately, while in quotient rule, you are differentiate the whole number.
What I mean is:
$$\frac{f'(x)}{g'(x)} \neq \left( \frac{f(x)}{g(x)} \right) '$$
Viet Dao

Last edited:

monet A

VietDao29 said:
Hmm, you should refer your book for L'Hospital rule. I don't think you have understand it correctly. In L'Hospital rule, you want to fnd the differentiation of the nominator and denominator separately, while in quotient rule, you are differentiate the whole number.
What I meam is:
$$\frac{f'(x)}{g'(x)} \neq \left( \frac{f(x)}{g(x)} \right) '$$
Viet Dao

Yes thankyou Vietdao, if you look back to my post I said that I didn't realise before that

$$L'hopitals Rule \neq \left( \frac{f(x)}{g(x)} \right) '$$

but I do now remember that

$$L'hopitals Rule = \frac{f'(x)}{g'(x)}$$

Just to reassure both you and curious that I do understand it all now and you have managed to help me with all that I needed. Last edited:

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving