Theory Multiply complex numbers using distributive law and i2=−1i^2=-1i2=−1. If z=a+biz=a+biz=a+bi then Im(z)=b\operatorname{Im}(z)=bIm(z)=b.