[guided]The point of this step is to put the difference quotient on the smooth test function, where we can pass to the limit strongly. Fix $\varphi \in C_c^\infty(W)$ and set $K := \operatorname{supp}\varphi$. Because $K$ is compactly contained in the [open set](/page/Open%20Set) $W$, there is a number $\rho > 0$ such that translating $K$ by any vector $t e_k$ with $|t| < \rho$ keeps it inside $W$:
\begin{align*}
K + t e_k \subset W \quad \text{whenever } |t| < \rho.
\end{align*}
Now take $h \in \mathbb{R}$ with $0 < |h| < \min\{h_{0,k},\rho\}$. Since $W \subset U_{k,h}$ by hypothesis, $D_{k,h}u$ is defined on all of $W$. Starting from the pairing with the test function, we have
\begin{align*}
\int_W D_{k,h}u(x)\,\varphi(x)\,d\mathcal{L}^n(x) = \frac{1}{h}\int_W u(x + h e_k)\varphi(x)\,d\mathcal{L}^n(x) - \frac{1}{h}\int_W u(x)\varphi(x)\,d\mathcal{L}^n(x).
\end{align*}
In the first integral we use the translation change of variables $y = x + h e_k$. Translation preserves [Lebesgue measure](/page/Lebesgue%20Measure), so $d\mathcal{L}^n(y) = d\mathcal{L}^n(x)$, and the domain $W$ is translated to $W + h e_k$. Thus
\begin{align*}
\frac{1}{h}\int_W u(x + h e_k)\varphi(x)\,d\mathcal{L}^n(x) = \frac{1}{h}\int_{W + h e_k} u(y)\varphi(y - h e_k)\,d\mathcal{L}^n(y).
\end{align*}
The function $y \mapsto \varphi(y - h e_k)$ is supported in $K + h e_k$, which is contained in $W$ by the choice of $\rho$. Therefore extending the domain of this integral from $W + h e_k$ to $W$ does not change its value. Combining the two terms gives
\begin{align*}
\int_W D_{k,h}u(x)\,\varphi(x)\,d\mathcal{L}^n(x) = \int_W u(y)\,\frac{\varphi(y - h e_k) - \varphi(y)}{h}\,d\mathcal{L}^n(y).
\end{align*}
Finally define the backward difference quotient of the test function by
\begin{align*}
D_{k,-h}\varphi: W \to \mathbb{R}, \qquad y \mapsto \frac{\varphi(y - h e_k) - \varphi(y)}{-h}.
\end{align*}
Substituting this definition yields the adjoint-difference identity
\begin{align*}
\int_W D_{k,h}u(x)\,\varphi(x)\,d\mathcal{L}^n(x) = -\int_W u(y)\,D_{k,-h}\varphi(y)\,d\mathcal{L}^n(y).
\end{align*}[/guided]