how can i write i as an imaginary number
It is written as an imaginary number already.
i is the basis of the whole imaginary number system. i=sqrt(-1)