




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































- Lecture Systems of Linear Equations
system consisting of m = 2 equations and n = 3 unknowns:
x 1 − 5 x 2 − 7 x 3 = 0 5 x 2 + 11x 3 = 1
Here is a linear system consisting of m = 3 equations and n = 2 unknowns:
− 5 x 1 + x 2 = − 1 πx 1 − 5 x 2 = 0 63 x 1 −
2 x 2 = − 7
And finally, below is a linear system consisting of m = 4 equations and n = 6 unknowns:
− 5 x 1 + x 3 − 44 x 4 − 55 x 6 = − 1 πx 1 − 5 x 2 − x 3 + 4x 4 − 5 x 5 +
5 x 6 = 0 63 x 1 −
2 x 2 − 15 x 3 + ln(3)x 4 + 4x 5 − 331 x 6 = 0
63 x 1 −
2 x 2 −
x 3 − 18 x 4 − 5 x 6 = 5
Example 1.2. Verify that (1, 2 , −4) is a solution to the system of equations
2 x 1 + 2x 2 + x 3 = 2 x 1 + 3x 2 − x 3 = 11.
Is (1, − 1 , 2) a solution to the system?
Solution. The number of equations is m = 2 and the number of unknowns is n = 3. There are m × n = 6 coefficients: a 11 = 2, a 12 = 1, a 13 = 1, a 21 = 1, a 22 = 3, and a 23 = −1. And b 1 = 0 and b 2 = 11. The list of numbers (1, 2 , −4) is a solution because
2 · (1) + 2(2) + (−4) = 2
(1) + 3 · (2) − (−4) = 11
On the other hand, for (1, − 1 , 2) we have that
2(1) + 2(−1) + (2) = 2
but 1 + 3(−1) − 2 = − 4 6 = 11.
Thus, (1, − 1 , 2) is not a solution to the system.
A linear system may not have a solution at all. If this is the case, we say that the linear system is inconsistent:
Lecture 1
A linear system is called consistent if it has at least one solution:
CONSISTENT ⇔ AT LEAST ONE SOLUTION
We will see shortly that a consistent linear system will have either just one solution or infinitely many solutions. For example, a linear system cannot have just 4 or 5 solutions. If it has multiple solutions, then it will have infinitely many solutions.
Example 1.3. Show that the linear system does not have a solution.
−x 1 + x 2 = 3 x 1 − x 2 = 1.
Solution. If we add the two equations we get
0 = 4
which is a contradiction. Therefore, there does not exist a list (s 1 , s 2 ) that satisfies the system because this would lead to the contradiction 0 = 4.
Example 1.4. Let t be an arbitrary real number and let
s 1 = −^32 − 2 t s 2 = 32 + t s 3 = t.
Show that for any choice of the parameter t, the list (s 1 , s 2 , s 3 ) is a solution to the linear system
x 1 + x 2 + x 3 = 0 x 1 + 3x 2 − x 3 = 3.
Solution. Substitute the list (s 1 , s 2 , s 3 ) into the left-hand-side of the first equation
( −^32 − 2 t
2 +^ t
and in the second equation
( −^32 − 2 t
Both equations are satisfied for any value of t. Because we can vary t arbitrarily, we get an infinite number of solutions parameterized by t. For example, compute the list (s 1 , s 2 , s 3 ) for t = 3 and confirm that the resulting list is a solution to the linear system.
Lecture 1
We can study matrices without interpreting them as coefficient matrices or augmented ma- trices associated to a linear system. Matrix algebra is a fascinating subject with numerous applications in every branch of engineering, medicine, statistics, mathematics, finance, biol- ogy, chemistry, etc.
In algebra, you learned to solve equations by first “simplifying” them using operations that do not alter the solution set. For example, to solve 2x = 8 − 2 x we can add to both sides 2 x and obtain 4x = 8 and then multiply both sides by 14 yielding x = 2. We can do similar operations on a linear system. There are three basic operations, called elementary operations, that can be performed:
These operations do not alter the solution set. The idea is to apply these operations itera- tively to simplify the linear system to a point where one can easily write down the solution set. It is convenient to apply elementary operations on the augmented matrix [A b] repre- senting the linear system. In this case, we call the operations elementary row operations, and the process of simplifying the linear system using these operations is called row reduc- tion. The goal with row reducing is to transform the original linear system into one having a triangular structure and then perform back substitution to solve the system. This is best explained via an example.
Example 1.5. Use back substitution on the augmented matrix
to solve the associated linear system.
Solution. Notice that the augmented matrix has a triangular structure. The third row corresponds to the equation x 3 = 1. The second row corresponds to the equation
x 2 − x 3 = 0
and therefore x 2 = x 3 = 1. The first row corresponds to the equation
x 1 − 2 x 3 = − 4
and therefore x 1 = −4 + 2x 3 = −4 + 2 = − 2.
Therefore, the solution is (− 2 , 1 , 1).
Systems of Linear Equations
Example 1.6. Solve the linear system using elementary row operations.
− 3 x 1 + 2x 2 + 4x 3 = 12 x 1 − 2 x 3 = − 4 2 x 1 − 3 x 2 + 4x 3 = − 3
Solution. Our goal is to perform elementary row operations to obtain a triangular structure and then use back substitution to solve. The augmented matrix is
Interchange Row 1 (R 1 ) and Row 2 (R 2 ):
As you will see, this first operation will simplify the next step. Add 3R 1 to R 2 :
Add − 2 R 1 to R 3 :
Multiply R 2 by 12 : (^)
1 −^2 −^ R→^2
Add 3R 2 to R 3 : (^)
Multiply R 3 by 15 : (^)
1 −^5 −^ R→^3
We can continue row reducing but the row reduced augmented matrix is in triangular form. So now use back substitution to solve. The linear system associated to the row reduced
Systems of Linear Equations
corresponds to the equation 0 x 1 + 0x 2 + 0x 3 = − 1
Obviously, there are no numbers x 1 , x 2 , x 3 that satisfy this equation, and therefore, the linear system is inconsistent, i.e., it has no solution. In general, if we obtain a row in an augmented matrix of the form [ 0 0 0 · · · 0 c
where c is a nonzero number, then the linear system is inconsistent. We will call this type of row an inconsistent row. However, a row of the form [ 0 1 0 0 0
corresponds to the equation x 2 = 0 which is perfectly valid.
The set of points (x 1 , x 2 ) that satisfy the linear system
x 1 − 2 x 2 = − 1 −x 1 + 3x 2 = 3
is the intersection of the two lines determined by the equations of the system. The solution for this system is (3, 2). The two lines intersect at the point (x 1 , x 2 ) = (3, 2), see Figure 1.1.
Figure 1.1: The intersection point of the two lines is the solution of the linear system (1.2)
Similarly, the solution of the linear system
x 1 − 2 x 2 + x 3 = 0 2 x 2 − 8 x 3 = 8 − 4 x 1 + 5x 2 + 9x 3 = − 9
Lecture 1
is the intersection of the three planes determined by the equations of the system. In this case, there is only one solution: (29, 16 , 3). In the case of a consistent system of two equations, the solution set is the line of intersection of the two planes determined by the equations of the system, see Figure 1.2.
the solution set is this line
x 1 − 2 x 2 + x 3 = 0 − 4 x 1 + 5x 2 + 9x 3 = − 9
Figure 1.2: The intersection of the two planes is the solution set of the linear system (1.3)
After this lecture you should know the following:
Lecture 2
In this lecture, we will get more practice with row reduction and in the process introduce two important types of matrix forms. We will also discuss when a linear system has a unique solution, infinitely many solutions, or no solution. Lastly, we will introduce a convenient parameter called the rank of a matrix.
Consider the linear system
x 1 + 5x 2 − 2 x 4 − x 5 + 7x 6 = − 4 2 x 2 − 2 x 3 + 3x 6 = 0 − 9 x 4 − x 5 + x 6 = − 1 5 x 5 + x 6 = 5 0 = 0
having augmented matrix
The above augmented matrix has the following properties:
P1. All nonzero rows are above any rows of all zeros.
P2. The leftmost nonzero entry of a row is to the right of the leftmost nonzero entry of the row above it.
Row Reduction and Echelon Forms
Any matrix satisfying properties P1 and P2 is said to be in row echelon form (REF). In REF, the leftmost nonzero entry in a row is called a leading entry:
A consequence of property P2 is that every entry below a leading entry is zero:
We can perform elementary row operations, or row reduction, to transform a matrix into REF.
Example 2.1. Explain why the following matrices are not in REF. Use elementary row operations to put them in REF.
Solution. Matrix M fails property P1. To put M in REF we interchange R 2 with R 3 :
The matrix N fails property P2. To put N in REF we perform the operation − 2 R 2 + R 3 → R 3 : (^)
Why is REF useful? Certain properties of a matrix can be easily deduced if it is in REF. For now, REF is useful to us for solving a linear system of equations. If an augmented matrix is in REF, we can use back substitution to solve the system, just as we did in Lecture 1. For example, consider the system
8 x 1 − 2 x 2 + x 3 = 4 3 x 2 − x 3 = 7 2 x 3 = 4
Row Reduction and Echelon Forms
Create zeros under the newly created leading 1:
Create a leading 1 in the second row:
1 −^2 −^ R→^2
Create zeros under the newly created leading 1:
We have now completed the top-to-bottom phase of the row reduction algorithm. In the next phase, we work bottom-to-top and create zeros above the leading 1’s. Create zeros above the leading 1 in the third row:
Create zeros above the leading 1 in the second row:
This completes the row reduction algorithm and the matrix is in RREF.
Example 2.3. Use row reduction to solve the linear system.
2 x 1 + 4x 2 + 6x 3 = 8 x 1 + 2x 2 + 4x 3 = 8 3 x 1 + 6x 2 + 9x 3 = 12
Solution. The augmented matrix is
Lecture 2
Create a leading 1 in the first row:
(^12) R 1 −−→
Create zeros under the first leading 1:
The system is consistent, however, there are only 2 nonzero rows but 3 unknown variables. This means that the solution set will contain 3 − 2 = 1 free parameter. The second row in the augmented matrix is equivalent to the equation:
x 3 = 4.
The first row is equivalent to the equation:
x 1 + 2x 2 + 3x 3 = 4
and after substituting x 3 = 4 we obtain
x 1 + 2x 2 = − 8.
We now must choose one of the variables x 1 or x 2 to be a parameter, say t, and solve for the remaining variable. If we set x 2 = t then from x 1 + 2x 2 = −8 we obtain that
x 1 = − 8 − 2 t.
We can therefore write the solution set for the linear system as
x 1 = − 8 − 2 t x 2 = t x 3 = 4
where t can be any real number. If we had chosen x 1 to be the parameter, say x 1 = t, then the solution set can be written as
x 1 = t x 2 = − 4 − 12 t x 3 = 4
Although (2.1) and (2.2) are two different parameterizations, they both give the same solution set.