Consisder Inviscid Burgers' equation $$u_t+uu_x=0$$ Assume we are given a smooth solution $u:\mathbb R\times [0,T]\to\mathbb R$ that is periodic in $x$. meaning that for some $K>0$ we have $u(x+K,t)=u(x,t)$ for all $x\in\mathbb R$, $t\in[0,T]$. Then prove that $$\max_{x\in\mathbb R} u(x,0)-\min_{x\in\mathbb R} u(x,0)\leq \frac{K}{T}$$
Attempt. To be honest I really don't know how to prove this. Let $x$ be the point where the maximum is attained and $y$ be a point where the minimum is attained. Then we know that we can choose $x$ and $y$ such that $0\leq x-y\leq L$. Note that $$u(x,0)-u(y,0)=\int^x_y u_x(z,0)\,dz\stackrel{?}{=}\int^x_y -\frac{u_t(z,0)}{u(z,0)}\,dz $$ I wrote the last integrand as $-\frac d {dt}\log(u(z,t))|_{t=0}$ if it exists at least. But then maybe try to apply Jensen, but that doesn't give much either. I also think it can be related to the shockwave time, but I'm not sure how.
I appreciate any help/hints. Thanks in advance. $$$$