Nonlinear finite elements/Matrices

From testwiki
Revision as of 17:29, 12 April 2020 by imported>ShakespeareFan00 (lint)
(diff) โ† Older revision | Latest revision (diff) | Newer revision โ†’ (diff)
Jump to navigation Jump to search

Template:TOCright

Much of finite elements revolves around forming matrices and solving systems of linear equations using matrices. This learning resource gives you a brief review of matrices.

Suppose that you have a linear system of equations

a11x1+a12x2+a13x3+a14x4=b1a21x1+a22x2+a23x3+a24x4=b2a31x1+a32x2+a33x3+a34x4=b3a41x1+a42x2+a43x3+a44x4=b4.

Matrices provide a simple way of expressing these equations. Thus, we can instead write

[a11a12a13a14a21a22a23a24a31a32a33a34a41a42a43a44][x1x2x3x4]=[b1b2b3b4].

An even more compact notation is

[๐– ][๐—‘]=[๐–ป]or๐€๐ฑ=๐›.

Here ๐€ is a 4×4 matrix while ๐ฑ and ๐› are 4×1 matrices. In general, an m×n matrix ๐€ is a set of numbers arranged in m rows and n columns.

๐€=[a11a12a13a1na21a22a23a2nam1am2am3amn].

Practice Exercises

Practice: Expressing Linear Equations As Matrices

Types of Matrices

Common types of matrices that we encounter in finite elements are:


  • a row vector that has one row and n columns.
๐ฏ=[v1v2v3vn]
  • a column vector that has n rows and one column.
๐ฏ=[v1v2v3vn]
  • a square matrix that has an equal number of rows and columns.
  • a diagonal matrix which is a square matrix with only the

diagonal elements (aii) nonzero.

๐€=[a110000a2200000ann].
  • the identity matrix (๐ˆ) which is a diagonal matrix and

with each of its nonzero elements (aii) equal to 1.

๐€=[100001000001].
  • a symmetric matrix which is a square matrix with elements

such that aij=aji.

๐€=[a11a12a13a1na12a22a23a2na13a23a33a3na1na2na3nann].
  • a skew-symmetric matrix which is a square matrix with elements

such that aij=aji.

๐€=[a11a12a13a1na12a22a23a2na13a23a33a3na1na2na3nann].

Note that the diagonal elements of a skew-symmetric matrix have to be zero: aii=aiiaii=0.

Matrix addition

Let ๐€ and ๐ be two m×n matrices with components aij and bij, respectively. Then

๐‚=๐€+๐cij=aij+bij

Multiplication by a scalar

Let ๐€ be a m×n matrix with components aij and let λ be a scalar quantity. Then,

๐‚=λ๐€cij=λaij

Multiplication of matrices

Let ๐€ be a m×n matrix with components aij. Let ๐ be a p×q matrix with components bij.

The product ๐‚=๐€๐ is defined only if n=p. The matrix ๐‚ is a m×q matrix with components cij. Thus,

๐‚=๐€๐cij=k=1naikbkj

Similarly, the product ๐ƒ=๐๐€ is defined only if q=m. The matrix ๐ƒ is a p×n matrix with components dij. We have

๐ƒ=๐๐€dij=k=1mbikakj

Clearly, ๐‚๐ƒ in general, i.e., the matrix product is not commutative.

However, matrix multiplication is distributive. That means

๐€(๐+๐‚)=๐€๐+๐€๐‚.

The product is also associative. That means

๐€(๐๐‚)=(๐€๐)๐‚.

Transpose of a matrix

Let ๐€ be a m×n matrix with components aij. Then the transpose of the matrix is defined as the n×m matrix ๐=๐€T with components bij=aji. That is,

๐=๐€T=[a11a12a13a1na21a22a23a2na31a32a33a3nam1am2am3amn]T=[a11a21a31am1a12a22a32am2a13a23a33am3a1na2na3namn]

An important identity involving the transpose of matrices is

(๐€๐)T=๐T๐€T.

Determinant of a matrix

The determinant of a matrix is defined only for square matrices.

For a 2×2 matrix ๐€, we have

๐€=[a11a12a21a22]det(๐€)=|a11a12a21a22|=a11a22a12a21.

For a n×n matrix, the determinant is calculated by expanding into minors as

det(๐€)=|a11a12a13a1na21a22a23a2na31a32a33a3nan1an2an3ann|=a11|a22a23a2na32a33a3nan2an3ann|a12|a21a23a2na31a33a3nan1an3ann|+±a1n|a21a22a2(n1)a31a32a3(n1)an1an2an(n1)|

In short, the determinant of a matrix ๐€ has the value

det(๐€)=j=1n(1)1+ja1jM1j

where Mij is the determinant of the submatrix of ๐€ formed by eliminating row i and column j from ๐€.

Some useful identities involving the determinant are given below.


  • If ๐€ is a n×n matrix, then
det(๐€)=det(๐€T).
  • If λ is a constant and ๐€ is a n×n matrix, then
det(λ๐€)=λndet(๐€)det(๐€)=(1)ndet(๐€).
  • If ๐€ and ๐ are two n×n matrices, then
det(๐€๐)=det(๐€)det(๐).

If you think you understand determinants, take the quiz.

Inverse of a matrix

Let ๐€ be a n×n matrix. The inverse of ๐€ is denoted by ๐€1 and is defined such that

๐€๐€1=๐ˆ

where ๐ˆ is the n×n identity matrix.

The inverse exists only if det(๐€)0. A singular matrix does not have an inverse.

An important identity involving the inverse is

(๐€๐)1=๐1๐€1,

since this leads to: (๐€๐)1(๐€๐)=(๐1๐€1)(๐€๐)=๐1๐€1๐€๐=๐1(๐€1๐€)๐=๐1๐ˆ๐=๐1๐=๐ˆ.

Some other identities involving the inverse of a matrix are given below.


  • The determinant of a matrix is equal to the multiplicative inverse of the

determinant of its inverse.

det(๐€)=1det(๐€1).
  • The determinant of a similarity transformation of a matrix

is equal to the original matrix.

det(๐๐€๐1)=det(๐€).

We usually use numerical methods such as Gaussian elimination to compute the inverse of a matrix.

Eigenvalues and eigenvectors

A thorough explanation of this material can be found at Eigenvalue, eigenvector and eigenspace. However, for further study, let us consider the following examples:

  • Let :๐€=[1652],๐ฏ=[65],๐ญ=[74].

Which vector is an eigenvector for ๐€ ?

We have ๐€๐ฏ=[1652][65]=[2420]=4[65] , and ๐€๐ญ=[1652][74]=[3143].

Thus, ๐ฏ is an eigenvector.

  • Is ๐ฎ=[14] an eigenvector for ๐€=[3318] ?

We have that since ๐€๐ฎ=[3318][14]=[1533] , ๐ฎ=[14] is not an eigenvector for ๐€=[3318].


Template:Subpage navbar