Linear algebra
From Wikiversity
Material covered in these notes are designed to span over 12-16 weeks. Each subpage will contain about 3 hours of material to read through carefully, and additional time to properly absorb the material.
[edit] Introduction - linear equations
Let us illustrate through examples what linear equations are. We will also be introducing new notation wherever appropriate.
For example:
- 3x − y = 14
- 2x + y = 11
If you add these two equations together, you can see that the y's cancel each other out. When this happens, you will get 5x = 25, or x = 5. Substituting back into the above, we find that y = 1. Note that this is the only solution to the system of equations. The above method of solving was linear combination, or elimination.
[edit] Solving Linear Systems Algebraically
One was mentioned above, but there are other ways to solve a system of linear equations without graphing.
[edit] Substitution
If you get a system of equations that looks like this:
- 2x + y = 11
- − 4x + 3y = 13
You can switch around some terms in the first to get this:
- y = − 2x + 11
Then you can substitute that into the bottom one so that it looks like this:
- − 4x + 3( − 2x + 11) = 13
- − 4x − 6x + 33 = 13
- − 10x + 33 = 13
- − 10x = − 20
- x = 2
Then, you can substitute 2 into an x from either equation and solve for y. It's usually easier to substitute it in the one that had the single y. In this case, after substituting 2 for x, you would find that y = 7.
[edit] Thinking in terms of matrices
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.
[edit] Matrices
Suppose that you have a linear system of equations
Matrices provide a simple way of expressing these equations. Thus, we can instead write
An even more compact notation is
Here
is a
matrix while
and
are
matrices. In general, an
matrix
is a set of numbers arranged in m rows and n columns.
[edit] Types of Matrices
Common types of matrices that we encounter in finite elements are:
- a row vector that has one row and n columns.
- a column vector that has n rows and one column.
- 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.
- the identity matrix (
) which is a diagonal matrix and
with each of its nonzero elements (aii) equal to 1.
- a symmetric matrix which is a square matrix with elements
such that aij = aji.
- a skew-symmetric matrix which is a square matrix with elements
such that aij = − aji.
Note that the diagonal elements of a skew-symmetric matrix have to be zero:
.
[edit] Matrix addition
Let
and
be two
matrices with components aij and bij, respectively. Then
[edit] Multiplication by a scalar
Let
be a
matrix with components aij and let λ be a scalar quantity. Then,
[edit] Multiplication of matrices
Let
be a
matrix with components aij. Let
be a
matrix with components bij.
The product
is defined only if n = p. The matrix
is a
matrix with components cij. Thus,
Similarly, the product
is defined only if q = m. The matrix
is a
matrix with components dij. We have
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
[edit] Transpose of a matrix
Let
be a
matrix with components aij. Then the transpose of the matrix is defined as the
matrix
with components bij = aji. That is,
A important identity involving the transpose of matrices is
[edit] Determinant of a matrix
The determinant of a matrix is defined only for square matrices.
For a
matrix
, we have
For a
matrix, the determinant is calculated by expanding into minors as
In short, the determinant of a matrix
has the value
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
matrix, then
- If λ is a constant and
is a
matrix, then
- If
and
are two
matrices, then
[edit] Inverse of a matrix
Let
be a
matrix. The inverse of
is denoted by
and is defined such that
where
is the
identity matrix.
The inverse exists only if
. A singular matrix does not have an inverse.
An important identity involving the inverse is
since this leads to: 
Some other identities involving the inverse of a matrix are given below.
- The determinant of a matrix is equal to the inverse of the
determinant of its inverse.
- The determinant of a similarity transformation of a matrix
is equal to the original matrix.
We usually use numerical methods such as Gaussian elimination to compute the inverse of a matrix.
[edit] Eigenvalues and eigenvectors
Let
be a
matrix, let
be a
vector, and let λ be a scalar. Consider the situation where the effect of the action of matrix
on vector
is to stretch (or shrink) the vector by an amount λ. That is,
There are n ways of achieving this transformation, each involving a non-zero vector
and a non-zero scalar λi. The vectors
are called the eigenvectors of
and the corresponding scalars λi are called the eigenvalues of
.
To compute the eigenvalues and eigenvectors of a matrix
, we rearrange the equation so that we have
This equation has nontrivial solutions only if
The determinant can be expressed as a polynomial of degree n. The eigenvalues are the roots of this polynomial. Once we have the eigenvalues, the corresponding eigenvectors can be calculated by plugging the eigenvalues into equation (1). We usually normalize the eigenvectors so that they are unit vectors.
The eigenvalues of a real symmetric matrix are real, and its eigenvectors are orthogonal.


![\left[\mathsf{A}\right] \left[\mathsf{x}\right] = \left[\mathsf{b}\right] ~~~~\text{or}~~~~ \mathbf{A} \mathbf{x} = \mathbf{b} ~.](http://upload.wikimedia.org/math/9/a/b/9ab65143e05a0e68423b953fbc300fc3.png)





























