Complex Number in LaTeX (z = a + bi)

z=a+biz = 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.

z=3+4i  ⟹  ∣z∣=5z = 3 + 4i \implies |z| = 5
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Complex Number: $z = a + bi$

\[ z = 3 + 4i \implies |z| = 5 \]
\end{document}

Related symbols

All Bilangan Kompleks →

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 poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI

  • Hasilkan diagram TikZ yang indah menggunakan AI
  • Unggah gambar dan konversi ke LaTeX dengan mulus
  • Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian