# Limits not showing properly when placed in a fraction

I am trying to apply a limit law in which the limit is distributed to both the numerator and the denominator. However, the \lim_{x\to \infty} does not render properly when I place it in a fraction (\frac{\lim_{x\to \infty}}{\lim_{x\to \infty}}). The _{x\to \infty} part shows up next to the lim.

Any help would be greatly appreciated.

$\frac{\displaystyle\lim_{x\to \infty}}{\displaystyle\lim_{x\to \infty}}$

$\frac{\lim\limits_{x\to \infty}}{\lim\limits_{x\to \infty}}$.

• @PrzemysławScherwentke: Note that using such a definition, all subsequent math content will be set using \displaystyle (not just the \dfrac. To get around this, you need to grab the arguments and contain the \displaystyle inside a group. – Werner Apr 14 '13 at 22:31