Option (A) is correct.
Explanation:
Divide by multiplying the numerator and the denominator by the conjugate of 2+i, which is 2−i:
2+ik+4i=(2+i)(2−i)(k+4i)(2−i)=5(2k+4)+(8−k)i
(The numerator is 2k−ki+8i−4i2=(2k+4)+(8−k)i and the denominator is 22+12=5.)
A complex number is purely imaginary when its real part is 0 and its imaginary part is not 0:
2k+4=0⇒k=−2
Then the imaginary part is 58−(−2)=2=0, and indeed
I=2+i−2+4i=5(−2+4i)(2−i)=510i=2i
Why the other options are wrong
- (B) k=8 makes the imaginary part 8−k zero. Then I=520=4, which is purely real, not purely imaginary.
- (C) k=2 comes from multiplying by 2+i instead of the conjugate 2−i and setting the real part 2k−4 of (k+4i)(2+i) to zero. But (2+i)(2+i)=3+4i is not real, so this does not remove i from the denominator. In fact, for k=2, I=5(2+4i)(2−i)=58+56i, which has a non-zero real part.
- (D) k=−8 multiplies by 2+i and also sets the imaginary part k+8 of (k+4i)(2+i) to zero. For k=−8, I=5(−8+4i)(2−i)=−512+516i, which is neither purely real nor purely imaginary.