Plese help me to find the solution of te following equation.
For values of $x$ in the interval $[-2,3]$ and $t>0$ we consider the one way wave equation $$u_t+u_x=0$$ with initial data \begin{align*} u(0,x)= \left\{\begin{array}{ll}1-|x|\;\; \text{if}\; 0\le |x|\le 1\\0\;\;\;\text{otherwise} \end{array} \right.\end{align*} and boundary data $u(t,-2)=0.$
I tried to use the method of characteristics in the following way:
$\frac{dx}{ds}=1$ and $\frac{dt}{ds}=1$
but i didn't manage to find the solution.
Please help me to do so. Thanks

The correct method of characteristics, follows as :
$$\frac{\mathrm{d}t}{1} = \frac{\mathrm{d}x}{1} = \frac{\mathrm{d}u}{0}$$
Now, the first characteristic curve is given as :
$$\mathrm{d}t = \mathrm{d}x \implies u_1 = x-t$$
Note that the solution for the second one, is trivial, as :
$$\frac{\mathrm{d}u}{0} = \text{(something)} \implies u_2 = u$$
Now, the general solution shall be given as a $C^1$ function $F$, such that :
$$u_2=F(u_1) \Leftrightarrow u = F(x-t) \equiv u(x,t)$$
That's straighforward and doable since $u_2 = u \equiv u(x,t)$.
By applying the initial conditions given, are you now able to form the solution for the given IVP ?