Consider the conservation law given by $$u_t+f(u)_x=0$$ We know that in general weak solutions are not smooth but are bounded in $L^{\infty}$ norm (they do not belong to Sobolev spaces).
However while deriving the numerical schemes most of the books say, integrating the conservation law over $(a,b) \times (t_1,t_2)$ and applying fundamental theorem of calculus we get $$\int_a^b u(x,t_1)dx - \int_a^b u(x,t_2)dx= -\int_{t_1}^{t_2} f\big(u(b,t)\big)dt+ \int_{t_1}^{t_2} f\big(u(a,t)\big)dt$$ I have the following doubts:
How can we perform integration by parts as the solution does not possess any regularity?
If a function satisfies the above integral formulation, can we say that it is a weak solution? Conversely, if $u$ is a weak solution, will it satisfy the above integral formulation? If so how to prove it? Thank you.