Docsity

Linear Equations in Linear Algebra: Solving Systems and Using MATLAB, Exercises of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
1-1
As you work through this chapter and the next, your experience may resemble several walks
through a village at different seasons of the year. The surroundings will be familiar, but the
landscape will change. You will examine various mathematical concepts from several points of
view, and a major problem will be to learn all the new terminology and the many connections
between the concepts. In Chapter 4, you will see these ideas in a more abstract setting. Diligent
work now wil1 make the trip through Chapter 4 just another walk through the same village.
1.1 SYSTEMS OF LINEAR EQUATIONS ______________
The fundamental concepts presented in this section and the next must be mastered for they will be
used throughout the course.
STUDY NOTES
Please read How to Study Line ar Algebra, on the preceding two pages, before you continue.
The text uses boldface type to identify important terms the first time they appear. You need
to learn them; some students write selected terms on 3 × 5 cards, for review. At the end of each
chapter in this Study Guide, a glossary checklist may help you learn definitions.
The text defines the size of a matrix. Don’t use the term dimension, even though that appears
in some computer programming languages, because in linear algebra, dimension refers to another
concept (in Section 4.5).
The first few examples are so simple that they could be solved by a variety of techniques.
But it is important to learn the systematic method presented here, because it easily handles more
complicated linear systems, and it works in all cases.
The calculations in this section are based on the following important fact:
When elementary row operations are applied to a linear system, the new system
has exactly the same solution set.
pf3
pf4
pf5

Partial preview of the text

Download Linear Equations in Linear Algebra: Solving Systems and Using MATLAB and more Exercises Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

1-

As you work through this chapter and the next, your experience may resemble several walks through a village at different seasons of the year. The surroundings will be familiar, but the landscape will change. You will examine various mathematical concepts from several points of view, and a major problem will be to learn all the new terminology and the many connections between the concepts. In Chapter 4, you will see these ideas in a more abstract setting. Diligent work now wil1 make the trip through Chapter 4 just another walk through the same village.

1.1 SYSTEMS OF LINEAR EQUATIONS ______________

The fundamental concepts presented in this section and the next must be mastered for they will be used throughout the course.

STUDY NOTES

Please read How to Study Line ar Algebra , on the preceding two pages, before you continue. The text uses boldface type to identify important terms the first time they appear. You need to learn them; some students write selected terms on 3 × 5 cards, for review. At the end of each chapter in this Study Guide , a glossary checklist may help you learn definitions. The text defines the size of a matrix. Don’t use the term dimension , even though that appears in some computer programming languages, because in linear algebra, dimension refers to another concept (in Section 4.5). The first few examples are so simple that they could be solved by a variety of techniques. But it is important to learn the systematic method presented here, because it easily handles more complicated linear systems, and it works in all cases. The calculations in this section are based on the following important fact: When elementary row operations are applied to a linear system, the new system has exactly the same solution set.

1-2 CHAPTER 1 l^ Linear Equations in Linear Algebra

(See the text.) The steps in the summary below will be modified slightly in Section 1.2.

Summary of the Elimination Method (for This Section)

  1. The first equation must contain an x 1. Interchange equations, if necessary. This will create a nonzero entry in the first row, first column, of the augmented matrix.
  2. Eliminate x 1 terms in the other equations. That is, use replacement operations to create zeros in the first column of the matrix below the first row.
  3. Obtain an x 2 term in the second equation. (Interchange the second equation with one below, if needed, but don’t touch the first equation.) You may scale the second equation, if desired, to create a 1 in the second column and second row of the matrix.
  4. Eliminate x 2 terms in equations below the second equation, using replacement operations.
  5. Continue with x 3 in the third equation, x 4 in the fourth equation, etc., eliminating these variables in the equations below. This will produce a “triangular” system (at least for systems in this section).
  6. Check if the system in triangular form is consistent. If it is, a solution is found by starting with the last nonzero equation and working back up to the first equation. Each variable on the “diagonal” is used to eliminate the terms in that variable above it. The solution to the system becomes apparent when the system is finally transformed into “diagonal” form.
  7. Check any solutions you find by substituting them into the original system.

The solution set of a system of linear equations either is empty, or contains one solution, or contains infinitely many solutions. When asked to “solve” a system, you may write “incon- sistent” if the system has no solution. As you will see later, determining the number of solutions in the solution set is sometimes more important than actually computing the solution or solutions. For that reason, pay close attention to the subsection on existence and uniqueness questions. Key Exercises: 19–22 and 25.

SOLUTIONS TO EXERCISES

Get into the habit now of working the Practice Problems before you start the exercises. Probably, you should attempt all the Practice Problems before checking the solutions at the end of the exercise set, because once you start reading the first solution, you might tend to read on through the other solutions and spoil your chance to benefit from those problems. For brevity, the symbols R1, R2,.. ., stand for row 1 (or equation 1), row 2 (or equation 2), and so on.

1-4 CHAPTER 1 l^ Linear Equations in Linear Algebra

Study Tip : Pay attention to how a problem is worded. If you only need to determine the

existence or uniqueness of a solution, stop row operations when you reach a “triangular” form. Exercises 15–18 do not require you to solve the systems of equation.

h h h

:. Think of 6 – 3 h as a constant, c. When c is zero, that is,

when h = 2, the system has no solution, because 0 x 2 = –4 has no solution. Otherwise, when c is nonzero, that is, when h ≠ 2,the system has a solution. 23. My own students have recommended that I never give the complete answers to the true/false questions. They felt that the temptation to read the answers is too great. After working both with and without answers, they realized how much they benefited from doing the true/false work by themselves. So, all you will see here are the places where you can find the answers. a. See the remarks following the box titled “Elementary Row Operations.” b. The size of a matrix is defined just before the subsection titled “Solving a Linear System.” c. The solution set of a linear system is the set of all solutions of the system. See page 3. d. See the box before Example 2.

g g g h h h k k g k g h

 −^   −^   − 

Let b denote the number k + 2 g + h. Then the third equation represented by the augmented matrix above is 0 x 3 = b. If b is nonzero, this equation has no solution, so the system is inconsistent. The system is consistent if b is zero, that is, if k + 2 g + h = 0, then the system

1 2 3 2 3

x x x g x x h

has a solution no matter what the values of g and h. The text will explore this situation more in Section 1.2. Briefly, here is why this system, and hence the original system, is consistent. In this case, the third equation can be ignored, and the second equation, 3 x 2 – 5 x 3 = h has many solutions. Imagine choosing any values for x 2 and x 3 that satisfy the second equation, and substituting those values for x 2 and x 3 in the first equation. The resulting first equation can be solved for x 1. These values for x 1 , x 2 , and x 3 will satisfy all three equations. 31. Look at the first column. The next row operation should replace the 4 in the third row by a 0. To do this, replace R3 by R3 + ( – 4)R1. To reverse the operation, replace R3 by R3 + (4)R1.

1.1 l^ Systems of Linear Equations 1-

A Mathematical Note: “If... , then... .”

Many important facts and theorems in the text are written as implication statements, in the form “If P , then Q ”, where P and Q represent complete sentences. For instance, the statement in the box at the top of page 8 has the form

the augmented matrices the two systems If of two linear systems , then have the same are row equivalent solution set

An implication statement “If P , then Q ” is itself true provided that statement Q is true whenever statement P is true. In mathematical terminology, we say that “ P implies Q ,” and we write P ⇒ Q. Be careful to distinguish between an implication statement “P implies Q” and the converse or “opposite” implication, “ Q implies P ”. The converse may or may not be true when the original implication is true. For instance, the converse of (1) above is not true, because there exist two linear systems with the same solution set but whose augmented matrices are not row equivalent. For example:

1 2 1 2

x x x x

1 2 1 2 1 2

x x x x x x

MATLAB Row Operations

To use MATLAB for your homework in this course, the MATLAB program must contain the data for the exercises in this text. At some schools, the campus-wide version of MATLAB already has this data available on some or all computers. (The same may be true for Maple or Mathematica.) Ask your instructor. If you plan to run MATLAB at home, you will need to download the MATLAB Laydata Toolbox from the website www.laylinalgebra.com and follow the instructions there. Data files are also available at this site for Maple, Mathematica, and the graphic calculators TI-83+/86/89 and HP-48G. Basic instructions for using these matrix programs in this course are given in appendices at the end of this Study Guide. Specific commands for MATLAB will be introduced as needed at the end of some sections. Corresponding commands for other matrix programs can be found in the appendices. While you are running MATLAB, type the command c1s1 (which stands for c hapter 1 s ection 1) at the MATLAB prompt. If the data are not installed, you will get a message such as “Undefined function”. Otherwise, you should see a list of exercises in Section 1. for which data are available. Type the number of the appropriate exercise and press .