Complex Number in LaTeX (z = a + bi)
- LaTeX command
z = a + bi- Package
- No package needed: built into LaTeX
- Mode
- Text and math mode
Where it is used
Rectangular (Cartesian) form of a complex number, with real part a and imaginary part b.
Every complex number can be written as a + bi with a and b real; this form is best for addition and for reading off \Re z = a and \Im z = b. Multiplication and powers are usually easier in polar form r e^{i\theta}. Writing bi, with the unit last, is the common convention, though engineers often write a + jb. If your document typesets i upright, keep it upright here too: a + b\mathrm{i}. When b is negative, write a - bi rather than a + (-b)i, and for specific numbers put i after numerals, as 3 + 4i.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Complex Number: $z = a + bi$
\[ z = 3 + 4i \implies |z| = 5 \]
\end{document}Related symbols
- Real Part
\Re(z) - Imaginary Unit (Engineering)
j - Imaginary Part
\Im(z) - Imaginary Unit
i - Complex Conjugate
\bar{z} - Complex Numbers
\mathbb{C}
Frequently asked questions
- How do I write Complex Number in LaTeX?
- Type z = a + bi in math mode, for example $z = 3 + 4i \implies |z| = 5$. It works in plain LaTeX without loading any package.
- Which package do I need for z = a + bi?
- None. z = a + bi is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use z = a + bi in text mode, or only in math mode?
- Both. z = a + bi compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf
Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI
- Gumawa ng magagandang TikZ diagrams gamit ang AI
- Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
- Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers