4.1: Matrices
( \newcommand{\kernel}{\mathrm{null}\,}\)
Matrix
A matrix is a rectangular array of objects, often numbers.
The rectangular array of numbers [5−204−63 ] is a matrix having 3 rows and 2 columns.
Dimension of a Matrix
Matrix having m number of rows and n number of columns has dimension (size) m×n (pronounced as "m by n") and is called an m×n matrix.
The matrix in Example 3×2 matrix since it is composed of 3 rows and 2 columns. When specifying the dimension of a matrix, the number of rows is stated first and the number of columns second.
is aElements of a Matrix
It is common to use an uppercase letter of the alphabet to name a matrix and the corresponding lowercase letter to name an element (entry or member) of the matrix. Subscripts are attached to the lowercase letter to specify its position in the matrix.
The first number in subscript indicates the row in which the element resides and the second number the column.
The subscript numbers appear adjacent to each other and typically without a comma separating them.
We could name the matrix of Example . We specify the element −2 in row 1, column 2, with the notation a12. The lowercase a is used to indicate that the element is from matrix A and the subscripts indicate we are observing the entry in row 1, column 2. The subscript is not the number 12, but rather the two individual numbers, 1 and 2.
In general, the notation aij denotes the entry in row i and column j.
Some other elements of A are
a11=5, the number in row 1, column 1
a31=−6, the number in row 3, column 1
a22=4, the number in row 2, column 2
In general, an m×n matrix has the form [a11a12 ⋯ a1na21a22 ⋯ a2na31a32 ⋯ a3n⋮am1am2 ⋯ amn]. For some number m, the element am2 is the number in row m, column 2.
Your turn:
In the matrix B=[0−421−15−338 ],
- Specify the size of B.
- Find the value of b11.
- Find the value of b13.
- Find the value of b32.
ANS: (a) 3×3, (b) 0, (c) 2, (d) 3
Equal Matrices
Two matrices A and B are said to be equal, written as A=B, if they are the same size and all the corresponding entries are equal.
In matrix notation, for all i and j, A=B if aij=bij. The notation aij names the element in row i and column j of matrix A. Similarly, the notation bij names the element in row i and column j of matrix B. The notation aij=bij indicates that the element in row i and column j of matrix A is the same as the element in row i and column j of matrix B.
Square Matrices
A matrix is called square if it has the same number of columns as rows.
The \boldsymbol{2\times 2\}matrices A and B are both equal and square.
A=[3421] and B=[3421]
Main Diagonal of a Square Matrix
Consider a square matrix, say A=[21034−5−167]
Imagine a line passing from the top left element to the bottom right element as in the picture.
A=∣81034−5−167]
This diagonal set of elements from the top left element to the bottom right is called the main diagonal of the matrix.
Diagonal and Non-Diagonal Elements of a Matrix
The elements lying on the main diagonal of matrix A are called the diagonal elements of matrix A. The elements 2, 4, and 7 are the diagonal elements of matrix A. The elements lying off the main diagonal of matrix A are called the non-diagonal or off-diagonal elements of matrix A. The elements 1, 0, 3, -5, -1, and 6 are the non-diagonal elements of matrix A.
The Identity Matrix
An Identity matrix is a square matrix that has only 1’s on its main diagonal and 0’s everywhere else.
A matrix in which every diagonal element is 1 and every non-diagonal element is 0 is an identity matrix. Identity matrices are typically named with the uppercase letter I. It is not uncommon to write the size of the matrix as a subscript on the I.
The square matrix I=[100010001] is the 3×3. We could write I3×3 to indicate the 3×3 identity matrix.
The Zero Matrix
The zero matrix is a matrix, in which every element is 0.
Zero matrices are commonly named with a 0.
The matrix 0=[000000] is a zero matrix.
The Transpose of a Matrix
Consider some m×n matrix \boldsymbol{A.\}For example, suppose A is the 2×3 matrix A=[234567].Form a new matrix, call it A-transpose and denote it by AT, by making
- The first row of A the first column of AT,
- The second row of A the second column of AT.
Then AT=[253647] is the transpose of A= [234567].
The rows of a matrix are the columns of its transpose. If the matrix A is size m×n, then dimension of AT is n×m.
Row Matrices and Column Matrices
A row matrix is a matrix with only one row and any number of columns.
The matrix R=[345] is a row matrix with 3 columns. It is a 1×3 matrix.
A column matrix is a matrix with only one column and any number of rows.
The matrix C=[67] is a column matrix with 2 rows. It is a 2×1 matrix.
Vectors as Matrices
When we first described vectors, we expressed them using the bracket notation. For example, we could write a vector as ⟨2, 4, 6⟩. We can just as easily describe this vector using a row matrix \boldsymbol{\left[ \begin{array}{ccc} 2 & 4 & 6 \end{array} \right]\ \}or column matrix [246].
Try These
Specify the dimension of each matrix.
- S=[025−6−321928−14]
- T=[56−300−3]
- Q=[10−1]
- Answer
-
- 4×3
- 2×3
- 1×3
True or False: The transpose of a square matrix is also a square matrix.
- Answer
-
True
In the matrix S=[025−6−321928−14]
- Find the value of S13.
- Find the value of S23.
- Find the value of S31.
- Find the value of S43.
- Answer
-
- 5
- 2
- 1
- 4
Construct and name the transpose of S=[025−6−321928−14]
- Answer
-
ST=[0−612−39522 8−14]
Construct I4×4.
- Answer
Construct the transpose of I3×3.
- Answer
-
IT3×3=I3×3
Write the column matrix [432] using vector bracket notation, < >.
- Answer
-
<4,3,2>
Construct a 2 × 2 matrix in which the diagonal elements are 5 and 6 and the non-diagonal elements are 0 and 2.
- Answer
-
[5026] or [5206]