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)$, works in 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

  • \lim_{x \to a} f(x)limit as x approaches aNo package needed
  • \lim_{x \to a^+}one-sided, from the rightNo package needed
  • \lim_{n \to \infty}limit of a sequenceNo package needed
  • \liminflimit inferiorNo package needed
  • \limsuplimit superiorNo package needed
  • \lim\limits_{x \to a}force subscript below in inline mathNo package needed

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.

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.

Related symbols

Also in Calculus

See all LaTeX symbols