[step:Control the affine part and obtain coercivity in $H^2([a,b])$]
Let $I := [a,b]$ and let $L := b-a > 0$. For $u \in H^2(I)$, define the affine map
\begin{align*}
A_u: I \to \mathbb{R}
\end{align*}
by requiring $A_u(x_1)=u(x_1)$ and $A_u(x_n)=u(x_n)$. This is well-defined because $x_1<x_n$. Explicitly,
\begin{align*}
A_u(t) = u(x_1) + \frac{u(x_n)-u(x_1)}{x_n-x_1}(t-x_1).
\end{align*}
Define the remainder map $w_u: I \to \mathbb{R}$ by
\begin{align*}
w_u = u-A_u.
\end{align*}
Then $w_u \in H^2(I)$, $w_u(x_1)=w_u(x_n)=0$, and $w_u''=u''$ in $L^2(I)$.
We first record the one-dimensional estimate needed for coercivity. If $w \in H^2(I)$ and $w(x_1)=w(x_n)=0$, then
\begin{align*}
\|w\|_{H^2(I)} \leq C_0 \|w''\|_{L^2(I)}
\end{align*}
for a constant $C_0=C_0(a,b,x_1,x_n)>0$.
Indeed, since $w \in H^2(I)$, its [weak derivative](/page/Weak%20Derivative) $w'$ has an absolutely continuous representative and
\begin{align*}
w'(t)=w'(x_1)+\int_{x_1}^t w''(r)\,d\mathcal{L}^1(r)
\end{align*}
for every $t \in I$. Also
\begin{align*}
0=w(x_n)-w(x_1)=\int_{x_1}^{x_n} w'(t)\,d\mathcal{L}^1(t).
\end{align*}
Therefore
\begin{align*}
|w'(x_1)| \leq \frac{1}{x_n-x_1}\int_{x_1}^{x_n}\left|\int_{x_1}^t w''(r)\,d\mathcal{L}^1(r)\right|d\mathcal{L}^1(t).
\end{align*}
By the [Cauchy-Schwarz inequality](/theorems/432) on $[x_1,t]$,
\begin{align*}
\left|\int_{x_1}^t w''(r)\,d\mathcal{L}^1(r)\right| \leq |t-x_1|^{1/2}\|w''\|_{L^2(I)}.
\end{align*}
Hence $|w'(x_1)| \leq C_1\|w''\|_{L^2(I)}$ for
\begin{align*}
C_1 := \frac{1}{x_n-x_1}\int_{x_1}^{x_n} |t-x_1|^{1/2}\,d\mathcal{L}^1(t).
\end{align*}
It follows that
\begin{align*}
|w'(t)| \leq (C_1+L^{1/2})\|w''\|_{L^2(I)}
\end{align*}
for all $t \in I$. Since $w(x_1)=0$,
\begin{align*}
|w(t)| \leq \int_{x_1}^t |w'(r)|\,d\mathcal{L}^1(r) \leq L(C_1+L^{1/2})\|w''\|_{L^2(I)}.
\end{align*}
Combining the bounds for $w$, $w'$, and $w''$ gives the asserted estimate with an explicit constant $C_0$ depending only on $a,b,x_1,x_n$.
Now let $(u_k)_{k=1}^\infty$ be a sequence in $H^2(I)$ such that $J_\lambda(u_k)$ is bounded. Since the data term is bounded, the real sequences $(u_k(x_1))_{k=1}^\infty$ and $(u_k(x_n))_{k=1}^\infty$ are bounded. Hence the affine functions $A_{u_k}$ are bounded in $H^2(I)$. The second-derivative term gives a bound for $\|u_k''\|_{L^2(I)}$, and the estimate above gives a bound for $w_{u_k}=u_k-A_{u_k}$ in $H^2(I)$. Therefore $(u_k)_{k=1}^\infty$ is bounded in $H^2(I)$.[/step]