- Introduced by
- Boris Galerkin
- Year
- 1915
- Type
- Variational approximation
- Family
- Projection
What does it do?
The Galerkin Method is a projection-based variational technique for solving differential equations.
It reduces an infinite-dimensional problem to a finite-dimensional system of equations, which is linear when the governing operator is linear and nonlinear otherwise. Boris Galerkin introduced it in 1915 in the context of elastic plates and shells. It underlies the Finite Element Method (FEM), a widely used Galerkin-based approach in engineering analysis.
The intuition behind the method
The approximate solution is written as a weighted sum of simple basis functions, and the weights are chosen so that the residual of the equation is orthogonal to the same finite-dimensional space. In variational form the problem is written as a(u,v) = l(v) for all test functions v, where a is a bilinear form and l a linear functional. The Galerkin choice takes the test functions from the same finite-dimensional space as the basis functions, which turns the problem into a linear algebraic system. For symmetric, coercive problems this choice gives the best approximation in the energy norm. Continuity and coercivity of a(·,·) guarantee a unique solution (Lax–Milgram theorem), and Céa's lemma bounds the Galerkin error by a constant multiple of the best approximation error. For non-symmetric problems the optimality result does not hold in general, which is one reason variants such as Petrov-Galerkin exist.
History
Boris Galerkin published the method in 1915 in the context of elastic plates and shells. An earlier 1913 paper by Ivan Bubnoff, on integral equations for the elastic equilibrium of shells, is also listed among the references. The Finite Element Method, which applies Galerkin projection to piecewise-defined basis functions, is covered in the textbook by Reddy (1993).
When to use it
Choose Galerkin for boundary value problems (PDEs with Dirichlet or Neumann conditions) and for eigenvalue problems that can be written in variational form. It is well suited to complex geometries and to domains containing several materials, which is one reason FEM, a Galerkin-based method, is standard in industry. It is a poor choice for unbounded domains unless basis functions suited to the far field are available. Problems without a weak or variational formulation do not fit this framework directly. Before applying it, check that the bilinear form is coercive, or satisfies an inf-sup condition for mixed problems such as Stokes-type flows; that trial and test spaces are compatible in mixed formulations; and, for eigenvalue problems, that the discretisation does not produce spurious eigenvalues.
Limitations and considerations
- Choosing basis functions requires domain knowledge; poor choices can lead to ill-conditioned matrices
- The linear system grows with the number of basis functions; dense direct solvers become expensive for large systems, so practical problems rely on sparse structure and iterative solvers
- Computing integrals of basis-function products can be costly; high-order elements usually need accurate quadrature
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- For nested approximation spaces and coercive problems, enlarging the basis does not increase the error in the energy norm, so refinement is a systematic way to improve accuracy
- One weak-form framework covers both boundary value and eigenvalue problems, so a single discretisation scheme applies to several problem types
- For symmetric coercive problems (a symmetric bilinear form, as for self-adjoint operators), Galerkin orthogonality of the residual gives the best approximation in the energy norm, and the system matrix is symmetric
- Forms the theoretical basis of FEM, which is widely implemented in engineering software
Applications
- Structural mechanics: computing stresses, strains, and deformations in aircraft wings and bridges
- Fluid dynamics: solving Navier-Stokes equations for airflow and incompressible flow problems
- Electromagnetics: analyzing electric and magnetic fields in motors, antennas, and waveguides
- Heat transfer: modeling thermal diffusion in composite materials and industrial furnaces
- Acoustics: predicting sound propagation and resonance in concert halls and automotive cavities
How it works
How it works
Define a functional space V with basis functions φ₁, φ₂, …, φₙ (e.g., piecewise polynomials); approximate the solution as u_h = Σ c_i φ_i.
Write the problem in weak form: find u_h in V_h such that a(u_h, v_h) = l(v_h) for all v_h in V_h, using the same space V_h for trial and test functions. Form the system matrix A and load vector f with A_ij = a(φ_j, φ_i) and f_i = l(φ_i). In strong-form integral notation this corresponds to A_ij = ∫ L(φ_j) φ_i dx and f_i = ∫ f φ_i dx, valid when boundary terms vanish or have been included, where L is the differential operator. Boundary terms and the symmetry of A depend on the formulation, so the exact form must be checked for each problem.
Solve the linear system Ac = f to obtain coefficients c; reconstruct the approximate solution u_h from the weighted basis.
Estimate the error with a posteriori residual-based bounds, or compare solutions on finer discretizations; refine the basis if the error exceeds the tolerance.
Common pitfalls
- Poorly chosen basis functions can cause ill-conditioning through near-linear dependence or poor scaling; orthogonal or well-scaled hierarchical bases help mitigate this
- Insufficient integration accuracy (using too-coarse quadrature) contaminates the system matrix; use appropriate Gauss quadrature rules
- Ignoring boundary conditions in the variational formulation; essential BCs must be enforced in the basis function space
- Judging accuracy from a single solution: one solve does not show convergence. Check that the error falls at the expected rate under refinement, and treat a stagnating error as a sign of a formulation, boundary-condition, or quadrature error rather than only a coarse mesh
Frequently asked questions
What is the Galerkin condition and why is it important?
The Galerkin condition takes the test functions equal to the basis functions, so the residual is orthogonal to the approximation space. For symmetric, coercive problems this gives the best approximation in the energy norm and a symmetric system matrix. For other problems the optimality result does not hold, and stability requires conditions such as coercivity or the inf-sup condition.
How does Galerkin differ from Petrov-Galerkin?
In standard Galerkin, test and basis spaces are identical. Petrov-Galerkin uses different test and basis spaces, which gives flexibility for non-symmetric problems such as convection-dominated flows, where standard Galerkin can produce spurious oscillations. The price is the loss of the best-approximation property that standard Galerkin has for symmetric coercive problems.
What basis functions should I use?
For smooth problems, polynomial bases (piecewise linear or quadratic) are a common choice. For oscillatory or periodic solutions, trigonometric (Fourier) bases may be a natural option, provided the domain is periodic or the boundary conditions are compatible with the basis. Spectral elements use high-order polynomials on larger domains, while FEM uses low-order polynomials on many small elements. The physics of the problem should guide the choice.
How do I estimate error after solving?
A posteriori estimates use the residual of the computed solution to bound the error in a norm tied to the formulation; the exact bound depends on the problem and should be taken from the chosen estimator. A simple practical check is to compare solutions on successively refined meshes: if the error decreases at the rate predicted by the theory, the discretisation is behaving as expected.
Related methods
Sources
Galerkin, B. G. (1915). Elastic plates and shells. Proceedings of Higher Technical School, Moscow.
Open publication referenceBubnoff, I. G. (1913). The application of the method of integral equations to the solutions of problems of elastic equilibrium of shells. Izvestiya Rossiiskoi Akademii Nauk, 4, 1311–1330.
Open publication referenceReddy, J. N. (1993). An Introduction to the Finite Element Method (2nd ed.). McGraw-Hill.
ISBN: 0070513554