For my homework I am asked to do the following:
Solve $au_x+bu_y=f(x,y)$, where $f(x,y)$ is a given function. If $a\neq 0$ write the solution in the form $$u(x,y)=(a^2+b^2)^{-\frac{1}{2}}\int_{L}fds +g(bx-ay)$$ where the integral is a line integral and $L$ is the characteristic line segment from the $y$-axis to the point $(x,y)$ and $g$ is an arbitrary function of one variable. A hint to use the coordinata method (change of coordinates) is given.
For the $g(bx-ay)$ part we have $g_x(bx-ay)=bg'$ and $g_y=-ag'$ so this satisfies $ag_x+bg_y=0$ and therefore is the homogeneous solution. For the rest I realized that $au_x+bu_y$ is the directional derivative of $u$ along the characteristic line $c=bx-ay$ and therefore integrating along this line to solve seems reasonable. However I am unclear about the particulars. If anyone could help me out I would be very thankful. Also, isn't it important that besides specifying $a\neq 0$ we also have $b\neq 0$?