Complex Power in LaTeX (z^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.
\documentclass{article}
\begin{document}
Complex Power: $z^w$
\[ z^w = e^{w \log z}, \quad i^i = e^{-\pi/2} \]
\end{document}Related symbols
- Unit Circle
|z| = 1 - Complex Logarithm
\log z - Upper Half Plane
\mathbb{H} - Complex Exponential
e^{z} - Complex Numbers
\mathbb{C} - Euler's Formula
e^{i\theta} = \cos\theta + i\sin\theta
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로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기