For a smooth solution, the first equation is . Multiplying it by and adding times the second equation givesThus the appropriate shallow water equations conservation variables and flux areUse this conservative extension to define a weak solution across . A jump contributes to and to . Cancellation of the singular parts gives the Rankine-Hugoniot conditionsEquivalently this follows by integrating each conservation law over a thin space-time control region crossing the discontinuity.
The conservative extension is essential here. Piecewise smoothness by itself does not imply any jump law. Moreover the smooth second equation can also be written ; imposing that different conservation law distributionally would give a different shock condition. Weak conservation laws depend on conserved variables. The requested jump law specifically selects mass and momentum , and this is the extension used below.