I'm confident I've solved all but the last segment of this problem, to which I have an answer that just doesn't seem right. The problem is to solve the inviscid Burgers' equation $$u_{t}+uu_{x}=0$$ for $u(x,t)$ with the initial condition that for $t=0$, $u(x,0)$ is respectively 1, 0, 2, and 0 for $x<0$, $0<x<1$, $1<x<2$ and $x>2$.
We have the usual shocks parametrized as $x(t)=t/2$ and $x(t)=t+2$, as well as a rarefaction wave in $0<x<2t$. My issue is in calculating the new shock path for $t>1$ when the shock encounters the rarefaction wave. From the jump condition with $u_l=1$, $u_r=x/t$ the shock solves the differential equation $\dot{x}=\frac{1+x/t}{2}$ with the initial condition $x(1)=1$, but upon solving this I find $x(t)=t$, which contradicts my intuition - it doesn't seem reasonable that the shock would suddenly become parallel to the characteristics to its left. Can anyone tell me whether my answer or intuition is correct? I'm hoping at least one of them is...