CamteX
All guides

Logarithms and exponentials in LaTeX

The natural logarithm is \ln, the common one \log, and the base is added as a subscript. A long exponent of e is easier to read when written with \exp and parentheses.

Logarithms

\ln e = 1, \quad \log_{2} 8 = 3
lne=1,log28=3\ln e = 1, \quad \log_{2} 8 = 3

Radioactive decay

N(t) = N_0 \exp\left(-\frac{t \ln 2}{T_{1/2}}\right)
N(t)=N0exp(tln2T1/2)N(t) = N_0 \exp\left(-\frac{t \ln 2}{T_{1/2}}\right)

Common mistakes

See also

Don't want to memorize commands?

Draw a formula or paste a screenshot, and CamteX turns it into ready LaTeX.

Try it free