For this question in Partial Differential Equations: An Introduction, 2nd Edition,
Solve $au_{x}+bu_{y}+cu=0$.
I defined $v$ to be $v=e^{\int \frac{c}{a}dx}=e^{\frac{c}{a}x}$ and then multiplied both sides by $v$. Now define $z(x,y)=vu(x,y)$, we'll get $az_{x}+bz_{y}=0$. $\implies \nabla z\cdot (a,b)=0$ $\implies$ z is constant on the characteristic lines defined by $\frac{dy}{dx}=\frac{b}{a}$. The characteristic lines are $y=\frac{b}{a}x+C$ for some constant $C$. $z(x,y)=z(x, \frac{b}{a}x+C)=z(0,C)=f(C)=f(y-\frac{b}{a}x)$ for some function $f$. Therefore, the final solution is $u(x,y)=f(y-\frac{b}{a}x)e^{-\frac{c}{a}x}$. I've checked my solution by taking the derivatives of $u$ and I think this is correct. However, the solution given by the book is $u(x,y)=f(ay-bx)e^{-c(ax+by)/(a^{2}+b^2)}$. I feel like both answers look right. What is going wrong here?