Find the real and imaginary parts of $ln(z)$ This is on my homework on differentials and partial differentiation, so I'm not sure what application these could have on the natural log of z

The answer of Iti Shree is correct, but under tacit assumptions, which I would
like to clarify here. In particular, $\Im(\ln(z)) = \arctan(\frac{y}{x})$ is
not defined if $x = 0$ and does not distinguish between opposite complex
numbers.
First, $\ln(z)$ needs to be defined properly. Notice that it cannot be defined
continuously on the whole complex plane, because of the branch point at
$z = 0$. But it can be defined on the complex plane without the negative real
numbers as the unique analytical continuation of the standard logarithm
defined on the positive real numbers. This definition is assumed here.
Also, $\arctan(x)$ needs to be defined properly. Let $\arctan(x)$ be defined
such that $-\frac{\pi}{2} < \arctan(x) < \frac{\pi}{2}$.
Finally, let $x$ denote $\Re(z)$ and $y$ denote $\Im(z)$.
Then, for $x > 0$ or $y \ne 0$:
$
\begin{aligned}[t]
\Re(\ln(z)) &= \ln(|z|) = \frac{\ln(x^2 + y^2)}{2} \\
\Im(\ln(z)) &= \arg(z)  = 2 \cdot \arctan\left(\frac{y}{x + \sqrt{x^2 + y^2}}\right)
\end{aligned}
$
where $\arg(z)$ is defined such that $-\pi < \arg(z) \le \pi$.
