[step:Verify the entropy identity for the centered rarefaction]Assume $u_L<u_R$. Strict convexity of $f$ implies that $f':\mathbb{R}\to\mathbb{R}$ is strictly increasing, because for $a<b<c$ the slopes of the two secants satisfy
\begin{align*}
\frac{f(b)-f(a)}{b-a}\leq\frac{f(c)-f(a)}{c-a}\leq\frac{f(c)-f(b)}{c-b}.
\end{align*}
Since $f\in C^2(\mathbb{R})$, the map $f'$ is continuous. Hence the restriction of $f'$ to $[u_L,u_R]$ has a continuous inverse from $[f'(u_L),f'(u_R)]$ to $[u_L,u_R]$.
Define the self-similar profile $U:\mathbb{R}\to\mathbb{R}$ by setting $U(\xi)=u_L$ for $\xi\leq f'(u_L)$, $U(\xi)=(f'|_{[u_L,u_R]})^{-1}(\xi)$ for $f'(u_L)\leq\xi\leq f'(u_R)$, and $U(\xi)=u_R$ for $\xi\geq f'(u_R)$. Then the rarefaction is the continuous map $u:\mathbb{R}\times(0,\infty)\to\mathbb{R}$ given by $u(x,t)=U(x/t)$.
Let $A:\mathbb{R}\to[0,\infty)$ and $B:\mathbb{R}\to\mathbb{R}$ be defined by $A(\xi)=\eta_k(U(\xi))$ and $B(\xi)=q_k(U(\xi))$. It suffices to prove, in distributions on $\mathbb{R}$,
\begin{align*}
\frac{d}{d\xi}(B(\xi)-\xi A(\xi))=-A(\xi).
\end{align*}
Indeed, after the change of variables $x=t\xi$, the identity above is exactly the weak form of $\partial_t\eta_k(u)+\partial_xq_k(u)=0$ on $\mathbb{R}\times(0,\infty)$.
The function $U$ is monotone. The maps $\eta_k$ and $q_k$ are Lipschitz on the compact interval with endpoints $u_L$ and $u_R$, because $f$ is $C^1$ there and the two one-sided formulas for $q_k$ agree at $k$. Hence $A$ and $B$ have bounded variation on compact intervals. Split the real line at the fan endpoints and, if $k\in(u_L,u_R)$, at the single point $\xi=f'(k)$. On each resulting open interval the sign of $U-k$ is fixed, so $\eta_k$ and $q_k$ are $C^1$ functions of $U$ there. The Stieltjes chain rule for $C^1$ functions composed with the monotone function $U$ therefore applies on each such interval, including the absolutely continuous and singular continuous parts of the measure $dU$. If $U<k$, then
\begin{align*}
B(\xi)-\xi A(\xi)=-f(U(\xi))+f(k)-\xi(k-U(\xi)),
\end{align*}
and using $\xi=f'(U(\xi))$ on the fan gives
\begin{align*}
d(B-\xi A)=(U(\xi)-k)\,d\mathcal{L}^1(\xi)=-A(\xi)\,d\mathcal{L}^1(\xi).
\end{align*}
If $U>k$, then
\begin{align*}
B(\xi)-\xi A(\xi)=f(U(\xi))-f(k)-\xi(U(\xi)-k),
\end{align*}
and again $\xi=f'(U(\xi))$ yields
\begin{align*}
d(B-\xi A)=(k-U(\xi))\,d\mathcal{L}^1(\xi)=-A(\xi)\,d\mathcal{L}^1(\xi).
\end{align*}
On the constant regions outside the fan, $B-\xi A$ is affine with derivative $-A$. The preceding open intervals account for all non-atomic parts of the [distributional derivative](/page/Distributional%20Derivative). At any interface where the formula for $U$ changes, $U$ is continuous, so $B-\xi A$ has no jump atom. If $k\in(u_L,u_R)$, then at the point $\xi=f'(k)$ the two displayed formulas agree and both give $B-\xi A=0$, so there is no atom there either. Therefore $d(B-\xi A)=-A\,d\mathcal{L}^1$ on all of $\mathbb{R}$, which proves $\partial_t\eta_k(u)+\partial_xq_k(u)=0$ in distributions.[/step]