modern matrix algebra

Upload: elizabeth-ott

Post on 14-Apr-2018

282 views

Category:

Documents


1 download

TRANSCRIPT

  • 7/29/2019 Modern Matrix Algebra

    1/480

    Modern Mat r i xA lg ebra

    1

  • 7/29/2019 Modern Matrix Algebra

    2/480

  • 7/29/2019 Modern Matrix Algebra

    3/480

    Modern Matr i xA lgebra

    David R. HillTemple University

    Bernard KolmanDrexel University

    P R E N T I C E H A L L , U p p e r S a d d l e R i v e r , N e w J e r s e y 0 7 4 5 81

  • 7/29/2019 Modern Matrix Algebra

    4/480

    Library of Congress Cataloging-in-Publication Data

    Hill, David R. (David Ross), 1943Modern matrix algebra / David R. Hill, Bernard Kolman.

    p. cm.Includes index.ISBN 0-13-948852-91. Matrices. 2. Algebra. I. Kolman, Bernard, 1932

    II. Title.QA188 .H55 2001

    512.9'

    434--dc21 00-037489

    Acquisitions Editor: George Lobell

    Production Editor: Betsy A. Williams

    Senior Managing Editor: Linda Mihatov Behrens

    Executive Managing Editor: Kathleen Schiaparelli

    Assistant Vice President of Production and Manufacturing: David W. Riccardi

    Marketing Manager: Angela Battle

    Marketing Assistant: Vince Jansen

    Manufacturing Buyer: Alan Fischer

    Manufacturing Manager: Trudy Pisciotti

    Supplements Editor/Editorial Assistant: Gale Epps

    Art Director/Cover Designer: Ann France/Jon Boylan

    Director of Creative Services: Paul Belfanti

    Assistant to Art Director: John Christiana

    Art Manager: Gus Vibal

    Art Editor: Grace Hazeldine

    Interior Designer: Ann France

    Cover Designer: Kiwi Design

    Cover Image: Patrick Henry Bruce (United States, 18811936), Composition II,c 1916, oil on canvas, signed lower right: Bruce, Yale University Art Gallery,

    New Haven, Connecticut, Gift of Collection Societe Anonyme

    c 2001 by Prentice-Hall, Inc.

    Upper Saddle River, New Jersey 07458

    All rights reserved. No part of this book may be

    reproduced, in any form or by any means,

    without permission in writing from the publisher.

    Printed in the United States of America

    10 9 8 7 6 5 4 3 2 1

    ISBN 0-13-948852-9

    Prentice-Hall International (UK) Limited, London

    Prentice-Hall of Australia Pty. Limited, Sydney

    Prentice-Hall Canada Inc., Toronto

    Prentice-Hall Hispanoamericana, S.A., Mexico

    Prentice-Hall of India Private Limited, New Delhi

    Prentice-Hall of Japan, Inc., Tokyo

    Pearson Education Asia Pte. Ltd.

    Editora Prentice-Hall do Brasil, Ltda., Rio de Janeiro

    MATLAB is a registered

    trademark of the MathWorks, Inc.

    The MathWorks, Inc.

    24 Prime Park Way

    Natick, MA 01760-1520

    Phone: 508-647-7000

    FAX: 508-647-7001

    [email protected]

    http://www.mathworks.com

  • 7/29/2019 Modern Matrix Algebra

    5/480

    To SuzanneD. R. H.

    To JudithB.K.

  • 7/29/2019 Modern Matrix Algebra

    6/480

  • 7/29/2019 Modern Matrix Algebra

    7/480

    C O N T E N T S

    Preface ixList of Applications xiv

    1 MATRICES AND MATRIX ALGEBRA 11.1 Matrices 21.2 Matrix Operations 131.3 Matrix Products 311.4 Geometry of Linear Combinations 501.5 Matrix Transformations 60

    Chapter Test 77

    2 LINEAR SYSTEMS AND THEIR SOLUTION 792.1 Linear Systems of Equations 802.2 Echelon Forms 1052.3 Properties of Solution Sets 1232.4 Nonsingular Linear Systems 1432.5 LU-Factorization 1662.6 The (Least Squares) Line of Best Fit 172

    Chapter Test 181

    3 THE DETERMINANT, A GEOMETRIC APPROACH 1833.1 The Magnification Factor 1843.2 The Determinant of a Matrix 1923.3 Computing det(A) Using Row Operations 2023.4 Recursive Computation of the Determinant (Optional) 2073.5 Cramer's Rule (Optional) 2153.6 The Cross Product (Optional) 218

    Chapter Test 225

    4 EIGEN INFORMATION 2274.1 Eigenvalues and Eigenvectors 2284.2 Computing Eigen Information for Small Matrices 2404.3 Diagonalization and Similar Matrices 2544.4 Orthogonal Matrices and Spectral Representation 2624.5 The Gram-Schmidt Process 2754.6 The QR-Factorization (Optional) 2834.7 Singular Value Decomposition (Optional) 293

    Chapter Test 302vii

  • 7/29/2019 Modern Matrix Algebra

    8/480

    viii CONTENTS

    5 VECTOR SPACES 3035.1 The Vector Space Structure 3045.2 Subspaces and Span 3135.3 Bases and Dimension 325

    Chapter Test 338

    6 INNER PRODUCT SPACES 3406.1 The Dot Product in Rn and Cn 3416.2 Inner Products and Norms 3446.3 Orthogonal Bases and Projections 3556.4 Least Squares 3706.5 Orthogonal Complements (Optional) 3836.6 Linear Systems and Their Subspaces (Optional) 388

    Chapter Test 390

    7 LINEAR TRANSFORMATIONS 3917.1 Transformations 3927.2 Associated Subspaces and Operations Involving Linear

    Transformations 3977.3 Matrix Representation 4087.4 Change of Basis (Optional) 4257.5 Fractals: An Application of Transformations (Optional) 434

    Chapter Test 448

    8 MATLAB 4508.1 Matrix Input 4518.2 MATLAB Commands 455

    APPENDIX 1: COMPLEX NUMBERS 459

    APPENDIX 2: SUMMATION NOTATION 463

    ANSWERS/SOLUTIONS TO SELECTED EXERCISES 467

    INDEX 507

  • 7/29/2019 Modern Matrix Algebra

    9/480

    P R E F A C E

    Linear algebra is an important course for an increasing number of students in diverse

    disciplines. It is the course in which the majority of students have the opportunity

    to learn abstract concepts and deal with a wide variety of applications that can be

    drawn from fields such as physics, chemistry, biology, geology, economics, engi-

    neering, computer science, psychology, and sociology.

    This book provides an introduction to the basic algebraic, geometric, and com-

    putational tenets of linear algebra at the sophomore level. It also stresses the abstract

    foundations of the topics involved, using a spiral approach. To this end we introduce

    many of the foundations of linear algebra by first dealing with matrices, their proper-

    ties, and the algebra associated with them, while showing the geometric foundations

    of the topics. It is important for students to be able to associate a visual perception

    with certain topics, and we try to emphasize that algebra and geometry are comple-

    mentary to one another. We next use a linear system of equations to develop the

    basic abstract notions of linear algebra. Rather than use abstract vector spaces, we

    concentrate on the subspaces associated with a linear system and its coefficient ma-

    trix. Chapters 1 through 4 establish these foundations and provide the opportunity

    to explore a variety of applications that illustrate the underlying concepts.

    The second level of the spiral involves Chapters 5 through 7, in which the

    major ideas of beginning linear algebra are developed from a more abstract point

    of view. At this point the student has worked with the notions and jargon in the

    special cases of matrices and the subspaces associated with a linear system. Hencethe reformulation of the topics to the general setting of abstract vector spaces is not

    as intimidating from either a conceptual or algebraic standpoint. We feel that the

    experience obtained in Chapters 1 through 4 will make the assimilation of ideas in

    the more abstract setting easier since we have established conceptual hooks for all

    the major concepts.

    Throughout the text there is the opportunity to use MATLABR

    to complement

    the topics. It is not required, but in todays computer-oriented society and work-

    place our experience is that it adds a level of understanding through hands-on in-

    volvement with computations and concepts. This certainly is in line with the Linear

    Algebra Curriculum Study Group recommendations and is supported by the expe-

    riences of a wide segment of mathematical educators. The idea is to use software

    tools within MATLAB to enhance the presentation of topics and provide opportuni-

    ties for students to explore topics without the algebraic overhead involved in solvinglinear systems. To this end there are tools available for both the instructor and the

    student.

    Our approach is somewhat different from that developed elsewhere. However,

    the major objective is to present the basic ideas of linear algebra in a manner that

    the student will understand by utilizing both algebraic and geometric constructs.

    ix

  • 7/29/2019 Modern Matrix Algebra

    10/480

    x PREFACE

    EXERCISES

    The exercises are an integral part of this text. Many of them are numerical in nature,

    whereas others are more conceptually oriented. The conceptual exercises often call

    for an explanation, description, or supporting reasoning to establish credence of a

    statement. It is extremely important in our technological age to be able to commu-

    nicate with precision and to express ideas clearly. Thus exercises of this type aredesigned to sharpen such skills. An instructor can choose whether to incorporate

    complex numbers and matrices as part of the course. While the use ofMatlabis optional, we highly encourage both instructors and students to incorporate it in

    some way within the instructional and study processes associated with this text.

    Hence, where appropriate we have included MATLAB exercises, denoted ML exer-

    cises, in many sections. These are grouped separately from the standard exercises.

    If an instructor desires to use M ATLAB as part of the course, then naturally it can be

    used with the computationally oriented standard exercises.

    PRESENTATION

    We have learned from experience that at the sophomore level, abstract ideas must

    be introduced gradually and must be supported by firm reasoning. Thus we have

    chosen to use a spiral approach so that basic linear algebra concepts are seen first

    in the context of matrices and solutions of linear systems, and are then extended

    to a more general setting involving abstract vector spaces. Hence there is a natural

    grouping of the material. Chapters 1 through 4 emphasize the structure and algebra

    of matrices and introduce the requisite ideas to determine and analyze the solution

    space of linear systems. We tie the algebra to geometric constructs when possible

    and emphasize the interplay in these two points of view. We also provide the op-

    portunity to use the notions of linear algebra in a variety of applications. (A list of

    applications appears on pages xivxv.) Chapters 5 through 7 extend the concepts

    of linear algebra to abstract vector spaces. We feel that the experiences from Chap-

    ters 1 through 4 make the assimilation of ideas in this more abstract setting easier.

    Instead of encountering a dual battle with abstract vector space notions and the con-cepts for manipulating such information, there is only the generalization to objects

    that are not necessarily vectors or matrices. Since we have already established the

    major concepts of closure, span, linear independence/dependence, subspaces, trans-

    formations, and eigenvalues/eigenvectors, the accompanying language and major

    manipulation steps are familiar.

    We have designed features throughout the text to aid students in focusing on

    the topics and for reviewing the concepts developed. At the end of each section is

    a set of True/False Review Questions on the topics introduced. In addition, there

    is a list of terminology used in the section together with a set of review/discussion

    questions. This material can be used by the student for self study or by the instructor

    for writing exercises. At the end of each chapter is a Chapter Test, which provides

    additional practice with the main topics.

    Rather than include only answers to exercises in a section at the back of thebook, we have also included complete solutions to selected exercises. A number

    of these provide guidance on the strategy for solving a particular type of exercise,

    together with comments on solution procedures. Thus our Answers/Solutions to

    Selected Exercises incorporates features of a student study guide. The answers to

    all of the True/False Review Questions and the Chapter Tests are included at the

    back of the book.

  • 7/29/2019 Modern Matrix Algebra

    11/480

    PREFACE xi

    MATERIAL COVERED

    Chapters 1 through 4 cover the major topics of linear algebra using only matrices

    and linear systems. A goal is to establish early on the language and concepts of (gen-

    eral) linear algebra with these simple, pervasive, and concrete constructs. Hence the

    order of topics is not traditional, yet carefully builds the solution space of a linearsystem, basic notions of linear transformations, and the eigen concepts associated

    with matrices. There is ample flexibility in the topics, in Chapters 3 and 4 espe-

    cially, to develop a variety of paths for instruction. By careful selection of materials

    an instructor can also incorporate selected sections of Chapters 5 through 7, instead

    of using the linear ordering given in the table of contents. Varying the amount of

    time spent on the theoretical material can readily change the level and pace of the

    course.

    Chapter 1 deals with matrices, their properties, and operations used to

    combine the information represented within this simple data structure. We use the

    simple versatile matrix to introduce many of the fundamental concepts of linear

    algebra that are later extended to more general settings. Chapter 2 develops tech-

    niques for solving linear systems of equations and for studying the properties of the

    sets of solutions. In particular, we investigate ways to represent the entire set ofsolutions of a linear system with the smallest amount of information possible. This

    adds an important concept to those previously developed. Chapter 3 introduces

    the basic properties of determinants. The concepts in this chapter can be viewed

    as extensions of previous material or can be treated more traditionally using recur-

    sive computation. The instructor has flexibility in choosing the extent to which the

    variety of material in this chapter is used. Chapter 4 considers the concepts of

    eigenvalues and eigenvectors of a matrix. We initially provide a geometric moti-

    vation for the ideas and follow this with an algebraic development. In this chapter

    we do consider that a real matrix can have complex eigenvalues and eigenvectors.

    We also have presented material that uses eigen information for image compression,

    and hence efficient transmission of information. This approach serves to illustrate

    geometrically the magnitude of the information that is distilled into the eigenvalues

    and eigenvectors. Optionally the important notion of singular value decomposi-

    tion can be discussed. Chapter 5 introduces abstract vector spaces. Here we use

    the foundations developed for matrices and linear systems in previous chapters to

    extend the major concepts of linear algebra to more general settings. Chapter 6

    discusses inner product spaces. The material here is again an extension of ideas

    previously developed for vectors in Rn (and Cn ). We revisit topics in more gen-

    eral settings and expand a number of applications developed earlier. We investigate

    the important notion of function spaces. Chapter 7 presents material on linear

    transformations between vector spaces that generalize the matrix transformations

    developed in Chapter 1. We further analyze properties and associated subspaces of

    linear transformations. We also extend the notion of eigenvalues and eigenvectors to

    this more general setting. As an application we present an introduction to fractals,

    which requires the use of M ATLAB in order to provide a visualization componentto this important area of mathematics. Chapter 8 provides a quick introduction to

    MATLAB and to some of the basic commands and language syntax needed to effec-

    tively use the optional ML exercises included in this text. Appendix 1 introduces

    in a brief but thorough manner complex numbers. Appendix 2 reviews material on

    summation notation.

  • 7/29/2019 Modern Matrix Algebra

    12/480

    xii PREFACE

    MATLAB SOFTWARE

    MATLAB is a versatile and powerful software package whose cornerstone is its lin-

    ear algebra capabilities. MATLAB incorporates professionally developed computer

    routines for linear algebra computation. The code employed by M ATLAB is writ-

    ten in the C language and is upgraded as new versions are released. MATLAB is

    available from The MathWorks, Inc., 24 Prime Park Way, Natick, MA 01760, (508-

    653-1415), e-mail [email protected] and not distributed with this book or

    the instructional routines developed for the ML exercises.

    The instructional M-files that have been developed to be used with the ML

    exercises of this book are available from the following Prentice Hall Web site:

    www.prenhall.com/hillkolman . (A list of these M-files appears in Section

    8.2.) These M-files are designed to transform MATLABs capabilities into instruc-

    tional courseware. This is done by providing pedagogy that allows the student to

    interact with MATLAB, thereby letting the student think through the steps in the so-

    lution of a problem and relegating M ATLAB to act as a powerful calculator to relieve

    the drudgery of tedious computation. Indeed, this is the ideal role for M ATLAB in

    a beginning linear algebra course, for in this course, more than in many others, the

    tedium of lengthy computations makes it almost impossible to solve modest-sizedproblems. Thus by introducing pedagogy and reining in the power of M ATLAB,

    these M-files provide a working partnership between the student and the computer.

    Moreover, the introduction to a powerful tool such as M ATLAB early in the students

    college career opens the way for other software support in higher-level courses, es-

    pecially in science and engineering.

    SUPPLEMENTS

    Instructors Solutions Manual (0-13-019725-4): Contains answers/solutions to

    all exercises and is available (to instructors only) from the publisher at no cost.

    Optional combination packages: Provide a MATLAB workbook at a reduced cost

    when packaged with this book. Any of the following three MATLAB manuals canbe wrapped with this text for a small extra charge:

    Hill/Zitarelli, Linear Algebra Labs with MATLAB, 2/e (0-13-505439-7)

    Leon/Herman/Faukenberry, ATLAST Computer Exercises for Linear Algebra

    (0-13-270273-8)

    Smith, MATLAB Project Book for Linear Algebra (0-13-521337-1)

    ACKNOWLEDGMENTS

    We benefited greatly from the class testing and useful suggestions of David E.

    Zitarelli of Temple University. We also benefited from the suggestions and review of

    the MATLAB material provided by Lila F. Roberts of Georgia Southern University.We are pleased to express our thanks to the following reviewers: John F.

    Bukowski, Juniata College; Kurt Cogswell, South Dakota State University; Daniel

    Cunningham, Buffalo State College; Rad Dimitric, University of California, Berke-

    ley; Daniel Kemp, South Dakota State University; Daniel King, Sarah Lawrence

    College; George Nakos, US Naval Academy; Brenda J. Latka, Lafayette College;

    Cathleen M. Zucco Teveloff, State University of New York, New Paltz; Jerome

    Wolbert, University of Michigan at Ann Arbor.

  • 7/29/2019 Modern Matrix Algebra

    13/480

    PREFACE xiii

    The numerous suggestions, comments, and criticisms of these people greatly

    improved this work.

    We thank Dennis Kletzing, who typeset the entire manuscript.

    We also thank Nina Edelman, Temple University, for critically reading page

    proofs. Thanks also to Blaise DeSesa for his aid in editing the exercises and solu-

    tions.Finally, a sincere expression of thanks to Betsy Williams, George Lobell, Gale

    Epps, and to the entire staff at Prentice Hall for their enthusiasm, interest, and co-

    operation during the conception, design, production, and marketing phases of this

    book.

    D.R.H.

    B.K.

  • 7/29/2019 Modern Matrix Algebra

    14/480

    L I S T O F A P P L I C A T I O N S

    S E C T I O N A P P L I C A T I O N

    1.1 Graphs/incidence matrix (see also MATLAB routine igraph)1.1(Exer. ML.2) Plotting in MATLAB

    1.1(Exer. 6) Speedometers1.1(Exer. ML.5) Polynomials

    1.1(Exer. 5 & ML.7) Temperature scales1.1 Postal rates1.1 Wind chill1.1 Quadratic equation/parabola

    1.1, 3.5(Exer. 5) Investments1.2(Exer. ML.4) RGB color (see also MATLAB routine rgbexamp)

    1.2(Exer. 45), 2.1 Parametric form of a cubic curve in 3-space (see also MATLAB routine paracub)1.2 Parametric form of a line

    1.3, 4.2 Markov chain/process1.3 Path length in a graph

    1.3 (Exer. 13, 24) Store stock1.3, 2.4 Wavelets

    1.3(Exer. ML.46) Weather model (see also MATLAB routine weather)1.4(Exer. ML.3) Convex linear combinations

    1.4, 5.2 Translations1.5 Images of plane figures (see also MATLAB routines mapit and planelt)

    1.5(Exer. 810) Shearing plane figures1.5 Orthogonal projections (see also MATLAB routine project)

    2.1 Parametric form of a cubic curve in 3-space2.1 Quadratic interpolation

    2.1 Temperature distribution2.2 Cubic splines2.4 Cryptography2.4 Polynomial interpolation (see also MATLAB routine pinterp)2.6 Least squares lines/lines of best fit (see also MATLAB routine lsqgame)

    2.6(Exer. 6) Least squares quadratics2.6(Exer. 3) Personal health care expenditures

    2.6 Temperature change with altitude

    3.1 Area of a triangle3.1 Area of a parallelogram (see also MATLAB routine areapara)3.1 Area of a polygonal region3.6 Angle between planes3.6 Equations of planes & projections from a plane3.6 Normal vectors to planes

    4.1 Leslie population model4.2 Power method (see also MATLAB routine pmdemo)4.4 Symmetric images (see also MATLAB routine specgen)4.4 Image of the unit circle by a symmetric matrix4.7 Data compression via SVD4.7 Image of the unit circle by a general 22 matrix (see also MATLAB routine mapcirc)

    xiv

  • 7/29/2019 Modern Matrix Algebra

    15/480

    LIST OF APPLICATIONS xv

    S E C T I O N A P P L I C A T I O N

    5.2 Trail mix varieties5.3 Sweep-Clean product line

    6.3, 6.4 El Ni~no (see also MATLAB routine trigpoly)

    6.3 Introduction to Fourier analysis (see also MATLAB routine trigpoly)6.4 Continuous least squares approximation6.4 Discrete least squares approximation6.4 Shotgun bore6.4 U.S. public debt

    7.3 Differentiation operators7.5 Fractals (see also MATLAB routines dragon, koch, tree3, hfractal, et. al.)

  • 7/29/2019 Modern Matrix Algebra

    16/480

  • 7/29/2019 Modern Matrix Algebra

    17/480

    C H A P T E R

    11MATRICES AND MATRIX

    ALGEBRA

    The revolution of the latter part of the twentieth century that continues into thetwenty-first century is the information age. The collection, organization, trans-mission, and interpretation of information are the cornerstones of science, industry,

    business, and government. Each of these aspects of information management uses

    mathematics as a tool; sampling techniques are used to collect data, data structures

    and encoding procedures are used to organize infor-

    mation, transformation/compression schemes are em-

    ployed to distill information for rapid transmission,

    and a wide variety of mathematical models can be con-

    structed to provide the means to analyze and visual-

    ize information content. The role of mathematics is to

    make the invisible (information) visible.1

    Mathematical models can be as simple as tables,

    charts, and graphs or as complex as DNA chains. In

    this chapter we investigate the contributions of the sim-

    ple versatile structure known as a matrix. Basically

    a matrix is an arrangement of rows and columns that

    provides an organizational structure for data. We in-

    vestigate how such structures can be manipulated. In

    later chapters we show how certain manipulations can

    be used to reveal intrinsic properties of the information

    within a matrix. The matrix is just one of the structuresthat fits a variety of situations and hence provides

    a means to unify the study of properties common to

    diverse applications.

    A=[1 2;0 6;5 7]A=

    1 20 6

    5 7 row2=A(2,:)row2=

    0 6

    col1=A(:,1)col1=

    1

    0

    5 diagonal=diag(A)diagonal=

    16

    Matrices in MATLAB

    1Keith Devlin, Life by the Numbers, John Wiley and Sons, Inc., 1998.

    1

  • 7/29/2019 Modern Matrix Algebra

    18/480

    2 CHAPTER 1 I Matrices and Matrix Algebra

    Since matrices provide an important structure for organizing data, it is not sur-prising that computer programs take advantage of such a device. In this book werefer to the computing environment MATLAB R. The MATLAB material is com-pletely optional but does provide an instructional opportunity for those wanting toincorporate the use of technology in linear algebra. Where appropriate we will dis-

    play features that show how a topic can use MATLAB and its graphics. See Chapter8 for a brief introduction to MATLAB.

    1.1 I MATRICES

    A matrix is an arrangement of rows and columns that organizes information. It isoften called the mother of all data structures. Examples 1 through 5 illustrate avariety of matrix structures. We give a formal definition later in this section. Wealso introduce a notation for matrices and the data entries within a matrix that willbe used throughout this book.

    E X A M P L E 1 A table of values that is a sample of the function y=

    x2 can beused to generate a graph that provides a visual representation of the curve describedby the function. Such a table is a matrix.

    x 2 1 0 0.5 1 1.5y 4 1 0 0.25 1 2.25

    I

    E X A M P L E 2 United States postal rates for first class mailings can also be shownin a matrix.

    wt

    =weight in oz. wt

    1 1 < wt

    2 2 < wt

    3 3 < wt

    4

    rate $0.33 $0.55 $0.77 $0.99I

    E X A M P L E 3 The wind chill table that follows is a matrix.

    F

    15 10 5 0 5 10mph

    5 12 7 0 5 10 1510

    3

    9

    15

    22

    27

    34

    15 11 18 25 31 38 4520 17 24 31 39 46 53

    A combination of air temperature and wind speed makes a body feel colder than theactual temperature. For example, when the temperature is 10F and the wind is 15miles per hour, this causes a body heat loss equal to that when the temperature is18F with no wind. I

  • 7/29/2019 Modern Matrix Algebra

    19/480

    SECTION 1.1 I Matrices 3

    E X A M P L E 4 It is known that the three points (1, 5), (1, 1), (2, 7) lie on aparabola, p(x) = ax2 + bx + c. In order to determine its y-intercept, we first wantto find the coefficients a, b, and c. We note that each of the three points must satisfythe quadratic equation, so we have the following system of linear equations:

    a(1)2

    +b(1)

    +c

    = 5

    a(1)2 + b(1) + c = 1a(2)2 + b(2) + c = 7

    or

    a+

    b+

    c=

    5

    a b + c = 14a + 2b + c = 7.

    Observe that like unknowns are aligned in a column form, so a matrix representingthis system of equations will be taken as follows:

    Coefficients ofunknown b

    Coefficients of unknown a

    Coefficients of unknown c

    Coefficients from first equationCoefficients from second equation

    Coefficients from third equation 1 1 1 51

    1 1 1

    4 2 1 7 Values on right sideof the = sign

    The solution of the linear system of equations will provide values for the coefficientsa, b, and c. We can then compute the y-intercept. Figure 1 shows the three datapoints and the graph of the quadratic polynomial obtained from solving the systemof linear equations. I

    30

    20

    10

    0

    10 2 0 2 4

    FIGURE 1

    E X A M P L E 5 The director of a trust fund has $100,000 to invest. The rules ofthe trust state that both a certificate of deposit (CD) and a long-term bond must beused. The directors goal is to have the trust yield $7800 on its investments for

    the year. The CD chosen returns 5% per annum and the bond 9%. The directordetermines the amount x to invest in the CD and the amount y to invest in the bondas follows:

    Total investment = $100,000 gives equation x + y = 100,000Investment return = $7800 gives equation 0.05x + 0.09y = 7800 (1)

    The linear system of equations in (1) can be represented in a matrix like that usedin Example 4:

    Coefficients ofunknown x

    Coefficients of unknown y

    1 1 100,0000.05 0.09 7800

    Values on the right side of the = sign

    Later we will show how to use the matrix representing the linear system to determinea solution. But for now we can solve the linear system of equations in (1) using thefamiliar elimination technique outlined next.

    Solve the first equation for x : x = 100,000 y. (2)

  • 7/29/2019 Modern Matrix Algebra

    20/480

    4 CHAPTER 1 I Matrices and Matrix Algebra

    Substitute (2) into the second equation of the linear system in (1) to get

    0.05(100,000 y) + 0.09y = 7800. (3)Solving (3) for y, we get y = 70,000. Substitute this value for y into (2) and solvingfor x, we get x = 30,000. Thus the trust director should invest $30,000 in the CDand $70,000 in the bond. I

    We will learn how to solve linear systems of equations like those in Examples 4and 5, and much larger systems containing more unknowns and more equations. Wewill show how to use the matrix structure that contains the coefficients and numbersto the right of the equal sign in the solution process. Our techniques will operatedirectly on the matrix structure rather than use algebraic elimination of variables, asdone in Example 5. Thus we make the following definition.

    Definition A matrix is a rectangular array consisting of rows and columns of realnumbers, complex numbers, expressions, etc. We say matrix A is of size m n ifAhas m rows and n columns. The contents of a matrix are called entries or elementsand are placed at the intersection of rows and columns. We use a

    i jto denote the

    entry of matrix A that lies at the i th row and j th column. We denote matrix A asA =

    ai j

    where

    A =

    a11 a12 a1na21 a22 a2n

    ...... ...

    ......

    j th column

    i th rowai j...

    ...... ...

    am1 am2 amn

    Row i ofA is

    ai1 ai2 ain

    and column j ofA is

    a1ja2j

    ...

    ...

    am j

    .

    An additional notation for the entries of a matrix is enti j (A), which we read asentry (i, j ) ofA or the (i, j )-entry ofA.

    A matrix with exactly one row, that is, of size 1 n, is called a row matrixor row vector. A matrix with exactly one column, that is, of size m 1, is calleda column matrix or column vector. Often we will use the term row or column

    for brevity, or just the term vector. If a vector has n entries we call it an n-vector.At times we will want to emphasize that we are working with a particular row orcolumn of a matrix A; then we use the notation

    rowk(A) is row k of matrix A

    colk(A) is column k of matrix A

    Linear algebra and geometry are interchangeable, as we will see throughout thisbook. We will often use geometric models to help us visualize algebraic objects and

  • 7/29/2019 Modern Matrix Algebra

    21/480

    SECTION 1.1 I Matrices 5

    concepts. It is helpful to have a geometric model of an n-vector when its entries arereal numbers. Here we give an intuitive introduction to such geometric vectorsand provide a detailed development in Section 1.4.

    If the entries of a 2-vector v =

    v1 v2

    are real numbers, then there is anatural geometric model for v as a directed line segment in the plane connecting

    the origin O(0, 0) with the point P(v1, v2) as shown in Figure 2. Similarly, for a3-vector w =

    w1 w2 w3

    with real entries we have the 3-dimensional geomet-

    ric model shown in Figure 3.

    O v1

    v2 Pv

    x

    y

    FIGURE 2

    w1w2

    w3

    w

    x

    y

    P

    z

    O

    FIGURE 3

    It is customary to think of an n-vector, n > 3, with real entries in an analogousfashion, even though we cannot draw a corresponding picture.

    An m n matrix A with the same number of rows as columns, m = n, is calleda square matrix of order n. The entries a11, a22, . . . , at the intersection of likenumbered rows and columns are called the (main) diagonal entries of matrix A. Asquare matrix A of order n has n diagonal entries a11, a22, . . . , ann , while an m nmatrix A has diagonal entries a11, a22, . . . , akk, where k = min{m, n}.

    E X A M P L E 6 Let

    A = 1.1 3.24.0 6.10.1 17.32.0 p

    .Then we have ent21(A) = 4.0, ent32(A) = 17.3,

    row2(A) =

    4.0 6.1

    a 2-vector,

    col1(A) =

    1.14.0

    0.12.0

    a 4-vector, and the diagonal entries ofA are a11=

    1.1 and a22=

    6.1. I

    Definition A square matrix A =

    ai j

    for which ai j = 0 when i = j , that is,for which every entry not on the main diagonal is zero, is called a diagonal matrix.

    E X A M P L E 7 A =

    5.5 00 8.0

    and B =

    12 0 00 9 0

    0 0 1

    are diagonal

  • 7/29/2019 Modern Matrix Algebra

    22/480

    6 CHAPTER 1 I Matrices and Matrix Algebra

    matrices. The diagonal entries of a diagonal matrix can be zero; for instance,

    C =

    4 0 0

    0 8 00 0 0

    has diagonal entry ent33(C) = 0. I

    A diagonal matrix with each diagonal entry equal to 1 is called an identitymatrix. We designate an n n identity matrix by In. Thus,

    I2 =

    1 00 1

    , I3 =

    1 0 00 1 0

    0 0 1

    , I4 =

    1 0 0 00 1 0 00 0 1 00 0 0 1

    .

    The table of values in Example 1 can be written as the 2 6 matrix

    A = 2 1 0 0.5 1 1.54 1 0 0.25 1 2.25 or, equivalently, as the 6 2 matrix

    B =

    2 41 1

    0 00.5 0.25

    1 11.5 2.25

    .

    Matrix B is obtained from matrix A by writing rowk(A) as colk(B) for k = 1,2. This interchange of rows to columns (or equivalently columns to rows) will be

    convenient in upcoming topics, so we define the following operation on a matrix.

    Definition IfA =

    ai j

    is an m n matrix, then AT =

    bi j

    is the n mmatrix where bi j = aji , and matrix AT is called the transpose of matrix A. [Thatis, the (i, j )-entry ofAT is the (j, i )-entry ofA.] The transpose of a matrix A isobtained by interchanging its rows and columns.

    It follows that the transpose of a row matrix is a column matrix and vice versa.

    E X A M P L E 8 Let C =

    1 2 4 60 3 5 7

    and D =

    5 21 0

    . Then we

    have

    CT =

    1 02 34 5

    6 7

    and DT = 5 12 0

    .

    For E = 1.8 6.3 12 , we have ET = 1.86.3

    12

    . I

  • 7/29/2019 Modern Matrix Algebra

    23/480

    SECTION 1.1 I Matrices 7

    Definition A square matrix A with real entries is called symmetric ifAT = A.That is, A is symmetric if enti j (A) = entji (A).

    E X A M P L E 9 Every diagonal matrix is symmetric and in particular each identity

    matrix is symmetric; IT

    n = In . Each of the following matrices is symmetric.

    A =

    5 88 2

    , B =

    2 1 11 2 1

    1 1 2

    , C =

    0 p 4.4 0p 1 3.9 8

    4.4 3.9 72 30 8 3 12

    The arrangement of entries in a symmetric matrix is symmetric about the diagonal.

    5

    1

    8

    1

    0 7

    8 79

    I

    There are two other special types of matrices that have a particular pattern forthe arrangement of zero entries that will be used in later sections. We define thesenext. Compare these types with diagonal matrices.

    Definition An m n matrix U is called upper triangular if enti j (U) = 0 fori > j ; that is, all the entries below the diagonal entries are zero. A square uppertriangular matrix is shown below:

    U =

    u11 u12 u1n0 u22 u2n0 0 u33 u3n...

    ...

    . . .

    ...

    0 0 unn

    .

    Definition An m n matrix L is called lower triangular if enti j (L) = 0 fori < j ; that is, all the entries above the diagonal entries are zero. A square lowertriangular matrix is shown below:

    U =

    l11 0 0l21 l22 0l31 l32 l33 0

    ...... . . . ...

    ln1 ln2 lnn

    .

    We can represent diagonal matrices, square upper triangular matrices, andsquare lower triangular matrices schematically as follows:

    Zeros

    Diagonal Upper triangular Lower triangular

    Zeros Zeros

    Zeros

  • 7/29/2019 Modern Matrix Algebra

    24/480

    8 CHAPTER 1 I Matrices and Matrix Algebra

    The black shaded areas represent the regions in which nonzero entries can appear.Examples 10 and 11 show several nonsquare upper and lower triangular matrices.

    E X A M P L E 1 0 Each of the following matrices is upper triangular.

    2 5

    0 7

    ,

    4 0 10 3 90 0 12

    , 1 0 00 1 00 0 1

    , 0 00 0

    ,

    2 0 0 00 5 0 00 0 8 00 0 0 6

    ,

    2 2 1 30 5 3 150 0 8 70 0 0 6

    ,

    5 3 1 20 4 3 6

    0 0 8 1

    ,

    7 50 20 00 0

    .

    I

    E X A M P L E 1 1 Each of the following matrices is lower triangular.

    5 013 4 , 4 0 0

    9 8 05 6 1 ,

    1 0 00 1 00 0 1

    , 0 00 0 ,

    2 0 0 00 5 0 00 0 8 00 0 0 6

    ,

    2 0 0 02 5 0 01 3 8 03 15 7 6

    ,

    4 0 0 02 1 0 0

    3 1 6 0

    ,

    2 04 51 60 2

    .

    I

    The entries of our matrices will usually be real numbers, but they can be com-plex also; in fact, entries can be functions. Basic information about complex num-bers appears in Appendix 1. When matrices with complex entries are used, thenotion of a transpose is changed to conjugate transpose; that is, we take the con-jugate of each entry and then the transpose (or take the transpose of the matrix andthen the conjugate of each entry). The conjugate transpose of a matrix Q is denotedby Q. For example,

    Q =

    3 2i 5 + i2i 7

    =

    3 + 2i 2i5 i 7

    .

    We conclude this section by showing two ways by which particular types ofinformation can be represented using a matrix.

    By a graph we mean a set of points called nodes or vertices, some of which areconnected by edges. The nodes are usually labeled as P1, P2, . . . , Pk and for nowwe allow an edge to be traveled in either direction. One mathematical representationof a graph is constructed from a table. For example, the following table representsthe graph shown in Figure 4.

    P1 P2 P3 P4

    P1 0 1 0 0

    P2 1 0 1 1

    P3 0 1 0 1

    P4 0 1 1 0

    P1

    P2

    P3

    P4

    FIGURE 4

  • 7/29/2019 Modern Matrix Algebra

    25/480

    SECTION 1.1 I Matrices 9

    We have that the (i, j )-entry = 1 if there is an edge connecting vertex Pi to vertexPj , otherwise (i, j )-entry = 0. The incidence matrix A is the kkmatrix obtainedby omitting the row and column labels from the preceding table. The incidencematrix for the graph in Figure 4 is

    A =

    0 1 0 0

    1 0 1 10 1 0 10 1 1 0

    .Note that incidence matrix A is symmetric. (See Exercise 15 at the end of thissection.)

    A Markov matrix or probability matrix is a square matrix A whose entriessatisfy 0 ai j 1 and the sum of the entries in each column is 1. Such matricesare used in mathematical models that predict changes in the behavior of a process.

    (See Section 1.3.) For example, A = 0.2 0.3 00.7 0.3 0.5

    0.1 0.4 0.5

    is a 3 3 Markov matrix.

    E X E R C I S E S 1 . 1

    1. Determine a matrix that holds the information you woulduse to graph y = x3 at equispaced values ofx starting atx = 2, with spacing of 0.5, and ending at x = 1.5.

    2. Determine a matrix that holds the information you woulduse to start a sketch of the surface z = 2x + y where xtakes values in the set {1, 0, 1} and y takes values in theset {0, 1, 2}.

    3. From Example 3, extract a matrix that gives the wind chillinformation when the temperature in F takes values in theset

    {5, 0,

    5

    }and the wind speed in miles per hour takes

    on values in the set {5, 15}.4. Determine a matrix that represents the system of equa-

    tions that arises when you want the quadratic polyno-mial p(x) = ax2 + bx + c to go through the points{(0, 0), (2, 3), (3, 1)}.

    5. Water freezes at 32F and 0C and it boils at 212F and100C. Determine the linear equation y = mx+ b, wherex is in F and y is in C, that relates temperatures in Fto those in C. Using this equation, construct a 2 5 ma-trix whose first row is 40F, 50F, 60F, 70F, 80F andwhose second row is the corresponding temperature in C.

    6. Many autos have speedometers that show both mph (miles

    per hour) and kph (kilometers per hour). Typically maxi-mum auto speeds in a school zone are 15 mph or 24 kphand on limited access highways 65 mph or 105 kph.Determine the linear equation y = mx + b, where x is inmph and y is in kph, that relates speeds in mph to those inkph. Using this equation construct a 2 6 matrix whosefirst row is 15 mph, 25 mph, 35 mph, 45 mph, 55 mph,65 mph and whose second row is the corresponding speedin kph. (The stated data in kph has been rounded to the

    nearest whole number. Do the same for the speeds in kphthat you record in the matrix.)

    7. Construct a linear system of three equations in threeunknowns that provides a model for the following and thenrepresent the linear system in a matrix as done in Exam-ples 4 and 5.

    An inheritance of $24,000 is divided into three parts,with the second part twice as much as the first. Thethree parts are invested and earn interest at the annualrates of 9%, 10%, and 6%, respectively, and return$2210 at the end of the first year.

    8. Construct a linear system of three equations in threeunknowns that provides a model for the following and thenrepresent the linear system in a matrix as done in Exam-ples 4 and 5.

    A local health food store is running a special on adried fruit mixture of apricots, apples, and raisins.The owner wants to make 12-pound bags of a 3:2:1mixture with the weight of the apples three times theweight of the apricots and the weight of the raisinstwice that of the apricots.

    In Exercises 9 and10, determine the incidence matrix associ-ated with each given graph.

    9.

    P1

    P2

    P4

    P3

    P5

    10. P2

    P1

    P4

    P3

    P5

  • 7/29/2019 Modern Matrix Algebra

    26/480

    10 CHAPTER 1 I Matrices and Matrix Algebra

    In Exercises 11 and 12, determine the incidence matrix asso-ciated with each given graph.

    11. P2

    P1P4

    P3

    12.

    P6

    P2

    P1

    P4

    P3

    P5

    In Exercises 13 and 14, construct a graph for each given ma-trix. Label the vertices P1, P2, . . . , P5.

    13. A =

    0 1 0 1 11 0 0 0 10 0 0 1 11 0 1 0 11 1 1 1 0

    .

    14. A =

    0 1 0 0 0

    1 0 1 1 10 1 0 0 00 1 0 0 00 1 0 0 0

    .

    15. Explain why every incidence matrix associated with agraph is a symmetric matrix.

    16. Let A =

    5 3 1 24 9 6 7

    .

    (a) Compute AT.

    (b) Compute (AT)T.

    (c) Explain why the result in part (b) could have been an-ticipated.

    (d) Which entries in A and AT did not change positions?Give a name for these entries.

    In Exercises 1720, determine whether each given matrix is aMarkov matrix.

    17.

    0.1 0.70.9 0.3

    . 18.

    0.2 0.4 0.30.8 0.4 0.6

    0.1 0.2 0.1

    .

    19.

    1 0 00 0.5 0.8

    0 0.5 0.2

    . 20. 0.7 0.3

    0.6 0.4

    .

    In Exercises 2123, determine a value for each missing entry,

    denoted by , so that the matrix is a Markov matrix. (In somecases there can be more than one correct answer.)

    21.

    0.5 0.40.3 0.1

    0.5 0.2

    . 22. 0.6

    .

    23.

    0.2 0.2 0.2

    0.2

    .

    An n n matrix A =

    ai j

    is called strictly diagonallydominant if|aii | > sum of the absolute values of the otherentries in rowi (A) for each value i = 1, 2, . . . , n. Strictlydiagonallydominant matrices appear in mathematical mod-els involving approximations to data and in the solution of

    systems of equations that involve rates of change.

    In Exercises 2427, determine whether each given matrix isstrictly diagonally dominant.

    24.

    5 21 3

    . 25.

    6 3 28 0 1

    7 3 12

    .

    26.

    1 0 00 1 0

    0 0 1

    . 27. 7 3

    5 3

    .

    28. (a) Construct a 3

    3 strictly diagonally dominant matrix

    that has no zero entries.

    (b) Construct a 4 4 strictly diagonally dominant matrixwith integer entries where each diagonal entry is equalto its row number, the matrix is symmetric, and thereare no zero entries.

    (c) Can zero ever be a diagonal entry for a strictly diago-nally dominant matrix? Explain.

    (d) Is every diagonal matrix strictly diagonally dominant?Explain.

    29. (a) IfU is upper triangular, then describe UT.

    (b) IfL is lower triangular, then describe LT.

    (c) Give an example of a matrix that is both upper andlower triangular.

    (d) A matrix is both upper and lower triangular.

    30. Suppose we had a system of four linear equations (seeExample 4) in four unknowns, x1, x2, x3, and x4. Con-struct such a system where equation 1 has only unknownx1, equation 2 has only unknowns x1 and x2, and so on. Asin Example 4, build the matrix representing this system ofequations. Looking at just the part that corresponds to thecoefficients, what type of matrix is it?

    31. For the following system of linear equations, construct a

    matrix that represents the system. (See Example 4.)

    5x1 + 8x2 4x3 = 2 4x2 + 6x3 = 0

    2x3 = 10.

    Looking at just the part that corresponds to the coeffi-cients, what type of matrix is it?

  • 7/29/2019 Modern Matrix Algebra

    27/480

    SECTION 1.1 I Matrices 11

    In Exercises 32 and 33, compute the conjugate transpose ofeach given matrix.

    32. A =

    1 + 4i 2 5i 38i 2 + i 3 6i

    .

    33. B = i 0 2 4i .34. What is the conjugate transpose of a matrix all of whose

    entries are real numbers?

    35. A matrix A that is equal to its conjugate transpose,A = A, is called Hermitian. Note that a Hermitian ma-trix must be square.

    (a) Is A =

    3 2 5i2 + 5i 8

    Hermitian?

    (b) Is B = 0 2i 1 + i2i 5 + 3i 3 + 2i

    1 i 8 12

    Hermitian?

    (c) Is C= 5 22 0 Hermitian?

    (d) Construct a 4 4 Hermitian matrix.(e) If a matrix is Hermitian, describe its diagonal entries.

    (f) IfA is Hermitian with all of its entries real numbers,then A is called .

    36. Explain how you would use a mirror to help describe asymmetric matrix.

    In MATLAB

    In order to do the following MATLAB exercises you must haveread Chapter 8 and used MATLAB to work the examples in-cluded in this brief introduction.

    ML. 1. Enter the matrix A = 1 20 6

    5 7

    into MATLAB.(a) Enter the command size(A) and explain the resulting

    output.

    (b) Define matrix B to be the same as A using the com-mand B = A. Then change the (3, 2)-entry ofB to be21.

    (c) Define the column vector x = 39

    15

    in MATLAB

    by using the command x=[3;9;15]. Now enter com-mand [A x] and explain the result.

    (d) Using vector x from part (c), enter command [A;x].Explain the message that appears.

    ML. 2. In Example 1 we had a sample of the function y = x2.In MATLAB define the x-coordinates in a row vector xand the corresponding y coordinates in a row vector y.To plot these six ordered pairs and connect them withstraight line segments, use the following commands:

    figure, plot(x,y,'*b',x,y,'-k')

    Note that the points are designated by blue asterisks(the meaning of'*b') and connected by black linesegments (the meaning of'-k'). For more informa-tion about plotting in MATLAB, type help plot. (Youmay not understand the entire description shown.)

    ML. 3. Enter each of the following commands and explain theoutput. (Remember, you can use help followed by acommand name to get explanations.)

    (a) eye(3) (b) eye(5) (c) ones(4)

    (d) zeros(3) (e) 8*ones(3)

    ML. 4. In MATLAB we compute the transpose of a matrix us-ing the single quote or prime symbol after the name ofthe matrix.

    (a) IfA is the matrix of Exercise ML. 1, then its transposein MATLAB is computed by A'. (Try it. Of course youmust enter the matrix A if you have not already doneso.) The transpose operator is useful when we want

    to enter a column with real entries. For instance thecolumn vector x in ML. 1 could be entered using thecommand x=[3 9 15]'.

    (b) Enter matrix C =

    2 0 49 8 3

    into MATLAB.

    Use each of the following commands and explain theoutput shown.

    C' (C')' C(1,:)' C(:,2)'

    (c) Enter command [A C'] and describe the resultingmatrix in terms of matrices A and C.

    (d) Enter command [C [5 6]' [12 7]'] and describethe resulting matrix in terms of matrix C.

    (e) Compare the matrices generated by the followingcommands: eye(3) and eye(3)'. Complete the fol-lowing statement: Matrix eye(3) is .

    (f) Compare the matrices generated by the followingcommands: ones(4) and ones(4)'. Complete thefollowing statement: Matrix ones(4) is .

    ML. 5. If a matrix has complex entries, then we can enter itinto MATLAB with no special treatment. Here we usei to denote

    1, a square root of1. For

    Q =

    3 2i 5 + i2i 7

    enter the MATLAB command

    Q = [3-2i 5+i;2i 7],

    where we were careful not to use any extra spaces be-tween the real and imaginary parts of the complex en-tries. In MATLAB the transpose operator computes theconjugate transpose of a complex matrix. Enter thecommand Q' and explain the result.

  • 7/29/2019 Modern Matrix Algebra

    28/480

    12 CHAPTER 1 I Matrices and Matrix Algebra

    ML. 6. In Exercises 13 and 14 you were asked to constructthe graphs that corresponded to the incidence matri-ces listed. To check your results we can use MATLAB.Type help igraph for directions; then use the routineigraph to generate the graphs and compare the outputwith your hand-drawn solutions.

    ML. 7. A graph has vertices P1, P2, P3, P4, and P5.

    (a) Construct an incidence matrix that corresponds to thesituation in which there is an edge connecting P3 toevery other vertex, but no other connections. Verifythat your matrix is correct by displaying and checkingthe picture generated by routine igraph.

    (b) Construct an incidence matrix that corresponds tothe situation in which every odd-numbered vertex isconnected to every other odd-numbered vertex and thesame is true for the even-numbered vertices. Verifythat your matrix is correct by displaying and checkingthe picture generated by routine igraph.

    (c) In terms of moving from vertex to vertex traversingany number of edges, describe a distinct differencebetween the pictures generated in parts (a) and (b).

    True/False Review Questions

    Determine whether each of the following statements is true or false.

    1. A diagonal matrix is symmetric.

    2. An identity matrix is symmetric.

    3. An identity matrix is lower triangular.

    4. An identity matrix is upper triangular.

    5. An identity matrix is strictly diagonally dominant.

    6. If a matrix and its transpose are the same, then it is symmetric.

    7. An incidence matrix is symmetric.

    8. The incidence matrix of graphP1 P2

    P3

    has every non-diagonal entry equal to 1.

    9. 0.7 0.3 0

    0.2 0.5 0.50.1 0.2 0.5

    is a Markov matrix. 10. 0.7 0.3 0

    0.2 0.5 0.50.1 0.2 0.5

    is strictly diagonally dominant.Terminology

    System of linear equations Matrix; entries; elements

    Row matrix or vector; column matrix or vector Square matrix

    Diagonal entries of a matrix Diagonal Matrix(P)

    Identity matrix(P) Transpose of a matrix

    Symmetric matrix(P) Upper and lower triangular matrices(P)

    Conjugate transpose of a matrix Graph; vertices; edges

    Incidence matrix Markov matrix(P)

    Diagonally dominant matrix(P) Hermitian matrix(P)

    You should be able to describe the pattern of the entries for each type of matrixdenoted with a (P) and state several examples. Such matrices will appear frequentlythroughout this book. Other types of patterns will also play a prominent role in ourstudy of linear algebra.

    (P)There is a pattern involved in the entries of this type of matrix.

  • 7/29/2019 Modern Matrix Algebra

    29/480

    SECTION 1.2 I Matrix Operations 13

    What is a symmetric matrix symmetric about?

    What type of matrix is both upper and lower triangular?

    Describe how an incidence matrix of a graph is constructed.

    Describe a Markov matrix.

    Is the transpose of a Markov matrix another Markov matrix? Explain your

    answer.

    Is the transpose of a strictly diagonally dominant matrix another strictly diago-

    nally dominant matrix? Explain your answer.

    1.2 I MATRIX OPERATIONS

    As shown in Section 1.1, a matrix can be used to hold and organize information

    from a wide variety of sources. But to be truly useful such a structure must permit

    the information contained therein to be easily manipulated, changed, and processed

    to derive new information. In this section we introduce operations that provide

    tools for further analysis of the information contained in a matrix and we see how

    matrices can be combined to yield new information on a topic.

    In the text.

    aij

    A + B

    A B

    kA

    AT

    c1A1 + c2A2

    In MATLAB.

    A(i, j)

    A + B

    A B

    k *A

    A'

    c1 *A1 + c2 *A2

    Matrix operations1

    Definition Two m n matrices A =ai j

    and B =

    bi j

    are said to be equal

    if enti j (A) = enti j (B) or, equivalently, ai j = bi j , for 1 i m, 1 j n; that is,

    if corresponding entries are equal.

    One way to generate equal matrices is to identify the information contained in

    the matrix in different ways. IfA =ai j

    is m n, then

    A =

    row1(A)

    row2(A)...

    rowm(A)

    where rowk(A) is an n-vector and

    A =

    col1(A) col2(A) coln(A)

    where colk(A) is an m-vector are two ways to group the information in A. For

    1See Chapter 8 and Exercise ML. 1 at the end of this section.

  • 7/29/2019 Modern Matrix Algebra

    30/480

    14 CHAPTER 1 I Matrices and Matrix Algebra

    matrix

    A =

    2 4 73 0 1

    9 5 610 3 8

    ,

    identify

    P1 =

    2 4 73 0 1

    , P2 = row3(A), and P3 = row4(A);

    then A = P1P2

    P3

    . The rows, columns, or portions ofA, like P1, contain subsets of

    the information in A. Accordingly, we make the following definition.

    Definition A submatrix ofA =

    ai j

    is any matrix of entries obtained by omit-ting some, but not all, of its rows and/or columns.

    E X A M P L E 1 Let

    B =

    1 2 3 45 6 7 89 10 11 12

    13 14 15 16

    .

    Each of the following is a submatrix of B. (Determine which rows and columnswere omitted to obtain the submatrix.)

    Q1 =

    1 25 6

    , Q2 =

    3 47 8

    , Q3 =

    9 10

    13 14

    ,

    Q4

    = 11 12

    15 16 , T1 = 1 39 11

    13 15 , T2 = 1 4

    13 16 . IA matrix can be partitioned into submatrices or blocks by drawing horizontal

    lines between rows and vertical lines between columns. Each of the following is apartition of matrix B from Example 1, and we see that a partitioning can be carriedout in many different ways.

    1 2 3 45 6 7 89 10 11 12

    13 14 15 16

    ,

    1 2 3 45 6 7 89 10 11 12

    13 14 15 16

    ,

    1 2 3 45 6 7 89 10 11 12

    13 14 15 16

    In addition,

    A = a11 a12 a13 a14 a15a21 a22 a23 a24 a25a31 a32 a33 a34 a35

    and A = a11 a12 a13 a14 a15a21 a22 a23 a24 a25a31 a32 a33 a34 a35

    are partitions of a 3 5 matrix A. From Example 1, we see that B =

    Q1 Q2Q3 Q4

    is

    a partition or subdivision ofB into 2 2 blocks.We say that a matrix is block diagonal provided that there exists a partitioning

    such that each nondiagonal block consists of all zeros. See Example 2.

  • 7/29/2019 Modern Matrix Algebra

    31/480

    SECTION 1.2 I Matrix Operations 15

    E X A M P L E 2 Let

    A =

    1 2 0 0 03 4 0 0 00 0 5 0 00 0 0 6 7

    0 0 0 8 9

    ;

    then A can be considered a block diagonal matrix in several ways, as indicated bythe following partitionings:

    1 2 0 0 03 4 0 0 00 0 5 0 00 0 0 6 70 0 0 8 9

    ,

    1 2 0 0 03 4 0 0 00 0 5 0 00 0 0 6 70 0 0 8 9

    ,

    1 2 0 0 03 4 0 0 00 0 5 0 00 0 0 6 70 0 0 8 9

    .

    I

    In Example 4 in Section 1.1 we represented the linear system of equations

    a + b + c = 5a b + c = 1

    4a + 2b + c = 7by the matrix

    1 1 1 51 1 1 14 2 1 7

    .

    In Section 2.1 we will use the partitioning 1 1 1 51 1 1 1

    4 2 1 7

    where submatrix A = 1 1 11 1 14 2 1

    is called the coefficient matrix of the linearsystem and submatrix b =

    51

    7

    is called the right side of the linear system.

    Thus we can use the partitioned or block matrix C =

    A b

    to represent the

    linear system.2 Also in Section 2.1 we will find it convenient to use a row partitionofC and perform operations on the rows to refine the information in order to solvethe linear system.

    Partitioning matrices into submatrices or blocks can also be used to speed upthe transmission of information. The 5 5 matrix

    A =

    a b 0 0 0c d 0 0 00 0 e f 00 0 g h 00 0 0 0 k

    2If the coefficient matrix A and right side b have been entered into MATLAB, then command [A b]generates a matrix that represents the linear system. In Section 2.1 we call this the augmented matrixof the linear system.

  • 7/29/2019 Modern Matrix Algebra

    32/480

    16 CHAPTER 1 I Matrices and Matrix Algebra

    is easily partitioned into a block diagonal form:

    a b 0 0 0c d 0 0 00 0 e f 00 0 g h 0

    0 0 0 0 k

    .

    Instead of transmitting the 25 entries ofA, we need only send the 9 entries of the

    diagonal blocks

    a b

    c d

    ,

    e f

    g h

    , and

    k. This type of partitioning is espe-

    cially useful on large matrices in which a high percentage of the entries are zero;such matrices are said to be sparse and can be partitioned in a variety of ways toavoid transmitting blocks of zeros.

    Partitioning implies a subdivision of the information into blocks or units. Thereverse process is to consider individual matrices as blocks and adjoin them to forma partitioned matrix. The only requirement is that after joining the blocks, all rowshave the same number of entries and all columns have the same number of entries.

    E X A M P L E 3 Let B = 23 , C = 1 1 0 , and D = 9 8 41 7 5 .Then we have

    B D

    = 2 9 8 43 1 7 5

    ,

    D

    C

    = 9 8 41 7 5

    1 1 0

    and

    D

    C

    CT

    = 9 8 4 11 7 5 1

    1 1 0 0

    .

    I

    Adjoining matrix blocks to expand information structures is done regularly ina variety of applications. It is common to keep monthly sales data for a year in a

    1 12 matrix and then adjoin such matrices to build a sales history matrix for aperiod of years. Similarly, results of new laboratory experiments are adjoined toexisting data to update a database in a research facility.

    E X A M P L E 4 In Example 5 in Section 2.1 we use the formation of block matri-ces as follows. Certain applications give rise to linear systems of equations wherethe coefficient matrix is the same but the right side of the linear system is different.If a pair of linear systems have the same coefficient matrix A but different rightsides b and c, then the block matrix

    A b c

    can be manipulated to solve both

    systems at once. I

    Next we define operations on matrices that produce new matrices. Theseoperations allow us to combine information from individual matrices and derivenew information. We begin with element-by-element operations; that is, operationsthat combine corresponding entries of the matrices.

    Definition IfA =

    ai j

    and B =

    bi j

    are both m n matrices, then theirsum, A + B, is the m n matrix whose (i, j )-entry is ai j + bi j ; that is, we addcorresponding entries. The difference, A B, is the m n matrix whose (i, j )-entry is ai j bi j ; that is, we subtract corresponding entries.

  • 7/29/2019 Modern Matrix Algebra

    33/480

    SECTION 1.2 I Matrix Operations 17

    E X A M P L E 5 Let

    A =

    2 4 61 0 3

    , B =

    5 1 2

    3 4 7

    , and C =

    1 34 5

    .

    Then

    A + B =

    2 + 5 4 + 1 6 + 21 + (3) 0 + 4 3 + 7

    =

    7 5 42 4 10

    and

    A B =

    2 5 4 1 6 21 (3) 0 4 3 7

    = 3 3 8

    4 4 4

    .

    However, A + C is not defined and neither is B C, since the matrices involved inthese expressions do not have the same size. I

    The next operation involves numbers (possibly real or complex), which we callscalars, and a matrix. The entries of the matrix could be real numbers, complex

    numbers, or even functions; we have not restricted the entries of a matrix.

    Definition IfA =

    ai j

    is an m n matrix and k is a scalar, then the scalarmultiple ofA by k, kA, is the m n matrix whose (i, j )-entry is kai j ; that is, eachentry of matrix A is multiplied by k.

    E X A M P L E 6 Let S1 =

    18.95 14.75 8.98

    be a 3-vector that represents

    the current price of three items at store 1 and S2 =

    17.80 13.50 10.79

    be a3-vector of prices of the same three items at store 2. Then

    P = S1S2 =

    18.95 14.75 8.9817.80 13.50 10.79

    represents the combined information about the prices of the items at the two stores.If each store announces a sale so that the price of each of the three items is reducedby 20%, then

    0.80P =

    0.80S10.80S2

    =

    0.80(18.95) 0.80(14.75) 0.80(8.98)0.80(17.80) 0.80(13.50) 0.80(10.79)

    =

    15.16 11.80 7.1814.24 10.8 8.63

    represents the sale prices at the stores. I

    The scalar multiple (1)A is often written A and is called the negative ofA;thus the difference A B = A + (1)B. The difference A B is also referred toas subtracting B from A.

    Linear Combinations

    We can combine scalar multiples of matrices with addition and subtraction intoexpressions of the form 3A 5B + C, where it is assumed that matrices A, B, andC are of the same size. The scalars multiplying the matrices are called coefficientsor weights.

  • 7/29/2019 Modern Matrix Algebra

    34/480

    18 CHAPTER 1 I Matrices and Matrix Algebra

    Definition A linear combination of two or more quantities is a sum of scalarmultiples of the quantities. The linear combination in which each scalar is zero iscalled the trivial linear combination.

    E X A M P L E 7(a) Let

    b =

    12

    , c =

    23

    , and d =

    40

    .

    Then 2b c + 3d is a linear combination of the 2-vectors b, c, and d withcoefficients 2, 1, and 3, respectively. We have

    2b c + 3d = 2

    12

    2

    3

    + 3

    40

    =

    161

    .

    (b) Let

    A1

    = 1 00 0 , A2 =

    0 10 0 , A3 =

    0 01 0 , and A4 =

    0 00 1 .

    Then c1A1 + c2A2 + c3A3 + c4A4 is a linear combination of the 2 2 matricesAi , i = 1, . . . , 4 with coefficients c1, c2, c3, and c4, respectively.

    (c) Let gi be the score (out of 100) of the i th exam, i = 1, 2, 3, and wi be theweight of the i th exam (that is, the percent of the final grade assigned to thei th exam; 0 wi 1). Then the linear combination w1g1 + w2g2 + w3g3gives the numerical course grade (out of 100). It is assumed that the sum ofthe weights is 1. For example, a student with exam scores g1 = 81, g2 = 97,and g3 = 71 for which the corresponding weights are w1 = w2 = 0.25 andw3 = 0.50 has the numerical course grade

    (0.25)(81) + (0.25)(97) + (0.50)(71) = 80.(d) Polynomial x3

    7x2

    +8x

    +4 is a linear combination of functions x3, x2, x,

    and 1 with coefficients 2, 7, 8, and 4, respectively.(e) Function 4+3sin(x)+ sin(2x)2cos(x)+0.5cos(2x) is a linear combination

    of the functions 1, sin(x), sin(2x), cos(x), and cos(2x) with weights 4, 3, 1,2, and 0.5, respectively. I

    Span

    Linear combinations play an important role in our analysis of the information con-tained in a matrix that represents a linear system of equations or other processes.The following two questions involving linear combinations are the focus of sometopics in Chapter 5:

    1. Given a quantity, can it be expressed as a linear combination of a particular set

    of quantities?2. Given a particular set of quantities, what is the nature of the set of all possible

    linear combinations of these quantities?

    We use the following terminology:

    The set of all possible linear combinations of a particular set S of quantities iscalled the span of set S and is denoted span(S).

  • 7/29/2019 Modern Matrix Algebra

    35/480

    SECTION 1.2 I Matrix Operations 19

    If it is possible to find scalars so that a given quantity can be expressed asa linear combination of a particular set of quantities, we say that the givenquantity is in the span of the set.

    E X A M P L E 8 Given the set of 2-vectors

    S =

    21

    ,

    13

    and 2-vector b =

    70

    , is b in span(S)? If it is, then we should be able to find

    scalars c1 and c2 so that the linear combination

    c1

    2

    1

    + c2

    13

    = b =

    70

    . (1)

    Perform the scalar multiplication and matrix addition on the left side of (1) and anequivalent expression is

    2c1 + c2

    c1

    +3c2 =

    70 .

    Using equality of matrices (that is, corresponding entries are equal), we see that thisis a system of linear equations

    2c1 + c2 = 7c1 + 3c2 = 0.

    If there is a solution to this system, then b is in span(S); otherwise it is not inspan(S). Note that this system of linear equations can be represented by the parti-tioned matrix

    2 1 71 3 0

    .

    In Sections 2.1 and 2.2 we develop a systematic procedure for determining whether

    this system has a solution or not by working directly with this partitioned matrix.The procedure forms linear combinations of rows to aid in this analysis. For now,verify that c1 = 3 and c2 = 1 solves (1); hence b is in span(S). I

    E X A M P L E 9 Given the set of matrices

    S =

    1 00 0

    ,

    0 10 0

    ,

    0 01 0

    ,

    0 00 1

    ,

    describe the set of all linear combinations of the members of S; that is, describespan(S). If ci , i = 1, 2, 3, 4, are any scalars, then a linear combination of themembers ofS is

    c1 1 00 0 + c2 0 1

    0 0 + c3 0 0

    1 0 + c4 0 0

    0 1 . (2)Performing the scalar multiplications and the matrix additions, we get

    c1

    1 00 0

    + c2

    0 10 0

    + c3

    0 01 0

    + c4

    0 00 1

    =

    c1 c2c3 c4

    .

    Since the scalars ci are arbitrary, the linear combination in (2) could produce any2 2 matrix of numbers we desire. If we restrict the scalars ci to be real numbers,then span(S) is the set of all 22 matrices with real entries. We say that Sgenerates

  • 7/29/2019 Modern Matrix Algebra

    36/480

    20 CHAPTER 1 I Matrices and Matrix Algebra

    the set of all 2 2 real matrices. If we permit the scalars ci to be complex numbers,then span(S) is the set of all 2 2 matrices with complex entries. (Why does theset of all 2 2 matrices with complex entries include all of the 2 2 matrices withreal entries?) I

    Properties of Matrix OperationsWe have seen that linear combinations provide a way to combine information inmatrices. We will show that we can use them to extract information that providesinsight into the fundamental nature of matrix behavior. The following properties arebasic to using and manipulating linear combinations. These properties constitutethe algebraic rules that we will use repeatedly with linear combinations from hereon.

    Properties of Matrix Addition

    Let A, B, and C be matrices of the same size; then

    (a) A + B = B + A. (commutativity of addition)(b) A

    +(B

    +C)

    =(A

    +B)

    +C. (associativity of addition)

    These properties are operations that we use instinctively because of experience withaddition of real and complex numbers. However, we must verify that they are validfor the data structure of a matrix. Our primary tools for step-by-step verificationare the definition for addition of matrices and the definition of equality of matrices.Exercise 52 asks you to show that these rules are valid, and we illustrate the processon a property of linear combinations that follows the next set of properties.

    Properties of Linear Combinations

    Let r and s be scalars and A and B be matrices; then

    (a) r(sA)

    =(r s)A.

    (b) (r + s)A = rA + sA.(c) r(A + B) = rA + rB.

    The verification (or proof) of these properties, which seem quite natural, requiresthat we use the definitions established earlier. We illustrate this by showing thatr(A + B) = rA + rB. To show two matrices are equal, we show that correspondingentries are equal and we use the notation enti j (C) to denote the (i, j )-entry of amatrix C:

    enti j (r(A + B)) = renti j (A + B)= r(enti j (A) + enti j (B))

    (This expression contains onlyscalars so we can use standard

    arithmetic properties.)

    =renti j (A)

    +renti j (B)

    = enti j (rA) + enti j (rB)= enti j (rA + rB).

    Since corresponding entries are equal, we have shown that r(A + B) = rA + rB.This property is often described as the distributivity of scalar multiplication overmatrix addition.

    The operation of a transpose can be applied to linear combinations of matrices.The following properties are basic to using the transpose on linear combinations.

  • 7/29/2019 Modern Matrix Algebra

    37/480

    SECTION 1.2 I Matrix Operations 21

    Properties of the Transpose

    Let r be a real scalar and A and B be matrices with real entries; then

    (a) (AT)T = A.(b) (A

    +B)T

    =AT

    +BT. (The transpose of a sum is the sum of

    the individual transposes.)(c) (rA)T = r(AT).

    While these properties seem natural, they require proof. As before, the basic strat-egy is to show that corresponding entries are equal. We illustrate by showing that(AT)T = A. Using the previous notation, we have

    enti j ((AT)T) = entji (AT) = enti j (A).

    Closure

    Let S be a set of quantities on which we have defined two operations: one calledaddition, which operates on a pair of members of S, and a second called scalarmultiplication, which combines a scalar and a member ofS. We say that Sis closed

    if every linear combination of members ofS belongs to the set S. This can also beexpressed by saying that the sum of any two members of S belongs to S (closedunder addition) and that the scalar multiple of any member ofS belongs to the setS (closed under scalar multiplication). We sometimes refer to this as the closureproperty of a set and it implies closure with respect to both addition and scalarmultiplication.

    Here we deal exclusively with matrices and polynomials and their standard op-erations of addition and scalar multiplication. In Chapter 5 we consider other setsand operations, which can be quite different from the standard forms that we use ina rather natural way here.

    The key for determining whether a set S is closed or not is to carefully determine

    the criteria for membership to the set S. While this seems easy, it is at the heart ofclosure since we must add two members of S and ask if the result is in S and take

    a scalar times a member of S and ask if the result is also in S. If the answer toeither question is no, then the set is not closed. This essentially means that we arenot guaranteed that linear combinations of members of set Sproduce quantities thatare also in S. The best training in this important concept is to do lots of exercises,since each set S can be different in its criteria for membership. We illustrate this inExamples 10 through 12.

    E X A M P L E 1 0 Let S be the set of all 3 1 matrices of the form ab

    1

    where a

    and b are any real numbers. The criteria for membership in Sare that the third entrymust be 1 and the first and second entries are any real numbers. To determine ifSis closed, we check sums and scalar multiples of members ofS to see if the result isin S.

    Checking sums of members ofS: a1b1

    1

    +

    a2b2

    1

    =

    a1 + a2b1 + b2

    2

    .

    Since the third entry of the result is not a 1, it is not in S. Hence it follows that S isnot closed.

  • 7/29/2019 Modern Matrix Algebra

    38/480

    22 CHAPTER 1 I Matrices and Matrix Algebra

    There is no need to check scalar multiples. However, it is not closed underscalar multiplication. (Verify.) I

    E X A M P L E 1 1 Let T be the set of all 22 matrices of the form

    a 0b c

    where

    c = 2a and a and b are any real numbers. The criteria for membership in T is thatthe (1, 2)-entry be zero, the (2, 2)-entry is twice as big as the (1, 1)-entry, and the(2, 1)-entry is any real number. To determine ifT is closed, we check sums andscalar multiples of members ofT to see if the result is in T.

    Checking sums of members ofT:a1 0b1 2a1

    +

    a2 0b2 2a2

    =

    a1 + a2 0b1 + b2 2a1 + 2a2

    =

    a1 + a2 0b1 + b2 2(a1 + a2)

    .

    We see that this result follows the pattern for membership in the set T. Hence T is

    closed under addition.Checking scalar multiples of members ofT (let k be any real scalar):

    k

    a1 0b1 2a1

    =

    ka1 0kb1 k(2a1)

    =

    ka1 0kb1 2(ka1)

    .

    We see that this result follows the pattern for membership in the set T. Hence T isclosed under scalar multiplication.

    Since T is closed under both operations, we can say T is a closed set. I

    E X A M P L E 1 2 Let V be a set of two 3 1 matrices. (You can choose them, butonce you make your choices they are fixed.) Denote the vectors in V as u and w.Let S = span(V). Determine ifS is a closed set. We proceed as in Examples 10and 11.

    Criterion for membership in S: a vector must be a linear combination ofuand w. Thus every vector in S is of the form k1u + k2w for some scalars k1 and k2.

    Checking sums of members ofS:

    (k1u + k2w) + (c1u + c2w) = (k1 + c1)u + (k2 + c2)w.The preceding expression was obtained using properties of matrix operations. Notethat the result is a linear combination of vectors u and w, thus satisfying the patternfor membership in S. So S is closed under addition.

    Checking scalar multiples of members ofS (let t be any scalar):

    t(k1u + k2w) = t k1u + t k2w.The preceding expression was obtained using properties of matrix operations. Notethat the result is a linear combination of vectors u and w, thus satisfying the pattern

    for membership in S. So S is closed under scalar multiplication.Since S is closed under both operations, we can say S is a closed set. I

    In Example 12 the set V contained only two matrices; however, it can be shownthat ifV is any finite set of matrices (of the same size), then span (V) is a closedset. The steps in Example 12 are mimicked with more terms corresponding to thenumber of vectors in V. Hence the span of a set is a closed set. We meet this ideain a more general setting in Chapter 5.

  • 7/29/2019 Modern Matrix Algebra

    39/480

    SECTION 1.2 I Matrix Operations 23

    Examples 10 through 12 are more instances of patterns in mathematics. InExample 10 it was the pattern of the entries in the 3-vector that defined membershipin the set S. In Example 11 there was another pattern that determined the membersof set T. The pattern used in Example 12 was a bit more general since we didnot specify entries or relationships between entries, but it was still easy enough to

    recognize. In Exercises 32 through 40 various patterns are used to define sets ofmatrices. When working on such closure problems, it is helpful to write a verbalstatement that describes the criteria for membership before you begin the algebra ofaddition and scalar multiplication. In this way you stay focused on how to recognizenew members of the set.

    As we accumulate more ideas on matrices and operations on them, patterns willplay an increasing role in developing ways to think about systems of equations andapplications. In order to describe prevalent patterns that arise, we will need moreterminology and notation. We have already begun accumulating this language oflinear algebra. (See the Terminology list at the end of Section 1.1 and at the endof this section.) The items in these lists provide verbal aids to the patterns that areassociated with the matrix or concept. We need such language in order to commu-nicate efficiently with one another. This further emphasizes that mathematics is the

    science of patterns and in many ways plays an invisible role in much of what we doand how we see things in life.

    Application: RGB Color Displays

    Many color displays use an RGB (red, green, blue) system to create the color of adot or pixel. Associated with each pixel is a 3-vector

    r g b

    which tells the in-

    tensity of the red, green, and blue light sources that are blended to create the color ofthe pixel. The intensities r, g, and b are in the range [0, 1]. For instance,

    1 0 0

    is pure red,

    0 1 0

    is pure green,

    0 0 1

    is pure blue,

    0 0 0

    is black,

    and

    1 1 1

    is white. The color of a pixel is determined by a linear combinationof the 3-vectors in

    C = 1 0 0 , 0 1 0 , 0 0 1 where the coefficients are restricted to have values between 0 and 1. Note that blackis the trivial linear combination, the absence of all the red, green, and blue light (seeFigure 1), while white consists of the full intensity of each contributing color. In

    0

    0

    0

    RED

    GREEN

    BLUE

    0 1 VALUE

    Use your mouse to position the sliders.

    As a linear combination:

    COLOR = 0 [1 0 0]

    + 0 [0 1 0]

    + 0 [0 0 1]

    RGB COLOR Example

    FIGURE 1 From MATLAB routinergbexamp; see Exercise ML.4.

  • 7/29/2019 Modern Matrix Algebra

    40/480

    24 CHAPTER 1 I Matrices and Matrix Algebra

    Exercise ML. 4, we canshow that in MATLABs color display the linear combination

    0.5

    1 0 0+ 1 0 1 0 + 0.83 0 0 1 = 0.5 1 0.83

    is aquamarine.

    A display screen S is really a matrix of pixels and each entry of matrix S has a3-vector of RGB intensities associated with it. Let R, G, and B be matrices of thesame size as S, where matrix R contains the red intensities of the pixels ofS, G thegreen intensities, and B the blue intensities. Thus the configuration of colors shownon screen S depends upon the information in the three matrices R, G and B. Sincethe color of each pixel is a blend of the three light sources, this situation amountsto saying that S = R + G + B. That is, the screen S is generated by the intensitymatrices R, G, and B.

    Application: Polynomials

    Lets agree to write a polynomial (see Example 7(d)) so that the highest-degree termis written first and the succeeding terms have decreasing exponents. For example

    8x2

    + 3x + 5 and 2x3

    + 4x 7. With a polynomial we associate a coefficientvector:

    8x2 + 3x + 5 8 3 5 ,

    2x3 + 4x 7

    2 0 4 7 .In the latter example we used the convention that if a term is missing from the poly-nomial we assign a zero coefficient to its position. That is, 2x3+4x7 is consideredto be 2x3 + 0x2 + 4x 7. Since we add and subtract polynomials term-by-term, wecan use addition and subtraction of the corresponding coefficient vectors of poly-nomials of the same degree. It also follows that the multiplication of a polynomialby a constant is the same as scalar multiplication of its coefficient vector. Thus lin-ear combinations of polynomials correspond to the same linear combination of theircoefficient vectors. (The only requirement is that the polynomials have the same de-gree, so the coefficient vectors are the same size.) This association of polynomialswith coefficient vectors gave early digital computers and programming languages away to manipulate polynomials without the need for a symbolic representation interms of an unknown like x.

    Let Pk be the set of all polynomials of degree k or less with real coefficients.Any member ofPk corresponds to a (k+ 1)-vector as follows:

    akxk + ak1xk1 + + a1x + a0

    ak ak1 a1 a0

    .

    For example, in P2 we have

    q(x) = x2 + 3x 1 3 0 ,r(x) = 2x + 7

    0 2 7

    ,

    2q(x) 3r(x) 2

    1 3 0 3 0 2 7 = 2 0 21 ,

    which corresponds to 2x2 21. Pk also includes the zero polynomial whosecoefficients are all zero. The zero polynomial in P2 corresponds to the 3-vector

    0 0 0.

  • 7/29/2019 Modern Matrix Algebra

    41/480

    SECTION 1.2 I Matrix Operations 25

    Application: Parametric Form of a Line in the Plane

    Let Q(a, b) and R(d, e) be a pair of points in the plane. Then the equation of theline L through Q and R written in point-slope form is

    y

    b=

    e bd a

    (x

    a) (3)

    where we assume d = a. When we are interested in the line segment between Qand R we require that x be restricted to values between a and d. We call (3) thealgebraic equation ofL . For work in algebra and calculus an algebraic expressionis quite useful, but for some geometric applications, like graphing, an equivalentequation in parametric3 form is often more useful.

    To construct the parametric form of (3), we proceed as follows. Rearrange theexpression in (3) into the form

    y be b =

    x ad a (4)

    where we assume d

    =a and b

    =e. Observe that each side of (4) is independent of

    the other side. Hence it follows that each side is equal to a common value t; thus,

    t = x ad a and t =

    y be b .

    Solving these expressions for x and y, respectively, gives

    x = (1 t)a + t d (5a)

    and

    y = (1 t)b + t e. (5b)

    The expressions in (5a) and (5b) give us equations for the x- and y-coordinates ofpoints lying on line L . We call (5a) and (5b) the parametric equations ofL . For < t < , we can use (5a) and (5b) to generate points on L . Using (5a)and (5b), we can express the set of all points on L as a linear combination of thecoordinates of points Q and R as follows:

    x

    y

    = (1 t)

    a

    b

    + t

    d

    e

    . (6)

    The expression in (6) is called the geometric equation of line L.If we require that 0 t 1, then (6) represents the line segment between

    Q and R. The convention is that the positive sense of direction along the line seg-ment is in the direction determined by points along the segment as t increases. For

    0 t 1, Equation (6) is also called a convex linear combination of vectorsa

    b

    and

    d

    e

    .

    We investigate convex linear combinations graphically in Section 1.4.

    3A parametric curve is one for which the defining equations are given in terms of a common independentvariable called a parametric variable.

  • 7/29/2019 Modern Matrix Algebra

    42/480

    26 CHAPTER 1 I Matrices and Matrix Algebra

    E X E R C I S E S 1 . 2

    1. Let A =

    2 p + q1 4

    and B =

    p p + q

    1 q

    .

    IfA = B, then determine values for p and q and write outthe matrix B with numerical entries.

    2. Let A = 2 p + q

    1 4

    and B = 2 3

    p q 4

    .

    IfA = B, then determine values for p and q .

    3. Let A =

    2 p + q1 4

    and B =

    q p + q

    1 4

    .

    IfA = B, then determine all possible values for p and q .

    4. Let A =

    2 p2 + 11 4

    and B =

    q2 101 4

    .

    IfA = B, then determine all possible values for p and q .

    5. Let B =

    0 2 31 1 54 7 9

    8 6 0

    . Determine which of the

    following are submatrices ofB, and for those that are, listthe row and column numbers that were omitted.

    B1 =

    0 31 5

    , B2 =

    2 5

    1 9

    ,

    B3 =

    0 38 0

    , B4 =

    0 34 9

    8 0

    .

    6. Determine the coefficient matrix and right side associatedwith the linear system

    3x

    +4y

    2z

    =3

    x + z = 1x 3y + 2z = 5

    and display them in a partitioned matrix.

    7. A linear system of equations is represented by the parti-tioned matrix

    4 2 1 32 0 5 7

    .

    Construct the linear system of equations.

    In Exercises 811, construct the partitioned matrix that rep-resents the linear system of equations that you develop to find

    the intersection point of lines L 1 and L2.

    8. L1 : goes through point (1, 1) with slope 3.L2 : goes through point (2, 1) with slope 2.

    9. L1 : goes through points (1, 2) and (3, 0).L2 : goes through point (2, 3) with slope 0.

    10. L1 : goes through points (3, 1) and (2, 2).L2 : goes through point (5, 0) with slope 12 .

    11. L1 : goes through point (2, 2) with slope 1.L2 : goes through points (5, 5) and (0, 0).

    12. Let Q1

    = 2 1

    3 8 , Q2 = 4 25 1 , and Q3 = 7 .

    (a) What size is the block diagonal matrix formed fromQ1 and Q2?

    (b) If a block diagonal matrix is formed from Q1, Q2, andQ3, what percent of the entries are zero?

    (c) How many different block diagonal matrices can beformed using Q1, Q2, and Q3?

    13. If an n n matrix A is quite large and sparse, then insteadof transmitting all n2 entries ofA, one way of reducingtransmission time is to send just the numerical value of thenonzero entries and its (row, column) location. That is, wesend a set of 3-vectors (triples) of the form

    ai j i j

    whenever ai j = 0.(a) IfA is 100 100 and upper triangular (see Section1.1), is there any savings to using this triple strategyto transmit A? Explain how you arrive at your answer.

    (b) Let A be 100 100 and tridiagonal; that is, the onlypossible nonzero entries appear in the set of entries

    {a11, a12, a21, a22, a23, . . . ,aii , ai i 1, . . . , a10099, a100100}

    where i = 2, 3, . . . , 99. (Figure 2 shows a schematicdiagram of a tridiagonal matrix.) Determine the per-cent of savings if we use the triple strategy to transmitA.

    0

    0

    FIGURE 2

    14. (a) For the matrix in Exercise 13(a), suggest a more ef-ficient way to transmit the data than using the triplestrategy. (Hint: Use the pattern of upper triangular.)

    (b) For the matrix in Exercise 13(b), suggest a more ef-ficient way to transmit the data than using the triple

    strategy. (Hint

    : Use the pattern of tridiagonal.)15. Let A be a 100 100 block diagonal matrix with diagonal

    blocks of sizes 8, 15, 10, 17, 20, 10, 10, and 10.

    (a) Develop a transmission strategy different from thetriples of Exercise 13 that will be efficient for blockdiagonal matrices.

    (b) Compute the percent of savings if your strategy is usedcompared to sending the entire matrix.

  • 7/29/2