# Trace operator

In mathematics, the trace operator extends the notion of the restriction of a function to the boundary of its domain to "generalized" functions in a Sobolev space. This is particularly important for the study of partial differential equations with prescribed boundary conditions (boundary value problems), where weak solutions may not be regular enough to satisfy the boundary conditions in the classical sense of functions.

## Motivation

On a bounded, smooth domain Ω⊂R$^n${\textstyle \Omega \subset \mathbb {R} ^{n}}, consider the problem of solving Poisson's equation with inhomogeneous Dirichlet boundary conditions:
    ${\begin{alignedat}{2}-\Delta u&=f&\quad &{\text{in }}\Omega ,\\u&=g&&{\text{on }}\partial \Omega \end{alignedat}}$
with given functions f{\textstyle f} and g{\textstyle g} with regularity discussed in the application section below. The weak solution u∈H$^1$(Ω){\textstyle u\in H^{1}(\Omega )} of this equation must satisfy
    $\int _{\Omega }\nabla u\cdot \nabla \varphi \,\mathrm {d} x=\int _{\Omega }f\varphi \,\mathrm {d} x$ for all φ∈H$_0$$^1$(Ω){\textstyle \varphi \in H_{0}^{1}(\Omega )}.
The H$^1$(Ω){\textstyle H^{1}(\Omega )}-regularity of u{\textstyle u} is sufficient for the well-definedness of this integral equation. It is not apparent, however, in which sense u{\textstyle u} can satisfy the boundary condition u=g{\textstyle u=g} on ∂Ω{\textstyle \partial \Omega }: by definition, u∈H$^1$(Ω)⊂L$^2$(Ω){\textstyle u\in H^{1}(\Omega )\subset L^{2}(\Omega )} is an equivalence class of functions which can have arbitrary values on ∂Ω{\textstyle \partial \Omega } since this is a null set with respect to the n-dimensional Lebesgue measure.
If Ω⊂R$^1${\textstyle \Omega \subset \mathbb {R} ^{1}} there holds H$^1$(Ω)↪C$^0$(Ω$^¯$){\textstyle H^{1}(\Omega )\hookrightarrow C^{0}({\bar {\Omega }})} by Sobolev's embedding theorem, such that u{\textstyle u} can satisfy the boundary condition in the classical sense, i.e. the restriction of u{\textstyle u} to ∂Ω{\textstyle \partial \Omega } agrees with the function g{\textstyle g} (more precisely: there exists a representative of u{\textstyle u} in C(Ω$^¯$){\textstyle C({\bar {\Omega }})} with this property). For Ω⊂R$^n${\textstyle \Omega \subset \mathbb {R} ^{n}} with n>1{\textstyle n>1} such an embedding does not exist and the trace operator T{\textstyle T} presented here must be used to give meaning to u|$_{∂Ω}${\textstyle u|_{\partial \Omega }}. Then u∈H$^1$(Ω){\textstyle u\in H^{1}(\Omega )} with Tu=g{\textstyle Tu=g} is called a weak solution to the boundary value problem if the integral equation above is satisfied. For the definition of the trace operator to be reasonable, there must hold Tu=u|$_{∂Ω}${\textstyle Tu=u|_{\partial \Omega }} for sufficiently regular u{\textstyle u}.

## Trace theorem

The trace operator can be defined for functions in the Sobolev spaces W$^{1, p}$(Ω){\textstyle W^{1, p}(\Omega )} with 1≤p<∞{\textstyle 1\leq p<\infty }, see the section below for possible extensions of the trace to other spaces. Let Ω⊂R$^n${\textstyle \Omega \subset \mathbb {R} ^{n}} for n∈N{\textstyle n\in \mathbb {N} } be a bounded domain with Lipschitz boundary. Then there exists a bounded linear trace operator
    $T\colon W^{1,p}(\Omega )\to L^{p}(\partial \Omega )$
such that T{\textstyle T} extends the classical trace, i.e.
    $Tu=u|_{\partial \Omega }$ for all u∈W$^{1, p}$(Ω)∩C(Ω$^¯$){\textstyle u\in W^{1, p}(\Omega )\cap C({\bar {\Omega }})}.
The continuity of T{\textstyle T} implies that
    $\|Tu\|_{L^{p}(\partial \Omega )}\leq C\|u\|_{W^{1,p}(\Omega )}$ for all u∈W$^{1, p}$(Ω){\textstyle u\in W^{1, p}(\Omega )}
with constant only depending on p{\textstyle p} and Ω{\textstyle \Omega }. The function Tu{\textstyle Tu} is called trace of u{\textstyle u} and is often simply denoted by u|$_{∂Ω}${\textstyle u|_{\partial \Omega }}. Other common symbols for T{\textstyle T} include tr{\textstyle tr} and γ{\textstyle \gamma }.

### Construction

This paragraph follows Evans, where more details can be found, and assumes that Ω{\textstyle \Omega } has a C$^1${\textstyle C^{1}}-boundary. A proof (of a stronger version) of the trace theorem for Lipschitz domains can be found in Gagliardo. On a C$^1${\textstyle C^{1}}-domain, the trace operator can be defined as continuous linear extension of the operator
    $T:C^{\infty }({\bar {\Omega }})\to L^{p}(\partial \Omega )$
to the space W$^{1, p}$(Ω){\textstyle W^{1, p}(\Omega )}. By density of C$^∞$(Ω$^¯$){\textstyle C^{\infty }({\bar {\Omega }})} in W$^{1, p}$(Ω){\textstyle W^{1, p}(\Omega )} such an extension is possible if T{\textstyle T} is continuous with respect to the W$^{1, p}$(Ω){\textstyle W^{1, p}(\Omega )}-norm. The proof of this, i.e. that there exists C>0{\textstyle C>0} (depending on Ω{\textstyle \Omega } and p{\textstyle p}) such that
    $\|Tu\|_{L^{p}(\partial \Omega )}\leq C\|u\|_{W^{1,p}(\Omega )}$ for all $u\in C^{\infty }({\bar {\Omega }}).$
is the central ingredient in the construction of the trace operator. A local variant of this estimate for C$^1$(Ω$^¯$){\textstyle C^{1}({\bar {\Omega }})}-functions is first proven for a locally flat boundary using the divergence theorem. By transformation, a general C$^1${\textstyle C^{1}}-boundary can be locally straightened to reduce to this case, where the C$^1${\textstyle C^{1}}-regularity of the transformation requires that the local estimate holds for C$^1$(Ω$^¯$){\textstyle C^{1}({\bar {\Omega }})}-functions.
With this continuity of the trace operator in C$^∞$(Ω$^¯$){\textstyle C^{\infty }({\bar {\Omega }})} an extension to W$^{1, p}$(Ω){\textstyle W^{1, p}(\Omega )} exists by abstract arguments and Tu{\textstyle Tu} for u∈W$^{1, p}$(Ω){\textstyle u\in W^{1, p}(\Omega )} can be characterized as follows. Let u$_k$∈C$^∞$(Ω$^¯$){\textstyle u_{k}\in C^{\infty }({\bar {\Omega }})} be a sequence approximating u∈W$^{1, p}$(Ω){\textstyle u\in W^{1, p}(\Omega )} by density. By the proven continuity of T{\textstyle T} in C$^∞$(Ω$^¯$){\textstyle C^{\infty }({\bar {\Omega }})} the sequence u$_k$|$_{∂Ω}${\textstyle u_{k}|_{\partial \Omega }} is a Cauchy sequence in L$^p$(∂Ω){\textstyle L^{p}(\partial \Omega )} and Tu=lim$_{k→∞}$u$_k$|$_{∂Ω}${\textstyle Tu=\lim _{k\to \infty }u_{k}|_{\partial \Omega }} with limit taken in L$^p$(∂Ω){\textstyle L^{p}(\partial \Omega )}.
The extension property Tu=u|$_{∂Ω}${\textstyle Tu=u|_{\partial \Omega }} holds for u∈C$^∞$(Ω$^¯$){\textstyle u\in C^{\infty }({\bar {\Omega }})} by construction, but for any u∈W$^{1, p}$(Ω)∩C(Ω$^¯$){\textstyle u\in W^{1, p}(\Omega )\cap C({\bar {\Omega }})} there exists a sequence u$_k$∈C$^∞$(Ω$^¯$){\textstyle u_{k}\in C^{\infty }({\bar {\Omega }})} which converges uniformly on Ω$^¯${\textstyle {\bar {\Omega }}} to u{\textstyle u}, verifying the extension property on the larger set W$^{1, p}$(Ω)∩C(Ω$^¯$){\textstyle W^{1, p}(\Omega )\cap C({\bar {\Omega }})}.
* ↑ C$^k$C^{k} boundary: We say ∂U\partial U is C$^k$C^{k} if for each point x$^0$∈∂Ux^{0}\in \partial U there exist r>0r>0 and a C$^k$C^{k} function γ:R$^{n−1}$→R\gamma :R^{n-1}\rightarrow R such that—upon relabeling and reorienting the coordinate axes if necessary-we have: U∩B(x$^0$, r)={x∈B(x$^0$, r)|x$_n$>γ(x$_1$, …, x$_{n−1}$)}U\cap B(x^{0}, r)=\{x\in B(x^{0}, r)|x_{n}>\gamma (x_{1}, \dots , x_{n-1})\}

### The case p = ∞

If Ω{\textstyle \Omega } is bounded and has a C$^1${\textstyle C^{1}}-boundary then by Morrey's inequality there exists a continuous embedding W$^{1, ∞}$(Ω)↪C$^{0, 1}$(Ω){\textstyle W^{1, \infty }(\Omega )\hookrightarrow C^{0, 1}(\Omega )}, where C$^{0, 1}$(Ω){\textstyle C^{0, 1}(\Omega )} denotes the space of Lipschitz continuous functions. In particular, any function u∈W$^{1, ∞}$(Ω){\textstyle u\in W^{1, \infty }(\Omega )} has a classical trace u|$_{∂Ω}$∈C(∂Ω){\textstyle u|_{\partial \Omega }\in C(\partial \Omega )} and there holds
    $\|u|_{\partial \Omega }\|_{C(\partial \Omega )}\leq \|u\|_{C^{0,1}(\Omega )}\leq C\|u\|_{W^{1,\infty }(\Omega )}.$

## Functions with trace zero

The Sobolev spaces W$_0$$^{1, p}$(Ω){\textstyle W_{0}^{1, p}(\Omega )} for 1≤p<∞{\textstyle 1\leq p<\infty } are defined as the closure of the set of compactly supported test functions C$_c$$^∞$(Ω){\textstyle C_{c}^{\infty }(\Omega )} with respect to the W$^{1, p}$(Ω){\textstyle W^{1, p}(\Omega )}-norm. The following alternative characterization holds:
    $W_{0}^{1,p}(\Omega )=\{u\in W^{1,p}(\Omega )\mid Tu=0\}=\ker(T\colon W^{1,p}(\Omega )\to L^{p}(\partial \Omega )),$
where ker⁡(T){\textstyle \ker(T)} is the kernel of T{\textstyle T}, i.e. W$_0$$^{1, p}$(Ω){\textstyle W_{0}^{1, p}(\Omega )} is the subspace of functions in W$^{1, p}$(Ω){\textstyle W^{1, p}(\Omega )} with trace zero.

## Image of the trace operator
### For p > 1

The trace operator is not surjective onto L$^p$(∂Ω){\textstyle L^{p}(\partial \Omega )} if p>1{\textstyle p>1}, i.e. not every function in L$^p$(∂Ω){\textstyle L^{p}(\partial \Omega )} is the trace of a function in W$^{1, p}$(Ω){\textstyle W^{1, p}(\Omega )}. As elaborated below the image consists of functions which satisfy an L$^p${\textstyle L^{p}}-version of Hölder continuity.

#### Abstract characterization

An abstract characterization of the image of T{\textstyle T} can be derived as follows. By the isomorphism theorems there holds
    $T(W^{1,p}(\Omega ))\cong W^{1,p}(\Omega )/\ker(T\colon W^{1,p}(\Omega )\to L^{p}(\partial \Omega ))=W^{1,p}(\Omega )/W_{0}^{1,p}(\Omega )$
where X/N{\textstyle X/N} denotes the quotient space of the Banach space X{\textstyle X} by the subspace N⊂X{\textstyle N\subset X} and the last identity follows from the characterization of W$_0$$^{1, p}$(Ω){\textstyle W_{0}^{1, p}(\Omega )} from above. Equipping the quotient space with the quotient norm defined by
    $\|u\|_{W^{1,p}(\Omega )/W_{0}^{1,p}(\Omega )}=\inf _{u_{0}\in W_{0}^{1,p}(\Omega )}\|u-u_{0}\|_{W^{1,p}(\Omega )}$
the trace operator T{\textstyle T} is then a surjective, bounded linear operator
    $T\colon W^{1,p}(\Omega )\to W^{1,p}(\Omega )/W_{0}^{1,p}(\Omega )$.

#### Characterization using Sobolev–Slobodeckij spaces

A more concrete representation of the image of T{\textstyle T} can be given using Sobolev-Slobodeckij spaces which generalize the concept of Hölder continuous functions to the L$^p${\textstyle L^{p}}-setting. Since ∂Ω{\textstyle \partial \Omega } is a (n-1)-dimensional Lipschitz manifold embedded into R$^n${\textstyle \mathbb {R} ^{n}} an explicit characterization of these spaces is technically involved. For simplicity consider first a planar domain Ω$^′$⊂R$^{n−1}${\textstyle \Omega '\subset \mathbb {R} ^{n-1}}. For v∈L$^p$(Ω$^′$){\textstyle v\in L^{p}(\Omega ')} define the (possibly infinite) norm
    $\|v\|_{W^{1-1/p,p}(\Omega ')}=\left(\|v\|_{L^{p}(\Omega ')}^{p}+\int _{\Omega '\times \Omega '}{\frac {|v(x)-v(y)|^{p}}{|x-y|^{(1-1/p)p+(n-1)}}}\,\mathrm {d} (x,y)\right)^{1/p}$
which generalizes the Hölder condition |v(x)−v(y)|≤C|x−y|$^{1−1/p}${\textstyle |v(x)-v(y)|\leq C|x-y|^{1-1/p}}. Then
    $W^{1-1/p,p}(\Omega ')=\left\{v\in L^{p}(\Omega ')\;\mid \;\|v\|_{W^{1-1/p,p}(\Omega ')}<\infty \right\}$
equipped with the previous norm is a Banach space (a general definition of W$^{s, p}$(Ω$^′$){\textstyle W^{s, p}(\Omega ')} for non-integer s>0{\textstyle s>0} can be found in the article for Sobolev-Slobodeckij spaces). For the (n-1)-dimensional Lipschitz manifold ∂Ω{\textstyle \partial \Omega } define W$^{1−1/p, p}$(∂Ω){\textstyle W^{1-1/p, p}(\partial \Omega )} by locally straightening ∂Ω{\textstyle \partial \Omega } and proceeding as in the definition of W$^{1−1/p, p}$(Ω$^′$){\textstyle W^{1-1/p, p}(\Omega ')}.
The space W$^{1−1/p, p}$(∂Ω){\textstyle W^{1-1/p, p}(\partial \Omega )} can then be identified as the image of the trace operator and there holds that
    $T\colon W^{1,p}(\Omega )\to W^{1-1/p,p}(\partial \Omega )$
is a surjective, bounded linear operator.

### For p = 1

For p=1{\textstyle p=1} the image of the trace operator is L$^1$(∂Ω){\textstyle L^{1}(\partial \Omega )} and there holds that
    $T\colon W^{1,1}(\Omega )\to L^{1}(\partial \Omega )$
is a surjective, bounded linear operator.

## Right-inverse: trace extension operator

The trace operator is not injective since multiple functions in W$^{1, p}$(Ω){\textstyle W^{1, p}(\Omega )} can have the same trace (or equivalently, W$_0$$^{1, p}$(Ω)≠0{\textstyle W_{0}^{1, p}(\Omega )\neq 0}). The trace operator has however a well-behaved right-inverse, which extends a function defined on the boundary to the whole domain. Specifically, for 1<p<∞{\textstyle 1<p<\infty } there exists a bounded, linear trace extension operator
    $E\colon W^{1-1/p,p}(\partial \Omega )\to W^{1,p}(\Omega )$,
using the Sobolev-Slobodeckij characterization of the trace operator's image from the previous section, such that
    $T(Ev)=v$ for all v∈W$^{1−1/p, p}$(∂Ω){\textstyle v\in W^{1-1/p, p}(\partial \Omega )}
and, by continuity, there exists C>0{\textstyle C>0} with
    $\|Ev\|_{W^{1,p}(\Omega )}\leq C\|v\|_{W^{1-1/p,p}(\partial \Omega )}$.
Notable is not the mere existence but the linearity and continuity of the right inverse. This trace extension operator must not be confused with the whole-space extension operators W$^{1, p}$(Ω)→W$^{1, p}$(R$^n$){\textstyle W^{1, p}(\Omega )\to W^{1, p}(\mathbb {R} ^{n})} which play a fundamental role in the theory of Sobolev spaces.

## Extension to other spaces
### Higher derivatives

Many of the previous results can be extended to W$^{m, p}$(Ω){\textstyle W^{m, p}(\Omega )} with higher differentiability m=2, 3, …{\textstyle m=2, 3, \ldots } if the domain is sufficiently regular. Let N{\textstyle N} denote the exterior unit normal field on ∂Ω{\textstyle \partial \Omega }. Since u|$_{∂Ω}${\textstyle u|_{\partial \Omega }} can encode differentiability properties in tangential direction only the normal derivative ∂$_N$u|$_{∂Ω}${\textstyle \partial _{N}u|_{\partial \Omega }} is of additional interest for the trace theory for m=2{\textstyle m=2}. Similar arguments apply to higher-order derivatives for m>2{\textstyle m>2}.
Let 1<p<∞{\textstyle 1<p<\infty } and Ω⊂R$^n${\textstyle \Omega \subset \mathbb {R} ^{n}} be a bounded domain with C$^{m, 1}${\textstyle C^{m, 1}}-boundary. Then there exists a surjective, bounded linear higher-order trace operator
    $T_{m}\colon W^{m,p}(\Omega )\to \prod _{l=0}^{m-1}W^{m-l-1/p,p}(\partial \Omega )$
with Sobolev-Slobodeckij spaces W$^{s, p}$(∂Ω){\textstyle W^{s, p}(\partial \Omega )} for non-integer s>0{\textstyle s>0} defined on ∂Ω{\textstyle \partial \Omega } through transformation to the planar case W$^{s, p}$(Ω$^′$){\textstyle W^{s, p}(\Omega ')} for Ω$^′$⊂R$^{n−1}${\textstyle \Omega '\subset \mathbb {R} ^{n-1}}, whose definition is elaborated in the article on Sobolev-Slobodeckij spaces. The operator T$_m${\textstyle T_{m}} extends the classical normal traces in the sense that
    $T_{m}u=\left(u|_{\partial \Omega },\partial _{N}u|_{\partial \Omega },\ldots ,\partial _{N}^{m-1}u|_{\partial \Omega }\right)$ for all u∈W$^{m, p}$(Ω)∩C$^{m−1}$(Ω$^¯$).{\textstyle u\in W^{m, p}(\Omega )\cap C^{m-1}({\bar {\Omega }}).}
Furthermore, there exists a bounded, linear right-inverse of T$_m${\textstyle T_{m}}, a higher-order trace extension operator
    $E_{m}\colon \prod _{l=0}^{m-1}W^{m-l-1/p,p}(\partial \Omega )\to W^{m,p}(\Omega )$.
Finally, the spaces W$_0$$^{m, p}$(Ω){\textstyle W_{0}^{m, p}(\Omega )}, the completion of C$_c$$^∞$(Ω){\textstyle C_{c}^{\infty }(\Omega )} in the W$^{m, p}$(Ω){\textstyle W^{m, p}(\Omega )}-norm, can be characterized as the kernel of T$_m${\textstyle T_{m}}, i.e.
    $W_{0}^{m,p}(\Omega )=\{u\in W^{m,p}(\Omega )\mid T_{m}u=0\}$.

### Less regular spaces
#### No trace in L$^p$

There is no sensible extension of the concept of traces to L$^p$(Ω){\textstyle L^{p}(\Omega )} for 1≤p<∞{\textstyle 1\leq p<\infty } since any bounded linear operator which extends the classical trace must be zero on the space of test functions C$_c$$^∞$(Ω){\textstyle C_{c}^{\infty }(\Omega )}, which is a dense subset of L$^p$(Ω){\textstyle L^{p}(\Omega )}, implying that such an operator would be zero everywhere.

#### Generalized normal trace

Let div⁡v{\textstyle \operatorname {div} v} denote the distributional divergence of a vector field v{\textstyle v}. For 1<p<∞{\textstyle 1<p<\infty } and bounded Lipschitz domain Ω⊂R$^n${\textstyle \Omega \subset \mathbb {R} ^{n}} define
    $E_{p}(\Omega )=\{v\in (L^{p}(\Omega ))^{n}\mid \operatorname {div} v\in L^{p}(\Omega )\}$
which is a Banach space with norm
    $\|v\|_{E_{p}(\Omega )}=\left(\|v\|_{L^{p}(\Omega )}^{p}+\|\operatorname {div} v\|_{L^{p}(\Omega )}^{p}\right)^{1/p}$.
Let N{\textstyle N} denote the exterior unit normal field on ∂Ω{\textstyle \partial \Omega }. Then there exists a bounded linear operator
    $T_{N}\colon E_{p}(\Omega )\to (W^{1-1/q,q}(\partial \Omega ))'$,
where q=p/(p−1){\textstyle q=p/(p-1)} is the conjugate exponent to p{\textstyle p} and X$^′${\textstyle X'} denotes the continuous dual space to a Banach space X{\textstyle X}, such that T$_N${\textstyle T_{N}} extends the normal trace (v⋅N)|$_{∂Ω}${\textstyle (v\cdot N)|_{\partial \Omega }} for v∈(C$^∞$(Ω$^¯$))$^n${\textstyle v\in (C^{\infty }({\bar {\Omega }}))^{n}} in the sense that
    $T_{N}v={\bigl \\varphi \in W^{1-1/q,q}(\partial \Omega )\mapsto \int _{\partial \Omega }\varphi v\cdot N\,\mathrm {d} S{\bigr \}}$.
The value of the normal trace operator (T$_N$v)(φ){\textstyle (T_{N}v)(\varphi )} for φ∈W$^{1−1/q, q}$(∂Ω){\textstyle \varphi \in W^{1-1/q, q}(\partial \Omega )} is defined by application of the divergence theorem to the vector field w=Eφv{\textstyle w=E\varphi \, v} where E{\textstyle E} is the trace extension operator from above.
Application. Any weak solution u∈H$^1$(Ω){\textstyle u\in H^{1}(\Omega )} to −Δu=f∈L$^2$(Ω){\textstyle -\Delta u=f\in L^{2}(\Omega )} in a bounded Lipschitz domain Ω⊂R$^n${\textstyle \Omega \subset \mathbb {R} ^{n}} has a normal derivative in the sense of T$_N$∇u∈(W$^{1/2, 2}$(∂Ω))$^∗${\textstyle T_{N}\nabla u\in (W^{1/2, 2}(\partial \Omega ))^{*}}. This follows as ∇u∈E$_2$(Ω){\textstyle \nabla u\in E_{2}(\Omega )} since ∇u∈L$^2$(Ω){\textstyle \nabla u\in L^{2}(\Omega )} and div⁡(∇u)=Δu=−f∈L$^2$(Ω){\textstyle \operatorname {div} (\nabla u)=\Delta u=-f\in L^{2}(\Omega )}. This result is notable since in Lipschitz domains in general u∉H$^2$(Ω){\textstyle u\not \in H^{2}(\Omega )}, such that ∇u{\textstyle \nabla u} may not lie in the domain of the trace operator T{\textstyle T}.

## Application

The theorems presented above allow a closer investigation of the boundary value problem
    ${\begin{alignedat}{2}-\Delta u&=f&\quad &{\text{in }}\Omega ,\\u&=g&&{\text{on }}\partial \Omega \end{alignedat}}$
on a Lipschitz domain Ω⊂R$^n${\textstyle \Omega \subset \mathbb {R} ^{n}} from the motivation. Since only the Hilbert space case p=2{\textstyle p=2} is investigated here, the notation H$^1$(Ω){\textstyle H^{1}(\Omega )} is used to denote W$^{1, 2}$(Ω){\textstyle W^{1, 2}(\Omega )} etc. As stated in the motivation, a weak solution u∈H$^1$(Ω){\textstyle u\in H^{1}(\Omega )} to this equation must satisfy Tu=g{\textstyle Tu=g} and
    $\int _{\Omega }\nabla u\cdot \nabla \varphi \,\mathrm {d} x=\int _{\Omega }f\varphi \,\mathrm {d} x$ for all φ∈H$_0$$^1$(Ω){\textstyle \varphi \in H_{0}^{1}(\Omega )},
where the right-hand side must be interpreted for f∈H$^{−1}$(Ω)=(H$_0$$^1$(Ω))$^′${\textstyle f\in H^{-1}(\Omega )=(H_{0}^{1}(\Omega ))'} as a duality product with the value f(φ){\textstyle f(\varphi )}.

### Existence and uniqueness of weak solutions

The characterization of the range of T{\textstyle T} implies that for Tu=g{\textstyle Tu=g} to hold the regularity g∈H$^{1/2}$(∂Ω){\textstyle g\in H^{1/2}(\partial \Omega )} is necessary. This regularity is also sufficient for the existence of a weak solution, which can be seen as follows. By the trace extension theorem there exists Eg∈H$^1$(Ω){\textstyle Eg\in H^{1}(\Omega )} such that T(Eg)=g{\textstyle T(Eg)=g}. Defining u$_0${\textstyle u_{0}} by u$_0$=u−Eg{\textstyle u_{0}=u-Eg} we have that Tu$_0$=Tu−T(Eg)=0{\textstyle Tu_{0}=Tu-T(Eg)=0} and thus u$_0$∈H$_0$$^1$(Ω){\textstyle u_{0}\in H_{0}^{1}(\Omega )} by the characterization of H$_0$$^1$(Ω){\textstyle H_{0}^{1}(\Omega )} as space of trace zero. The function u$_0$∈H$_0$$^1$(Ω){\textstyle u_{0}\in H_{0}^{1}(\Omega )} then satisfies the integral equation
    $\int _{\Omega }\nabla u_{0}\cdot \nabla \varphi \,\mathrm {d} x=\int _{\Omega }\nabla (u-Eg)\cdot \nabla \varphi \,\mathrm {d} x=\int _{\Omega }f\varphi \,\mathrm {d} x-\int _{\Omega }\nabla Eg\cdot \nabla \varphi \,\mathrm {d} x$ for all φ∈H$_0$$^1$(Ω){\textstyle \varphi \in H_{0}^{1}(\Omega )}.
Thus the problem with inhomogeneous boundary values for u{\textstyle u} could be reduced to a problem with homogeneous boundary values for u$_0${\textstyle u_{0}}, a technique which can be applied to any linear differential equation. By the Riesz representation theorem there exists a unique solution u$_0${\textstyle u_{0}} to this problem. By uniqueness of the decomposition u=u$_0$+Eg{\textstyle u=u_{0}+Eg}, this is equivalent to the existence of a unique weak solution u{\textstyle u} to the inhomogeneous boundary value problem.

### Continuous dependence on the data

It remains to investigate the dependence of u{\textstyle u} on f{\textstyle f} and g{\textstyle g}. Let c$_1$, c$_2$, …>0{\textstyle c_{1}, c_{2}, \ldots >0} denote constants independent of f{\textstyle f} and g{\textstyle g}. By continuous dependence of u$_0${\textstyle u_{0}} on the right-hand side of its integral equation, there holds
    $\|u_{0}\|_{H_{0}^{1}(\Omega )}\leq c_{1}\left(\|f\|_{H^{-1}(\Omega )}+\|Eg\|_{H^{1}(\Omega )}\right)$
and thus, using that ‖u$_0$‖$_{H1(Ω)}$≤c$_2$‖u$_0$‖$_{H01(Ω)}${\textstyle \|u_{0}\|_{H^{1}(\Omega )}\leq c_{2}\|u_{0}\|_{H_{0}^{1}(\Omega )}} and ‖Eg‖$_{H1(Ω)}$≤c$_3$‖g‖$_{H1/2(Ω)}${\textstyle \|Eg\|_{H^{1}(\Omega )}\leq c_{3}\|g\|_{H^{1/2}(\Omega )}} by continuity of the trace extension operator, it follows that
    ${\begin{aligned}\|u\|_{H^{1}(\Omega )}&\leq \|u_{0}\|_{H^{1}(\Omega )}+\|Eg\|_{H^{1}(\Omega )}\leq c_{1}c_{2}\|f\|_{H^{-1}(\Omega )}+(c_{3}+c_{1}c_{2})\|Eg\|_{H^{1}(\Omega )}\\&\leq c_{4}\left(\|f\|_{H^{-1}(\Omega )}+\|g\|_{H^{1/2}(\partial \Omega )}\right)\end{aligned}}$
and the solution map
    $H^{-1}(\Omega )\times H^{1/2}(\partial \Omega )\ni (f,g)\mapsto u\in H^{1}(\Omega )$
is therefore continuous.