Note that the weak limit (\rho,u) is a renormalized solution. That is,
\partial_t b(\rho)+\operatorname{div}(b(\rho)u)
+\big(b'(\rho)\rho-b(\rho)\big)\operatorname{div}u=0
holds in the sense of \mathcal{D}'((0,T)\times\mathbb{T}^3) for any b\in C^{1}(\mathbb{R}).
We regularize the above equation to obtain
\partial_t S_m(b(\rho))
+\operatorname{div}\big(S_m(b(\rho)u)\big)
+S_m\!\left(b'(\rho)\rho-b(\rho)\right) {\rm div}(S_m(u))
=R_m,
where the commutator term R_m is given by
R_m
:=S_m\!\left(b'(\rho)\rho-b(\rho)\right) {\rm div} (S_m(u))
- S_m\!\left(\big(b'(\rho)\rho-b(\rho)\big)\operatorname{div}u\right).
To derive the energy equality, we choose S_m(S_m(u)) as a test function to derive the following one
\begin{split}
\int_0^T\int_{\mathbb{T}^3}S_m(\rho^\gamma){\rm div} (S_m(u))\,dx\,dt
&=-\nu \int_0^T\int_{\mathbb{T}^3}|\nabla S_m(u)|^2\,dx\,dt
\\&-(\nu+\lambda)\int_0^T\int_{\mathbb{T}^3}|{\rm div} S_m(u)|^2\,dx\,dt.
\end{split}
We take b(\rho)=\rho^{\gamma} for (Proof), then
\partial_tS_m(\rho^{\gamma})+{\rm div}(S_m(\rho^{\gamma})u)+(\gamma-1)S_m(\rho^{\gamma}){\rm div} S_m(u)=R_m.
Thus, the left hand side of (?) will be given by
\int_0^T\int_{\mathbb{T}^3}\frac{1}{\gamma-1}\partial_tS_m(\rho^{\gamma})\,dx\,dt+\int_0^T\int_{\mathbb{T}^3}R_m\,dx\,dt.
This gives us the following one
\begin{split}&
\int_{\mathbb{T}^3}\frac{1}{\gamma-1}S_m(\rho^{\gamma})\,dx\,dt+\int_0^T\int_{\mathbb{T}^3}R_m\,dx\,dt
\\&+\nu\int_0^T \int_{\mathbb{T}^3}|\nabla S_m(u)|^2\,dx\,dt+(\nu+\lambda)\int_0^T\int_{\mathbb{T}^3}|{\rm div} S_m(u)|^2\,dx\,dt
\\&=\int_{\mathbb{T}^3}\frac{1}{\gamma-1}S_m(\rho_0^{\gamma})\,dx
\end{split}
Now let us to show that R_m \to 0 in L^1((0,T)\times\mathbb T^d). Recall that for b(\rho)=\rho^\gamma we have
\begin{split}&
R_m
:= S_m\!\big((b'(\rho)\rho-b(\rho))\big)\,\operatorname{div} S_m(u)
- S_m\!\Big(\big(b'(\rho)\rho-b(\rho)\big)\operatorname{div} u\Big)
\\&
= (\gamma-1)\Big(S_m(\rho^\gamma)\,\operatorname{div} S_m u - S_m(\rho^\gamma\,\operatorname{div} u)\Big).
\end{split}
This allows us to rewrite it as
R_m = (\gamma-1)\,\Big(
\underbrace{S_m(\rho^\gamma)\,\operatorname{div} S_m u - S_m(\rho^\gamma)\,\operatorname{div} u}_{=:A_m}
+
\underbrace{S_m(\rho^\gamma)\,\operatorname{div} u - S_m(\rho^\gamma\,\operatorname{div} u)}_{=:B_m}
\Big),
thus we only need to handle A_m and B_m to control R_m\to 0 as m goes to large.
Estimate of A_m. By Hölder in (t,x) with exponents 2–2 and the strong convergence \operatorname{div} S_m u \to \operatorname{div} u in L^2((0,T)\times\mathbb T^d),
\|A_m\|_{L^1((0,T)\times\mathbb T^d)}
\le \|S_m(\rho^\gamma)\|_{L^2((0,T)\times\mathbb T^d)}\,
\|\operatorname{div} S_m u - \operatorname{div} u\|_{L^2((0,T)\times\mathbb T^d)} \xrightarrow[m\to\infty]{} 0.
Here we used that S_m(\rho^\gamma)\to \rho^\gamma in L^2 and is uniformly bounded in L^2 thanks to Lemma 3.1 (i.e. \rho^\gamma\in L^2((0,T)\times\mathbb T^d)).
Estimate of B_m (Friedrichs commutator). We introduce f:=\rho^\gamma, and g:=\operatorname{div} u, then
f\in L^2((0,T)\times\mathbb T^d)
by Lemma 3.1, and
g\in L^2((0,T)\times\mathbb T^d)
since u\in L^2(0,T;H^1(\mathbb T^d)). The mollifiers (S_m)_{m\ge1} satisfy the standard product-commutator property: for any f\in L^p, g\in L^q with \frac1p+\frac1q=1,
\|S_m(f)\,g - S_m(fg)\|_{L^1} \xrightarrow[m\to\infty]{} 0.
Applying this with p=q=2 yields
\|B_m\|_{L^1((0,T)\times\mathbb T^d)}
= \|S_m(f)\,g - S_m(fg)\|_{L^1((0,T)\times\mathbb T^d)}
\xrightarrow[m\to\infty]{} 0.
Combining the estimates for A_m and B_m, we conclude that
\|R_m\|_{L^1((0,T)\times\mathbb T^d)} \xrightarrow[m\to\infty]{} 0,
i.e. R_m \to 0 strongly in L^1(0,T;L^1(\mathbb T^d)).
Consequently, by passing to the limit m\to\infty in (?), we are able to recover the energy equality (3.1).