[Math] Finding the analytic function given the imaginary part

calculuscomplex-analysis

I have to find the analytic function of the variable $z= x + iy$ whose imaginary part is
$$
v=\ln (x^2 + y^2).
$$

Do I solve this using Cauchy?
Or is there another method?

Best Answer

"you generally solve such a problem with the Cauchy-Riemann equations" -@Potato

If $f=u+iv$ is an analytic function then it satisfies $u_x=v_y$ and $u_y=-v_x$

$$u_x=v_y$$ $$\implies u_x=\frac{2y}{x^2+y^2}$$ $$\implies u=2\tan^{-1}\left(\frac{x}{y}\right)+g(y)$$ $$\implies u_y=-\frac{2x}{x^2+y^2}+g'(y)$$ $$\implies -v_y=-\frac{2x}{x^2+y^2}+g'(y)$$ $$\implies -\frac{2x}{x^2+y^2}=-\frac{2x}{x^2+y^2}+g'(y)$$ $$\implies g'(y)=0\implies g(y)=c$$

Thus, $u=2\tan^{-1}\left(\frac{x}{y}\right)+c$

and hence function $f=\left(2\tan^{-1}\left(\frac{x}{y}\right)+c\right)+i(\ln(x^2+y^2))$