I am trying to solve Burgers equation using the method of characteristics: $$\partial_tu+u \partial_x u=0$$ with the following initial condition: $$\begin{cases} 1 & x<0 \\ 1-x & 0\leq x \leq 1 \\ 0 & x>1 \end{cases}$$ Then using the Method of characteristics I find that: $$X(t)=u(t,X(t))t+x$$ And $$u(t,X(t))=u(0,x)$$ And so for example if $x\in [0,1]$ then $u(t,X(t))=1-x=1-(X(t)-u(t,X(t)) t)$
which means that $u(t,X(t))=\frac{1-X(t)}{1-t}$
The problem is that I can't find the explicit cases