Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

4.1: Matrices

( \newcommand{\kernel}{\mathrm{null}\,}\)

Matrix

Definition: Matrix

A matrix is a rectangular array of objects, often numbers.

Example 4.1.1

The rectangular array of numbers [520463 ] 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 4.1.1 is a 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.

Elements 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       a3nam1am2       amn]. For some number m, the element am2 is the number in row m, column 2.

Your turn:

In the matrix B=[042115338 ],

  1. Specify the size of B.
  2. Find the value of b11.
  3. Find the value of b13.
  4. Find the value of b32.

ANS: (a) 3×3, (b) 0, (c) 2, (d) 3

Equal Matrices

Definition: 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

Definition: Square Matrices

A matrix is called square if it has the same number of columns as rows.

Example 4.1.2

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=[210345167]

Imagine a line passing from the top left element to the bottom right element as in the picture.

A=∣810345167]

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

Definition: 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.

Example 4.1.3

The square matrix I=[100010001] is the 3×3. We could write I3×3 to indicate the 3×3 identity matrix.

The Zero Matrix

Definition: Zero Matrix

The zero matrix is a matrix, in which every element is 0.

Zero matrices are commonly named with a 0.

Example 4.1.4

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].

Definition: Transpose of a Matrix

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

Definition: Row Matrix

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.

Definition: Column 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

Exercise 4.1.1

Specify the dimension of each matrix.

  1. S=[025632192814]
  2. T=[563003]
  3. Q=[101]
Answer
  1. 4×3
  2. 2×3
  3. 1×3
Exercise 4.1.2

True or False: The transpose of a square matrix is also a square matrix.

Answer

True

Exercise 4.1.3

In the matrix S=[025632192814]

  1. Find the value of S13.
  2. Find the value of S23.
  3. Find the value of S31.
  4. Find the value of S43.
Answer
  1. 5
  2. 2
  3. 1
  4. 4
Exercise 4.1.4

Construct and name the transpose of S=[025632192814]

Answer

ST=[061239522    814]

Exercise 4.1.5

Construct I4×4.

Answer
Exercise 4.1.6

Construct the transpose of I3×3.

Answer

IT3×3=I3×3

Exercise 4.1.7

Write the column matrix [432] using vector bracket notation, < >.

Answer

<4,3,2>

Exercise 4.1.8

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]


This page titled 4.1: Matrices is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Denny Burzynski (Downey Unified School District) .

Support Center

How can we help?