I am working on the following problem, which gives the Burgers' equation $$u_t + uu_x=0$$ with the initial data $$g(x)= \begin{cases}1, & x < 0, \\ 2, & 0 < x < 1,\\ 0, & x > 1.\end{cases}$$ It then asks to find the entropy solution of $u(x,t)$ for all $t>0$.
This type of problem, with shock and rarefaction waves, is discussed in Evans, but I don't really know how to apply it to solving this problem. Any help with this would be greatly appreciated. Thank you.