Jump to content

Introduction to Mathematical Physics/Some mathematical problems and their solution/Boundary problems, variational methods

Variational formulation

[edit | edit source]

secvafor

Let us consider a boundary problem:

Problem:

Find u∈U such that:

eqLufva

Lu(x)=f(x)∀x∈Ω
u(x)=g(x)∀x∈∂Γ

Let us suppose that there is a unique solution u of this problem. For a functional space V sufficiently large the previous problem, may be equivalent to the following:

Problem:

Let us consider the following boundary problem:

Find u∈U such that:

eqvari

∀v∈V,<v|Lu>=<v|f>

This is the variational form of the boundary problem. To obtain the equality eqvari, we have just multiplied by a "test function" <v| equation eqLufva. A "weak form" of this problem can be found using Green formula type formulas: the solution space is taken larger and as a counterpart, the test functions space is taken smaller. let us illustrate those ideas on a simple example:

Example:

Find u in U=C2 such that:

−Δu=f,∀x∈Ω
u=g,∀x∈∂Ω

The variational formulation is: Find u in U=C2 such that:

∀v∈V1,−∫vΔudx=∫vfdx

Using the Green equality (see appendix secappendgreeneq)\index{Green formula} and the boundary conditions we can reformulate the problem in: find u∈V, such that:

∀v∈V∫∂iv∂iudx=∫vfdx

One can show that this problem has a unique solution in V=H01(Ω) where

H1(Ω)={v∈L2(Ω);∂iv∈L2(Ω),1≤i≤n}

is the Sobolev space of order 1 on Ω and H01(Ω) is the adherence of H1(Ω) in the space 𝒟(Ω) (space of infinitely differentiable functions on Ω, with compact support in Ω).

It may be that, as for the previous example, the solution function space and the test function space are the same. This is the case for most of linear operators L encountered in physics. In this case, one can associate to L a bilinear form a. The (weak) variational problem is thus:

provari2

Problem:

Find u∈V such that

∀v∈V,a(u,v)=L(v).

Example:

In this previous example, the bilinear form is:

a(u,v)=∫Ω∂iu(x)∂iv(x)dx.


There exist theorems (Lax-Milgram theorem for instance) that prove the existence and uniqueness of the solution of the previous problem provari2 , under certain conditions on the bilinear form a(u,v).

Finite elements approximation

[edit | edit source]

secvarinum


Let us consider the problem provari2 :

Problem:

Find u∈V such that:

∀v∈V,a(u,v)=L(v)

The method of approximation consists of choosing a finite dimensional subspace Vh of V and the problem to solve becomes:

provari3

Problem: Find uh∈Vh such that

∀vh∈Vh,a(uh,vh)=L(vh)


A basis of {vhi} of Vh is chosen to satisfy boundary conditions. The problem is reduced to finding the components of uh:

uh=∑i<vhi|uh>vhi

If a is a bilinear form

a(uh,vhi)=∑j<vhi|uh>a(vhj,vhi),

and to find the coefficients <vhi|uh>, the problem is reduced to solving a linear system (often close to a diagonal system) that can be solved by classical algorithms ([ma:equad:Ciarlet88],[ma:compu:Press92]) which can be direct methods (Gauss,Cholesky) or iterative (Jacobi, Gauss-Seidel, relaxation). Note that if the vectors of the basis of Vh are eigenvectors of L, then the solving of the system is immediate (diagonal system). This is the basis of the spectral methods for solving evolution problems. If a is not linear, we have to solve a nonlinear system. Let us give an example of a basis {vhi}.

Example:

When V=L2([0,1]), an example of Vh that can be chosen ([ma:equad:Ciarlet88]) is the set of piecewise-linear continuous functions that are zero in x=0 and x=1 (for Dirichlet boundary conditions). More precisely, L2[0,1] can be approximated by the space of piecewise linear continuous functions on intervals [i/n,(i+1)/n], i going from zero to n−1, that are zero in x=0 and x=1. The basis of such a space is made by functions (vhi),i∈(1,…,n−1) defined by:

vhi(x)=i−1n+nx in [(i−1)/n,i/n]
vhi(x)=in−nx in [i/n,(i+1)/n]

and zero anywhere else (see figure figapproxesp).

figapproxesp

Space L2[0,1] can be approximated by piecewise linear continuous functions.

Finite difference approximation

[edit | edit source]

Finite difference method is one of the most basic methods to tackle PDE problems. It is not strictly speaking a variational approximation. It is rather a sort of variational method where weight functions wk are Dirac functions δk. Indeed, when considering the boundary problem,

eqfini

Lu=f for x∈Ω

instead of looking for an approximate solution uh which can be decomposed on a basis of weight functions wk:

uh=∑k<wk|uh>wk,

the action of L on u is directly expressed in terms of Dirac functions, as well as the right hand term of equation eqfini:

eqfini2

∑(Lu)ikδk=∑fkδk

\begin{rem} If L contains derivatives, the following formulas are used : right formula, order 1:

Δxdudx=∑(ui+1−ui)δi
Δx2d2udx2=∑(ui+1−2ui+ui+1)δi

right formula order 2:

2Δxdudx=∑(−ui+2+4ui+1−3ui)δi
Δx2d2udx2=∑(−ui+3+4ui+2−5ui+1+2ui)δi

Left formulas can be written in a similar way. Centered formulas, second order are:

2Δxdudx=∑(ui+1−ui−1)δi
Δx2d2udx2=∑(ui+1−2ui+ui−1)δi

Centered formulas, fourth order are:

12Δxdudx=∑(−ui+2+8ui+1−8ui−1+ui−2)δi
12Δx2d2udx2=∑(−ui+2+16ui+1−30ui+16ui−1−ui−2)δi

\end{rem} One can show that the equation eqfini2 is equivalent to the system of equations:

eqfini3

∑i(Lu)ik=fk

One can see immediately that equation eqfini2 implies equation eqfini3 in choosing "test" functions vi of support [xi−1/2,xi+1/2] and such that vi(xi)=1.

Minimization problems

[edit | edit source]

A minimization problem can be written as follows:

promini

Problem: Let V a functional space, a J(u) a functional. Find u∈V, such that:

J(u)=minv∈VJ(v)

The solving of minimization problems depends first on the nature of the functional J and on the space V. As usual, the functional J(u) is often approximated by a function of several variables J(u1,…,uN) where the ui's are the coordinate of u in some base Ei that approximates V. The methods to solve minimization problems can be classified into two categories: One can distinguish problems without constraints (see Fig. figcontraintesans) and problems with constraints (see Fig. figcontrainteavec). Minimization problems without constraints can be tackled theoretically by the study of the zeros of the differential function dF(u) if exists. Numerically it can be less expensive to use dedicated methods. There are methods that don't use derivatives of F (downhill simplex method, direction-set method) and methods that use derivative of F (conjugate gradient method, quasi-Newton methods). Details are given in ([ma:compu:Press92]). Problems with constraints reduce the functional space U to a set V of functions that satisfy some additional conditions. Note that those sets V are not vectorial spaces: a linear combination of vectors of V are not always in V. Let us give some example of constraints: Let U a functional space. Consider the space

V={v∈U,ϕi(v)=0,i∈1,…,n}

where ϕi(v) are n functionals. This is a first example of constraints. It can be solved theoretically by using Lagrange multipliers ([ma:equad:Ciarlet88]), \index{constraint}. A second example of constraints is given by

V={v∈U,ϕi(v)≤0,i∈1,…,n}v

where ϕi(v) are n functionals. The linear programming (see example exmplinepro) problem is an example of minimization problem with such constraints (in fact a mixing of equalities and inequalities constraints).

figcontraintesans

Minimization of a function of two variables.

figcontrainteavec]]

Minimization of a function of two variables with constraints. Here, the space is reduced to a disk in the plane u1,u2.

figcontrainteaveclag

Illustration of the Lagrange multiplier. At point A tangent vector on the surface and on the constraint curve are not parallel: A does not correspond to an extremum. At point B both tangent vector are colinear: we have an extremum.

Example:

Let us consider of a first class of functional J that are important for PDE problems. Consider again the bilinear form introduced at section secvafor. If this bilinear form a(u,v) is symmetrical, {\it i.e.}

∀u∈V,∀v∈V,a(u,v)=a(v,u).

the problem can be written as a minimization problem by introducing the functional:

J(v)=12a(v,v)−L(v)

One can show that (under certain conditions) solving the variational problem:\\ Find u∈V such that:

∀v∈V,a(u,v)=L(v)

is equivalent to solve the minimization problem:\\ Find u∈V, such that:

J(u)=minv∈VJ(v)

Physical principles have sometimes a natural variational formulation (as natural as a PDE formulation). We will come back to the variational formulations at the section on least action principle (see section secprinmoindreact ) and at the section secpuisvirtu on the principle of virtual powers.

exmplinepro

Example: Another example of functional is given by the linear programming problem. Let us consider a function u that can be located by its coordinates ui in a basis ei, i∈{1,…,N}:

u=∑uiei

In linear programming, the functional to minimize can be written

F(u)=∑ciui

and is subject to N primary constraints:

∀i,ui≥0

and M=m1+m2+m3 additional constraints:

k∈{1,…,m1},∑jak,juj≤bk,(bk≥0)
k∈{m1+1,…,m1+m2},∑jak,juj≥bk≥0
k∈{m1+m2+1,…,m1+m2+m3},∑jak,juj=bk≥0

The numerical algorithm to solve this type of problem is presented in ([ma:compu:Press92]). It is called the simplex method.

exmpsimul

Example: When the variables ui can take only discrete values, one speaks about discrete or combinatorial optimization. The function to minimize can be for instance (travelling salesman problem):

J(u,v)=∑i=1N(uσ(i)−uσ(i−1))2+(vσ(i)−vσ(i−1))2

where ui,vi are the coordinates of a city number i. The coordinates of the cities are numbers fixed in advance but the order in which the N cities are visited ({\it i.e} the permutation σ of {1,…,N}) is to be find to minimize J. Simulated annealing is a method to solve this problem and is presented in ([ma:compu:Press92]).

Lagrange multipliers

[edit | edit source]

Lagrange multipliers method is an interesting approach to solve the minimization problem of a function of N variables with constraints, {\it i. e. } to solve the following problem: \index{contrainte}\index{Lagrange multiplier}

Problem:

Find u in a space V of dimension N such that

F(u)=minv∈VF(v)

with n constraints, Ri(x)=0,i=1,…,n.

The Lagrange multiplier method is used in statistical physics (see sectionchapphysstat). In a problem without any constraints, a solution u satisfies:

dF=0

In the case with constraints, the n coordinates ui of u are not independent. Indeed, they should satisfy the relations:

dRi=0

The Lagrange multiplier method consists of looking for n numbers λi called "Lagrange multipliers" such that:

dL=dF+∑λidRi=0

One obtains the following equation system:

∂F∂xj+∑λi∂Ri∂xj=0