First we construct the operator E by assuming that u∈C∞(U).
Fix x0∈∂U and let Φ:x↦y be a C1 mapping with Φ(x0)=0 and its inverse Ψ such that
Φ(∂U∩Br1(x0))=Br(0)∩{yn=0}andΦ(U∩Br1(x0))=Br(0)∩{yn>0}
for some r,r1>0. We write y=Φ(x), u′(y)=u(Ψ(y)) and denote
{B+=Br(0)∩{yn≥0}⊂Φ(U)B−=Br(0)∩{yn≤0}⊂Φ(Rn∖U).
Then we define
uˉ′(y)={u′(y)−3u′(y1,⋯,yn−1,−yn)+4u′(y1,⋯,yn−1,−2yn)if y∈B+if y∈B−.
uˉ′∈C1(Br(0)).
Denote u−=uˉ′∣B− and u+=uˉ′∣B+ then we observe
∂xn∂u−(x)=3∂xn∂u(x1,…,xn−1,−xn)−2∂xn∂u(x1,…,xn−1,−2xn)
hence uxn−∣xn=0=uxn+∣xn=0. Furthermore
uxi−∣xn=0=uxi+∣xn=0(1≤i≤n−1)
since u−=u+ on {xn=0}. These imply
Dαu−∣xn=0=Dαu+∣xn=0
for each ∣α∣≤1 so prove the claim.
Using these calculations we obtain
∥uˉ′∥W1,p(Br(0))≤C∥u′∥W1,p(B+)
for some constant C which does not depend on u.
Let W=Ψ(Br(0)) then we have the estimate
∥uˉ∥W1,p(W)≤C∥u∥W1,p(U).
Since ∂U is compact, there exist finitely many points xi0∈∂U (1≤i≤N) so that each open set Wi constructed from xi0 and extensions uˉ of u to Wi as above such that
∂U⊂i=1⋃NWi.
Take W0⊂⊂U so that
U⊂i=0⋃NWi
and let ζi∈Cc∞(Vi) (1≤i≤N,0≤ζi≤1) be an associated partition of unity such that
i=0∑Nζi(x)=1for all x∈U.
Let uˉ=∑i=0Nζiuˉi where uˉ0=u then we obtain the bound
∥uˉ∥W1,p(Rn)≤C∥u∥W1,p(U).
for some constant C which does not depend on u. Furthermore we can arrange suppuˉ⊂V where V⊃⊃U. Note that E is indeed linear.
So we have constructed the operator E:C∞(U)→W1,p(Rn). Hereafter we are going to extend its domain to W1,p(U), which is our desired result.
Let um∈C∞(U) such that um→u∈W1,p(U), then the previous estimate and the linearity of E imply
∥Eum−Eul∥W1,p(Rn)≤C∥um−ul∥W1,p(U)
thus Eum is a Cauchy sequence converging to Eu.