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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث