EDIT The issue is with the characteristic equations.
It should be
$$\frac{dt}{1} = \frac{dx}{2} =\frac{dw}{3u}$$
and not
$$\frac{dt}{1} = \frac{dx}{2} =\frac{dw}{3}$$
Solving the following PDE $u_t+2u_x+3u=0$ with $u(x,t=0) = e^{-x^2/l^2}$
So I've got my characteristics:
$$C_1 = x-2t$$ $$C_2 = 3x-2u$$
And I know the general form will be a function of the form
$$f(x-2t, 3x-2u)$$
And we can do the following
$$3x-2u = f(x-2t) \Rightarrow u = \frac12\left(3x-f(x-2t)\right) $$
Now we know that:
$$u(x,t=0) = e^{-x^2/l^2} = \frac12\left(3x-f(x)\right)$$
and
$$f(x) = 3x - 2e^{-x^2/l^2}\Rightarrow f(x-2t) = 3(x-2t) - 2e^{-(x-2t)^2/l^2} $$
Now the next step is where I'm having difficulties. Am I plugging f(x) back into here?
$$u = \frac12\left(3x-f(x-2t)\right)$$
I'd appreciate any hints
$$u_t+2u_x=-3u$$ The system of characteristic differential equations can be summarized as : $$\frac{dt}{1}=\frac{dx}{2}=\frac{du}{-3u}$$ The equation of a first family of characteristic curves comes from : $$\frac{dt}{1}=\frac{dx}{2} \quad\to\quad x-2t=c_1$$ The equation of a second family of characteristic curves comes from : $$\frac{dx}{2}=\frac{du}{-3u} \quad\to\quad ue^{\frac{3}{2}x}=c_2$$ The general solution of the PDE is, expressed on the form of implicit equation, is : $$\Phi\left( (x-2t)\:,\:(ue^{\frac{3}{2}x})\right)=0$$ Where $\Phi$ is any differentiable function of two variables.
In this case, it is possible to separate $u$ to the explicit form : $$ue^{\frac{3}{2}x}=f(x-2t) \quad\to\quad u= e^{-\frac{3}{2}x}f(x-2t)$$ where $f$ is any differentiable function.
With the condition : $$u(x,0)=e^{-\frac{x^2}{L^2}}=e^{-\frac{3}{2}x}f(x-2*0)=e^{-\frac{3}{2}x}f(x)$$ The function $f$ is determined (doesn't matter the symbol of the variable) $$f(X)=e^{\frac{3}{2}X}e^{-\frac{X^2}{L^2}}$$
In the above general solution we have $\quad X=x-2t\quad\to\quad f(x-2t)=e^{\frac{3}{2}(x-2t)}e^{-\frac{(x-2t)^2}{L^2}}\quad$ which leads to : $$u(x,t)= e^{-\frac{3}{2}x} e^{\frac{3}{2}(x-2t)}e^{-\frac{(x-2t)^2}{L^2}}$$ $$u(x,t)= e^{-3t-\frac{(x-2t)^2}{L^2}}$$