Find the value for $v(x,y)$ in the function $f(x+iy)=u(x,y)+iv(x,y)$ with $u(x,y)=\log(x^2+y^2)$
I used the equations of Cauchy-Riemann and become: $v(x,y)=2 \tan^{-1}(\frac{y}{x})+c$
The answer should be: $-2 \tan^{-1} (\frac{x}{y})+c$
What did I do wrong? To explain my solution, I uploaded a scratch.

Note that $\arctan(x)+\arctan\left(\frac1x\right)=\frac\pi2$. Therefore, $2\arctan\left(\frac xy\right)+2\arctan\left(\frac yx\right)$ is constant.