Use the method of characteristics to find the general solution of the following PDE $$ e^xu_x + u_y = xu. $$ Show explicitly that your result is indeed a solution of the PDE.
So I believe I have found the general solution as follows:
$\frac{dy}{dx} = e^{-x},$ $\frac{du}{dx} = xue^{-x}$, $\frac{du}{dy} = xu$.
Then, the first eq'n gives $C_1 = y + e^{-x}$. And, the second equation gives $C_2 = \ln{u} + (x+1)e^{-x}$. So, the general solution is given by $\ln{u} + (x+1)e^{-x} = \omega(y + e^{-x})$, where $\omega$ is an arbitrary function. We can rearrange to give an explicit general sol'n: $$u(x,y) = \exp\{\omega(y + e^{-x}) - (x+1)e^{-x}\}.$$
Now, I'm struggling to, as the question asks, show explicitly that this is a solution. I'm assuming this is wanting me to substitute my solution into the PDE. But, because I have this arbitrary function it doesn't seem to be working.. (?) I can't get my expression for $u(x,y)$ to give me the PDE, i.e., taking partial derivatives and subbing into the PDE I don't get back an expression for $xu$. This is what I have: \begin{align} u_x &= \frac{\partial}{\partial x} \exp\{\omega(y + e^{-x}) - (x+1)e^{-x}\} \\ &=\exp\{\omega(y + e^{-x}) - (x+1)e^{-x}\} \cdot \left( \frac{\partial}{\partial x} [\omega(y + e^{-x})] - \frac{\partial}{\partial x}[(x+1)e^{-x}] \right) \\ &=\exp\{\omega(y + e^{-x}) - (x+1)e^{-x}\} \cdot \left( \frac{\partial}{\partial x} [\ln{u} + (x+1)e^{-x}] - [-xe^{-x}] \right) \\ &=\exp\{\omega(y + e^{-x}) - (x+1)e^{-x}\} \cdot \left( \frac{\partial}{\partial x} [\ln{u}] + \frac{\partial}{\partial x}[(x+1)e^{-x}] + [xe^{-x}] \right) \\ &=\exp\{\omega(y + e^{-x}) - (x+1)e^{-x}\} \cdot \frac{u_x}{u} \\ &= u \cdot \frac{u_x}{u} \\ &= u_x \\ \end{align}
\begin{align} u_y &= \frac{\partial}{\partial y} \exp\{\omega(y + e^{-x}) - (x+1)e^{-x}\} \\ &=\exp\{\omega(y + e^{-x}) - (x+1)e^{-x}\} \cdot \left( \frac{\partial}{\partial y} [\omega(y + e^{-x})] - \frac{\partial}{\partial y}[(x+1)e^{-x}] \right) \\ &=\exp\{\omega(y + e^{-x}) - (x+1)e^{-x}\} \cdot \frac{\partial}{\partial y} [\ln{u} + (x+1)e^{-x}] \\ &=\exp\{\omega(y + e^{-x}) - (x+1)e^{-x}\} \cdot \frac{\partial}{\partial y} [\ln{u}] \\ &=\exp\{\omega(y + e^{-x}) - (x+1)e^{-x}\} \cdot \frac{u_y}{u} \\ &= u \cdot \frac{u_y}{u} \\ &= u_y \\ \end{align}
Is this enough to show that it's a solution? What else can I do with this? Have I missed something?