Chapter 1
Chapter 1
Chapter 1
1
Systems of Linear
Equations
1.1 Introduction to Systems of Linear Equations
1.2 Gaussian Elimination and Gauss-Jordan Elimination
1.3 Applications of Systems of Linear Equations
Chapter Objectives
Recognize, graph, and solve a system of linear equations
in n variables.
Use back substitution to solve a system of linear
equations.
Determine whether a system of linear equations is
consistent or inconsistent.
Determine if a matrix is in row-echelon form or reduced
row-echelon form.
Use element row operations with back substitution to
solve a system in row-echelon form.
Use elimination to rewrite a system in row echelon form.
Example 1
Linear Equations:
3 x 2 y 7, x1 2 x 2 10 x 3 x 4 0,
True?
1
2
x y z 2 , (sin 2 ) x1 4 x 2 e 2 .
Nonlinear Equations:
xy z 2, Product of variables
e x 2 y 4, involved in exponential
sin x1 2 x 2 3x 3 0, involved in trigonometric
1
x
1y 4. Not the first power
Example 2
Parametric Representation of a Solution Set
Solve the linear equation x1 + 2x2 = 4
Sol: x1 = 4 2x2
Variable x2 is free (it can take on any real value).
Variable x1 is not free (its value depends on the value of x2).
By letting x2 = t (t: the third variable, parameter),
x1 4 2t ,
tR
you can represent the solution set as x2 t ,
Example 3
Parametric Representation of a Solution Set
Solve the linear equation 3x + 2y z = 3
Sol: Choosing y and z to be the free variables
x 1 23 y 13 z.
Letting y = s and z = t, you obtain the parametric
representation
x 1 23 s 13 t ,
y s, s, t R Infinite number of solutions
z t.
Chapter 1 1-7
Section 1-1
Example 4
Systems of two equations in two variables
Solve the following systems of linear equations, and graph
each system as a pair of straight lines.
y
x y 3 Two intersecting lines
(a ) x 1, y 2.
x y 1
y
x
x y 3
(b ) x 3 t , y t , t R.
2 x 2 y 6
y x
leading coefficient of 1.
Using back-substitution to solve a system in row-echelon
form.
Example 6.
Equivalent Systems
Two systems of linear equations are called equivalent if
they have precisely the same solution set.
Each of the following operations on a system of linear
equations produces an equivalent system.
1. Interchange two equations.
Example 7
A system with exactly one solution x 2 y 3z 9
x 3y 4
Solve the system
2 x 5 y 5 z 17
Adding the first Adding –2 times the Adding the second
equation to the second first equation to the equation to the third
produces a new third equation equation produces a
second equation. produces a new third new third equation.
x 2 y 3z 9 equation.
x 2 y 3z 9 x 2 y 3z 9
y 3z 5 (2) y 3z 5 y 3z 5
2 x 5 y 5 z 17 y z 1 2 z 4 (1/2)
The solution is x = 1, y = 1, and z = 2.
Ming-Feng Yeh Chapter 1 1-12
Section 1-1
Example 8
x1 3 x 2 x 3 1 (2)
An Inconsistent System
2 x1 x 2 2 x 3 2
Solve the system
x1 2 x 2 3 x 3 1
Adding –2 times the Adding –1 times the Adding –1 times the
first equation to the first equation to the 2nd equation to the
second produces a third produces a new 3rd produces a new
new second equation. third equation. 3rd equation.
x1 3x 2 x 3 1 x1 3x 2 x 3 1 x1 3x 2 x 3 1
5 x 2 4 x3 0 (1) 5 x 2 4 x3 0 5 x 2 4 x3 0
(1)
x1 2 x 2 3x 3 1 5 x 2 4 x 3 2 0 2
Because the third “equation” is a false statement, this system has no
solution. because this system is equivalent to the original system, you can
Moreover,
conclude that the original system also has no system.
Ming-Feng Yeh Chapter 1 1-13
Section 1-1
Example 9
A system with an infinite number of solutions
x2 x3 0
Solve the system
x1 3x3 1
x1 3 x2 1
The first two equations Adding the first Adding –3 times the
are interchanged. equation to the third 2nd equation to the
produces a new third 3rd produces a new
equation. 3rd equation.
x1 3 x3 1 x1 3x3 1 x1 3 x3 1
x2 x3 0 x2 x3 0 x2 x3 0
(3)
x1 3 x2 1 3 x2 3x3 0 0 0 unnecessary
x1 1 3 x3 1 3t
Let x3 = t, t R
Ming-Feng Yeh x2 x3 t Chapter 1 1-14
1.2 Gaussain Elimination and
Gauss-Jordan Elimination
a11 a12 a13 a1n
Definition: Matrix a a2 n
21 a 22 a23
If m and n are positive integers, a31 a32 a33 a3 n
then an mn matrix is a rectangular array
am1 am 2 am3 a mn
in which each entry, aij, of the matrix is a number.
An mn matrix has m rows (horizontal lines) and n columns (vertical lines).
The entry aij is located in the ith row and the jth column.
A matrix with m rows and n columns (an mn matrix) is said to be of size mn.
If m = n, the matrix is called square of order n.
For a square matrix, the entries a11, a22, a33, … are called the main diagonal
entries.
Ming-Feng Yeh Chapter 1 1-15
Section 1-2
Augmented/Coefficient Matrix
The matrix derived from the coefficients and constant
terms of a system of linear equations is called the
augmented matrix of the system.
The matrix containing only the coefficients of the system
is called the coefficient matrix of the system.
System Augmented Matrix Coefficient Matrix
x y z const.
x 4 y 3z 5 1 4 3 5 1 4 3
x 3 y z 3 1 1
3 1 3 3 1
2x 4z 6 2 0 4 6 2 0 4
Example 3
Using Elementary Row Operation to Solve a System
Linear System Associated Augmented matrix
x 2 y 3z 9 1 2 3 9 R2+R1R2
x 3y 4 1 3 0 4
2 x 5 y 5 z 17 2 5 5 17
1 2 3 9 R3+(2)R1R3 1 2 3 9
0 1 3 5 (2) 0 1 3 5 R3+R2R3
2 5 5 17 0 1 1 1
1 2 3 9 0.5R3R3 1 2 3 9 z 2
0 1 3 5 0 1 3 5 y 3 z 5 y 1
0 0 2 4 0.5 0 0 1 2 x 2 y 3 z 9 x 1
Ming-Feng Yeh Chapter 1 1-18
Section 1-2
Example 4
In row-echelon form
1 5 2 1 3 1 0 0 1
0 1 0 5
0 0 1 3 0 0 1 3 2 0 1 0 2
0 0 0 1 4 0 0 1 3
0 0 0 0
0 0 0 0 1 0 0 0 0
Not in row-echelon form
1 2 3 4 1 2 1 2
0 2 1 1 0 0 0 0
0 0 1 3 0 1 2 4
Example 6
x1 x2 2 x3 4
A system with no solution
x1 x3 6
Solve the system 2 x1 3 x2 5 x3 4
3 x1 2 x2 x3 1
1 1 2 4 1 1 2 4
1 0 (1)
1 6 0 1 1 2
(3) (2)
2 1 5 4 0 1 1 4
3 2 1 1 0 5 7 11
1 1 2 4
0 1 1 2
0 = 2 … ???
0 0 0 2
The original system of linear equations
0 5 7 11 is inconsistent.
Ming-Feng Yeh Chapter 1 1-23
Section 1-2
Gauss-Jordan Elimination
Continues the reduction process until a reduced row-
echelon form is obtained.
Example 7:
Use Gauss-Jordan elimination to solve the system
x 2 y 3z 9 In Ex. 3 1 2 3 9
2
x 3y 4 0 1 3 5
2 x 5 y 5 z 17 0 0 1 2
1 0 9 19 1 0 0 1 x 1
(9)
0 1 3 5 0 1 0 1 y 1
(3) z 2
0 0 1 2 0 0 1 2
Example 8
A System with an Infinite Number of Solutions
Solve the system of linear equations 2 x1 4 x2 2 x3 0
3 x1 5 x2 1
2 4 2 0 (1 2) 1 2 1 0 (3)
3 5
0 1 3 5 0 1
1 2 1 0 1 0 5 2
0 1 3 1 (1) 0 1 3 1
x1 2 5 x3 2 5t
Let x3 = t, t R
x2 1 3 x3 1 3t
Example 9
x1 x2 3 x3 0
Solve the system of linear equations
2 x1 x2 3 x3 0
1 1 3 0 (1) 1 1 3 0
2
1 3 0 0 3 3 0 (1 3)
1 1 3 0 1 0 2 0
0 1 1 0
0 1 1 0 (1)
x1 2 x3 2t
Let x3 = t, t R
x2 x3 t
Theorem 1.1
The Number of Solutions of a Homogeneous System
Every homogeneous system of linear equations is
consistent. Moreover, if the system has fewer
equations than variables, then it must have an
infinite number of solutions.
Network Analysis
focus on networks and Kirchhof’s Laws for electricity.
Network Analysis
Networks composed of branches and junctions are used as
models in the fields as diverse as economics, traffic
analysis, and electrical engineering.
The total flow into a junction is equal to the total flow out
of the junction.
Example. x
1
25 x1 x2 25
x2
Example 5
x1 x2 20 1 1 0 0 0 20
0 1 0 20
x3 20 x4 0 1
x2 x3 20 0 1 1 0 0 20
x1 10 x5 1 0 0 0 1 10
x5 10 x4 0 0 0 1 1 10
1 0 0 0 1 10 x5 t , t R
0 1 0 0 1 30 x1 t 10
0 0 1 0 1 10 x2 t 30
x3 t 10
0 0 0 1 1 10
0 0 0 0 0 0 x4 t 10
Ming-Feng Yeh Chapter 1 1-31
Section 1-3
Kirchhoff’s Laws
All the current flowing into a junction must flow
out of it. (KCL)
The sum of the products IR (I is the current and
R is the resistance) around a closed path is equal
to the total voltage in the path. (KVL)
A closed path is a sequence of branches such that the
beginning point of the first branch coincides with the
end point of the last branch.
Example 6
or : I1 I 3 I 2
Path 1: R1 I1 R2 I 2 3I1 2 I 2 7
Path 2: R2 I 2 R3 I 3 2 I 2 4 I 3 8
1 1 1 0 1 0 0 1
3 2 0 7 0 1 0 2
0 2 4 8 0 0 1 1
I1 1 amp
I 2 2 amp
I 1 amp
3
Ming-Feng Yeh Chapter 1 1-33
Section 1-3
Example 7