




























































































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!





























































































GABRIEL NAGY
Mathematics Department, Michigan State University, East Lansing, MI, 48824.
JULY 20, 2009
Abstract. These are the lecture notes for the course MTH 415, Applied Linear Algebra, Winter Semester and Summer Session 2009. These notes present a basic introduction to linear algebra with emphasis on applications.
Date: July 20, 2009, [email protected]. 1
these notes:
R Set of real numbers, Q Set of rational numbers, Z Set of integer numbers, N Set of positive integers, { 0 } Zero set, ∅ Empty set, ∪ Union of sets, ∩ Intersection of sets, := Definition, ⇒ Implies, ∀ For all, ∃ There exists, Proof Beginning of a proof, § End of a proof, Example Beginning of an example, C End of an example.
1.1. Row picture A central problem in linear algebra is to find solutions of a system of linear equations. A 2 × 2 linear system consists of two linear equations in two unknowns, that is, given the real numbers A 11 , A 12 , A 21 , A 22 , b 1 , and b 2 , find all the numbers x and y solutions of
A 11 x + A 12 y = b 1 , (1.1) A 21 x + A 22 y = b 2. (1.2)
These equations are called a system because there is more than one equation, and they are called linear because the unknowns, x and y, appear as multiplicative factors with power zero or one (for example, there is no term proportional to x^2 or to y^3 ). The row picture of a linear system is the method of finding solutions to this system as the intersection of all solutions to every single equation in the system. The individual equations are called row equations, or simply rows of the system.
Example 1.1.1: An example of a 2 × 2 linear system is the following: Find all the numbers x and y solutions of
2 x − y = 0, (1.3) −x + 2y = 3. (1.4)
Solution: The solution to each row of the system above is found geometrically in Fig. 2.
1
2
−
first row
(1,2)
second row
x
y
y = 2x
2y = x+
Figure 2. The solution of a 2 × 2 linear system in the row picture is the intersection of the two lines, which are the solutions of each row equation.
Analytically, the solution can be found by substitution:
2 x − y = 0 ⇒ y = 2x ⇒ −x + 4x = 3 ⇒
x = 1, y = 2. C
An interesting property of the solutions to any 2 × 2 linear system is simple to prove using the row picture, and it is the following result.
Theorem 1.1. Given any 2 × 2 linear system, only one of the following statements holds:
(i) There exists a unique solution; (ii) There exist infinity many solutions. (iii) There exists no solution;
The solution of each separate equation in the examples above represents a plane in R^3. A solution to the whole system is a point that belongs to the three planes. In the 3 × 3 example above there is a unique solution, the point (1, 1 , −1), which means that the three planes intersect at a single point. In the general case, a 3 × 3 system can have a unique solution, infinitely many solutions or no solutions at all, depending on how the three planes in space intersect among them. The case with unique solution was represented in Fig. 4, while two possible situations corresponding to no solution are given in Fig. 5. Finally, two cases of 3 × 3 linear system having infinitely many solutions are pictured in Fig 6, where in the first case the solutions form a line, and in the second case the solution form a plane because the three planes coincide.
Figure 4. Planes representing the solutions of each row equation in a 3× 3 linear system having a unique solution.
Figure 5. Two cases of planes representing the solutions of each row equa- tion in 3 × 3 linear systems having no solutions.
Figure 6. Two cases of planes representing the solutions of each row equa- tion in 3 × 3 linear systems having infinity many solutions.
Solutions of linear systems with more than three unknowns can not be represented in the three dimensional space, in addition the substitution method becomes more involved to
solve. Hence, alternative ideas are needed to solve such systems. Later on we will introduce the Gauss-Jordan method, which is a procedure appropriate to solve large systems of linear equations in an efficient way.
Further reading. For more details on the row picture see Section 1.1 in Lay’s book [2].
1.2. Column picture Consider again the linear system in Eqs. (1.3)-(1.4) and introduce a change in the names of the unknowns, calling them x 1 and x 2 instead of x and y. The problem is to find the numbers x 1 , and x 2 solutions of
2 x 1 − x 2 = 0, (1.6) −x 1 + 2x 2 = 3. (1.7)
We know that the answer is x 1 = 1, x 2 = 2. The row picture consisted in solving each row separately. The main idea in the column picture is to interpret the 2 × 2 linear system as an addition of new objects, column vectors, in the following way, [ 2 − 1
x 1 +
x 2 =
The new objects are called column vectors and they are denoted as follows,
A 1 =
, b =
We can represent these vectors in the plane, as it is shown in Fig. 7.
2
(^3) b
x
x
2
1
Figure 7. Graphical representation of column vectors in the plane.
The column vector interpretation of a 2 × 2 linear system determines an addition law of vectors and a multiplication law of a vector by a number. In the example above, we know that the solution is given by x 1 = 1 and x 2 = 2, therefore in the column picture interpretation the following equation must hold [ 2 − 1
The study of this example suggests that the multiplication law of a vector by numbers and the addition law of two vectors can be defined by the following equations, respectively, [ − 1 2
The study of several examples of 2 × 2 linear systems in the column picture determines the following definition.
Definition 1.3. Given any 2 -vectors u =
u 1 u 2
and v =
v 1 v 2
, and real numbers a and b,
the linear combination of u and v is defined as follows,
a
u 1 u 2
v 1 v 2
au 1 + bv 1 au 2 + bv 2
A linear combination includes the particular cases of addition (a = b = 1), and multipli- cation of a vector by a number (b = 0), respectively given by, [ u 1 u 2
v 1 v 2
u 1 + v 1 u 2 + v 2
, a
u 1 u 2
au 1 au 2
The addition law in terms of components is represented graphically by the parallelogram law, as it can be seen in Fig. 8. The multiplication of a vector by a number a affects the length and direction of the vector. The product au stretches the vector u when a > 1 and it compresses u when 0 < a < 1. If a < 0 then it reverses the direction of u and it stretches when a < −1 and compresses when − 1 < a < 0. Fig. 8 represents some of these possibilities. Notice that the difference of two vectors is a particular case of the parallelogram law, as it can be seen in Fig. 9.
V
W
V+W v
v w
w
(v+w)
(v+w)
x
x 2
1
2
2
1 1
2
1
− V a V a = − 0 < a < 1
a>
a V
V
Figure 8. The addition of vectors can be computed with the parallelogram law. The multiplication of a vector by a number stretches or compresses the vector, and changes it direction in the case that the number is negative.
V
V − W (^) V + W
W (^) −W
V+(−W) (^) V
W
Figure 9. The difference of two vectors is a particular case of the paral- lelogram law of addition of vectors.
The column picture interpretation of a general 2 × 2 linear system given in Eqs. (1.1)- (1.2) is the following: Introduce the coefficient and source column vectors
A 1 =
, b =
b 1 b 2
We see in Fig. 11 that the first case corresponds to a system with unique solution. There is only one linear combination of the coefficient vectors A 1 and A 2 which adds up to b. The reason is that the coefficient vectors are not proportional to each other. The second case corresponds to the case of infinitely many solutions. The coefficient vectors are proportional to each other and the source vector b is also proportional to them. So, there are infinitely many linear combinations of the coefficient vectors that add up to the source vector. The last case corresponds to the case of no solutions. While the coefficient vectors are proportional to each other, the source vector is not proportional to them. So, there is no linear combination of the coefficient vectors that add up to the source vector. The ideas in the column picture can be generalized to m × n linear equations, which gives rise to the generalization to m-vectors of the definitions of linear combination presented above.
Definition 1.4. Given m-vectors u =
u 1 .. . um
,^ v^ =
v 1 .. . vm
and the real numbers^ a,^ b, the
linear combination of the vectors u and v is defined as follows
a
u 1 .. . um
+^ b
v 1 .. . vm
au 1 + bv 1 .. . aum + bvm
This definition can be generalized to an arbitrary number of vectors. Column vectors provide a new way to denote an m × n system of linear equations.
Definition 1.5. An m × n linear system of m > 1 linear equations in n > 1 unknowns is the following: Given the coefficient m-vectors A 1 , · · · , An and the source m-vector b, find the real numbers x 1 , · · · , xn solution of the linear combination
A 1 x 1 + · · · + Anxn = b. For example, recall the 3 × 3 system given as the second system in Eq. (1.5). This system in the column picture is the following: Find numbers x 1 , x 2 and x 3 such that
(^) x 1 +
(^) x 2 +
(^) x 3 =
These are the main ideas in the column picture. We will see later that linear algebra emerges from the column picture. The next section we give a method, due to Gauss, to solve in an efficient way m × n linear systems for large m and n.
Further reading. There is a clear explanation of the column picture in Section 1.3 in Lay’s book [2]. See also Section 1.2 in Strang’s book [4] for a shorter summary of both the row and column pictures.
Exercises.
1.2.1.- Sketch a graph of the vectors
A 1 =
» 1 2
» 2 1
» 1 − 1
Is the linear system A 1 x 1 + A 2 x 2 = b consistent? If the answer is “yes,” find the solution.
1.2.2.- Consider the vectors A 1 =
» 4 2
» − 2 − 1
» 2 0
(a) Graph the vectors A 1 , A 2 and b on the plane. (b) Is the linear system A 1 x 1 +A 2 x 2 = b consistent? (c) Given the vector c =
» 6 3
1.2.3.- Consider the vectors A 1 =
» 4 2
» − 2 − 1
and given a real number h, set c =
ˆ (^2) h
˜ . Find all values of h such that the system A 1 x 1 + A 2 x 2 = c is consistent.
1.2.4.- Show that the three vectors below lie on the same plane, by expressing the third vector as a linear combination of the first two, where
A 1 =
2 4
1 1 0
3 (^5) , A 2 =
2 4
1 2 1
3 (^5) , A 3 =
2 4
1 3 2
3 (^5).
Is the linear system A 1 x 1 + A 2 x 2 + A 3 x 3 = 0 consistent? If the answer is “yes,” is the solution unique?
The Gauss-Jordan method is a procedure performed on the augmented matrix of a linear system. It transforms the augmented matrix into a different matrix with two important properties: First, the linear system associated with the latter augmented matrix has the same solutions as the original linear system; second, the solutions on the latter linear system are simpler to find than in the original linear system. The augmented matrix is changed by doing any of the following three operations, called Gauss operations:
(i) Adding to one row a multiple of the another; (ii) Interchanging two rows; (iii) Multiplying a row by a non-zero number.
These operations are respectively represented by the symbols given in Fig. 12.
a a
Figure 12. A representation of the Gauss elimination operations (i), (ii) and (iii), respectively.
The Gauss operations change the coefficients of the augmented matrix of a system but do not change its solution. Two systems of linear equations having the same solutions are called equivalent. The Gauss-Jordan method is an algorithm using Gauss operations such that given any m × n linear system there exists an equivalent system whose augmented matrix is simple in the sense that the solution can be found by inspection.
Example 1.3.3: Find the solution of the 2 × 2 linear system with augmented matrix given in Eq. (1.13) using Gauss operations.
Solution: (^) [ 2 − 1
The Gauss operations have changed the augmented matrix of the original system as follows: [ 2 − 1
Since the Gauss operations do not change the solution of the associated linear systems, the augmented matrices above imply that the following two linear systems have the same solutions, 2 x 1 − x 2 = 0, −x 1 + 2x 2 = 3.
x 1 = 1, x 2 = 2.
On the last system the solution, x 1 = 1, x 2 = 2, is easy to read. C
A precise way to define the notion of an augmented matrix corresponding to a linear system with solutions “easy to read” is captured in the notions of echelon form of a matrix, and reduced echelon form of a matrix. We present these notions in detail in the next Section. In the rest of this Section we study a particular type of linear systems having the same number of equations and unknowns. We call them n × n linear systems, and also square
systems. An example of a square system is the 2 × 2 linear system in Eqs. (1.11)-(1.12). So, in the rest of this Section we introduce the Gauss operations and back substitution method to find solutions to square linear system. We finally compare this method with the Gauss-Jordan method also restricted to square linear systems.
1.3.1. Gauss operations and back substitution. Consider a square n × n linear system. The solutions to that system can be found using the Gauss operations and back substitution method. The method has two main parts: First, use Gauss operations to transform the augmented matrix of the system into an upper triangular form; second, use back substitution to compute the solution to the system.
Example 1.3.4: Use the Gauss method and back substitution to solve the 3 × 3 linear system
2 x 1 + x 2 + x 3 = 2 −x 1 + 2x 2 = 1 x 1 − x 2 + 2x 3 = − 2.
Solution: We have already seen in Example 1.1.2 that the solution of this system is given by x 1 = x 2 = 1, x 3 = −1. Let us find that solution using the Gauss method with back substitution. First transform the augmented matrix of the system into upper triangular form:
We now write the linear system corresponding to the last augmented matrix,
2 x 1 − x 2 + 2x 3 = − 2 x 2 + 2x 3 = − 1 x 3 = − 1.
We now use the back substitution to obtain the solution, that is, introduce x 3 = −1 into the second equation, which gives us x 2 = 1. The substitute x 3 = −1 and x 2 = 1 into the first equation, which gives us x 1 = 1. C
1.3.2. Gauss-Jordan method. Consider again a square n × n linear system. The Gauss- Jordan method on square systems is a minor modification of the Gauss method and back substitution. Do not stop doing Gauss operations when the augmented matrix becomes upper triangular. Keep doing Gauss operations in order to make zeros above the diagonal. Then, back substitution will no be needed to find the solution of the linear system. It will be found just by inspection.
Example 1.3.5: Use the Gauss-Jordan method to solve the same 3 × 3 linear system as in Example 1.3.4, that is,
2 x 1 + x 2 + x 3 = 2 −x 1 + 2x 2 = 1 x 1 − x 2 + 2x 3 = − 2.
Exercises.
1.3.1.- Use Gauss operations and back substitution to find the solution of the 3×3 linear sys- tem x 1 + x 2 + x 3 = 1, x 1 + 2x 2 + 2x 3 = 1, x 1 + 2x 2 + 3x 3 = 1.
1.3.2.- Use Gauss operations and back substitution to find the solution of the 3×3 linear sys- tem 2 x 1 − 3 x 2 = 3, 4 x 1 − 5 x 2 + x 3 = 7, 2 x 1 − x 2 − 3 x 3 = 5.
1.3.3.- Find the solution of the following linear sys- tem with Gauss-Jordan’s method, 4 x 2 − 3 x 3 = 3, −x 1 + 7x 2 − 5 x 3 = 4, −x 1 + 8x 2 − 6 x 3 = 5.
1.3.4.- Find the solutions to the following two linear systems, which have the same matrix of coefficient A but different source vectors b 1 and b 2 , given respectively by, 4 x 1 − 8 x 2 + 5x 3 = 1, 4 x 1 − 7 x 2 + 4x 3 = 0, 3 x 1 − 4 x 2 + 2x 3 = 0,
4 x 1 − 8 x 2 + 5x 3 = 0, 4 x 1 − 7 x 2 + 4x 3 = 1, 3 x 1 − 4 x 2 + 2x 3 = 0. Solve these two systems at one time using the Gauss-Jordan method on an augmented matrix of the form [A|b 1 |b 2 ].
1.4. Echelon forms
1.4.1. Echelon forms and reduced echelon forms. The Gauss-Jordan method is a procedure using Gauss operations that transforms the augmented matrix of any m × n linear system into the augmented matrix of an equivalent system whose solutions can be found just by inspection. A precise way to define the notion of a linear system with solutions that can be “found by inspection” is captured in the notions of echelon form and reduced echelon form of its augmented matrix.
Definition 1.6. An m × n matrix is in echelon form iff the following conditions hold:
(i) All zero rows are at the bottom of the matrix; (ii) The first non-zero coefficient on a row is always to the right of the first non-zero coefficient of the row above it. The pivot coefficient is the first non-zero coefficient on every non-zero row in a matrix in echelon form.
Example 1.4.1: The 6 × 8, 3 × 5 and 3 × 3 matrices given below are in echelon form, where the ∗ means any non-zero number and pivots are displayed in boldface. ∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ 0 0 ∗ ∗ ∗ ∗ ∗ ∗ 0 0 0 ∗ ∗ ∗ ∗ ∗ 0 0 0 0 0 0 ∗ ∗ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Example 1.4.2: The following matrices are in echelon form, with pivot coefficients displayed in boldface: [ 1 3 0 1
Definition 1.7. An m × n matrix is in reduced echelon form iff the matrix is in echelon form and the following two conditions hold:
(i) The pivot coefficient is equal to 1 ; (ii) The pivot coefficient is the only non-zero coefficient in that column.
We denote by EA the reduced echelon form of a matrix A.
Example 1.4.3: The 6 × 8, 3 × 5 and 3 × 3 matrices given below are in echelon form, where the ∗ means any non-zero number and pivots are displayed in boldface. 1 ∗ 0 0 ∗ ∗ 0 ∗ 0 0 1 0 ∗ ∗ 0 ∗ 0 0 0 1 ∗ ∗ 0 ∗ 0 0 0 0 0 0 1 ∗ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0