# Problem with limit and exponent together

How to write exp(lim x-> infinity 2/x ) in proper way , the limit range should come below lim, and everything to the power of e.

e^{\lim_{x\to\infty} \frac{2}{x} \cdot x}


How to modify this code to get the desired output.

• Use \lim\limits_{x\to\infty}. Commented Jul 9, 2020 at 11:58
• Actually it should not, as the lim part should then be much larger than e^x. I'd suggest writing this as \exp(....) instead. Also the \over syntax is not used in LaTeX. Commented Jul 9, 2020 at 11:59
• Additionally why is this tagged with tikz-pgf Commented Jul 9, 2020 at 11:59
• I have added the image please check Commented Jul 9, 2020 at 11:59
• I have added Tikz if some work around is available anywhere. Commented Jul 9, 2020 at 12:01

Here are some options, ranked IMNSHO from best to worst. In all cases, x\to\infty is placed below \lim, as stipulated.
\documentclass{article}
$\exp\bigl(\lim_{x\to\infty}\tfrac{2}{x}\cdot x\bigr) \quad\text{vs}\quad \exp\Bigl(\,\lim_{x\to\infty}\frac{2}{x}\cdot x\Bigr) \quad\text{vs}\quad e^{\bigl(\lim\limits_{x\to\infty}(2/x)\cdot x\bigr)} \quad\text{vs}\quad e^{\bigl(\lim\limits_{x\to\infty}\frac{2}{x}\cdot x\bigr)}$