Given the PDE, find the general solution.
$$ -4yu_x + u_y-yu=0 $$
So,
$$ \frac{dy}{dx} = \frac{1}{-4y} $$
$ x+2y^2=k $ is a characteristic curve. If I do the parametrization
$$ y=s \\ x=k-2y^2=k-2s^2 $$
The PDE becomes the ODE
$$ \frac{du}{ds} -yu = 0 \rightarrow \frac{du}{ds}-su = 0 \\ u=f(k)e^{\frac{s^2}{2}} $$
Which gives me the answer
$$ u(x,y)=f(x+2y^2)e^{\frac{1}{2}y^2} $$
However, if I divide the original PDE by $-4y$, then I get: $$ u_x + \frac{1}{-4y}u_y+\frac{1}{4}u=0 $$
with the same characteristic curve. But now I can do the following parametrization:
$$ \frac{dx}{ds}=1 \rightarrow x=s\\ \frac{dy}{ds}=-\frac{1}{4y}\rightarrow -2y^2=s+k $$
The PDE then becomes:
$$ \frac{du}{ds} + \frac{1}{4}u = 0 \Rightarrow u=f(k)e^{-\frac{s}{4}} $$
The final answer this time is:
$$ u(x,y) = f(x+2y^2)e^{-\frac{x}{4}} $$
My question is: are both answers the same? WolframAlpha gives as the answer the second option. If I say $x+2y^2=0 \rightarrow y^2=-x/2$, I can change the $exp$ term from one to another, but is this right to do? And why should I get $x+2y^2=0$, and not any other value of the characteristic $k$? Is it somewhat preferably to write the solution in terms of $x$ instead of $y$?