Docsity

Matrix Analysis and Applied Linear Algebra, Notas de estudo de Cultura

Pré-visualização parcial do texto

Baixe Matrix Analysis and Applied Linear Algebra e outras Notas de estudo em PDF para Cultura, somente na Docsity!

Contents

    1. Linear Equations Preface ix
    • 1.1 Introduction
    • 1.2 Gaussian Elimination and Matrices
    • 1.3 Gauss–Jordan Method
    • 1.4 Two-Point BoundaryValue Problems
    • 1.5 Making Gaussian Elimination Work
    • 1.6 Ill-Conditioned Systems
    1. Rectangular Systems and Echelon Forms
    • 2.1 Row Echelon Form and Rank
    • 2.2 Reduced Row Echelon Form
    • 2.3 Consistencyof Linear Systems
    • 2.4 Homogeneous Systems
    • 2.5 Nonhomogeneous Systems
    • 2.6 Electrical Circuits
    1. Matrix Algebra
    • 3.1 From Ancient China to Arthur Cayley
    • 3.2 Addition and Transposition
    • 3.3 Linearity
    • 3.4 WhyDo It This Way
    • 3.5 Matrix Multiplication
    • 3.6 Properties of Matrix Multiplication
    • 3.7 Matrix Inversion
    • 3.8 Inverses of Sums and Sensitivity
    • 3.9 ElementaryMatrices and Equivalence
    • 3.10 The LU Factorization
    1. Vector Spaces
    • 4.1 Spaces and Subspaces
    • 4.2 Four Fundamental Subspaces
    • 4.3 Linear Independence
    • 4.4 Basis and Dimension
    • 4.5 More about Rank vi Contents
    • 4.6 Classical Least Squares
    • 4.7 Linear Transformations
    • 4.8 Change of Basis and Similarity
    • 4.9 Invariant Subspaces
    1. Norms, Inner Products, and Orthogonality
    • 5.1 Vector Norms
    • 5.2 Matrix Norms
    • 5.3 Inner-Product Spaces
    • 5.4 Orthogonal Vectors
    • 5.5 Gram–Schmidt Procedure
    • 5.6 Unitaryand Orthogonal Matrices
    • 5.7 Orthogonal Reduction
    • 5.8 Discrete Fourier Transform
    • 5.9 ComplementarySubspaces
    • 5.10 Range-Nullspace Decomposition
    • 5.11 Orthogonal Decomposition
    • 5.12 Singular Value Decomposition
    • 5.13 Orthogonal Projection
    • 5.14 WhyLeast Squares?
    • 5.15 Angles between Subspaces
    1. Determinants
    • 6.1 Determinants
    • 6.2 Additional Properties of Determinants
    1. Eigenvalues and Eigenvectors
    • 7.1 ElementaryProperties of Eigensystems
    • 7.2 Diagonalization bySimilarityTransformations
    • 7.3 Functions of Diagonalizable Matrices
    • 7.4 Systems of Differential Equations
    • 7.5 Normal Matrices
    • 7.6 Positive Definite Matrices
    • 7.7 Nilpotent Matrices and Jordan Structure
    • 7.8 Jordan Form
    • 7.9 Functions of Nondiagonalizable Matrices
    • 7.10 Difference Equations, Limits, and Summability. Contents vii
    • 7.11 Minimum Polynomials and Krylov Methods
    1. Perron–Frobenius Theory
    • 8.1 Introduction
    • 8.2 Positive Matrices
    • 8.3 Nonnegative Matrices
    • 8.4 Stochastic Matrices and Markov Chains
    • Index

Preface

Scaffolding

Reacting to criticism concerning the lack of motivation in his writings, Gauss remarked that architects of great cathedrals do not obscure the beauty of their work by leaving the scaffolding in place after the construction has been completed. His philosophy epitomized the formal presentation and teaching of mathematics throughout the nineteenth and twentieth centuries, and it is still commonly found in mid-to-upper-level mathematics textbooks. The inherent ef- ficiency and natural beauty of mathematics are compromised by straying too far from Gauss’s viewpoint. But, as with most things in life, appreciation is gen- erally preceded by some understanding seasoned with a bit of maturity, and in mathematics this comes from seeing some of the scaffolding.

Purpose, Gap, and Challenge

The purpose of this text is to present the contemporary theory and applica- tions of linear algebra to university students studying mathematics, engineering, or applied science at the postcalculus level. Because linear algebra is usually en- countered between basic problem solving courses such as calculus or differential equations and more advanced courses that require students to cope with mathe- matical rigors, the challenge in teaching applied linear algebra is to expose some of the scaffolding while conditioning students to appreciate the utility and beauty of the subject. Effectively meeting this challenge and bridging the inherent gaps between basic and more advanced mathematics are primary goals of this book.

Rigor and Formalism

To reveal portions of the scaffolding, narratives, examples, and summaries are used in place of the formal definition–theorem–proof development. But while well-chosen examples can be more effective in promoting understanding than rigorous proofs, and while precious classroom minutes cannot be squandered on theoretical details, I believe that all scientifically oriented students should be exposed to some degree of mathematical thought, logic, and rigor. And if logic and rigor are to reside anywhere, they have to be in the textbook. So even when logic and rigor are not the primary thrust, they are always available. Formal definition–theorem–proof designations are not used, but definitions, theorems, and proofs nevertheless exist, and they become evident as a student’s maturity increases. A significant effort is made to present a linear development that avoids forward references, circular arguments, and dependence on prior knowledge of the subject. This results in some inefficiencies—e.g., the matrix2-norm is presented

Preface xi

there is an emphasis on numerical issues designed to prepare students to use linear algebra in scientific environments outside the classroom.

Computing Projects

Computing projects help solidify concepts, and I include many exercises that can be incorporated into a laboratory setting. But my goal is to write a mathematics text that can last, so I don’t muddy the development by marrying the material to a particular computer package or language. I am old enough to remember what happened to the FORTRAN- and APL-based calculus and linear algebra texts that came to market in the 1970s. I provide instructors with a flexible environment that allows for an ancillary computing laboratory in which any number of popular packages and lab manuals can be used in conjunction with the material in the text.

History

Finally, I believe that revealing only the scaffolding without teaching some- thing about the scientific architects who erected it deprives students of an im- portant part of their mathematical heritage. It also tends to dehumanize mathe- matics, which is the epitome of human endeavor. Consequently, I make an effort to say things (sometimes very human things that are not always complimentary) about the lives of the people who contributed to the development and applica- tions of linear algebra. But, as I came to realize, this is a perilous task because writing history is frequently an interpretation of facts rather than a statement of facts. I considered documenting the sources of the historical remarks to help mitigate the inevitable challenges, but it soon became apparent that the sheer volume required to do so would skew the direction and flavor of the text. I can only assure the reader that I made an effort to be as honest as possible, and I tried to corroborate “facts.” Nevertheless, there were times when interpreta- tions had to be made, and these were no doubt influenced by my own views and experiences.

Supplements

Included with this text is a solutions manual and a CD-ROM. The solutions manual contains the solutions for each exercise given in the book. The solutions are constructed to be an integral part of the learning process. Rather than just providing answers, the solutions often contain details and discussions that are intended to stimulate thought and motivate material in the following sections. The CD, produced by Vickie Kearn and the people at SIAM, contains the entire book along with the solutions manual in PDF format. This electronic version of the text is completely searchable and linked. With a click of the mouse a student can jump to a referenced page, equation, theorem, definition, or proof, and then jump back to the sentence containing the reference, thereby making learning quite efficient. In addition, the CD contains material that extends his- torical remarks in the book and brings them to life with a large selection of

xii Preface

portraits, pictures, attractive graphics, and additional anecdotes. The support- ing Internet site at MatrixAnalysis.com contains updates, errata, new material, and additional supplements as they become available.

SIAM

I thank the SIAM organization and the people who constitute it (the in- frastructure as well as the general membership) for allowing me the honor of publishing my book under their name. I am dedicated to the goals, philosophy, and ideals of SIAM, and there is no other company or organization in the world that I would rather have publish this book. In particular, I am most thankful to Vickie Kearn, publisher at SIAM, for the confidence, vision, and dedication she has continually provided, and I am grateful for her patience that allowed me to write the book that I wanted to write. The talented people on the SIAM staff went far above and beyond the call of ordinary duty to make this project special. This group includes Lois Sellers (art and cover design), Michelle Mont- gomery and Kathleen LeBlanc (promotion and marketing), Marianne Will and Deborah Poulson (copy for CD-ROM biographies), Laura Helfrich and David Comdico (design and layout of the CD-ROM), Kelly Cuomo (linking the CD- ROM), and Kelly Thomas (managing editor for the book). Special thanks goes to Jean Anderson for her eagle-sharp editor’s eye.

Acknowledgments

This book evolved over a period of several years through many different courses populated by hundreds of undergraduate and graduate students. To all my students and colleagues who have offered suggestions, corrections, criticisms, or just moral support, I offer my heartfelt thanks, and I hope to see as many of you as possible at some point in the future so that I can convey my feelings to you in person. I am particularly indebted to Michele Benzi for conversations and suggestions that led to several improvements. All writers are influenced by people who have written before them, and for me these writers include (in no particular order) Gil Strang, Jim Ortega, Charlie Van Loan, Leonid Mirsky, Ben Noble, Pete Stewart, Gene Golub, Charlie Johnson, Roger Horn, Peter Lancaster, Paul Halmos, Franz Hohn, Nick Rose, and Richard Bellman—thanks for lighting the path. I want to offer particular thanks to Richard J. Painter and Franklin A. Graybill, two exceptionally fine teachers, for giving a rough Colorado farm boy a chance to pursue his dreams. Finally, neither this book nor anything else I have done in my career would have been possible without the love, help, and unwavering support from Bethany, my friend, partner, and wife. Her multiple readings of the manuscript and suggestions were invaluable. I dedicate this book to Bethany and our children, Martin and Holly, to our granddaughter, Margaret, and to the memory of my parents, Carl and Louise Meyer.

Carl D. Meyer April 19, 2000

2 Chapter 1 Linear Equations

a square array on a “counting board” and then manipulated the lines of the array according to prescribed rules of thumb. Their counting board techniques and rules of thumb found their way to Japan and eventually appeared in Europe with the colored rods having been replaced by numerals and the counting board replaced by pen and paper. In Europe, the technique became known as Gaussian elimination in honor of the German mathematician Carl Gauss, 1 whose extensive use of it popularized the method. Because this elimination technique is fundamental, we begin the study of our subject by learning how to apply this method in order to compute solutions for linear equations. After the computational aspects have been mastered, we will turn to the more theoretical facets surrounding linear systems.

(^1) Carl Friedrich Gauss (1777–1855) is considered by many to have been the greatest mathemati- cian who has ever lived,and his astounding career requires several volumes to document. He was referred to by his peers as the “prince of mathematicians.” Upon Gauss’s death one of them wrote that “His mind penetrated into the deepest secrets of numbers,space,and nature; He measured the course of the stars,the form and forces of the Earth; He carried within himself the evolution of mathematical sciences of a coming century.” History has proven this remark to be true.

1.2 Gaussian Elimination and Matrices 3

1.2 GAUSSIAN ELIMINATION AND MATRICES

The problem is to calculate, if possible, a common solution for a system of m linear algebraic equations in n unknowns

a 11 x 1 + a 12 x 2 + · · · + a 1 nxn = b 1 , a 21 x 1 + a 22 x 2 + · · · + a 2 nxn = b 2 , .. . am 1 x 1 + am 2 x 2 + · · · + amnxn = bm,

where the xi ’s are the unknowns and the aij ’s and the bi ’s are known constants. The aij ’s are called the coefficients of the system, and the set of bi ’s is referred to as the right-hand side of the system. For any such system, there are exactly three possibilities for the set of solutions.

Three Possibilities

  • UNIQUE SOLUTION: There is one and only one set of values for the xi ’s that satisfies all equations simultaneously.
  • NO SOLUTION: There is no set of values for the xi ’s that satisfies all equations simultaneously—the solution set is empty.
  • INFINITELY MANY SOLUTIONS: There are infinitely many different sets of values for the xi ’s that satisfy all equations simultaneously. It is not difficult to prove that if a system has more than one solution, then it has infinitely many solutions. For example, it is impossible for a system to have exactly two different solutions.

Part of the job in dealing with a linear system is to decide which one of these three possibilities is true. The other part of the task is to compute the solution if it is unique or to describe the set of all solutions if there are many solutions. Gaussian elimination is a tool that can be used to accomplish all of these goals. Gaussian elimination is a methodical process of systematically transform- ing one system into another simpler, but equivalent, system (two systems are called equivalent if they possess equal solution sets) by successively eliminating unknowns and eventually arriving at a system that is easily solvable. The elimi- nation process relies on three simple operations by which to transform one system to another equivalent system. To describe these operations, let Ek denote the kth^ equation Ek : ak 1 x 1 + ak 2 x 2 + · · · + aknxn = bk

1.2 Gaussian Elimination and Matrices 5

Providing explanations for why each of these operations cannot change the solution set is left as an exercise. The most common problem encountered in practice is the one in which there are n equations as well as n unknowns—called a square system—for which there is a unique solution. Since Gaussian elimination is straightforward for this case, we begin here and later discuss the other possibilities. What follows is a detailed description of Gaussian elimination as applied to the following simple (but typical) square system:

2 x + y + z = 1 , 6 x + 2 y + z = − 1 , − 2 x + 2 y + z = 7.

At each step, the strategy is to focus on one position, called the pivot po- sition, and to eliminate all terms below this position using the three elementary operations. The coefficient in the pivot position is called a pivotal element (or simply a pivot), while the equation in which the pivot lies is referred to as the pivotal equation. Only nonzero numbers are allowed to be pivots. If a coef- ficient in a pivot position is ever 0, then the pivotal equation is interchanged with an equation below the pivotal equation to produce a nonzero pivot. (This is always possible for square systems possessing a unique solution.) Unless it is 0, the first coefficient of the first equation is taken as the first pivot. For example,

the circled ©^2 in the system below is the pivot for the first step:

©^2 x + y + z = 1 ,

6 x + 2 y + z = − 1 , − 2 x + 2 y + z = 7.

Step 1. Eliminate all terms below the first pivot.

  • Subtract three times the first equation from the second so as to produce the equivalent system:

© 2 x + y + z = 1 ,

− y − 2 z = − 4 (E 2 − 3 E 1 ), − 2 x + 2 y + z = 7.

  • Add the first equation to the third equation to produce the equivalent system:

© 2 x + y + z = 1 ,

− y − 2 z = − 4 , 3 y + 2 z = 8 (E 3 + E 1 ).

6 Chapter 1 Linear Equations

Step 2. Select a new pivot.

  • For the time being, select a new pivot by moving down and to the right. 2 If this coefficient is not 0 , then it is the next pivot. Otherwise, interchange with an equation below this position so as to bring a nonzero number into this pivotal position. In our example, − 1 is the second pivot as identified below:

2 x + y + z = 1 ,

©-1^ y − 2 z = − 4 ,

3 y + 2 z = 8.

Step 3. Eliminate all terms below the second pivot.

  • Add three times the second equation to the third equation so as to produce the equivalent system:

2 x + y + z = 1 ,

©-1^ y − 2 z = − 4 ,

− 4 z = − 4 (E 3 + 3E 2 ).

  • In general, at each step you move down and to the right to select the next pivot, then eliminate all terms below the pivot until you can no longer pro- ceed. In this example, the third pivot is − 4 , but since there is nothing below the third pivot to eliminate, the process is complete. At this point, we say that the system has been triangularized. A triangular system is easily solved by a simple method known as back substitution in which the last equation is solved for the value of the last unknown and then substituted back into the penultimate equation, which is in turn solved for the penultimate unknown, etc., until each unknown has been determined. For our example, solve the last equation in (1.2.5) to obtain

z = 1.

Substitute z = 1 back into the second equation in (1.2.5) and determine

y = 4 − 2 z = 4 − 2(1) = 2.

(^2) The strategy of selecting pivots in numerical computation is usually a bit more complicated than simply using the next coefficient that is down and to the right. Use the down-and-right strategy for now,and later more practical strategies will be discussed.

8 Chapter 1 Linear Equations

Matrix A is said to have shape or size m × n —pronounced “m by n”— whenever A has exactly m rows and n columns. For example, the matrix in (1.2.6) is a 3 × 4 matrix. By agreement, 1 × 1 matrices are identified with scalars and vice versa. To emphasize that matrix A has shape m × n, subscripts are sometimes placed on A as Am×n. Whenever m = n (i.e., when A has the same number of rows as columns), A is called a square matrix. Otherwise, A is said to be rectangular. Matrices consisting of a single row or a single column are often called row vectors or column vectors, respectively. The symbol Ai∗ is used to denote the ith^ row, while A∗j denotes the jth column of matrix A. For example, if A is the matrix in (1.2.6), then

A 2 ∗ = ( 8 6 5 −9 ) and A∗ 2 =

For a linear system of equations a 11 x 1 + a 12 x 2 + · · · + a 1 nxn = b 1 , a 21 x 1 + a 22 x 2 + · · · + a 2 nxn = b 2 , .. . am 1 x 1 + am 2 x 2 + · · · + amnxn = bm, Gaussian elimination can be executed on the associated augmented matrix [A|b] by performing elementary operations to the rows of [A|b]. These row operations correspond to the three elementary operations (1.2.1), (1.2.2), and (1.2.3) used to manipulate linear systems. For an m × n matrix

M =

M 1 ∗

Mi∗ .. . Mj∗ .. . Mm∗

the three types of elementary row operations on M are as follows.

  • Type I: Interchange rows i and j to produce

M 1 ∗

Mj∗ .. . Mi∗ .. . Mm∗

1.2 Gaussian Elimination and Matrices 9

  • Type II: Replace row i by a nonzero multiple of itself to produce      

M 1 ∗

αMi∗ .. . Mm∗

, where α = 0. (1. 2 .8)

  • Type III: Replace row j by a combination of itself plus a multiple of row i to produce (^) 

      

M 1 ∗

Mi∗ .. . Mj∗ + αMi∗ .. . Mm∗

To solve the system (1.2.4) by using elementary row operations, start with the associated augmented matrix [A|b] and triangularize the coefficient matrix A by performing exactly the same sequence of row operations that corresponds to the elementary operations executed on the equations themselves:  

©^2 1 1

 R 2 − 3 R 1

R 3 + R 1

0 ©-1^ − 2 − 4

R 3 + 3R 2

The final array represents the triangular system

2 x + y + z = 1 , − y − 2 z = − 4 , − 4 z = − 4 that is solved by back substitution as described earlier. In general, if an n × n system has been triangularized to the form    

t 11 t 12 · · · t 1 n c 1 0 t 22 · · · t 2 n c 2 .. .

0 0 · · · tnn cn

 (1.^2 .10)

in which each tii = 0 (i.e., there are no zero pivots), then the general algorithm for back substitution is as follows.

1.2 Gaussian Elimination and Matrices 11

Example 1.2.

Problem: Solve the following system using Gaussian elimination with back sub- stitution:

v − w = 3 , − 2 u + 4 v − w = 1 , − 2 u + 5 v − 4 w = − 2.

Solution: The associated augmented matrix is  

Since the first pivotal position contains 0, interchange rows one and two before eliminating below the first pivot:  

©^0 1 − 1 3

Interchange R 1 and R 2 −−−−−−−−→

©-2^4 − 1 1

R 3 − R 1

R 3 − R 2

Back substitution yields

w =

v = 3 + w = 3 + 3 = 6,

u =

(1 − 4 v + w) =

Exercises for section 1.

1.2.1. Use Gaussian elimination with back substitution to solve the following system: x 1 + x 2 + x 3 = 1, x 1 + 2x 2 + 2x 3 = 1, x 1 + 2x 2 + 3x 3 = 1.

12 Chapter 1 Linear Equations

1.2.2. Apply Gaussian elimination with back substitution to the following sys- tem: 2 x 1 − x 2 = 0, −x 1 + 2x 2 − x 3 = 0, −x 2 + x 3 = 1.

1.2.3. Use Gaussian elimination with back substitution to solve the following system: 4 x 2 − 3 x 3 = 3, −x 1 + 7x 2 − 5 x 3 = 4, −x 1 + 8x 2 − 6 x 3 = 5.

1.2.4. Solve the following system: x 1 + x 2 + x 3 + x 4 = 1, x 1 + x 2 + 3x 3 + 3x 4 = 3, x 1 + x 2 + 2x 3 + 3x 4 = 3, x 1 + 3x 2 + 3x 3 + 3x 4 = 4.

1.2.5. Consider the following three systems where the coefficients are the same for each system, but the right-hand sides are different (this situation occurs frequently): 4 x − 8 y + 5z = 1 0 0 , 4 x − 7 y + 4z = 0 1 0 , 3 x − 4 y + 2z = 0 0 1. Solve all three systems at one time by performing Gaussian elimination on an augmented matrix of the form [ A

∣ (^) b 1

∣ (^) b 2

∣ (^) b 3

]

1.2.6. Suppose that matrix B is obtained by performing a sequence of row operations on matrix A. Explain why A can be obtained by performing row operations on B.

1.2.7. Find angles α, β, and γ such that 2 sin α − cos β + 3 tan γ = 3, 4 sin α + 2 cos β − 2 tan γ = 2, 6 sin α − 3 cos β + tan γ = 9,

where 0 ≤ α ≤ 2 π, 0 ≤ β ≤ 2 π, and 0 ≤ γ < π.