Consider an inviscid Burgers equation:
$u_t + u u_x = 0.$
With the initial data:
$ u(x,0) = \left\{ \begin{array}{ll} 0 \quad & \text{if} \quad x < 0, \\[0.5em] 1 & \text{if} \quad x > 0.\end{array} \right. $
Possible weak solutions to this problem include, for example:
$ u_1(x,t) = \left\{ \begin{array}{ll} 0 \quad & \text{if} \quad x < t/2, \\[0.5em] 1 & \text{if} \quad x > t/2.\end{array} \right. \hspace{10mm} $ $ u_2(x,t) = \left\{ \begin{array}{lll} 0 \quad & \text{if} \quad x < 0, \\[0.5em] x/t & 0 < x < t,\\[0.5em] 1 & \text{if} \quad x > t.\end{array} \right. $
Every material that provides such examples states that it is easy to check that these are both solutions of our problem. I do not see how that is done.
I know how to obtain the equation:
$ \int_{0}^\infty \int_{-\infty}^\infty [ q \phi_t + f(q) \phi_x ] dx dt + \int_{-\infty}^\infty q(x,0) \phi(x,0) dx = 0, $
But I do not see how to "test" if the weak solutions provided above satisfy this. I tried writing the solutions as Heavside functions and integrating them, but I am not sure how to handle an arbitrary test function.
I assume there are some solution I could construct that would not be the weak solution to our initial data, how to check that?
"That u defined in this way satisfies equation (2) is easy enough to check, one needs to integrate separately on the regions above and below the line x = t and use integration by parts.) A solution u of equation (2) is called a weak solution of equation (1)."
– lucidbrot Jul 06 '17 at 14:10