I'm taking my first course on PDEs and the text used by the professor has next to 0 examples. I was just wondering if I am approaching this question correctly.
$$ e^{x^2}u_x + xu_y = 0 $$
The characteristic curve satisfies the following ODE: $$ \frac{dy}{dx} = \frac{x}{e^{x^2}}$$ Solving this ODE gives: $$ y= -\frac{1}{2e^{x^2}} + C$$ Then we can isolate for $C$ to find the general solution. $$ C = y + \frac{1}{2e^{x^2}} $$ Thus the general solution is: $$u(x,y) = f( y + \frac{1}{2e^{x^2}})$$
Consider the initial value problem:
$$ u_x + xu_y = 0, u(0,y) = sin(y) $$
So using the steps above I get the general solution to be:
$$ u(x,y) = f(y-\frac{x^2}{2})$$
Then using the initial value: $$u(0,y) = siny = f(y)$$
I am not sure where to go from this step
Any guidance would be greatly appreciated.