Complex Logarithm in LaTeX (\log z)

log⁡z\log z
LaTeX command
\log z
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Complex logarithm of z, a multivalued inverse of the exponential: ln|z| + i arg z.

Because the exponential repeats every 2\pi i, \log z has infinitely many values differing by 2\pi i k. The principal branch is often written with a capital, \operatorname{Log} z = \ln|z| + i \operatorname{Arg} z, and is analytic away from the branch cut on the negative reals. \log and \ln are both built-in operators; analysts commonly write \log for the natural logarithm, while \ln makes the base explicit. A thin space appears automatically after \log, so \log z needs no parentheses for a single variable.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

log⁡(−1)=iπ+2πik,  k∈Z\log(-1) = i\pi + 2\pi i k, \; k \in \mathbb{Z}
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Complex Logarithm: $\log z$

\[ \log(-1) = i\pi + 2\pi i k, \; k \in \mathbb{Z} \]
\end{document}

Related symbols

All Complexe Getallen →

Frequently asked questions

How do I write Complex Logarithm in LaTeX?
Type \log z in math mode, for example $\log(-1) = i\pi + 2\pi i k, \; k \in \mathbb{Z}$. It works in plain LaTeX without loading any package.
Which package do I need for \log z?
None. \log z is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \log z in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\log z$ in running text.
Math poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen