Day 12 MATRICES
Day 12 MATRICES
Introduction
A matrix (plural matrices) is a rectangular array or table of numbers, symbols, or expressions
(called entries), arranged in rows and columns, which is used to represent a mathematical
object or a property of such an object.
A real matrix and a complex matrix are matrices whose entries are respectively real numbers
or complex numbers.
The numbers, symbols, or expressions in the matrix are called its entries or its elements. The
horizontal and vertical lines of entries in a matrix are called rows and columns, respectively.
The size of a matrix is defined by the number of rows and columns it contains. There is no
limit to the numbers of rows and columns a matrix (in the usual sense) can have as long as
they are positive integers. A matrix with m rows and n columns is called an m × n matrix, or
m-by-n matrix, while m and n are called its dimensions. For example, the matrix A below is a
3 × 2 matrix.
[ ]
Matrices with a single row are called row vectors, and those with a single column are called
column vectors. A matrix with the same number of rows and columns is called a square
matrix. A matrix with an infinite number of rows or columns (or both) is called an infinite
matrix. In some contexts, such as computer algebra programs, it is useful to consider a
matrix with no rows or no columns, called an empty matrix. A matrix is usually shown by a
capital letter (such as A, or B).
The two matrices must be the same size, i.e. the rows must match in size, and the columns
must match in size.
Example:
A matrix with 3 rows and 5 columns can be added to another matrix of 3 rows and 5
columns.
But it could not be added to a matrix with 3 rows and 4 columns (the columns don't match in
size).
Subtracting
To subtract two matrices: subtract the numbers in the matching positions:
Multiplying by a Constant
We can multiply a matrix by a constant (the value 2 in this case):
The "Dot Product" is where we multiply matching members, then sum up:
We match the 1st members (1 and 7), multiply them, likewise for the 2nd members (2 and 9)
and the 3rd members (3 and 11), and finally sum them up.
Want to see another example? Here it is for the 1st row and 2nd column:
We can do the same thing for the 2nd row and 1st column:
Dividing
Now, what about division? Well we don't actually divide matrices, we do it this way:
Similarly, when we multiply a matrix by its inverse we get the Identity Matrix (which is like
"1" for matrices):
Transposing
To "transpose" a matrix, swap the rows and columns.
We put a "T" in the top right-hand corner to mean transpose:
The Inverse of a Matrix
Inversion of a 2×2 Matrix
etc.
Eigenvalues and Eigenvectors of a Matrix
(1)
for some scalar λ. Then λ is called an eigenvalue of the matrix A and X is called an
eigenvector of A associated with λ, or a λ-eigenvector of A.
The set of all eigenvalues of an n×n matrix A is denoted by σ(A) and is referred to as the
spectrum of A.
The eigenvectors of a matrix A are those vectors X for which multiplication by A results in a
vector in the same direction or opposite direction to X. Since the zero vector 0 has no
direction this would make no sense for the zero vector. As noted above, 0 is never allowed to
be an eigenvector.
Let’s look at eigenvectors in more detail. Suppose X satisfies equation (1). Then
Recall that the solutions to a homogeneous system of equations consist of basic solutions,
and the linear combinations of those basic solutions. In this context, we call the basic
solutions of the equation
(2)
basic eigenvectors. It follows that any (nonzero) linear combination of basic eigenvectors is
again an eigenvector.
Suppose the matrix is invertible, so that exists. Then the following
equation would be true.
Example 1:
Solution
First we find the eigenvalues of A by solving the equation:
This gives
The augmented matrix for this system and corresponding are given by
Multiplying this vector by 7 we obtain a simpler description for the solution to this system,
given by
Example 2:
Find the eigenvalues and eigenvectors for the matrix
Solution
First we need to find the eigenvalues of A. Recall that they are the solutions of the equation
which becomes
We now set up the augmented matrix and row - reduce to get the solution. Thus the matrix
to be row - reduced is
Notice that we cannot let here, because this would result in the zero vector and
eigenvectors are never equal to Other than this value, every other choice of results in an
eigenvector.
It is a good idea to check your work! To do so, we will take the original matrix and multiply
by the basic eigenvector . We check to see if we get .
Next we will find the basic eigenvectors for . These vectors are the basic
solutions to the equation,
Note that you can’t pick t and s both equal to zero because this would result in the zero
vector and eigenvectors are never equal to zero.
Here, there are two basic eigenvectors, given by
Taking any (nonzero) linear combination of and will also result in an eigenvector for
the eigenvalue . As in the case for , always check your work! For the first basic
eigenvector, we can check as follows:
This is what we wanted. Checking the second basic eigenvector, , is left as an exercise.
It is important to remember that for any eigenvector , . However, it is possible to
have eigenvalues equal to zero. This is illustrated in the following example.
Exercise
Find the eigenvalues and eigenvectors of the matrices: