I am considering the following two problems: $$ u_t + \left( \frac{u^2}{2} \right)_x = 0 $$ and $$ \left( \frac{u^2}{2} \right)_t + \left( \frac{u^3}{3} \right)_x = 0 $$
I know that these Equations have the same continuous solutions.
I am now considering the Riemann problem with $u = 2$ at $x<0$ and $u = 1$ at $x>0$. I am trying to find the discontinuous solutions and explain why they are different.
For the first problem, I used the Rankine-Hugoniot relation to find the shock speed $s=\frac{3}{2}.$ This gives (I think) the weak solution of $u(x,t) = 2$ for $x \lt st$ and $u(x,t) = 1$ for $x \gt st$.
However, I am stuck on the second problem. I tried to rewrite it as $ w_t + (f(w))_x = 0$ where $w=\frac{u^2}{2}$ and $f(w) = \frac{ 2^{3/2} w^{3/2} }{3}$. Then the initial condition for $w$ is $w(x,0) = 2$ for $x<0$ and $w(x,0) = 1/2$ for $x>0.$ Applying the Rankine-Hugoniot relation to this $f(w)$ with $w^-=2$ and $w^+= \frac{1}{2}$ I obtain a shock speed of $s=\frac{14}{9}.$ Is this is so, the solution I obtain is $ w(x,t) = 2$ for $x<\frac{14t}{9}$ and $w(x,t) = 1/2$ for $ x> \frac{14t}{9}.$ Plugging in $w=\frac{u^2}{2}$ and solving for $u$ yields the same solution as for the first problem but with a different shock speed.
Furthermore, I am not sure of how to explain why their discontinuous solutions are different?