Solve the following homogeneous first order PDEs subject to the given boundary condition:
$$x\phi_{x}-2\phi_{y}=0, \quad \phi_{x}(x,0)=x\cos(x^2), \quad x>0$$
My attempt using method of characteristic: Integrating $\frac{dx}{x}= \frac{dy}{-2}$ on both sides gives $y=-2\ln x+\alpha$. The characteristic curve is now given: $\zeta = y+2\ln x$. I know that $\phi(x,y)$ is a function $f(\zeta)$ but I don't know how to apply the boundary condition. Would appreciate anyone who can help me solve this problem.