1

We have the problem \begin{align*}&u_t+uu_x=0 \\ &u(x,0)=\begin{cases}2, & x<0 \\ 2-x, & x\in[0,1] \\1, & x>1\end{cases}\end{align*} We have the problems $$\frac{dx}{dt}=u \ \text{ and } \ \frac{du}{dt}=0$$ From the first one we get $x=ct+c_2$ and for $t=0$ we get $x_0=c_2$ and so we get $x_0=x-...