Knowing that any solution of $y \frac{\partial ^2 u}{\partial y^2} + 2 \frac{\partial u}{\partial y} = \frac{2}{x}$ is of the form $u(x,y) = \frac{\varphi(x) + y^2}{xy} + \psi(x)$,
where $\varphi, \ \psi $ are $C^2$,
find the solution of
$(1) \ \ y \frac{\partial ^2 u}{\partial y^2} + 2 \frac{\partial u}{\partial y} = \frac{2}{x}, \ u(x,x)=g(x)$
and of
$(2) \ \ y \frac{\partial ^2 u}{\partial y^2} + 2 \frac{\partial u}{\partial y} = \frac{2}{x}, \ u(y^3, y)=g(y)$.
Here $g: \mathbb{R} \rightarrow \mathbb{R}$ is a given function.
I'm having problems solving this.
I've solved a similar problem $\frac{\partial u}{\partial x} = 2x \frac{\partial u}{\partial y}, \ u(4,y)=g(y)$, ($g$ is given) where the solution was $u(x,y)=\varphi(y+x^2)$ and I just plugged $\varphi$ to the equation: $\varphi(y+16)=u(4,y)=g(y), \ \ \varphi(y)=g(y-16), \ \ u(x,y)=g(x^2+y-16)$.
But here it doesn't seem to work. Could you explain to me how to solve it?
Thank you!