Systems of Linear Equations Matrices: Gauss-Jordan Elimination
Systems of Linear Equations Matrices: Gauss-Jordan Elimination
Systems of Linear Equations; Any linear system must have exactly one solution,
solution no
Matrices solution, or an infinite number of solutions.
Previously we considered the 2 × 2 case, in which the term
consistent is used to describe a system with a unique
Section 3 solution, inconsistent is used to describe a system with no
solution, and dependent is used for a system with an
Gauss-Jordan Elimination infinite number of solutions. In this section we will
consider larger systems with more variables and more
equations, but the same three terms are used to describe
them.
3 4
Matrix Representations Matrix Representations
(continued) (continued)
Case 2: inconsistent From the second row of Case 3: dependent When there are fewer nonnon-
the matrix, we find that zero rows of a system than
⎛1 2 3 4⎞ 0x + 0y +0z =6 ⎛1 2 3 4⎞ there are variables, there
⎜ ⎟ ⎜ ⎟ will be infinitely many
or
⎜0 0 0 6⎟ ⎜0 0 0 0⎟ solutions, and therefore
⎜0 0 0 0 ⎟⎠
0 = 6, ⎜0 0 0 0 ⎟⎠ the system is dependent.
⎝ an impossible equation. ⎝
From this, we conclude
that there are no solutions
to the linear system.
5 6
Examples of Reduced
Reduced Row Echelon Form
Row Echelon Form
9 10
Example Example
(continued) (continued)
11 12
Example Example
(continued) (continued)
13 14
Example Example
(continued) (continued)
Example 2 Example 2
21 22
Representation of a Solution of a
Final Result
Dependent System
⎛ 1 −1 −2 2⎞
Too get a zero
e o in the
t e third
t d ⎛ 1 −1 −2 2⎞ ⎜ ⎟ Next we can express
p the variable x
row, second entry we ⎜ ⎟ ⎜ 0 −1 10 1⎟ in terms of t as follows: From the
multiply row 2 by –1 and add ⎜ 0 −1 10 1 ⎟ ⎜0 0 0
⎝ 0 ⎟⎠ first row of the matrix, we have x –
the result to R3 and replace ⎜ ⎟ y -2z = 2.
R3 by that sum: Notice this ⎝ 0 −1 10 1 ⎠ We can interpret the
second row of this matrix If z = t and y = 10t – 1, we have
operations “wipes out” row 3 x – (10t – 1) – 2t = 2 or x = 12t + 1.
so row 3 consists entirely of ⎛ 1 −1 −2 2⎞ as
–y + 10z = 1, or Our general solution can now be
zeros. ⎜ ⎟
⎜ 0 −1 10 1⎟ 10z – 1 = y expressed in terms of t:
Any time you have fewer
So, if we let z = t (12t + 1,10t – 1, t),
non-zero rows than variables ⎜0 0 0 0 ⎟⎠
you will have a dependent ⎝ (arbitrary real number,) where t is an arbitrary real number.
system. then in terms of t,
y = 10t – 1.
23 24
Procedure for
Applications
Gauss-Jordan Elimination
Step 1. Choose the leftmost nonzero column and use appropriate
Systems of linear equations provide an excellent opportunity to
row operations to get a 1 at the top. discuss
di mathematical
th ti l modeling.
d li The
Th process off using
i mathematics
th ti
Step 2. Use multiples of the row containing the 1 from step 1 to to solve real-world problems can be broken down into three steps:
get zeros in all remaining places in the column containing this 1.
Step 1. Construct a mathematical model whose solution will
Step 3. Repeat step 1 with the submatrix formed by (mentally)
provide information about the real-world problem.
deleting the row used in step and all rows above this row.
Step 4. Repeat step 2 with the entire matrix, including the rows Real-world
problem
d l t d mentally.
deleted t ll Continue
C ti this
thi process until
til the
th entire
ti matrix
t i is
i 3. Interpret 1. Construct
in reduced form.
Note: If at any point in this process we obtain a row with all Mathematical Mathematical
zeros to the left of the vertical line and a nonzero number to the Solution 2. Solve Model
right, we can stop because we will have a contradiction.
25 26
Applications Solution
(continued)
Step 2. Solve the mathematical model. Step 1. The question in this example indicates that the relevant
variables are the number of each type of truck.
truck
Step 3. Interpret the solution to the mathematical model in
terms of the original real-world problem. x = number of 10-foot trucks
Example: Purchasing. A company that rents small moving y = number of 14-foot trucks
trucks wants to purchase 25 trucks with a combined capacity z = number of 24-foot trucks
of 28,000 cubic feet. Three different types of trucks are
We form the mathematical model:
available:
il bl a 10-foot
10 f t truck
t k withith a capacity
it off 350 cubic
bi feet,
f t a
14-foot truck with a capacity of 700 cubic feet, and a 24-foot x + y + z = 25 (Total number of trucks)
truck with a capacity of 1,400 cubic feet. How many of each
350x + 700y + 1,400z = 28,000 (Total capacity)
type of truck should the company purchase?
27 28
Solution Solution
(continued) (continued)
Step 2. Now we form the augmented coefficient matrix of Let z = t. Then for t any real number
th system
the t andd solve
l by
b using
i Gauss-Jordan
G J d elimination:
li i ti
x = 2t – 30
⎡ 1 1 1 25 ⎤
⎢350 700 1, 400 28, 000 ⎥ (1/350)R2 R2 y = –3t + 55
⎣ ⎦ z=t
⎡1 1 1 25⎤ –R1 + R2 R2 is a solution to our mathematical model.
⎢1 2 4 80 ⎥
⎣ ⎦ Step 3. We must interpret this solution in terms of the original
⎡1 1 1 25⎤ –R2 + R1 R1 problem. Since the variables x, y, and z represent numbers of trucks,
⎢0 1 3 55 ⎥ they must be nonnegative. And since we can’t purchase a fractional
⎣ ⎦
Matrix is in reduced form. number of trucks, each must be a nonnegative whole number.
⎡1 0 −2 −30 ⎤ x – 2z = –30 or x = 2z – 30,
⎢ 0 1 3 55 ⎥
⎣ ⎦ y + 3z = 55 or y = –3z + 55.
29 30
Solution
(continued)
Since t = z, it follows that t must also
be a nonnegative
g whole number. The 10-ft 14-ft. 24-ft
first and second equations in the truck truck truck
model place additional restrictions on t x y z
the values t can assume:
15 0 10 15
x = 2t – 30 > 0 implies that t > 15
y = –3t + 55 > 0 implies that t < 55/3 16 2 7 16
Thus the only possible values of t that 17 4 4 17
will produce meaningful solutions to
the original problem are 15, 16, 17, 18 6 1 18
and 18. A table is a convenient way to
display these solutions.
31