Professional Documents
Culture Documents
3
Introduction to Matrices
A matrix is a rectangular array of numbers. Each number
in a matrix is called an element of the matrix.
The elements a11, a22, a33,…, amm form the main diagonal
of a matrix. The elements 2, 6, and 7 form the main
diagonal of the matrix.
5
Introduction to Matrices
A matrix can be created from a system of linear equations.
2x – 3y + z = 2
x – 3z = 4
4x – y + 4z = 3
6
Introduction to Matrices
Using only the coefficients and constants of this system, we
can write the 3 4 matrix
7
Introduction to Matrices
The matrix formed by the coefficients of the system is the
coefficient matrix. The matrix formed from the constants
is the constant matrix for the system.
8
Introduction to Matrices
We can write a system of equations from an augmented
matrix.
9
Example 1 – Write the Augmented Matrix from a System of Equations
2x – 3y =4
x + 2y – 3z = 0
4x – y + 2z = 3
Solution:
10
Introduction to Matrices
In certain cases, an augmented matrix represents a system
of equations that we can solve by back substitution.
12
Introduction to Matrices
Example
The following matrices are in row echelon form.
13
Elementary Row Operations
14
Elementary Row Operations
We can write an augmented matrix in row echelon form by
using elementary row operations.
15
Elementary Row Operations
Elementary Row Operations
Given the augmented matrix for a system of linear
equations, each of the following elementary row operations
produces a matrix of an equivalent system of equations.
16
Elementary Row Operations
It is convenient to specify each row operation symbolically
as follows.
3. Replace the jth row with the sum of that row and a
nonzero multiple of the ith row: kRi + Rj
17
Elementary Row Operations
To demonstrate these operations, we will use the 3 3
matrix
18
Elementary Row Operations
In Example 2, we use elementary row operations to write a
matrix in row echelon form.
20
Example 2 – Write a Matrix in Row Echelon Form
Solution:
We use the following procedure to write a matrix in row
echelon form.
21
Example 2 – Solution cont’d
Change a22 to 1.
22
Example 2 – Solution cont’d
Change a33 to 1.
23
Example 2 – Solution cont’d
24
Gaussian Elimination Method
25
Gaussian Elimination Method
The Gaussian elimination method is an algorithm that
uses elementary row operations to solve a system of linear
equations.
2x + 5y = –1
3x – 2y = 8
26
Gaussian Elimination Method
The augmented matrix for the system is
27
Gaussian Elimination Method
Begin by multiplying row 1 by The result is a 1 as a11.
28
Gaussian Elimination Method
Now multiply row 2 by The result is a 1 as a22.
29
Gaussian Elimination Method
To solve by back substitution, replace y in the first equation
with –1 and solve for x.
x=2
30
Example 3 – Solve a System of Equations by Using the Gaussian Elimination Method
3t – 8u + 8v + 7w = 41
t – 2u + 2v + w = 9
2t – 2u + 6v – 4w = –1
2t – 2u + 3v – 3w = 3
31
Example 3 – Solution
Write the augmented matrix, and then use elementary row
operations to rewrite the matrix in row echelon form.
32
Example 3 – Solution cont’d
33
Example 3 – Solution cont’d
The solution is
34