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 複素数 →

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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得