Solution 1:

In the present case of the inviscid Burgers' equation, the method of characteristics gives the unique solution, for short times and small smooth initial data. However, the method of characteristics fails when reaching the breaking time $t_b$ given by (see e.g. these posts (1) (2)) $$ t_b = -\frac{1}{\min u_0'(x)} \, . $$ At this time, the characteristics cross, and a shock wave (discontinuity of the solution) is generated. Here, we compute the derivatives of $u_0$ and draw the characteristics in $x$-$t$ plane for each case:

  1. $\min u_0'(x) = -\frac{3\sqrt{3}}{8}$. A shock occurs at $t_b \approx 1.54$ s.

1

  1. $\min u_0'(x) = 1$. No shock occurs for $t>0$.

2

  1. $\min u_0'(x) = -\infty$. Characteristics intersect at $t_b = 0$.

3

  1. $\min u_0'(x) = 2$. No shock occurs for $t>0$.

4