Complex Power in LaTeX (z^w)

zwz^w
LaTeX command
z^w
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Complex power z raised to w, defined as exp(w log z) and generally multivalued.

The surprising fact i^i = e^{-\pi/2} (on the principal branch) comes from this definition. Since \log z is multivalued, z^w has many values unless w is an integer, and rules like (z^a)^b = z^{ab} can fail. Brace exponents with more than one token: z^{w+1}, not z^w+1. For towers like z^{w^v}, TeX shrinks each level, so consider \exp notation for readability. State the branch explicitly when you rely on a particular value, for example by writing \exp(w \operatorname{Log} z).

Minimal compilable example

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

zw=ewlog⁡z,ii=e−π/2z^w = e^{w \log z}, \quad i^i = e^{-\pi/2}
\documentclass{article}
\begin{document}
Complex Power: $z^w$

\[ z^w = e^{w \log z}, \quad i^i = e^{-\pi/2} \]
\end{document}

Related symbols

All 複素数 →

Frequently asked questions

How do I write Complex Power in LaTeX?
Type z^w in math mode, for example $z^w = e^{w \log z}, \quad i^i = e^{-\pi/2}$. It works in plain LaTeX without loading any package.
Which package do I need for z^w?
None. z^w is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use z^w in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $z^w$ in running text.
Math poweredAIでLaTeXを書く

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

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

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