## Eliminating Gibbs Phenomena: A Non-linear Petrov-Galerkin Method for the Convection-Diffusion-Reaction Equation

Paul Houston a, ∗ , Sarah Roggendorf a, † and Kristoffer G. van der Zee a, ‡

a School of Mathematical Sciences, The University of Nottingham , University Park, NG7 2RD, United Kingdom

August 6, 2019

## Abstract

In this article we consider the numerical approximation of the convectiondiffusion-reaction equation. One of the main challenges of designing a numerical method for this problem is that boundary layers occurring in the convectiondominated case can lead to non-physical oscillations in the numerical approximation, often referred to as Gibbs phenomena. The idea of this article is to consider the approximation problem as a residual minimization in dual norms in L q -type Sobolev spaces, with 1 &lt; q &lt; ∞ . We then apply a non-standard, non-linear Petrov-Galerkin discretization, that is applicable to reflexive Banach spaces such that the space itself and its dual are strictly convex. Similar to discontinuous Petrov-Galerkin methods, this method is based on minimizing the residual in a dual norm. Replacing the intractable dual norm by a suitable discrete dual norm gives rise to a non-linear inexact mixed method. This generalizes the Petrov-Galerkin framework developed in the context of discontinuous Petrov-Galerkin methods to more general Banach spaces. For the convectiondiffusion-reaction equation, this yields a generalization of a similar approach from the L 2 -setting to the L q -setting. A key advantage of considering a more general Banach space setting is that, in certain cases, the oscillations in the numerical approximation vanish as q tends to 1, as we will demonstrate using a few simple numerical examples.

Keywords: convection-diffusion; Petrov-Galerkin; Gibbs phenomenon; finite element methods; Banach spaces

AMS Subject Classification: 65N30; 35J20

## 1 Introduction

The term Gibbs phenomenon originally refers to the effect that the partial sums of the Fourier series approximating a function with a jump discontinuity exhibit over- and undershoots near the discontinuity. The phenomenon is named after Willard Gibbs who described it in 1899 [1], though it had already been discovered earlier by Henry Wilbraham in 1848 [2]. It also occurs in the best approximation by spline functions in the L 2 -metric [3] and is one of the main challenges in the numerical approximation of partial differential equations (PDEs) whose solutions contain sharp features such as shocks or thin layers. In [4] it is shown in one dimension that the best approximation of jump discontinuities by polygonal lines on a uniform grid in one dimension does not lead to Gibbs phenomenon in L 1 . More precisely, it is shown that the overshoot of the

∗ Paul.Houston@nottingham.ac.uk

† Corresponding author: Sarah.Roggendorf@nottingham.ac.uk

‡ KG.vanderZee@nottingham.ac.uk

best approximation in L q , 1 &lt; q &lt; ∞ , is an increasing function of q that tends to 0 as q tends to 1. We show in [5] that this result is still true for the best approximation in L q by piecewise linear functions on certain meshes in two dimensions and certain non-uniform meshes in one dimension. However, there exist meshes both in one and two dimensions such that the (maximal) overshoot tends to some α &gt; 0 as q → 1. Nonetheless, it is suggested in [5] that if the location of the discontinuity is known, a mesh can be constructed in such a way that the overshoot vanishes. In [6], it is shown that Gibbs phenomena occur in the best approximation of a function containing a jump discontinuity by a trigonometric polynomial in the L 1 -metric. This confirms that the choice of the finite dimensional approximation space crucially determines whether Gibbs phenomena can be eliminated by considering best approximation in L 1 .

The motivation of this article is to exploit the Gibbs-reducing property of L q -type spaces in the numerical approximation of PDEs using finite element methods. A similar idea has already been pursued for numerical methods in L q by Guermond [7]. In [7], Guermond points out that there are only very few attempts to approximate PDEs directly in L 1 despite the fact that first-order PDEs and their non-linear generalizations have been extensively studied in L 1 . The existing numerical methods to achieve this include the ones outlined in the articles by Lavery [8, 9, 10], the reweighted leastsquares method of Jiang [11, 12] and the methods outlined in the series of articles by Guermond et al. [7, 13, 14, 15, 16].

More recently, a novel approach to designing finite element methods in a very general Banach space setting has been introduced in [17]. This approach is rooted in the so-called Discontinuous Petrov-Galerkin (DPG) methods [18] and extends the concept of optimal test norms and functions from Hilbert spaces to more general Banach spaces yielding a scheme that can be interpreted as a non-linear PetrovGalerkin method. At least in an abstract sense, this approach outlines how to design a numerical method that leads to a quasi-best approximation of the solution in a space of choice, provided the continuous problem is well-posed in a suitable sense. In this article we apply this abstract approach to the convection-diffusion-reaction equation in a W 1 ,q 0 (Ω)W 1 ,q ′ 0 (Ω) setting where 1 /q + 1 /q ′ = 1 and study the effect this has on the numerical approximation of boundary layers. We will see that as q → 1, the Gibbs phenomenon can be eliminated entirely on some meshes. We will also consider certain choices of meshes for which this is not the case and consider how this can be fixed.

## 1.1 Notation

Throughout this article, we denote by L q (Ω), 1 ≤ q &lt; ∞ , the Lebesgue space of q -integrable functions on a bounded Lipschitz domain Ω ⊂ R d , d ∈ { 1 2 3 , , , . . . } ; L ∞ (Ω) is the Lebesgue space of functions on Ω with finite essential supremum; and W 1 ,q (Ω), 1 ≤ q ≤ ∞ , is the Sobolev space of functions that are in L q (Ω) such that their gradient is in L q (Ω) . d Furthermore, W 1 ,q 0 (Ω) ⊂ W 1 ,q (Ω) is the subspace of all functions with zero trace on the boundary ∂ Ω. The corresponding norms are denoted by ‖ · ‖ L q (Ω) and ‖ · ‖ W 1 ,q (Ω) , respectively, and the Sobolev-semi norm on W 1 ,q (Ω) is given by | · | W 1 ,q (Ω) . For q = 2, we furthermore use the usual notation H 1 (Ω) := W 1 2 , (Ω) and H 1 0 (Ω) := W 1 2 , 0 (Ω). For 1 ≤ q ≤ ∞ we write q ′ to denote the dual exponent such that 1 /q + 1 /q ′ = 1. For any Banach space V , its norm is denoted by ‖ · ‖ V and its dual space by V ′ ; the dual space of W 1 ,q 0 (Ω) is given by W -1 ,q ′ (Ω) and H -1 (Ω) := W -1 2 , (Ω). For v ∈ V and ϕ ∈ V ′ , we have the duality pairing

$$\langle \varphi, v \rangle _ { V ^ { \prime }, V } \coloneqq \varphi ( v ).$$

For any ϕ ∈ V ′ , its norm in the dual space V ′ is given by

/negationslash

$$\| \varphi \| _ { V ^ { \prime } } \coloneqq \sup _ { v \in V, v \neq 0 } \frac { \langle \varphi, v \rangle _ { V ^ { \prime }, V } } { \| v \| _ { V } }.$$

If V is a Hilbert space, we denote the Riesz map on V by R V .

## 1.2 Problem Statement

The approach to generalizing the DPG framework to general Banach spaces introduced in [17] is based on residual minimization. To this end, the authors consider the abstract problem: find u ∈ U such that

$$B u = f \text{ in } V ^ { \prime },$$

where U and V are Banach spaces, B : U → V ′ is a continuous, bounded-below linear operator, and the right hand side f is in the dual space V ′ . The associated residual minimization problem for a given finite dimension subspace U n ⊂ U , e.g., a finite element space, of dimension n is defined as follows:

$$u _ { n } = \arg \min _ { w _ { n } \in U _ { n } } \| f - B w _ { n } \| _ { V ^ { \prime } }.$$

It can be shown that the solution u n is a quasi-best approximation of the analytical solution u , in the sense that

$$\| u - u _ { n } \| _ { U } \leq \frac { M } { \gamma } \inf _ { w _ { n } \in U _ { n } } \| u - w _ { n } \| _ { U },$$

where M is the continuity constant of B and γ the bounded-below constant of B

In [17] it is shown that the minimization problem can be reformulated yielding the following non-linear mixed system: find ( r, u ) ∈ V × U such that

. n n

$$\langle J _ { V } ( r ), v \rangle _ { V ^ { \prime }, V } + \langle B u _ { n }, v \rangle _ { V ^ { \prime }, V } & = \langle f, v \rangle _ { V ^ { \prime }, V }, \quad \forall v \in V, \\ \langle B w _ { n }, r \rangle _ { V ^ { \prime }, V } & = 0, \quad \forall w _ { n } \in U _ { n },$$

where J V is a so-called duality mapping. Duality mappings are a generalization of the Riesz map R V to general Banach spaces with the main difference that they are non-linear mappings unless V is a Hilbert space. To turn the above mixed system into a practical method, V is additionally replaced by a finite dimensional subspace V m of dimension m . As a result the minimization problem is no longer solved exactly. However, if the spaces U n and V m are chosen in a suitable way, one can obtain a wellposed fully discrete mixed system that retains the quasi-best approximation property of u n with a modified constant.

The aim of this article is to apply this abstract framework to the convectiondiffusion-reaction equation

$$- \varepsilon \Delta u + b \cdot \nabla u + c u & = f \quad \text{ in } \Omega, \\ u & = 0 \quad \text{ on } \Gamma = \partial \Omega,$$

where ε , b : Ω → R d , and c : Ω → R are the (positive) diffusion parameter, convection field and reaction coefficient, respectively, and f : Ω → R is a given source term. Therefore, we will consider the linear operator associated with the following bilinear form:

$$\mathcal { B } _ { \varepsilon } ( u, v ) = \varepsilon \int _ { \Omega } \nabla u \cdot \nabla v \, \mathrm d x - \int _ { \Omega } u \nabla \cdot ( b v ) \, \mathrm d x + \int _ { \Omega } c u v \, \mathrm d x.$$

The resulting method is a generalization to the W 1 ,q 0 (Ω)W 1 ,q ′ 0 (Ω)-setting of the method introduced for the H 1 0 (Ω)-setting in [19], where the DPG framework is applied to the convection-diffusion-reaction equation without introducing broken test spaces. Related Petrov-Galerkin formulations are studied in [20, 21, 22, 23, 24].

## 1.3 Summary of Results

In this article we study how the mixed method (1.1) and its fully discrete counterpart can be applied to the convection-diffusion-reaction equation (1.2). In particular, we study the choice of the space V , the corresponding norm ‖·‖ V , and the discrete space V m . The norm ‖ · ‖ V on the space V determines the operator J V in (1.1) and thus

crucially determines the resulting method. As in the special case q = 2 investigated in [19], we introduce weakly imposed boundary conditions on the inflow boundary in the space V m to address robustness issues. We demonstrate in one dimension, how this choice of boundary conditions affects the approximation and compare this approach with the case when a weighted norm on V is employed.

The main focus of our numerical investigation is eliminating Gibbs phenomena in the finite element approximation. Indeed, we will see that the numerical approximation generated by our method qualitatively behaves like the L q (Ω)-best approximation of the analytical solution. Thus, the Gibbs phenomenon can be eliminated by taking the limit q → 1 provided that the L 1 (Ω)-best approximation does not exhibit Gibbs phenomena. The results in [5] show that this depends on the mesh that is chosen. In one dimension only certain non-uniform grids have the property that the L 1 (Ω)-best approximation contains over- and undershoots, whereas in higher dimensions this can even occur on structured, uniform meshes. We will demonstrate for one two-dimensional example that it is possible to use the insights from [5] to modify the mesh in order to eliminate Gibbs phenomena as q → 1.

## 1.4 Outline of the Paper

This article is structured as follows: in Section 2 we introduce duality mappings, which are essential to the abstract framework in [17], cf., (1.1). In Section 3 we give a brief overview of the abstract framework in [17]. Then, in Section 4 we then apply this framework to the convection-diffusion-reaction equation and illustrate how this yields a practical method that can be implemented, e.g., in FEniCS [25, 26]. In Section 5 we investigate the practical performance of the proposed method for a range of different test problems in one and two dimensions. Finally, in 6, we summarize the work presented in this article and highlight the potential and challenges of the proposed numerical method.

## 2 Duality Mappings

One of the key ingredients used to extend concepts from Hilbert spaces to more general Banach spaces both in [27] and [28] is replacing the Riesz map with so-called duality mappings. In general, duality mappings are non-linear maps that share certain properties with the Riesz map. If the underlying space is a Hilbert space, any duality mapping is linear and the Riesz map is one possible choice for the duality mapping. In this section we will give a precise definition of duality mappings, summarize a range of very useful properties and list some relevant examples.

## Definition 2.1.

- 1. A weight function is a continuous and strictly increasing function ϕ : R + → R + such that ϕ (0) = 0 and lim t →∞ ϕ t ( ) = + ∞ .
- 2. Let V be a Banach space and ϕ a weight function. Denote by P ( V ′ ) the power set of V ′ . Then the multivalued map J ϕ V : V →P ( V ′ ) , defined by

$$\mathcal { J } _ { V } ^ { \varphi } ( v ) \coloneqq \{ v ^ { \prime } \in V ^ { \prime } \ \colon \langle v ^ { \prime }, v \rangle _ { V ^ { \prime }, V } = \| v \| _ { V } \| v ^ { \prime } \| _ { V ^ { \prime } }, \| v ^ { \prime } \| _ { V ^ { \prime } } = \varphi ( \| v \| _ { V } ) \} \quad ( 2. 1 )$$

is called a duality mapping of weight ϕ .

Due to a corollary of the Hahn-Banach theorem (cf., e.g., [29, Corollary 1.3]) the set J ϕ V ( v ) is non-empty. If we choose ϕ t ( ) = t as a weight function we obtain the so-called normalized duality map. In many cases this choice is the simplest and most convenient one. In fact, some books only introduce the duality mapping for this choice of ϕ , cf., e.g., [29, 30, 31]. As we will see later, however, ϕ t ( ) = t q -1 is in some cases a more suitable choice for L q -type spaces. If q = 2, this choice coincides with the normalized duality map. Furthermore, note that we have J V ( v ) = { R V ( v ) } if J V is the normalized duality map and V is a Hilbert space due to the Riesz Representation theorem.

## 2.1 Properties of Duality Mappings

In the following proposition we summarize a few properties of the duality map for Banach spaces with particular structures.

Proposition 2.2. Let V be a Banach space and denote by J ϕ V : V → P ( V ′ ) the duality map of weight ϕ on V . Then the following statements are true:

- 1. V ′ is strictly convex 1 if and only if J ϕ V ϕ is single valued, cf., [30, Prop. 12.3]. In this case we define the duality map J V : V → V ′ such that J ϕ V ( v ) = { J ϕ V ( v ) } for all v ∈ V .

/negationslash

- 2. If V is strictly convex, then J ϕ V ( v ) ∩ J ϕ V ( w ) = ∅ for all w = v . In particular, J ϕ V is injective.
- 3. V is reflexive if and only if J ϕ V is surjective in the sense that for every v ′ ∈ V ′ there is a v ∈ V such that v ′ ∈ J ϕ V ( v ) , cf., [32, Theorem 3.4, Chapter II].
- 4. If V is a reflexive Banach space and J ϕ V is a duality mapping of weight ϕ , then ( J ϕ V ) -1 is a duality mapping on V ′ of weight ϕ -1 , cf., [32, Cor. 3.5, Ch. II].

The main implication of the above proposition is that in a strictly convex and reflexive space V , the duality mapping is bijective and its inverse can be identified with a duality mapping on the dual space V ′ with the inverse weight ϕ -1 .

The following theorem is a special case of Theorem 4.4 in [32, Chapter I] and states that the duality map on V can be characterized using the subdifferential of the norm on V . This is a key property of the duality map that will allow us to derive the duality map for some specific Banach spaces in the special case that the subdifferential is essentially the Gˆteaux or Fr´chet derivative of the norm. a e

Theorem 2.3 (Asplund, cf., [32, Ch. I, Theorem 4.4]) . Let V be a Banach space and define F ϕ V : V → R by F ϕ V ( ) := · ψ ( ‖ · ‖ V ) , where ψ s ( ) := ∫ s 0 ϕ t ( ) d t and ϕ is a weight function. Then for any v ∈ V , we have

$$\mathcal { J } _ { V } ^ { \varphi } ( v ) = \partial F _ { V } ^ { \varphi } ( v ),$$

where ∂F ϕ V ( v ) denotes the subdifferential of F ϕ V at v .

The result that finally allows us to compute duality maps is the following.

Proposition 2.4 (cf., [31, Proposition 47.19]) . Let V be a Banach space and define F ϕ V : V → R by F ϕ V ( ) · := ψ ( ‖ · ‖ V ) , where ψ s ( ) := ∫ s 0 ϕ t ( ) d t and ϕ is a weight function.

- 1. If V ′ is strictly convex, then ∇ F ϕ V ( v ) exists as a Gˆteaux derivative and a ∇ F ϕ V ( v ) = J ϕ V ( v ) for all v ∈ V .
- 2. If V ′ is uniformly convex, then ∇ F ϕ V ( v ) exists as a Fr´ echet derivative and ∇ F ϕ V ( v ) = J ϕ V ( v ) for all v ∈ V .

Note that uniform convexity of V ′ implies strict convexity of V ′ (cf., [33]) and due to the Milman-Pettis Theorem, V ′ and hence also V are reflexive in this case. Furthermore, if F ϕ V is Gˆ ateaux differentiable, Theorem 2.3 guarantees that the duality map is single valued which implies strict convexity of the dual space V ′ due to Proposition 2.2.

## 2.2 Some Examples of Duality Mappings on Sobolev Spaces

First, consider V = L q (Ω) with the norm

$$\| v \| _ { L ^ { q } ( \Omega ) } = \left ( \int _ { \Omega } | v | ^ { q } \, \mathrm d x \right ) ^ { 1 / q }.$$

/negationslash

1 ABanach space V is strictly convex if for all v 1 , v 2 ∈ V such that v 1 = v 2 and ‖ v 1 ‖ V = ‖ v 2 ‖ V = 1 it holds that ‖ ϑv 1 +(1 -ϑ v ) 2 ‖ V &lt; 1 ∀ ϑ ∈ (0 1) , .

Let us denote the duality mapping on L q (Ω) with weight ϕ t ( ) = t q -1 by J q . In this case ψ s ( ) = ∫ s 0 ϕ t ( ) d t = 1 q s q and thus we can compute

$$\cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cd. \begin{array} { c c c c } \cdot \\ \langle J _ { q } ( v ), w \rangle _ { L ^ { q ^ { \prime } } ( \Omega ), L ^ { q } ( \Omega ) } & = & \frac { \mathrm d } { \mathrm d t } \left ( \frac { 1 } { q } \| v + t w \| _ { L ^ { q } ( \Omega ) } ^ { q } \right ) \Big | _ { t = 0 } & & ( 2. 4 ) \\ & = & \frac { \mathrm d } { \mathrm d t } \left ( \frac { 1 } { q } \int _ { \Omega } | v + t w | ^ { q } \, \mathrm d x \right ) \Big | _ { t = 0 } & & ( 2. 4 ) \\ & = & \int _ { \Omega } | v | ^ { q - 1 } \text{sgn} ( v ) w \, \mathrm d x. \end{array} \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \colon \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \vdots \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \mathrm d x \, \extract }$$

Note that ϕ -1 ( ) t = t q ′ -1 for q such that 1 = 1 /q + 1 /q ′ and therefore J -1 q ′ = J q . Moreover, we have for all v ∈ L q (Ω)

$$\| J _ { q } ( v ) \| _ { L ^ { q ^ { \prime } } ( \Omega ) } = \| v \| _ { L ^ { q } ( \Omega ) } ^ { q - 1 }, \quad \langle J _ { q } ( v ), v \rangle _ { L ^ { q ^ { \prime } } ( \Omega ), L ^ { q } ( \Omega ) } = \| v \| _ { L ^ { q } ( \Omega ) } ^ { q }. \quad ( 2. 5 )$$

Similarly, we can compute the normalized duality map ˜ J q on L q (Ω), i.e., the duality map with weight ϕ t ( ) = t , and obtain

$$\langle \tilde { J } _ { q } ( v ), w \rangle _ { L ^ { q ^ { \prime } } ( \Omega ), L ^ { q } ( \Omega ) } = \| v \| _ { L ^ { q } ( \Omega ) } ^ { 2 - q } \int _ { \Omega } | v | ^ { q - 1 } \text{sgn} ( v ) w \, \text{d} x.$$

Comparing the expressions for J q and ˜ , we can see that it may be useful, in particJ q ular for the implementation, to use J q instead of the normalized duality mapping in order to avoid the additional scaling ‖ v ‖ 2 -q L q (Ω) . Indeed, if ˜ J q is a non-linear operator in a variational problem that is approximated using a finite element method, we would need to evaluate the derivative of ˜ J q to determine the Jacobi matrix used in Newton's method. The derivative is given by

$$\langle \tilde { J } _ { q } ^ { \prime } ( v ) ( z ), w \rangle _ { L ^ { q ^ { \prime } } ( \Omega ), L ^ { q } ( \Omega ) } & = ( q - 1 ) \| v \| _ { L ^ { q ^ { \prime } } ( \Omega ) } ^ { 2 - q } \int _ { \Omega } | v | ^ { q - 2 } z w \, \mathrm d x \\ & \quad + ( 2 - q ) \| v \| _ { L ^ { q ^ { \prime } } ( \Omega ) } ^ { 2 - 2 q } \int _ { \Omega } | v | ^ { q - 2 } v z \, \mathrm d x \int _ { \Omega } | v | ^ { q - 2 } v w \, \mathrm d x.$$

If w and z are finite element functions with local support, the first term is only nonzero if both w and z are non-zero and thus this term would yield a sparse matrix for typical finite element spaces. The second term on the other hand is always non-zero if v is non-zero on the whole domain and thus may lead to a dense Jacobi matrix. If we consider J q instead, the derivative consists of only the first term without the scaling ‖ v ‖ 2 -q L q (Ω) and therefore we obtain a sparse Jacobi matrix.

As a second example consider the space W 1 ,q 0 (Ω) with the (semi-)norm | v | W 1 ,q (Ω) . In the same way as before we can compute the duality map of weight ϕ t ( ) = t q -1 and obtain

$$\langle J _ { W _ { 0 } ^ { 1, q } ( \Omega ) } ( v ), w \rangle _ { L ^ { q ^ { \prime } } ( \Omega ), L ^ { q } ( \Omega ) } = \int _ { \Omega } \sum _ { i = 1 } ^ { d } | \partial _ { i } v | ^ { q - 1 } \text{sgn} ( \partial _ { i } v ) \partial _ { i } w \, \text{d} x. \quad \quad ( 2. 7 )$$

Remark 2.5 (q-Laplacian) . Let 1 ≤ q &lt; r &lt; ∞ and x ∈ R d . In this case we have the following norm equivalence on the finite dimensional space R d :

$$\| x \| _ { l ^ { q } } = \left ( \sum _ { i = 1 } ^ { d } | x _ { i } | ^ { q } \right ) ^ { \frac { 1 } { q } } \leq d ^ { \frac { 1 } { q } - \frac { 1 } { r } } \left ( \sum _ { i = 1 } ^ { d } | x _ { i } | ^ { r } \right ) ^ { \frac { 1 } { r } } = d ^ { \frac { 1 } { q } - \frac { 1 } { r } } \| x \| _ { l ^ { r } }, \quad \quad ( 2. 8 \text{a} )$$

$$\| x \| _ { l ^ { r } } & \leq \| x \| _ { l ^ { q } }.$$

$$\left ( \int _ { \Omega } \| \nabla v \| _ { \ell ^ { 2 } } ^ { q } \mathrm d x \right ) ^ { 1 / q }$$

As a result

defines a norm on W 1 ,q 0 (Ω) that is equivalent to | v | W 1 ,q (Ω) and the corresponding duality mapping for q &gt; 2 is given by

$$\int _ { \Omega } \| \nabla v \| _ { l ^ { 2 } } ^ { q - 2 } \nabla v \cdot \nabla w \, \mathrm d x,$$

which is also the weak form of the q -Laplacian.

## 3 Minimum Residual Methods in Banach Spaces

As mentioned before, the method we are considering is a generalization of the scheme discussed in [19]. Conceptually, this method is closely related to DPG methods with the main difference that only continuous finite element spaces are considered in [19]. The key observation that makes it possible to extend the methodology to general Banach spaces is the equivalence with a residual minimization problem, cf., [19] and [34] for the DPG method. In this section, we will see that, in the context of Banach spaces, the Riesz map can be replaced by a duality mapping, but due to the nonlinearity of the duality mapping we lose the concept of an optimal test space which is used in the context of DPG methods, cf., [35]. The extension to Banach spaces was first introduced in [27] and we will repeat the main concepts in this section.

Let U and V be two Banach spaces and b : U × V → R a continuous bilinear form that satisfies the following inf-sup conditions:

$$\inf _ { w \in U } \sup _ { v \in V } \frac { b ( w, v ) } { \| w \| _ { U } \| v \| _ { V } } = \gamma > 0,$$

$$\{ v \in V \ \colon b ( w, v ) = 0, \forall w \in U \} = \{ 0 \}.$$

For a given right-hand side /lscript ∈ V ′ , we consider the problem: find u ∈ U such that

$$b ( u, v ) = \ell ( v ) \quad \forall v \in V.$$

Introducing a finite dimensional subspace U n ⊂ U , we can formulate the following residual minimization problem: find u n ∈ U n such that

$$u _ { n } & = \arg \min _ { w _ { n } \in U _ { n } } H _ { V } ( w _ { n } ), \\ H _ { V } ( w _ { n } ) & \coloneqq \psi ( \| B w _ { n } - \ell \| _ { V ^ { \prime } } ),$$

↦

where ψ (0) = 0, ϕ := ψ ′ is a weight function as defined in Section 2 and B : U → V ′ denotes the linear operator associated with the bilinear form b . A typical choice for ψ would be ψ t ( ) = t q /q , 1 &lt; q &lt; ∞ . If V ′ is strictly convex, then the duality mapping J ϕ V ′ is single valued and J ϕ V ′ = ∇ ( v ′ → ψ ( ‖ v ′ ‖ V ′ )).

Note that this best approximation problem can be formulated in any Banach space. However, we need strict convexity for uniqueness of minimizers, cf., e.g., [36, 27]. The closed range theorem is still applicable in general Banach spaces and provides conditions for well-posedness of linear problems. Its reformulation in terms of inf-sup conditions only requires reflexivity of the test space to describe the kernel of B ′ by (3.1b). Here, B ′ : V → U ′ denotes the adjoint operator to B .

## 3.1 Saddle Point Formulation

If V ′ is strictly convex, it can be shown that the residual minimization problem is equivalent to ∇ H V ( u n ) = J ϕ V ′ ( /lscript -Bu n ) = 0. If V is additionally reflexive, as well as being strictly convex, we obtain the following non-linear Petrov Galerkin formulation: find u n ∈ U n such that

$$\langle J _ { V ^ { \prime } } ^ { \varphi } ( \ell - B u _ { n } ), & B w _ { n } \rangle _ { V ^ { \prime \prime }, V ^ { \prime } } \\ & = \left \langle B w _ { n }, \left ( J _ { V } ^ { \varphi ^ { - 1 } } \right ) ^ { - 1 } ( \ell - B u _ { n } ) \right \rangle _ { V ^ { \prime }, V } = 0 \quad \forall w _ { n } \in U _ { n }.$$

Here, we used J ϕ V ′ = ( J ϕ -1 V ) -1 by means of canonical identification, cf., Proposition 2.2. Introducing an auxiliary variable r = ( J ϕ -1 V ) -1 ( /lscript -Bu n ), this can be reformulated as a mixed method: find u n ∈ U n and r ∈ V such that

$$\langle J _ { V } ^ { \varphi ^ { - 1 } } ( r ), v \rangle _ { V ^ { \prime }, V } + \langle B u _ { n }, v \rangle _ { V ^ { \prime }, V } & = \langle \ell, v \rangle _ { V ^ { \prime }, V } \quad \quad \forall v \in V, \quad \quad \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
 \langle B w _ { n }, r \rangle _ { V ^ { \prime }, V } & = 0 \quad \quad \quad$$

Note that J ϕ -1 V is a non-linear map unless V is a Hilbert space. If V is a Hilbert space and we select ψ t ( ) = t 2 / 2, then J ϕ -1 V = R V and we recover the framework in [19].

## 3.2 The Optimal Test Norm

In applications, we are often more interested in minimising the error in the approximation with respect to the norm on U rather than minimising the residual. In other words, we usually want to choose the norm on V in such a way that we ultimately control the error ‖ u -u n ‖ U . With this in mind, employing the inf-sup condition (3.1a) and continuity of B , we deduce that

$$\| u - u _ { n } \| _ { U } \leq \frac { 1 } { \gamma } \sup _ { v \in V } \frac { b ( u - u _ { n }, v ) } { \| v \| _ { V } } = \frac { 1 } { \gamma } \| \ell - B u _ { n } \| _ { V ^ { \prime } } \leq \frac { M } { \gamma } \| u - u _ { n } \| _ { U }, \quad ( 3. 6 )$$

where M is the continuity constant of the bilinear form b . Hence, in order to control ‖ u -u n ‖ U , we require γ and M as close to one as possible and independent of certain problem specific parameters (the scaling of the diffusion term, for example, in case of the convection-diffusion-reaction equation). The optimal test norm is a concept introduced in the context of DPG methods [37] but unlike the concept of optimal test functions and spaces it can easily be extended to Banach spaces. The optimal test norm is defined as the norm on V such that M = γ = 1 and is given by

$$\| v \| _ { \text{opt} } \coloneqq \sup _ { u \in U } \frac { b ( u, v ) } { \| u \| _ { U } } = \| B ^ { \prime } v \| _ { U ^ { \prime } }.$$

Indeed,

$$\sup _ { v \in V } \frac { b ( w, v ) } { \| v \| _ { \text{opt} } } = \sup _ { v \in V } \frac { ( B ^ { \prime } v ) ( w ) } { \| B ^ { \prime } v \| _ { U ^ { \prime } } } = \sup _ { g \in U ^ { \prime } } \frac { g ( w ) } { \| g \| _ { U ^ { \prime } } } = \| w \| _ { U }.$$

Conversely, we have the optimal constants M = γ = 1 for any given test norm, if we endow U with the so-called energy norm,

$$\| u \| _ { E } \coloneqq \sup _ { v \in V } \frac { b ( u, v ) } { \| v \| _ { V } }.$$

Ideally, we want to select the norm on U in order to approximate the solution in the desired norm and then work with the optimal test-norm. However, the optimal test-norm is a dual norm which is, in general, not computable. Thus, we have to replace the optimal test-norm with an equivalent norm that is computable. The difficulty here is to obtain equivalence constants, i.e., constants γ and M , that are independent of problem parameters.

In the context of the convection-diffusion-reaction equation, Broersen and Stevenson work directly with the optimal test norm in [20], whereas the analysis presented in [24] and [22] relies on robust estimates for γ and M by looking at the adjoint problem. Extending any of the robust estimates from Hilbert subspaces of L 2 (Ω) to Banach spaces L q (Ω), 1 &lt; q &lt; ∞ , is highly non-trivial and to the best of our knowledge remains an open problem.

## 3.3 The Inexact Method

So far, (3.5) does not define a method that can be implemented because the mixed method is still an infinite dimensional problem that relies on the whole test space V . Replacing the space V in (3.5) by a finite dimensional V m ⊂ V , however, allows us to approximate the solution to the best-approximation problem by the solution of a finite-dimensional saddle point problem. More precisely, we obtain the following fully discrete mixed problem: find ( r m , u n ) ∈ V m × U n such that

$$\langle J _ { V } ^ { \varphi ^ { - 1 } } ( r _ { m } ), v _ { m } \rangle _ { V ^ { \prime }, V } + \langle B u _ { n }, v _ { m } \rangle _ { V ^ { \prime }, V } & = \langle \ell, v _ { m } \rangle _ { V ^ { \prime }, V } \quad \ \forall v _ { m } \in V _ { m }, \quad \ \ ( 3. 1 0 a ) \\ \langle B w _ { n }, r _ { m } \rangle _ { V ^ { \prime }, V } & = 0 \quad \ \forall w _ { n } \in U _ { n }, \quad \ \ ( 3. 1 0 b )$$

where J ϕ -1 V = R V if V is a Hilbert space.

Replacing V by a finite-dimensional subspace we obviously lose the best approximation properties. The question of quantifying this 'loss' was addressed in [38] for Hilbert spaces by introducing the concept of a Fortin-operator and was later extended to Banach spaces in [27]. For well-posedness of the inexact method we require the existence of a bounded projection operator Π : V → V m such that

$$\langle B w _ { n }, v - \Pi v \rangle _ { V ^ { \prime }, V } = 0 \quad \forall w _ { n } \in U _ { n }, v \in V.$$

The norm of Π then enters into the a priori estimate and quantifies the 'loss' due to the inexactness, i.e., we can obtain an a priori estimate of the form

$$\| u - u _ { n } \| \leq C \inf _ { w _ { n } \in U _ { n } } \| u - w _ { n } \|, \quad C = \frac { ( \| \Pi \| + \| I - \Pi \| ) M } { \gamma }. \quad ( 3. 1 2 )$$

Remark 3.1 . The constant C can be improved both in the Hilbert setting, where we can obtain C = ‖ Π ‖ M/γ , cf., [39], and in the Banach setting, where we would have to introduce geometric constants for the improved estimate, cf., [27].

## 4 The Convection-Diffusion Equation

The main focus of this article is to apply the abstract approach described in the previous section to the scalar convection-diffusion-reaction equation in a W 1 ,q (Ω)W 1 ,q ′ (Ω) setting. To this end, consider the following model problem:

$$- \varepsilon \Delta u + \mathbf b \cdot \nabla u + c u = f \quad \text{ in } \Omega,$$

$$u = 0 \quad \text{ on } \Gamma = \partial \Omega,$$

where ε , b : Ω → R d and c : Ω → R are the (positive) diffusion parameter, convection field and reaction coefficient, respectively, and f : Ω → R is a given source term. Multiplying by a test function v ∈ C ∞ c (Ω) and integrating by parts yields the bilinear form

$$\mathcal { B } _ { \varepsilon } ( u, v ) = \varepsilon \int _ { \Omega } \nabla u \cdot \nabla v \, \mathrm d x - \int _ { \Omega } u \nabla \cdot ( b v ) \, \mathrm d x + \int _ { \Omega } c u v \, \mathrm d x. \quad \quad ( 4. 2 )$$

This allows us to state the following variational problem: find u ∈ U := W 1 ,q 0 (Ω) such that

$$\mathcal { B } _ { \varepsilon } ( u, v ) = \langle f, v \rangle _ { V ^ { \prime }, V } \quad \forall v \in V \coloneqq W _ { 0 } ^ { 1, q ^ { \prime } } \left ( \Omega \right ).$$

In [28], a proof of an inf-sup condition is given, where the norms on U and V are weighted versions of the standard norms W 1 ,q (Ω) and W 1 ,q ′ (Ω), respectively. Furthermore, this proof requires certain regularity assumptions on the solution to the Poisson problem and that the convection field b and the reaction coefficient c satisfy c - ∇ · 1 q b ≥ c 0 &gt; 0. The continuity constant and the inf-sup constant that are established for the bilinear B ε in [28] depend on the problem specific parameters. It should be noted that the estimates in [28] can be expected to be sub-optimal since sharper bounds are known for q = 2.

## 4.1 Choices for the Test Norm

The choice of the norm for the space V crucially defines the method described in Section 3.3. To this end, we endow V with the following norm

$$\| v \| _ { V } ^ { q ^ { \prime } } \coloneqq \alpha \| v \| _ { L ^ { q ^ { \prime } } ( \Omega ) } ^ { q ^ { \prime } } + \varepsilon \| \nabla v \| _ { L ^ { q ^ { \prime } } ( \Omega ) } ^ { q ^ { \prime } } + \frac { | \Omega | ^ { 1 / 2 } } { \| b \| _ { L ^ { \infty } ( \Omega ) } } \| ( \omega ( x ) ) ^ { 1 / q ^ { \prime } } b \cdot \nabla v \| _ { L ^ { q ^ { \prime } } ( \Omega ) } ^ { q ^ { \prime } }, \quad ( 4. 4 )$$

where ω x ( ) is a positive and smooth weighting function. It is well known that for q = 2 and ω x ( ) ≡ const ≥ 0 the above choice of norm on V does not yield a robust formulation, i.e., M/γ depends on the problem parameters. Here, M denotes the continuity constant of the bilinear form and γ its inf-sup constant. The inf-sup constant for 1 &lt; q &lt; ∞ obtained in [28] corresponds to the choice ω x ( ) ≡ 0 and α = c 0 , where c 0 is the constant in the Friedrich's positivity assumption, c - ∇· 1 q b ≥ c 0 . As mentioned above, the continuity and inf-sup constants are not parameter independent but can be expected to be suboptimal.

One approach to address the robustness issue is to introduce a non-constant weighting function, cf., [24, 19]. For example, we may require ω x ( ) to be of magnitude O ( ε ) near the inflow boundary but O (1) elsewhere. We will show the effect of this by considering a simple one dimensional example on Ω = (0 1) with the in-, flow boundary at 0. For this example ω x ( ) = x + ε has the desired properties; for comparison, we will also consider ω x ( ) ≡ 0 and ω x ( ) ≡ 1.

## 4.2 Weak Boundary Conditions on r

Alternatively, the robustness issue can be addressed by changing the boundary conditions on r ; this has been considered in different ways in [23, 19]. In [22], the boundary conditions on u were modified instead. We will now present the approach in [19] and extend it for 1 &lt; q &lt; 2. The idea is to relax the boundary condition on the test space on the inflow part of the boundary. The reasoning behind this is that in the mixed method we essentially approximate the adjoint equation in the test space in order to approximate the residual or the optimal test functions. Under resolved layers at the inflow boundary -which is the outflow boundary for the adjoint equation- then pollute the solution to the primal problem in the inexact method.

Instead of W 1 ,q ′ 0 (Ω), we consider the modified test space V = W 1 ,q ′ 0 Γ , + (Ω), where q ′ = q/ q ( -1), and

$$W _ { 0, \Gamma _ { + } } ^ { 1, q ^ { \prime } } ( \Omega ) \coloneqq \left \{ v \in W ^ { 1, q ^ { \prime } } \left ( \Omega \right ) \, \colon \, v \Big | _ { \Gamma _ { + } } = 0 \right \},$$

Here,

$$\Gamma _ { - } \coloneqq \{ x \in \partial \Omega \, \colon b \cdot n ( x ) \leq 0 \}, \quad \quad \Gamma _ { + } \coloneqq \partial \Omega \, \sum \Gamma _ { - },$$

where n ( x ) denotes the unit outward normal at a point on the boundary ∂ Ω. The modified bilinear form (cf., [19]) is given by

$$\tilde { \mathcal { B } } _ { \varepsilon } ( u, v ) \coloneqq \varepsilon \int _ { \Omega } \nabla u \cdot \nabla v \, \mathrm d x + \int _ { \Omega } ( b \cdot \nabla u ) v \, \mathrm d x - \varepsilon \int _ { \Gamma _ { - } } \frac { \partial u } { \partial n } v \, \mathrm d s. \quad \ \ ( 4. 6 )$$

The boundary term is merely the term that is picked up from the integration by parts if v is non-zero on the inflow boundary. Note, however, that the term ε ∫ Γ -∂u ∂ n v d s is a variational crime if we assume u ∈ W 1 ,q 0 (Ω). As noted in [19], the correct way of including this term would be to introduce it as an additional unknown on the boundary and the inclusion of ε ∫ Γ -∂u ∂ n v d s can be viewed as a discrete elimination of this unknown, cf., [19, 20].

## 4.3 The Inexact Method for the Convection-Diffusion-Reaction Equation

The key step for implementing the inexact method (3.10) for any specific problem is determining the duality mapping J ϕ -1 V . We choose the weight function ϕ -1 ( ) = t t q ′ -1

and compute the duality mapping, similar to Section 2.2; thereby, we get

$$\text{and compute the duality mapping, similar to Section 2.2; thereby, we get} \\ \langle J _ { V } ^ { \varphi ^ { - 1 } } ( v ), w \rangle _ { V ^ { \prime }, V } = \int _ { \Omega } | v | ^ { q ^ { \prime } - 1 } \text{sgn} ( v ) w \, \text{d} x \\ & + \varepsilon \int _ { \Omega } \sum _ { i = 1 } ^ { d } | \partial _ { i } v | ^ { q ^ { \prime } - 1 } \text{sgn} ( \partial _ { i } v ) \partial _ { i } w \, \text{d} x \\ & + \int _ { \Omega } \omega ( x ) | b \cdot \nabla v | ^ { q ^ { \prime } - 1 } \text{sgn} ( b \cdot \nabla v ) b \cdot \nabla w \, \text{d} x. \\ \text{For a given right hand side } \ell \in V ^ { \prime }, \, \text{we solve the following non-linear system: find}$$

For a given right hand side /lscript ∈ V ′ , we solve the following non-linear system: find ( u , r n m ) ∈ U n × V m ⊂ U × V such that

$$\langle J _ { V } ^ { \varphi ^ { - 1 } } ( r _ { m } ), v _ { m } \rangle _ { V ^ { \prime }, V } + \mathcal { B } _ { \varepsilon } ( u _ { n }, v _ { m } ) & = \ell ( v ) \quad \text{ for all } v _ { m } \in V _ { m }, \quad \text{ } \quad ( 4. 8 \text{a} ) \\ \mathcal { B } _ { \varepsilon } ( w _ { n }, r _ { m } ) & = 0 \quad \text{ for all } w _ { n } \in U _ { n }. \quad \text{ } \quad ( 4. 8 \text{b} )$$

One can easily implement (4.8) in, e.g., FEniCS [25, 26] using standard H 1 (Ω)-conforming Lagrange finite elements for both U n and V m . The spaces U n and V m are chosen over a common mesh. For U n a global polynomial degree p n is chosen and for V m we choose an enriched finite element space with polynomial degree p m = p n + ∆p , ∆p ≥ 1. To consider the weak boundary conditions on r introduced in the previous section, we simply replace B ε with ˜ B ε and adjust the space V m to only satisfy Dirichlet boundary conditions on the outflow boundary.

## 4.4 The Limit Case ε = 0

Since we are interested in the convection-dominated case, i.e., ε /lessmuch ‖ b ‖ L ∞ (Ω) , it makes sense to consider the limit ε → 0. Simply setting ε = 0 in (4.2) does not yield a wellposed problem unless we only consider boundary conditions on the inflow boundary Γ -. However, even the ill-posed problem with Dirichlet boundary conditions on the whole boundary ∂ Ω is of interest, since this is essentially the problem that is approximated numerically on coarse meshes when ε /lessmuch ‖ b ‖ L ∞ (Ω) , cf., the discussion in [7]. On a discrete level we can think of imposing boundary conditions for the approximation u n on Γ + simply as considering an approximation problem in a smaller subspace of U .

When ε = 0, there are two different weak formulations of the convection-reaction equation depending on whether ∫ Ω ( b · ∇ u v ) d x is integrated by parts or not. The two cases differ in the regularity of the trial and test spaces which is reflected in the norms chosen on U and V . Thus, in each case the residual is measured in a different norm and (quasi-)best approximation of the analytical solution is achieved in a different space. Both weak formulations can be extended to weak formulations of the convection-diffusion-equation by adding the diffusion term and accounting for different boundary conditions and regularity requirements. If ε &gt; 0, we require u ∈ W 1 ,q 0 (Ω) in both cases and the two weak formulations are formally equivalent. However, the differences observed in the limit case ε = 0 can be reflected in the choice of the norm on W 1 ,q 0 (Ω) by choosing the weighting of the terms ‖ w ‖ L q (Ω) , ‖∇ w ‖ L q (Ω) and ‖∇ · b w ‖ L q (Ω) accordingly.

We show that for the first choice the exact mixed method is equivalent to the formulation used in [7] and that in the second case a quasi-best approximation in L q (Ω) can be computed by determining the optimal test norm. We use this to interpret certain choices of the test norm for the convection-diffusion-reaction equation.

## 4.4.1 Residual Minimisation in L q (Ω)

Both weak formulations for the convection-reaction equation are obtained by multiplying the convection-diffusion-reaction equation (4.1) with ε = 0 by a smooth test function and integrating over the domain Ω. This immediately yields the first possible choice for the weak formulation: find u ∈ W q 0 Γ , -( b , Ω ) such that

$$\hat { \mathcal { B } } _ { 0 } ( u, v ) = \int _ { \Omega } ( b \cdot \nabla u ) v \, \mathrm d x + \int _ { \Omega } c u v \, \mathrm d x \, \quad \quad \forall v \in L ^ { q ^ { \prime } } \left ( \Omega \right ). \quad \ \ ( 4. 9 )$$

Here, the bilinear form ˆ B 0 is well defined for v ∈ L q ′ (Ω) and u in the graph space

$$W _ { 0, \Gamma _ { - } } ^ { q } ( b, \Omega ) \coloneqq \{ w \in L ^ { q } \left ( \Omega \right ) \colon b \cdot \nabla u \in L ^ { q } \left ( \Omega \right ) \text{ and } u = 0 \text{ on } \Gamma _ { - } \} \quad \ \ ( 4. 1 0 )$$

endowed with the norm

$$\| u \| _ { W ^ { q } _ { \alpha, \Gamma _ { - } } ( b, \Omega ) } ^ { q } = \| u \| _ { L ^ { q } ( \Omega ) } ^ { q } + \| b \cdot \nabla u \| _ { L ^ { q } ( \Omega ) } ^ { q }.$$

The associated residual minimisation problem is

$$u _ { n } = \arg \min _ { w _ { n } \in U _ { n } } \| \hat { \mathcal { B } } _ { 0 } ( w _ { n }, \cdot ) - f \| _ { L ^ { q } ( \Omega ) } ;$$

this was considered in [7]. In general, method (3.10) yields a formulation for solving the residual minimisation problem inexactly. However, since in this case J ϕ V ′ = J q , we can avoid the inexactness by directly implementing (3.4); this is exactly the approach considered in [7] where a regularisation is introduced to compute (3.4). The norm on V = L q ′ (Ω) corresponds to the choice of the test-norm for the convection-diffusionreaction equation given in (4.4) with ω x ( ) ≡ 0 and α = 1 since this yields the L q ′ (Ω)norm if ε is set to zero. This suggests, that this choice of ω x ( ) and α corresponds to the natural extension of this bilinear form to the case ε &gt; 0. Moreover, the equivalence of the exact minimum residual method and the approach in [7] for ε = 0 together with ε weighting of the norm of the gradient suggest that for this choice of the test norm, our scheme closely resembles the approach in [7] for 0 &lt; ε /lessmuch 1.

## 4.4.2 BestL q Approximation

Next, we can integrate the convection term by parts in order to obtain the second weak formulation. To this end, we note that

$$\int _ { \Omega } ( b \cdot \nabla u ) v \, \mathrm d x = - \int _ { \Omega } \nabla \cdot ( b v ) u \, \mathrm d x + \int _ { \partial \Omega } ( b \cdot n ) u v \, \mathrm d s. \quad \quad ( 4. 1 3 )$$

The boundary term on Γ -vanishes since u = 0 on Γ -(for non-zero boundary conditions this term would be absorbed into the right hand side by inserting the boundary condition). For v in the graph space

$$W _ { 0, \Gamma _ { + } } ^ { q ^ { \prime } } \left ( b, \Omega \right ) \coloneqq \{ w \in L ^ { q ^ { \prime } } \left ( \Omega \right ) \colon b \cdot \nabla w \in L ^ { q ^ { \prime } } \left ( \Omega \right ) \text{ and } w = 0 \text{ on } \Gamma _ { + } \}, \quad \ \ ( 4. 1 4 )$$

the boundary term also vanishes on Γ + and we obtain the bilinear form

$$\mathcal { B } _ { 0 } ( u, v ) = - \int _ { \Omega } u \nabla \cdot ( b v ) \, \mathrm d x + \int _ { \Omega } c u v \, \mathrm d x,$$

which is well-defined for u ∈ L q (Ω). In this case we can compute the optimal test norm

$$\| v \| _ { \text{opt} } \coloneqq \sup _ { u \in L ^ { q } ( \Omega ) } \frac { \mathcal { B } _ { 0 } ( u, v ) } { \| u \| _ { L ^ { q } ( \Omega ) } } = \| \mathcal { B } _ { 0 } ( \cdot, v ) \| _ { ( L ^ { q } ( \Omega ) ) ^ { \prime } } = \| - \nabla \cdot ( b v ) + c v \| _ { L ^ { q ^ { \prime } } ( \Omega ) }. \quad ( 4. 1 6 )$$

Choosing the optimal test norm, allows us to obtain the L q -best approximation in a given finite dimensional space U n . It is easy to see that the optimal test norm is bounded from above up to a constant by the graph norm

$$\| w \| _ { W _ { 0, \Gamma _ { + } } ^ { q ^ { \prime } } } ^ { q ^ { \prime } } \coloneqq \| w \| _ { L ^ { q ^ { \prime } } ( \Omega ) } ^ { q ^ { \prime } } + \| b \cdot \nabla w \| _ { L ^ { q ^ { \prime } } ( \Omega ) } ^ { q ^ { \prime } }.$$

In [40] this formulation of the convection-reaction equation is analysed in detail and an inf-sup condition is established assuming c -1 q ∇· b ≥ c 0 &gt; 0. This implies that the optimal test norm is up to a constant also bounded from below by the graph norm. In other words, the graph norm is equivalent to the optimal test norm. The graph norm can be obtained from (4.4) by choosing ω x ( ) ≡ 1, α = 1 and setting ε to zero. This suggests that this choice of α and ω x ( ) yields the natural extension of this formulation to the convection-diffusion-reaction equation. The dependence of the inf-sup constant in [40] on c 0 suggests that the equivalence constants can be improved by choosing α = c 0 .

## 5 Numerical Examples

In this section we consider a range of numerical test cases to illustrate the performance of our proposed numerical scheme. To this end, in Section 5.1 we demonstrate that in the diffusion-dominated regime optimal convergence rates are achieved and moreover that in the convection-dominated regime the convergence rate is as expected. We also study the effect of different choices of the discrete test space V m on the convergence rates. In Section 5.2, we then compare different choices for the test norm on V and the boundary conditions as described in Sections 4.2 and 4.1 for a one-dimensional example. Furthermore, for the same example we study for which choices of V , ‖ · ‖ V and V m we can observe vanishing over- and undershoots as q → 1 and whether the method is robust in ε . In Section 5.3 we consider three two-dimensional examples, where for certain selected meshes the overshoots disappear as q → 1; this behaviour can be predicted by considering L 1 -best approximations of discontinuities.

The four examples we are using in this section are given below. They consist of one simple one-dimensional example and three two-dimensional examples each with solutions containing boundary layers for small ε . The solution to the last example additionally contains an interior layer.

## Example 5.1.

$$- \varepsilon u ^ { \prime \prime } + u ^ { \prime } = 0 \quad i n \ ( 0, 1 ), \quad u ( 0 ) = 0, \quad u ( 1 ) = 1. \quad \quad ( 5. 1 )$$

The analytical solution is given by

$$u ( x ) = \frac { \exp \left ( - \frac { 1 } { \varepsilon } \right ) - \exp \left ( \frac { x - 1 } { \varepsilon } \right ) } { \exp \left ( - \frac { 1 } { \varepsilon } \right ) - 1 }.$$

Example 5.2 (Eriksson-Johnson model problem) .

$$\frac { \partial u } { \partial x } - \varepsilon \left ( \frac { \partial ^ { 2 } u } { \partial x ^ { 2 } } + \frac { \partial ^ { 2 } u } { \partial y ^ { 2 } } \right ) = 0 \quad i n \ ( 0, 1 ) ^ { 2 },$$

$$u = 0 \ i f \ x = 1, y = 0, 1, \quad u = \sin ( \pi y ) \ i f \ x = 0.$$

The analytical solution is given by

$$u ( x, y ) = \frac { \exp ( r _ { 1 } ( x - 1 ) ) - \exp ( r _ { 2 } ( x - 1 ) ) } { \exp ( r _ { 1 } ) - \exp ( r _ { 2 } ) } \sin ( \pi y ),$$

where

$$\Phi _ { 1 } = \frac { 1 + \sqrt { 1 + 4 \pi ^ { 2 } \varepsilon ^ { 2 } } } { 2 \varepsilon }, \quad \ \ \ r _ { 2 } = \frac { 1 - \sqrt { 1 + 4 \pi ^ { 2 } \varepsilon ^ { 2 } } } { 2 \varepsilon }.$$

Example 5.3 (Boundary Layer in the Corner of the Domain) .

$$b \cdot \nabla u - \varepsilon \Delta u = b _ { 2 } h _ { 1 } ( x ) + b _ { 1 } h _ { 2 } ( y ) \quad i n \ ( 0, 1 ) ^ { 2 },$$

$$u = 0 \quad o n \ \partial \Omega,$$

with b = ( b 1 , b 2 ) T , b 1 2 , &gt; 0 and

$$h _ { 1 } ( x ) = x - \frac { 1 - \exp \left ( \frac { b _ { 1 } x } { \varepsilon } \right ) } { 1 - \exp \left ( \frac { b _ { 1 } } { \varepsilon } \right ) }, \quad \ \ h _ { 2 } ( y ) = y - \frac { 1 - \exp \left ( \frac { b _ { 2 } y } { \varepsilon } \right ) } { 1 - \exp \left ( \frac { b _ { 2 } } { \varepsilon } \right ) }.$$

The analytical solution is given by

$$u ( x, y ) = h _ { 1 } ( x ) h _ { 2 } ( y ).$$

Since b 1 2 , &gt; 0 , the outflow boundary is defined by the two lines x = 1 and y = 1 . For small ε we can observe a boundary layer at the outflow boundary and in particular near the corner ( x, y ) = (1 , 1) .

Figure 1: Example 5.2 with ε = 1 and q = 1 2. . Convergence for p n = 1 and ∆p = 1 4 7. , ,

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-828dbc2b-3c20-4810-af92-d4855a757314.jpg)

Figure 2: Example 5.2 with ε = 1 and q = 1 2, for . p n = 2 3 4 5 and , , , ∆p = 2. Left: L q (Ω)-norm, Right: W 1 ,q (Ω)-norm

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-e6475abf-f2a1-4672-a2b7-20db39e84a08.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-afc972d8-5365-441a-9d2b-5fd7e247347b.jpg)

## Example 5.4 (Interior and Boundary Layer) .

$$b \cdot \nabla u - \varepsilon \Delta u & = 0 \quad i n \ ( 0, 1 ) ^ { 2 }, \\ u & = 1 \ o n \ \partial \Omega \cap \{ x = 0 \}, \\ u & = 0 \ o n \ \partial \Omega \ \left \langle x = 0 \right \},$$

with b = (2 1) , T .

For this example, a boundary layer develops at Γ + ∩ { y &gt; 0 5 . } and an interior layer along the line y = 0 5 . x .

## 5.1 Convergence Tests

We start with investigating the convergence of the proposed method with weak boundary conditions on the inflow boundary in the space V m , i.e., formulation (4.3) with ˜ B ε from (4.6), and the norm (4.4) with ω x ( ) ≡ 1 and α = 1. To this end, we first consider the convergence of the method for Example 5.2 with ε = 1. We consider a uniform mesh with element size h . The space U n consists of piecewise polynomials of degree p n , while space V m consists of piecewise polynomials of degree p m = p n + ∆p on the same mesh with ∆p ≥ 1. Figure 1 shows that for q = 1 2 the error is essen-. tially independent of the choice of ∆p and hence there is no benefit to enriching the space of the residual r m beyond p m = p n + 1. Figure 2 shows that we obtain the expected optimal convergence rates for different polynomial degrees p n under uniform h -refinement.

Next, we consider the same example with the same finite element spaces for ε = 10 -4 . Figure 3 (left) shows that again both for q = 1 01 and . q = 1 2 the error . does not improve as ∆p is increased beyond ∆p = 2; for q = 1 01, however, we can .

Figure 3: L q (Ω)-error for Example 5.2 with ε = 10 -4 and p n = 1.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-f2ceac85-bd9c-4d1a-955d-b8c3a42dd90f.jpg)

observe that the error is larger for ∆p = 1. Note that we did not observe this in the diffusive regime. The plot on the right shows that in the convection-dominated regime we obtain a convergence rate of approximately O ( h 1 q ) as h tends to zero; this is consistent with the approximation error bound of the piecewise linear interpolant of a jump discontinuity.

## 5.2 Convection-Diffusion in 1D

In this section we consider different choices for V , ‖ · ‖ V and V m and show how this affects the approximation to the solution u of Example 5.1. To this end, in Section 5.2.1, we investigate how the choice of α , ω x ( ) and the boundary conditions in V m affect the approximation u n . In Section 5.2.2 we consider one specific choice for the test norm and show that the oscillations vanish entirely as q → 1. Next, in Section 5.2.3, we investigate the choice of the finite element space V m more closely. We have seen that increasing ∆p has no significant effect on the convergence rates; however, we will see that this does indeed affect certain qualitative properties of the solution. Finally, we demonstrate that the method is robust in ε in Section 5.2.4

## 5.2.1 Comparing the Choices for the Test Norm and the Boundary Conditions

We start by comparing different versions of the non-linear Petrov-Galerkin method. In order to ensure that the space V m is sufficiently large we use piecewise polynomials of degree p m = 10 as the basis, while U n consists of piecewise linear polynomials. We split the interval (0 , 1) uniformly into 8 elements. We consider three different choices for the weighting function ω x ( ) as mentioned in Section 4.1, namely ω x ( ) = x + , ε ω x ( ) ≡ 1 and ω x ( ) ≡ 0. We combine this with two different choices of boundary conditions on r , i.e., zero Dirichlet boundary conditions on the whole boundary and weak boundary conditions on the inflow boundary as described in Section 4.2. This creates six test cases; we first consider these six test cases for ε = 10 -3 with α = 1 and q = 2 1 01. , . Secondly, we consider all six test cases with ε = 10 -6 , α = 0 1 and , q = 2 1 01 The solution , . u n for each of the cases is shown in Figure 4.

We can see in Figures 4a, 4c and 4e that for q = 2 and Dirichlet boundary conditions on the whole boundary for r , the approximation u n only resembles the analytical solution if ω x ( ) = x + . Introducing weak boundary conditions on ε r on the inflow boundary resolves this issue for ω x ( ) ≡ 1 but the approximation with ω x ( ) ≡ 0 only shows improvement if α = 0. These observations are the same for ε = 10 -3 and ε = 10 -6 . This indicates that we can circumvent constructing a non-constant function ω x ( ) - which can be challenging for complicated geometries - by introducing weak boundary conditions on r on the inflow boundary. These observations are consistent with the results for a very similar problem studied in [19]. Furthermore, note that ω x ( ) = 0 and α = 1 most closely resembles the method introduced in [7]. In [7] it is

demonstrated for a different (two-dimensional) example that the approximation for q = 2 can be very inaccurate.

If we now consider q = 1 01, cf., . Figures 4b, 4d and 4f, we observe a different behaviour of the approximation. If ε = 10 -3 , the approximations are all very similar and much closer to the analytical solution with close to no undershoots; we will investigate the phenomenon of vanishing undershoots more closely both in one dimension and two dimensions later on. If ε = 10 -6 , the approximation with Dirichlet boundary conditions on the whole boundary and ω x ( ) ≡ 0 or ω x ( ) ≡ 1 again leads to a very poor approximation to the analytical solution. This again points to robustness issues that for q = 1 01 are only visible for much smaller . ε than for q = 2. An interesting observation is that for α = 1, the combination of weak inflow boundary conditions on r and ω x ( ) ≡ 0 is not distinguishable from other choices of ω x ( ) for q = 1 01 whereas, . for q = 2 it is significantly different. The improvement of the approximation as q → 1 for ω x ( ) ≡ 0 and α = 1 resembles the results presented in [7].

In conclusion, choosing the boundary conditions as described in Section 4.2 allows us to avoid constructing a non-constant weighting function ω x ( ). Close to q = 1, the results are very similar for ω x ( ) ≡ 1 and ω x ( ) ≡ 0, whereas close to q = 2, ω x ( ) ≡ 1 clearly yields a significantly better approximation of the solution.

The choice of α does not seem to have a big impact on the approximation except in the case ω x ( ) ≡ 0 and q = 2, where choosing α = 0 improves the approximation compared to α = 1. If ω x ( ) ≡ 1, then both for α = 1 and α = 0, the dominant term in the norm on V is essentially ‖∇ ‖ u L q ′ (Ω) since ‖ b · ∇ v ‖ L q ′ (Ω) and ‖∇ ‖ v L q ′ (Ω) are the same up to a constant in one dimension. If ω x ( ) ≡ 0, then α = 0 implies that V is endowed with the W 1 ,q ′ 0 (Ω)-norm , whereas for α = 1 the L q ′ (Ω)-term is the dominant term in the norm on V due to the ε -weighting of the gradient. Since α = 0 yields a better approximation in this case, this suggests that for q = 2 it is favourable to choose a stronger norm on V that is either dominated by the norm of the gradient or the streamline term ‖ b · ∇ v ‖ L q ′ (Ω) .

## 5.2.2 Vanishing oscillations as q → 1

The examples in Figure 4 already illustrate that the undershoot in the approximate solution nearly vanishes for q = 1 01. We will now investigate in more detail how the . undershoot depends on q if we choose ε = 10 -5 , ω x ( ) ≡ 1, α = 1 and impose weak inflow boundary conditions on r m . To this end, we choose a large space V m with polynomial degree p m = 10 and piecewise linear polynomials for U n . We split the interval into 8 elements and compute the approximate solutions ( r m , u n ) for several choices of q . Figure 5 shows u n on the left and r m on the right. A close-up of the undershoot and a plot min( u n ) vs. q is shown in the centre of the figure. We can see that the undershoot decreases monotonically as q approaches 1. In contrast to this, we can see that the oscillations in the residual r m increase as q ′ →∞ which suggests that a large space V m may be necessary. This is the next aspect of the method we will investigate.

## 5.2.3 The Choice of the Space V m

In [17], it has been shown that the inexact method is well-posed if a Fortin projector, cf., (3.11) exists. It is easy to see that dim( V m ) ≥ dim( U n ) is a necessary condition. Finding a sufficient condition or in other words finding a compatible pair ( U , V n m ) is highly non-trivial. In [40], certain special cases for the convection-reaction equation are considered. The observations in Section 5.1 suggest that for ∆p ≥ 2, the Fortin condition is typically satisfied. We now investigate how the choice of V m affects the undershoot for q close to 1. To this end, we consider two different strategies of enlarging V m : global p -enrichment and uniform h -refinement. We again consider ε = 10 -5 , ω x ( ) ≡ 1, α = 1 and impose weak inflow boundary conditions on r m .

p-enrichment: In terms of implementation, the simplest choice for the space V m such that dim( V m ) &gt; dim( U n ) is a finite element space over the same grid with the polynomial degree increased globally by some integer ∆p . Figure 6 shows how the overshoot reduces as we increase ∆p . The difference in r m for varying p m is barely

Figure 4: Solution u n for q = 2 and q = 1 01 using different norms, i.e., . different weighting functions ω x ( ), and either Dirichlet boundary conditions for r on the whole boundary (strong bc) or weak boundary conditions on r on the inflow boundary and Dirichlet conditions on the outflow boundary (weak bc).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-a57604bf-5d9c-403b-9bd9-9efee496a199.jpg)

Figure 5: Example 5.1 with ε = 10 -5 : Numerical approximations u n (left) and r m (right) with a uniform mesh consisting of 8 intervals using piecewise linear polynomials for u n and polynomials of degree p m = 10 for r m for varying values of q . Top center: Zoom-in showing over- and undershoots. Bottom center: | min( u n ) | vs q .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-8398e73e-8eb0-432e-ab0f-f7b348eb687c.jpg)

Figure 6: Example 5.1 with ε = 10 -6 and q = 1 01, . q ′ = 101: Numerical approximations u n (left) and r m (right) with a uniform mesh consisting of 8 intervals using piecewise linear polynomials for u n and varying polynomial degrees p m for r m . Top center: Zoom-in showing over- and undershoots. Bottom center: | min( u n ) | vs p m . Right: Projection of r m onto the space of piecewise linear functions with a uniform mesh consisting of 16 intervals using piecewise linear polynomials for u n and varying polynomial degrees p m for r m

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-03583124-e3d1-4946-a49e-d22a0940bf18.jpg)

visible even though we have used a finer mesh for plotting in order to capture the behaviour of the higher modes and yet it has a significant effect on the approximation u n .

h-refinement: This time both U n and V m consist of piecewise linear polynomials. To ensure that dim( V m ) &gt; dim( U n ), we choose a refinement of the underlying mesh of the space U n to construct the space V m . This is the only numerical experiment in this article that cannot be implemented in FEniCS; instead, e.g., the C++ library Hermes2D [41] can be used. Figure 7 shows how the overshoot reduces as we refine the mesh for V m ; the difference in r m is again barely visible despite the significant effect on the approximation u n .

## 5.2.4 Robustness in ε

As a final experiment in one dimension, we study how ε affects the undershoot in the approximation. We continue with the same setting as in the previous section, but keep V m fixed as the space of piecewise polynomials of degree p m = 10 on the same mesh as used for U n and vary ε instead. Figure 8 shows that, although the undershoot is not the same for all ε leading to an under resolved layer, the undershoot seems to

Figure 7: Example 5.1 with q = 1 01, . q ′ = 101: Numerical approximations u n (left) and r m (right) with a uniform mesh consisting of 16 intervals using piecewise linear polynomials for u n and polynomials of degree p m = 10 for r m for varying values of ε . Top center: Zoom-in showing over- and undershoots. Bottom center: | min( u n ) | vs ε .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-40af144d-6424-4ddb-a51b-0f3f084296a5.jpg)

Figure 8: Example 5.1 with q = 1 01, . q ′ = 101: Numerical approximations u n (left) and r m (right) with a uniform mesh consisting of 16 intervals using piecewise linear polynomials for u n and polynomials of degree p m = 10 for r m for varying values of ε . Top center: Zoom-in showing over- and undershoots. Bottom center: | min( u n ) | vs ε .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-72ce8008-18e3-4a7e-8ed2-b4fd2915a18e.jpg)

be approximately the same for all ε ≤ ε 0 for some ε 0 . This can be traced back to the inflow boundary conditions on r m - which are scaled with ε - if we look at r m on the right in Figure 8. The method therefore seems to be robust in ε .

## 5.3 Vanishing Oscillations in Two Dimensions

In this section we explore whether the under- and overshoots in the approximation still vanish as q → 1 if we apply the method to two-dimensional problems. To this end, we consider the Examples 5.2, 5.3 and 5.4 on different meshes for ε = 10 -6 . We consider ω x ( ) ≡ 1, α = 1 and impose weak boundary conditions on r m as described in Section 4.2. In one case we will also consider α = 0 to compare the approximations for both choices of α . We will see that the overshoots disappear on certain meshes, but remain present on others. We will furthermore demonstrate that the approximation qualitatively behaves like the L q (Ω)-best approximation of the analytical solution and thus we can apply the observations in [5] to (a) predict on which meshes the overshoot will disappear as q → 1 and (b) design meshes that have this property in specific situations.

## 5.3.1 The Eriksson-Johnson Model Problem

We consider the Eriksson-Johnson Model Problem (Example 5.2) on the four different meshes depicted in Figure 9. Note that these are the same meshes that are investigated in [5].

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-aa40fa65-7214-4b30-813f-fe2eb7b81909.jpg)

Figure 9: Four Different Meshes on the Unit Square

Figure 10: Approximation of the analytical solution of Example 5.2 (Eriksson-Johnson model problem) on Mesh 2 for ε = 10 -6 .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-b93ef150-e080-4ad1-85dd-9f8bd2c505bb.jpg)

Figure 11: Approximation of the analytical solution of Example 5.2 (Eriksson-Johnson model problem) on Mesh 3 for ε = 10 -6 .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-4e0b5085-b39b-4777-afd3-06b713c7ec7b.jpg)

First, we compare the approximations on Mesh 2 and Mesh 3 for q = 2 and q = 1 01 with the interpolant of the analytical solution in . U n . Figure 10 shows the approximations on Mesh 2; for q = 2 we clearly observe overshoots near the boundary layer (center) compared to the interpolant of the analytical solution (left). On the other hand, for q = 1 01 we can see that the approximation approaches the interpolant . of the analytical solution. Figure 11 shows the approximations on Mesh 3; in this case we can see that the overshoot is nearly the same for q = 2 and q = 1 01. From [5] we . note that this is the qualitative behaviour that the L q -best approximation exhibits.

With this in mind, we have numerically computed the L q (Ω)-best approximation of the analytical solution for several choices of q and have also computed the finite element approximations with ω x ( ) = 1 and both, α = 1 and α = 0, with weak boundary conditions imposed on r m on the inflow boundary for the same values of q . Figure 12 shows the maximal error between the interpolant of the analytical solution

Figure 12: Example 5.2: max( u n -ˆ), u where ˆ is the interpolant of the analytical u solution u in the space U n , for the L q (Ω)-best approximation and the finite element approximations with α = 1 and α = 0.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-bdfe3b2d-9a01-4eb1-bd17-efa6a37c5cb3.jpg)

and the approximation for the L q (Ω)-best approximation and the error between the interpolant and the numerical approximations for α = 1 and α = 0. We can clearly see that the overshoot observed for our proposed scheme is very similar to the overshoot in the L q (Ω)-best approximation. Therefore, understanding for which meshes discontinuities/layers are captured as sharply as the grid allows by the L q (Ω)-best approximation can serve as an indicator regarding whether the over- and undershoots dissappear as q → 1. This is the subject of [5], where the L q -best approximation of discontinuous functions is analysed in detail in certain cases.

## 5.3.2 Boundary Layer in a Corner of the Domain

In this section we consider Example 5.3 with b = (2 1) , T . We will see that on Mesh 2 in this case the overshoot does not disappear as q → 1 for our method. This is due to the layer not only appearing along an edge of the unit square but also near the corner ( x, y ) = (1 , 1). With this in mind, we suggest an alternative mesh that is only a slight modification of Mesh 2 for which the overshoot disappears. Figure 13 shows the two versions of Mesh 2 that we have used and the corresponding approximations for q = 2 and q = 1 01 along the line through the interior nodes closest to the boundary . y = 1. We can see that on Mesh 2, the overshoot near the corner does not disappear as q → 1, whereas it does reduce significantly away from the corner. For the modified version of Mesh 2, the overshoot disappears everywhere as q → 1.

To understand the improvement when using this modified mesh, we focus on the interior node closest to the corner ( x, y ) = (1 1). , Figure 14 shows all elements connected to this node. The elements with either a node or an edge on the boundary are marked in green; the elements separated from the boundary are blue. From [5] we can infer that the L 1 -best approximation does not exhibit overshoots if the volume of the green area is smaller or equal to the volume of the blue area. This is obviously violated on Mesh 2 with the green area being three times as large as the blue area. The modified version of the mesh is designed to satisfy this condition by changing the mesh as indicated in Figure 14.

## 5.3.3 Example with an Interior Layer

In this section we consider Example 5.4 and demonstrate that a mesh can be constructed such that the over- and undershoots both near the boundary layer and the interior layer can be eliminated as q → 1. To this end, Figure 15 shows the approximation to Example 5.4 for q = 2 and q = 1 1 on two different meshes. The first mesh . is designed such that the overshoot at the boundary layer disappears as q → 1; this is already clearly visible for q = 1 1. Along the interior layer, the overshoot also reduces . significantly, but some over- and undershoots are still present for q = 1 1. The second .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-0a27197b-e959-401c-b14c-7acb36f95ef7.jpg)

(a) Mesh 2

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-0abd7479-c08e-4417-bf53-782cdf262d3a.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-c706c2d9-b00c-4258-bffd-d9c55f1ea640.jpg)

(b) Exact solution u and approximation u n along red line as indicated in Figure 13a for q = 2 and q = 1 01 .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-d8714363-3f61-47d0-8e2e-f6250e551d80.jpg)

- (c) Modified version of Mesh 2

(d) Exact solution u and approximation u n along red line as indicated in Figure 13c for q = 2 and q = 1 01 .

Figure 13: Example 5.3 with b = (2 1) , T : Mesh and approximation for ε = 10 -6 with p n = 1 and p m = 8.

Figure 14: Modification of Mesh 2: Elements connected to the boundary are marked in green, elements separated from the boundary in blue.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-723c1f60-3ca4-4ea9-ab98-20e5fc1f7258.jpg)

mesh is additionally designed to align with the interior layer in such a way that we can expect the over- and undershoots to disappear as q → 1. We can see, that this mesh even nearly eliminates the overshoot along the interior layer for q = 2 and for q = 1 1 all over- and undershoots along both layers have essentially vanished. .

Figure 16 shows the approximations for q = 2 and q = 1 1 if . b is not perfectly aligned with the mesh, i.e., b = (2 1 2) , . T and b = (2 1 06) , . T . The difference between these two choices for b is that in the latter case the layer is still contained in between the two lines parallel to the line ( x, y ) = t (2 , 1), whereas in the former case it is not. In both cases, we clearly observe overshoots along the interior layer for q = 2 which are reduced for q = 1 1. . Both, for q = 2 and q = 1 1 the overshoot reduces . slowly the closer b is to (2 , 1) T . For b = (2 1 06) , . T and q = 1 1 the overshoot is . barely visible in Figure 16, but comparing the maximum and minimum values of the approximations reveals that the over- and undershoots are similar to the case b = (2 1 2) in magnitude. , .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-3b3b9911-0924-4a62-a911-80608445abe4.jpg)

2 on Mesh B.

1 1 on Mesh B.

.

Figure 15: Example 5.4 with ε = 10 -6 .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-285a1afc-54cd-4cbf-bb11-4294a867c614.jpg)

(a) Approximation with q = (b) Approximation with 2 and b = (2 1 2) , . T on Mesh 1 1 B. q = . and b = (2 1 2) , . T on Mesh B.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00996v1-figure-28f4557e-3b65-4339-9b77-52ded17cd83c.jpg)

(c) Approximation with

q

= (d) Approximation with

q

=

2

and

b

=

(2 1 06)

,

.

T

on 1 1

.

and

b

= (2 1 06)

,

.

T

on

Mesh B.

Mesh B.

Figure 16: Example 5.4 with ε = 10 -6 , b = (2 1 2) , . T (top) and b = (2 1 06) , . T (bottom).

## 6 Conclusions and Future Directions

In this article, we generalized the framework employed for DPG methods to more general Banach spaces. This framework in principle allows us to choose the norm in which the solution is approximated, provided a suitable well-posed variational formu-

lation with robust constants and a test-norm that is computable is given. Another challenge in designing such a method is that a Fortin-condition must be satisfied for the discrete spaces U n and V m . The recent work [42] describes a double adaptivity approach for the DPG method to circumvent this challenge in the context of DPG methods. Due to the close relationship between DPG methods and our approach this has potential to be generalized to the Banach space framework.

Furthermore, we have demonstrated how to design a finite element method for the convection-diffusion-reaction problem that in the convection-dominated case yields solutions that qualitatively behave like the L q (Ω)-best approximation of the analytical solution. This means that on meshes where the L 1 (Ω)-best approximation does not contain any over- and undershoots, these can also be avoided by taking q → 1 in our proposed method. Indeed, the final two examples presented in this article demonstrate that it is possible to adjust meshes to specific situations in order to eliminate overand undershoots.

An important implication of the connection to the L q (Ω)-best approximation is that we can use the insights from [5] to design suitable meshes. Note that even in one dimension the over- and undershoots will not disappear for certain non-uniform meshes. Roughly speaking, meshes where the elements near the discontinuity or layer present in the analytical solution are smaller than at a distance from those features are more favourable. Additionally, it is desirable that all interior nodes that are closest to such a feature are aligned roughly in parallel with the feature; for further details, we refer to [5]. This is similar to the observations used to design the modified version of the mesh in the final two examples. This suggests that if the mesh is refined in a suitable way near the layer, we can eliminate over- and undershoots. This observation could be used to design a mesh refinement strategy that modifies the mesh in such a way that the L 1 (Ω)-best approximation of the layer or discontinuity does not contain any over- or undershoots. Note, however, that even though we modified the mesh in the final example in a way that resembles refinement towards the boundary layer, the boundary layer clearly remains under resolved even on the modified mesh. It is therefore not necessary to fully resolve the layer to eliminate the oscillations in this case.

Another challenge of our proposed method is computational feasibility. Possible strategies to addressing this include reducing the degrees of freedom by choosing the test space V m adaptively, introducing broken test spaces V m , similar to DPG methods, to allow for more effective parallelization, and developing a more efficient non-linear solver. Despite the challenges outlined above, the numerical results for our proposed method show great potential for the application to non-linear problems whose analytical solutions contain sharp layers or discontinuities. It is well-known that higher-order monotonicity preserving methods can be expected to be non-linear; thus, the non-linear nature of our approach by no means diminishes its potential.

## Acknowledgements

The authors would like to thank Gabriel Barrenechea, Jesse Chan, Leszek Demkowicz, Jay Gopalakrishnan, Ignacio Muga and Martin Stynes for fruitful discussions on the topic of this article.

## References

- [1] J. W. Gibbs, Fourier's series, Nature 59 (1539) (1899) 606.
- [2] H. Wilbraham, On a certain periodic function, Cambridge and Dublin Math. J 3 (198) (1848) 1848.
- [3] F. Richards, A Gibbs phenomenon for spline functions, Journal of approximation theory 66 (3) (1991) 334-351.
- [4] E. B. Saff, S. Tashev, Gibbs phenomenon for best L p approximation by polygonal lines, East J. Approx. 5 (2) (1999) 235-251.

| [5]   | P. Houston, S. Roggendorf, K. G. van der Zee, Gibbs Phenomenon for L q -Best Approximation of Discontinuities in Finite Element Spaces - Some Examples (Unpublished Result).                                                                                                     |
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [6]   | E. Moskona, P. Petrushev, E. Saff, The gibbs phenomenon for best L1- trigonometric polynomial approximation, Constructive Approximation 11 (3) (1995) 391-416.                                                                                                                   |
| [7]   | J.-L. Guermond, A finite element technique for solving first-order PDEs in L P , SIAM J. Numer. Anal. 42 (2) (2004) 714-737.                                                                                                                                                     |
| [8]   | J. E. Lavery, Nonoscillatory solution of the steady-state inviscid Burgers' equa- tion by mathematical programming, J. Comput. Phys. 79 (2) (1988) 436-448.                                                                                                                      |
| [9]   | J. E. Lavery, Solution of steady-state one-dimensional conservation laws by math- ematical programming, SIAM J. Numer. Anal. 26 (5) (1989) 1081-1089.                                                                                                                            |
| [10]  | J. E. Lavery, Solution of steady-state, two-dimensional conservation laws by mathematical programming, SIAM J. Numer. Anal. 28 (1) (1991) 141-155.                                                                                                                               |
| [11]  | B.-N. Jiang, Non-oscillatory and non-diffusive solution of convection problems by the iteratively reweighted least-squares finite element method, Journal of com- putational physics 105 (1) (1993) 108-121.                                                                     |
| [12]  | B.-N. Jiang, The least-squares finite element method: theory and applications in computational fluid dynamics and electromagnetics, Springer Science & Business Media, 1998.                                                                                                     |
| [13]  | J.-L. Guermond, B. Popov, Linear advection with ill-posed boundary conditions via L 1 -minimization, Int. J. Numer. Anal. Model. 4 (1) (2007) 39-47.                                                                                                                             |
| [14]  | J.-L. Guermond, F. Marpeau, B. Popov, A fast algorithm for solving first-order PDEs by L 1 -minimization, Commun. Math. Sci. 6 (1) (2008) 199-216.                                                                                                                               |
| [15]  | J.-L. Guermond, B. Popov, L 1 -approximation of stationary Hamilton-Jacobi equations, SIAM J. Numer. Anal. 47 (1) (2008/09) 339-362.                                                                                                                                             |
| [16]  | J.-L. Guermond, B. Popov, An optimal L 1 -minimization algorithm for stationary Hamilton-Jacobi equations, Commun. Math. Sci. 7 (1) (2009) 211-238.                                                                                                                              |
| [17]  | I. Muga, K. G. van der Zee, Discretization of Linear Problems in Banach Spaces: Residual Minimization, Nonlinear Petrov-Galerkin, and Monotone Mixed Meth- ods, arXiv preprint arXiv:1511.04400v2 (2017).                                                                        |
| [18]  | L. F. Demkowicz, J. Gopalakrishnan, An overview of the discontinuous Petrov Galerkin method, in: Recent developments in discontinuous Galerkin finite el- ement methods for partial differential equations, Vol. 157 of IMA Vol. Math. Appl., Springer, Cham, 2014, pp. 149-180. |
| [19]  | J. Chan, J. A. Evans, W. Qiu, A dual Petrov-Galerkin finite element method for the convection-diffusion equation, Comput. Math. Appl. 68 (11) (2014).                                                                                                                            |
| [20]  | D. Broersen, R. Stevenson, Arobust Petrov-Galerkin discretisation of convection- diffusion equations, Comput. Math. Appl. 68 (11) (2014) 1605-1618.                                                                                                                              |
| [21]  | D. Broersen, R. P. Stevenson, A Petrov-Galerkin discretization with optimal test space of a mild-weak formulation of convection-diffusion equations in mixed form, IMA J. Numer. Anal. 35 (1) (2015) 39-73.                                                                      |
| [22]  | J. Chan, N. Heuer, T. Bui-Thanh, L. Demkowicz, A robust DPG method for convection-dominated diffusion problems II: adjoint boundary conditions and mesh-dependent test norms, Comput. Math. Appl. 67 (4) (2014) 771-795.                                                         |
| [23]  | A. Cohen, W. Dahmen, G. Welper, Adaptivity and variational stabilization for convection-diffusion equations, ESAIM Math. Model. Numer. Anal. 46 (5) (2012)                                                                                                                       |

| [24]   | L. Demkowicz, N. Heuer, Robust DPG method for convection-dominated diffu- sion problems, SIAM J. Numer. Anal. 51 (5) (2013) 2514-2537.                                                                                                                           |
|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [25]   | M. S. Alnæs, J. Blechta, J. Hake, A. Johansson, B. Kehlet, A. Logg, C. Richard- son, J. Ring, M. E. Rognes, G. N. Wells, The FEniCS project version 1.5, Archive of Numerical Software 3 (100) (2015).                                                           |
| [26]   | A. Logg, K.-A. Mardal, G. N. Wells, et al., Automated Solution of Differential Equations by the Finite Element Method, Springer, 2012.                                                                                                                           |
| [27]   | I. Muga, K. G. van der Zee, Discretization of Linear Problems in Banach Spaces: Residual Minimization, Nonlinear Petrov-Galerkin, and Monotone Mixed Meth- ods, arXiv preprint arXiv:1511.04400v1 (2015).                                                        |
| [28]   | P. Houston, I. Muga, S. Roggendorf, K. G. van der Zee, The Convection- Diffusion-Reaction Equation in Non-Hilbert Sobolev Spaces: A Direct Proof of the Inf-Sup Condition and Stability of Galerkin's Method, Comput. Methods Appl. Math. 19 (3) (2019) 503-522. |
| [29]   | H. Brezis, Functional analysis, Sobolev spaces and partial differential equations, Universitext, Springer, New York, 2011.                                                                                                                                       |
| [30]   | K. Deimling, Nonlinear functional analysis, Springer-Verlag, Berlin, 1985.                                                                                                                                                                                       |
| [31]   | E. Zeidler, Nonlinear functional analysis and its applications. III, Springer- Verlag, New York, 1985, variational methods and optimization, Translated from the German by Leo F. Boron.                                                                         |
| [32]   | I. Cioranescu, Geometry of Banach spaces, duality mappings and nonlinear prob- lems, Vol. 62 of Mathematics and its Applications, Kluwer Academic Publishers Group, Dordrecht, 1990.                                                                             |
| [33]   | C. Chidume, Geometric properties of Banach spaces and nonlinear iterations, Vol. 1965 of Lecture Notes in Mathematics, Springer-Verlag London, Ltd., Lon- don, 2009.                                                                                             |
| [34]   | L. Demkowicz, J. Gopalakrishnan, Discontinuous Petrov-Galerkin (DPG) method, ICES Report (15-20) (2015).                                                                                                                                                         |
| [35]   | L. Demkowicz, J. Gopalakrishnan, A class of discontinuous Petrov-Galerkin methods. II. Optimal test functions, Numer. Methods Partial Differential Equa- tions 27 (1) (2011) 70-105.                                                                             |
| [36]   | I. Stakgold, M. J. Holst, Green's functions and boundary value problems, Vol. 99, John Wiley & Sons, 2011.                                                                                                                                                       |
| [37]   | J. Zitelli, I. Muga, L. Demkowicz, J. Gopalakrishnan, D. Pardo, V. M. Calo, A class of discontinuous Petrov-Galerkin methods. Part IV: the optimal test norm and time-harmonic wave propagation in 1D, J. Comput. Phys. 230 (7) (2011) 2406-2432.                |
| [38]   | J. Gopalakrishnan, W. Qiu, An analysis of the practical DPG method, Mathe- matics of Computation 83 (286) (2014) 537-552.                                                                                                                                        |
| [39]   | J. Gopalakrishnan, Five lectures on DPG methods, arXiv:1306.0557 (2013).                                                                                                                                                                                         |
| [40]   | I. Muga, M. J. W. Tyler, K. G. van der Zee, The Discrete-Dual Minimal-Residual Method (DDMRes) for Weak Advection-Reaction Problems in Banach Spaces, Comput. Methods Appl. Math. 19 (3) (2019) 557-579.                                                         |
| [41]   | P. Solin, L. Korous, P. Kus, Hermes2D, a C++ library for rapid development of adaptive hp -FEM and hp -DG solvers, J. Comput. Appl. Math. 270 (2014) 152-165.                                                                                                    |
| [42]   | L. Demkowicz, T. F¨rer, u N. Heuer, X. Tian, The double adaptivity paradigm (how to circumvent the discrete inf-sup conditions of babuÅąka and brezzi), ICES Report (19-07) (2019).                                                                              |
Paul Houston Sarah Roggendorf Kristoffer G. van der Zee
Eliminating Gibbs Phenomena: A Non-linear Petrov-Galerkin Method for the Convection-Diffusion-Reaction Equation
In this article we consider the numerical approximation of the
convection-diffusion-reaction equation. One of the main challenges of designing
a numerical method for this problem is that boundary layers occurring in the
convection-dominated case can lead to non-physical oscillations in the
numerical approximation, often referred to as Gibbs phenomena. The idea of this
article is to consider the approximation problem as a residual minimization in
dual norms in Lq-type Sobolev spaces, with 1 < q < $\infty$. We then apply a
non-standard, non-linear PetrovGalerkin discretization, that is applicable to
reflexive Banach spaces such that the space itself and its dual are strictly
convex. Similar to discontinuous Petrov-Galerkin methods, this method is based
on minimizing the residual in a dual norm. Replacing the intractable dual norm
by a suitable discrete dual norm gives rise to a non-linear inexact mixed
method. This generalizes the Petrov-Galerkin framework developed in the context
of discontinuous Petrov-Galerkin methods to more general Banach spaces. For the
convection-diffusion-reaction equation, this yields a generalization of a
similar approach from the L2-setting to the Lq-setting. A key advantage of
considering a more general Banach space setting is that, in certain cases, the
oscillations in the numerical approximation vanish as q tends to 1, as we will
demonstrate using a few simple numerical examples.