Let $f(z)=e^z$ and $g(z)=\log(z)$. Find the preimage and image of the following sets under $f$ and $g$.
a) $A=\{z\in \mathbb{C} \mid \mathrm{Im} z=0\}$
b) $B=\{z\in \mathbb{C} \mid \mathrm{Re} z= \mathrm{Im} z\}$
c) $C=\{z\in \mathbb{C} \mid \mathrm{Re} z > 0,\ \mathrm{Im} z > 0\}$
So for part a) I thought the image for $f(z)$, $z$ is any positive real number, 2$\pi ik$ where $k \in \mathbb{Z}$ because we are looking at $f(z)$ that are in Quad I. However I think I am coming at this problem wrong. Any help with this problem would be great. I asked my professor how he wanted this problem asked and he said to graph the image and preimage of the following sets and giving a brief explanation as to why.
Note: I have tried asking this question before and it is now closed because it was off topic. All my professor is asking to find the image and preimage (range) for the following sets. I am having difficult understand what he is asking. You do not have to do every part. I just need some assistance, so please do not close this problem. If you have any issue please comment or message me and I'll try to help out as much as I can.





Let's first solve for $f(z)$. The preimage of $T$ under $f$ is a set $S$ so that $$T=f(S)$$or$$S=f^{-1}(T)$$we know that $f(z)=e^{x+iy}=e^x\cos y+ie^x\sin y$. Therefore for any $p+iq\in S$ we have $$f(p+iq)=e^p\cos q+ie^p\sin q\in T$$therefore we must have three cases
Case 1: $T=A$
here we get $$e^p\sin q=0\to \sin q=0\to q=k\pi\qquad,\qquad k\in\Bbb Z$$therefore $$f^{-1}(A)=\{x+iy|y=k\pi\qquad,\qquad k\in\Bbb Z\}$$
Case 2: $T=B$
here we obtain $$e^p\cos q=e^p\sin q\to \sin q=\cos q\to q=k\pi+\dfrac{\pi}{4}\qquad,\qquad k\in\Bbb Z$$therefore $$f^{-1}(B)=\{x+iy|y=k\pi+\dfrac{\pi}{4}\qquad,\qquad k\in\Bbb Z\}$$
Case 3: $T=C$
here we get $$e^p\sin q,e^p\cos q>0\to 2k\pi<q<2k\pi+\dfrac{\pi}{2}\qquad,\qquad k\in\Bbb Z$$therefore $$f^{-1}(C)=\{x+iy|2k\pi<y<2k\pi+\dfrac{\pi}{2}\qquad,\qquad k\in\Bbb Z\}$$also the image of $T$ under $f$ is a set $S$ such that$$S=f(T)$$therefore using a similar approach we have$$f(A)=\Bbb R^+\\f(B)=\{e^xe^{ix}|x\in\Bbb R\}\\f(C)=\{re^{i\theta}|r>1\}$$also $f$ and $g$ are inverse functions i.e. $f\circ g(z)=g\circ f(z)=z$ therefore$$f(A)=g^{-1}(A)=\Bbb R^+\\f(B)=g^{-1}(B)=\{e^xe^{ix}|x\in\Bbb R\}\\f(C)=g^{-1}(C)=\{re^{i\theta}|r>1\}\\f^{-1}(A)=g(A)=\{x+iy|y=k\pi\}\\f^{-1}(B)=g(B)=\{x+iy|y=k\pi+\dfrac{\pi}{4}\}\\f^{-1}(C)=g(C)=\{x+iy|2k\pi<y<2k\pi+\dfrac{\pi}{2}\}$$