ArticleslgStudy

mathematics

Stiffness matrix

Stiffness matrix is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Stiffness matrix rather than just read about it. In short: In the finite element method for the numerical solution of elliptic partial differential equations, the stiffness matrix is a matrix that represents the system of linear equations that must be solved in order to ascertain an approximate solution to the differential equation. The stiffness matrix for the Poisson problem For simplicity, we will first consider the Poisson problem −∇2u=f on some domain Ω, subject to the…

Key takeaways

  • Stiffness matrix belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Stiffness matrix to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Stiffness matrix from memory before moving on to harder problems.

Reference excerpt

In the finite element method for the numerical solution of elliptic partial differential equations, the stiffness matrix is a matrix that represents the system of linear equations that must be solved in order to ascertain an approximate solution to the differential equation.

The stiffness matrix for the Poisson problem For simplicity, we will first consider the Poisson problem

−∇2u=f on some domain Ω, subject to the boundary condition u = 0 on the boundary of Ω. To discretize this equation by the finite element method, one chooses a set of basis functions {φ1, …, φn} defined on Ω which also vanish on the boundary. One then approximates

u≈uh=u1φ1+⋯+unφn. The coefficients u1, u2, …, un are determined so that the error in the approximation is orthogonal to each basis function φi:

∫Ωφi⋅fdx=−∫Ωφi∇2uhdx=−∑j(∫Ωφi∇2φjdx)uj=∑j(∫Ω∇φi⋅∇φjdx)uj. as a consequence of the homogenous Dirichlet boundary conditions. The stiffness matrix is the n-element square matrix A defined by

𝐀ij=∫Ω∇φi⋅∇φjdx. By defining the load vector F with components 𝐅i=∫Ωφifdx, the coefficients ui are determined by the linear system Au = F. The stiffness matrix is symmetric, i.e. Aij = Aji, so all its eigenvalues are real. Moreover, it is a strictly positive-definite matrix, so that the system Au = F always has a unique solution. (For other problems, these nice properties will be lost.) Note that the stiffness matrix will be different depending on the computational grid used for the domain and what type of finite element is used. For example, the stiffness matrix when piecewise quadratic finite elements are used will have more degrees of freedom than piecewise linear elements.

The stiffness matrix for other problems Determining the stiffness matrix for other PDEs follows essentially the same procedure, but it can be complicated by the choice of boundary conditions. As a more complex example, consider the elliptic equation

−∑k,l∂∂xk(akl∂u∂xl)=f where 𝐀(x)=akl(x) is a positive-definite matrix defined for each point x in the domain. We impose the Robin boundary condition

−∑k,lνkakl∂u∂xl=c(u−g), where νk is the component of the unit outward normal vector ν in the k-th direction. The system to be solved is

∑j(∑k,l∫Ωakl∂φi∂xk∂φj∂xldx+∫∂Ωcφiφjds)uj=∫Ωφifdx+∫∂Ωcφigds, as can be shown using an analogue of Green's identity. The coefficients ui are still found by solving a system of linear equations, but the matrix representing the system is markedly different from that for the ordinary Poisson problem. In general, to each scalar elliptic operator L of order 2k, there is associated a bilinear form B on the Sobolev space Hk, so that the weak formulation of the equation Lu = f is

B[u,v]=(f,v) for all functions v in Hk. Then the stiffness matrix for this problem is

𝐀ij=B[φj,φi].

Practical assembly of the stiffness matrix In order to implement the finite element method on a computer, one must first choose a set of basis functions and then compute the integrals defining the stiffness matrix. Usually, the domain Ω is discretized by some form of mesh generation, wherein it is divided into non-overlapping triangles or quadrilaterals, which are generally referred to as elements. The basis functions are then chosen to be polynomials of some order within each element, and continuous across element boundaries. The simplest choices are piecewise linear for triangular elements and piecewise bilinear for rectangular elements. The element stiffness matrix A[k] for element Tk is the matrix

𝐀ij[k]=∫Tk∇φi⋅∇φjdx. The element stiffness matrix is zero for most values of i and j, for which the corresponding basis functions are zero within Tk. The full stiffness matrix A is the sum of the element stiffness matrices. In particular, for basis functions that are only supported locally, the stiffness matrix is sparse. For many standard choices of basis functions, i.e. piecewise linear basis functions on triangles, there are simple formulas for the element stiffness matrices. For example, for piecewise linear elements, consider a triangle with vertices (x1, y1), (x2, y2), (x3, y3), and define the 2×3 matrix

𝐃=[x3−x2x1−x3x2−x1y3−y2y1−y3y2−y1]. Then the element stiffness matrix is

𝐀[k]=𝐃𝖳𝐃4area⁡(T). When the differential equation is more complicated, say by having an inhomogeneous diffusion coefficient, the integral defining the element stiffness matrix can be evaluated by Gaussian quadrature. The condition number of the stiffness matrix depends strongly on the quality of the numerical grid. In particular, triangles with small angles in the finite element mesh induce large eigenvalues of the stiffness matrix, degrading the solution quality.

References

Worked examples

Example 1 — a first encounter with Stiffness matrix

Start with the simplest possible case. Write down what Stiffness matrix claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Stiffness matrix before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Stiffness matrix ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Stiffness matrix

In research
Stiffness matrix appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Stiffness matrix in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Stiffness matrix is common in secondary-school and first-year university syllabi. It links to neighbouring topics Applied mathematics, Numerical analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Stiffness matrix outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Stiffness matrix” →

How to study Stiffness matrix in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Stiffness matrix means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Stiffness matrix out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Stiffness matrix in simple terms?

In the finite element method for the numerical solution of elliptic partial differential equations, the stiffness matrix is a matrix that represents the system of linear equations that must be solved in order to ascertain an approximate solution to the differential equation. The stiffness matrix fo…

Why does Stiffness matrix matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Stiffness matrix?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Stiffness matrix.

Tags

  • Applied mathematics
  • Numerical analysis

Keep exploring