Monday, August 13, 2012

Enter the Matrix - Lesson 2 - Types of Matrices

Types of Matrices

This lesson describes a few of the more important types of matrices: transpose matrices, vectors, and different kinds of square matrices.

Transpose Matrices

The transpose of one matrix is another matrix that is obtained by using by using rows from the first matrix as columns in the second matrix.

For example, it is easy to see that the transpose of matrix A is A'. Row 1 of matrix A becomes column 1 of A'; row 2 of A becomes column 2 of A'; and row 3 of A becomes column 3 of A'.

A =    
111222
333444
555666
 
A' =    
111333555
222444666
Note that the order of a matrix is reversed after it has been transposed. Matrix A is a 3 x 2 matrix, but matrix A' is a 2 x 3 matrix.

With respect to notation, this web site uses a prime to indicate a transpose. Thus, the transpose of matrix B would be written as B'.

Vectors

Vectors are a type of matrix having only one column or one row.
Vectors come in two flavors: column vectors and row vectors. For example, matrix a is a column vector, and matrix a' is a row vector.

a =    
11
12
33
 
a' =    
112233
 use lower-case, boldface letters to represent column vectors. And since the transpose of a column vector is a row vector, we use lower-case, boldface letters plus a prime to represent row vectors. Thus, vector b would be a column vector, and vector b' would be a row vector.

Square Matrices

square matrix is an n x n matrix; that is, a matrix with the same number of rows as columns. In this section, we describe several special kinds of square matrix.

Symmetric matrix. If the transpose of a matrix is equal to itself, that matrix is said to be symmetric. Two examples of symmetric matrices appear below.
A = A' =    
12
23
B = B' =    
567
632
721

Note that each of these matrices satisfy the defining requirement of a symmetric matrix: A =A' and B = B'. 

Diagonal matrix. A diagonal matrix is a special kind of symmetric matrix. It is a symmetric matrix with zeros in the off-diagonal elements. Two diagonal matrices are shown below.
A =    
10
03
B =    
500
030
001
Note that the diagonal of a matrix refers to the elements that run from the upper left corner to the lower right corner.

Scalar matrix. A scalar matrix is a special kind of diagonal matrix. It is a diagonal matrix with equal-valued elements along the diagonal. Two examples of a scalar matrix appear below.
A =    
30
03
B =    
500
050
005

These square matrices play a prominent role in the application of matrix algebra to real-world problems. For example, a scalar matrix called the identity matrix is critical to the solution of simultaneous linear equations. (We cover the identity matrix later in the tutorial.)



No comments:

Post a Comment