**Step 6: Passage to the limit in the weak formulation.** We must show that $u$ satisfies the weak formulation. Fix an index $\ell \in \mathbb{N}$ and a smooth time function $\varphi \in C^1([0, T])$ with $\varphi(T) = 0$. For every $m \ge \ell$, the Galerkin equation holds with test function $w_\ell$:
\begin{align*}
((u_m)_t, w_\ell)_{L^2}\, + B[u_m, w_\ell; t] = f(t)(w_\ell) \quad \text{for a.e. } t.
\end{align*}
Multiply both sides by $\varphi(t)$ and integrate over $[0, T]$. Integrate the time derivative term by parts: since $((u_m)_t, w_\ell)_{L^2} = \frac{d}{dt}(u_m, w_\ell)_{L^2}$,
\begin{align*}
\int_0^T \frac{d}{dt}(u_m, w_\ell)_{L^2}\, \varphi(t)\, dt = \bigl[(u_m, w_\ell)_{L^2}\, \varphi\bigr]_0^T - \int_0^T (u_m, w_\ell)_{L^2}\, \varphi'(t)\, dt.
\end{align*}
The boundary term at $t = T$ vanishes because $\varphi(T) = 0$. The boundary term at $t = 0$ is $-(u_m(0), w_\ell)_{L^2}\, \varphi(0) = -(P_m g, w_\ell)_{L^2}\, \varphi(0)$. For $m \ge \ell$, $(P_m g, w_\ell) = (g, w_\ell)$ since $w_\ell \in \operatorname{span}\{w_1, \ldots, w_m\}$. So the integrated Galerkin equation is:
\begin{align*}
-\int_0^T (u_m, w_\ell)_{L^2}\, \varphi'\, dt + \int_0^T B[u_m, w_\ell; t]\, \varphi\, dt = \int_0^T f(t)(w_\ell)\, \varphi\, dt + (g, w_\ell)_{L^2}\, \varphi(0). \tag{G$_m$}
\end{align*}
We now pass $m \to \infty$ in each term of (G$_m$):