1 MATH 129 - Chapter One: Systems of Linear Equations
1 MATH 129 - Chapter One: Systems of Linear Equations
Learning Objectives:
(c) Use back-substitution and Gaussian elimination to solve a system of linear equations - including
parametrized solutions.
(d) Determine for which values a parameterized system of linear equations has a unique solution, infinitely
many solutions, or no solution.
1. 3x = 9 is a linear equation.
Activity 1: Now you try! Determine if these two equations are linear or nonlinear.
1. sin(π)y − z = −10
2. 3x + yz = e4
1
MATH 129 Lecture Notes Chapter One
into the equation. Sometimes we will write our solution as an n-tuple written as (s1 , s2 , · · · , sn ).
Definition: The set of all solutions of a linear equation is called its , and
when you have found this set, you have solved the equation.
Definition: To describe the entire solution set of a linear equation, we will use what is called a
.
Step 1: Choose a variable to solve for and then solve for that variable.
Step 2: The other variables in the equation are what are called free variables. Observe the above equation
has two free variables. Therefore, we will introduce two different parameters (one for each free variable).
Write the parametric equations based off your work in Step 1 using the parameters s and t.
Step 3: Give one example of a particular solution. That is, choose a value for s and a value for t, then
determine the values of x, y, and z for the chosen s and t.
Step 4: Write the entire solution set of the equation 3x + 2y − z = 3 using set notation.
2
MATH 129 Lecture Notes Chapter One
Example 1: Solve the linear equation x1 +2x2 = 4. Write your answer as a solution set using set notation.
Now we look into solving multiple linear equations at the same time.
Number of Solutions of a System of Linear Equations: For a system of linear equations, precisely
one of the statements is true.
3
MATH 129 Lecture Notes Chapter One
x − 2y + 3z = 9 x − 2y + 3z = 9
−x + 3y = −4 y + 3z = 5
2x − 5y + 5z = 17 z=2
If we were to solve these two systems using algebraic methods, the second system would be easier to solve.
The second system is in which means that it has
a “stair-step” pattern with leading coefficients of 1. We can use a method called
to quickly solve such systems.
x − 2y + 3z = 9 (Equation 1)
y + 3z = 5 (Equation 2)
z = 2 (Equation 3)
x + 3y = 10
y=4
4
MATH 129 Lecture Notes Chapter One
Definition: Two systems of linear equations are when they have the same
solution set.
If we are given a system of linear equations that is not in row-echelon form, we will use operations to
rewrite the system as an equivalent system that is in row-echelon form. What are these operations?
Operations that Produce Equivalent Systems: Each of these operations on a system of linear equa-
tions produces an equivalent system.
1. Interchange two equations.
Definition: Rewriting a system of linear equations in row-echelon form usually involves using a sequence of
allowable operations to provide a chain of equivalent systems. This process is called
x − 2y + 3z = 9 (1)
−x + 3y = −4 (2)
2x − 5y + 5z = 17 (3)
x −2y +3z= 9
+ −x +3y = −4
y +3z= 5
This produces the equivalent system
x − 2y + 3z = 9 (1)
y + 3z = 5 (2)
2x − 5y + 5z = 17 (3)
Now if we add −2 times the first equation to the third equation, this produces a new third equation which
lacks the variable x.
5
MATH 129 Lecture Notes Chapter One
x − 2y + 3z = 9 (1)
y + 3z = 5 (2)
−y − z = −1 (3)
Notice we have elimiated the variable x from both equation 2 and equation 3. Now we focus on equation
2 and equation 3 to eliminate either y or z. If we add the equation 2 to equation 3, we get a new third
equation.
y +3z= 5
+ −y −z = −1
2z = 4
This produces the equivalent system
x − 2y + 3z = 9 (1)
y + 3z = 5 (2)
2z = 4 (3)
1
If we multiply equation 3 by , we get a new equation 3. This produces the equivalent system
2
x − 2y + 3z = 9 (1)
y + 3z = 5 (2)
z = 2 (3)
which is in row-echelon form. We can now use back-substitution to get ONE solution (x, y, z) = (1, −1, 2).
6
MATH 129 Lecture Notes Chapter One
x+y =4
2x + 2y = −6
Solution: Let’s start by eliminating x. Taking −2 times the first equation and adding it to the second
equation, we get a new second equation. What is the new second equation?
−2x −2y= −8
+ 2x +2y= −6
What is the equivalent system of linear equations you obtain after doing the above operation?
You should notice that your new second equation has no variables and has two different numbers equal to
each other. Since 0 ̸= −14, we conclude that this system has NO SOLUTION.
7
MATH 129 Lecture Notes Chapter One
x2 − x3 = 0 (1)
x1 − 3x3 = −1 (2)
−x1 + 3x2 = 1 (3)
Solution: Use any of the allowable operations to produce an equivalent system in row-echelon form.
[Hint: You should be able to do this using about 3 operations.]
At this point you should notice that one of your equations becomes 0 = 0 which is always true. This
equation is unnecessary, so we will ignore it and solve the system involving the other two equations. Note
you have more variables than equations now! This means you might have some free variables.
Using the parameter t, give the parametric equations for x1 , x2 , and x3 . Be sure to specify what values t
can be! Then write your solution set in set notation (also referred to as set-builder notation).
8
MATH 129 Lecture Notes Chapter One
(b) Identify a row-echelon form and the reduced row-echelon form of a matrix.
(c) Use elementary row operations on matrices - including to perform Gaussian elimination and Gauss-
Jordan elimination.
(d) Use matrices to represent and solve systems of linear equations - using Gaussian elimination and
back-substitution or using Gauss-Jordan elimination.
(e) Determine when a homogeneous system of linear equations has infinitely many solutions.
Last Time: We solved systems of linear equations using back substitution and elimination. Today we
focus on a more efficient way to solve systems of any size.
Motivating Example: Solve the system below.
2x + y − z + 2w = −6
3x + 4y + w = 1
x + 5y + 2z + 6w = −3
5x + 2y − z − w = 3.
Note: We can use substitution or Gaussian elimination but this process may be tedious. What method
could we use instead to make solving a larger system of linear equations easy to solve?
in which each entry aij of the matrix is a number. An m × n matrix has m rows and n columns.
1. The entry aij is located in the row and the column. The index i is called the
and the index j is called the .
9
MATH 129 Lecture Notes Chapter One
Quick Examples:
" √ #
3 π 2
1. is a 2 × 3 matrix.
7 −1 0
" #
1 −2
2. is a 2 × 2 matrix, i.e. a square matrix of order 2.
3 4
Definition: The matrix derived from the coefficients and constant terms of a system of linear equations is
called the matrix. The matrix containing only the coefficients of the system
is called the matrix.
Example 1: " #
x+y =2 1 1 2
has augmented matrix .
x + 2y = 7 1 2 7
However, it can be helpful to indicate where the equal sign is for the two equations.
" Therefore,
# we often
1 1 2
use a line to separate the constant terms and the variable coefficients like so: . This may be
1 2 7
helpful, but it is a personal choice and NOT something that will be required of you.
" #
1 1
The coefficient matrix for the system is .
1 2
Activity 1: Write the system of linear equations that corresponds to the augmented matrix.
3 0 1 4
0 6 −4 −3
−4 1 −2 e
Recall: We used operations for Gaussian elimination in order to solve systems in section 1.1. These
same operations can be applied to rows of an augmented matrix to produce an equivalent matrix that
corresponds to a system that is easier to solve. This process is called Gauss-Jordan elimination. The
operations we will use during Gauss-Jordan elimination are called elementary row operations.
10
MATH 129 Lecture Notes Chapter One
Review What are the three operations we used in section 1.1 to solve systems of linear equations?
1.
2.
3.
Now we see how these operations get translated into matrix terminology.
1 1
Example: R1 → R1 which is read as “ times row 1 produces a new row 1.”
5 5
Example: −3R1 + R2 → R2 which is read as “-3 times row 1 plus row 2 produces a new row 2.”
11
MATH 129 Lecture Notes Chapter One
Solution: Let’s start by writing out the augmented matrix that corresponds to this system. State the
augmented matrix below.
Now, if we were using Gaussian elimination on the system, we would want to eliminate the variable x from
equations 2 and 3. What two operations would we have performed to do this?
1.
2.
1.
2.
Write a sequence of row-equivalent matrices (performing only one elementary row operation at each tran-
sition) such that the last matrix produced corresponds to a system in row-echelon form.
12
MATH 129 Lecture Notes Chapter One
Now use back substitution on the above system, in order to find a solution.
Observe: The system of linear equations that corresponded to the last matrix in our sequence was in
row-echelon form. There is a version of row-echelon form for matrices as well.
2. For each row that does not consist entirely of zeros, the first nonzero entry is a 1
(We call these ).
3. For two successive nonzero rows, the leading 1 in the higher row is farther to the left than the leading
1 in the lower row.
13
MATH 129 Lecture Notes Chapter One
1 2 −1 4
1. 0 1 0 3 is in .
0 0 1 −2
1 2 −1 7
2. 0 0 0 0 is in .
0 1 1 −3
1 0 0 2
0 1 0 3
3. is in .
0
0 1 −5
0 0 0 0
1 0 −1 5 0
0 2 0 3 −1
1.
0
0 1 0 −2
0 0 0 1 10
" #
1 2 4
2.
0 1 0
One General Method for Putting a Matrix in Row-Echelon Form: The following method is just a
guide that may be useful to decide which elementary row operations you might want to use. However, you
do not need to perform this step-by-step process! After some practice, you will find that in some scenarios
a more clever sequence of steps might get you to a row-echelon form faster. The goal is to obtain ones on
the main diagonal (if possible) and zeros below those ones. (example 2)
1. Put a one in entry a11 spot using elementary row operations if necessary.
2. Zero out all other entries in column one using elementary row operations.
3. Put a one in the a22 spot using elementary row operations if necessary.
4. Zero out all other entries below the 1 in column two using elementary row operations.
5. Move down main diagonal making the aii entries 1’s with zeros below it.
14
MATH 129 Lecture Notes Chapter One
Activity 2: Solve if possible using Gauss-Jordan elimination. State how many solutions the system has,
if any. (Example 6 in textbook)
x1 − x2 + 2x3 = 4
x1 + x3 = 6
2x1 − 3x2 + 5x3 = 4
3x1 + 2x2 − x3 = 1
15
MATH 129 Lecture Notes Chapter One
Definition: Systems of linear equations in which each of the constant terms is zero are called
.
Definition: If a system of linear equations has the solution where all variables are zero, then this system
is said to have the .
Activity 3: Solve the system, if possible, below using Gauss-Jordan elimination. State how many solutions
this system has, if any.
x1 − x2 + 3x3 = 0
2x1 + x2 + 3x3 = 0
16
MATH 129 Lecture Notes Chapter One
Learning Objectives:
(a) Set up and solve a system of linear equations to fit a polynomial function to a set of data points.
(b) Set up and solve a system of linear equations to represent a network - including electrical and traffic
flow networks.
(c) Set up and solve a system of linear equations in order to perform partial fraction decomposition.
Example 1: The Table below shows the U.S. population figures for years 1940, 1950, 1960, and 1970.
Find a polynomial that fits the data and use it to estimate the population in 1980.
Year 1940 1950 1960 1970
Population (in millions) 132 151 179 203
Question: How do we go about finding a polynomial model that best fits the given data?
Answer: We will use a process called .
2. Form the system of linear equations by plugging in the given points to the general form of p(x).
3. Use any method from section 1.1 and 1.2 to solve the system.
Note that the numbers 1940, 1950, 1960, and 1970 are quite large. If we suppose x represents these
quantities, and p(x) represents the population, we obtain a complicated system of equations:
However, 1940 is already a large number. When we consider that we’ll have to work with (1970)3 =
7, 645, 373, 000 in our calculations this way, the task seems rather daunting!
Thus, it may be easier to let x be the number of decades after 1940. That is, if the years 1940, 1950,
etc. are instead called y, then y = 1940 + 10x. This gives us the following table:
Year y 1940 1950 1960 1970
Decades since 1940 x
Population (in millions) p(x) 132 151 179 203
17
MATH 129 Lecture Notes Chapter One
Estimation: How could we use this polynomial to estimate the population in a given year?
18
MATH 129 Lecture Notes Chapter One
π π
Example 2: Use sin(0) = 0, sin 2
= 1, and sin(π) = 0 to estimate sin 3
.
19
MATH 129 Lecture Notes Chapter One
Network Analysis: Networks composed of branches and junctions are used as models in such fields as
economics, traffic analysis, electrical engineering, and irrigation systems. In a network model, you assume
that the total flow into a junction is equal to the total flow out of the junction. We can also analyze
electrical networks but we need to assume two properties.
Kirchoff ’s Law: For electrical networks, the system uses two properties:
1. All the current flowing into a junction must flow out of it.
2. The sum of the products IR (I is current and R is resistance) around a closed path is equal to the
total voltage in the path.
Note: In an electrical network, current is measured in amperes, or amps (A), resistance is measured in
ohms (Ω), and the product of current and resistance is measured in volts (V ).
Example 3: Determine the currents Ij for j = 1, 2, 3 for the electrical network shown in the figure below,
assuming V1 = 10 V and V2 = 7 V.
20
MATH 129 Lecture Notes Chapter One
Example 4: Intersections in England are often constructed as one-way “roundabouts,” such as the one
show in the figure below. Assume that traffic must flow in the directions shown. Find the general solution
of the network flow (in vehicles per hour). If the third quadrant (represented by x3 ) is traversed by 10
vehicles per hour, what is x2 ?
x2 B x1
50 C A 30
x3 D x4
20
21