5.复数z=-ai,a∈R,且z2=-i,则a的值为( )
A.1 B.2
C. D.
C [由z=-ai,a∈R,得z2=2-2××ai+(ai)2=-a2-ai,因为z2=-i,所以解得a=.]
二、填空题
6.设复数z1=x+2i,z2=3-yi(x,y∈R),若z1+z2=5-6i,则z1-z2=________.
-1+10i [∵z1+z2=x+2i+(3-yi)=(x+3)+(2-y)i,∴(x+3)+(2-y)i=5-6i(x,y∈R),由复数相等定义,得x=2且y=8,
∴z1-z2=2+2i-(3-8i)=-1+10i.]
7.设复数z1=1+i,z2=x+2i(x∈R),若z1z2∈R,则x等于________.
-2 [∵z1=1+i,z2=x+2i(x∈R),
∴z1z2=(1+i)(x+2i)=(x-2)+(x+2)i.
∵z1z2∈R,∴x+2=0,即x=-2.]
8.复数z=1+i,为z的共轭复数,则z·-z-1=________.
-i [∵z=1+i,∴=1-i,
∴z·=(1+i)(1-i)=2,
∴z·-z-1=2-(1+i)-1=-i.]
三、解答题
9.计算:(1)(1+i)(1-i)+(-1+i);