Let $$u(x,y)=xe^x\cos y-ye^x\sin y$$ find $$f(z)=u(x,y)+iv(x,y)$$ such that $f(z)$ is analytic
Using the theorem: if $u(x,y)$ is harmonic then there is $v(x,y)$ such that $f(z)=u(x,y)+iv(x,y)$ is analytic we first test if $u(x,y)$ is harmonic ($\Delta u=u_{xx}+u_{yy}=0$)
$$u_x=(e^x+xe^x)\cos y-ye^x\sin y$$
$$u_{xx}=(2e^x+xe^x)\cos y-ye^x\sin y$$
$$u_y=-xe^x\sin y-e^x\sin y-e^xy\cos y$$
$$u_{yy}=-xe^x\cos y-2e^x\cos y+e^xy\sin y$$
And so $u_{xx}+u_{yy}=0$ and $u(x,y)$ is harmonic.
Now let assume the that $C-R$ holds
So $$u_x=v_y=(e^x+xe^x)\cos y-ye^x\sin y$$ integrating results with $$v=e^x\cos y+xe^x\sin y+C(x)$$
so $$v_x=ye^x\cos y+e^x\sin y+xe^x\sin y+C'(x)$$
Using the second $C-R$
$$u_y=-v_x=-xe^x\sin y-e^x\sin y-e^xy\cos y$$
comparing the two $v_x$ to find $C(x)$ yields $C(x)=k$
So $$f(z)=u+iv=xe^x\cos y-ye^x\sin y+i(xe^x\sin y+e^x\sin y+ye^x\cos y)$$
Is the process correct? How should I continue to find $f(z)$ as expression of $z$ ?
I think you can use that $$f(z)=2u\left(\frac{z}{2}, -\frac{iz}{2}\right)-u(0,0)$$