Suppose we have
$$u_t + [u^2]_x = 0,~~~~u(x,0) = \begin{cases} \sqrt{-x}, &x < 0 \\\\ 0, &x > 0 \end{cases} $$ and we want to find some solution utilizing shocks and entropy conditions.
Attempt:
Solving by the Method of Characteristics gives the implicit solution $u(x,t) = g(x - 2ut)$, for some $g$. If we parameterize by $s$ we can get characteristics of form $x = 2tg(s) + s$. Then, for $s > 0$, we clearly see
$$u(x,t) = 0, ~~~~ x > 0,$$
but for $s < 0$, we look at $g(s) = \sqrt{-s}$. So,
$$ x = 2t\sqrt{-s} + s \Rightarrow s^2 + (4t^2 - 2x)s + x^2 = 0,$$
which is a quadratic equation. Solving this gives
$$s = x - 2t^2 \pm 2t\sqrt{t^2 - x},$$
and so we have
$$u(x,t) = \sqrt{2t^2 - x \pm 2t\sqrt{t^2 - x}}, ~~~~ x - 2t^2 \pm 2t\sqrt{t^2 - x} < 0.$$
I'm struggling with how to interpret this since we have a "$\pm$". Do we treat these as two separate equations, and then check for shocks that way?
