196
Duality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department of Mathematics Department of Statistics Colorado State University Research supported by Department of Energy: DE-FG02-04ER25620 and DE-FG02-05ER25699; Sandia Corporation: PO299784; National Aeronautics and Space Administration: NNG04GH63G; National Science Foundation: DMS-0107832, DGE-0221595003, MSPA-CSE-0434354 Donald Estep, Colorado State University – p. 1/196

Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

  • Upload
    others

  • View
    4

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Duality, Adjoint Operators, and Uncertaintyin a Complex World

Donald Estep

Department of Mathematics

Department of Statistics

Colorado State University

Research supported by

Department of Energy: DE-FG02-04ER25620 and DE-FG02-05ER25699;

Sandia Corporation: PO299784;

National Aeronautics and Space Administration: NNG04GH63G;

National Science Foundation: DMS-0107832, DGE-0221595003, MSPA-CSE-0434354

Donald Estep, Colorado State University – p. 1/196

Page 2: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Motivation

Donald Estep, Colorado State University – p. 2/196

Page 3: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Multiphysics Model of a Thermal Actuator

Example A thermal actuator is a MEMS scale electric switch

Vsig

Contact Contact

Contact

Conductor Conductor

250 µm

Donald Estep, Colorado State University – p. 3/196

Page 4: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Multiphysics Model of a Thermal Actuator

Example A thermal actuator is a MEMS scale electric switch

Vsig

Vswitch

Donald Estep, Colorado State University – p. 4/196

Page 5: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Multiphysics Model of a Thermal Actuator

Example A thermal actuator is a MEMS scale electric switch

Vsig

Vswitch

Donald Estep, Colorado State University – p. 5/196

Page 6: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Multiphysics Model of a Thermal Actuator

Example A thermal actuator is a MEMS scale electric switch

Vsig

Vswitch

Donald Estep, Colorado State University – p. 6/196

Page 7: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Model for a Thermal Actuator

Electrostatic current equation (J = −σ∇V )

∇ · (σ(T )V ) = 0

Steady-state energy equation

∇ · (κ(T )∇T ) = σ(∇V · ∇V )

Steady-state displacement (linear elasticity)

∇ ·(

λ tr(E)I + 2µE − β(T − Tref )I)

= 0

E =(

∇d+ ∇d⊤)

/2

Multiple physical components, multiple scales =⇒ complicatedanalytic and computational issues

Donald Estep, Colorado State University – p. 7/196

Page 8: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Application Goals for Multiphysics Models

Typical applications of multiphysics models include

• Analyze the effects of uncertainties and variation in thephysical properties of the model on its output

• Compute optimal parameter values with respect toproducing a desired observation or consequence

• Determine allowable uncertainties for input parameters anddata that yield acceptable uncertainty in output

• Predict the behavior of the system by matching modelresults to experimental observations

Applications requiring results for a range of data and parametervalues raise a critical need for quantification and control ofuncertainty

Donald Estep, Colorado State University – p. 8/196

Page 9: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Computational Goals for Multiphysics Models

Application of multiphysics models invoke two computationalgoals

• Compute specific information from multiscale, multiphysicsproblems accurately and efficiently

• Accurately quantify the error and uncertainty in anycomputed information

The context is important:

It is often difficult or impossible to obtain uniformlyaccurate solutions of multiscale, multiphysics problemsthroughout space and time

Donald Estep, Colorado State University – p. 9/196

Page 10: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Fundamental Tools

We employ two fundamental mathematical tools

• Duality and adjoint operators• Variational analysis

These tools have a long history of application in analysis ofmodel sensitivity and optimization

More recently, they have been applied to a posteriori errorestimation for differential equations

Currently, they are being applied to the analysis and applicationof multiphysics problems

Donald Estep, Colorado State University – p. 10/196

Page 11: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Outline of this course

The plan is roughly

1. Overview of duality and adjoints for linear operators

2. Uses of duality and adjoint operators

3. Adjoints for nonlinear operators

4. Application to computational science and engineering• Estimating the error of numerical solutions of differential

equations• Adaptive mesh refinement• Investigations into stability properties of solutions• Kernel density estimation• Estimating the effects of operator decomposition• Adaptive error control for parameter optimization• Domain decomposition

Donald Estep, Colorado State University – p. 11/196

Page 12: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Functionals and Dual Spaces

Donald Estep, Colorado State University – p. 12/196

Page 13: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

What Information is to be Computed?

The starting point is the computation of particular informationobtained from a solution of a multiscale, multiphysics problem

Considering a particular quantity of interest is importantbecause obtaining solutions that are accurate everywhere isoften impossible

The application should begin by answering

What do we want to compute from the model?

We use functionals and dual spaces to answer this

Donald Estep, Colorado State University – p. 13/196

Page 14: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Definition of Linear Functionals

Let X be a vector space with norm ‖ ‖

A bounded linear functional ℓ is a continuous linear map from Xto the reals R, ℓ ∈ L(X,R)

Example For v in Rn fixed, the map

ℓ(x) = v · x = (x, v)

is a linear functional on Rn

Example For a continuous function f on [a, b],

ℓ(f) =

∫ b

a

f(x) dx and ℓ(f) = f(y) for a ≤ y ≤ b

are linear functionals

Donald Estep, Colorado State University – p. 14/196

Page 15: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Sampling a Vector

A linear functional is a one dimensional “sample” of a vector

Example The linear functional on Rn given by the inner product

with the basis vector ei gives the ith component of a vector

Example Statistical moments like the expected value E(X) of arandom variable X are linear functionals

Example The Fourier coefficients of a continuous function f on[0, 2π],

cj =

∫ 2π

0f(x) e−ijx dx

are functionals of f

Donald Estep, Colorado State University – p. 15/196

Page 16: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Sampling a Vector

Using linear functionals of a solution means settling for a set ofsamples rather than the entire solution

Presumably, it is easier to compute accurate samples thansolutions that are accurate everywhere

In many situations, we settle for an “incomplete” set of samples

Example We are often happy with a small set of moments of arandom variable

Example In practical applications of Fourier series, we truncatethe infinite series to a finite number of terms,

∞∑

j=−∞

cjeijx →

J∑

j=−J

cjeijx

Donald Estep, Colorado State University – p. 16/196

Page 17: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Linear functionals and dual spaces

We are interested in the set of reasonable samples

DefinitionIf X is a normed vector space, the vector space L(X,R) ofcontinuous linear functionals on X is called the dual space of X,and is denoted by X∗

The dual space is a normed vector space under the dual normdefined for y ∈ X∗ as

‖y‖X∗ = supx∈X

‖x‖X=1

|y(x)| = supx∈Xx6=0

|y(x)|

‖x‖

size of a “sample” = largest value of the sample on vectors of length 1

Donald Estep, Colorado State University – p. 17/196

Page 18: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Linear functionals and dual spaces

Example Consider X = Rn. Every vector v in R

n is associatedwith a linear functional Fv(·) = (·, v). This functional is clearbounded since |(x, v)| ≤ ‖v‖ ‖x‖ = C‖x‖

A classic result in linear algebra is that all linear functionals onRn have this form, i.e., we can make the identification

(Rn)∗ ≃ Rn

Donald Estep, Colorado State University – p. 18/196

Page 19: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Linear functionals and dual spaces

Example For C([a, b]), consider I(f) =∫ b

af(x) dx. It is easy to

compute

‖I‖C([a,b])∗ = supf∈C([a,b])max |f |=1

∫ b

a

f(x) dx

by looking at a picture.

Donald Estep, Colorado State University – p. 19/196

Page 20: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Linear functionals and dual spaces

1

-1

ab

possible functions

Computing the dual norm of the integration functional

The maximum value for I(f) is clearly given by f = 1 or f = −1,and ‖I‖C([a,b])∗ = b− a

Donald Estep, Colorado State University – p. 20/196

Page 21: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Linear functionals and dual spaces

Recall Hölder’s inequality: if f ∈ Lp(Ω) and g ∈ Lq(Ω) withp−1 + q−1 = 1 for 1 ≤ p, q ≤ ∞, then

‖fg‖L1(Ω) ≤ ‖f‖Lp(Ω)‖g‖Lq(Ω)

Example Each g in Lq(Ω) is associated with a bounded linearfunctional on Lp(Ω) when p−1 + q−1 = 1 and 1 ≤ p, q ≤ ∞ by

F (f) =

Ωg(x)f(x) dx

We can “identify” (Lp)∗ with Lq when 1 < p, q <∞

The cases p = 1, q = ∞ and p = ∞, q = 1 are trickier

Donald Estep, Colorado State University – p. 21/196

Page 22: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Duality for Hilbert Spaces

Hilbert spaces are Banach spaces with an inner product ( , )

Example Rn and L2 are Hilbert spaces

If X is a Hilbert space, then ψ ∈ X determines a bounded linearfunctional via the inner product

ℓψ(x) = (x, ψ), x ∈ X

The Riesz Representation theorem says this is the only kind oflinear functional on a Hilbert space

We can identify the dual space of a Hilbert space with itself

Linear functionals are commonly represented as inner products

Donald Estep, Colorado State University – p. 22/196

Page 23: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Riesz Representors

Some useful choices of Riesz representors ψ for functions f in aHilbert space include:

• ψ = χω/|ω| gives the error in the average value of f over asubset ω ⊂ Ω, where χω is the characteristic function of ω

• ψ = δc gives the average value∮

cf(s) ds of f on a curve c in

Rn, n = 2, 3, and ψ = δs gives the average value of f over a

plane surface s in R3 (δ denotes the corresponding delta

function)• We can obtain average values of derivatives using dipoles

similarly

• ψ = f/‖f‖ gives the L2 norm of f

Only some of these ψ have spatially local support

Donald Estep, Colorado State University – p. 23/196

Page 24: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Bracket Notation

We “borrow” the Hilbert space notation for the general case:

DefinitionIf x is in X and y is in X∗, we denote the value

y(x) = 〈x, y〉

This is called the bracket notation

The generalized Cauchy inequality is

|〈x, y〉| ≤ ‖x‖X ‖y‖X∗ , x ∈ X, y ∈ X∗

Donald Estep, Colorado State University – p. 24/196

Page 25: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoint Operators

Donald Estep, Colorado State University – p. 25/196

Page 26: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Motivation for the Adjoint Operator

Let X, Y be normed vector spaces

Assume that L ∈ L(X,Y ) is a continuous linear map

The goal is to compute a sample or functional value of the output

ℓ(

L(x))

, some x ∈ X

Some important questions:• Can we find a way to compute the sample value efficiently?• What is the error in the sample value if approximations are

involved?• Given a sample value, what can we say about x?• Given a collection of sample values, what can we say aboutL?

Donald Estep, Colorado State University – p. 26/196

Page 27: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Definition of the Adjoint Operator

Let X, Y be normed vector spaces with dual spaces X∗, Y ∗

Assume that L ∈ L(X,Y ) is a continuous linear map

For each y∗ ∈ Y ∗ there is an x∗ ∈ X∗ defined by

x∗(x) = y∗(

L(x))

sample of x in X= sample of image L(x) of x in Y

The adjoint map L∗ : Y ∗ → X∗ satisfies the bilinear identity

〈L(x), y∗〉 = 〈x,L∗(y∗)〉, x ∈ X, y∗ ∈ Y ∗

Donald Estep, Colorado State University – p. 27/196

Page 28: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoint of a Matrix

Example Let X = Rm and Y = R

n with the standard innerproduct and norm

L ∈ L(Rm,Rn) is associated with a n×m matrix A:

A =

a11 · · · a1m

......

an1 · · · anm

, y =

y1

...yn

, x =

x1

...xm

and

yi =m∑

j=1

aijxj , 1 ≤ i ≤ n

Donald Estep, Colorado State University – p. 28/196

Page 29: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoint of a Matrix

The bilinear identity reads

(Lx, y) = (x,L∗y), x ∈ Rm, y ∈ R

n.

For a linear functional y∗ = (y∗1 , · · · , y∗n)

⊤ ∈ Y ∗

L∗y∗(x) = y∗(L(x)) =

(y∗1 , · · · , y∗n),

∑mj=1 a1jxj

...∑m

j=1 anjxj

=m∑

j=1

y∗1a1jxj + · · ·m∑

j=1

y∗nanjxj

=m∑

j=1

(

n∑

i=1

y∗i aij)

xj

Donald Estep, Colorado State University – p. 29/196

Page 30: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoint of a Matrix

L∗(y∗) is given by the inner product with y = (y1, · · · , ym)⊤

where

yj =

n∑

i=1

y∗i aij .

The matrix A∗ of L∗ is

A∗ =

a∗11 · · · a∗1n...

...a∗m1 · · · a∗mn

=

a11 a21 · · · an1

......

a1m a2m · · · anm

= A⊤.

Donald Estep, Colorado State University – p. 30/196

Page 31: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Properties of Adjoint Operators

TheoremLet X, Y , and Z be normed linear spaces. For L1, L2 ∈ L(X,Y ):

L∗1 ∈ L(Y ∗,X∗)

‖L∗1‖ = ‖L1‖

0∗ = 0

(L1 + L2)∗ = L∗

1 + L∗2

(αL1)∗ = αL∗

1, all α ∈ R

If L2 ∈ L(X,Y ) and L1 ∈ L(Y,Z), then (L1L2)∗ ∈ L(Z∗,X∗) and

(L1L2)∗ = L∗

2L∗1.

Donald Estep, Colorado State University – p. 31/196

Page 32: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoints for Differential Operators

Computing adjoints for differential operators is more complicated

We need to make assumptions on the spaces, e.g., the domainof the operator and the corresponding dual space have to besufficiently “big”

The Hahn-Banach theorem is often involved

We consider differential operators on Sobolev spaces using theL2 inner product and ignore analytic technicalities

Donald Estep, Colorado State University – p. 32/196

Page 33: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoints for Differential Operators

The adjoint of the differential operator L

(Lu, v) → (u,L∗v)

is obtained by a succession of integration by parts

Boundary terms involving functions and derivatives arise fromeach integration by parts

We use a two step process

1. We first compute the formal adjoint by assuming that allfunctions have compact support and ignoring boundaryterms

2. We then compute the adjoint boundary and data conditionsto make the bilinear identity hold

Donald Estep, Colorado State University – p. 33/196

Page 34: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Formal Adjoints

Example Consider

Lu(x) = −d

dx

(

a(x)d

dxu(x)

)

+d

dx(b(x)u(x))

on [0, 1]. Integration by parts neglecting boundary terms gives

∫ 1

0

d

dx

(

a(x)d

dxu(x)

)

v(x) dx

=

∫ 1

0a(x)

d

dxu(x)

d

dxv(x) dx− a(x)

d

dxu(x)v(x)

1

0

= −

∫ 1

0u(x)

d

dx

(

a(x)d

dxv(x)

)

dx+ u(x)a(x)d

dxv(x)

1

0

Donald Estep, Colorado State University – p. 34/196

Page 35: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Formal Adjoints

∫ 1

0

d

dx(b(x)u(x))v(x) dx = −

∫ 1

0u(x)b(x)

d

dxv(x) dx+b(x)u(x)v(x)

1

0

,

All of the boundary terms vanish

Therefore,

Lu(x) = −d

dx

(

a(x)d

dxu(x)

)

+d

dx(b(x)u(x))

=⇒ L∗v = −d

dx

(

a(x)d

dxv(x)

)

− b(x)d

dx(v(x))

Donald Estep, Colorado State University – p. 35/196

Page 36: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Formal Adjoints

In higher space dimensions, we use the divergence theorem

Example A general linear second order differential operator Lin R

n can be written

L(u) =

n∑

i=1

n∑

j=1

aij∂2u

∂xi∂xj+

n∑

i=1

bi∂u

∂xi+ cu,

where aij, bi, and c are functions of x1, x2, · · · , xn. Then,

L∗(u) =

n∑

i=1

n∑

j=1

∂2(aijv)

∂xi∂xj−

n∑

i=1

∂(biv)

∂xi+ cv

Donald Estep, Colorado State University – p. 36/196

Page 37: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoint Boundary Conditions

In the second stage, we deal with the boundary terms that ariseduring integration by parts

DefinitionThe adjoint boundary conditions are the minimal conditionsrequired in order that the bilinear identity hold true

The form of the boundary conditions imposed on the differentialoperator is important, but not the values

We assume homogeneous boundary values for the differentialoperator when determining the adjoint conditions

Donald Estep, Colorado State University – p. 37/196

Page 38: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoint Boundary Conditions

Example Consider Newton’s equation of motion s′′(x) = f(x)with x = “time”, normalized with mass 1

If s(0) = s′(0) = 0 and 0 < x < 1,

∫ 1

0(s′′v − sv′′) dx = (vs′ − sv′)

1

0

The boundary conditions imply the contributions at x = 0 vanish,while at x = 1 we have

v(1)s′(1) − v′(1)s(1)

The adjoint boundary conditions are v(1) = v′(1) = 0

Donald Estep, Colorado State University – p. 38/196

Page 39: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoint Boundary Conditions

Example Since

Ω(u∆v − v∆u) dx =

∂Ω

(

u∂v

∂n− v

∂u

∂n

)

ds,

the Dirichlet and Neumann boundary value problems for theLaplacian are their own adjoints

Donald Estep, Colorado State University – p. 39/196

Page 40: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoint Boundary Conditions

Example Let Ω ⊂ R2 be bounded with a smooth boundary and

let s = arclength along the boundary

Consider

−∆u = f, x ∈ Ω,∂u∂n

+ ∂u∂s

= 0, x ∈ ∂Ω

Since∫

Ω(u∆v − v∆u) dx =

∂Ω

(

u

(

∂v

∂n−∂v

∂s

)

− v

(

∂u

∂n+∂u

∂s

))

ds,

the adjoint problem is

−∆v = g, x ∈ Ω,∂v∂n

− ∂v∂s

= 0, x ∈ ∂Ω.

Donald Estep, Colorado State University – p. 40/196

Page 41: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoint for an Evolution Operator

For an initial value problem, we have ddt

and an initial condition

Now∫ T

0

du

dtv dt = u(t)v(t)

T

0−

∫ T

0udv

dtdt

The boundary term at 0 vanishes because u(0) = 0

The adjoint is a final-value problem with “initial” conditionv(T ) = 0

The adjoint problem has −dvdt

and time “runs backwards”

Donald Estep, Colorado State University – p. 41/196

Page 42: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adjoint for an Evolution Operator

Example

Lu = dudt

− ∆u = f, x ∈ Ω, 0 < t ≤ T,

u = 0, x ∈ ∂Ω, 0 < t ≤ T,

u = u0, x ∈ Ω, t = 0

=⇒

L∗v = −dvdt

− ∆v = ψ, x ∈ Ω, T > t ≥ 0,

v = 0, x ∈ ∂Ω, T > t ≥ 0,

v = 0, x ∈ Ω, t = T

Donald Estep, Colorado State University – p. 42/196

Page 43: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Usefulness of Duality and Adjoints

Donald Estep, Colorado State University – p. 43/196

Page 44: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Dual Space is Nice

The dual space can be better behaved than the original normedvector space

TheoremIf X is a normed vector space over R, then X∗ is a Banachspace (whether or not X is a Banach space)

Donald Estep, Colorado State University – p. 44/196

Page 45: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Condition of an Operator

There is an intimate connection between the adjoint problemand the stability properties of the original problem

TheoremThe singular values of a matrix L are the square roots of theeigenvalues of the square, symmetric transformations L

∗L or

LL∗

This connects the condition number of a matrix L to L∗

Donald Estep, Colorado State University – p. 45/196

Page 46: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Solving Linear Problems

Given normed vector spaces X and Y , an operator L(X,Y ),and b ∈ Y , find x ∈ X such that

Lx = b

TheoremA necessary condition that b is in the range of L is y∗(b) = 0 forall y∗ in the null space of L∗

This is a sufficient condition if the range of L is closed in Y

Example If A is an n×m matrix, a necessary and sufficientcondition for the solvability of Ax = b is b is orthogonal to alllinearly independent solutions of A⊤y = 0

Donald Estep, Colorado State University – p. 46/196

Page 47: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Solving Linear Problems

Example When X is a Hilbert space and L ∈ L(X,Y ), thennecessarily the range of L∗ is a subset of the orthogonalcomplement of the null space of L

If the range of L∗ is “large”, then the orthogonal complement ofthe null space of L must be “large” and the null space of L mustbe “small”

The existence of sufficiently many solutions of thehomogeneous adjoint equation L∗φ = 0 implies there is at mostone solution of Lu = b for a given b

Donald Estep, Colorado State University – p. 47/196

Page 48: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Augmented System

Consider the potentially nonsquare system Ax = b, where A is an×m matrix, x ∈ R

m, and b ∈ Rn

The augmented system is obtained by adding a problem for theadjoint, e.g. an m× n system A⊤y = c, where y and c arenominally independent of x and b

The new problem is an (n+m) × (n+m) symmetric problem

(

0 A

A⊤ 0

)(

y

x

)

=

(

b

c

)

Donald Estep, Colorado State University – p. 48/196

Page 49: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Augmented System

Consequences:• The theorem on the adjoint condition for solvability falls out

right away• This yields a “natural” definition of a solution in the

over-determined case• This gives conditions for a solution to exist in the

under-determined case

The more over-determined the original system, the moreunder-determined the adjoint system, and so forth

Donald Estep, Colorado State University – p. 49/196

Page 50: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Augmented System

Example Consider 2x1 + x2 = 4, where L : R2 → R.

L∗ : R → R2 is given by L∗ =

(

2

1

)

The extended system is

0 2 1

2 0 0

1 0 0

y1

x1

x2

=

4

c1

c2

,

so 2c1 = c2 is required in order to have a solution

Donald Estep, Colorado State University – p. 50/196

Page 51: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Augmented System

Example If the problem is

2x1 + x2 = 4

x2 = 3,

with L : R2 → R

2, then there is a unique solution

The extended system is

0 0 2 1

0 0 0 1

2 0 0 0

1 1 0 0

y1

y2

x1

x2

=

c1

c2

4

3

,

where we can specify any values for c1, c2

Donald Estep, Colorado State University – p. 51/196

Page 52: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Augmented System

In the under-determined case, we can eliminate the deficiencyby posing the method of solution

AA⊤y = b

x = A⊤yor

L(L∗(y)) = b

x = L∗(y)

Donald Estep, Colorado State University – p. 52/196

Page 53: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Augmented System

This works for differential operators

Example Consider the under-determined problem

divF = ρ

The adjoint to div is -grad modulo boundary conditions

If F = grad u, where u is subject to the boundary conditionu(“∞”) = 0, then we obtain the “square”, well-determinedproblem

div grad u = ∆u = −ρ,

which has a unique solution because of the boundary condition

Donald Estep, Colorado State University – p. 53/196

Page 54: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Greens Functions

Suppose we wish to compute a functional ℓ(x) of the solutionx ∈ R

n of a n× n system

Lx = b

For a linear functional ℓ(·) = (·, ψ), we define the adjoint problem

L∗φ = ψ

Variational analysis yields the representation formula

ℓ(x) = (x, ψ) = (x,L∗φ) = (Lx, φ) = (b, φ)

We can compute many solutions by computing one adjointsolution and taking inner products

Donald Estep, Colorado State University – p. 54/196

Page 55: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Greens Functions

This is the method of Green’s functions in differential equations

Example For

−∆u = f, x ∈ Ω,

u = 0, x ∈ ∂Ω

the Green’s function solves

−∆φ = δx (delta function at x)

This yieldsu(x) = (u, δx) = (f, φ)

The generalized Green’s function solves the adjoint problemwith general functional data, rather than just δx

The imposition of the adjoint boundary conditions is crucial

Donald Estep, Colorado State University – p. 55/196

Page 56: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Nonlinear Operators

Donald Estep, Colorado State University – p. 56/196

Page 57: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Nonlinear Operators

There is no “natural” adjoint for a general nonlinear operator

We assume that the Banach spaces X and Y are Sobolevspaces and use ( , ) for the L2 inner product, and so forth

We define the adjoint for a specific kind of nonlinear operator

We assume f is a nonlinear map from X into Y , where thedomain of f is a convex set

Donald Estep, Colorado State University – p. 57/196

Page 58: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Perturbation Operator

We choose u in the domain of f and define

F (e) = f(u+ e) − f(u),

where we think of e as representing an “error”, i.e., e = U − u

The domain of F is

v ∈ X| v + u ∈ domain of f

We assume that the domain of F is independent of e and densein X

Note that 0 is in the domain of F and F (0) = 0

Donald Estep, Colorado State University – p. 58/196

Page 59: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Perturbation Operator

Two reasons to work with functions of this form:• This is the kind of nonlinearity that arises when estimating

the error of a numerical solution or studying the effects ofperturbations

• Nonlinear problems typically do not enjoy the globalsolvability that characterizes linear problems, only a localsolvability

Donald Estep, Colorado State University – p. 59/196

Page 60: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Definition 1

The first definition is based on the bilinear identity

DefinitionAn operator A∗(e) is an adjoint operator corresponding to F if

(F (e), w) = (e,A∗(e)w) for all e ∈ domain of F, w ∈ domain of A∗

This is an adjoint operator associated with F , not the adjointoperator to F

Donald Estep, Colorado State University – p. 60/196

Page 61: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Definition 1

Example Suppose that F can be represented as F (e) = A(e)e,where A(e) is a linear operator with the domain of F containedin the domain of A

For a fixed e in the domain of F , define the adjoint of A satisfying

(A(e)w, v) = (w,A∗(e)v)

for all w ∈ domain of A, v ∈ domain of A∗

Substituting w = e shows this defines an adjoint of F as well

If there are several such linear operators A, then there will beseveral different possible adjoints.

Donald Estep, Colorado State University – p. 61/196

Page 62: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An Adjoint for a Nonlinear Differential Equation

Example Let (t, x) ∈ Ω = (0, 1) × (0, 1), withX = X∗ = Y = Y ∗ = L2 denoting the space of periodicfunctions in t and x, with period equal to 1

Consider a periodic problem

F (e) =∂e

∂t+ e

∂e

∂x+ ae = f

where a > 0 is a constant and the domain of F is the set ofcontinuously differentiable functions.

Donald Estep, Colorado State University – p. 62/196

Page 63: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An Adjoint for a Nonlinear Differential Equation

We can write F (e) = Ai(e)e where

A1(e)v =∂v

∂t+ e

∂v

∂x+ av =⇒ A∗

1(e)w = −∂w

∂t−∂(ew)

∂x+ aw

A2(e)v =∂v

∂t+

(

a+∂e

∂x

)

v =⇒ A∗2(e)w = −

∂w

∂t+

(

a+∂e

∂x

)

w

A3(e)v =∂v

∂t+

1

2

∂(ev)

∂x+ av =⇒ A∗

3(e)w = −∂w

∂t−e

2

∂w

∂x+ aw

Donald Estep, Colorado State University – p. 63/196

Page 64: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Definition 2

If the nonlinearity is Frechet differentiable, we base the seconddefinition of an adjoint on the integral mean value theorem

The integral mean value theorem states

f(U) = f(u) +

∫ 1

0f ′(u+ se) ds e

where e = U − u and f ′ is the Frechet derivative of f

Donald Estep, Colorado State University – p. 64/196

Page 65: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Definition 2

We rewrite this as

F (e) = f(U) − f(u) = A(e)e

with

A(e) =

∫ 1

0f ′(u+ se) ds.

Note that we can apply the integral mean value theorem to F :

A(e) =

∫ 1

0F ′(se) ds.

To be precise, we should discuss the smoothness of F .

Donald Estep, Colorado State University – p. 65/196

Page 66: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Definition 2

DefinitionFor a fixed e, the adjoint operator A∗(e), defined in the usual wayfor the linear operator A(e), is said to be an adjoint for F

Example Continuing the previous example,

F ′(e)v =∂v

∂t+ e

∂v

∂x+

(

a+∂e

∂x

)

v.

After some technical analysis of the domains of the operatorsinvolved,

A∗(e)w = −∂w

∂t−e

2

∂w

∂x+ aw.

This coincides with the third adjoint computed above

Donald Estep, Colorado State University – p. 66/196

Page 67: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Application and Analysis

Donald Estep, Colorado State University – p. 67/196

Page 68: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Solving the Adjoint Problem

In the first part of this course, I tried to hint at the theoreticalimportance of the adjoint with respect to the study of theproperties of a given operator

In the second part of this course, I will try to hint at the practicalimportance of the adjoint problem

I hope to motivate going to the expense of actually computingsolutions of adjoint problems numerically

Donald Estep, Colorado State University – p. 68/196

Page 69: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Accurate Error Estimation

Donald Estep, Colorado State University – p. 69/196

Page 70: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Posteriori Error Analysis

Problem: Estimate the error in a quantity of interest computedusing a numerical solution of a differential equation

We assume that the quantity of information can be representedas a linear functional of the solution

We use the adjoint problem associated with the linear functional

Donald Estep, Colorado State University – p. 70/196

Page 71: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

What About Convergence Analysis?

Recall the standard a priori convergence result for an initialvalue problem

y = f(y), 0 < t,

y(0) = y0

Let Y ≈ y be an approximation associated with time step ∆t

A typical a priori bound is

‖Y − y‖L∞(0,t) ≤ C eLt ∆tp

dp+1y

dtp+1

L∞(0,t)

L is often large in practice, e.g. L ∼ 100 − 10000

It is typical for an a priori convergence bound to be orders ofmagnitude larger than the error

Donald Estep, Colorado State University – p. 71/196

Page 72: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Linear Algebra Problem

We compute a quantity of interest (u, ψ) from a solution of

Au = b

If U is an approximate solution, we estimate the error

(e, ψ) = (u− U,ψ)

We can compute the residual

R = AU − b

Using the adjoint problem A⊤φ = ψ, variational analysis gives

|(e, ψ)| = |(e,A⊤φ)| = |(Ae, φ)| = |(R,φ)|

We solve for φ numerically to compute the estimate

Donald Estep, Colorado State University – p. 72/196

Page 73: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Discretization by the Finite Element Method

We first consider: approximate u : Rn → R solving

Lu = f, x ∈ Ω,

u = 0, x ∈ ∂Ω,

where

L(D,x)u = −∇ · a(x)∇u+ b(x) · ∇u+ c(x)u(x),

• Ω ⊂ Rn, n = 1, 2, 3, is a convex polygonal domain

• a = (aij), where ai,j are continuous and there is a a0 > 0

such that v⊤av ≥ a0 for all v ∈ Rn \ 0 and x ∈ Ω

• b = (bi) where bi is continuous• c and f are continuous

Donald Estep, Colorado State University – p. 73/196

Page 74: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Discretization by the Finite Element Method

The variational formulation reads

Find u ∈ H10 (Ω) such that

A(u, v) = (a∇u,∇v) + (b · ∇u, v) + (cu, v) = (f, v)

for all v ∈ H10 (Ω)

H10 (Ω) is the space of L2(Ω) functions whose first derivatives are

in L2(Ω)

This says that the solution solves the “average” form of theproblem for a large number of weights v

Donald Estep, Colorado State University – p. 74/196

Page 75: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Discretization by the Finite Element Method

We construct a triangulation of Ω into simplices, or elements,such that boundary nodes of the triangulation lie on ∂Ω

Th denotes a simplex triangulation of Ω that is locallyquasi-uniform, i.e. no arbitrarily long, skinny triangles

hK denotes the length of the longest edge of K ∈ Th and h isthe mesh function with h(x) = hK for x ∈ K

We also use h to denote maxK hK

Donald Estep, Colorado State University – p. 75/196

Page 76: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Discretization by the Finite Element Method

U = 0

Th

KhK

Ω

Triangulation of the domain Ω

Donald Estep, Colorado State University – p. 76/196

Page 77: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Discretization by the Finite Element Method

Vh denotes the space of functions that are• continuous on Ω

• piecewise linear with respect to Th

• zero on the boundary

Vh ⊂ H10 (Ω), and for smooth functions, the error of interpolation

into Vh is O(h2) in ‖ ‖

DefinitionThe finite element method is:

Compute U ∈ Vh such that A(U, v) = (f, v) for all v ∈ Vh

This says that the finite element approximation solves the“average” form of the problem for a finite number of weights v

Donald Estep, Colorado State University – p. 77/196

Page 78: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An A Posteriori Analysis for a Finite Element Method

We assume that quantity of interest is the functional (u, ψ)

DefinitionThe generalized Green’s function φ solves the weak adjointproblem : Find φ ∈ H1

0 (Ω) such that

A∗(v, φ) = (∇v, a∇φ)−(v,div (bφ))+(v, cφ) = (v, ψ) for all v ∈ H10 (Ω),

corresponding to the adjoint problem L∗(D,x)φ = ψ

Donald Estep, Colorado State University – p. 78/196

Page 79: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An a posteriori analysis for a finite element method

We now estimate the error e = U − u:

(e , ψ) = (∇e , a ∇ϕ) - (e , div(bϕ)) + (e , cϕ)

= (a∇e , ∇ϕ) + (b • ∇e , ϕ) + (ce , ϕ)

= (a∇u , ∇ϕ) + (b • ∇u , ϕ) + (cu , ϕ)

- (a∇U , ∇ϕ) - (b • ∇U , ϕ) - (cU , ϕ)

= ( f , ϕ) - (a∇U , ∇ϕ) - (b • ∇U , ϕ) - (cU , ϕ)

( f , ϕ)

undo adjoint

Definition The weak residual of U is

R(U, v) = (f, v) − (a∇U,∇v) − (b · ∇U, v) − (cU, v), v ∈ H10 (Ω)

R(U, v) = 0 for v ∈ Vh but not for general v ∈ H10 (Ω)

Donald Estep, Colorado State University – p. 79/196

Page 80: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An A Posteriori Analysis for a Finite Element Method

Definitionπhφ denotes an approximation of φ in Vh

TheoremThe error in the quantity of interest computed from the finiteelement solution satisfies the error representation,

(e, ψ) = (f, φ− πhφ) − (a∇U,∇(φ− πhφ))

− (b · ∇U, φ− πhφ) − (cU, φ− πhφ),

where φ is the generalized Green’s function corresponding todata ψ.

Donald Estep, Colorado State University – p. 80/196

Page 81: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An A Posteriori Analysis for a Finite Element Method

We use the error representation by approximating φ using arelatively high order finite element method

For a second order elliptic problem, good results are obtainedusing the space V 2

h

Definition The approximate generalized Green’s functionΦ ∈ V 2

h solves

A∗(v,Φ) = (∇v, a∇Φ)−(v,div (bΦ))+(v, cΦ) = (v, ψ) for all v ∈ V 2h

The approximate error representation is

(e, ψ) ≈ (f,Φ − πhΦ) − (a∇U,∇(Φ − πhΦ))

− (b · ∇U,Φ − πhΦ) − (cU,Φ − πhΦ)

Donald Estep, Colorado State University – p. 81/196

Page 82: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An Estimate for an Oscillatory Elliptic Problem

Example

−∆u = 200 sin(10πx) sin(10πy), (x, y) ∈ Ω = [0, 1] × [0, 1],

u = 0, (x, y) ∈ ∂Ω

The solution is u = sin(10πx) sin(10πy)

Donald Estep, Colorado State University – p. 82/196

Page 83: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An Estimate for an Oscillatory Elliptic Problem

-1

1

0u

xy

The Solution u = sin(10πx) sin(10πy)The solution is highly oscillatory

Donald Estep, Colorado State University – p. 83/196

Page 84: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An Estimate for an Oscillatory Elliptic Problem

0.0 0.1 1.0 10.0 100.0

percent error

0

1

2

3

erro

r/es

tim

ate

Error/Estimate Ratios versus AccuracyWe hope for an error/estimate ratio of 1. Plotted are the ratios for finite element

approximations of different error. At the 100% side, we are using 5 × 5 - 9 × 9 meshes!

Generally, we want accurate error estimates on bad meshes.

Donald Estep, Colorado State University – p. 84/196

Page 85: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Posteriori Analysis for Evolution Problems

We write the numerical methods as space-time finite elementmethods solving a variational form of the problem

We define the weak residual as for the elliptic example above

The estimate has the form

∫ T

0(e, ψ) dt =

∫ T

0(space residual, space adjoint weight) dt

+

∫ T

0(time residual, time adjoint weight) dt

Donald Estep, Colorado State University – p. 85/196

Page 86: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An Estimate for Vinograd’s Problem

Example

u =

(

1 + 9 cos2(6t) − 6 sin(12t) −12 cos2(6t) − 4.5 sin(12t)

12 sin2(6t) − 4.5 sin(12t) 1 + 9 sin2(6t) + 6 sin(12t)

)

u,

u(0) = u0

The solution is known

Donald Estep, Colorado State University – p. 86/196

Page 87: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An Estimate for Vinograd’s Problem

-6000

-4000

-2000

0

2000

4000component 1

component 2

0 1 2 3 4

Time

So

luti

on

s

The Solution of Vinograd’s Problem

Donald Estep, Colorado State University – p. 87/196

Page 88: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An Estimate for Vinograd’s Problem

-6190

-2618

953

4525

0 5000 10000

component 1

component 2

Number of Steps

Est

imat

e

Pointwise Error at t=4

0 5000 100000.0

0.5

1.0

1.5

2.0component 1

component 2

Number of Steps

Err

or/

Est

imat

eResults for Decreasing Step Size

Donald Estep, Colorado State University – p. 88/196

Page 89: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An Estimate for Vinograd’s Problem

-2000

-1000

0

1000

0 4321Time

Est

imat

e

Pointwise Error with Time Step .005

component 1

component 2

0 40.0

0.5

1.0

1.5

2.0

321Time

Err

or/

Est

imat

e

component 1

component 2

Results for Increasing Time

Donald Estep, Colorado State University – p. 89/196

Page 90: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Posteriori Analysis for Nonlinear Problems

Recall that we linearize the equation for the error operator todefine an adjoint operator

Nominally, we need to know the true solution and theapproximation for the linearization

What is the effect of linearizing around the wrong trajectory?

This is a subtle issue of structural stability: do nearby solutionshave similar stability properties?

This depends on the information being computed and theproperties of the problem

We commonly expect this to be true: if it does not hold, there areserious problems in defining approximations!

Donald Estep, Colorado State University – p. 90/196

Page 91: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Estimates for the Lorenz Problem

Example We consider the chaotic Lorenz problem

u1 = −10u1 + 10u2,

u2 = 28u1 − u2 − u1u3, 0 < t,

u3 = −83u3 + u1u2,

u1(0) = −6.9742, u2(0) = −7.008, u3(0) = 25.1377

Donald Estep, Colorado State University – p. 91/196

Page 92: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Estimates for the Lorenz Problem

-20

-10

0

10

20

-40

-20

0

20

40

0

10

20

30

40

50

U1

U2

U3

The Numerical Solution for Tolerance .001

Donald Estep, Colorado State University – p. 92/196

Page 93: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Estimates for the Lorenz Problem

0 5 10 15 20 25 30

-40

-30

-20

-10

0

10

20

30

Time

Com

ponen

t E

rror

U1

U2

U3

Componentwise “Errors” Computed using Solutions withTolerances .001 and .0001

Donald Estep, Colorado State University – p. 93/196

Page 94: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Estimates for the Lorenz Problem

-0.02

0

0.02

0.04

0.06

0.08

0.1

0.12C

om

ponen

twis

e E

rror

Est

imat

e

Simulation Final Time

0 189

U1 U2 U3

Componentwise Point Error Estimates

Donald Estep, Colorado State University – p. 94/196

Page 95: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Estimates for the Lorenz Problem

0

0.2

0.4

0.6

0.8

1

1.2

1.4

Simulation Final Time

Co

mp

on

entw

ise

Err

or/

Est

imat

e

0 189

U1 U2 U3

Componentwise Error/Estimate Ratios

Donald Estep, Colorado State University – p. 95/196

Page 96: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

General Comments on A Posteriori Analysis

In general, deriving a useful a posteriori error estimate is a fourstep process

1. identify or approximate functionals that yield the quantitiesof interest and write down an appropriate adjoint problem

2. understand the sources of error

3. derive computable residuals (or approximations) to measurethose sources

4. derive an error representation using a suitable adjointweights for each residual

Donald Estep, Colorado State University – p. 96/196

Page 97: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

General Comments on A Posteriori Analysis

Typical sources of error include• space and time discretization (approximation of the solution

space)• use of quadrature to compute integrals in a variational

formulation (approximation of the differential operator)• solution error in solving any linear and nonlinear systems of

equations• model error• data and parameter error• operator decomposition

Different sources of error typically accumulate and propagate atdifferent rates

Donald Estep, Colorado State University – p. 97/196

Page 98: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Investigating Stability Properties of Solutions

Donald Estep, Colorado State University – p. 98/196

Page 99: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Adjoint and Stability

The solution of the adjoint problem scales local perturbations toglobal effects on a solution

The adjoint problem carries stability information about thequantity of interest computed from the solution

We can use the adjoint problem to investigate stability

Donald Estep, Colorado State University – p. 99/196

Page 100: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Condition Numbers and Stability Factors

The classic error bound for an approximate solution U of Au = bis

‖e‖ ≤ Cκ(A)‖R‖, R = AU − b

The condition number κ(A) = ‖A‖ ‖A−1‖ measures stability

κ(A) =1

distance from A to singular matrices

The a posteriori estimate |(e, ψ)| = |(R,φ)| yields

|(e, ψ)| ≤ ‖φ‖ ‖R‖

The stability factor ‖φ‖ is a weak condition number for thequantity of interest

We can obtain κ from ‖φ‖ by taking the sup over all ‖ψ‖ = 1

Donald Estep, Colorado State University – p. 100/196

Page 101: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Condition Numbers and Stability Factors

Example We consider the problem of computing (u, e1) fromthe solution of

Au = b

where A is a random 800 × 800 matrix

The condition number of A is 6.7 × 104

estimate of the error in the quantity of interest ≈ 1.0 × 10−15

a posteriori error bound for the quantity of interest ≈ 5.4 × 10−14

The traditional error bound for the error ≈ 3.5 × 10−5

Donald Estep, Colorado State University – p. 101/196

Page 102: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Condition of the Lorenz Problem

Example We consider the chaotic Lorenz problem

u1 = −10u1 + 10u2,

u2 = 28u1 − u2 − u1u3, 0 < t,

u3 = −83u3 + u1u2,

u1(0) = 1, u2(0) = 0, u3(0) = 0

Numerical solutions always become inaccurate pointwise aftersome time

Donald Estep, Colorado State University – p. 102/196

Page 103: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Condition of the Lorenz Problem

0

50

-10

30 -20

30

100% error at t=18

U3

0

50

-10

30 -20

30

2% error on [0,30]

U1

U2

U3

U1

U2

Accurate and Inaccurate Numerical Solutions

Donald Estep, Colorado State University – p. 103/196

Page 104: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Condition of the Lorenz Problem

×10-7

7.6

7

Res

idu

al

10 20t

1

106

10t

20

Sta

bil

ity

Fac

tor

The Residual and Stability Factor for the Inaccurate SolutionThe residual is small even when the error is large. In fact, this is a theorem: the residual

of a consistent discretization for a wide class of problems is small regardless of the size

of the error! This indicates the problems in trying to use the residual or “local error” for

adaptive error control. On the other hand, the size of the adjoint grows at an exponential

rate during a brief period at the time when the error becomes 100%.

Donald Estep, Colorado State University – p. 104/196

Page 105: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Condition of the Lorenz Problem

x-6 0 6

y

-6

0

6

Looking Down at Many SolutionsWe look straight down at many solutions. Solutions in the lower left are circulating around

one steady state, while solutions show in the upper right are circulating around another

steady state. Solutions going towards both steady states are close together in the yellow

region. The adjoint solution grows rapidly when a trajectory passes through there.

Donald Estep, Colorado State University – p. 105/196

Page 106: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adaptive Computation

Donald Estep, Colorado State University – p. 106/196

Page 107: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adaptive Computation

The possibility of accurate error estimation suggests thepossibility of optimizing discretizations

Unfortunately, cancellation of errors significantly complicates theoptimization problem

In fact, there is no good theory for adaptive control of error

There is good theory for adaptive control of error bounds

The standard approach is based on optimal control theory

The stability information in adjoint-based a posteriori errorestimates is useful for this

Donald Estep, Colorado State University – p. 107/196

Page 108: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Optimization Approach to Adaptivity

An abstract a posteriori error estimate has the form

|(e, ψ)| =∣

(

Residual,Adjoint Weight)∣

Given a tolerance TOL, a given discretization is refined if∣

(

Residual,Adjoint Weight)∣

∣ ≥ TOL

Refinement decisions are based on a bound consisting of a sumof element contributions

|(e, ψ)| ≤∑

elements K

(

Residual,Adjoint Weight)

K

where ( , )K is the inner product on K

The element contributions in the bound do not cancel

Donald Estep, Colorado State University – p. 108/196

Page 109: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Optimization Approach to Adaptivity

There is no cancellation of errors across elements in the bound,so optimization theory yields

Principle of Equidistribution: The optimal discretization is one inwhich the element contributions are equal

The adaptive strategy is to refine some of the elements with thelargest element contributions

The adjoint weighted residual approach is different thantraditional approaches because the element residuals arescaled by an adjoint weight, which measures how much error inthat element affects the solution on other elements

Donald Estep, Colorado State University – p. 109/196

Page 110: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Singularly Perturbed Convection Problem

Example

−∇ ·(

(.05 + tanh(10(x− 5)2 + 10(y − 1)2))∇u)

+

(

−100

0

)

· ∇u = 1, (x, y) ∈ Ω = [0, 10] × [0, 2],

u = 0, (x, y) ∈ ∂Ω

Donald Estep, Colorado State University – p. 110/196

Page 111: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Singularly Perturbed Convection Problem

Final Mesh for an Error of 4% in the Average Value (24,000Elements)

Donald Estep, Colorado State University – p. 111/196

Page 112: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Singularly Perturbed Convection Problem

Quantity of Interest is Average Error in a Patch

Donald Estep, Colorado State University – p. 112/196

Page 113: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Singularly Perturbed Convection Problem

1

Final Mesh for an Average Error in a Patch (7,300 Elements)

Donald Estep, Colorado State University – p. 113/196

Page 114: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Singularly Perturbed Convection Problem

Quantity of Interest is Average Error in a Patch

Donald Estep, Colorado State University – p. 114/196

Page 115: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Singularly Perturbed Convection Problem

^

Final Mesh for an Average Error in a Patch (7,300 Elements)The residuals of the approximation are large in the coarsely discretized region to the

right - but the adjoint weights are very small, so this region does not contribute

significantly to the error.

Donald Estep, Colorado State University – p. 115/196

Page 116: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Singularly Perturbed Convection Problem

Quantity of Interest is Average Error in a Patch

Donald Estep, Colorado State University – p. 116/196

Page 117: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Singularly Perturbed Convection Problem

Final Mesh for an Average Error in a Patch (3,500 Elements)

Donald Estep, Colorado State University – p. 117/196

Page 118: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Singularly Perturbed Convection Problem

21

0 02

46

8100

2

4

6x 10-4

yx

21

0 02

46

8100

2

4

6x 10-4

yx

Adjoint Solutions for the First and Last Patches

Donald Estep, Colorado State University – p. 118/196

Page 119: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Probability Approach to Adaptivity

We use a new approach to adaptivity that is probabilistic innature

To mark elements for refinement, we first decompose

E = (e, ψ) ≈∑

elements

elt. contrib.

=∑

positive contrib.′s

elt. contrib. +∑

negative contrib.′s

elt. contrib.

= E+ − E−

We apportion the number of elements N to be refined betweenthe positive and negative contributions as

N+ = NE+

E+ + E−, N− = N

E−

E+ + E−

Donald Estep, Colorado State University – p. 119/196

Page 120: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Probability Approach to Adaptivity

The goal is to balance the positive element contributions so theycancel to reach the tolerance

To select elements for refinement, we create a probabilitydensity function using the absolute element contributions andthe current steps sizes and then select randomly according tothis distribution

We may also sample so as to reduce the variance of theelement contributions

Donald Estep, Colorado State University – p. 120/196

Page 121: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Probabilistic Adaptivity for the Oregonator

Example We consider the Oregonator problem

y1 = 2(y2 − y1y2 + y1 − qy21) y1(0) = 1

y2 = 1s(−y2 − y1y2 + y3), y2(0) = 0,

y3 = w(y1 − y3), y3(0) = 0,

s = 77.27, w = .161, q = 8.375 × 10−6

We compute with TOL = 10−8 over time T = 50

Donald Estep, Colorado State University – p. 121/196

Page 122: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Probabilistic Adaptivity for the Oregonator

0.001

0.1

1

100

10000

1000000

2.5

4

7.6

1

12

.7

17

.7

22

.8

27

.9

33

38

43

.1

48

.2

Time

log

(Y)

Y1

Y2

Y3

Solution of the Oregonator problemThis problem is difficult because the solution has long periods of time on which little

happens punctuated by very rapid transients where the solution changes dramatically.

We plot the components in the region around one of the transient periods.

Donald Estep, Colorado State University – p. 122/196

Page 123: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Probabilistic Adaptivity for the Oregonator

Final Time Error Element Contributions

-1.5E-10

-5E-11

5E-11

1.5E-10

2.5E-102.

3

6.9

11.5

16.1

20.7

25.3

29.9

34.5

39.1

43.7

48.3

Con

trib

utio

n

Average Error Element Contributions

-1.5E-6

-0.5E-60

1.0E-6

2.0E-6

19.3

19.9

20.5

21

21.6

22.2

22.8

23.4

23.9

Time

Contr

ibuti

on

Time

Y1Y2Y3

Element contributions to the error: final time (left) and averageerror (right)

We see that the element contributions are largest in the brief transient periods.

Donald Estep, Colorado State University – p. 123/196

Page 124: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Probabilistic Adaptivity for the Oregonator

Using the classical dual-weighted optimal control approach toadaptivity requires 188,279 time steps

Using the probability approach requires 20108 time steps

0

0.001

0.002

0.003

0.004

0.005

0.006

0.0

1

9.8

2

19

.6

24

.6

32

.8

35

.5

38

.1

40

.6

44

.5

47

.9

Time

Len

gth

Donald Estep, Colorado State University – p. 124/196

Page 125: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Decomposition forMultiscale, Multiphysics Problems

Donald Estep, Colorado State University – p. 125/196

Page 126: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Analyzing the Effects of Operator Decomposition

In operator decomposition, the instantaneous interactionbetween different physics is discretized

This results in new sources of instability and error

We use duality, adjoints, and variational analysis in new ways toanalyze operator decomposition

• We estimate the error in the specific information passedbetween components

• We account for the fact that the adjoints to the originalproblem and an operator decomposition discretization arenot the same

Additional work is required to obtain computable estimates

Donald Estep, Colorado State University – p. 126/196

Page 127: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Decomposition for Elliptic Systems

−∆u1 = sin(4πx) sin(πy), x ∈ Ω

−∆u2 = b · ∇u1 = 0, x ∈ Ω,

u1 = u2 = 0, x ∈ ∂Ω,

b =2

π

(

25 sin(4πx)

sin(πx)

)

The quantities of interest are

u2(.25, .25) ≈ 〈δreg(.25, .25), u2〉

and the average value

Estimating the error requires auxiliary estimates of the error inthe information that is passed between components

Donald Estep, Colorado State University – p. 127/196

Page 128: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Decomposition for Elliptic Systems

We use uniformly fine meshes for both components

For the error in u(.25, .25)discretization contribution ≈ .0042

decomposition contribution ≈ .0006

00.2

0.40.6

0.81

0

0.5

1−1.5

−1

−0.5

0

0.5

1

00.2

0.40.6

0.81

0

0.5

1−0.8

−0.6

−0.4

−0.2

0

0.2

0.4

Solutions of components 1 and 2We see that the error in the transferred information is small but not significant.

Donald Estep, Colorado State University – p. 128/196

Page 129: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Decomposition for Elliptic Systems

We use uniformly fine meshes for both components

00.2

0.40.6

0.81

0

0.5

10

0.5

1

1.5

2

00.2

0.40.6

0.81

0

0.5

1−0.1

−0.05

0

0.05

0.1

0.15

0.2

Primary and decomposition-contribution adjoint solutionsThe adjoint solution for the functional on u2 is large due to the adjoint data (an

approximate delta function). The adjoint associated with the information transferred

between the components is large in the same region. This indicates that the accuracy of

u1 in this region impacts the accuracy of u2.

Donald Estep, Colorado State University – p. 129/196

Page 130: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Decomposition for Elliptic Systems

We adapt the mesh while ignoring the contributions to the errorfrom operator decomposition

For the average errordiscretization error ≈ .0001

decomposition contribution ≈ .2244

0 0.2 0.4 0.6 0.8 10

0.5

1−0.6

−0.4

−0.2

0

0.2

0.4

00.2

0.40.6

0.81

0

0.5

1−2

−1.5

−1

−0.5

0

0.5

U1 on a coarse mesh and the total error of U2

Independently adapting each component mesh makes the error worse!

Donald Estep, Colorado State University – p. 130/196

Page 131: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Decomposition for Elliptic Systems

We adapt the meshes for both components using the primaryerror representation for U2 and the secondary representation forU1 respectively

Transferring the gradient ∇U1 leads to increased sensitivity toerrors

00.2

0.40.6

0.81

0

0.5

1−1

−0.5

0

0.5

1

0 0.2 0.4 0.6 0.8 100.5

1−0.8

−0.6

−0.4

−0.2

0

0.2

0.4

0.6

0.8

Final refined solutions for components 1 and 2We actually refine the mesh for u1 more than the mesh for u2.

Donald Estep, Colorado State University – p. 131/196

Page 132: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Splitting for Reaction-Diffusion Equations

We consider the reaction-diffusion problem

dudt

= ∆u+ F (u), 0 < t,

u(0) = u0

The diffusion component ∆u induces stability and change overlong time scales

The reaction component F induces instability and change overshort time scales

Donald Estep, Colorado State University – p. 132/196

Page 133: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Splitting for Reaction-Diffusion Equations

t0

t1

t2

t3

t4

t5∆t

1∆t

2∆t

3∆t

4∆t

5 ...

On (tn−1, tn], we numerically solve

duR

dt= F (uR), tn−1 < t ≤ tn,

uR(tn−1) = uD(tn−1)

Then on (tn−1, tn], we numerically solve

duD

dt− ∆(uD), tn−1 < t ≤ tn,

uD(tn−1) = uR(tn)

The operator split approximation is u(tn) ≈ uD(tn)

Donald Estep, Colorado State University – p. 133/196

Page 134: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Splitting for Reaction-Diffusion Equations

U n-1

URn-1

URn

UDn-1 U

Dn U

n

Donald Estep, Colorado State University – p. 134/196

Page 135: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Splitting for Reaction-Diffusion Equations

To account for the fast reaction, we approximate ur using manytime steps inside each diffusion step

t0

t1

t2

t3

t4

t5

s1,0

s1,M

s2,0

s2,M

s3,0

s3,M

s4,0

s4,M

∆s1

∆t1

∆t2

∆t3

∆t4

∆t5

∆s2

∆s3

...

...

...

...

Diffusion Integration:

Reaction Integration:

Donald Estep, Colorado State University – p. 135/196

Page 136: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Splitting for Reaction-Diffusion Equations

The Brusselator problem

∂ui

∂t− 0.025 ∂2ui

∂x2 = fi(u1, u2) i = 1, 2

f1(u1, u2) = 0.6 − 2u1 + u21u2

f2(u1, u2) = 2u1 − u21u2

• Use a linear finite element method in space with 500elements

• Use a standard first order splitting scheme• Use Trapezoidal Rule with time step of .2 for the diffusion

and Backward Euler with time step of .004 for the reaction

Donald Estep, Colorado State University – p. 136/196

Page 137: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Splitting for Reaction-Diffusion Equations

10-3

10-2

10-1

100

101

10-5

10-4

10-3

10-2

10-1

100

∆t

L2 n

orm

of

erro

r

t = 6.4

t = 16

t = 32

t = 64

t = 80slo

pe 1

Spatial Location

Oper

ato

rSplit

Solu

tion

Instability in the Brusselator Operator SplittingOn the left we plot the error versus time step at different times. For large times, there is a

critical step size above which there is no convergence. On the right, we plot one of the

inaccurate solutions. The instability is a direct consequence of the discretization of the

operator splitting in time

Donald Estep, Colorado State University – p. 137/196

Page 138: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Splitting for Reaction-Diffusion Equations

We derive a new type of hybrid a priori - a posteriori estimate

(e(tN ), ψ) = Q1 + Q2 + Q3

• Q1 estimates the error of the numerical solution of eachcomponent

• Q2 ≈∑N

n=1(Un−1, En−1), E ≈ a computable estimate forthe error in the adjoint arising from operator splitting

• Q3 = O(∆t2) is an a priori expression that is provablyhigher order

Donald Estep, Colorado State University – p. 138/196

Page 139: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Splitting for Reaction-Diffusion Equations

Accuracy of the error estimate for the Brusselator example atT = 2

Component

Err

or

∆t = 0.01,M = 10

TimeE

rror

∆t = 0.01,M = 10

Donald Estep, Colorado State University – p. 139/196

Page 140: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Splitting for Reaction-Diffusion Equations

Accuracy of the error estimate for the Brusselator example atT = 8 (left) and T = 40 (right)

Component

Err

or

∆t = 0.01,M = 10

ComponentE

rror

∆t = 0.01,M = 10

Donald Estep, Colorado State University – p. 140/196

Page 141: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Decomposition for Conjugate Heat Transfer

Example A relatively cool solid object is immersed in the flow ofa hot fluid

−1 −0.5 0 0.5 1 1.5 2 2.5

−1

−0.5

0

0.5

1

1.5

The goal is to describe the temperature of the solid object

Donald Estep, Colorado State University – p. 141/196

Page 142: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Decomposition for Conjugate Heat Transfer

We use the Boussinesq equations for the fluid, coupled to theheat equation for the solid

We use application codes optimized for single physics

The solution of each component is sought independently usingdata obtained from the solution of the other component

On the boundary of the object, Neumann conditions are passedfrom the solid to the fluid, and Dirichlet conditions are passedfrom the fluid to the solid

Donald Estep, Colorado State University – p. 142/196

Page 143: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Operator Decomposition for Conjugate Heat Transfer

Passing derivative information in the Neumann boundarycondition causes a loss of order

This error can be estimated accurately using an adjointcomputation

We devise an inexpensive postprocessing technique forcomputing the transferred information accurately

We recover the full order of convergence

Donald Estep, Colorado State University – p. 143/196

Page 144: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Analysis of Model Sensitivity

Donald Estep, Colorado State University – p. 144/196

Page 145: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Kernel Density Estimation

F is a nonlinear operator:

Space of data and parameters −→F

Space of outputs

Assume that the data and/or the parameters are unknown withina given range and/or subject to random or unknown variation

Problem: determine the effect of the uncertainty or variation onthe output of the operator

We consider the input to be a random vector associated with aprobability distribution

The output of the model is random vector associated with a newdistribution

Donald Estep, Colorado State University – p. 145/196

Page 146: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Monte-Carlo Method

The Monte-Carlo method is the standard technique for solvingthis problem

The model is solved for many samples drawn from the inputspace according to its distribution

The Monte-Carlo method has robust convergence propertiesand is easy to implement on scalar and parallel computers

However, the Monte-Carlo method may be expensive because itconverges very slowly

Donald Estep, Colorado State University – p. 146/196

Page 147: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Finite-Dimensional Problem

We determine the distribution of a linear functional (x, ψ) giventhe random vector λ ∈ R

d, where x satisfies

f(x;λ) = b

Assuming λ is distributed near a sample value µ, we solve

f(y;µ) = b

With A = Dxf(y;µ), the adjoint problem is

ATφ = ψ,

Applying Taylor’s theorem to the representation formula yields

〈x, ψ〉 ≈ 〈y, ψ〉 −⟨

Dλf(y;µ)(λ − µ), φ⟩

Donald Estep, Colorado State University – p. 147/196

Page 148: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Using the Adjoint Problem

If λ− µ is a random vector then⟨

Dλf(y;µ)(λ − µ), φ⟩

is a newrandom variable

We can use this information to speed up random sampling inseveral ways

For example, we compute an error estimate for the constantapproximation generated from the sample point and adaptivelysample (Fast Adaptive Parameter Sampling (FAPS)) Method

Note that we adapt the sample according to the outputdistribution rather than the input distribution!

Donald Estep, Colorado State University – p. 148/196

Page 149: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Predator Prey Example

Example We model a prey u with a logistic birth/death processconsumed by predator v

∂tv − δ∆v = λ1v h(u;λ2) − λ3v, Ω × (0, T ],

∂tu− δ∆u = λ4u(1 − uλ5

) − λ6v h(u;λ2),

∂nv = ∂nu = 0, ∂Ω × (0, T ],

v = v0, u = u0, Ω × 0

The (Holling II) functional response h(u) = h(u;λ2) satisfies

• h(0) = 0

• limx→∞ h(x) = 1

• h is strictly increasing

Donald Estep, Colorado State University – p. 149/196

Page 150: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Predator Prey Reference Parameter Values

We assume a (truncated) normal distribution in the region

Description Name Mean Perturbation

encounter gain µ1 1 ±50%

response gain µ2 10.1 ±50%

predator death rate µ3 1 ±50%

prey growth rate µ4 5 ±50%

prey carrying capacity µ5 1 ±50%

encounter loss µ6 1 ±50%

We use the L1 norm of the prey population at t = 10 as thequantity of interest (ψ = δ(t− 10)(0, 1)⊤)

We use a 12400 point Monte-Carlo computation as a reference

Donald Estep, Colorado State University – p. 150/196

Page 151: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Evolution of the Solution

We show a few snapshots in time of the predator (left) and prey(right). Warmer colors mean higher density.

Donald Estep, Colorado State University – p. 151/196

Page 152: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Evolution of the Solution

We show a few snapshots in time of the predator (left) and prey(right). Warmer colors mean higher density.

Donald Estep, Colorado State University – p. 152/196

Page 153: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Evolution of the Solution

We show a few snapshots in time of the predator (left) and prey(right). Warmer colors mean higher density.

Donald Estep, Colorado State University – p. 153/196

Page 154: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Evolution of the Solution

We show a few snapshots in time of the predator (left) and prey(right). Warmer colors mean higher density.

Donald Estep, Colorado State University – p. 154/196

Page 155: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Evolution of the Solution

We show a few snapshots in time of the predator (left) and prey(right). Warmer colors mean higher density.

Donald Estep, Colorado State University – p. 155/196

Page 156: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Predator Prey Results (Cumulative Density)

0 4 8 12 16 200

.2

.4

.6

.8

1

Monte-Carlo (12400)FAPS (19)FAPS (41)FAPS (1001)

Cum

ula

tive

Den

siti

es

q(λ)

Donald Estep, Colorado State University – p. 156/196

Page 157: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Predator Prey Results (Dimension Reduction)

0.5

1

1.5µ5

2

4

6

8µ4

0.5

1

1.5µ3

1

1.5

2µ6

0 200 400 6000

1

2

3µ1

0 200 400 6005

10

15µ2

Sequence of Samples Sequence of Samples

Cen

ters

of

Sam

ple

s

Samples used for each parameterThe gradient can be used to determine which parameters do not contribute significantly,

leading to dimension reduction.

Donald Estep, Colorado State University – p. 157/196

Page 158: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adaptive Error Control for Kernel Density Estimation

Solving the kernel density estimation problem requires solvingthe problem for a variety of data and parameter values

The corresponding solutions can exhibit a variety of behaviors

It is important to control the numerical errors so that they do notbias the analysis results

Donald Estep, Colorado State University – p. 158/196

Page 159: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adaptive Error Control for Kernel Density Estimation

Example We consider the chaotic Lorenz problem

u1 = −10u1 + 10u2,

u2 = λu1 − u2 − u1u3, 0 < t,

u3 = −83u3 + u1u2,

u1(0) = −6.9742, u2(0) = −7.008, u3(0) = 25.1377

We vary λ ∼ Unif [25, 31]

We use 1000 point Monte-Carlo sampling with both a fixed timestep computation and an adaptive computation with errorsmaller than 10−5

Donald Estep, Colorado State University – p. 159/196

Page 160: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adaptive Error Control for Kernel Density Estimation

25 26 27 28 29 30 31-0.07

-0.06

-0.05

-0.04

-0.03

-0.02

-0.01

0.00

Error

Numerical error versus parameter for a fixed time step

Donald Estep, Colorado State University – p. 160/196

Page 161: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adaptive Error Control for Kernel Density Estimation

0 0.01 0.03 0.05 0.070

100

200

300Solutions with fixed time steps

λ

The distribution for the quantity of interest using a fixed time step

Donald Estep, Colorado State University – p. 161/196

Page 162: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adaptive Error Control for Kernel Density Estimation

−11 −9 −7 −50

50

100

150Solutions with error less than .00001

λ

The distribution for the quantity of interest using adapted timesteps

Donald Estep, Colorado State University – p. 162/196

Page 163: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adaptive Error Control for Kernel Density Estimation

−12 −10 −8 −6 −4 −2 00

200

400

600

800

1000

fixed step

adapted step

Both distributions

Donald Estep, Colorado State University – p. 163/196

Page 164: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Comments on Model Sensitivity Analysis and Adjoints

In general, the adjoint solution provides an efficient way toapproximate

∇parameter quantity of interest

This is one reason that adjoints are natural for analysis of modelsensitivity and in optimization problems

A posteriori analysis represents the effects of randomperturbation in terms of a convolution with the adjoint solution

This provides a way to include both deterministic andprobabilistic representations of uncertainty in the same analysisframework

Donald Estep, Colorado State University – p. 164/196

Page 165: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Parameter Optimization for an Elliptic Problem

Donald Estep, Colorado State University – p. 165/196

Page 166: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

An Elliptic Problem with Parameter

We solve the elliptic problem

−∇ · (a(x)∇u) = f(u, x;λ), x ∈ Ω, λ ∈ Λ,

u = 0, x ∈ ∂Ω.

Search for λ ∈ Λ that optimizes a linear functional

q(u(λ)) = (u, ψ) =

Ωu(x;λ)ψ(x) dx

We use a conjugate gradient method using the Hestenes-Stiefelformula and the secant method for the line search

λ∼

λq(u(λ))

q(u(λ))

λ

old new

Donald Estep, Colorado State University – p. 166/196

Page 167: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

The Role of the Adjoint Problem

We optimizeq(u(λ)) = (u(λ), ψ)

φ solves the linearized adjoint problem

−∇ · (a(x)∇φ) −D∗uf(u;λ)φ = ψ, x ∈ Ω,

u = 0, x ∈ ∂Ω.

D∗uf is the adjoint of the Jacobian of f

The gradient formula at λ ∈ Λ

∇λq(u; λ) · (λ− λ) ≈(

∇λf(u; λ) · (λ− λ), φ)

u and φ solutions for parameter value λ

Donald Estep, Colorado State University – p. 167/196

Page 168: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Numerical Approximations

Standard finite element approximation: compute U ∈ Vh

(a∇U,∇v) = (f(U), v) for all v ∈ Vh

Vh is the standard space associated with a triangulation of Ω

Using U affects both

q(u(λ)) → q(U(λ))

∇λq(u(λ)) → ∇λq(U(λ))

We need to control the errors in the value and the gradient usedfor the search

Donald Estep, Colorado State University – p. 168/196

Page 169: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Posteriori Estimate of Numerical Error

The a posteriori estimate is

error in q(U) ≈ (a∇U,∇(φ− πhφ)) − (f(U), φ− πhφ)

The true value of the gradient can be estimated as

∇λq(u; λ) · (λ− λ) ≈(

∇λf(U ; λ) · (λ− λ), φ)

+R(U, φ) −R(U, φ)

This is the computable correction for the effects of numericalapproximation

This expression reflects the change in stability arising from thechange in parameter value

If we control this error, we can prove that the search leads to aminimum

Donald Estep, Colorado State University – p. 169/196

Page 170: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Adaptive Error Control

The a posteriori estimate has the form

|error in q(U)| ≈

elements

element contribution

The corresponding bound on the error in the gradient has theform

|error in ∇λq(U)| ≤∑

elements

∣change in element contribution∣

We alter the adaptive strategy accordingly

Donald Estep, Colorado State University – p. 170/196

Page 171: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Optimization Example

We optimize (u, 1) where u solves

−u′′ = u2 + tanh2(

20eλ1(1−λ1)(x− eλ2(1−λ2)−1))

cos2(π2x), [−1, 1],

u(−1) = u(1) = 0

−2 −1 0 1 2 3 4−1

0

1

2

3

4−1

0

λ1

λ2

The quantity of interest

Donald Estep, Colorado State University – p. 171/196

Page 172: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Optimization Example: Meshes

−1 −0.5 0 0.5 1

17

1

9

Sea

rch I

tera

tions

The sequence of meshesThe meshes for each search step are plotted vertically. The meshes are refined to

control the error in the gradients. The refinement typically affects a small number of

elements in each step.

Donald Estep, Colorado State University – p. 172/196

Page 173: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Domain Decomposition

Donald Estep, Colorado State University – p. 173/196

Page 174: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Stability in Elliptic Problems

A characteristic of elliptic problems is a global domain ofinfluence

A local perturbation of data near one point affects a solution uthroughout the domain of the problem

However in many cases, the strength of the effect of aperturbation on a point value of a solution decays significantlywith the distance to the support of the perturbation

The effective domain of influence for a functional of the solutionis reflected in the graph of the adjoint solution

Donald Estep, Colorado State University – p. 174/196

Page 175: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Decomposition of the Solution

The effective domain of influence of a particular functional willnot be local unless the data for the adjoint problem has localsupport

We use a partition of unity to “localize” a problem in whichsupp (ψ) does not have local support

Corresponding to a partition of unity pi,Ωi, ψ ≡∑N

i=1 ψpi,

DefinitionThe quantities (U,ψpi) corresponding to the data ψi = ψpiare called the localized information corresponding to thepartition of unity

We consider the problem of estimating the error in the localizedinformation for 1 ≤ i ≤ N

Donald Estep, Colorado State University – p. 175/196

Page 176: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Decomposition of the Solution

We obtain a finite element solution via:

Compute Ui ∈ Vi such that A(Ui, v) = (f, v) for all v ∈ Vi,

where Vi is a space of continuous, piecewise linear functions ona locally quasi-uniform simplex triangulation Ti of Ω obtained bylocal refinement of an initial coarse triangulation T0 of Ω

Vi is globally defined and the “localized” problem is solvedover the entire domain

We hope that this will require a locally refined mesh because thecorresponding data has localized support

Donald Estep, Colorado State University – p. 176/196

Page 177: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Decomposition of the Solution

A partition of unity approximation in the sense of Babuška andMelenk uses Ui = χiUi, 1 ≤ i ≤ N , where χi is the characteristicfunction of Ωi

The local approximation Ui is in the local finite element spaceVi = χiVi

DefinitionThe partition of unity approximation is defined byUp =

∑Ni=1 Uipi, which is in the fpartition of unity finite element

space

Vp =

N∑

i=1

Vipi =

N∑

i=1

vipi : vi ∈ Vi

Donald Estep, Colorado State University – p. 177/196

Page 178: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

A Decomposition of the Solution

We use the generalized Green’s function satisfying the adjointproblem:

Find φi ∈ H10 (Ω) such that A∗(v, φi) = (v, ψi) for all v ∈ H1

0 (Ω).

Letting πiφi denote an approximation of φi in Vi,

Theorem The error of the partition of unity finite elementsolution satisfies

(u− Up, ψ) =N∑

i=1

(

(f, φi − πiφi) − (a∇Ui,∇(φi − πiφi))

− (b · ∇Ui, φi − πiφi) − (cUi, φi − πiφi))

Donald Estep, Colorado State University – p. 178/196

Page 179: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Computation of Multiple Quantities of Interest

We present an algorithm for computing multiple quantities ofinterest efficiently using knowledge of the effective domains ofinfluence of the corresponding Green’s functions

We assume that the information is specified as (U,ψi)Ni=1 for a

set of N functions ψiNi=1

Two approaches:

Approach 1: A Global ComputationFind one triangulation such that the corresponding finiteelement solution satisfies |(e, ψi)| ≤ TOLi, for 1 ≤ i ≤ N

Approach 2: A Decomposed ComputationFind N independent triangulations and finite elementsolutions Ui so that the errors satisfy |(ei, ψi)| ≤ TOLi, for1 ≤ i ≤ N

Donald Estep, Colorado State University – p. 179/196

Page 180: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Computation of Multiple Quantities of Interest

If the correlation between the effective domains of influenceassociated to the N data ψi is relatively small, then eachindividual solution in the Decomposed Computation will requiresignificantly fewer elements than the solution in the GlobalComputation to achieve the desired accuracy

This can yield significant computational advantage in terms oflowering the maximum memory requirement to solve theproblem

We optimize resources by combining localized computationswhose domains of influence are significantly correlated

Donald Estep, Colorado State University – p. 180/196

Page 181: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Domain Decomposition Example

Consider once again

−∇ ·((

.05 + tanh(

10(x− 5)2 + 10(y − 1)2))

∇u)

+

(

−100

0

)

· ∇u = 1, (x, y) ∈ Ω,

u(x, y) = 0, (x, y) ∈ ∂Ω,

where Ω = [0, 10] × [0, 2]

Donald Estep, Colorado State University – p. 181/196

Page 182: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Domain Decomposition Example

We use an initial mesh of 80 elements and an error tolerance ofTOL = .04% for the average error over Ω

Level Elements Estimate1 80 −.0005919

2 193 −.001595

3 394 −.0009039

4 828 −.0003820

5 1809 −.0001070

6 3849 −.00004073

7 9380 −.00001715

8 23989 −.000007553

Donald Estep, Colorado State University – p. 182/196

Page 183: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Domain Decomposition Example

Final Mesh for an Error of 4% in the Average Value (24,000Elements)

Donald Estep, Colorado State University – p. 183/196

Page 184: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Domain Decomposition Example

1 2 3 4 5 6 7 8 9 10

11 12 13 14 15 16 17 18 19 20

Domains for the partition of unity

Donald Estep, Colorado State University – p. 184/196

Page 185: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Domain Decomposition Example

Significant Correlations:Ω3 with Ω4 Ω6 with Ω7 Ω7 with Ω6 Ω9 with Ω8 Ω10 with Ω8, Ω9

Ω13 with Ω14 Ω16 with Ω17 Ω17 with Ω16 Ω19 with Ω18 Ω20 with Ω18, Ω19

There are no significant correlations in the “cross-wind” direction

Donald Estep, Colorado State University – p. 185/196

Page 186: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Domain Decomposition Example

Data TOL Level Elements Estimateψ1 .04% 7 7334 −6.927 × 10−7

ψ2 .04% 7 8409 −5.986 × 10−7

ψ3 .04% 7 7839 −5.189 × 10−7

ψ4 .04% 7 7177 −5.306 × 10−7

ψ5 .04% 7 7301 −4.008 × 10−7

ψ6 .02% 7 6613 −2.471 × 10−7

ψ7 .02% 7 4396 −2.938 × 10−7

ψ8 .02% 7 4248 −1.656 × 10−7

ψ9 .02% 7 3506 −1.221 × 10−7

ψ10 .02% 7 1963 −5.550 × 10−8

Donald Estep, Colorado State University – p. 186/196

Page 187: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Domain Decomposition Example

1

^Final Mesh for an Average Error in a two Patches

Donald Estep, Colorado State University – p. 187/196

Page 188: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Domain Decomposition Example

The global computation uses roughly 3 times the number ofelements of the largest individual computation in thedecomposed computation

In a high performance computing environment, the cost ofsolution typically scales superlinearly with memory usage

There is a much greater effect of decay of influence on complexgeometry, e.g. with “holes”, interior corners, and so on

Donald Estep, Colorado State University – p. 188/196

Page 189: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Work in Progress

Donald Estep, Colorado State University – p. 189/196

Page 190: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

Applications Not Discussed

• Analysis of operator decomposition for coupling stochasticmodels, e.g. molecular dynamics, to continuum models

• Determining the range of acceptable error on parametersand data in order to compute a quantity of interest to anacceptable accuracy

• Error estimates for operator decomposition for multiphysicsproblems with “black box” components

• Data assimilation and model calibration under uncertainty

• Parallel space-time adaptive integration and compensateddomain decomposition

Donald Estep, Colorado State University – p. 190/196

Page 191: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

References

Donald Estep, Colorado State University – p. 191/196

Page 192: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

References

These references are a starting point for further investigation

• Ainsworth, M. and J. T. Oden, A Posteriori Error Estimation In Finite ElementAnalysis, Pure and Applied Mathematics Series, 2000, Wiley-Interscience, 2000.

• Babuska, I. and T. Strouboulis, The Finite Element Method and its Reliability, 2001,Oxford University Press: New York.

• W. Bangerth and R. Rannacher, Adaptive Finite Element Methods for DifferentialEquations, 2003. Birkhauser Verlag: New York.

• Becker, R. and R. Rannacher, An Optimal Control Approach to A Posteriori ErrorEstimation in Finite Element Methods, Acta Numerica, 2001. p. 1-102.

• Braack, M. and A. Ern, A Posteriori Control Of Modeling Errors And DiscretizationErrors, SIAM J. Multiscale Modeling and Simulation, 2003. 1, p. 221-238.

• Cacuci, D.G., Sensitivity and Uncertainty Analysis I. Theory, 2003, Chapman andHall: Boca Raton, Florida.

• Cacuci, D.G., M. Ionescu-Bujor, and I. M. Navon, Sensitivity and UncertaintyAnalysis. II. Applications to Large Scale Systems, 2005, Chapman and Hall: BocaRaton, Florida.

Donald Estep, Colorado State University – p. 192/196

Page 193: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

References

• Carey, V., D. Estep, and S. Tavener, A Posteriori Analysis and Adaptive ErrorControl for Operator Decomposition Methods for Elliptic Systems I: One WayCoupled Systems, submitted to SIAM Journal on Numerical Analysis, 2007.

• Carey, V., D. Estep, and S. Tavener, A Posteriori Analysis and Adaptive ErrorControl for Operator Decomposition Methods for Elliptic Systems II: Fully CoupledSystems, in preparation.

• Eriksson, K., D. Estep, P. Hansbo and C. Johnson, Introduction To AdaptiveMethods For Differential Equations, Acta Numerica, 1995. p. 105-158.

• Eriksson, K., D. Estep, P. Hansbo and C. Johnson, Computational DifferentialEquations, 1996, Cambridge University Press: New York.

• Estep, D., A Short Course on Duality, Adjoint Operators, Green’s Functions, and APosteriori Error Analysis, Sandia National Laboratories, Albuquerque, New Mexico,2004. Notes can be downloaded from http://math.colostate.edu/˜estep

• Estep, D., M. G. Larson, and R. D. Williams, Estimating The Error Of NumericalSolutions Of Systems Of Reaction-Diffusion Equations, Memoirs of the AmericanMathematical Society, 2000. 146, p. 1-109.

Donald Estep, Colorado State University – p. 193/196

Page 194: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

References

• Estep, D. and D. Neckels, Fast And Reliable Methods For Determining TheEvolution Of Uncertain Parameters In Differential Equations, Journal onComputational Physics, 2006. 213, p. 530-556.

• Estep, D. and D. Neckels, Fast Methods For Determining The Evolution OfUncertain Parameters In Reaction-Diffusion Equations, to appear in ComputerMethods in Applied Mechanics and Engineering, 2006.

• Estep, D., V. Ginting, D. Ropp, J. Shadid and S. Tavener, An A Posteriori Analysisof Operator Splitting, submitted to SIAM Journal on Numerical Analysis, 2007.

• Estep, D., M. Holst and M. Larson, Generalized Green’s Functions And TheEffective Domain Of Influence, SIAM Journal on Scientific Computing, 2005. 26, p.1314-1339.

• Estep, D., A. Malqvist, and S. Tavener, A Posteriori Analysis For Elliptic ProblemsWith Randomly Perturbed Data And Coefficients, in preparation

• Estep, D., A. Malqvist, and S. Tavener, Adaptive Computation For Elliptic ProblemsWith Randomly Perturbed Data And Coefficients, in preparation

Donald Estep, Colorado State University – p. 194/196

Page 195: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

References

• Estep, D., S. Tavener and T. Wildey, A Posteriori Analysis and Improved Accuracyfor an Operator Decomposition Solution of a Conjugate Heat Transfer Problem,submitted to SIAM Journal on Numerical Analysis, 2006.

• Giles, M. and E. Suli, Adjoint Methods for PDEs: A Posteriori Error Analysis AndPostprocessing By Duality, 2002. Acta Numerica, p. 145-236.

• Hundsdorfer, W. and Verwer, J., Numerical solution of time-dependentadvection-diffusion-reaction equations, Springer Series in ComputationalMathematics, 2003. Springer-Verlag: New York.

• Lanczos, C., Linear Differential Operators, 1996. SIAM: Philadelphia.

• Marchuk, G.I., Splitting and Alternating Direction Methods, in Handbook ofNumerical Analysis, 1990, P. G. Ciarlet and J. L. Lions, editors. North-Holland:New York, p. 197-462.

• Marchuk, G.I., Adjoint Equations and Analysis of Complex Systems, 1995. Kluwer:Boston.

• Marchuk, G.I., V. I. Agoshkov, and V. Shutyaev, Adjoint Equations And PerturbationAlgorithms In Nonlinear Problems, 1996. CRC Press: Boca Raton, Florida.

Donald Estep, Colorado State University – p. 195/196

Page 196: Duality, Adjoint Operators, and Uncertainty in a Complex Worldestep/assets/montrealcourse.pdfDuality, Adjoint Operators, and Uncertainty in a Complex World Donald Estep Department

References

• Oden, J.T. and Prudhomee, S., Estimation of Modeling Error in ComputationalMechanics, Journal on Computational Physics, 2002. 182, p. 496-515.

Donald Estep, Colorado State University – p. 196/196