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로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기