(i) Let z=k (k real) be a root, then
k2+(a+ib)k+(c+id)=0
∴k2+ak+c=0 and bk+d=0
Eliminating k we have the condition as
d2b2−adb+c=0 or d2−adb+b2c=0
(ii) Let both the roots be equal and each equal to p+iq
∴z2+(a+ib)z+(c+id)=[z−(p+iq)]2
=z2−2z(p+iq)+(p+iq)2
Comparing, a+ib=−2(p+iq)
∴a=−2p, b=−2q ...(1)
and c+id=(p+iq)2=p2−q2+i2pq
∴c=p2−q2, d=2pq
or c=a24−b24 and d=aby by (1)
or a2−b2=4c and ab=2d are the required conditions.