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.
Math poweredAI로 LaTeX 작성
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기