StewartPCalc7 10 03
StewartPCalc7 10 03
10 and Inequalities
4
Matrices and Systems Of Linear Equations
5
Matrices
6
Matrices
We begin by defining the various elements that make up a
matrix.
7
Matrices
Here are some examples of matrices.
Matrix Dimension
8
The Augmented Matrix
of a Linear System
9
The Augmented Matrix of a Linear System
Here is an example.
Linear system Augmented matrix
Solution:
First we write the linear system with the variables lined up
in columns.
11
Example 1 – Solution cont’d
12
Elementary Row Operations
13
Elementary Row Operations
14
Elementary Row Operations
We use the following notation to describe the elementary row
operations:
Symbol Description
Solution:
Our goal is to eliminate the x-term from the second
equation and the x- and y-terms from the third equation.
16
Example 2 – Solution cont’d
Add (–1)
Equation 1 to
Equation 2.
Add (–3)
Equation 1
to Equation 3.
17
Example 2 – Solution cont’d
Multiply
Equation 3
by .
Add (–3)
Equation 3 R2 – 3R3 R2
to Equation 2
(to eliminate y
from Equation 2).
18
Example 2 – Solution cont’d
Interchange R2 R3
Equations
2 and 3.
19
Gaussian Elimination
20
Gaussian Elimination
In general, to solve a system of linear equations using its
augmented matrix, we use elementary row operations to
arrive at a matrix in a certain form. This form is described in
the following box.
21
Gaussian Elimination
In the following matrices the first one is not in row-echelon
form.
22
Gaussian Elimination
The second one is in row-echelon form, and the third one is
in reduced row-echelon form. The entries in red are the
leading entries.
23
Gaussian Elimination
Here is a systematic way to put a matrix in row-echelon
form using elementary row operations:
24
Gaussian Elimination
• At each stage make sure that every leading entry is to the
25
Gaussian Elimination
Once an augmented matrix is in row-echelon form, we can
solve the corresponding linear system using back
substitution.
26
Example 3 – Solving a System Using Row-Echelon Form
Solution:
We first write the augmented matrix of the system, and
then we use elementary row operations to put it in row-
echelon form.
Augmented matrix:
27
Example 3 – Solution cont’d
28
Example 3 – Solution cont’d
R3 – 5R2 R3
Row-echelon form:
29
Example 3 – Solution cont’d
Back-substitute:
We use back-substitution to solve the system.
y + 4(– 2) = –7 Back-substitute z = –2
into Equation 2
30
Example 3 – Solution cont’d
x = –3 Solve for x
31
Gauss-Jordan Elimination
32
Gauss-Jordan Elimination
If we put the augmented matrix of a linear system in
reduced row-echelon form, then we don’t need to back
substitute to solve the system.
33
Gauss-Jordan Elimination
Here is how the process works for a 3 4 matrix:
34
Example 4 – Solving a System Using Reduced Row-Echelon Form
Solution:
In Example 3 we used Gaussian elimination on the
augmented matrix of this system to arrive at an equivalent
matrix in row-echelon form.
35
Example 4 – Solution cont’d
R2 – 4R3 R2
R1 + R3 R1
36
Example 4 – Solution cont’d
R1 – 2R2 R1
38
Inconsistent and Dependent Systems
The systems of linear equations that we considered in
Examples 1–4 had exactly one solution.
39
Inconsistent and Dependent Systems
Fortunately, the row-echelon form of a system allows us to
determine which of these cases applies, as described in the
following box.
40
Inconsistent and Dependent Systems
First we need some terminology. A leading variable in a
linear system is one that corresponds to a leading entry in
the row-echelon form of the augmented matrix of the
system.
41
Example 5 – A System with No Solution
Solve the following system:
Solution:
We transform the system into row-echelon form.
R2 – 2R1 R2
R3 – R1 R3
42
Example 5 – Solution cont’d
R3 – R2 R3
Solution:
We transform the system into reduced row-echelon form.
R1 R3
44
Example 6 – Solution cont’d
R2 + R1 R2 R3 + 2R2 R3
R3 + 3R1 R3
R1 – R2 R1
x = 7t – 5
y = 3t + 1
z=t
48
Modeling with Linear Systems
Linear equations, often containing hundreds or even
thousands of variables, occur frequently in the applications
of algebra to the sciences and to other fields.
49
Example 8 – Nutritional Analysis Using a System of Linear Equations
50
Example 8 – Nutritional Analysis Using a System of Linear Equations
cont’d
51
Example 8 – Solution
Let x, y, and z represent the number of ounces of MiniCal,
LiquiFast, and SlimQuick, respectively, that the subject
should eat every day.
52
Example 8 – Solution cont’d
Potassium
Protein
Vitamin D
53
Example 8 – Solution cont’d
54
Example 8 – Solution cont’d
55