\ln natural logarithm in LaTeX

Command\ln
Modemath
Packagenone, part of LaTeX
KindFunction names

\ln typesets the symbol “natural logarithm”. It is a function name set in upright type.

Try it

ln⁡e=1\ln e = 1

Open this formula in the editor The preview is drawn in your browser by KaTeX, which knows the common math commands. The editor compiles the formula with pdfTeX.

Example

\documentclass{article}
\begin{document}
\( \ln e = 1 \)
\end{document}

Open in the editor

Compiled with pdfLaTeX from TeX Live 2023.

How to use it

\ln works only in math mode. In running text, put it between $...$ or \(...\). Outside math mode LaTeX stops with Missing $ inserted. The command is part of LaTeX; you need no package.

About function names

Typing sin x in math mode prints three italic variables s, i and n. \sin prints the name upright and puts a thin space between it and its argument. For a name LaTeX does not define, declare your own with \DeclareMathOperator from amsmath.

More function names

All function names