I'm interested in solving the following PDE via the method of characteristics:
$$\frac{\partial f}{\partial t} - ax\frac{\partial f}{\partial p}+ bp \frac{\partial f}{\partial x} = 0,$$
with $f=f(x,p;t)$ and $a,b>0$ constants, given an arbitratry initial condition
$$f(x,p;0)=f_0(x,p).$$
and the relations
$$x=x(t), \quad p=p(t)$$ $$x(0)=x_0 \quad p(0)=p_0$$
I don't really know the method and the examples I found didn't really deal with anything similar...would appreciate any pointers on how to proceed here. I should get
$$f(x,p;t)=f_0(x_0(x,p;t),p_0(x,p;t))$$
with $x_0(x,p;t)$ and $p_0(x,p;t)$ being sort of inverted from the equations for $x(t)$ and $p(t)$. But I have no idea how to derive this result.
Let us fix $x_0, p_0$.
The method is to find a curve $$ (x,p,t) = (x(t), p(t), t) := \gamma(t) $$ such as $$ \gamma(0) = (x_0,p_0,0) \\ f\circ\gamma \text{ does not depend on }t $$
The last condition is equivalent (under smoothness assumptions) to $$ 0 = \frac {d(f\circ\gamma)}{dt} = \frac{\partial f}{\partial t} + \frac{\partial f}{\partial p}\frac{\partial p}{\partial t} + \frac{\partial f}{\partial x}\frac{\partial x}{\partial t} $$ To identify with the PDE, you just have to put $$ \frac{\partial p}{\partial t} = -ax(t); \ \ \frac{\partial x}{\partial t} = bp(t) $$
Now if you can find a solution $(x_0(t), p_0(t))$ of the previous equation with the initial conditions given and if $x(t_1) = x_1, p(t_1) = p_1$, then you must have $$ f(x_1,p_1,t_1) = f\circ\gamma (t_1) = f\circ\gamma(0) = f(x_0(t),p_0(t),0) = f_0(x_0, p_0) $$