Solve the PDE $\frac{\partial u}{\partial x}+3\frac{\partial u}{\partial y}=xy$ with initial condition $u(0,y)=0.$
I solved the PDE, the solution is $u(x,y)=-y\phi(3x-y)+\frac{x^2y}{2}$, where $\phi$ is a real arbitrary function.
And I am having trouble with the initial condition:
$u(0,y)=-y\phi(-y)=0$.
The issue is the $-y$ factor outside the function $\phi$.
What can I do from here in order to get the complete answer $u(x,y)$?
Any kind of help is very appreciated
You were close to the solution you just did I guess some mistakes $$\frac{\partial u}{\partial x}+3\frac{\partial u}{\partial y}=xy$$ The differential equations are $$\frac {dx}1=\frac {dy}3=\frac {dz}{xy}$$ $$ \begin{cases} \int 3dx= \int dy \implies y=3x+K_1 \\ xydy=dz \implies \int x(3x+K_1)dx=z+K_2 \\ \implies K_2=x^3+\frac {x^2K_1}2-z \end{cases} $$ Therefore $$\phi((y-3x)=\frac {-x^3}2+\frac {x^2y}2-z \implies u(x,y)=-\phi((y-3x)-\frac {x^3}2+\frac {x^2y}2$$ Initital condition $u(0,y)=0 \implies \phi(y-3x)=0$ Therefore the solution is $$\boxed{ u(x,y)=\frac {x^2}2( y-x)}$$