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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث