I've been trying and failing to understand how to find the "general solution" for PDEs, as in an answer with an arbitrary function $F(x,y,u)$, for a PDE with no boundary conditions given. I understand the concept, just not really how to get this arbitrary function.
Example 4: For the PDE $$yu\frac{\partial u}{\partial x} - xu\frac{\partial u}{\partial y} = x-y,$$ the characteristic equations $$\frac{dx}{d\tau} = yu,\quad \frac{dy}{d\tau} = - xu,\quad \frac{du}{d\tau} = x-y,$$ may be rearranged to give [Exercise] $$\frac{d}{d\tau}(x^2+y^2) = \frac{d}{d\tau}(u^2+2x+2y) = 0.$$ It follows that the general solution is $$u^2 = -2x-2y + F(x^2+y^2)$$ where $F$ is an arbitrary function.
In this example, I'm struggling to understand where the $F(x^2 + y^2)$ has come from. Why is it $(x^2 + y^2)$ in the argument? I've tried changing of variables but that seems too complicated for something like this.
A second example is this:
Example 5: The PDE $$\frac{\partial u}{\partial x} + \frac{\partial u}{\partial y} = 1,$$ has the general solution $$u = \frac{x+y}{2} + F(x-y)$$ where $F$ is an arbitrary function.