[Tex/LaTex] Why does lim_{n\to\infty} work in the LaTeX document

math-modemath-operators

lim_ is not a command in LaTeX because all commands begin with a back slash.

However, why does lim_{n\to\infty} work in math mode? What is lim_ if it is not a command?

Best Answer

The macro for the limit operator is \lim.

Without the \, it just treated as three characters l, i, m. This is no different that $xy$ representing a product of two terms x, and y, so $lim$ is a product of three terms: l, i, m. So with $lim_{n\to\infty}$, the subscript is applied to the m term. Perhaps the meaning is more obvious if you write and equivalent statement:

$ l  i  m_{n\to\infty}$

Note that without the \ the three letters are in italics, representing variables. The operator \lim is not in italics representing an operator.

enter image description here

\documentclass[fleqn]{article}
\begin{document}
$lim_{n\to\infty}$

$\lim_{n\to\infty}$

\[ lim_{n\to\infty} \]
\[\lim_{n\to\infty} \]
\end{document}