(Translated by https://www.hiragana.jp/)
A Natural Deep Ritz Method for Essential Boundary Value Problems

A Natural Deep Ritz Method for Essential Boundary Value Problems

Haijun Yu hyu@lsec.cc.ac.cn Shuo Zhang szhang@lsec.cc.ac.cn LSEC, Institute of Computational Mathematics and Scientific/Engineering Computing, Academy of Mathematics and System Sciences, Chinese Academy of Sciences, Beijing 100190; University of Chinese Academy of Sciences, Beijing, 100049; People’s Republic of China
Abstract

Deep neural network approaches show promise in solving partial differential equations. However, unlike traditional numerical methods, they face challenges in enforcing essential boundary conditions. The widely adopted penalty-type methods, for example, offer a straightforward implementation but introduces additional complexity due to the need for hyper-parameter tuning; moreover, the use of a large penalty parameter can lead to artificial extra stiffness, complicating the optimization process. In this paper, we propose a novel, intrinsic approach to impose essential boundary conditions through a framework inspired by intrinsic structures. We demonstrate the effectiveness of this approach using the deep Ritz method applied to Poisson problems, with the potential for extension to more general equations and other deep learning techniques. Numerical results are provided to substantiate the efficiency and robustness of the proposed method.

keywords:
deep neural network , essential boundary value problem , deep Ritz method , penalty free , interfacial value problem
journal: arXiv

1 Introduction

In recent years, there has been a rapidly growing interest in using deep neural networks (DNNs) to solve partial differential equations (PDEs). Early attempts to apply neural networks to differential equations date back over three decades, with Hopfield neural networks [11] being employed to represent discretized solutions [17]. Soon after, methodologies were developed to construct closed-form numerical solutions using neural networks [39]. Since then, extensive research has focused on solving differential equations with various types of neural networks, including feedforward neural networks [15, 27, 16, 26], radial basis networks [25], and wavelet networks [20]. With the advancement of deep learning techniques [10, 14, 9], neural networks with substantially more hidden layers have become powerful tools. Innovations such as rectified linear unit (ReLU) functions [6], generative adversarial networks (GANs) [7], and residual networks (ResNets) [9] exemplify these advances, showcasing the strong representational capabilities of DNNs [30, 18, 19, 37, 8, 33]. These developments have spurred the creation of numerous DNN-based methods for PDEs, including the deep Galerkin method (DGM) [35], deep Ritz method (DRM) [5], physics-informed neural networks (PINNs) [31], finite neuron method (FNM) [40], weak adversarial networks (WANs) [42], and mixed residual methods (MIM) [24]. These methods have been widely adopted across various applications, successfully addressing complex problems modeled by differential equations [5, 21, 32, 2, 22, 13, 41, 3].

In the design and implementation of neural network-based methods, the imposition of boundary conditions is a critical challenge. Notably, this issue is also encountered in certain classical numerical methods, such as finite element methods, where handling boundary conditions can be complex enough to require techniques like Nitsche’s method [28], later refined by Stenberg [36]. However, the challenges differ significantly in neural network-based approaches. Unlike classical numerical methods, which leverage basis functions or discretization stencils with compact supports or sparse structures, neural network methods utilize DNNs as trial functions, which are globally defined. Consequently, enforcing boundary conditions, even for problems that are straightforward in classical methods, becomes nontrivial due to the global structure of DNNs. For the natural boundary conditions, the deep Ritz method reformulates the original problem into a variational form, which can reduce the smoothness requirements and potentially lower the training cost by allowing natural boundary conditions to be imposed without additional operations. However, because the trial functions within the approximation sets are generally non-interpolatory, imposing essential boundary conditions remains a challenging task.

To date, three primary approaches have been developed for addressing essential boundary conditions in deep learning-based numerical methods. The first approach is the conforming method, which aims to construct neural network functions that exactly satisfy the essential boundary conditions [34, 2, 24]. Generally, the network function uNN(x)subscript𝑢𝑁𝑁𝑥u_{NN}(x)italic_u start_POSTSUBSCRIPT italic_N italic_N end_POSTSUBSCRIPT ( italic_x ) is represented as the combination of two parts: uNN(x)=ub(x)+dΓ(x)uNN0(x)subscript𝑢𝑁𝑁𝑥subscript𝑢𝑏𝑥subscript𝑑Γ𝑥subscriptsuperscript𝑢0𝑁𝑁𝑥\displaystyle u_{NN}(x)=u_{b}(x)+d_{\Gamma}(x)u^{0}_{NN}(x)italic_u start_POSTSUBSCRIPT italic_N italic_N end_POSTSUBSCRIPT ( italic_x ) = italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ( italic_x ) + italic_d start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ( italic_x ) italic_u start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_N italic_N end_POSTSUBSCRIPT ( italic_x ), one reflecting the essential boundary condition, and the other vanishing on the boundary ΓΓ\Gammaroman_Γ by the aid of a “distance function” or a “geometry-aware” function dΓ(x)subscript𝑑Γ𝑥d_{\Gamma}(x)italic_d start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ( italic_x ). Both test and trial functions can be constructed this way. However, when the domain has a complicated boundary (or even not that complicated), it is not easy to construct a distance function to preserve the asymptotic equivalence.

Another one is the penalty method, which is a very general concept and belongs to the so-called nonconforming method [5, 31, 35, 43, 42, 12]. For this method, an additional surface term is introduced into the variational formulation to enforce the boundary conditions. Take the Poisson equation with Dirichlet boundary condition (1.1) as example:

{Δu=finΩ,u=gonΓ=Ω.casesΔ𝑢absent𝑓inΩ𝑢absent𝑔onΓΩ\left\{\begin{array}[]{rll}-\Delta u&=f&\mbox{in}\,\Omega,\\ u&=g&\mbox{on}\,\Gamma=\partial\Omega.\end{array}\right.{ start_ARRAY start_ROW start_CELL - roman_Δ italic_u end_CELL start_CELL = italic_f end_CELL start_CELL in roman_Ω , end_CELL end_ROW start_ROW start_CELL italic_u end_CELL start_CELL = italic_g end_CELL start_CELL on roman_Γ = ∂ roman_Ω . end_CELL end_ROW end_ARRAY (1.1)

The deep Ritz method [5] minimize the following objective

DRM(u)=[xj𝒟12|u(xj)|2f(xj)u(xj)]+βxj𝒟Γ(u(xj)ub(xj))2,subscript𝐷𝑅𝑀𝑢delimited-[]subscriptsubscript𝑥𝑗𝒟12superscript𝑢subscript𝑥𝑗2𝑓subscript𝑥𝑗𝑢subscript𝑥𝑗𝛽subscriptsubscript𝑥𝑗subscript𝒟Γsuperscript𝑢subscript𝑥𝑗subscript𝑢𝑏subscript𝑥𝑗2\mathcal{L}_{DRM}(u)=\biggl{[}\sum_{x_{j}\in\mathcal{D}}\frac{1}{2}|\nabla u(x% _{j})|^{2}-f(x_{j})u(x_{j})\biggr{]}+\beta\sum_{x_{j}\in\mathcal{D}_{\Gamma}}% \bigl{(}u(x_{j})-u_{b}(x_{j})\bigr{)}^{2},caligraphic_L start_POSTSUBSCRIPT italic_D italic_R italic_M end_POSTSUBSCRIPT ( italic_u ) = [ ∑ start_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ∈ caligraphic_D end_POSTSUBSCRIPT divide start_ARG 1 end_ARG start_ARG 2 end_ARG | ∇ italic_u ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT - italic_f ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) italic_u ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ] + italic_β ∑ start_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ∈ caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT end_POSTSUBSCRIPT ( italic_u ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) - italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT , (1.2)

where 𝒟𝒟\mathcal{D}caligraphic_D and 𝒟Γsubscript𝒟Γ\mathcal{D}_{\Gamma}caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT define the training data set in the domain and on the boundary, respectively. PINN method is a least square method for the strong form of the PDE, but the the handling of the essential boundary condition is similar to deep Ritz method:

PINN(u)=[xj𝒟|Δu(xj)+f(xj)|2]+βxj𝒟Γ(u(xj)ub(xj))2.subscript𝑃𝐼𝑁𝑁𝑢delimited-[]subscriptsubscript𝑥𝑗𝒟superscriptΔ𝑢subscript𝑥𝑗𝑓subscript𝑥𝑗2𝛽subscriptsubscript𝑥𝑗subscript𝒟Γsuperscript𝑢subscript𝑥𝑗subscript𝑢𝑏subscript𝑥𝑗2\mathcal{L}_{PINN}(u)=\biggl{[}\sum_{x_{j}\in\mathcal{D}}|\Delta u(x_{j})+f(x_% {j})|^{2}\biggr{]}+\beta\sum_{x_{j}\in\mathcal{D}_{\Gamma}}\bigl{(}u(x_{j})-u_% {b}(x_{j})\bigr{)}^{2}.caligraphic_L start_POSTSUBSCRIPT italic_P italic_I italic_N italic_N end_POSTSUBSCRIPT ( italic_u ) = [ ∑ start_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ∈ caligraphic_D end_POSTSUBSCRIPT | roman_Δ italic_u ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) + italic_f ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ] + italic_β ∑ start_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ∈ caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT end_POSTSUBSCRIPT ( italic_u ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) - italic_u start_POSTSUBSCRIPT italic_b end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ) start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT . (1.3)

Careful balancing of terms within the functional framework is essential to ensure the well-posedness and accuracy of the scheme. Addressing this issue, the deep Nitsche method, as proposed in [21], applies Nitsche’s variational formula to second-order elliptic problems to avoid the use of a large penalty parameter. Nevertheless, some degree of tuning remains necessary for the penalty parameter, and a theoretical basis for determining an optimal penalty value is still absent.

In contrast to the penalty method, the Lagrange multiplier method addresses essential boundary conditions by treating them as constraints within the minimization process. This method has been effectively used to impose essential boundary conditions in finite element methods [1] and wavelet methods [4]. When the approximation function spaces are appropriately chosen satisfying the so-called inf-sup condition, this method can achieve optimal convergence rates [1, 4]. While the Lagrange multiplier method can also enforce boundary conditions in neural network-based methods, its effectiveness depends on the stable construction and efficient resolution of the extra constrained optimization problem.

In this paper, we introduce a novel neural network-based method for solving essential boundary value problems. Our approach involves transforming the original problem into a sequence of natural boundary value problems, which are then solved sequentially or concurrently using the deep Ritz method. Unlike the previously mentioned approaches, this technique constructs a new framework for imposing essential boundary conditions. We refer to this method as the natural deep Ritz method. This approach simplifies the training process and avoids introducing additional errors associated with boundary condition enforcement. To validate our method, we examine essential boundary and interface value problems for second-order divergence-form equations with constant, variable, or discontinuous coefficients, providing numerical examples that demonstrate the effectiveness.

Evidently, a primary ingredient of the proposed method lies in its adjoint approach to handling essential boundary conditions. This approach is grounded in the mathematical framework of the de Rham complex and its dual complex, which serve as foundational structures. By leveraging these complexes, which connect kernel spaces to specific range spaces, we can represent the difference between the solutions of natural and essential boundary value problems as the solution to another natural boundary value problem. This formulation allows us to construct a purely natural approach equivalent to the original problem.

While we do not delve extensively into the formal structure of the de Rham and dual complexes, it is important to highlight that our method diverges from the traditional mixed formulations common in classical numerical methods. Notably, we do not introduce the gradient of the unknown function as an auxiliary variable. Moreover, unlike classical mixed formulations, our approach avoids the need for constructing a saddle point problem, which would typically require rigorous continuous and discrete inf-sup conditions for stability and accuracy. In our framework, the solution is reduced to solving three elliptic subproblems using a standard machine learning algorithm. This approach eliminates the need for training an additional network to capture the boundary representation, tuning penalty parameters, or ensuring inf-sup conditions for a boundary Lagrangian multiplier. The conciseness of the present method is among its most significant advantages, both in theory and implementation.

The remaining parts of the paper are organized as follows. In Section 2, we present the equivalent natural boundary value problem formulation of the respective essential boundary value problems. In Section 3, the deep Ritz method based on the natural formulation, namely the natural deep Ritz methods, is given. Numerical experiments are presented in Section 4 to verify the proposed method. We end the paper with some concluding remarks in Section 5

2 A natural formulation of the essential boundary value problems

In this section, we derive natural formulations for the second-order problems of divergence form with constant, variable, and discontinuous coefficients, respectively; i.e., we rewrite the essential boundary value problems and interface value problems to a series of natural boundary value problems and interface value problems to solve. We are focused on Laplace problems on two-dimensional domains here, and the method can be generated to higher dimensions, as well as to other self-adjoint problems.

In this paper, Ω2Ωsuperscript2\Omega\subset\mathbb{R}^{2}roman_Ω ⊂ blackboard_R start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT stands for a simply connected domain with a boundary ΓΓ\Gammaroman_Γ, and we use L2(Ω)superscript𝐿2ΩL^{2}(\Omega)italic_L start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ( roman_Ω ), H1(Ω)superscript𝐻1ΩH^{1}(\Omega)italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ), H01(Ω)subscriptsuperscript𝐻10ΩH^{1}_{0}(\Omega)italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ), H1(Ω)superscript𝐻1ΩH^{-1}(\Omega)italic_H start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ( roman_Ω ), H1/2(Γ)superscript𝐻12ΓH^{1/2}(\Gamma)italic_H start_POSTSUPERSCRIPT 1 / 2 end_POSTSUPERSCRIPT ( roman_Γ ) and H1/2(Γ)superscript𝐻12ΓH^{-1/2}(\Gamma)italic_H start_POSTSUPERSCRIPT - 1 / 2 end_POSTSUPERSCRIPT ( roman_Γ ) for the standard Sobolev spaces.

2.1 Poisson equations of Dirichlet type

We first consider the model problem with constant coefficients: (1.1). Its variational formulation is to find uHg1(Ω):={wH1(Ω):w|Γ=g}𝑢subscriptsuperscript𝐻1𝑔Ωassignconditional-set𝑤superscript𝐻1Ωevaluated-at𝑤Γ𝑔u\in H^{1}_{g}(\Omega):=\bigl{\{}\,w\in H^{1}(\Omega):w|_{\Gamma}=g\,\bigr{\}}italic_u ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT ( roman_Ω ) := { italic_w ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ) : italic_w | start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT = italic_g }, such that

(u,v)=f,vH1(Ω)×H01(Ω),vH01(Ω).formulae-sequence𝑢𝑣subscript𝑓𝑣superscript𝐻1Ωsubscriptsuperscript𝐻10Ωfor-all𝑣subscriptsuperscript𝐻10Ω(\nabla u,\nabla v)=\langle f,v\rangle_{H^{-1}(\Omega)\times H^{1}_{0}(\Omega)% },\ \ \forall\,v\in H^{1}_{0}(\Omega).( ∇ italic_u , ∇ italic_v ) = ⟨ italic_f , italic_v ⟩ start_POSTSUBSCRIPT italic_H start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ( roman_Ω ) × italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ) end_POSTSUBSCRIPT , ∀ italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ) . (2.1)

Here, ,H1(Ω)×H01(Ω)subscriptsuperscript𝐻1Ωsubscriptsuperscript𝐻10Ω\langle\cdot,\cdot\rangle_{H^{-1}(\Omega)\times H^{1}_{0}(\Omega)}⟨ ⋅ , ⋅ ⟩ start_POSTSUBSCRIPT italic_H start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ( roman_Ω ) × italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ) end_POSTSUBSCRIPT stands for the duality between H1(Ω)superscript𝐻1ΩH^{-1}(\Omega)italic_H start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ( roman_Ω ) and H01(Ω)subscriptsuperscript𝐻10ΩH^{1}_{0}(\Omega)italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ). In the sequel, we use ,\langle\cdot,\cdot\rangle⟨ ⋅ , ⋅ ⟩ to denote dualities of different kinds, while the subscripts may be dropped when no ambiguity is introduced.

Theorem 2.1.

Let u𝑢uitalic_u be the solution of (2.1), and usuperscript𝑢u^{*}italic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT be obtained by the four steps below:

  1. 1.

    Find u~HΓ1(Ω):={wH1(Ω):Γw=0}~𝑢subscriptsuperscript𝐻1ΓΩassignconditional-set𝑤superscript𝐻1ΩsubscriptΓ𝑤0\tilde{u}\in H^{1}_{\Gamma}(\Omega):=\{w\in H^{1}(\Omega):\int_{\Gamma}w=0\}over~ start_ARG italic_u end_ARG ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ( roman_Ω ) := { italic_w ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ) : ∫ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT italic_w = 0 }, such that

    (u~,v)=f~,v(HΓ1(Ω))×HΓ1(Ω),vHΓ1(Ω),formulae-sequence~𝑢𝑣subscript~𝑓𝑣superscriptsubscriptsuperscript𝐻1ΓΩsubscriptsuperscript𝐻1ΓΩfor-all𝑣subscriptsuperscript𝐻1ΓΩ(\nabla\tilde{u},\nabla v)=\langle\tilde{f},v\rangle_{(H^{1}_{\Gamma}(\Omega))% ^{\prime}\times H^{1}_{\Gamma}(\Omega)},\ \ \forall\,v\in H^{1}_{\Gamma}(% \Omega),( ∇ over~ start_ARG italic_u end_ARG , ∇ italic_v ) = ⟨ over~ start_ARG italic_f end_ARG , italic_v ⟩ start_POSTSUBSCRIPT ( italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ( roman_Ω ) ) start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT × italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ( roman_Ω ) end_POSTSUBSCRIPT , ∀ italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ( roman_Ω ) , (2.2)

    where f~~𝑓\tilde{f}over~ start_ARG italic_f end_ARG is any extension of f𝑓fitalic_f onto (HΓ1(Ω))superscriptsubscriptsuperscript𝐻1ΓΩ(H^{1}_{\Gamma}(\Omega))^{\prime}( italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ( roman_Ω ) ) start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT such that f~,v=f,v~𝑓𝑣𝑓𝑣\langle\tilde{f},v\rangle=\langle f,v\rangle⟨ over~ start_ARG italic_f end_ARG , italic_v ⟩ = ⟨ italic_f , italic_v ⟩ for vH01(Ω)𝑣subscriptsuperscript𝐻10Ωv\in H^{1}_{0}(\Omega)italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ).

  2. 2.

    Find a φH1(Ω)𝜑superscript𝐻1Ω\varphi\in H^{1}(\Omega)italic_φ ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ), such that

    (curlφ,curlψ)=t(gu~|Γ),ψΓ,ψH1(Ω);formulae-sequencecurl𝜑curl𝜓subscriptsubscript𝑡𝑔evaluated-at~𝑢Γ𝜓Γfor-all𝜓superscript𝐻1Ω({\rm curl}\varphi,{\rm curl}\psi)=\langle\partial_{t}(g-\tilde{u}|_{\Gamma}),% \psi\rangle_{\Gamma},\ \forall\,\psi\in H^{1}(\Omega);( roman_curl italic_φ , roman_curl italic_ψ ) = ⟨ ∂ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT ( italic_g - over~ start_ARG italic_u end_ARG | start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ) , italic_ψ ⟩ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT , ∀ italic_ψ ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ) ; (2.3)

    Here, the scalar curl operator is defined as curlw(x,y):=(yw,xw)assigncurl𝑤𝑥𝑦subscript𝑦𝑤subscript𝑥𝑤{\rm curl}\,w(x,y):=(\partial_{y}w,-\partial_{x}w)roman_curl italic_w ( italic_x , italic_y ) := ( ∂ start_POSTSUBSCRIPT italic_y end_POSTSUBSCRIPT italic_w , - ∂ start_POSTSUBSCRIPT italic_x end_POSTSUBSCRIPT italic_w ), and ,ΓsubscriptΓ\langle\cdot,\cdot\rangle_{\Gamma}⟨ ⋅ , ⋅ ⟩ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT is a duality between H1/2(Γ)superscript𝐻12ΓH^{-1/2}(\Gamma)italic_H start_POSTSUPERSCRIPT - 1 / 2 end_POSTSUPERSCRIPT ( roman_Γ ) and H1/2(Γ)superscript𝐻12ΓH^{1/2}(\Gamma)italic_H start_POSTSUPERSCRIPT 1 / 2 end_POSTSUPERSCRIPT ( roman_Γ ), which evaluates as the L2superscript𝐿2L^{2}italic_L start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT inner product on ΓΓ\Gammaroman_Γ for sufficiently smooth functions.

  3. 3.

    Find a ucH1(Ω)subscript𝑢𝑐superscript𝐻1Ωu_{c}\in H^{1}(\Omega)italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ), such that

    (uc,v)=(u~curlφ,v),vH1(Ω).formulae-sequencesubscript𝑢𝑐𝑣~𝑢curl𝜑𝑣for-all𝑣superscript𝐻1Ω(\nabla u_{c},\nabla v)=(\nabla\tilde{u}{-}{\rm curl}\varphi,\nabla v),\ % \forall\,v\in H^{1}(\Omega).( ∇ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT , ∇ italic_v ) = ( ∇ over~ start_ARG italic_u end_ARG - roman_curl italic_φ , ∇ italic_v ) , ∀ italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ) . (2.4)
  4. 4.

    Set u=ucCsuperscript𝑢subscript𝑢𝑐𝐶u^{*}=u_{c}-Citalic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT = italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT - italic_C, with C=1|γ|γ(ucg)𝐶1𝛾subscript𝛾subscript𝑢𝑐𝑔C=\frac{1}{|\gamma|}\int_{\gamma}(u_{c}-g)italic_C = divide start_ARG 1 end_ARG start_ARG | italic_γ | end_ARG ∫ start_POSTSUBSCRIPT italic_γ end_POSTSUBSCRIPT ( italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT - italic_g ) for any γΓ𝛾Γ\gamma\subset\Gammaitalic_γ ⊂ roman_Γ such that |γ|0𝛾0|\gamma|\neq 0| italic_γ | ≠ 0.

Then u=usuperscript𝑢𝑢u^{*}=uitalic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT = italic_u.

Proof.

By (2.1) and (2.2), (uu~,v)=0,vH01(Ω)formulae-sequence𝑢~𝑢𝑣0for-all𝑣subscriptsuperscript𝐻10Ω(\nabla u-\nabla\tilde{u},\nabla v)=0,\ \ \forall\,v\in H^{1}_{0}(\Omega)( ∇ italic_u - ∇ over~ start_ARG italic_u end_ARG , ∇ italic_v ) = 0 , ∀ italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ) and it follows that uu~=curlφ𝑢~𝑢curl𝜑\nabla u-\nabla\tilde{u}={\rm curl}\varphi∇ italic_u - ∇ over~ start_ARG italic_u end_ARG = roman_curl italic_φ for some φH1(Ω)𝜑superscript𝐻1Ω\varphi\in H^{1}(\Omega)italic_φ ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ). Further, rotcurlφ=0rotcurl𝜑0{\rm rot}\,{\rm curl}\varphi=0roman_rot roman_curl italic_φ = 0. Therefore, for any ψH1(Ω)𝜓superscript𝐻1Ω\psi\in H^{1}(\Omega)italic_ψ ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ), we have (curlφ,curlψ)=(rotcurlφ,ψ)+curlφ𝐭,ψΓ=(uu~)𝐭,ψΓ=𝐭(gu~|Γ),ψΓcurl𝜑curl𝜓rotcurl𝜑𝜓subscriptcurl𝜑𝐭𝜓Γsubscript𝑢~𝑢𝐭𝜓Γsubscriptsubscript𝐭𝑔evaluated-at~𝑢Γ𝜓Γ({\rm curl}\varphi,{\rm curl}\psi)=({\rm rot}{\rm curl}\varphi,\psi)+\langle{% \rm curl}\varphi\cdot\mathbf{t},\psi\rangle_{\Gamma}=\langle(\nabla u-\nabla% \tilde{u})\cdot\mathbf{t},\psi\rangle_{\Gamma}=\langle\partial_{\mathbf{t}}(g-% \tilde{u}|_{\Gamma}),\psi\rangle_{\Gamma}( roman_curl italic_φ , roman_curl italic_ψ ) = ( roman_rotcurl italic_φ , italic_ψ ) + ⟨ roman_curl italic_φ ⋅ bold_t , italic_ψ ⟩ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT = ⟨ ( ∇ italic_u - ∇ over~ start_ARG italic_u end_ARG ) ⋅ bold_t , italic_ψ ⟩ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT = ⟨ ∂ start_POSTSUBSCRIPT bold_t end_POSTSUBSCRIPT ( italic_g - over~ start_ARG italic_u end_ARG | start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ) , italic_ψ ⟩ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT, namely φ𝜑\varphiitalic_φ satisfied (2.3). Now we obtain by (2.4) that uc=usubscript𝑢𝑐𝑢\nabla u_{c}=\nabla u∇ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT = ∇ italic_u. Then ucusubscript𝑢𝑐𝑢u_{c}-uitalic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT - italic_u is a constant which can be corrected by Step (4) and finally, we are lead to that u=usuperscript𝑢𝑢u^{*}=uitalic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT = italic_u. The proof is completed. ∎

Remark 2.2.
  1. 1.

    The solutions of the second and third steps are not unique up to constant, though, these solutions will give the same correct solution at the end of the algorithm.

  2. 2.

    To obtain u~~𝑢\tilde{u}over~ start_ARG italic_u end_ARG, we may solve for u~H1(Ω)~𝑢superscript𝐻1Ω\tilde{u}\in H^{1}(\Omega)over~ start_ARG italic_u end_ARG ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω )

    (u~,v)=f~,vΓv(HΓ1(Ω))×HΓ1(Ω),vH1(Ω);formulae-sequence~𝑢𝑣subscript~𝑓𝑣subscriptΓ𝑣superscriptsubscriptsuperscript𝐻1ΓΩsubscriptsuperscript𝐻1ΓΩfor-all𝑣superscript𝐻1Ω(\nabla\tilde{u},\nabla v)=\langle\tilde{f},v-\fint_{\Gamma}v\rangle_{(H^{1}_{% \Gamma}(\Omega))^{\prime}\times H^{1}_{\Gamma}(\Omega)},\ \ \forall\,v\in H^{1% }(\Omega);( ∇ over~ start_ARG italic_u end_ARG , ∇ italic_v ) = ⟨ over~ start_ARG italic_f end_ARG , italic_v - ⨏ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT italic_v ⟩ start_POSTSUBSCRIPT ( italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ( roman_Ω ) ) start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT × italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ( roman_Ω ) end_POSTSUBSCRIPT , ∀ italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ) ;
  3. 3.

    The last step can be done by least square.

Remark 2.3.

We can interprate formally the first three subproblems in the formulation of natural boundary value problems as below:

  1. 1.

    The boundary value problem corresponding to (2.2):

    {Δu~=finΩ,u~𝐧=1|Γ|Ωf,onΩ.casesΔ~𝑢absent𝑓inΩ~𝑢𝐧absent1ΓsubscriptΩ𝑓onΩ\left\{\begin{array}[]{rll}-\Delta\tilde{u}&=f&\mbox{in}\,\Omega,\\ \frac{\partial\tilde{u}}{\partial\mathbf{n}}&={-}\frac{1}{|\Gamma|}\int_{% \Omega}f,&\mbox{on}\,\partial\Omega.\end{array}\right.{ start_ARRAY start_ROW start_CELL - roman_Δ over~ start_ARG italic_u end_ARG end_CELL start_CELL = italic_f end_CELL start_CELL in roman_Ω , end_CELL end_ROW start_ROW start_CELL divide start_ARG ∂ over~ start_ARG italic_u end_ARG end_ARG start_ARG ∂ bold_n end_ARG end_CELL start_CELL = - divide start_ARG 1 end_ARG start_ARG | roman_Γ | end_ARG ∫ start_POSTSUBSCRIPT roman_Ω end_POSTSUBSCRIPT italic_f , end_CELL start_CELL on ∂ roman_Ω . end_CELL end_ROW end_ARRAY (2.5)
  2. 2.

    The boundary value problem corresponding to (2.3):

    {Δφ=0inΩ,curlφ𝐭=𝐭g𝐭u~,onΩ.casesΔ𝜑absent0inΩcurl𝜑𝐭absentsubscript𝐭𝑔subscript𝐭~𝑢onΩ\left\{\begin{array}[]{rll}-\Delta\varphi&=0&\mbox{in}\,\Omega,\\ {\rm curl}\varphi\cdot\mathbf{t}&=\partial_{\mathbf{t}}g-\partial_{\mathbf{t}}% \tilde{u},&\mbox{on}\,\partial\Omega.\end{array}\right.{ start_ARRAY start_ROW start_CELL - roman_Δ italic_φ end_CELL start_CELL = 0 end_CELL start_CELL in roman_Ω , end_CELL end_ROW start_ROW start_CELL roman_curl italic_φ ⋅ bold_t end_CELL start_CELL = ∂ start_POSTSUBSCRIPT bold_t end_POSTSUBSCRIPT italic_g - ∂ start_POSTSUBSCRIPT bold_t end_POSTSUBSCRIPT over~ start_ARG italic_u end_ARG , end_CELL start_CELL on ∂ roman_Ω . end_CELL end_ROW end_ARRAY (2.6)
  3. 3.

    The boundary value problem corresponding to (2.4):

    {Δuc=finΩ,uc𝐧=𝐧u~𝐭φ,onΩ.casesΔsubscript𝑢𝑐absent𝑓inΩsubscript𝑢𝑐𝐧absentsubscript𝐧~𝑢subscript𝐭𝜑onΩ\left\{\begin{array}[]{rll}-\Delta u_{c}&=f&\mbox{in}\,\Omega,\\ \frac{\partial u_{c}}{\partial\mathbf{n}}&=\partial_{\mathbf{n}}\tilde{u}{-}% \partial_{\mathbf{t}}\varphi,&\mbox{on}\,\partial\Omega.\end{array}\right.{ start_ARRAY start_ROW start_CELL - roman_Δ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_CELL start_CELL = italic_f end_CELL start_CELL in roman_Ω , end_CELL end_ROW start_ROW start_CELL divide start_ARG ∂ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT end_ARG start_ARG ∂ bold_n end_ARG end_CELL start_CELL = ∂ start_POSTSUBSCRIPT bold_n end_POSTSUBSCRIPT over~ start_ARG italic_u end_ARG - ∂ start_POSTSUBSCRIPT bold_t end_POSTSUBSCRIPT italic_φ , end_CELL start_CELL on ∂ roman_Ω . end_CELL end_ROW end_ARRAY (2.7)

2.2 Elliptic problem with varying coefficient in divergence form

Let 𝒜𝒜\mathcal{A}caligraphic_A be a varying coefficient matrix such that

λ|ξ|2𝒜ij(x)ξiξjΛ|ξ|2onΩ.formulae-sequence𝜆superscript𝜉2subscript𝒜𝑖𝑗𝑥subscript𝜉𝑖subscript𝜉𝑗Λsuperscript𝜉2onΩ\lambda|\xi|^{2}\leq\mathcal{A}_{ij}(x)\xi_{i}\xi_{j}\leq\Lambda|\xi|^{2}% \qquad\mbox{on}\ \ \Omega.italic_λ | italic_ξ | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ≤ caligraphic_A start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ( italic_x ) italic_ξ start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT italic_ξ start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ≤ roman_Λ | italic_ξ | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT on roman_Ω . (2.8)

We further consider a second order problem of divergence form:

{div(𝒜2u)=finΩ,u=gonΓ.casesdivsuperscript𝒜2𝑢absent𝑓inΩ𝑢absent𝑔onΓ\left\{\begin{array}[]{rll}-{\rm div}(\mathcal{A}^{2}\nabla u)&=f&\mbox{in}\,% \Omega,\\ u&=g&\mbox{on}\,\Gamma.\end{array}\right.{ start_ARRAY start_ROW start_CELL - roman_div ( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ italic_u ) end_CELL start_CELL = italic_f end_CELL start_CELL in roman_Ω , end_CELL end_ROW start_ROW start_CELL italic_u end_CELL start_CELL = italic_g end_CELL start_CELL on roman_Γ . end_CELL end_ROW end_ARRAY (2.9)

It is useful to rewrite div(𝒜2)=(div𝒜)(𝒜)divsuperscript𝒜2div𝒜𝒜-{\rm div}\circ(\mathcal{A}^{2}\nabla)=(-{\rm div}\mathcal{A})\circ(\mathcal{A% }\nabla)- roman_div ∘ ( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ ) = ( - roman_div caligraphic_A ) ∘ ( caligraphic_A ∇ ). Note that, equipped with proper spaces, the operators div𝒜div𝒜-{\rm div}\mathcal{A}- roman_div caligraphic_A and 𝒜𝒜\mathcal{A}\nablacaligraphic_A ∇ are adjoint operators of each other, and we write the variational formulation to be: find uHg1(Ω)𝑢subscriptsuperscript𝐻1𝑔Ωu\in H^{1}_{g}(\Omega)italic_u ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT ( roman_Ω ), such that

(𝒜u,𝒜v)=f,v,vH01(Ω).formulae-sequence𝒜𝑢𝒜𝑣𝑓𝑣for-all𝑣subscriptsuperscript𝐻10Ω(\mathcal{A}\nabla u,\mathcal{A}\nabla v)=\langle f,v\rangle,\ \ \forall\,v\in H% ^{1}_{0}(\Omega).( caligraphic_A ∇ italic_u , caligraphic_A ∇ italic_v ) = ⟨ italic_f , italic_v ⟩ , ∀ italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ) . (2.10)
Theorem 2.4.

Let u𝑢uitalic_u be the solution of (2.10), and usuperscript𝑢u^{*}italic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT be obtained by the four steps below:

  1. 1.

    Find u~HΓ1(Ω):={wH1(Ω):Γw=0}~𝑢subscriptsuperscript𝐻1ΓΩassignconditional-set𝑤superscript𝐻1ΩsubscriptΓ𝑤0\tilde{u}\in H^{1}_{\Gamma}(\Omega):=\bigl{\{}w\in H^{1}(\Omega):\int_{\Gamma}% w=0\bigr{\}}over~ start_ARG italic_u end_ARG ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ( roman_Ω ) := { italic_w ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ) : ∫ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT italic_w = 0 }, such that

    (𝒜u~,𝒜v)=f~,vH1(Ω)×H01(Ω),vHΓ1(Ω);formulae-sequence𝒜~𝑢𝒜𝑣subscript~𝑓𝑣superscript𝐻1Ωsubscriptsuperscript𝐻10Ωfor-all𝑣subscriptsuperscript𝐻1ΓΩ(\mathcal{A}\nabla\tilde{u},\mathcal{A}\nabla v)=\langle\tilde{f},v\rangle_{H^% {-1}(\Omega)\times H^{1}_{0}(\Omega)},\ \ \forall\,v\in H^{1}_{\Gamma}(\Omega);( caligraphic_A ∇ over~ start_ARG italic_u end_ARG , caligraphic_A ∇ italic_v ) = ⟨ over~ start_ARG italic_f end_ARG , italic_v ⟩ start_POSTSUBSCRIPT italic_H start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ( roman_Ω ) × italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ) end_POSTSUBSCRIPT , ∀ italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ( roman_Ω ) ; (2.11)
  2. 2.

    Find a φH1(Ω)𝜑superscript𝐻1Ω\varphi\in H^{1}(\Omega)italic_φ ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ), such that

    (𝒜1curlφ,𝒜1curlψ)=t(gu~|Γ),ψΓ,ψH1(Ω);formulae-sequencesuperscript𝒜1curl𝜑superscript𝒜1curl𝜓subscriptsubscript𝑡𝑔evaluated-at~𝑢Γ𝜓Γfor-all𝜓superscript𝐻1Ω({\mathcal{A}^{-1}}{\rm curl}\varphi,{\mathcal{A}^{-1}}{\rm curl}\psi)=\langle% \partial_{t}(g-\tilde{u}|_{\Gamma}),\psi\rangle_{\Gamma},\ \forall\,\psi\in H^% {1}(\Omega);( caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_curl italic_φ , caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_curl italic_ψ ) = ⟨ ∂ start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT ( italic_g - over~ start_ARG italic_u end_ARG | start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ) , italic_ψ ⟩ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT , ∀ italic_ψ ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ) ; (2.12)
  3. 3.

    Find a ucH1(Ω)subscript𝑢𝑐superscript𝐻1Ωu_{c}\in H^{1}(\Omega)italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ), such that

    (𝒜uc,𝒜v)=(𝒜u~𝒜1curlφ,𝒜v),vH1(Ω);formulae-sequence𝒜subscript𝑢𝑐𝒜𝑣𝒜~𝑢superscript𝒜1curl𝜑𝒜𝑣for-all𝑣superscript𝐻1Ω(\mathcal{A}\nabla u_{c},\mathcal{A}\nabla v)=(\mathcal{A}\nabla\tilde{u}-% \mathcal{A}^{-1}{\rm curl}\varphi,\mathcal{A}\nabla v),\ \forall\,v\in H^{1}(% \Omega);( caligraphic_A ∇ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT , caligraphic_A ∇ italic_v ) = ( caligraphic_A ∇ over~ start_ARG italic_u end_ARG - caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_curl italic_φ , caligraphic_A ∇ italic_v ) , ∀ italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ) ; (2.13)
  4. 4.

    Set u=ucCsuperscript𝑢subscript𝑢𝑐𝐶u^{*}=u_{c}-Citalic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT = italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT - italic_C, with C=1|γ|γ(ucg)𝐶1𝛾subscript𝛾subscript𝑢𝑐𝑔C=\frac{1}{|\gamma|}\int_{\gamma}(u_{c}-g)italic_C = divide start_ARG 1 end_ARG start_ARG | italic_γ | end_ARG ∫ start_POSTSUBSCRIPT italic_γ end_POSTSUBSCRIPT ( italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT - italic_g ) for any γΓ𝛾Γ\gamma\subset\Gammaitalic_γ ⊂ roman_Γ such that |γ|0𝛾0|\gamma|\neq 0| italic_γ | ≠ 0.

Then u=usuperscript𝑢𝑢u^{*}=uitalic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT = italic_u.

Proof.

Note that the null space of div𝒜div𝒜{\rm div}\circ\mathcal{A}roman_div ∘ caligraphic_A coincides with the range of 𝒜1curlsuperscript𝒜1curl\mathcal{A}^{-1}\circ{\rm curl}caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ∘ roman_curl equipped with proper spaces, and the proof is the same as that of Theorem 2.1. ∎

2.3 A simple approach for the interface problem

We now consider the case that 𝒜𝒜\mathcal{A}caligraphic_A is discontinuous. Let Γ0subscriptΓ0\Gamma_{0}roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT be an interface that separates Ω¯=Ω¯1Ω¯2¯Ωsubscript¯Ω1subscript¯Ω2\overline{\Omega}=\overline{\Omega}_{1}\cup\overline{\Omega}_{2}over¯ start_ARG roman_Ω end_ARG = over¯ start_ARG roman_Ω end_ARG start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∪ over¯ start_ARG roman_Ω end_ARG start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT with Ω1̊Ω2̊=̊subscriptΩ1̊subscriptΩ2\mathring{\Omega_{1}}\cap\mathring{\Omega_{2}}=\emptysetover̊ start_ARG roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_ARG ∩ over̊ start_ARG roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_ARG = ∅; see Figure 1 for an illustration. We use 𝐧isubscript𝐧𝑖\mathbf{n}_{i}bold_n start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT and 𝐭isubscript𝐭𝑖\mathbf{t}_{i}bold_t start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT for the outer unit normal vector and the corresponding unit tangential vector for ΩisubscriptΩ𝑖\partial\Omega_{i}∂ roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT, i=1,2𝑖12i=1,2italic_i = 1 , 2.

Refer to caption
Figure 1: Illustration of the domain and the interface

Assume 𝒜𝒜\mathcal{A}caligraphic_A to be discontinuous across Γ0subscriptΓ0\Gamma_{0}roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT. We consider the interface problem below:

{div𝒜2u=finΩ1Ω2,u=gonΓ,(𝒜2u)|Ω1𝐧1+(𝒜2u)|Ω2𝐧2=κ2onΓ0,u|Ω1u|Ω2=κ1onΓ0.casesdivsuperscript𝒜2𝑢absent𝑓insubscriptΩ1subscriptΩ2𝑢absent𝑔onΓevaluated-atsuperscript𝒜2𝑢subscriptΩ1subscript𝐧1evaluated-atsuperscript𝒜2𝑢subscriptΩ2subscript𝐧2absentsubscript𝜅2onsubscriptΓ0evaluated-at𝑢subscriptΩ1evaluated-at𝑢subscriptΩ2absentsubscript𝜅1onsubscriptΓ0\left\{\begin{array}[]{rll}-{\rm div}\mathcal{A}^{2}\nabla u&=f&\mbox{in}\,% \Omega_{1}\cup\Omega_{2},\\ u&=g&\mbox{on}\,\Gamma,\\ (\mathcal{A}^{2}\nabla u)|_{\Omega_{1}}\cdot\mathbf{n}_{1}+(\mathcal{A}^{2}% \nabla u)|_{\Omega_{2}}\cdot\mathbf{n}_{2}&={\kappa_{2}}&\mbox{on}\,\Gamma_{0}% ,\\ u|_{\Omega_{1}}-u|_{\Omega_{2}}&={\kappa_{1}}&\mbox{on}\,\Gamma_{0}.\end{array% }\right.{ start_ARRAY start_ROW start_CELL - roman_div caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ italic_u end_CELL start_CELL = italic_f end_CELL start_CELL in roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∪ roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , end_CELL end_ROW start_ROW start_CELL italic_u end_CELL start_CELL = italic_g end_CELL start_CELL on roman_Γ , end_CELL end_ROW start_ROW start_CELL ( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ italic_u ) | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT ⋅ bold_n start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT + ( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ italic_u ) | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT ⋅ bold_n start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_CELL start_CELL = italic_κ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_CELL start_CELL on roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT , end_CELL end_ROW start_ROW start_CELL italic_u | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT - italic_u | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT end_CELL start_CELL = italic_κ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_CELL start_CELL on roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT . end_CELL end_ROW end_ARRAY (2.14)

The variational formulation is to find uH1(Ω1)×H1(Ω2):={wL2(Ω):w|ΩiH1(Ωi),i=1,2}𝑢superscript𝐻1subscriptΩ1superscript𝐻1subscriptΩ2assignconditional-set𝑤superscript𝐿2Ωformulae-sequenceevaluated-at𝑤subscriptΩ𝑖superscript𝐻1subscriptΩ𝑖𝑖12u\in H^{1}(\Omega_{1})\times H^{1}(\Omega_{2}):=\{w\in L^{2}(\Omega):w|_{% \Omega_{i}}\in H^{1}(\Omega_{i}),\ i=1,2\}italic_u ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) × italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) := { italic_w ∈ italic_L start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ( roman_Ω ) : italic_w | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) , italic_i = 1 , 2 }, such that

(𝒜2u,v)Ω1Ω2=f,vH1(Ω)×H01(Ω)+κ2,vΓ0,vH01(Ω),formulae-sequencesubscriptsuperscript𝒜2𝑢𝑣subscriptΩ1subscriptΩ2subscript𝑓𝑣superscript𝐻1Ωsubscriptsuperscript𝐻10Ωsubscriptsubscript𝜅2𝑣subscriptΓ0for-all𝑣subscriptsuperscript𝐻10Ω(\mathcal{A}^{2}\nabla u,\nabla v)_{\Omega_{1}\cup\Omega_{2}}=\langle f,v% \rangle_{H^{-1}(\Omega)\times H^{1}_{0}(\Omega)}+\langle{\kappa_{2}},v\rangle_% {\Gamma_{0}},\ \ \forall\,v\in H^{1}_{0}(\Omega),( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ italic_u , ∇ italic_v ) start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∪ roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT = ⟨ italic_f , italic_v ⟩ start_POSTSUBSCRIPT italic_H start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT ( roman_Ω ) × italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ) end_POSTSUBSCRIPT + ⟨ italic_κ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , italic_v ⟩ start_POSTSUBSCRIPT roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_POSTSUBSCRIPT , ∀ italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ) , (2.15)

and

u|Γ=g,andu|Ω1u|Ω2=κ1on Γ0.formulae-sequenceevaluated-at𝑢Γ𝑔andevaluated-at𝑢subscriptΩ1evaluated-at𝑢subscriptΩ2subscript𝜅1on subscriptΓ0u|_{\Gamma}=g,\ \ \mbox{and}\ \ \ u|_{\Omega_{1}}-u|_{\Omega_{2}}={\kappa_{1}}% \ \ \text{on }\Gamma_{0}.italic_u | start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT = italic_g , and italic_u | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT - italic_u | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT = italic_κ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT on roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT . (2.16)

Here ,Γ0subscriptsubscriptΓ0\langle\cdot,\cdot\rangle_{\Gamma_{0}}⟨ ⋅ , ⋅ ⟩ start_POSTSUBSCRIPT roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_POSTSUBSCRIPT is a duality between H1/2(Γ0)superscript𝐻12subscriptΓ0H^{-1/2}(\Gamma_{0})italic_H start_POSTSUPERSCRIPT - 1 / 2 end_POSTSUPERSCRIPT ( roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ) and H1/2(Γ0)superscript𝐻12subscriptΓ0H^{1/2}(\Gamma_{0})italic_H start_POSTSUPERSCRIPT 1 / 2 end_POSTSUPERSCRIPT ( roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ), which evaluates as the L2superscript𝐿2L^{2}italic_L start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT inner product on Γ0subscriptΓ0\Gamma_{0}roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT for sufficiently smooth functions.

Theorem 2.5.

Let u𝑢uitalic_u be the solution of (2.15)-(2.16), and usuperscript𝑢u^{*}italic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT be obtained by the four steps below:

  1. 1.

    Find a u~H1(Ω)~𝑢superscript𝐻1Ω\tilde{u}\in H^{1}(\Omega)over~ start_ARG italic_u end_ARG ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ), such that

    (𝒜u~,𝒜v)Ω=f~,vΓv+κ2,vΓvΓ0,vH1(Ω).formulae-sequencesubscript𝒜~𝑢𝒜𝑣Ω~𝑓𝑣subscriptΓ𝑣subscriptsubscript𝜅2𝑣subscriptΓ𝑣subscriptΓ0for-all𝑣superscript𝐻1Ω(\mathcal{A}\nabla\tilde{u},\mathcal{A}\nabla v)_{\Omega}=\langle\tilde{f},v-% \fint_{\Gamma}v\rangle+\langle{\kappa_{2}},v-\fint_{\Gamma}v\rangle_{\Gamma_{0% }},\ \ \forall\,v\in H^{1}(\Omega).( caligraphic_A ∇ over~ start_ARG italic_u end_ARG , caligraphic_A ∇ italic_v ) start_POSTSUBSCRIPT roman_Ω end_POSTSUBSCRIPT = ⟨ over~ start_ARG italic_f end_ARG , italic_v - ⨏ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT italic_v ⟩ + ⟨ italic_κ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , italic_v - ⨏ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT italic_v ⟩ start_POSTSUBSCRIPT roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_POSTSUBSCRIPT , ∀ italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ) . (2.17)
  2. 2.

    Find a φH1(Ω)𝜑superscript𝐻1Ω\varphi\in H^{1}(\Omega)italic_φ ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ), such that

    (𝒜1curlφ,𝒜1curlψ)Ω1Ω2=𝐭1κ1,ψΓ0+𝐭(gu~|Γ),ψΓ,ψH1(Ω).formulae-sequencesubscriptsuperscript𝒜1curl𝜑superscript𝒜1curl𝜓subscriptΩ1subscriptΩ2subscriptsubscriptsubscript𝐭1subscript𝜅1𝜓subscriptΓ0subscriptsubscript𝐭𝑔evaluated-at~𝑢Γ𝜓Γfor-all𝜓superscript𝐻1Ω({\mathcal{A}^{-1}}{\rm curl}\varphi,{\mathcal{A}^{-1}}{\rm curl}\psi)_{\Omega% _{1}\cup\Omega_{2}}=\langle\partial_{\mathbf{t}_{1}}{\kappa_{1}},\psi\rangle_{% \Gamma_{0}}+\langle\partial_{\mathbf{t}}(g-\tilde{u}|_{\Gamma}),\psi\rangle_{% \Gamma},\ \forall\,\psi\in H^{1}(\Omega).( caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_curl italic_φ , caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_curl italic_ψ ) start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∪ roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT = ⟨ ∂ start_POSTSUBSCRIPT bold_t start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT italic_κ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_ψ ⟩ start_POSTSUBSCRIPT roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_POSTSUBSCRIPT + ⟨ ∂ start_POSTSUBSCRIPT bold_t end_POSTSUBSCRIPT ( italic_g - over~ start_ARG italic_u end_ARG | start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ) , italic_ψ ⟩ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT , ∀ italic_ψ ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ) . (2.18)
  3. 3.

    Find a ucH1(Ω1)×H1(Ω2)subscript𝑢𝑐superscript𝐻1subscriptΩ1superscript𝐻1subscriptΩ2u_{c}\in H^{1}(\Omega_{1})\times H^{1}(\Omega_{2})italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) × italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ), such that

    (𝒜uc,𝒜v)Ωi=(𝒜u~𝒜1curlφ,𝒜v)Ωi,vH1(Ωi),i=1,2.formulae-sequencesubscript𝒜subscript𝑢𝑐𝒜𝑣subscriptΩ𝑖subscript𝒜~𝑢superscript𝒜1curl𝜑𝒜𝑣subscriptΩ𝑖formulae-sequencefor-all𝑣superscript𝐻1subscriptΩ𝑖𝑖12(\mathcal{A}\nabla u_{c},\mathcal{A}\nabla v)_{\Omega_{i}}=(\mathcal{A}\nabla% \tilde{u}-\mathcal{A}^{-1}{\rm curl}\varphi,\mathcal{A}\nabla v)_{\Omega_{i}},% \ \forall\,v\in H^{1}(\Omega_{i}),\,i=1,2.( caligraphic_A ∇ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT , caligraphic_A ∇ italic_v ) start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT = ( caligraphic_A ∇ over~ start_ARG italic_u end_ARG - caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_curl italic_φ , caligraphic_A ∇ italic_v ) start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT , ∀ italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) , italic_i = 1 , 2 . (2.19)
  4. 4.

    Set u|Ω1=uc|Ω1C1evaluated-atsuperscript𝑢subscriptΩ1evaluated-atsubscript𝑢𝑐subscriptΩ1subscript𝐶1u^{*}|_{\Omega_{1}}=u_{c}|_{\Omega_{1}}-C_{1}italic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT = italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT - italic_C start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT, u|Ω2=uc|Ω2C2evaluated-atsuperscript𝑢subscriptΩ2evaluated-atsubscript𝑢𝑐subscriptΩ2subscript𝐶2u^{*}|_{\Omega_{2}}=u_{c}|_{\Omega_{2}}-C_{2}italic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT = italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT - italic_C start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT, with C2=1|γ|γ(ucg)subscript𝐶21𝛾subscript𝛾subscript𝑢𝑐𝑔C_{2}=\frac{1}{|\gamma|}\int_{\gamma}(u_{c}-g)italic_C start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG | italic_γ | end_ARG ∫ start_POSTSUBSCRIPT italic_γ end_POSTSUBSCRIPT ( italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT - italic_g ) for any γΓ𝛾Γ\gamma\subset\Gammaitalic_γ ⊂ roman_Γ such that |γ|0𝛾0|\gamma|\neq 0| italic_γ | ≠ 0, and C1=1|γ0|γ0(uc|Ω1u|Ω2κ1)subscript𝐶11subscript𝛾0subscriptsubscript𝛾0evaluated-atsubscript𝑢𝑐subscriptΩ1evaluated-atsuperscript𝑢subscriptΩ2subscript𝜅1C_{1}=\frac{1}{|\gamma_{0}|}\int_{\gamma_{0}}(u_{c}|_{\Omega_{1}}-u^{*}|_{% \Omega_{2}}-\kappa_{1})italic_C start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG | italic_γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT | end_ARG ∫ start_POSTSUBSCRIPT italic_γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_POSTSUBSCRIPT ( italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT - italic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT - italic_κ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) for any γ0Γ0subscript𝛾0subscriptΓ0\gamma_{0}\subset\Gamma_{0}italic_γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ⊂ roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT such that |γ0|0subscript𝛾00|\gamma_{0}|\neq 0| italic_γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT | ≠ 0.

Then u=usuperscript𝑢𝑢u^{*}=uitalic_u start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT = italic_u.

Proof.

By the first item, (𝒜2(uu~),v)=0superscript𝒜2𝑢~𝑢𝑣0(\mathcal{A}^{2}\nabla(u-\tilde{u}),\nabla v)=0( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ ( italic_u - over~ start_ARG italic_u end_ARG ) , ∇ italic_v ) = 0 for vH01(Ω)𝑣subscriptsuperscript𝐻10Ωv\in H^{1}_{0}(\Omega)italic_v ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT ( roman_Ω ), therefore, there exists φH1(Ω)𝜑superscript𝐻1Ω\varphi\in H^{1}(\Omega)italic_φ ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ) such that 𝒜(uu~)=𝒜1curlφ𝒜𝑢~𝑢superscript𝒜1curl𝜑\mathcal{A}\nabla(u-\tilde{u})=\mathcal{A}^{-1}{\rm curl}\varphicaligraphic_A ∇ ( italic_u - over~ start_ARG italic_u end_ARG ) = caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_curl italic_φ. It follows that rot𝒜2curlφ=0rotsuperscript𝒜2curl𝜑0{\rm rot}\,\mathcal{A}^{-2}{\rm curl}\varphi=0roman_rot caligraphic_A start_POSTSUPERSCRIPT - 2 end_POSTSUPERSCRIPT roman_curl italic_φ = 0. Then

(𝒜1curlφ,𝒜1curlψ)Ωisubscriptsuperscript𝒜1curl𝜑superscript𝒜1curl𝜓subscriptΩ𝑖\displaystyle({\mathcal{A}^{-1}}{\rm curl}\varphi,{\mathcal{A}^{-1}}{\rm curl}% \psi)_{\Omega_{i}}( caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_curl italic_φ , caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_curl italic_ψ ) start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT =𝒜2curlφ𝐭i,ψΩiabsentsubscriptsuperscript𝒜2curl𝜑subscript𝐭𝑖𝜓subscriptΩ𝑖\displaystyle=\langle\mathcal{A}^{-2}{\rm curl}\varphi\cdot\mathbf{t}_{i},\psi% \rangle_{\partial\Omega_{i}}= ⟨ caligraphic_A start_POSTSUPERSCRIPT - 2 end_POSTSUPERSCRIPT roman_curl italic_φ ⋅ bold_t start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , italic_ψ ⟩ start_POSTSUBSCRIPT ∂ roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT
=(uu~)𝐭i,ψΩi=𝐭i(u|Ωiu~|Ωi),ψΩi,absentsubscript𝑢~𝑢subscript𝐭𝑖𝜓subscriptΩ𝑖subscriptsubscriptsubscript𝐭𝑖evaluated-at𝑢subscriptΩ𝑖evaluated-at~𝑢subscriptΩ𝑖𝜓subscriptΩ𝑖\displaystyle=\langle\nabla(u-\tilde{u})\cdot\mathbf{t}_{i},\psi\rangle_{% \partial\Omega_{i}}=\langle\partial_{\mathbf{t}_{i}}(u|_{\partial\Omega_{i}}-% \tilde{u}|_{\partial\Omega_{i}}),\psi\rangle_{\partial\Omega_{i}},= ⟨ ∇ ( italic_u - over~ start_ARG italic_u end_ARG ) ⋅ bold_t start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , italic_ψ ⟩ start_POSTSUBSCRIPT ∂ roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT = ⟨ ∂ start_POSTSUBSCRIPT bold_t start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT ( italic_u | start_POSTSUBSCRIPT ∂ roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT - over~ start_ARG italic_u end_ARG | start_POSTSUBSCRIPT ∂ roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT ) , italic_ψ ⟩ start_POSTSUBSCRIPT ∂ roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT ,

for any ψH1(Ω)𝜓superscript𝐻1Ω\psi\in H^{1}(\Omega)italic_ψ ∈ italic_H start_POSTSUPERSCRIPT 1 end_POSTSUPERSCRIPT ( roman_Ω ), and further

(𝒜1curlφ,𝒜1curlψ)Ω1Ω2subscriptsuperscript𝒜1curl𝜑superscript𝒜1curl𝜓subscriptΩ1subscriptΩ2\displaystyle({\mathcal{A}^{-1}}{\rm curl}\varphi,{\mathcal{A}^{-1}}{\rm curl}% \psi)_{\Omega_{1}\cup\Omega_{2}}( caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_curl italic_φ , caligraphic_A start_POSTSUPERSCRIPT - 1 end_POSTSUPERSCRIPT roman_curl italic_ψ ) start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∪ roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT =i=12𝐭i(u|Ωiu~|Ωi),ψΩiabsentsuperscriptsubscript𝑖12subscriptsubscriptsubscript𝐭𝑖evaluated-at𝑢subscriptΩ𝑖evaluated-at~𝑢subscriptΩ𝑖𝜓subscriptΩ𝑖\displaystyle=\sum_{i=1}^{2}\langle\partial_{\mathbf{t}_{i}}(u|_{\partial% \Omega_{i}}-\tilde{u}|_{\partial\Omega_{i}}),\psi\rangle_{\partial\Omega_{i}}= ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ⟨ ∂ start_POSTSUBSCRIPT bold_t start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT ( italic_u | start_POSTSUBSCRIPT ∂ roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT - over~ start_ARG italic_u end_ARG | start_POSTSUBSCRIPT ∂ roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT ) , italic_ψ ⟩ start_POSTSUBSCRIPT ∂ roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT
=𝐭1κ1,ψΓ0+𝐭(gu~|Γ),ψΓ.absentsubscriptsubscriptsubscript𝐭1subscript𝜅1𝜓subscriptΓ0subscriptsubscript𝐭𝑔evaluated-at~𝑢Γ𝜓Γ\displaystyle=\langle\partial_{\mathbf{t}_{1}}{\kappa_{1}},\psi\rangle_{\Gamma% _{0}}+\langle\partial_{\mathbf{t}}(g-\tilde{u}|_{\Gamma}),\psi\rangle_{\Gamma}.= ⟨ ∂ start_POSTSUBSCRIPT bold_t start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT italic_κ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_ψ ⟩ start_POSTSUBSCRIPT roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_POSTSUBSCRIPT + ⟨ ∂ start_POSTSUBSCRIPT bold_t end_POSTSUBSCRIPT ( italic_g - over~ start_ARG italic_u end_ARG | start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT ) , italic_ψ ⟩ start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT .

The assertion follows immediately. ∎

Remark 2.6.

Again, it is helpful to understand the procedure by figuring out the respective strong forms related to equations (2.17)-(2.19).

  1. 1.

    By using integration by parts, we obtain the strong form of (2.17):

    {(𝒜2u~)=f,inΩ1Ω2,𝐧1(𝒜2u~)|Ω1+𝐧2(𝒜2u~)|Ω2=κ2,onΓ0,𝐧(𝒜2u~)=1|Γ|(f,1Ω+k2,1Γ0),onΓ.casessuperscript𝒜2~𝑢absent𝑓insubscriptΩ1subscriptΩ2evaluated-atsubscript𝐧1superscript𝒜2~𝑢subscriptΩ1evaluated-atsubscript𝐧2superscript𝒜2~𝑢subscriptΩ2absentsubscript𝜅2onsubscriptΓ0𝐧superscript𝒜2~𝑢absent1Γsubscript𝑓1Ωsubscriptsubscript𝑘21subscriptΓ0onΓ\left\{\begin{array}[]{rll}-\nabla\cdot(\mathcal{A}^{2}\nabla\tilde{u})&=f,&% \mbox{in}\,\Omega_{1}\cup\Omega_{2},\\ \mathbf{n}_{1}\cdot(\mathcal{A}^{2}\nabla\tilde{u})|_{\Omega_{1}}+\mathbf{n}_{% 2}\cdot(\mathcal{A}^{2}\nabla\tilde{u})|_{\Omega_{2}}&={\kappa_{2}},&\mbox{on}% \,\Gamma_{0},\\ \mathbf{n}\cdot(\mathcal{A}^{2}\partial\tilde{u})&=-\frac{1}{|\Gamma|}\left(% \langle f,1\rangle_{\Omega}+\langle k_{2},1\rangle_{\Gamma_{0}}\right),&\mbox{% on}\,\Gamma.\end{array}\right.{ start_ARRAY start_ROW start_CELL - ∇ ⋅ ( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ over~ start_ARG italic_u end_ARG ) end_CELL start_CELL = italic_f , end_CELL start_CELL in roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∪ roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , end_CELL end_ROW start_ROW start_CELL bold_n start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ⋅ ( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ over~ start_ARG italic_u end_ARG ) | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT + bold_n start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ⋅ ( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ over~ start_ARG italic_u end_ARG ) | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT end_CELL start_CELL = italic_κ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , end_CELL start_CELL on roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT , end_CELL end_ROW start_ROW start_CELL bold_n ⋅ ( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∂ over~ start_ARG italic_u end_ARG ) end_CELL start_CELL = - divide start_ARG 1 end_ARG start_ARG | roman_Γ | end_ARG ( ⟨ italic_f , 1 ⟩ start_POSTSUBSCRIPT roman_Ω end_POSTSUBSCRIPT + ⟨ italic_k start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , 1 ⟩ start_POSTSUBSCRIPT roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_POSTSUBSCRIPT ) , end_CELL start_CELL on roman_Γ . end_CELL end_ROW end_ARRAY (2.20)
  2. 2.

    The boundary value problem corresponding to (2.18) is:

    {rot(𝒜2curlφ)=0inΩ1Ω2,𝐭1(𝒜2curlφ)|Ω1+𝐭2(𝒜2curlφ)|Ω2=𝐭1κ1,onΓ0,𝐭(𝒜2curlφ)=𝐭(gu~),onΓ.casesrotsuperscript𝒜2curl𝜑absent0insubscriptΩ1subscriptΩ2evaluated-atsubscript𝐭1superscript𝒜2curl𝜑subscriptΩ1evaluated-atsubscript𝐭2superscript𝒜2curl𝜑subscriptΩ2absentsubscriptsubscript𝐭1subscript𝜅1onsubscriptΓ0𝐭superscript𝒜2curl𝜑absentsubscript𝐭𝑔~𝑢onΓ\left\{\begin{array}[]{rll}-{\rm rot}(\mathcal{A}^{-2}{\rm curl}\varphi)&=0&% \mbox{in}\,\Omega_{1}\cup\Omega_{2},\\ \mathbf{t}_{1}\cdot(\mathcal{A}^{-2}{\rm curl}\varphi)|_{\Omega_{1}}+\mathbf{t% }_{2}\cdot(\mathcal{A}^{-2}{\rm curl}\varphi)|_{\Omega_{2}}&=\partial_{\mathbf% {t}_{1}}\kappa_{1},&\mbox{on}\,\Gamma_{0},\\ \mathbf{t}\cdot(\mathcal{A}^{-2}{\rm curl}\varphi)&=\partial_{\mathbf{t}}(g-% \tilde{u}),&\mbox{on}\,\Gamma.\end{array}\right.{ start_ARRAY start_ROW start_CELL - roman_rot ( caligraphic_A start_POSTSUPERSCRIPT - 2 end_POSTSUPERSCRIPT roman_curl italic_φ ) end_CELL start_CELL = 0 end_CELL start_CELL in roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∪ roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , end_CELL end_ROW start_ROW start_CELL bold_t start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ⋅ ( caligraphic_A start_POSTSUPERSCRIPT - 2 end_POSTSUPERSCRIPT roman_curl italic_φ ) | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT + bold_t start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ⋅ ( caligraphic_A start_POSTSUPERSCRIPT - 2 end_POSTSUPERSCRIPT roman_curl italic_φ ) | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT end_CELL start_CELL = ∂ start_POSTSUBSCRIPT bold_t start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT italic_κ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , end_CELL start_CELL on roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT , end_CELL end_ROW start_ROW start_CELL bold_t ⋅ ( caligraphic_A start_POSTSUPERSCRIPT - 2 end_POSTSUPERSCRIPT roman_curl italic_φ ) end_CELL start_CELL = ∂ start_POSTSUBSCRIPT bold_t end_POSTSUBSCRIPT ( italic_g - over~ start_ARG italic_u end_ARG ) , end_CELL start_CELL on roman_Γ . end_CELL end_ROW end_ARRAY (2.21)
  3. 3.

    The boundary value problem corresponding to (2.19) is:

    {(𝒜2uc)=f,inΩi,𝐧i(𝒜2uc)𝐧i(𝒜2u~)=𝐭φ,onΩi,casessuperscript𝒜2subscript𝑢𝑐absent𝑓insubscriptΩ𝑖subscript𝐧𝑖superscript𝒜2subscript𝑢𝑐subscript𝐧𝑖superscript𝒜2~𝑢absentsubscript𝐭𝜑onsubscriptΩ𝑖\left\{\begin{array}[]{rll}-\nabla\cdot(\mathcal{A}^{2}\nabla u_{c})&=f,&\mbox% {in}\,\Omega_{i},\\ \mathbf{n}_{i}\cdot(\mathcal{A}^{2}\nabla u_{c})-\mathbf{n}_{i}\cdot(\mathcal{% A}^{2}\nabla\tilde{u})&=-\partial_{\mathbf{t}}\varphi,&\mbox{on}\,\partial% \Omega_{i},\end{array}\right.{ start_ARRAY start_ROW start_CELL - ∇ ⋅ ( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ) end_CELL start_CELL = italic_f , end_CELL start_CELL in roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , end_CELL end_ROW start_ROW start_CELL bold_n start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ⋅ ( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ) - bold_n start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ⋅ ( caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ∇ over~ start_ARG italic_u end_ARG ) end_CELL start_CELL = - ∂ start_POSTSUBSCRIPT bold_t end_POSTSUBSCRIPT italic_φ , end_CELL start_CELL on ∂ roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , end_CELL end_ROW end_ARRAY (2.22)

    for i=1,2𝑖12i=1,2italic_i = 1 , 2.

From these strong forms, we see clearly that u~~𝑢\tilde{u}over~ start_ARG italic_u end_ARG and ϕitalic-ϕ\phiitalic_ϕ are both continuous functions but with derivative jumps on interface Γ0subscriptΓ0\Gamma_{0}roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT. This softens the jumps between uc|Ω1evaluated-atsubscript𝑢𝑐subscriptΩ1u_{c}|_{\Omega_{1}}italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUBSCRIPT and uc|Ω2evaluated-atsubscript𝑢𝑐subscriptΩ2u_{c}|_{\Omega_{2}}italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT | start_POSTSUBSCRIPT roman_Ω start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUBSCRIPT across Γ0subscriptΓ0\Gamma_{0}roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT on both function value and derivative jumps.

3 Natural deep Ritz methods

3.1 Natural deep Ritz method for Poisson equations with Dirichlet boundary conditions

Note that the three equations (2.2)-(2.3)-(2.4) in weak forms correspond to three elliptic equations with Neumann boundary conditions (2.5)-(2.6)-(2.7), which can be efficiently solved using Deep Ritz method without boundary penalty. Details are given in the following three steps. As usual, we use ΦNN(d,1)subscriptΦ𝑁𝑁𝑑1\Phi_{NN}(d,1)roman_Φ start_POSTSUBSCRIPT italic_N italic_N end_POSTSUBSCRIPT ( italic_d , 1 ) for the set of neural network functions outputting a 1-dim vector with a d-dim input vector.

  1. 1.

    Find u1ΦNN(d,1)/subscript𝑢1subscriptΦ𝑁𝑁𝑑1u_{1}\in\Phi_{NN}(d,1)/\mathbb{R}italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∈ roman_Φ start_POSTSUBSCRIPT italic_N italic_N end_POSTSUBSCRIPT ( italic_d , 1 ) / blackboard_R by optimizing

    1(u1):=[{xj,ωj}𝒟12|u1(xj)|2ωjf(xj)(u1(xj)c1)ωj]+c12,assignsubscript1subscript𝑢1delimited-[]subscriptsubscript𝑥𝑗subscript𝜔𝑗𝒟12superscriptsubscript𝑢1subscript𝑥𝑗2subscript𝜔𝑗𝑓subscript𝑥𝑗subscript𝑢1subscript𝑥𝑗subscript𝑐1subscript𝜔𝑗superscriptsubscript𝑐12\mathcal{L}_{1}(u_{1}):=\Bigl{[}\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}}\frac% {1}{2}|\nabla u_{1}(x_{j})|^{2}\omega_{j}-f(x_{j})(u_{1}(x_{j})-c_{1})\omega_{% j}\Bigr{]}+c_{1}^{2},caligraphic_L start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) := [ ∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D end_POSTSUBSCRIPT divide start_ARG 1 end_ARG start_ARG 2 end_ARG | ∇ italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT - italic_f ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ( italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) - italic_c start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ] + italic_c start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT , (3.1)

    where c1=1|𝒟Γ|{xj,ωj}𝒟Γu1(xj)ωjsubscript𝑐11subscript𝒟Γsubscriptsubscript𝑥𝑗subscript𝜔𝑗subscript𝒟Γsubscript𝑢1subscript𝑥𝑗subscript𝜔𝑗c_{1}=\frac{1}{|\mathcal{D}_{\Gamma}|}\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}% _{\Gamma}}u_{1}(x_{j})\omega_{j}italic_c start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG | caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT | end_ARG ∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT. 𝒟𝒟\mathcal{D}caligraphic_D and 𝒟Γsubscript𝒟Γ\mathcal{D}_{\Gamma}caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT are the set of quadrature points and weights for domain ΩΩ\Omegaroman_Ω and its boundary ΓΓ\Gammaroman_Γ. Hereby, the term c12superscriptsubscript𝑐12c_{1}^{2}italic_c start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT is added in the objective function to make the solution unique.

  2. 2.

    Find φΦNN(d,1)𝜑subscriptΦ𝑁𝑁𝑑1\varphi\in\Phi_{NN}(d,1)italic_φ ∈ roman_Φ start_POSTSUBSCRIPT italic_N italic_N end_POSTSUBSCRIPT ( italic_d , 1 ) by optimizing

    2(φ):=assignsubscript2𝜑absent\displaystyle\mathcal{L}_{2}(\varphi):=caligraphic_L start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ( italic_φ ) := {xj,ωj}𝒟12[curlφ(xj)]2ωj+{xj,ωj}𝒟Γ[g(xj)τφ(xj)+τu1(xj)φ(xj)]ωjsubscriptsubscript𝑥𝑗subscript𝜔𝑗𝒟12superscriptdelimited-[]curl𝜑subscript𝑥𝑗2subscript𝜔𝑗subscriptsubscript𝑥𝑗subscript𝜔𝑗subscript𝒟Γdelimited-[]𝑔subscript𝑥𝑗subscript𝜏𝜑subscript𝑥𝑗subscript𝜏subscript𝑢1subscript𝑥𝑗𝜑subscript𝑥𝑗subscript𝜔𝑗\displaystyle\sum_{\{x_{j},\omega_{j}\}\ \in\mathcal{D}}\frac{1}{2}[{\rm curl}% \varphi(x_{j})]^{2}\omega_{j}+\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}_{\Gamma% }}\bigl{[}g(x_{j})\partial_{\mathbf{\tau}}\varphi(x_{j})+\partial_{\mathbf{% \tau}}u_{1}(x_{j})\varphi(x_{j})\bigr{]}\omega_{j}∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D end_POSTSUBSCRIPT divide start_ARG 1 end_ARG start_ARG 2 end_ARG [ roman_curl italic_φ ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ] start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT + ∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT end_POSTSUBSCRIPT [ italic_g ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ∂ start_POSTSUBSCRIPT italic_τ end_POSTSUBSCRIPT italic_φ ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) + ∂ start_POSTSUBSCRIPT italic_τ end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) italic_φ ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ] italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT
    +[{xj,ωj}𝒟Γφ(xj)ωj]2.superscriptdelimited-[]subscriptsubscript𝑥𝑗subscript𝜔𝑗subscript𝒟Γ𝜑subscript𝑥𝑗subscript𝜔𝑗2\displaystyle+\Bigl{[}\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}_{\Gamma}}% \varphi(x_{j})\omega_{j}\Bigr{]}^{2}.+ [ ∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT end_POSTSUBSCRIPT italic_φ ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ] start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT . (3.2)

    Again, the last term is added to make the solution unique.

  3. 3.

    Find the solution ucΦNN(d,1)subscript𝑢𝑐subscriptΦ𝑁𝑁𝑑1u_{c}\in\Phi_{NN}(d,1)italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ∈ roman_Φ start_POSTSUBSCRIPT italic_N italic_N end_POSTSUBSCRIPT ( italic_d , 1 ) by minimizing:

    3(uc):=assignsubscript3subscript𝑢𝑐absent\displaystyle\mathcal{L}_{3}(u_{c}):=caligraphic_L start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT ( italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ) := {xj,ωj}𝒟|uc(xj)u1(xj)+curlφ(xj)|2ωjsubscriptsubscript𝑥𝑗subscript𝜔𝑗𝒟superscriptsubscript𝑢𝑐subscript𝑥𝑗subscript𝑢1subscript𝑥𝑗curl𝜑subscript𝑥𝑗2subscript𝜔𝑗\displaystyle\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}}\bigl{|}\nabla u_{c}(x_{% j})-\nabla u_{1}(x_{j})+{\rm curl}\varphi(x_{j})\bigr{|}^{2}\omega_{j}∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D end_POSTSUBSCRIPT | ∇ italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) - ∇ italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) + roman_curl italic_φ ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT
    +[{xj,ωj}𝒟Γ(uc(xj)g(xj))ωj]2.superscriptdelimited-[]subscriptsubscript𝑥𝑗subscript𝜔𝑗subscript𝒟Γsubscript𝑢𝑐subscript𝑥𝑗𝑔subscript𝑥𝑗subscript𝜔𝑗2\displaystyle+\Bigl{[}\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}_{\Gamma}}(u_{c}% (x_{j})-g(x_{j}))\omega_{j}\Bigr{]}^{2}.+ [ ∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT end_POSTSUBSCRIPT ( italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) - italic_g ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ) italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ] start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT . (3.3)

    The last term is a regularization term to make the integration of ucsubscript𝑢𝑐u_{c}italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT and g𝑔gitalic_g on boundary ΩΩ\partial\Omega∂ roman_Ω equal to each other. Then, ucsubscript𝑢𝑐u_{c}italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT is a proper numerical approximation of u𝑢uitalic_u.

One may optimize the three equation (3.1)-(3.3) one by one, or optimize 1+2+3subscript1subscript2subscript3\mathcal{L}_{1}+\mathcal{L}_{2}+\mathcal{L}_{3}caligraphic_L start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT + caligraphic_L start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT + caligraphic_L start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT all in one. To make the training procedure simpler, we take the latter approach in this paper.

The variable coefficient systems (2.17)-(2.18)-(2.19) can be solved similarly by the proposed natural deep Ritz method. We omit the details to save space.

3.2 Natural deep Ritz method for elliptic interface problems

For inteface problem defined in (2.17)-(2.18)-(2.19), it is more involved to design an efficient deep Ritz method. We will use similar approach as in the Poisson equations cases to solve (2.17)-(2.18), since both u1subscript𝑢1u_{1}italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT and φ𝜑\varphiitalic_φ has no jump of function values on the interface Γ0subscriptΓ0\Gamma_{0}roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT. We use two neural network functions to represent ucsubscript𝑢𝑐u_{c}italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT, since it contains jumps on the interface Γ0subscriptΓ0\Gamma_{0}roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT. We will solve (2.19) with two neural networks (or one neural network with two outputs ΦNN(d,2)subscriptΦ𝑁𝑁𝑑2\Phi_{NN}(d,2)roman_Φ start_POSTSUBSCRIPT italic_N italic_N end_POSTSUBSCRIPT ( italic_d , 2 )), one for each subdomain Ωi,i=1,2formulae-sequencesubscriptΩ𝑖𝑖12\Omega_{i},i=1,2roman_Ω start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , italic_i = 1 , 2. The details are given below.

  1. 1.

    Find u1ΦNN(d,1)/subscript𝑢1subscriptΦ𝑁𝑁𝑑1u_{1}\in\Phi_{NN}(d,1)/\mathbb{R}italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∈ roman_Φ start_POSTSUBSCRIPT italic_N italic_N end_POSTSUBSCRIPT ( italic_d , 1 ) / blackboard_R by optimizing

    1(u1):=assignsubscript1subscript𝑢1absent\displaystyle\mathcal{L}_{1}(u_{1}):=caligraphic_L start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) := [{xj,ωj}𝒟12|u1(xj)|2𝒜2(xj)ωjf(xj)(u1(xj)c1)ωj]delimited-[]subscriptsubscript𝑥𝑗subscript𝜔𝑗𝒟12superscriptsubscript𝑢1subscript𝑥𝑗2superscript𝒜2subscript𝑥𝑗subscript𝜔𝑗𝑓subscript𝑥𝑗subscript𝑢1subscript𝑥𝑗subscript𝑐1subscript𝜔𝑗\displaystyle\Bigl{[}\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}}\frac{1}{2}|% \nabla u_{1}(x_{j})|^{2}\mathcal{A}^{2}(x_{j})\omega_{j}-f(x_{j})(u_{1}(x_{j})% -c_{1})\omega_{j}\Bigr{]}[ ∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D end_POSTSUBSCRIPT divide start_ARG 1 end_ARG start_ARG 2 end_ARG | ∇ italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) | start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT caligraphic_A start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT - italic_f ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ( italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) - italic_c start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ] (3.4)
    [{xj,ωj}𝒟Γ0κ2(xj)(u1(xj)c1)ωj]+c12,delimited-[]subscriptsubscript𝑥𝑗subscript𝜔𝑗subscript𝒟subscriptΓ0subscript𝜅2subscript𝑥𝑗subscript𝑢1subscript𝑥𝑗subscript𝑐1subscript𝜔𝑗superscriptsubscript𝑐12\displaystyle-\Bigl{[}\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}_{\Gamma_{0}}}% \kappa_{2}(x_{j})(u_{1}(x_{j})-c_{1})\omega_{j}\Bigr{]}+c_{1}^{2},- [ ∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D start_POSTSUBSCRIPT roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_POSTSUBSCRIPT end_POSTSUBSCRIPT italic_κ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ( italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) - italic_c start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ] + italic_c start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT , (3.5)

    where c1=1|𝒟Γ|{xj,ωj}𝒟Γu1(xj)ωjsubscript𝑐11subscript𝒟Γsubscriptsubscript𝑥𝑗subscript𝜔𝑗subscript𝒟Γsubscript𝑢1subscript𝑥𝑗subscript𝜔𝑗c_{1}=\frac{1}{|\mathcal{D}_{\Gamma}|}\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}% _{\Gamma}}u_{1}(x_{j})\omega_{j}italic_c start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG | caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT | end_ARG ∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT. 𝒟𝒟\mathcal{D}caligraphic_D, 𝒟Γsubscript𝒟Γ\mathcal{D}_{\Gamma}caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT and 𝒟Γ0subscript𝒟subscriptΓ0\mathcal{D}_{\Gamma_{0}}caligraphic_D start_POSTSUBSCRIPT roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_POSTSUBSCRIPT are the set of quadrature points and weights for domain ΩΩ\Omegaroman_Ω, boundary ΓΓ\Gammaroman_Γ and interface Γ0subscriptΓ0\Gamma_{0}roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT.

  2. 2.

    Find φΦNN(d,1)𝜑subscriptΦ𝑁𝑁𝑑1\varphi\in\Phi_{NN}(d,1)italic_φ ∈ roman_Φ start_POSTSUBSCRIPT italic_N italic_N end_POSTSUBSCRIPT ( italic_d , 1 ) by optimizing

    2(φ):=assignsubscript2𝜑absent\displaystyle\mathcal{L}_{2}(\varphi):=caligraphic_L start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ( italic_φ ) := {xj,ωj}𝒟12[curlφ(xj)]2𝒜2(xj)ωjsubscriptsubscript𝑥𝑗subscript𝜔𝑗𝒟12superscriptdelimited-[]curl𝜑subscript𝑥𝑗2superscript𝒜2subscript𝑥𝑗subscript𝜔𝑗\displaystyle\sum_{\{x_{j},\omega_{j}\}\ \in\mathcal{D}}\frac{1}{2}[{\rm curl}% \varphi(x_{j})]^{2}\mathcal{A}^{-2}(x_{j})\omega_{j}∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D end_POSTSUBSCRIPT divide start_ARG 1 end_ARG start_ARG 2 end_ARG [ roman_curl italic_φ ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ] start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT caligraphic_A start_POSTSUPERSCRIPT - 2 end_POSTSUPERSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT
    +{xj,ωj}𝒟Γ[g(xj)τφ(xj)+τu1(xj)φ(xj)]ωjsubscriptsubscript𝑥𝑗subscript𝜔𝑗subscript𝒟Γdelimited-[]𝑔subscript𝑥𝑗subscript𝜏𝜑subscript𝑥𝑗subscript𝜏subscript𝑢1subscript𝑥𝑗𝜑subscript𝑥𝑗subscript𝜔𝑗\displaystyle+\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}_{\Gamma}}\bigl{[}g(x_{j% })\partial_{\mathbf{\tau}}\varphi(x_{j})+\partial_{\mathbf{\tau}}u_{1}(x_{j})% \varphi(x_{j})\bigr{]}\omega_{j}+ ∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT end_POSTSUBSCRIPT [ italic_g ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ∂ start_POSTSUBSCRIPT italic_τ end_POSTSUBSCRIPT italic_φ ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) + ∂ start_POSTSUBSCRIPT italic_τ end_POSTSUBSCRIPT italic_u start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) italic_φ ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ] italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT
    +[{xj,ωj}𝒟Γ0κ1(xj)τφ(xj)ωj]+[{xj,ωj}𝒟Γφ(xj)ωj]2.delimited-[]subscriptsubscript𝑥𝑗subscript𝜔𝑗subscript𝒟subscriptΓ0subscript𝜅1subscript𝑥𝑗subscript𝜏𝜑subscript𝑥𝑗subscript𝜔𝑗superscriptdelimited-[]subscriptsubscript𝑥𝑗subscript𝜔𝑗subscript𝒟Γ𝜑subscript𝑥𝑗subscript𝜔𝑗2\displaystyle+\Bigl{[}\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}_{\Gamma_{0}}}% \kappa_{1}(x_{j})\partial_{\mathbf{\tau}}\varphi(x_{j})\omega_{j}\Bigr{]}+% \Bigl{[}\sum_{\{x_{j},\omega_{j}\}\in\mathcal{D}_{\Gamma}}\varphi(x_{j})\omega% _{j}\Bigr{]}^{2}.+ [ ∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D start_POSTSUBSCRIPT roman_Γ start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT end_POSTSUBSCRIPT end_POSTSUBSCRIPT italic_κ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) ∂ start_POSTSUBSCRIPT italic_τ end_POSTSUBSCRIPT italic_φ ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ] + [ ∑ start_POSTSUBSCRIPT { italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT , italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT } ∈ caligraphic_D start_POSTSUBSCRIPT roman_Γ end_POSTSUBSCRIPT end_POSTSUBSCRIPT italic_φ ( italic_x start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ) italic_ω start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT ] start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT . (3.6)

    Note that the last term is added to make the solution unique.

  3. 3.

    Find the solution (u1c,u2c)ΦNN(d,2)subscriptsuperscript𝑢𝑐1subscriptsuperscript𝑢𝑐2subscriptΦ𝑁𝑁𝑑2(u^{c}_{1},u^{c}_{2})\in\Phi_{NN}(d,2)( italic_u start_POSTSUPERSCRIPT italic_c end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_u start_POSTSUPERSCRIPT italic_c end_POSTSUPERSCRIPT start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT ) ∈ roman_Φ start_POSTSUBSCRIPT italic_N italic_N end_POSTSUBSCRIPT ( italic_d , 2 ) by minimizing:

    3(uc):=assignsubscript3subscript𝑢𝑐absent\displaystyle\mathcal{L}_{3}(u_{c}):=caligraphic_L start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT ( italic_u start_POSTSUBSCRIPT italic_c end_POSTSUBSCRIPT ) := i=1,2{xj,ωj}𝒟i|𝒜(