Skip to content
All LaTeX symbols

Limit notation (lim)

Calculus

lim

LaTeX command

\lim_{x \to a} f(x)

limit as x approaches a

Use inside math mode: $\lim_{x \to a} f(x)$ — base LaTeX, KaTeX and MathJax

\lim is an operator name, so it prints upright and places its subscript below in display math. The arrow is \to. In inline math the subscript moves to the right; add \limits to keep it underneath.

All ways to write it

CommandUsePackageCopy
\lim_{x \to a} f(x)limit as x approaches anone
\lim_{x \to a^+}one-sided, from the rightnone
\lim_{n \to \infty}limit of a sequencenone
\liminflimit inferiornone
\limsuplimit superiornone
\lim\limits_{x \to a}force subscript below in inline mathnone

Example

\lim_{h \to 0} \frac{f(x+h) - f(x)}{h} = f'(x)

The definition of the derivative.

Questions

How do I define my own operator like lim?

\operatorname{name} for one-off use, or \DeclareMathOperator{\name}{name} in the preamble (amsmath). KaTeX supports \operatorname.

Related symbols

Using limit in Confluence

Confluence Cloud has no built-in LaTeX. With LaTeX Math for Confluence you add a math macro to any page, type \lim_{x \to a} f(x) and it renders inline or as a block, with a live preview while you edit. Every command on this page renders there without extra packages.