Mathematica refuses to use NLimit

NLimit[(E^(2/n) - 1)/(ln[(2n - 1)/(2n)]), n → Infinity]

This above is my input, in wolfram alpha you get the answer -4 as the limit but i really need the step by step to show me how i shall get started.
The problem is that Mathematica just spit out the exact same input in the output it do not calculate it.

Hi,

well, NLimit is not a built-in function. You would need to execute:

Needs["NumericalCalculus`"]

before you can use NLimit. Also ln should rather be Log, because all Mathematica functions start with a capital. If you use

Limit[(E^(2/n) - 1)/(Log[(2 n - 1)/(2 n)]), n -> Infinity]

that gives -4 (infinite precision). If you load the NumericalCalculus package as shown above,

NLimit[(E^(2/n) - 1)/(Log[(2 n - 1)/(2 n)]), n -> Infinity]

also gives -4. but with machine precision.

Cheers,

Marco

Thanks Marco! :smiley:

How can I get a step by step solution in mathematica then?

Hi,

if you need the step-by-step solution you will need to use WolframAlpha from within Mathematica. You can do that by typing two equal signs at the beginning of the input line. You can then type in your limit command.

If you click on the Step-by-Step solution button you get what the solution.

Cheers,

Marco