Write z=x+iy. Then z2=(x2−y2)+2xyi and ∣z∣=x2+y2 is real, so the equation is
(x2−y2+4x2+y2)+2xyi=0
Equating imaginary parts, 2xy=0, so x=0 or y=0.
- If y=0: the real part gives x2+4∣x∣=0. Both terms are non-negative, so x=0, and z=0.
- If x=0: the real part gives −y2+4∣y∣=0, that is ∣y∣(4−∣y∣)=0, so ∣y∣=0 or ∣y∣=4. This gives z=0, z=4i or z=−4i.
So z=0, 4i or −4i.
Check: (4i)2+4∣4i∣=−16+16=0, and (−4i)2+4∣−4i∣=−16+16=0.