Skip to main content

Complex Numbers

Complex mode makes it possible to draw and manipulate numbers directly on the complex plane.

Enabling complex mode​

Open Graph Settings and turn on the Complex Mode switch.

Enabling complex mode in Desmos

The complex plane​

Entering a complex number automatically draws it as a point on the complex plane.

1
ii
2
1+2i1+2i
Loading graph…
Open in Desmos ↗

Complex arithmetic​

1
(1+i)+(2−2i)=3−i(1+i)+(2-2i)=3-i
2
(1+i)(2−2i)=4(1+i)(2-2i)=4
3
real(2+4i)=2\mathrm{real}(2+4i)=2
4
imag(2+4i)=4\mathrm{imag}(2+4i)=4
5
conj(2+4i)=2−4i\mathrm{conj}(2+4i)=2-4i
6
arg(1+i)=π4\mathrm{arg}(1+i)=\frac{\pi}{4}
7
∣3+4i∣=5|3+4i|=5
8
eiπ=−1e^{i\pi}=-1

Desmos supports real and imaginary parts, conjugates, arguments, magnitudes, and Euler’s identity.

Advanced functions​

1
round(1.2+3.9i)=1+4i\mathrm{round}(1.2+3.9i)=1+4i
2
floor(1.2+3.9i)=1+3i\mathrm{floor}(1.2+3.9i)=1+3i
3
ceil(1.2+3.9i)=2+4i\mathrm{ceil}(1.2+3.9i)=2+4i
4
mod(1+3i,2i)=−1−i\mathrm{mod}(1+3i,2i)=-1-i
5
gcd(4+2i,1−3i)=1+i\mathrm{gcd}(4+2i,1-3i)=1+i
6
ddx(x+ix2)=1+2ix\frac{d}{dx}(x+ix^2)=1+2ix

See Advanced Techniques with Complex Numbers in the Desmos Help Center.