# Variational numerical methods

*(for differential equations)*

Among the principles that appear in physics there are such which are not expressed in terms of differentials but in variational form. These principles are called variational principles and they describe the conditions under which certain values attain extreme (i.e. maximum or minimum) values. Examples of these principles are Hamilton's principle, the principle of least action in classical mechanics (cf. also Principle of least reaction) and the Fermat principle in geometric optics; other examples can be found in mathematical physics, structural mechanics, fluid dynamics, heat transfer, etc.

The calculus of variations (cf. Variational calculus) is concerned with the problem of extreme values of functionals, which are real- or complex-valued functions defined on a subset of a function space. This subset consists of functions defined on a certain domain. An element of such a subset is called an admissible function (or argument function). General attention was first drawn to problems of this type in 1696 by Johann Bernoulli's statement of the brachistochrone problem (cf. Brachistochrone).

The fundamental criterion in the calculus of variations is as follows: A necessary and sufficient condition that the integral

with

be stationary when is that be an admissible function satisfying the Euler equation

Its solutions are called extremals and to solve the problem one has, among all the extremals, to find one which satisfies prescribed boundary conditions.

The problem of finding the extreme values of an integral can be extended to the case of several independent variables and multiple integrals of the type

with

The calculus of variations discusses the correspondence between the functional to be extremized and the Euler equation for the solution . A solution of an extremal problem can thus be studied by looking at the corresponding Euler equation. Conversely, when a differential equation is given, a functional whose Euler equation is the given differential equation can sometimes be constructed. In this case the extremal problem and the Euler equation are in some sense equivalent. To solve Euler's equation, boundary conditions (for instance, of Dirichlet- or Neumann-type) have to be prescribed. Those boundary conditions which are imposed on the admissible functions are called essential (e.g. Dirichlet-type), those which are automatically satisfied by the solution of the extremal problem and which are not explicitly imposed on the set of admissible functions are called natural (e.g. Neumann-type).

As an example, let be an open bounded domain in the -dimensional space and let be a real-valued function. Consider the problem of minimizing the functional

The set of admissible functions is the Hilbert space obtained by completing the space of infinitely-differentiable functions with compact support in with respect to the Sobolev norm

It can be shown, using the Riesz representation theorem (cf. Riesz theorem), that the extremal problem is equivalent (in the generalized, distributional sense) to the following Euler equation for (i.e. Poisson equation with Dirichlet boundary conditions):

There are some advantages in solving the extremal formulation (if it exists) instead of the differential equation, because some boundary conditions are automatically fulfilled and due to lower-order differentiation requirements.

Consider the problem of minimizing the functional over a function space , and let be a basis for . Let be an approximation of the space spanned by the first basis functions . The approximate problem is defined as: Find minimizing the functional on .

Since can be written as

with unknown , the approximate problem reduces to: Find such that takes its extremum value.

This leads to the following (necessary) conditions for the unknowns :

The original extremal problem has been reduced to a system of equations for unknowns, which can be solved numerically. The accuracy of the approximate solution depends on the number of basis functions. Generally, as increases the accuracy improves, i.e. converges to .

The method that constructs a sequence by determining the values of , is called the Ritz method. Inclusion of in is not essential; for convergence the approximate spaces must satisfy the following density property: dense in .

The Galerkin method, which can be considered as a generalization of the Ritz method, is directly applicable to the differential equation, irrespective of the existence of an equivalent extremal formulation. Galerkin's method can be illustrated as follows: Consider the following linear second-order differential equation with (essential) Dirichlet boundary conditions (a boundary value problem):

The solution is sought in a function space V which is supposed to have a basis . Any element can be written as an infinite linear combination of these basis functions. For arbitrary , the expression is called the residual. The problem is to find an element for which the residual vanishes. This amounts to saying that the solution is characterized by the following projection requirements:

Reduction of the order of differentiation by Green's formula and substitution of the boundary conditions leads to the following variational (or weak) formulation of the boundary value problem: Find such that

where is a bilinear form on . When is, for instance, the Laplace operator, is given by

The Galerkin method consists of taking a finite-dimensional subspace of spanned by basis functions . The approximate finite-dimensional problem is defined as: Find such that

Since , it has the form

and the approximate problem is equivalent to the following system of linear algebraic equations for the unknowns :

This system can be solved by Gaussian elimination or by iteration.

When the coefficients of the differential operator and the function are periodic in space and when sine or cosine basis functions are chosen, the Galerkin method is equivalent to the Fourier method and can be efficiently implemented using a fast Fourier transform (cf. Fourier transform, discrete). The Galerkin method can also be applied to the numerical solution of evolution equations, leading to a system of ordinary differential equations in time which can be solved numerically by integration techniques.

Both the Ritz method and the Galerkin method transform the infinite-dimensional problem into a (finite-dimensional) system of linear equations. The finite-element method is a systematic technique for generating basis functions on arbitrary domains which gives rise to a sparse matrix (i.e. a matrix with many zero entries). The finite-element method consists of three steps:

The first step is to divide the domain into a finite number of non-overlapping subregions (elements) the length of which does not exceed . Standard examples of elements are subintervals (), triangles in dimensions and tetrahedra in dimensions.

In the second step, a finite number of points (called nodal points) are chosen in each element. Examples are: begin- and end-point of the subintervals; the vertices of the triangles; or the vertices of the tetrahedra. More complicated examples are begin-, end- and mid-points of subintervals, or vertices and mid-points of sides of triangles. The (finite) set of all nodal points will be denoted by .

In the third step, a continuous basis function is defined on for each nodal point . These basis functions satisfy the following properties: 1) takes the value at nodal point and vanishes at all the other nodal points; and 2) has a prescribed shape on each element (depending on the number of nodal points per element). For example, in the -dimensional case: linear basis functions with nodal points per element or quadratic basis functions with nodal points per element.

Using these basis functions an approximate solution can be constructed. In fact, the function

is a linear combination of the basis functions , continuous on , and with prescribed behaviour on the elements. Due to the particular construction of the basis functions, the parameter is precisely the value of at nodal point .

The resulting system of linear equations can be written as

where the matrix entry differs from zero only if the nodal points and belong to the same element. This implies that the matrix (often called the stiffness matrix) is sparse.

The convergence of to can be proved if the set of elements satisfies certain regularity properties. To improve the accuracy, polynomials of higher degree per element are used. Curved boundaries can be taken into account by using isoparametric elements.

Generalizations and extensions of the finite-element method exist to problems of higher order (for instance, mixed finite elements for the biharmonic equation, cf. Biharmonic function), to problems with specific difficulties (for instance, non-conforming finite elements for the Navier–Stokes equations for incompressible fluids and mixed-hybrid finite elements in stress analysis, electrostatics and ground water hydraulics) or to evolution problems (mass lumping and consistent mass schemes).

#### References

[a1] | P.G. Ciarlet, "The finite element method for elliptic problems" , North-Holland (1978) |

[a2] | R. Courant, "Variational methods for the solution of problems of equilibrium and vibrations" Bull. Amer. Math. Soc. , 49 (1943) pp. 1–23 |

[a3] | R. Courant, D. Hilbert, "Methods of mathematical physics" , 1–2 , Interscience (1953–1962) (Translated from German) |

[a4] | C. Cuvelier, A. Segal, A.A. van Steenhoven, "Finite element methods and Navier–Stokes equations" , Reidel (1986) |

[a5] | I.M. Gel'fand, S.V. Fomin, "Calculus of variations" , Prentice-Hall (1963) (Translated from Russian) |

[a6] | R. Glowinski, J.-L. Lions, R. Trémolières, "Numerical analysis of variational inequalities" , North-Holland (1981) (Translated from French) |

[a7] | S.G. Mikhlin, "Variational methods in mathematical physics" , Macmillan (1964) (Translated from Russian) |

[a8] | S.G. Mikhlin, "The problem of the minimum of a quadratic functional" , Holden-Day (1965) (Translated from Russian) |

[a9] | S.L. Sobolev, "Applications of functional analysis in mathematical physics" , Amer. Math. Soc. (1963) (Translated from Russian) |

[a10] | G.J. Fix, "An analyse of the finite element method" , Prentice-Hall (1973) |

[a11] | R. Temam, "Navier–Stokes equations, theory and numerical analysis" , North-Holland (1979) |

[a12] | O.C. Zienkiewicz, "The finite element method in engineering science" , McGraw-Hill (1977) |

**How to Cite This Entry:**

Variational numerical methods.

*Encyclopedia of Mathematics.*URL: http://encyclopediaofmath.org/index.php?title=Variational_numerical_methods&oldid=18886