Preface
Matrix algebra plays a very important role in statistics and in many other disciplines. In many areas of stati...
95 downloads
1161 Views
6MB Size
Report
This content was uploaded by our users and we assume good faith they have the permission to share this book. If you own the copyright to this book and it is wrongfully on our website, we offer a simple DMCA procedure to remove your content from our site. Start by pressing the button below!
Report copyright / DMCA form
Preface
Matrix algebra plays a very important role in statistics and in many other disciplines. In many areas of statistics, it has become routine to use matrix algebra in the presentation and the derivation or verification of results. One such area is linear statistical models; another is multivariate analysis. In these areas, a knowledge of matrix algebra is needed in applying important concepts, as well as in studying the underlying theory, and is even needed to use various software packages (if they are to be used with confidence and competence). On many occasions, I have taught graduate-level courses in linear statistical models. Typically, the prerequisites for such courses include an introductory (undergraduate) course in matrix (or linear) algebra. Also typically, the preparation provided by this prerequisite course is not fully adequate. There are several reasons for this. The level of abstraction or generality in the matrix (or linear) algebra course may have been so high that it did not lead to a “working knowledge” of the subject, or, at the other extreme, the course may have emphasized computations at the expense of fundamental concepts. Further, the content of introductory courses on matrix (or linear) algebra varies widely from institution to institution and from instructor to instructor. Topics such as quadratic forms, partitioned matrices, and generalized inverses that play an important role in the study of linear statistical models may be covered inadequately if at all. An additional difficulty is that several years may have elapsed between the completion of the prerequisite course on matrix (or linear) algebra and the beginning of the course on linear statistical models. This book is about matrix algebra. A distinguishing feature is that the content, the ordering of topics, and the level of generality are ones that I consider appropriate for someone with an interest in linear statistical models and perhaps also
vi
for someone with an interest in another area of statistics or in a related discipline. I have tried to keep the presentation at a level that is suitable for anyone who has had an introductory course in matrix (or linear) algebra. In fact, the book is essentially self-contained, and it is hoped that much, if not all, of the material may be comprehensible to a determined reader with relatively little previous exposure to matrix algebra. To make the material readable for as broad an audience as possible, I have avoided the use of abbreviations and acronyms and have sometimes adopted terminology and notation that may seem more meaningful and familiar to the non-mathematician than those favored by mathematicians. Proofs are provided for essentially all of the results in the book. The book includes a number of results and proofs that are not readily available from standard sources and many others that can be found only in relatively high-level books or in journal articles. The book can be used as a companion to the textbook in a course on linear statistical models or on a related topic through- it can be used to supplement whatever results on matrices may be included in the textbook and as a source of proofs. And, it can be used as a primary or supplementary text in a second course on matrices, including a course designed to enhance the preparation of the students for a course or courses on linear statistical models and/or related topics. Above all, it can serve as a convenient reference book for statisticians and for various other professionals. While the motivation for the writing of the book came from the statistical applications of matrix algebra, the book itself does not include any appreciable discussion of statistical applications. It is assumed that the book is being read because the reader is aware of the applications (or at least of the potential for applications) or because the material is of intrinsic interest through- this assumption is consistent with the uses discussed in the previous paragraph. (In any case, I have found that the discussions of applications that are sometimes interjected into treatises on matrix algebra tend to be meaningful only to those who are already knowledgeable about the applications and can be more of a distraction than a help.) The book has a number of features that combine to set it apart from the more traditional books on matrix algebra through- it also differs in significant respects from those matrix-algebra books that share its (statistical) orientation, such as the books of Searle (1982), Graybill (1983), and Basilevsky (1983). The coverage is restricted to real matrices (i.e., matrices whose elements are real numbers) through- complex matrices (i.e., matrices whose elements are complex numbers) are typically not encountered in statistical applications, and their exclusion leads to simplifications in terminology, notation, and results. The coverage includes linear spaces, but only linear spaces whose members are (real) matrices throughthe inclusion of linear spaces facilitates a deeper understanding of various matrix concepts (e.g., rank) that are very relevant in applications to linear statistical models, while the restriction to linear spaces whose members are matrices makes the presentation more appropriate for the intended audience. The book features an extensive discussion of generalized inverses and makes heavy use of generalized inverses in the discussion of such standard topics as the solution of linear systems and the rank of a matrix. The discussion of eigenvalues
vii
and eigenvectors is deferred until the next-to-last chapter of the book through- I have found it unnecessary to use results on eigenvalues and eigenvectors in teaching a first course on linear statistical models and, in any case, find it aesthetically displeasing to use results on eigenvalues and eigenvectors to prove more elementary matrix results. And, the discussion of linear transformations is deferred until the very last chapter through- in more advanced presentations, matrices are regarded as subservient to linear transformations. The book provides rather extensive coverage of some nonstandard topics that have important applications in statistics and in many other disciplines. These include matrix differentiation (Chapter 15), the vec and vech operators (Chapter 16), the minimization of a second-degree polynomial (in n variables) subject to linear constraints (Chapter 19), and the ranks, determinants, and ordinary and generalized inverses of partitioned matrices and of sums of matrices (Chapter 18 and parts of Chapters 8, 9, 13 16, 17, and 19). An attempt has been made to write the book in such a way that the presentation is coherent and nonredundant but, at the same time, is conducive to using the various parts of the book selectively. With the obvious exception of certain of their parts, Chapters 12 through 22 (which comprise approximately three-quarters of the book’s pages) can be read in arbitrary order. The ordering of Chapters 1 through 11 (both relative to each other and relative to Chapters 12 through 22) is much more critical. Nevertheless, even Chapters 1 through 11 include sections or subsections that are prerequisites for only a small part of the subsequent material. More often than not, the less essential sections or subsections are deferred until the end of the chapter or section. The book does not address the computational aspects of matrix algebra in any systematic way, however it does include descriptions and discussion of certain computational strategies and covers a number of results that can be useful in dealing with computational issues. Matrix norms are discussed, but only to a limited extent. In particular, the coverage of matrix norms is restricted to those norms that are defined in terms of inner products. In writing the book, I was influenced to a considerable extent by Halmos’s (1958) book on finite-dimensional vector spaces, by Marsaglia and Styan’s (1974) paper on ranks, by Henderson and Searle’s (1979, 1981b) papers on the vec and vech operators, by Magnus and Neudecker’s (1988) book on matrix differential calculus, and by Rao and Mitra’s (1971) book on generalized inverses. And, I benefited from conversations with Oscar Kempthorne and from reading some notes (on linear systems, determinants, matrices, and quadratic forms) that he had prepared for a course (on linear statistical models) at Iowa State University. I also benefited from reading the first two chapters (pertaining to linear algebra) of notes prepared by Justus F. Seely for a course (on linear statistical models) at Oregon State University. The book contains many numbered exercises. The exercises are located at (or near) the ends of the chapters and are grouped by section through- some exercises may require the use of results covered in previous sections, chapters, or exercises. Many of the exercises consist of verifying results supplementary to those included in the body of the chapter. By breaking some of the more difficult exercises into parts and/or by providing hints, I have attempted to make all of the exercises appro-
viii
priate for the intended audience. I have prepared solutions to all of the exercises, and it is my intention to make them available on at least a limited basis. The origin and historical development of many of the results covered in the book are difficult (if not impossible) to discern, and I have not made any systematic attempt to do so. However, each of Chapters 15 through 21 ends with a short section entitled Bibliographic and Supplementary Notes. Sources that I have drawn on more-or-less directly for an extensive amount of material are identified in that section. Sources that trace the historical development of various ideas, results, and terminology are also identified. And, for certain of the sections in a chapter, some indication may be given of whether that section is a prerequisite for various other sections (or vice versa). The book is divided into (22) numbered chapters, the chapters into numbered sections, and (in some cases) the sections into lettered subsections. Sections are identified by two numbers (chapter and section within chapter) separated by a decimal point through- thus, the third section of Chapter 9 is referred to as Section 9.3. Within a section, a subsection is referred to by letter alone. A subsection in a different chapter or in a different section of the same chapter is referred to by referring to the section and by appending a letter to the section number throughfor example, in Section 9.3, Subsection b of Section 9.1 is referred to as Section 9.1b. An exercise in a different chapter is referred to by the number obtained by inserting the chapter number (and a decimal point) in front of the exercise number. Certain of the displayed “equations” are numbered. An equation number comprises two parts (corresponding to section within chapter and equation within section) separated by a decimal point (and is enclosed in parentheses). An equation in a different chapter is referred to by the “number” obtained by starting with the chapter number and appending a decimal point and the equation number through- for example, in Chapter 6, result (2.5) of Chapter 5 is referred to as result (5.2.5). For purposes of numbering (and referring to) equations in the exercises, the exercises in each chapter are to be regarded as forming Section E of that chapter. Preliminary work on the book dates back to the 1982–1983 academic year, which I spent as a visiting professor in the Department of Mathematics at the University of Texas at Austin (on a faculty improvement leave from my then position as a professor of statistics at Iowa State University). The actual writing began after my return to Iowa State and continued on a sporadic basis (as time permitted) until my departure in December 1995. The work was completed during the first part of my tenure in the Mathematical Sciences Department of the IBM Thomas J. Watson Research Center. I am indebted to Betty Flehinger, Emmanuel Yashchin, Claude Greengard, and Bill Pulleyblank (all of whom are or were managers at the Research Center) for the time and support they provided for this activity. The most valuable of that support (by far) came in the form of the secretarial help of Peggy Cargiulo, who entered the last six chapters of the book in LaTEX and was of immense help in getting the manuscript into final form. I am also indebted to Darlene Wicks (of Iowa State University), who entered Chapters 1 through 16 in LaTEX. I wish to thank John Kimmel, who has been my editor at Springer-Verlag. He
ix
has been everything an author could hope for. I also wish to thank Paul Nikolai (formerly of the Air Force Flight Dynamics Laboratory of Wright-Patterson Air Force Base, Ohio) and Dale Zimmerman (of the Department of Statistics and Actuarial Science of the University of Iowa), whose careful reading and marking of the manuscript led to a number of corrections and improvements. These changes were in addition to ones stimulated by the earlier comments of two anonymous reviewers (and by the comments of the editor).
This page intentionally left blank
Contents
Preface 1
2
Matrices 1.1 Basic Terminology . . . . . . 1.2 Basic Operations . . . . . . . 1.3 Some Basic Types of Matrices Exercises . . . . . . . . . . .
v . . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
1 1 2 6 10
Submatrices and Partitioned Matrices 2.1 Some Terminology and Basic Results . . . . . . . . . . . . . . 2.2 Scalar Multiples, Transposes, Sums, and Products of Partitioned Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3 Some Results on the Product of a Matrix and a Column Vector . 2.4 Expansion of a Matrix in Terms of Its Rows, Columns, or Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13 13
3
Linear Dependence and Independence 3.1 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Some Basic Results . . . . . . . . . . . . . . . . . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . .
23 23 24 26
4
Linear Spaces: Row and Column Spaces 4.1 Some Definitions, Notation, and Basic Relationships and Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
27
17 19 20 22
27
xii
4.2 4.3 4.4 4.5
5
6
7
Subspaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Rank of a Matrix . . . . . . . . . . . . . . . . . . . . . . . . Some Basic Results on Partitioned Matrices and on Sums of Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Trace of a (Square) Matrix 5.1 Definition and Basic Properties 5.2 Trace of a Product . . . . . . 5.3 Some Equivalent Conditions . Exercises . . . . . . . . . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
29 31 36 40 46 49 49 50 52 53
Geometrical Considerations 6.1 Definitions: Norm, Distance, Angle, Inner Product, and Orthogonality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2 Orthogonal and Orthonormal Sets . . . . . . . . . . . . . . . 6.3 Schwarz Inequality . . . . . . . . . . . . . . . . . . . . . . . 6.4 Orthonormal Bases . . . . . . . . . . . . . . . . . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . .
55 61 62 63 68
Linear Systems: Consistency and Compatibility 7.1 Some Basic Terminology . . . . . . . . . . 7.2 Consistency . . . . . . . . . . . . . . . . . 7.3 Compatibility . . . . . . . . . . . . . . . . 7.4 Linear Systems of the Form A AX A B . Exercise . . . . . . . . . . . . . . . . . . .
71 71 72 73 74 77
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
55
8
Inverse Matrices 79 8.1 Some Definitions and Basic Results . . . . . . . . . . . . . . 79 8.2 Properties of Inverse Matrices . . . . . . . . . . . . . . . . . 81 8.3 Premultiplication or Postmultiplication by a Matrix of Full Column or Row Rank . . . . . . . . . . . . . . . . . . . . . . . 83 8.4 Orthogonal Matrices . . . . . . . . . . . . . . . . . . . . . . 84 8.5 Some Basic Results on the Ranks and Inverses of Partitioned Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
9
Generalized Inverses 9.1 Definition, Existence, and a Connection to the Solution of Linear Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2 Some Alternative Characterizations . . . . . . . . . . . . . . . 9.3 Some Elementary Properties . . . . . . . . . . . . . . . . . . 9.4 Invariance to the Choice of a Generalized Inverse . . . . . . . 9.5 A Necessary and Sufficient Condition for the Consistency of a Linear System . . . . . . . . . . . . . . . . . . . . . . . . .
107 107 109 117 119 120
xiii
9.6 9.7
Some Results on the Ranks and Generalized Inverses of Partitioned Matrices . . . . . . . . . . . . . . . . . . . . . . . . . 121 Extension of Some Results on Systems of the Form AX B to Systems of the Form AXC B . . . . . . . . . . . . . . . . . 125 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
10 Idempotent Matrices 133 10.1 Definition and Some Basic Properties . . . . . . . . . . . . . . 133 10.2 Some Basic Results . . . . . . . . . . . . . . . . . . . . . . . 134 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 11 Linear Systems: Solutions 11.1 Some Terminology, Notation, and Basic Results . . . . . . . . 11.2 General Form of a Solution . . . . . . . . . . . . . . . . . . . 11.3 Number of Solutions . . . . . . . . . . . . . . . . . . . . . . 11.4 A Basic Result on Null Spaces . . . . . . . . . . . . . . . . . 11.5 An Alternative Expression for the General Form of a Solution . 11.6 Equivalent Linear Systems . . . . . . . . . . . . . . . . . . . 11.7 Null and Column Spaces of Idempotent Matrices . . . . . . . . 11.8 Linear Systems With Nonsingular Triangular or Block-Triangular Coefficient Matrices . . . . . . . . . . . . . . . . . . . . . . 11.9 A Computational Approach . . . . . . . . . . . . . . . . . . . 11.10 Linear Combinations of the Unknowns . . . . . . . . . . . . . 11.11 Absorption . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.12 Extensions to Systems of the Form AXC B . . . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . .
139 139 140 142 143 144 145 146
12 Projections and Projection Matrices 12.1 Some General Results, Terminology, and Notation 12.2 Projection of a Column Vector . . . . . . . . . . 12.3 Projection Matrices . . . . . . . . . . . . . . . . 12.4 Least Squares Problem . . . . . . . . . . . . . . 12.5 Orthogonal Complements . . . . . . . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . .
. . . . . .
161 161 163 166 169 171 175
13 Determinants 13.1 Some Definitions, Notation, and Special Cases . . . . . . . . . 13.2 Some Basic Properties of Determinants . . . . . . . . . . . . . 13.3 Partitioned Matrices, Products of Matrices, and Inverse Matrices 13.4 A Computational Approach . . . . . . . . . . . . . . . . . . . 13.5 Cofactors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.6 Vandermonde Matrices . . . . . . . . . . . . . . . . . . . . . 13.7 Some Results on the Determinant of the Sum of Two Matrices . 13.8 Laplace’s Theorem and the Binet-Cauchy Formula . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . .
177 177 181 185 189 189 193 195 197 202
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
146 149 150 152 157 158
xiv
14 Linear, Bilinear, and Quadratic Forms 14.1 Some Terminology and Basic Results . . . . . . . . . . . . . . 14.2 Nonnegative Definite Quadratic Forms and Matrices . . . . . . 14.3 Decomposition of Symmetric and Symmetric Nonnegative Definite Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . 14.4 Generalized Inverses of Symmetric Nonnegative Definite Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14.5 LDU, U DU, and Cholesky Decompositions . . . . . . . . . . 14.6 Skew-Symmetric Matrices . . . . . . . . . . . . . . . . . . . 14.7 Trace of a Nonnegative Definite Matrix . . . . . . . . . . . . . 14.8 Partitioned Nonnegative Definite Matrices . . . . . . . . . . . 14.9 Some Results on Determinants . . . . . . . . . . . . . . . . . 14.10 Geometrical Considerations . . . . . . . . . . . . . . . . . . . 14.11 Some Results on Ranks and Row and Column Spaces and on Linear Systems . . . . . . . . . . . . . . . . . . . . . . . . . 14.12 Projections, Projection Matrices, and Orthogonal Complements Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Matrix Differentiation 15.1 Definitions, Notation, and Other Preliminaries . . . . . . . . . 15.2 Differentiation of (Scalar-Valued) Functions: Some Elementary Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.3 Differentiation of Linear and Quadratic Forms . . . . . . . . . 15.4 Differentiation of Matrix Sums, Products, and Transposes (and of Matrices of Constants) . . . . . . . . . . . . . . . . . . . . 15.5 Differentiation of a Vector or an (Unrestricted or Symmetric) Matrix With Respect to Its Elements . . . . . . . . . . . . . . 15.6 Differentiation of a Trace of a Matrix . . . . . . . . . . . . . . 15.7 The Chain Rule . . . . . . . . . . . . . . . . . . . . . . . . . 15.8 First-Order Partial Derivatives of Determinants and Inverse and Adjoint Matrices . . . . . . . . . . . . . . . . . . . . . . . . 15.9 Second-Order Partial Derivatives of Determinants and Inverse Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15.10 Differentiation of Generalized Inverses . . . . . . . . . . . . . 15.11 Differentiation of Projection Matrices . . . . . . . . . . . . . 15.12 Evaluation of Some Multiple Integrals . . . . . . . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliographic and Supplementary Notes . . . . . . . . . . . . 16 Kronecker Products and the Vec and Vech Operators 16.1 The Kronecker Product of Two or More Matrices: Definition and Some Basic Properties . . . . . . . . . . . . . . . . . . . . . 16.2 The Vec Operator: Definition and Some Basic Properties . . . . 16.3 Vec-Permutation Matrix . . . . . . . . . . . . . . . . . . . . 16.4 The Vech Operator . . . . . . . . . . . . . . . . . . . . . . .
207 207 210 215 220 221 237 238 240 245 252 256 257 273 285 286 292 294 296 299 300 302 304 308 309 314 320 323 331 333 333 339 343 350
xv
. . . .
363 365 368 374
17 Intersections and Sums of Subspaces 17.1 Definitions and Some Basic Properties . . . . . . . . . . . . . 17.2 Some Results on Row and Column Spaces and on the Ranks of Partitioned Matrices . . . . . . . . . . . . . . . . . . . . . . 17.3 Some Results on Linear Systems and on Generalized Inverses of Partitioned Matrices . . . . . . . . . . . . . . . . . . . . . . 17.4 Subspaces: Sum of Their Dimensions Versus Dimension of Their Sum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17.5 Some Results on the Rank of a Product of Matrices . . . . . . 17.6 Projections Along a Subspace . . . . . . . . . . . . . . . . . . 17.7 Some Further Results on the Essential Disjointness and Orthogonality of Subspaces and on Projections and Projection Matrices Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliographic and Supplementary Notes . . . . . . . . . . . .
377 377
18 Sums (and Differences) of Matrices 18.1 Some Results on Determinants . . . . . . . . . . . . . . . . . 18.2 Some Results on Inverses and Generalized Inverses and on Linear Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18.3 Some Results on Positive (and Nonnegative) Definiteness . . . 18.4 Some Results on Idempotency . . . . . . . . . . . . . . . . . 18.5 Some Results on Ranks . . . . . . . . . . . . . . . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliographic and Supplementary Notes . . . . . . . . . . . .
415 416
16.5 16.6
Reformulation of a Linear System . . . Some Results on Jacobian Matrices . . . Exercises . . . . . . . . . . . . . . . . Bibliographic and Supplementary Notes
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
383 390 393 396 399 406 408 414
419 432 434 440 445 453
19 Minimization of a Second-Degree Polynomial (in n Variables) Subject to Linear Constraints 455 19.1 Unconstrained Minimization . . . . . . . . . . . . . . . . . . 456 19.2 Constrained Minimization . . . . . . . . . . . . . . . . . . . 459 19.3 Explicit Expressions for Solutions to the Constrained Minimization Problem . . . . . . . . . . . . . . . . . . . . . . . . . . 464 19.4 Some Results on Generalized Inverses of Partitioned Matrices . 473 19.5 Some Additional Results on the Form of Solutions to the Constrained Minimization Problem . . . . . . . . . . . . . . . . . 479 19.6 Transformation of the Constrained Minimization Problem to an Unconstrained Minimization Problem . . . . . . . . . . . . . 485 19.7 The Effect of Constraints on the Generalized Least Squares Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488 Bibliographic and Supplementary Notes . . . . . . . . . . . . 491
xvi
20 The Moore-Penrose Inverse 20.1 Definition, Existence, and Uniqueness (of the Moore-Penrose Inverse) . . . . . . . . . . . . . . . . . 20.2 Some Special Cases . . . . . . . . . . . . . . . . . . . . . . . 20.3 Special Types of Generalized Inverses . . . . . . . . . . . . . 20.4 Some Alternative Representations and Characterizations . . . . 20.5 Some Basic Properties and Relationships . . . . . . . . . . . . 20.6 Minimum Norm Solution to the Least Squares Problem . . . . 20.7 Expression of the Moore-Penrose Inverse as a Limit . . . . . . 20.8 Differentiation of the Moore-Penrose Inverse . . . . . . . . . . Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliographic and Supplementary Notes . . . . . . . . . . . .
493
21 Eigenvalues and Eigenvectors 21.1 Definitions, Terminology, and Some Basic Results . . . . . . . 21.2 Eigenvalues of Triangular or Block-Triangular Matrices and of Diagonal or Block-Diagonal Matrices . . . . . . . . . . . . . 21.3 Similar Matrices . . . . . . . . . . . . . . . . . . . . . . . . 21.4 Linear Independence of Eigenvectors . . . . . . . . . . . . . . 21.5 Diagonalization . . . . . . . . . . . . . . . . . . . . . . . . . 21.6 Expressions for the Trace and Determinant of a Matrix . . . . . 21.7 Some Results on the Moore-Penrose Inverse of a Symmetric Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.8 Eigenvalues of Orthogonal, Idempotent, and Nonnegative Definite Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . 21.9 Square Root of a Symmetric Nonnegative Definite Matrix . . . 21.10 Some Relationships . . . . . . . . . . . . . . . . . . . . . . . 21.11 Eigenvalues and Eigenvectors of Kronecker Products of (Square) Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.12 Singular Value Decomposition . . . . . . . . . . . . . . . . . 21.13 Simultaneous Diagonalization . . . . . . . . . . . . . . . . . 21.14 Generalized Eigenvalue Problem . . . . . . . . . . . . . . . . 21.15 Differentiation of Eigenvalues and Eigenvectors . . . . . . . . 21.16 An Equivalence (Involving Determinants and Polynomials) . . Appendix: Some Properties of Polynomials (in a Single Variable) Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliographic and Supplementary Notes . . . . . . . . . . . .
515 516
22 Linear Transformations 22.1 Some Definitions, Terminology, and Basic Results . . . . . . . 22.2 Scalar Multiples, Sums, and Products of Linear Transformations 22.3 Inverse Transformations and Isomorphic Linear Spaces . . . . 22.4 Matrix Representation of a Linear Transformation . . . . . . . 22.5 Terminology and Properties Shared by a Linear Transformation and Its Matrix Representation . . . . . . . . . . . . . . . . . .
493 495 496 502 504 507 508 510 513 514
522 524 528 531 539 540 541 543 545 547 550 559 562 564 567 573 575 581 583 583 589 592 595 603
xvii
22.6
Linear Functionals and Dual Transformations . . . . . . . . . 606 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609
References
615
Index
619
This page intentionally left blank
1 Matrices
Matrix algebra is a branch of mathematics in which numbers are dealt with collectively (as rectangular arrays of numbers called matrices) rather than individually, as in “ordinary” algebra. The term matrix is formally defined in Section 1.1. Section 1.1 also includes an introduction to various basic terminology used in referring to matrices. And, some basic matrix operations (scalar multiplication, matrix addition and subtraction, matrix multiplication, and transposition) are defined and their properties discussed in Section 1.2 — not all of the properties of the multiplication of ordinary numbers extend to matrix multiplication. There are many different types of matrices that are sometimes singled out in the literature for special attention. Some of the most basic of these are introduced in Section 1.3. Various other types of matrices are introduced later in the book (as the need arises). In addition, there are many types of matrices that have received considerable attention in the literature but were regarded as too specialized to be considered here.
1.1
Basic Terminology
A rectangular array of real numbers is called a matrix. That is, a matrix is a collection of real numbers, a11 , a12 , . . . , a1n , . . . , am1 , am2 , . . . , amn , arranged in
2
1. Matrices
the general form
a1n a2n .. . .
a11 a21 .. .
a12 a22 .. .
... ...
am1
am2
. . . amn
For example,
2 1
−3 0 4 2
is a matrix. Our definition of a matrix is less general than that sometimes adopted. The more general definition applies to any rectangular arrangement of elements, called scalars, of a field. (A field is a set, whose elements can be added or multiplied in accordance with rules that have certain properties.) For example, the more general definition covers complex matrices, which are rectangular arrays of complex numbers. Here, unless otherwise indicated, the use of the word matrix is confined to real matrices, that is, to rectangular arrays of real numbers. Also, scalar is used synonymously with real number. A matrix having m rows and n columns is referred to as an m × n matrix, and m and n are called the dimensions of the matrix. The scalar located at the intersection of the ith row and the j th column of a matrix is called the ij th element or entry of the matrix. Boldface capital letters (e.g., A) are used to represent matrices. The notation A {aij } is used in introducing a matrix, the ij th element of which is aij . Two matrices A and B of the same dimensions are said to be equal if each element of A equals the corresponding element of B, in which case we write A B (and are said to be unequal otherwise, i.e., if some element of A differs from the corresponding element of B, in which case we write A B).
1.2
Basic Operations
a. Scalar multiplication Scalar multiplication is defined for an arbitrary scalar k and an arbitrary m × n matrix A {aij }. The product of k and A is written as kA (or, less commonly, as Ak) and is defined to be the m × n matrix whose ijth element is kaij . For example, 2 4 1
−3 0 8 −12 0 . 4 2 4 16 8
The matrix kA is said to be a scalar multiple of A. For any matrix A, 1A A
1.2 Basic Operations
3
And, for any scalars c and k and any matrix A, c(kA) (ck)A (kc)A k(cA) .
(2.1)
It is customary to refer to the scalar product (−1)A of −1 and A as the negative of A and to abbreviate (−1)A to −A.
b. Matrix addition and subtraction Matrix addition and subtraction are defined for any two matrices A {aij } and B {bij } that have the same number of rows, say m, and the same number of columns, say n. The sum of the two m × n matrices A and B is denoted by the symbol A + B and is defined to be the m × n matrix whose ij th element is aij + bij . For example, 2 −3 0 6 1 −3 8 −2 −3 + . 1 4 2 −1 0 4 0 4 6 Matrix addition is commutative, that is A+BB+A.
(2.2)
Matrix addition is also associative, that is, taking C to be a third m × n matrix, A + (B + C) (A + B) + C .
(2.3)
The symbol A + B + C is used to represent the common value of the left and right sides of equality (2.3), and this value is referred to as the sum of A, B, and C. This notation and terminology extend in an obvious way to any finite number of m × n matrices. For any scalar c, we have that c(A + B) cA + cB ,
(2.4)
and, for any scalars c and k, we have that (c + k)A cA + kA .
(2.5)
Let us write A − B for the sum A + (−B) or equivalently for the m × n matrix whose ij th element is aij − bij and refer to this matrix as the difference between A and B. Matrices having the same number of rows and the same number of columns are said to be conformal for addition (or subtraction).
c. Matrix multiplication Let A {aij } represent an m × n matrix, and B {bij } a p × q matrix. When n p, that is, when A has the same number of columns as B has rows, the matrix
4
1. Matrices
product AB is defined to be the m × q matrix whose ij th element is n
aik bkj ai1 b1j + ai2 b2j + · · · + ain bnj .
k1
For example,
3 4 2 −3 0 −2 0 1 4 2 1 2 2(3) + (−3)(−2) + 0(1) 1(3) + 4(−2) + 2(1) 12 8 . −3 8
2(4) + (−3)(0) + 0(2) 1(4) + 4(0) + 2(2)
The formation of the matrix product AB is referred to as the premultiplication of B by A or the postmultiplication of A by B. When n p, the matrix product AB is undefined. Matrix multiplication is associative. Thus, introducing a third matrix C, A(BC) (AB)C ,
(2.6)
provided that p n and that C has q rows so that the matrix multiplications required to form the left and right sides of the equality are defined. The symbol ABC is used to represent the common value of the left and right sides of equality (2.6), and this value is referred to as the product of A, B, and C. This notation and terminology extend in an obvious way to any finite number of matrices. Matrix multiplication is distributive with respect to addition, that is A(B + C) AB + AC ,
(2.7)
(A + B)C AC + BC ,
(2.8)
where, in each equality, it is assumed that the dimensions of A, B, and C are such that all multiplications and additions are defined. Results (2.7) and (2.8) extend in an obvious way to the postmultiplication or premultiplication of a matrix A or C by the sum of any finite number of matrices. In general, matrix multiplication is not commutative. That is, AB is not necessarily identical to BA. In fact, when n p but m q or when m q but n p, one of the matrix products AB and BA is defined, while the other is undefined. When n p and m q, AB and BA are both defined, but the dimensions (m × n) of AB are the same as those of BA only if m n. Even when n p m q, in which case A and B are both n × n matrices and the two matrix products AB and BA are both defined and have the same dimensions, it is not necessarily true that AB BA. For example, 1 0 0 1 0 1 0 2 0 1 1 0 . 0 2 1 0 2 0 1 0 1 0 0 2
1.2 Basic Operations
5
Two n×n matrices A and B are said to commute if AB BA. More generally, a collection of n × n matrices A1 , A2 , . . . , Ak is said to commute in pairs if Ai Aj Aj Ai for j > i 1, 2, . . . , k. For any scalar c, m × n matrix A, and n × p matrix B, it is customary to write cAB for the scalar product c(AB) of c and the matrix product AB. Note that cAB (cA)B A(cB)
(2.9)
(as is evident from the very definitions of scalar and matrix multiplication). More generally, for any scalar c and say k matrices A1 , A2 , . . . , Ak (for which the product A1 A2 · · · Ak is defined) c(A1 A2 · · · Ak ) is typically abbreviated to cA1 A2 · · · Ak , and we have that cA1 A2 · · · Ak (cA1 )A2 · · · Ak A1 (cA2 )A3 · · · Ak A1 · · · Ak−1 (cAk ) .
(2.10)
d. Transposition The transpose of an m × n matrix A, to be denoted by the symbol A , is the n × m matrix whose ij th element is the j ith element of A. For example, 2 1 2 −3 0 −3 4 . 1 4 2 0 2 Observe that the transpose of a matrix can be formed by rewriting its rows as columns (or its columns as rows). For any matrix A (A ) A (2.11) and, for any two matrices A and B (that are conformal for addition), (A + B) A + B ,
(2.12)
as is easily verified. Further, for any two matrices A and B (for which the product AB is defined), (AB) B A .
(2.13)
To see this, observe that the ijth element of (AB) equals the j ith element of AB, which in turn equals aj k bki bki aj k . (2.14) k
k
Since bki is the ikth element of B and aj k the kj th element of A , the ij th element of B A , like that of (AB) , equals expression (2.14). By repeated application of result (2.13), we obtain the more general result that (A1 A2 · · · Ak ) Ak · · · A2 A1 , for any k matrices A1 , A2 , . . . , Ak of appropriate dimensions.
(2.15)
6
1.3
1. Matrices
Some Basic Types of Matrices
a. Square matrices A matrix having the same number of rows as columns is called a square matrix. An n × n square matrix is said to be of order n. Those n elements a11 , a22 . . . , ann of an n × n square matrix
a1n a2n .. .
a11 a21 A . ..
a12 a22 .. .
... ... .. .
an1
an2
. . . ann
that fall on an imaginary diagonal line extending from the upper left to the lower right corners of the matrix are known as the (first, second, etc.) diagonal elements. The diagonal line itself is sometimes referred to simply as the diagonal. Those elements of a square matrix other than the diagonal elements (i.e., those elements that lie above and to the right or below and to the left of the diagonal) are called the off-diagonal elements. Note that the product AA of a matrix A by itself is defined if and only if A is square. For a square matrix A, the symbol A2 is used to represent AA, A3 to represent AA2 = AAA, and, more generally, Ak to represent AAk−1 AAAk−2 . . . AAA · · · A (k 2, 3, . . .).
b. Symmetric matrices A matrix A is said to be symmetric if A A. Thus, a symmetric matrix is a square matrix whose ij th element equals its j ith element. For example,
3 1 −4 1 0 2 −4 2 −5 is a symmetric matrix.
c. Diagonal matrices A diagonal matrix is a a square matrix whose off-diagonal elements are all equal to 0, that is, a matrix of the general form
d1 0 .. .
0 d2
0
0
... ..
.
0 0 , dn
1.3 Some Basic Types of Matrices
7
where d1 , d2 , . . . , dn are scalars. The notation D {di } is sometimes used to introduce a diagonal matrix, the ith diagonal element of which is di . Also, we sometimes write diag(d1 , d2 , . . . , dn ) for such a matrix. Note that, for any m × n matrix A {aij } and any diagonal matrix D {di } (of order m), the ij th element of the matrix product DA equals di aij . Thus, the effect of premultiplying an m × n matrix A by a diagonal matrix D is simply to multiply each element of the ith row of A by the ith diagonal element of D (i 1, 2, . . . , m). Similarly, the effect of postmultiplying A by a diagonal matrix D (of order n) is to multiply each element of the j th column of A by the j th diagonal element of D (j 1, 2, . . . , n). Note also that the effect of multiplying an m × n matrix A by a scalar k is the same as that of premultiplying or postmultiplying A by the m × m or n × n matrix diag(k, k, . . . , k).
d. Identity matrices A diagonal matrix
1 0 diag(1, 1, . . . , 1) . ..
0 1
0
0
... 0 0 .. . 1
whose diagonal elements are all equal to 1 is called an identity matrix. The symbol In is used to represent an identity matrix of order n. In cases where the order is clear from the context, we may simply write I for an identity matrix. Clearly, for an arbitrary matrix A, IA AI A . (3.1)
e. Matrices of ones The symbol Jmn is used to represent an m × n matrix whose elements are all equal to 1. Or, when the dimensions are clear from the context or are to be left unspecified, we may simply write J for such a matrix. Thus,
1 1 ... 1 1 1 . . . 1 J . . .. . . . . . . 1 1 ... 1 Also, Jn is sometimes written for Jnn . Note that Jmn Jnp nJmp .
(3.2)
8
1. Matrices
f. Null matrices A matrix whose elements are all equal to 0 is called a null matrix. A null matrix is denoted by the symbol 0. Thus, 0 0 ... 0 0 0 . . . 0 0 . . . . . . ... .. .. 0
0
... 0
Letting A represent an arbitrary matrix and k an arbitrary scalar, we find that 0A 0,
k0 0 ,
A+00+AA, A−A0, 0A 0,
A0 0
(where the dimensions of each null matrix 0 can be ascertained from the context).
g. Triangular matrices If all of the elements of a square matrix that are located below and to the left of the diagonal are 0, the matrix is called an upper triangular matrix. Thus, the general form of an upper triangular matrix is a11 a12 a13 . . . a1n 0 a22 a23 . . . a2n 0 0 a33 . . . a3n . .. .. .. .. . . . . 0 0 0 ann Similarly, if all of the elements that are located above and to the right of the diagonal are 0, the matrix is called a lower triangular matrix. More formally, an n × n matrix A {aij } is upper triangular if aij 0 for j < i 1, . . . , n, and is lower triangular if aij 0 for j > i 1, . . . , n. By a triangular matrix, we mean a (square) matrix that is upper triangular or lower triangular. Observe that a (square) matrix is a diagonal matrix if and only if it is both upper and lower triangular. The transpose of an upper triangular matrix is a lower triangular matrix — and vice versa — as is easily verified. Further, the sum of two upper triangular matrices (of the same order) is upper triangular and the sum of two lower triangular matrices is lower triangular, as is also easily verified. Some basic properties of the product of two upper or two lower triangular matrices are described in the following lemma.
1.3 Some Basic Types of Matrices
9
Lemma 1.3.1. Let A {aij } and B {bij } represent n × n matrices. If A and B are both upper triangular, then their product AB is upper triangular. Similarly, if A and B are both lower triangular, then AB is lower triangular. Further, if A and B are either both upper triangular or both lower triangular, then the ith diagonal element of AB is the product aii bii of the ith diagonal elements aii and bii of A and B (i 1, . . . , n).
Proof. By definition, the ij th element of AB is nk1 aik bkj . Suppose that A and B are both upper triangular and hence that aik 0, for k < i, and bkj 0, for k > j . If j ≤ i, then clearly bkj 0 for k > i. Thus, for j ≤ i, n k1
In particular,
aik bkj
i−1
(0)bkj + aii bij +
k1
n
aik (0) aii bij .
ki+1
n
aik bki aii bii
k1
and, for j < i,
n
aik bkj aii (0) 0 .
k1
We conclude that the ith diagonal element of AB is aii bii (i 1, . . . , n) and that AB is upper triangular. Suppose now that A and B are both lower triangular, rather than upper triangular. Then, since B and A are both upper triangular with ith diagonal elements bii and aii , respectively, B A is upper triangular with ith diagonal element aii bii , implying that AB (B A ) is lower triangular with ith diagonal element aii bii . Q.E.D. An (upper or lower) triangular matrix is called a unit (upper or lower) triangular matrix if all of its diagonal elements equal one. In the special case of unit triangular matrices, Lemma 1.3.1 reduces to the following result. Corollary 1.3.2. The product of two unit upper triangular matrices (of the same order) is unit upper triangular, and the product of two unit lower triangular matrices is unit lower triangular.
h. Row and column vectors A matrix that has only one column, that is, a matrix of the form a1 a2 .. . am is called a column vector. Similarly, a matrix that has only one row is called a row vector. A row or column vector having m elements may be referred to as an
10
1. Matrices
m-dimensional row or column vector. Clearly, the transpose of an m-dimensional column vector is an m-dimensional row vector, and vice versa. Lowercase boldface letters (e.g., a) are customarily used to represent column vectors. This notation is helpful in distinguishing column vectors from matrices that may have more than one column. No further notation is introduced for row vectors. Instead, row vectors are represented as the transposes of column vectors. For example, a represents the row vector whose transpose is the column vector a. The notation a {ai } or a {ai } is used in introducing a column or row vector whose ith element is ai . The symbol 1m is generally used in place of Jm1 , that is, 1m is used to represent an m-dimensional column vector whose elements are all equal to 1. If its dimension is clear from the context or is to be left unspecified, we may simply write 1 for such a vector. Note that J1n , or equivalently an n-dimensional row vector whose elements are all equal to 1, may be written as 1n or simply as 1 . Observe that (3.3) 1m 1n Jmn . Null row or column vectors (i.e., null matrices having one row or one column) are sometimes referred to simply as null vectors, and (like null matrices in general) are represented by the symbol 0.
i. 1 × 1 matrices Note that there is a distinction between a scalar, say k, and the 1 × 1 matrix (k) whose sole element is k. For any column vector a, a(k) ka,
(k)a ka .
However, in general, the product kA obtained by multiplying an m × n matrix A by the scalar k is not the same as the product (k)A or A(k) of the two matrices (k) and A. In fact, (k)A or A(k) is undefined unless m 1 or n 1, while kA is defined for all m and n. For convenience, we sometimes use the same symbol to represent both a 1 × 1 matrix and the element of that matrix. Which use is intended is discernible from the context.
Exercises Section 1.2 1. Show that, for any matrices A, B, and C (of the same dimensions), (A + B) + C (C + A) + B .
Exercises
11
2. Let A represent an m×n matrix and B an n×p matrix, and let c and k represent arbitrary scalars. Using results (2.9) and (2.1) (or other means), show that (cA)(kB) (ck)AB . 3. (a) Verify result (2.6) (on the associativeness of matrix multiplication); that is, show that, for any m × n matrix A {aij }, n × q matrix B {bj k }, and q × r matrix C {cks }, A(BC) (AB)C. (b) Verify result (2.7) (on the distributiveness with respect to addition of matrix multiplication); that is, show that, for any m × n matrix A {aij } and n × q matrices B {bj k } and C {cj k }, A(B + C) AB + AC. 4. Let A {aij } represent an m × n matrix and B {bij } a p × m matrix. (a) Let x {xi } represent an n-dimensional column vector. Show that the ith element of the p-dimensional column vector BAx is m j 1
bij
n
a j k xk
(E.1)
k1
(b) Let X {xij } represent an n × q matrix. Generalize formula (E.1) by expressing the irth element of the p × q matrix BAX in terms of the elements of A, B, and X. (c) Let x {xi } represent an n-dimensional column vector and C {cij } a q × p matrix. Generalize formula (E.1) by expressing the ith element of the q-dimensional column vector CBAx in terms of the elements of A, B, C, and x. (d) Let y {yi } represent a p-dimensional column vector. Express the ith element of the n-dimensional row vector y BA in terms of the elements of A, B, and y. Section 1.3 5. Let A and B represent m × n matrices. Show that (A + B)(A − B) A2 − B2 if and only if A and B commute. 6. (a) Show that the product AB of two n × n symmetric matrices A and B is itself symmetric if and only if A and B commute. (b) Give an example of two symmetric matrices (of the same order) whose product is not symmetric.
12
1. Matrices
7. Verify (a) that the transpose of an upper triangular matrix is lower triangular and (b) that the sum of two upper triangular matrices (of the same order) is upper triangular. 8. Let A {aij } represent an n × n upper triangular matrix, and suppose that the diagonal elements of A equal zero (i.e., that a11 a22 · · · ann 0). Further, let p represent an arbitrary positive integer. (a) Show that, for i 1, . . . , n and j 1, . . . , min(n, i + p − 1), the ij th element of Ap equals zero. (b) Show that, for i ≥ n − p + 1, the ith row of Ap is null. (c) Show that, for p ≥ n, Ap 0.
2 Submatrices and Partitioned Matrices
Two very important (and closely related) concepts are introduced in this chapter: that of a submatrix and that of a partitioned matrix. These concepts arise very naturally in statistics (especially in multivariate analysis and linear models) and in many other disciplines that involve probabilistic ideas. And, results on submatrices and partitioned matrices, which can be found in Chapters 8, 9, 13, and 14 (and other of the subsequent chapters), have proved to be very useful. In particular, such results are almost indispensable in work involving the multivariate normal distribution — refer, for example, to Searle (1971, sec. 2.4f).
2.1
Some Terminology and Basic Results
A submatrix of a matrix A is a matrix that can be obtained by striking out rows and/or columns of A. For example, if we strike out the second row of the matrix
2 1 −1
4 5 0
3 6 7 9 , 2 2
4 0
3 2
we obtain the 2 × 4 submatrix
2 −1
6 2
.
14
2. Submatrices and Partitioned Matrices
Alternatively, if we strike out the first submatrix 4 5 0
and third columns, we obtain the 3 × 2 6 9 ; 2
or, if we strike out the second row and the first and third columns, we obtain the 2 × 2 submatrix 4 6 . 0 2 Note that any matrix is a submatrix of itself; it is the submatrix obtained by striking out zero rows and zero columns. Submatrices of a row or column vector, that is, of a matrix having one row or column, are themselves row or column vectors and are customarily referred to as subvectors. Let A∗ represent an r ×s submatrix of an m×n matrix A obtained by striking out the i1 , . . . , im−r th rows and j1 , . . . , jn−s th columns (of A), and let B∗ represent the s × r submatrix of A obtained by striking out the j1 , . . . , jn−s th rows and i1 , . . . , im−r th columns (of A ). Then, B∗ A∗ ,
(1.1)
as is easily verified. A submatrix of an n × n matrix is called a principal submatrix if it can be obtained by striking out the same rows as columns (so that the ith row is struck out whenever the ith column is struck out, and vice versa). The r × r (principal) submatrix of an n × n matrix obtained by striking out its last n − r rows and columns is referred to as a leading principal submatrix (r 1, . . . , n). A principal submatrix of a symmetric matrix is symmetric, a principal submatrix of a diagonal matrix is diagonal, and a principal submatrix of an upper or lower triangular matrix is respectively upper or lower triangular, as is easily verified. A matrix can be divided or partitioned into submatrices by drawing horizontal or vertical lines between various of its rows or columns, in which case the matrix is called a partitioned matrix and the submatrices are sometimes referred to as blocks (as in blocks of elements). For example, 2 4 3 6 2 4 3 6 2 4 3 6 1 5 7 9 , 1 5 7 9 1 5 7 9 , −1 0 2 2 −1 0 2 2 −1 0 2 2 are various partitionings of the same matrix. In effect, a partitioned m × n matrix is an m × n matrix A {aij } that has been reexpressed in the general form A11 A12 · · · A1c A21 A22 · · · A2c .. .. .. . . . . Ar1 Ar2 · · · Arc
2.1 Some Terminology and Basic Results
15
Here, Aij is an mi ×nj matrix (i 1, . . . , r; j 1, . . . , c), where m1 , . . . , mr and n1 , . . . , nc are positive integers such that m1 +· · ·+mr m and n1 +· · ·+nc n. Or, more explicitly, am1 +···+mi−1 +1, n1 +···+nj −1 +1 . . . am1 +···+mi−1 +1, n1 +···+nj .. Aij ... . . am1 +···+mi , n1 +···+nj −1 +1
. . . am1 +···+mi , n1 +···+nj
(When i 1 or j 1, interpret the degenerate sum m1 + · · · + mi−1 or n1 + · · · + nj −1 as zero.) Thus, a partitioned matrix can be regarded as an array or “matrix” of matrices. Note that a matrix that has been divided by “staggered” lines, for example, 2 4 3 6 1 5 7 9 , −1 0 2 2 does not satisfy our definition of a partitioned matrix. Thus, if a matrix, say A11 A12 · · · A1c A21 A22 · · · A2c .. .. .. , . . . Ar1
Ar2
···
Arc
is introduced as a partitioned matrix, there is an implicit assumption that each of the submatrices Ai1 , Ai2 , . . . , Aic in the ith “row” of submatrices contains the same number of rows (i 1, 2, . . . , r) and similarly that each of the submatrices A1j , A2j , . . . , Arj in the j th “column” of submatrices contains the same number of columns. It is customary to identify each of the blocks in a partitioned matrix by referring to the row of blocks and the column of blocks in which it appears. Thus, the submatrix Aij is referred to as the ij th block of the partitioned matrix
A11 A21 .. .
A12 A22 .. .
Ar1
Ar2
· · · A1c · · · A2c .. . . · · · Arc
In the case of a partitioned m × n matrix A of the form A11 A12 · · · A1r A21 A22 · · · A2r A . .. .. . . . . Ar1 Ar2 · · · Arr
(1.2)
16
2. Submatrices and Partitioned Matrices
(for which the number of rows of blocks equals the number of columns of blocks), the ij th block Aij of A is called a diagonal block if j i and an off-diagonal block if j i. If all of the off-diagonal blocks of A are null matrices, that is, if 0 ··· 0 A11 0 A22 0 A . , .. .. . 0
0
Arr
then A is called a block-diagonal matrix, and sometimes diag(A11 , A22 , . . . , Arr ) is written for A. If Aij 0 for j < i 1, . . . , r, that is, if A11 A12 · · · A1r 0 A22 · · · A2r A . .. , .. .. . . 0 0 Arr then A is called an upper block-triangular matrix. Similarly, if Aij 0 for j > i 1, . . . , r, that is, if 0 ··· 0 A11 A21 A22 0 A . , . . .. .. .. Ar1 Ar2 Arr then A is called a lower block-triangular matrix. To indicate that A is either upper or lower block-triangular (without being more specific), A is referred to simply as block-triangular. Note that a partitioned m × n matrix A of the form (1.2) is block-diagonal if and only if it is both upper block-triangular and lower block-triangular. Note also that, if m n r (in which case each block of A consists of a single element), saying that A is block diagonal or upper or lower block triangular is equivalent to saying that A is diagonal or upper or lower triangular. Partitioned matrices having one row or one column are customarily referred to as partitioned (row or column) vectors. Thus, a partitioned m-dimensional column vector is an m × 1 vector a {at } that has been reexpressed in the general form a1 a2 .. . . ar Here, ai is an mi × 1 vector with elements am1 +···+mi−1 +1 , . . . , am1 +···+mi−1 +mi , respectively (i 1, . . . , r), where m1 , . . . , mr are positive integers such that m1 + · · · + mr m. Similarly, a partitioned m-dimensional row vector is a 1 × m vector a {at } that has been reexpressed in the general form (a1 , a2 , . . . , ar ).
2.2 Scalar Multiples, Transposes, Sums, and Products of Partitioned Matrices
2.2
17
Scalar Multiples, Transposes, Sums, and Products of Partitioned Matrices
Let
A11 A21 A . ..
A12 A22 .. .
Ar1
Ar2
· · · A1c · · · A2c .. . · · · Arc
represent a partitioned m×n matrix whose ij th block Aij is of dimensions mi ×nj . Clearly, for any scalar k,
In particular,
kA11 kA21 kA . ..
kA12 kA22 .. .
kAr1
kAr2
−A11 −A21 −A . ..
−A12 −A22 .. .
−Ar1
−Ar2
· · · kA1c · · · kA2c .. . . · · · kArc
(2.1)
· · · −A1c · · · −A2c .. . . · · · −Arc
(2.2)
Further, it is a simple exercise to show that
A11 A12 A . .. A1c
A21 A22 .. . A2c
· · · Ar1 · · · Ar2 .. ; . ···
(2.3)
Arc
that is, A can be expressed as a partitioned matrix, comprising c rows and r columns of blocks, the ij th of which is the transpose Aj i of the j ith block Aj i of A. Now, let B11 B12 · · · B1v B21 B22 · · · B2v B . .. .. . . . . Bu1 Bu2 · · · Buv represent a partitioned p × q matrix whose ij th block Bij is of dimensions pi × qj . The matrices A and B are conformal (for addition) provided that p m and q n. If u r, v c, pi mi (i 1, . . . , r), and qj nj (j 1, . . . , c), that is, if (besides A and B being conformal for addition) the rows and columns of
18
2. Submatrices and Partitioned Matrices
B are partitioned in the same way as those of A, then A11 + B11 A12 + B12 · · · A1c + B1c A21 + B21 A22 + B22 · · · A2c + B2c A+B , .. .. .. . . . Ar1 + Br1 Ar2 + Br2 · · · Arc + Brc
(2.4)
and the partitioning of A and B is said to be conformal (for addition). This result and terminology extend in an obvious way to the addition of any finite number of partitioned matrices. If A and B are conformal (for addition), then A11 − B11 A12 − B12 · · · A1c − B1c A21 − B21 A22 − B22 · · · A2c − B2c A−B (2.5) , .. .. .. . . . Ar1 − Br1 Ar2 − Br2 · · · Arc − Brc as is evident from results (2.4) and (2.2). The matrix product AB is defined provided that n p. If c u and nk pk (k 1, . . . , c) [in which case all of the products Aik Bkj (i 1, . . . , r; j 1, . . . , v; k 1, . . . , c), as well as the product AB, exist], then F11 F12 · · · F1v F21 F22 · · · F2v AB . (2.6) .. .. , .. . . Fr1 Fr2 · · · Frv
c where Fij k1 Aik Bkj Ai1 B1j +Ai2 B2j +· · ·+Aic Bcj , and the partitioning of A and B is said to be conformal (for the premultiplication of B by A). In the special case where r c u v 2, that is, where A11 A12 B11 B12 A and B , A21 A22 B21 B22 result (2.6) simplifies to A11 B11 + A12 B21 AB A21 B11 + A22 B21
A11 B12 + A12 B22 A21 B12 + A22 B22
.
(2.7)
If A (A1 , A2 , . . . , Ac ) is an m × n matrix that has been partitioned only by columns (for emphasis, we sometimes insert commas between the submatrices of such a partitioned matrix), then A1 A2 A . , (2.8) .. Ac
2.3 Some Results on the Product of a Matrix and a Column Vector
19
B1 B 2 B . ..
and further if
Bc is an n × q partitioned matrix that has been partitioned only by rows (in a way that is conformal for its premultiplication by A), then AB
c
Ak Bk A1 B1 + A2 B2 + · · · + Ac Bc .
(2.9)
k1
Similarly, if
A1 A2 A . ..
Ar is an m × n matrix that has been partitioned only by rows, then A (A1 , A2 , . . . , Ar ) ,
(2.10)
and further if B (B1 , B2 , . . . , Bv ) is an n × q matrix that has been partitioned only by columns, then A1 B1 A1 B2 · · · A1 Bv A2 B1 A2 B2 · · · A2 Bv (2.11) AB . .. .. . .. . . Ar B1 Ar B2 · · · Ar Bv
2.3
Some Results on the Product of a Matrix and a Column Vector
Let A represent an m × n matrix and x an n × 1 vector. Writing A as A (a1 , a2 , . . . , an ), where a1 , a2 , . . . , an are the columns of A, and x as x (x1 , x2 , . . . , xn ) , where x1 , x2 , . . . , xn are the elements of x, we find, as a special case of result (2.9), that Ax
n
xk ak x1 a1 + x2 a2 + · · · + xk ak .
(3.1)
k1
Thus, the effect of postmultiplying a matrix by a column vector is to form a linear combination of the columns of the matrix, where the coefficients in the linear combination are the elements of the column vector. Similarly, the effect of
20
2. Submatrices and Partitioned Matrices
premultiplying a matrix by a row vector is to form a linear combination of the rows of the matrix, where the coefficients in the linear combination are the elements of the row vector. Representation (3.1) is helpful in establishing the elementary results expressed in the following two lemmas. Lemma 2.3.1. For any column vector y and nonnull column vector x, there exists a matrix A such that y Ax. Proof. Since x is nonnull, one of its elements, say xj , is nonzero. Take A to be the matrix whose j th column is (1/xj )y and whose other columns are null. Then, y Ax, as is evident from result (3.1). Q.E.D. Lemma 2.3.2. For any two m × n matrices A and B, A B if and only if Ax Bx for every n × 1 vector x. Proof. It is obvious that, if A B, then Ax Bx for every vector x. To prove the converse, suppose that Ax Bx for every x. Taking x to be the n × 1 vector whose ith element is 1 and whose other elements are 0, and letting ai and bi represent the ith columns of A and B, respectively, it is clear from result (3.1) that ai Ax Bx bi (i 1, . . . , n). We conclude that A B. Q.E.D. Note that Lemma 2.3.2 implies, in particular, that A 0 if and only if Ax 0 for every x.
2.4
Expansion of a Matrix in Terms of Its Rows, Columns, or Elements
An m × n matrix A {aij } can be expanded in terms of its rows, columns, or elements by making use of formula (2.9). Denote the ith row of A by ri and the ith column of Im by ei (i 1, 2, . . . , m). Then, writing Im as Im (e1 , e2 , . . . , em ) and A as r1 r2 A . .. rm
and applying formula (2.9) to the product Im A, we obtain the expansion A
m i1
ei ri e1 r1 + e2 r2 + · · · + em rm .
(4.1)
Similarly, denote the j th column of A by aj and the j th row of In by uj (j
2.4 Expansion of a Matrix in Terms of Its Rows, Columns, or Elements
21
1, 2, . . . , n). Then, writing A as A (a1 , a2 , . . . , an ) and In as u1 u2 In . .. un and applying formula (2.9) to the product AIn , we obtain the alternative expansion A
n j 1
aj uj a1 u1 + a2 u2 + · · · + an un .
(4.2)
Moreover, the application of formula (3.1) to the product Im aj gives the expansion m aj aij ei . i1
Upon substituting this expansion into expansion (4.2), we obtain the further expansion A
n m
aij Uij ,
(4.3)
i1 j 1
where Uij ei uj is an m × n matrix whose ij th element equals 1 and whose remaining mn − 1 elements equal 0. In the special case where n m (i.e., where A is square), uj ej and hence Uij ei ej , and in the further special case where A Im , expansion (4.3) reduces to Im
m i1
ei ei .
(4.4)
Note that, as a consequence of result (4.3), we have that ei Auj ei
n m k1 s1
aks ek us uj
n m k1 s1
aks ei ek us uj ,
which (since ei ek equals 1, if k i, and equals 0, if k i, and since us uj equals 1, if s j , and equals 0, if s j ) simplifies to ei Auj aij .
(4.5)
22
2. Submatrices and Partitioned Matrices
Exercises Section 2.1 1. Verify result (1.1). 2. Verify (a) that a principal submatrix of a symmetric matrix is symmetric, (b) that a principal submatrix of a diagonal matrix is diagonal, and (c) that a principal submatrix of an upper triangular matrix is upper triangular. 3. Let
A11 0 .. . 0
A12 A22 0
. . . A1r . . . A2r .. .. . . . . . Arr
represent an n × n upper block-triangular matrix whose ij th block Aij is of dimensions ni × nj (j ≥ i 1, . . . , r). Show that A is upper triangular if and only if each of its diagonal blocks A11 , A22 , . . . , Arr is upper triangular. Section 2.2 4. Verify results (2.3) and (2.6).
3 Linear Dependence and Independence
While short in length, the following material on linear dependence and independence is of fundamental importance — so much so that it forms a separate chapter.
3.1
Definitions
Any finite set of row or column vectors, or more generally any finite set of matrices, is either linearly dependent or linearly independent. A nonempty finite set {A1 , A2 , . . . , Ak } of m × n matrices is said to be linearly dependent if there exist scalars x1 , x2 , . . . , xk , not all zero, such that x 1 A1 + x 2 A2 + · · · + x k A k 0 . If no such scalars exist, the set is called linearly independent. The empty set is considered to be linearly independent. Note that if any subset of a finite set of matrices is linearly dependent, then the set itself is linearly dependent. While technically linear dependence and independence are properties of sets of matrices, it is customary to speak of “a set of linearly dependent (or independent) matrices” or simply of “linearly dependent (or independent) matrices” instead of “a linearly dependent (or independent) set of matrices.” In particular, in the case of row or column vectors, it is customary to speak of “linearly dependent (or independent) vectors.”
24
3. Linear Dependence and Independence
3.2
Some Basic Results
Note that a set consisting of a single matrix is linearly dependent if the matrix is null, and is linearly independent if the matrix is nonnull. An elementary result on the linear dependence or independence of two or more matrices is expressed in the following lemma. Lemma 3.2.1. A set {A1 , A2 , . . . , Ak } of two or more m × n matrices is linearly dependent if and only if at least one of the matrices is expressible as a linear combination of the others; that is, if and only if, for some integer j (1 ≤ j ≤ k), Aj is expressible as a linear combination of A1 , . . . , Aj −1 , Aj +1 , . . . , Ak . Proof. Suppose that, for some j , Aj is expressible as a linear combination Aj x1 A1 + · · · + xj −1 Aj −1 + xj +1 Aj +1 + · · · + xk Ak of the other k − 1 m × n matrices. Then, (−x1 )A1 + · · · + (−xj −1 )Aj −1 + Aj +(−xj +1 )Aj +1 + · · · + (−xk )Ak 0 , implying that {A1 , A2 , . . . , Ak } is a linearly dependent set. Conversely, suppose that {A1 , A2 , . . . , Ak } is linearly dependent, in which case x 1 A1 + x 2 A2 + · · · + x k A k 0 for some scalars x1 , x2 , . . . , xk , not all zero. Let j represent any integer for which xj 0. Then, Aj (−x1 /xj )A1 + · · · + (−xj −1 /xj )Aj −1 +(−xj +1 /xj )Aj +1 + · · · + (−xk /xj )Ak . Q.E.D. Another, more profound result on the linear dependence or independence of two or more matrices is expressed in the following lemma. Lemma 3.2.2. A set {A1 , A2 , . . . , Ak } of two or more m × n matrices, the first of which is nonnull, is linearly dependent if and only if at least one of the matrices is expressible as a linear combination of the preceding ones, that is, if and only if, for some integer j (2 ≤ j ≤ k), Aj is expressible as a linear combination of A1 , . . . , Aj −1 . (Or, equivalently, {A1 , A2 , . . . , Ak } is linearly independent if and only if none of the matrices is expressible as a linear combination of its predecessors, that is, if and only if, for every integer j (2 ≤ j ≤ k), Aj is not expressible as a linear combination of A1 , . . . , Aj −1 .) Proof. Suppose that, for some j , Aj is expressible as a linear combination of A1 , . . . , Aj −1 . Then, it follows immediately from Lemma 3.2.1 that the set {A1 , . . . , Ak } is linearly dependent. Conversely, suppose that {A1 , . . . , Ak } is linearly dependent. Define j to be the first integer for which {A1 , . . . , Aj } is a linearly dependent set. Then, x 1 A1 + · · · + x j Aj 0
3.2 Some Basic Results
25
for some scalars x1 , . . . , xj , not all zero. Moreover, xj 0, since otherwise {A1 , . . . , Aj −1 } would be a linearly dependent set, contrary to the definition of j . Thus, Aj (−x1 /xj )A1 + · · · + (−xj −1 /xj )Aj −1 . Q.E.D. It is a simple exercise to verify the following corollary of Lemma 3.2.2. Corollary 3.2.3. Suppose that {A1 , . . . , Ak } is a (nonempty) linearly independent set of m × n matrices and that A is another m × n matrix. Then, the set {A1 , . . . , Ak , A} is linearly independent if and only if A is not expressible as a linear combination of the matrices A1 , . . . , Ak . The following lemma gives a basic result on the linear dependence or independence of linear combinations of matrices. Lemma 3.2.4. Let A1 , A2 , . . . , Ak represent m × n matrices. Further, for j 1, . . . , r, let Cj x1j A1 + x2j A2 + · · · + xkj Ak (where x1j , x2j , . . . , xkj are scalars), and let xj (x1j , x2j , . . . , xkj ) . If A1 , A2 , . . ., Ak are linearly independent and if x1 , x2 , . . . , xr are linearly independent, then C1 , C2 , . . . , Cr are linearly independent. If x1 , x2 , . . . , xr are linearly dependent, then C1 , C2 , . . . , Cr are linearly dependent. Proof. Observe that, for any scalars y1 , y2 , . . . , yr , r j 1
y j Cj (
r
yj x1j )A1 + (
j 1
r
yj x2j )A2 + · · · + (
j 1
r
yj xkj )Ak
(2.1)
j 1
and r j 1
yj xj (
r j 1
yj x1j ,
r j 1
yj x2j , . . . ,
r
yj xkj ) .
(2.2)
j 1
Now, suppose that x1 , x2 , . . . , xr are linearly dependent. Then, there exist scalars
y1 , y2 , . . . , yr , not all of which are zero, such that rj 1 yj xj 0 and hence [in
light of equalities (2.2) and (2.1)] such that rj 1 yj Cj 0. Thus, C1 , C2 , . . . , Cr are linearly dependent. Alternatively, suppose that A1 , A2 , . . . , Ak are linearly independent and x1 , x2 , . . . , xr are linearly independent. And, let y1 , y2 , . . . , yr represent any scalars such that rj 1 yj Cj 0. Then, in light of equality (2.1) (and the linear
independence of A1 , A2 , . . . , Ak ), rj 1 yj xij 0 (for i 1, 2, . . . , r) and hence
r j 1 yj xj 0, implying (in light of the linear independence of x1 , x2 , . . . , xr ) that y1 y2 · · · yr 0. Thus, C1 , C2 , . . . , Cr are linearly independent. Q.E.D.
26
3. Linear Dependence and Independence
Exercises Section 3.1 1. For what values of the scalar k are the three row vectors (k, 1, 0), (1, k, 1), and (0, 1, k) linearly dependent, and for what values are they linearly independent? Describe your reasoning. Section 3.2 2. Let A, B, and C represent three linearly independent m×n matrices. Determine whether or not the three pairwise sums A + B, A + C, and B + C are linearly independent. (Hint. Take advantage of Lemma 3.2.4.)
4 Linear Spaces: Row and Column Spaces
Associated with any matrix is a very important characteristic called the rank. The rank of a matrix is the subject of Section 4.4. There are several (consistent) ways of defining the rank. The most fundamental of these is in terms of the dimension of a linear space. Linear spaces and their dimensions are discussed in Sections 4.1 through 4.3. Any matrix has two characteristics that are even more basic than its rank; these are two linear spaces that are respectively known as the row and column spaces of the matrix through- discussion of row and column spaces is included in the coverage of Sections 4.1 through 4.3. It is shown in Section 4.4 that the column space of a matrix is of the same dimension as its row space; the rank of the matrix equals this dimension. The final section of Chapter 4 (Section 4.5) gives some basic results on the ranks and row and column spaces of partitioned matrices and of sums of matrices.
4.1
Some Definitions, Notation, and Basic Relationships and Properties
a. Column spaces The column space of an m × n matrix A is the set whose elements consist of all m-dimensional column vectors that are expressible as linear combinations of the n columns of A. Thus, the elements of the column space of A consist of all
28
4. Linear Spaces: Row and Column Spaces
m-dimensional column vectors of the general form x1 a1 + x2 a2 + · · · + xn an , where x1 , x2 , . . . , xn are scalars and a1 , a2 , . . . , an represent the columns of A, or equivalently of the general form Ax, where x is an n × 1 column vector. For example, the column space of the 3 × 4 matrix 2 −4 0 0 −1 2 0 0 0 0 1 2 includes the column vector 4 2 −4 0 0 −2 2−1 + 0 2 − 30 + 00 , −3 0 0 1 2 but not the column vector (1, 0, 0) .
b. Linear spaces A nonempty set, say V, of matrices (all of which have the same dimensions) is called a linear space if: (1) for every matrix A in V and every matrix B in V, the sum A + B is in V; and (2) for every matrix A in V and every scalar k, the product kA is in V. [The definition of a linear space can be extended to sets whose elements may not be matrices through- refer, for example, to Halmos (1958) for a more general discussion.] If A1 , . . . , Ak are matrices in a linear space V and x1 , . . . , xk are scalars, then it follows from the definition of a linear space that the linear combination x1 A1 + · · · + xk Ak is also in V. Clearly, the column space of any m × n matrix is a linear space (comprising various m × 1 matrices). And, the set consisting of all m × n matrices is a linear space. Further, since sums and scalar multiples of symmetric matrices are symmetric, the set of all n × n symmetric matrices is a linear space. Note that every linear space contains the null matrix 0 (of appropriate dimensions), and that the set {0}, whose only element is a null matrix, is a linear space. Note also that if a linear space contains a nonnull matrix, then it contains an infinite number of nonnull matrices.
c. Row spaces The row space of an m × n matrix A is the set whose elements consist of all ndimensional row vectors that are expressible as linear combinations of the m rows of A. Thus, the elements of the row space of A consist of all n-dimensional row vectors of the general form x1 a1 + x2 a2 + · · · + xm am ,
4.2 Subspaces
29
where x1 , x2 , . . . , xm are scalars and a1 , a2 , . . . , am represent the rows of A, or equivalently of the general form x A, where x is an m-dimensional row vector. Clearly, a row space, like a column space, is a linear space.
d. Notation The symbol C(A) will be used to denote the column space of a matrix A, and R(A) will be used to denote the row space of A. The symbol Rm×n will be used to denote the linear space whose elements consist of all m × n matrices. The symbol Rn will often be used (in place of Rn×1 or R1×n ) to represent the set of all n-dimensional column vectors or, depending on the context, the set of all n-dimensional row vectors. Note that R(In ) Rn (where Rn is to be interpreted as the set of all n-dimensional row vectors), and C(In ) Rn (where Rn is to be interpreted as the set of all n-dimensional column vectors). Sometimes, x ∈ S will be written as an abbreviation for the statement that x is an element of a set S (or to introduce x as an element of S). Similarly, x ∈ S will sometimes be written as an abbreviation for the statement that x is not an element of S.
e. Relationship between row and column spaces The following lemma relates the column space of a matrix to the row space of its transpose. Lemma 4.1.1. For any matrix A, y ∈ C(A) if and only if y ∈ R(A ). Proof. If y ∈ C(A), then y Ax for some column vector x, implying that y (Ax) x A and hence that y ∈ R(A ). An analogous argument can be used Q.E.D. to show that if y ∈ R(A ), then y ∈ C(A).
f. A basic property of linear spaces The following lemma gives a basic property of linear spaces. Lemma 4.1.2. Let B represent an m × n matrix, and let V represent a linear space of m × n matrices. Then, for any matrix A in V, A + B ∈ V if and only if B ∈ V. Proof. If B ∈ V, then it is apparent from the very definition of a linear space that A + B ∈ V. Conversely, if A + B ∈ V, then, since B (A + B) + (−1)A, it is clear from the definition of a linear space that B ∈ V. Q.E.D.
4.2
Subspaces
A subset U of a linear space V is called a subspace of V if U is itself a linear space. Trivial examples of a subspace of a linear space V are: (1) the set {0}, whose only element is the null matrix, and (2) the entire set V. The column space C(A) of
30
4. Linear Spaces: Row and Column Spaces
an m × n matrix A is a subspace of Rm (when Rm is interpreted as the set of all m-dimensional column vectors), and R(A) is a subspace of Rn (when Rn is interpreted as the set of all n-dimensional row vectors). Some additional terminology and notation are required in our discussion of subspaces. For any two subsets S and T of a given set (and, in particular, for any two subspaces of Rm×n ), S is said to be contained in T if every element of S is an element of T . Subsequently, S ⊂ T (or T ⊃ S) is written as an abbreviation for the statement that S is contained in T . Note that, if S ⊂ T and T ⊂ S, then S T , that is, the subsets S and T are identical. Some basic results on row and column spaces are expressed in the following two lemmas. Lemma 4.2.1. Let Arepresent an m × n matrix. Then, for any subspace U of Rm , C(A) ⊂ U if and only if every column of A belongs to U. Similarly, for any subspace V of Rn , R(A) ⊂ V if and only if every row of A belongs to V. Proof. Let a1 , . . . , an represent the columns of A. If C(A) ⊂ U, then obviously ai ∈ U (i 1, . . . , n). Conversely, suppose that ai ∈ U (i 1, . . . , n). For y ∈ C(A), there exist scalars x1 , . . . , xn such that y x1 a1 + · · · + xn an , implying (since U is a linear space) that y ∈ U. That R(A) ⊂ V if and only if every row of A belongs to V can be proved in a similar fashion. Q.E.D. Lemma 4.2.2. For any m × n matrix A and m × p matrix B, C(B) ⊂ C(A) if and only if there exists an n × p matrix F such that B AF. Similarly, for any m × n matrix A and q × n matrix C, R(C) ⊂ R(A) if and only if there exists a q × m matrix L such that C LA. Proof. Let b1 , . . . , bp represent the columns of B. Clearly, there exists a matrix F such that B AF if and only if there exist p column vectors f1 , . . . , fp (of dimension n) such that bi Afi (i 1, . . . , p), that is, if and only if (for i 1, . . . , p) bi ∈ C(A). We conclude on the basis of Lemma 4.2.1 that C(B) ⊂ C(A) if and only if there exists a matrix F such that B AF. That R(C) ⊂ R(A) if and only if there exists a matrix L such that C LA follows from an analogous argument. Q.E.D. The “if” part of Lemma 4.2.2 can be restated as the following corollary. Corollary 4.2.3. For any m × n matrix A and n × p matrix F, C(AF) ⊂ C(A). Similarly, for any m × n matrix A and q × m matrix L, R(LA) ⊂ R(A). As a further consequence of Lemma 4.2.2, we have the following result. Corollary 4.2.4. Let A represent an m × n matrix, E an n × k matrix, F an n × p matrix, L a q × m matrix, and T an s × m matrix. (1) If C(E) ⊂ C(F), then C(AE) ⊂ C(AF); and if C(E) C(F), then C(AE) C(AF). (2) If R(L) ⊂ R(T), then R(LA) ⊂ R(TA); and if R(L) R(T), then R(LA) R(TA). Proof. (1) If C(E) ⊂ C(F), then (according to Lemma 4.2.2) E FB for some matrix B, implying that AE AFB and hence (according to Lemma 4.2.2) that C(AE) ⊂ C(AF). Similarly, if C(F) ⊂ C(E), then C(AF) ⊂ C(AE). Thus, if C(E) C(F) [in which case C(E) ⊂ C(F) and C(F) ⊂ C(E)], then C(AE) ⊂ C(AF) and C(AF) ⊂ C(AE) and hence C(AE) C(AF).
4.3 Bases
31
(2) The proof of Part (2) is analogous to that of Part (1). Q.E.D. Finally, we have the following lemma, which can be easily verified by making use of either Lemma 4.1.1 or Lemma 4.2.2. Lemma 4.2.5. Let A represent an m × n matrix and B an m × p matrix. Then, (1) C(A) ⊂ C(B) if and only if R(A ) ⊂ R(B ), and (2) C(A) C(B) if and only if R(A ) R(B ).
4.3
Bases
a. Some definitions (and notation) The span of a finite set of matrices (having the same dimensions) is defined as follows: the span of a finite nonempty set {A1 , . . . , Ak } is the set consisting of all matrices that are expressible as linear combinations of A1 , . . . , Ak , and the span of the empty set is the set {0}, whose only element is the null matrix. The span of a finite set S of matrices will be denoted by the symbol sp(S); sp({A1 , . . . , Ak }), which represents the span of the set {A1 , . . . , Ak }, will generally be abbreviated to sp(A1 , . . . , Ak ). Clearly, sp(S) is a linear space. A finite set S of matrices in a linear space V is said to span V if sp(S) V. Or, equivalently [since sp(S) ⊂ V], S spans V if V ⊂ sp(S). A basis for a linear space V is a finite set of linearly independent matrices in V that spans V. Note that the empty set is the (unique) basis for the linear space {0}. Clearly, the column space C(A) of an m × n matrix A is spanned by the set whose members consist of the n columns of A. If this set is linearly independent, then it is a basis for C(A); otherwise, it is not. Similarly, R(A) is spanned by the set whose members are the m rows of A, and depending on whether this set is linearly independent or linearly dependent, it may or may not be a basis for R(A).
b. Natural bases for Rm×n and for the linear space of all n × n symmetric matrices For i 1, . . . , m and j 1, . . . , n, let Uij represent the m × n matrix whose ij th element equals 1 and whose remaining mn − 1 elements equal 0. The set whose members consist of the mn matrices U11 , U21 , . . . , Um1 , . . . , U1n , U2n , . . . , Umn spans the linear space Rm×n [as is evident from result (2.4.3)] and is linearly independent (as can be easily verified) and hence is a basis for Rm×n . The set {U11 , U21 , . . . , Um1 , . . . , U1n , U2n , . . . , Umn } is sometimes called the natural basis for Rm×n . When m 1 or n 1 (in which case the members of Rm×n are n-dimensional row vectors or m-dimensional column vectors), the natural basis for Rm×n is the set whose members consist of the n rows (1, 0, . . . , 0), . . . , (0, . . . , 0, 1) of In or the m columns of Im . For i 1, . . . , n, let U∗ii represent the n × n matrix whose ith diagonal element equals 1 and whose remaining n2 −1 elements equal 0. And, for j < i 1, . . . , n,
32
4. Linear Spaces: Row and Column Spaces
let U∗ij represent the n × n matrix whose ijth and jith elements equal 1 and whose remaining n2 −2 elements equal 0. Then, for any n×n symmetric matrix A {aij }, A
i n i1 j 1
aij U∗ij
(3.1)
[as is readily apparent from result (2.4.3) or upon comparing the corresponding elements of the left and right sides of equality (3.1)]. And, it follows that the set whose members consist of the n(n + 1)/2 matrices U∗11 , U∗21 , . . . , U∗n1 , . . . , U∗ii , U∗i+1,i , . . . , U∗ni , . . . , U∗nn spans the linear space of all n × n symmetric matrices. Moreover, this set is linearly independent (as can be easily verified). Thus, the set {U∗11 , U∗21 , . . . , U∗n1 , . . . , U∗ii , U∗i+1,i , . . . , U∗ni , . . . , U∗nn } is a basis for the linear space of all n × n symmetric matrices.
c. Existence of a basis It was determined in Subsection b that the linear space Rm×n has a basis and that the linear space of all n×n symmetric matrices has a basis. Does every linear space (of m × n matrices) have a basis? This question is answered (in the affirmative) as the culmination of a series of basic results through- presented in the form of a lemma and two theorems through- on linearly independent sets and spanning sets. Lemma 4.3.1. Let A1 , . . . , Ap and B1 , . . . , Bq represent matrices in a linear space V. Then, if the set {A1 , . . . , Ap } spans V, so does the set {A1 , . . . , Ap , B1 , . . . , Bq }. Moreover, if the set {A1 , . . . , Ap , B1 , . . . , Bq } spans V and if B1 , . . . , Bq are expressible as linear combinations of A1 , . . . , Ap , then the set {A1 , . . . , Ap } spans V. Lemma 4.3.1 can be proved rather simply by showing that if B1 , . . . , Bq are expressible as linear combinations of A1 , . . . , Ap , then any linear combination of the matrices A1 , . . . , Ap , B1 , . . . , Bq is expressible as a linear combination of A1 , . . . , Ap and vice versa. The details are left as Exercise 6. Theorem 4.3.2. Suppose that V is a linear space that is spanned by a set of r matrices, and let S represent any set of k linearly independent matrices in V. Then k ≤ r, and if k r, S is a basis for V. Proof. Let us restrict attention to the case r > 0. (The proof for the case r 0 is trivial: if r 0, then V {0}, and the only linearly independent set of matrices in V is the empty set, which contains 0 members and is the basis for V.) Denote by A1 , . . . , Ak the k matrices in the linearly independent set S, and let {B1 , . . . , Br } represent a set of r matrices that spans V. To prove that k ≤ r, assume through- with the intent of establishing a contradiction through- the contrary, that is, assume that k > r. Consider the set {A1 , B1 , . . . , Br }, obtained by inserting the matrix A1 at the beginning of the set {B1 , . . . , Br }. According to Lemma 4.3.1, this set spans V. Moreover, since A1 is expressible as a linear combination of B1 , . . . , Br , the set {A1 , B1 , . . . , Br } is (according to Lemma 3.2.1) linearly dependent, implying (in
4.3 Bases
33
light of Lemma 3.2.2) that, among the matrices B1 , . . . , Br , there exists a matrix, say Bp , that is expressible as a linear combination of the matrices that precede it in the sequence A1 , B1 , . . . , Br . Thus, it follows from Lemma 4.3.1 that the set {A1 , B1 , . . . , Bp−1 , Bp+1 , . . . , Br }, obtained by deleting Bp from the set {A1 , B1 , . . . , Br }, spans V. Consider now the set {A1 , A2 , B1 , . . . , Bp−1 , Bp+1 , . . . , Br } obtained by inserting the matrix A2 after A1 in the set {A1 , B1 , . . . , Bp−1 , Bp+1 , . . . , Br }. This set spans V. Moreover, this set is linearly dependent, so that, among the matrices B1 , . . . , Bp−1 , Bp+1 , . . . , Br , there exists a matrix that is expressible as a linear combination of the matrices that precede it in the sequence A1 , A2 , B1 , . . . , Bp−1 , Bp+1 , . . . , Br . Deleting this matrix from the set {A1 , A2 , B1 , . . . , Bp−1 , Bp+1 , . . . , Br }, we obtain a subset of r matrices that spans V. Continuing this process of inserting “A matrices” and deleting “B matrices,” we eventually (after a total of r steps) find that the set {A1 , . . . , Ar } spans V. It follows that the matrices Ar+1 , . . . , Ak are expressible as linear combinations of A1 , . . . , Ar , which, since S is a linearly independent set, results in a contradiction. We conclude that k ≤ r. If k r, then by inserting “A matrices” and deleting “B matrices” via the same algorithm employed in proving that k ≤ r, we find that the set S spans V and hence, since S is linearly independent, that S is a basis for V. Q.E.D. As discussed in Subsection b, the linear space Rm×n (of all m × n matrices) is spanned by mn matrices, and the linear space of all symmetric matrices of order n is spanned by n(n + 1)/2 matrices. Thus, we obtain, as a corollary of Theorem 4.3.2, the following result. Corollary 4.3.3. The number of matrices in a linearly independent set of m × n matrices cannot exceed mn, and the number of matrices in a linearly independent set of n × n symmetric matrices cannot exceed n(n + 1)/2. Theorem 4.3.4. Every linear space (of m × n matrices) has a basis. Proof. Let V represent an arbitrary linear space of m × n matrices. The proof of Theorem 4.3.4 consists of a description of a stepwise procedure for constructing a (finite) set B of linearly independent matrices that spans V, that is, for constructing a basis B for V. If V {0}, that is, if there are no nonnull matrices in V, then terminate the procedure immediately and take B to be the empty set. Otherwise, locate a nonnull matrix A1 in V. If the linearly independent set {A1 }, whose only member is A1 , spans V, then terminate the procedure, and take B {A1 }. If this set does not span V, then locate a matrix A2 that cannot be expressed as a scalar multiple of A1 . Necessarily (according to Corollary 3.2.3), the set {A1 , A2 } is linearly independent. If the set {A1 , A2 } spans V, then terminate the procedure, taking B {A1 , A2 }. If {A1 , A2 } does not span V, then locate a matrix A3 in V that is not expressible as a linear combination of A1 and A2 . Necessarily, the set {A1 , A2 , A3 } is linearly independent. Continuing, on the kth step, either we terminate the procedure, taking B {A1 , . . . , Ak }, or else we locate a matrix Ak+1 in V such that the set {A1 , . . . , Ak+1 } is linearly independent. The stepwise procedure terminates after no more
34
4. Linear Spaces: Row and Column Spaces
than mn steps, since otherwise there would exist a set of more thn mn linearly independent matrices, contradicting Corollary 4.3.3. Q.E.D.
d. Uniqueness of representation Any particular basis for a linear space has the following property. Lemma 4.3.5. A matrix A in a linear space V has a unique representation in terms of any particular basis {A1 , . . . , Ak }; that is, the coefficients x1 , . . . , xk in the linear combination B x1 A1 + · · · + xk Ak are uniquely determined. Let x1 , . . .
, xk and y1 , . . . , yk represent any scalars such that A
Proof. k k x A and A i i i1 i1 yi Ai . Then, k i1
(yi − xi )Ai
k i1
y i Ai −
k
xi Ai A − A 0 .
i1
Since, A1 , . . . , Ak are linearly independent matrices, we conclude that yi − xi 0 Q.E.D. or equivalently that yi xi (i 1, . . . , k).
e. Dimension With the exception of the linear space {0}, for which the only basis is the empty set, every linear space of m × n matrices has an infinite number of bases. However, it follows from Theorem 4.3.2 that if two sets, one containing k1 matrices and the other containing k2 matrices, are both bases for the same linear space, then k1 ≤ k2 and k2 ≤ k1 . Thus, we have the following result. Theorem 4.3.6. Any two bases for the same linear space contain the same number of matrices. The number of matrices in a basis for a linear space V is called the dimension of V and is denoted by the symbol dim V or dim(V). (Note that the term dimension is used, not only in reference to the number of matrices in a basis, but also in reference to the number of rows or columns in a matrix through- which usage is intended can be determined from the context.) As an essentially immediate consequence of Theorem 4.3.2, we obtain the results expressed in the following three theorems. Theorem 4.3.7. If a linear space V is spanned by a set of r matrices, then dim V ≤ r, and if there is a set of k linearly independent matrices in V, then dim V ≥ k. Theorem 4.3.8. If U is a subspace of a linear space V, then dim U ≤ dim V. Theorem 4.3.9. Any set of r linearly independent matrices in an r-dimensional linear space V is a basis for V. A further, related result is expressed in the following theorem.
4.3 Bases
35
Theorem 4.3.10. Let U and V represent linear spaces of m × n matrices. If U ⊂ V (that is, if U is a subspace of V) and if in addition dim U dim V, then U V. Proof. Let r dim U, and let S represent any set of r linearly independent matrices that is a basis for U. Suppose that U ⊂ V, in which case all r of the matrices in S are in V. If dim U dim V, then (according to Theorem 4.3.9) S is a basis for V, implying that V sp(S) U. Q.E.D. It follows from the discussion of Subsection b that dim(Rm×n ) mn .
(3.2)
This result, together with Theorem 4.3.8, implies that dim U ≤ mn
(3.3)
for any linear space U of m × n matrices (as is also deducible from Corollary 4.3.3).
f. Extracting a basis from a spanning set A basis for a linear space can be extracted from any spanning set, as indicated by the following theorem. Theorem 4.3.11. Any set S that spans a linear space V (of m × n matrices) contains a subset that is a basis for V. Proof. Assume that S contains at least one nonnull matrix. (The proof for the case where S is empty or consists entirely of null matrices is trivial through- in that case, V {0}, and the empty set is a basis for V.) Let A1 , . . . , Ak represent the matrices in S. Define S ∗ to be the subset of S obtained by successively applying to each of the matrices A1 , . . . , Ak the following algorithm: include the matrix as a member of S ∗ if it is nonnull and if it is not expressible as a linear combination of any matrices already included in S ∗ . It is clear from Lemma 3.2.2 that the subset S ∗ formed in this way is linearly independent. Moreover, every matrix in S either belongs to S ∗ or is expressible as a linear combination of matrices that belong to S ∗ , implying (according to Lemma 4.3.1) that S ∗ spans V. We conclude that S ∗ is a basis for V. Q.E.D. Given any particular set that spans a linear space V, the algorithm described in the proof of Theorem 4.3.11 can be used to construct a basis for V and, in the process, to determine the dimension of V.
g. Inclusion of any particular linearly independent set in a basis Any set of linearly independent matrices in a linear space can be augmented to form a basis, as indicated by the following theorem, which generalizes Theorem 4.3.4. Theorem 4.3.12. For any set S of r linearly independent matrices in a kdimensional linear space V, there exists a basis for V that includes all r of the matrices in S (and k − r additional matrices).
36
4. Linear Spaces: Row and Column Spaces
Proof. Assume that r > 0. (In the special case r 0, the theorem essentially reduces to Theorem 4.3.4.) Denote by A1 , . . . , Ar the matrices in S, and let {B1 , . . . , Bk } represent any basis for V. An alternative basis for V can be extracted from the set {A1 , . . . , Ar , B1 , . . . , Bk }, which (according to Lemma 4.3.1) spans V, by applying the algorithm described in the proof of Theorem 4.3.11. It follows from Lemma 3.2.2 (and from the method of extraction) that the alternative basis includes all r of the matrices A 1 , . . . , Ar . Q.E.D. Given any particular set that spans a k-dimensional linear space V, the procedure described in the proof of Theorem 4.3.12 can be used to construct a basis that includes as a subset any particular set {A1 , . . . , Ar } of linearly independent matrices. An alternative approach, not requiring knowledge of a spanning set, is to adopt the procedure described in the proof of Theorem 4.3.4. In the alternative approach, a basis is constructed in k −r steps, the ith of which consists of locating a matrix Ar+i in V that is not expressible as a linear combination of A1 , . . . , Ar+i−1 . Clearly, the set {A1 , . . . , Ak } is a basis for V.
4.4
Rank of a Matrix
a. Some definitions and basic results The row rank of a matrix A is defined to be the dimension of the row space of A, and the column rank of A is defined to be the dimension of the column space of A. A fundamental result on the row and column spaces of a matrix is expressed in the following theorem. Theorem 4.4.1. The row rank of any matrix A equals the column rank of A. Preliminary to proving Theorem 4.4.1, it is convenient to prove the following result, which is of some interest in its own right. Theorem 4.4.2. Let A represent an m × n nonnull matrix of row rank r and column rank c. Then, there exists an m × c matrix B and a c × n matrix L such that A BL. Similarly, there exists an m × r matrix K and an r × n matrix T such that A KT. Proof. According to Theorem 4.3.4, there exists a set {b1 , . . . , bc } of c vectors that is a basis for C(A). Take B to be the m×c matrix whose columns are b1 , . . . , bc . Then, C(B) sp(b1 , . . . , bc ) C(A), and it follows from Lemma 4.2.2 that there exists a c × n matrix L such that A BL. The existence of an m × r matrix K and an r × n matrix T such that A KT can be established via an analogous argument. Q.E.D. Proof (of Theorem 4.4.1). Let r represent the row rank and c the column rank of a matrix A. Assume that A is nonnull. (The proof for the case A 0 is trivial: If A 0, then r 0 c.) According to Theorem 4.4.2, there exists an m × c matrix B and a c × n matrix L such that A BL, and similarly there exists an m × r matrix K and an r × n matrix T such that A KT. It follows from Lemma 4.2.2 that R(A) ⊂ R(L) and C(A) ⊂ C(K). Thus,
4.4 Rank of a Matrix
37
making use of Theorems 4.3.8 and 4.3.7 [and observing that R(L) is spanned by the c rows of L and C(K) by the r columns of K], we find that r ≤ dim[R(L)] ≤ c and similarly that c ≤ dim[C(K)] ≤ r . We conclude that r c. Q.E.D. In light of Theorem 4.4.1, it is not necessary to distinguish between the row and column ranks of a matrix A. Their common value is called the rank of A and is denoted by the symbol rank A or rank(A).
b. Restatement of results on dimensions Our results on the dimensions of linear spaces and subspaces can be specialized to row and column spaces and restated in terms of ranks. Result (3.3) implies that the row rank of a matrix cannot exceed the number of columns and that its column rank cannot exceed the number of rows, leading to the following conclusion. Lemma 4.4.3. For any m × n matrix A, rank(A) ≤ m and rank(A) ≤ n. Theorem 4.3.8 has the following implication. Theorem 4.4.4. Let A represent an m × n matrix, B an m × p matrix, and C a q ×n matrix. If C(B) ⊂ C(A), then rank(B) ≤ rank(A). Similarly, if R(C) ⊂ R(A), then rank(C) ≤ rank(A). In light of Corollary 4.2.3, we have the following corollary of Theorem 4.4.4. Corollary 4.4.5. For any m×n matrix A and n×p matrix F, rank(AF) ≤ rank(A) and rank(AF) ≤ rank(F). Theorem 4.3.10 has the following implications. Theorem 4.4.6. Let A represent an m × n matrix, B an m × p matrix, and C a q × n matrix. If C(B) ⊂ C(A) and rank(B) rank(A), then C(B) C(A). Similarly, if R(C) ⊂ R(A) and rank(C) rank(A), then R(C) R(A). Corollary 4.4.7. Let A represent an m × n matrix and F an n × p matrix. If rank(AF) rank(A), then C(AF) C(A). Similarly, if rank(AF) rank(F), then R(AF) R(F).
c. Nonsingular matrices and matrices of full row or column rank Among m × n matrices, the maximum rank is min(m, n), as indicated by Lemma 4.4.3. The minimum rank is 0, which is achieved by the m × n null matrix 0 (and by no other m × n matrix). An m × n matrix A is said to have full row rank if rank(A) m, that is, if its rank equals the number of rows, and to have full column rank if rank(A) n. Clearly, an m × n matrix can have full row rank only if m ≤ n, that is, only if the number of rows does not exceed the number of columns, and can have full column rank only if n ≤ m.
38
4. Linear Spaces: Row and Column Spaces
A matrix is said to be nonsingular if it has both full row rank and full column rank. Clearly, any nonsingular matrix is square. By definition, an n × n matrix A is nonsingular if and only if rank(A) n. An n × n matrix of rank less than n is said to be singular. An m × n matrix can be expressed as the product of a matrix having full column rank and a matrix having full row rank as indicated by the following theorem, which is a restatement and extension of Theorem 4.4.2. Theorem 4.4.8. Let A represent an m × n nonnull matrix of rank r. Then, there exist an m × r matrix B and an r × n matrix T such that A BT. Moreover, for any m × r matrix B and r × n matrix T such that A BT, rank(B) rank(T) r, that is, B has full column rank and T has full row rank. Proof. The existence of an m × r matrix B and an r × n matrix T such that A BT follows from Theorem 4.4.2. Moreover, for any such m × r matrix B and r ×n matrix T, it follows from Lemma 4.4.3 that rank(B) ≤ r and rank(T) ≤ r and from Corollary 4.4.5 that rank(B) ≥ r and rank(T) ≥ r, leading to the conclusion that rank(B) r and rank(T) r. Q.E.D.
d. A decomposition of a rectangular matrix The decomposition of a rectangular matrix given in Theorem 4.4.8 can be expressed in an alternative form, as described in the following theorem. Theorem 4.4.9. Let A represent an m × n nonnull matrix of rank r. Then, there exist an m × m nonsingular matrix B and an n × n nonsingular matrix K such that I 0 K. AB r 0 0 Proof. According to Theorem 4.4.8, there exist an m × r matrix B1 of full column rank and an r × n matrix K1 of full row rank such that A B1 K1 . Let b1 , . . . , br represent the first, . . . , rth columns, respectively, of B1 and k1 , . . . , kr the first . . . , rth rows, respectively, of K1 . Clearly, b1 , . . . , br are linearly independent, and k1 , . . . , kr are linearly independent. Then, according to Theorem 4.3.12, there exist m − r vectors br+1 , . . . , bm such that b1 , . . . , br , br+1 , . . . , bm form a basis for Rm , and, similarly, there exist n − r vectors kr+1 , . . . , kn such that k1 , . . . , kr , kr+1 , . . . , kn form a basis for Rn . K1 Take B (B1 , B2 ) and K , where B2 (br+1 , . . . , bm ) and K2 K2 kr+1 .. . . Then, clearly, B and K are nonsingular, and kn
A B1 K1 (B1 , B2 )
Ir 0
0 0
K1 K2
B
Ir 0
0 K. 0 Q.E.D.
4.4 Rank of a Matrix
39
e. Some equivalent definitions The following theorem can be used to characterize the rank of a matrix in terms of the ranks of its submatrices. Theorem 4.4.10. Let A represent any m × n matrix of rank r. Then, A contains r linearly independent rows and r linearly independent columns, and, for any r linearly independent rows and r linearly independent columns of A, the r × r submatrix, obtained by striking out the other m − r rows and n − r columns, is nonsingular. Moreover, any set of more than r rows or more than r columns (of A) is linearly dependent, and there exists no submatrix of A whose rank exceeds r. Proof. Since the m rows and n columns of A span R(A) and C(A), respectively, it follows from Theorem 4.3.11 that A contains r linearly independent rows and r linearly independent columns. Moreover, it follows from Theorem 4.3.7 that any set of more than r rows or more than r columns is linearly dependent. Consider now the r × r submatrix B of A obtained by striking out all of the rows and columns of A other than r linearly independent rows, say rows i1 , . . . , ir , respectively, and r linearly independent columns, say columns j1 , . . . , jr , respectively. Letting aij represent the ij th element of A, the tsth element of B is by definition bts ait js . Let U represent the m × r matrix whose columns are columns j1 , . . . , jr of A. According to Theorem 4.3.9, rows i1 , . . . , ir of A form a basis for R(A), implying that every row of A is expressible as a linear combination of rows i1 , . . . , ir or, equivalently, that r atj ftk aik j (j 1, . . . , n) k1
for some scalars ft1 , . . . , ftr (t 1, . . . , m). Thus, the tsth element of U is uts atjs ftk aik js ftk bks k
k
(t 1, . . . , m; s 1, . . . , r), so that U FB , where F is the m × r matrix whose tkth element is ftk . Since (according to Lemma 4.4.3 and Corollary 4.4.5) rank(B) ≤ r and rank(B) ≥ rank(U) r, we conclude that rank(B) r or, equivalently, that B is nonsingular. It remains to show that there exists no submatrix of A whose rank exceeds r. Let H represent a matrix obtained by striking out all of the rows and columns of A except rows t1 , . . . , tk and columns s1 , . . . , sp . Define W to be the m × p matrix whose columns are columns s1 , . . . , sp of A. It is clear that C(W) ⊂ C(A) and (since the rows of H are rows t1 , . . . , tk of W) that R(H) ⊂ R(W). Thus, applying Theorem 4.4.4, rank(H) ≤ rank(W) ≤ r .
40
4. Linear Spaces: Row and Column Spaces
Q.E.D. As applied to symmetric matrices, Theorem 4.4.10 has the following implication. Corollary 4.4.11. Any symmetric matrix of rank r contains an r ×r nonsingular principal submatrix. The rank of a matrix was defined in terms of the dimension of the row and column spaces. Theorem 4.4.10 suggests some equivalent definitions. The rank of a matrix A is interpretable as the size of the largest linearly independent set that can be formed from the rows of A. Similarly, it is interpretable as the size of the largest linearly independent set that can be formed from the columns of A. The rank of A is also interpretable as the size (number of rows or columns) of the largest nonsingular (square) submatrix of A. Clearly, an m × n matrix has full row rank if and only if all m of its rows are linearly independent and has full column rank if and only if all n of its columns are linearly independent. An n × n matrix is nonsingular if and only if all of its rows are linearly independent; similarly, it is nonsingular if and only if all of its columns are linearly independent.
f. Some elementary equalities Let A represent an arbitrary matrix. Then, it is a simple exercise to show that rank(A ) rank(A)
(4.1)
and that, for any nonzero scalar k, rank(kA) rank(A) .
(4.2)
As a special case of result (4.2), we have that rank(−A) rank(A) .
4.5
(4.3)
Some Basic Results on Partitioned Matrices and on Sums of Matrices
In what the symbol C(A, B) used as an abbreviation for C[(A, B)] follows,
is A A and R as an abbreviation for R . Thus, C(A, B) represents the column C C space of a partitioned matrix (A, B) comprising two blocks A andB arranged in a A A row, and R represents the row space of a partitioned matrix comprising C C two blocks A and C arranged in a column. The following five lemmas (and two corollaries) give some basic results on the ranks and row and column spaces of matrices that have been partitioned into two blocks.
4.5 Some Basic Results on Partitioned Matrices and on Sums of Matrices
41
Lemma 4.5.1. Let A represent an m × n matrix, B an m × p matrix, and C a q × n matrix. Then, C(A) ⊂ C(A, B) , C(B) ⊂ C(A, B) , A A R(A) ⊂ R , R(C) ⊂ R . C C Moreover, C(A) C(A, C(B) C(A, B) ⇔ C(B) ⊂ C(A), B) ⇔ C(A) ⊂ C(B), A A R(A) R ⇔ R(C) ⊂ R(A), R(C) R ⇔ R(A) ⊂ R(C) . C C A Proof. That C(A) ⊂ C(A, B), C(B) ⊂ C(A, B), R(A) ⊂ R , and R(C) ⊂ C A R follows from Lemma 4.2.2 upon observing that C I 0 A (A, B) , B (A, B) , 0 I A A A (I, 0) , C (0, I) . C C Suppose now that C(B) ⊂ C(A). Then, according to Lemma 4.2.2, there exists a matrix F such that B AF and hence such that (A, B) A(I, F). Thus, C(A, B) ⊂ C(A), implying [since C(A) ⊂ C(A, B)] that C(A) C(A, B). Conversely, suppose that C(A) C(A, B). Then, since C(B) ⊂ C(A, B), C(B) ⊂ C(A). Thus, we have established that C(A) C(A, B) ⇔ C(B)⊂ C(A). A That C(B) C(A, B) ⇔ C(A) ⊂ C(B), that R(A) R ⇔ R(C) ⊂ C A R(A), and that R(C) R ⇔ R(A) ⊂ R(C) can be established via similar C arguments. Q.E.D. Corollary 4.5.2. Let A represent an m × n matrix, B an m × p matrix, and C a q × n matrix. Then, (1) rank(A) ≤ rank(A, B), with equality holding if and only if C(B) ⊂ C(A); (2) rank(B) ≤ rank(A, B), with equality holding if and only if C(A) ⊂ C(B); A , with equality holding if and only if R(C) ⊂ R(A); (3) rank(A) ≤ rank C A (4) rank(C) ≤ rank , with equality holding if and only if R(A) ⊂ R(C). C Proof. Since (according to Lemma 4.5.1) C(A) ⊂ C(A, B), it follows from Theorem 4.4.4 that rank(A) ≤ rank(A, B). Moreover, if C(B) ⊂ C(A), then (according to Lemma 4.5.1) C(A) C(A, B) and, consequently, rank(A) rank(A, B). And, conversely, if rank(A) rank(A, B), then, since C(A) ⊂ C(A, B), it follows from Theorem 4.4.6 that C(A) C(A, B) and hence (in light of Lemma 4.5.1) that
42
4. Linear Spaces: Row and Column Spaces
C(B) ⊂ C(A). Thus, Part (1) of the corollary is valid. The validity of Parts (2), (3), and (4) can be established in similar fashion. Q.E.D. Lemma 4.5.3. For any m × n matrix A, m × p matrix B, and q × n matrix C, C(B, A) C(A, B), C A R R , A C Proof. Since
(B, A) (A, B)
0 Ip
In , 0
rank(B, A) rank(A, B), C A rank rank . A C 0 (A, B) (B, A) In
Ip 0
,
we have (as a consequence of Lemma 4.2.2) that C(B, A) ⊂ C(A, B) and C(A, B) ⊂ C(B, A) and hence that that rank(B, C(B, A) C(A, B) [whichimplies A) C A C A rank(A, B)]. That R R [and that rank rank ] follows A C A C from an analogous argument. Q.E.D. Lemma 4.5.4. For any m × n matrix A, m × p matrix B, and n × p matrix L, C(A, B) C(A, B − AL),
rank(A, B) rank(A, B − AL) .
Similarly, for any m × n matrix A, q × n matrix B, and q × m matrix L, A A A A R R , rank rank . B B − LA B B − LA Proof. To establish the first part of the lemma, observe that I −L I (A, B − AL) (A, B) , (A, B) (A, B − AL) 0 I 0
L I
,
implying (in light of Lemma 4.2.2) that C(A, B − AL) ⊂ C(A, B) and C(A, B) ⊂ C(A, B − AL) and, consequently, that C(A, B) C(A, B − AL) and rank(A, B) rank(A, B − AL). The second part of the lemma can be established in similar fashion. Q.E.D. Lemma 4.5.5. (1) If A is an m × n matrix and E an m × q matrix such that C(E) ⊂ C(A) and if B is an m × p matrix and F an m × r matrix such that C(F) ⊂ C(B), then C(E, F) ⊂ C(A, B),
rank(E, F) ≤ rank(A, B) .
(2) Similarly, if A is an m × n matrix and E a p × n matrix such that R(E) ⊂ R(A) and if B is a q × n matrix and F an r × n matrix such that R(F) ⊂ R(B), then E A E A ⊂R , rank ≤ rank . R F B F B
4.5 Some Basic Results on Partitioned Matrices and on Sums of Matrices
43
Proof. (1) Suppose that C(E) ⊂ C(A) and C(F) ⊂ C(B). Then, according to Lemma 4.2.2, there exist matrices K and L such that E AK and F BL. Thus, (E, F) (A, B)diag(K, L), implying that C(E, F) ⊂ C(A, B) and further (in light of Theorem 4.4.4) that rank(E, F) ≤ rank(A, B). (2) The proof of Part (2) is analogous to that of Part (1). Q.E.D. Corollary 4.5.6. (1) If A is an m × n matrix and E an m × q matrix such that C(E) C(A), and if B is an m × p matrix and F an m × r matrix such that C(F) C(B), then C(E, F) C(A, B),
rank(E, F) rank(A, B) .
(2) Similarly, if A is an m×n matrix and E a p ×n matrix such that R(E) R(A), and if B is a q × n matrix and F an r × n matrix such that R(F) R(B), then E A E A R R , rank rank . F B F B Proof. (1) Suppose that C(E) C(A) and C(F) C(B). Then, as a consequence of Lemma 4.5.5, we have that C(E, F) ⊂ C(A, B) and C(A, B) ⊂ C(E, F). Thus, C(E, F) C(A, B), and further, rank(E, F) rank(A, B). (2) The proof of Part (2) is analogous to that of Part (1). Q.E.D. Lemma 4.5.7. For any m × n matrix A, m × p matrix B, and q × n matric C, rank(A, B) ≤ rank(A) + rank(B) , A rank ≤ rank(A) + rank(C) . C
(5.1) (5.2)
Proof. For purposes of establishing inequality (5.1), assume that both A and B are nonnull through- if either A or B is null, then, clearly, inequality (5.1) holds as an equality. Let A∗ represent an m × r matrix whose columns form a basis for C(A) and B∗ an m × s matrix whose columns form a basis for C(B). Then, clearly, C(A∗ ) C(A) and C(B∗ ) C(B). Thus, in light of Corollary 4.5.6 and Lemma 4.4.3, we have that rank(A, B) rank(A∗ , B∗ ) ≤ r + s rank(A) + rank(B) , which establishes inequality (5.1). Inequality (5.2) can be established via an analogous argument. Q.E.D. By repeated application of result (5.1), we obtain the more general result that, for any matrices A1 , A2 , . . . , Ak having m rows, rank(A1 , A2 , . . . , Ak ) ≤ rank(A1 ) + rank(A2 ) + · · · + rank(Ak ) .
(5.3)
Similarly, by repeated application of result (5.2), we find that, for any matrices A1 , A2 , . . . , Ak having n columns, A1 A2 (5.4) rank . ≤ rank(A1 ) + rank(A2 ) + · · · + rank(Ak ) . .. Ak
44
4. Linear Spaces: Row and Column Spaces
The following lemma establishes a basic relationship between the rank or the row or column space of a sum of two matrices and the rank or the row or column space of a certain partitioned matrix. Lemma 4.5.8. For any m × n matrices A and B, C(A + B) ⊂ C(A, B), A R(A + B) ⊂ R , B Proof. We have that A + B (A, B)
rank(A + B) ≤ rank(A, B) , A rank(A + B) ≤ rank . B
(5.5) (5.6)
I A (I, I) , I B
implying (in light of Lemma 4.2.2) that C(A + B) ⊂ C(A, B) and R(A + B) ⊂ R A and further (in light of Theorem 4.4.4) that rank(A + B) ≤ rank(A, B) and B A rank(A + B) ≤ rank . Q.E.D. B In light of Lemma 4.5.7, we have the following corollary of Lemma 4.5.8. Corollary 4.5.9. For any m × n matrices A and B, rank(A + B) ≤ rank(A) + rank(B) .
(5.7)
By repeated application of results (5.5) through (5.7), we obtain the more general results that, for any m × n matrices A1 , A2 , . . . , Ak , C(A1 + A2 + · · · + Ak ) ⊂ C(A1 , A2 , . . . , Ak ) ,
(5.8a)
rank(A1 + A2 + · · · + Ak ) ≤ rank(A1 , A2 , . . . , Ak ) , A1 A2 R(A1 + A2 + · · · + Ak ) ⊂ R . , ..
(5.8b)
Ak A1 A2 rank(A1 + A2 + · · · + Ak ) ≤ rank . , ..
(5.9a)
(5.9b)
Ak rank(A1 + A2 + · · · + Ak ) ≤ rank(A1 ) + rank(A2 ) + · · · + rank(Ak ) . (5.10) A further result on the row and column spaces of a sum of matrices is given by the following lemma. Lemma 4.5.10. Let A and B represent m × n matrices. Then, for any m × p matrix E such that C(A) ⊂ C(E), C(A + B) ⊂ C(E) ⇔ C(B) ⊂ C(E) .
Exercises
45
And, similarly, for any q × n matrix F such that R(A) ⊂ R(F), R(A + B) ⊂ R(F) ⇔ R(B) ⊂ R(F) . Proof. According to Lemma 4.2.2, A ER for some matrix R. Further, if C(B) ⊂ C(E), B ES for some matrix S, implying that A + B E(R + S) and hence (in light of Lemma 4.2.2) that C(A + B) ⊂ C(E). Conversely, if C(A + B) ⊂ C(E), then A + B ET for some matrix T, implying that B (A + B) − A E(T − R) and hence that C(B) ⊂ C(E). It can be established in similar fashion that R(A + B) ⊂ R(F) if and only if R(B) ⊂ R(F). Q.E.D. The following lemma gives the rank of a block-diagonal matrix in terms of the ranks of the diagonal blocks. Lemma 4.5.11. For any matrices A and B, A 0 rank rank(A) + rank(B) . (5.11) 0 B Proof. Suppose that both A and B are nonnull through- if A or B is null, then equality (5.11) is clearly valid. Let A∗ represent an m × r matrix whose columns form a basis for C(A) and B∗ an m × s matrix whose columns form a basis for C(B). Then, C(A∗ ) C(A), and C(B∗ ) C(B), implying (in light of Lemma 4.2.2) that A∗ AK and B∗ BL for some matrices K and L and hence that ∗ 0 A 0 K 0 A . 0 B∗ 0 B 0 L Moreover, for any r × 1 vector c and s × 1 vector d such that ∗ 0 c A 0, 0 B∗ d we find that A∗ c 0 and B∗ d 0, implying (since the columns of A∗ are linearly independent) that c 0 and, similarly, that d 0. It follows that the columns of diag(A∗ , B∗ ) are linearly independent. Thus, ∗ A 0 A 0 r + s rank(A) + rank(B) . (5.12) rank ≥ rank 0 B∗ 0 B Further, it follows from Lemma 4.5.7 that A 0 A 0 rank ≤ rank + rank ≤ rank(A) + rank(B) . 0 B 0 B
(5.13)
Together, inequalities (5.12) and (5.13) imply equality (5.11). Q.E.D. Repeated application of result (5.11) gives the following formula for the rank of an arbitrary block-diagonal matrix: rank[diag(A1 , A2 , . . . , Ak )] rank(A1 ) + rank(A2 ) + · · · + rank(Ak ).
(5.14)
Note that result (5.14) implies in particular that the rank of a diagonal matrix D equals the number of nonzero diagonal elements in D.
46
4. Linear Spaces: Row and Column Spaces
Exercises Section 4.1 1. Which of the following two sets are linear spaces: (a) the set of all n × n upper triangular matrices; (b) the set of all n × n nonsymmetric matrices? Section 4.2 2. Verify Lemma 4.2.5. 3. Let A, B, and C represent three matrices (having the same dimensions) such that A + B + C 0. Show that sp(A, B) sp(A, C). 4. Let U and W represent subspaces of a linear space V. Show that if every matrix in V belongs to U or W, then U V or W V. Section 4.3 5. Let A1 , . . . , Ak represent any matrices in a linear space V. Show that sp(A1 , . . . , Ak ) is a subspace of V and that, among all subspaces of V that contain A1 , . . . Ak , it is the smallest [in the sense that, for any subspace U (of V) that contains A1 , . . . , Ak , sp(A1 , . . . , Ak ) ⊂ U]. 6. Prove Lemma 4.3.1. 7. Suppose that {A1 , . . . , Ak } is a set of matrices that spans a linear space V but is not a basis for V. Show that, for any matrix A in V, the representation of A in terms of A1 , . . . , Ak is nonunique. Section 4.4 8. Let
0 0 A 0 0
1 0 −2 0 2 2 −4 −2
−3 2 6 2 . 5 2 1 0
(a) Show that each of the two column vectors (2, through1, 3, through4) and (0, 9, through3, 12) is expressible as a linear combination of the columns of A [and hence is in C(A)]. (b) Find a basis for C(A) by applying the algorithm described in the proof of Theorem 4.3.11. (In applying the algorithm, take the spanning set to be the set consisting of the columns of A.) (c) What is the value of rank(A)? Explain your reasoning. (d) Find a basis for C(A) that includes the two column vectors from Part (a). Do so by applying the algorithm described in the proof of Theorem 4.3.12. (In applying the algorithm, take the spanning set to be the set consisting of the columns of A.)
Exercises
47
9. Let A represent a q × p matrix, B a p × n matrix, and C an m × q matrix. Show that (a) if rank(CAB) rank(C), then rank(CA) rank(C) and (b) if rank(CAB) rank(B), then rank(AB) rank(B). 10. Let A represent an m × n matrix of rank r. Show that A can be expressed as the sum of r matrices of rank 1. Section 4.5 11. Let A represent an m × n matrix and C a q × n matrix. (a) Add to the proof of Lemma 4.5.1 by confirming that A R(C) R ⇔ R(A) ⊂ R(C) . C (b) Add to the proof of Corollary 4.5.2 by confirming that rank(C) ≤ A rank , with equality holding if and only if R(A) ⊂ R(C). C
This page intentionally left blank
5 Trace of a (Square) Matrix
The primary subject of this relatively short chapter is a basic characteristic of a square matrix called the trace. There are many areas of statistics in which the trace of a matrix is encountered. For example, in the design of experiments, one of the criteria (A–optimality) that is used for comparing designs involves the trace of a matrix (Fedorov 1972). The trace of a matrix is defined and its basic properties described in Section 5.1. Some very useful results on the trace of a product of matrices are covered in Section 5.2. One of these results gives rise to some very useful mathematical equivalences, which are presented in Section 5.3. That the results on the trace of a matrix and the related equivalences are placed in a separate chapter is indicative not only of their importance but of the fact that they don’t fit particularly well into any of the other chapters.
5.1
Definition and Basic Properties
The trace of a square matrix A {aij } of order n is defined to be the sum of the n diagonal elements of A and is to be denoted by the symbol tr(A). Thus, tr(A) a11 + a22 + · · · + ann . In particular, tr(In ) n, tr(Jn ) n ,
(1.1)
and, in the case of a 1 × 1 matrix (k), whose only element is the scalar k, tr[(k)] k .
(1.2)
50
5. Trace of a (Square) Matrix
Clearly, for any scalar k and any n × n matrices A and B, tr(kA) k tr(A) ,
(1.3)
tr(A + B) tr(A) + tr(B) ,
(1.4)
tr(A ) tr(A) .
(1.5)
Further, for any r scalars k1 , k2 , . . . , kr and for any r matrices A1 , A2 , . . . , Ar of dimensions n × n, r r tr k i Ai ki tr(Ai ) , (1.6) i1
i1
as can be easily verified by, for example, the repeated application of results (1.4) and (1.3). If the diagonal blocks A11 , A22 , . . . , Akk of the partitioned matrix A11 A12 · · · A1k A21 A22 · · · A2k A . .. .. .. .. . . . Ak1 Ak2 · · · Akk are square (in which case A itself is square), then, clearly, tr(A) tr(A11 ) + tr(A22 ) + · · · + tr(Akk ) .
5.2
(1.7)
Trace of a Product
Let A {aij } represent an m × n matrix and B {bj i } an n × m matrix. Then, n m tr(AB) aij bj i , (2.1) i1 j 1
as is evident upon observing that the ith diagonal element of AB is nj1 aij bj i . Thus, since the j ith element of B is the ij th element of B , the trace of the matrix product AB can be formed by multiplying the ij th element of A by the corresponding (ij th) element of B and by then summing (over i and j ). It follows from results (1.5) and (1.2.13) that, for any m × n matrix A and n × m matrix B, tr(AB) tr(B A ) . (2.2) A further, very basic result on the product of two matrices is expressed in the following lemma. Lemma 5.2.1. For any m × n matrix A and n × m matrix B, tr(AB) tr(BA) .
(2.3)
5.2 Trace of a Product
51
Proof. Let aij represent the ij th element of A
and bj i the j ith element of B, and observe that the j th diagonal element of BA is m i1 bj i aij . Thus, making use of result (2.1), we find that tr(AB)
n m
aij bj i
i1 j 1
m n
aij bj i
j 1 i1
m n
bj i aij tr(BA) .
j 1 i1
Q.E.D. Now, let A {aij } and B {bij } represent m × n matrices, and let aj (a1j , . . . , amj ) and bj (b1j , . . . , bmj ) represent the j th columns of A and B. Then, since the j ith element of B is the ij th element of B and since bj aj
aj bj m i1 aij bij , it follows from results (2.3) and (2.1) that tr(AB ) tr(B A)
n j 1
bj aj
n j 1
aj bj
n m
aij bij .
(2.4)
i1 j 1
In particular, tr(AA ) tr(A A)
n j 1
aj aj
n m i1 j 1
aij2 ≥ 0 .
(2.5)
Thus, both tr(AA ) and tr(A A) equal the sum of squares of the elements of A (and both are nonnegative). As special cases of results (2.4) and (2.5), we have that, for any m-dimensional column vectors a {ai } and b {bi }, tr(ab ) b a a b
m
ai bi ,
(2.6)
i1
tr(aa ) a a
m i1
ai2 ≥ 0 .
(2.7)
Note that, together, results (2.2) and (2.3) imply that for any m × n matrix A and n × m matrix B, tr(AB) tr(B A ) tr(BA) tr(A B ) .
(2.8)
Thus, in evaluating the trace of the product of two matrices, the matrices can be permuted or replaced by their transposes or both. Consider now the trace of the product ABC of an m × n matrix A, an n × p matrix B, and a p × m matrix C. Since ABC can be regarded as the product of the two matrices AB and C or, alternatively, of A and BC, it follows from Lemma 5.2.1 that tr(ABC) tr(CAB) tr(BCA) . (2.9)
52
5. Trace of a (Square) Matrix
More generally, for any k matrices A1 , A2 , . . . , Ak for which the matrix product A1 A2 · · · Ak is defined, tr(A1 A2 · · · Ak ) tr(Aj +1 · · · Ak A1 · · · Aj )
(2.10)
(j 1, . . . , k − 1). Results (2.9) and (2.10) indicate that, for purposes of evaluating the trace of a product of matrices, the matrices can be permuted. However, aside from special cases, they can be permuted only in a certain way. For example, even if the three matrices A, B, and C are square and of the same order so that BAC, like ABC, is defined and square, tr(BAC) is not necessarily equal to tr(ABC).
5.3
Some Equivalent Conditions
The following lemma gives a basic equivalence. Lemma 5.3.1. For any m×n matrix A {aij }, A 0 if and only if tr(A A) 0. Proof. If A 0, then obviously tr(A A) 0. Conversely, if tr(A A) 0, then it follows from result (2.5) that aij2 0 and hence that aij 0 (i 1, . . . , m; j 1, . . . , n) or equivalently that A 0. Q.E.D. As an essentially immediate consequence of Lemma 5.3.1, we have the following corollary. Corollary 5.3.2. For any m × n matrix A, A 0 if and only if A A 0. The following corollary generalizes Corollary 5.3.2. Corollary 5.3.3. (1) For any m × n matrix A and n × p matrices B and C, AB AC if and only if A AB A AC. (2) Similarly, for any m × n matrix A and p × n matrices B and C, BA CA if and only if BA A CA A. Proof (of Corollary 5.3.3). (1) If AB AC, then obviously A AB A AC. Conversely, if A AB A AC, then (AB − AC) (AB − AC) (B − C )(A AB − A AC) 0 , and it follows from Corollary 5.3.2 that AB − AC 0 or, equivalently, that AB AC. (2) To establish Part (2), simply take the transpose of each side of the two equivalent equalities AB AC and A AB A AC . [The equivalence of these two equalities follows from part (1).] Q.E.D. Note that, as a special case of Part (1) of Corollary 5.3.3 (the special case where C 0), we have that AB 0 if and only if A AB 0, and, as a special case of Part (2), we have that BA 0 if and only if BA A 0.
Exercises
53
Exercises Section 5.2 1. Show that for any m × n matrix A, n × p matrix B, and p × q matrix C, tr(ABC) tr(B A C ) tr(A C B ) . 2. Let A, B, and C represent n × n matrices. (a) Using the result of Exercise 1 (or otherwise), show that if A, B, and C are symmetric, then tr(ABC) tr(BAC). (b) Show that [aside from special cases like that considered in Part (a)] tr(BAC) is not necessarily equal to tr(ABC). Section 5.3 3. Let A represent an n × n matrix such that A A A2 . (a) Show that tr[(A − A ) (A − A )] 0. (b) Show that A is symmetric.
This page intentionally left blank
6 Geometrical Considerations
This chapter provides an introduction (at a somewhat general level) to some rather fundamental geometrical ideas and results. Some knowledge of this material is an important prerequisite for assimilating ideas in several areas of statistics, including linear statistical models and multivariate analysis. Among those who teach and write about the more theoretical aspects of linear statistical models, there is a considerable difference of opinion about the extent to which geometrical ideas should be emphasized (relative to “algebraic” ideas). Those who prefer a “geometrical approach” (e.g., Scheff´e 1959, Christensen 1996) argue that it is more general, more elegant, and (perhaps most important) more intuitive. Those who prefer a more algebraic approach (e.g., Searle 1971) find it to be more rigorous, more concrete, more palatable to those with a limited mathematical background, and (perhaps most important) more suggestive of computational approaches.
6.1
Definitions: Norm, Distance, Angle, Inner Product, and Orthogonality
Certain definitions from plane and solid geometry can be extended in a natural way to an arbitrary linear space and can be otherwise generalized, as is now discussed. Let us begin by reviewing the usual definitions in the familiar settings of R2 and R3 .
56
6. Geometrical Considerations
a. Usual definitions in R2 and R3 Each point in the plane can be identified by its coordinates (relative to a horizontal line and a vertical line — known as the coordinate axes — labeled so that their point of intersection — known as the origin — has coordinates of zero). A vector x (x1 , x2 ) in R2 can be regarded as representing a point in the plane; namely, the point whose coordinates are x1 and x2 . Similarly, each point in 3-dimensional space can be identified by its coordinates (relative to three mutually perpendicular axes whose intersection, called the origin, has coordinates of 0); and a vector x (x1 , x2 , x3 ) in R3 can be regarded as representing the point in space whose coordinates are x1 , x2 , and x3 . (For definiteness, it is supposed that R2 R2×1 and R3 R3×1 , so that the members of R2 and R3 are column vectors rather than row vectors.) In addition to representing a point, a vector in R2 or R3 is also used to represent the directed line segment that starts at the origin and ends at that point. The intended usage can be ascertained from the context. The usual definition of the norm x (also known as the length or magnitude) of a vector x (x1 , x2 ) in R2 is x (x12 + x22 )1/2 . The distance δ(x, y) between two vectors x (x1 , x2 ) and y (y1 , y2 ) in R2 is usually taken to be δ(x, y) x − y [(x1 − y1 )2 + (x2 − y2 )2 ]1/2 . Similarly, the norm x of a vector x (x1 , x2 , x3 ) in R3 is usually defined to be x (x12 + x22 + x32 )1/2 , and the distance δ(x,y) between two vectors x (x1 , x2 , x3 ) and y (y1 , y2 , y3 ) (in R3 ) to be δ(x, y) x − y [(x1 − y1 )2 + (x2 − y2 )2 + (x3 − y3 )2 ]1/2 . Clearly, for any vector x in R2 or R3 , x (x x)1/2 , and x δ(x, 0), that is, the norm of x is the distance between x and 0. Consider now the angle that two nonnull vectors x and y in R2 and R3 form with each other. There are actually two such angles, as depicted in Figure 6.1. The first angle θ1 is that determined by rotating the directed line segment x in a counterclockwise direction (about the origin and within the plane containing x and y) until the directed line segment y is encountered. The second angle θ2 2π − θ1 is that determined by rotating y in a counterclockwise direction until x is encountered. (Unless otherwise indicated, angles are to be expressed in radians.)
i
58
6. Geometrical Considerations
Clearly, for any two vectors x and y in R2 or R3 , x • y x y . Note that the norm of a vector x in R2 or R3 is expressible as x (x • x)1/2 , and the cosine of the angle θ between two nonnull vectors x and y in R2 is expressible as x•y x•y cos θ • 1/2 • 1/2 . xy (x x) (y y) Two vectors x and y in R2 or R3 are said to be orthogonal (or perpendicular) if x • y 0. Clearly, nonnull vectors x and y are orthogonal if and only if the angle between them is π/2 (90◦ ) or, equivalently, the cosine of that angle is 0.
b. General definitions The usual definitions of norm, distance, angle, inner product, and orthogonality can be extended, in a natural way, from R2 and R3 to an arbitrary linear space and can be otherwise generalized, though — except for linear spaces of 2- or 3-dimensional row or column vectors — the extended definitions have no obvious geometrical interpretations. To do so, it suffices to extend and generalize the definition of inner product. The other definitions can then be extended and generalized by supposing that the concepts of norm, distance, angle, and orthogonality are related to each other and to the concept of inner product in the same way as (under the usual definitions) in R2 and R3 . The usual definition of the inner (or dot) product x • y of two n-dimensional (column) vectors x (x1 , x2 , . . . , xn ) and y (y1 , y2 , . . . , yn ) in Rn , or, more generally, in a subspace of Rn , is x • y x y x1 y1 + x2 y2 + . . . + xn yn .
(1.4)
Formula (1.4) is the natural extension of formulas (1.2) and (1.3) for the usual inner product of two vectors in R2 or R3 . More generally, the usual definition of the inner (or dot) product A • B of two m × n matrices A and B in a linear space V of m × n matrices is A • B tr(A B)
(1.5)
or, equivalently [in light of result (5.2.8)], A • B tr(AB ) .
(1.6)
In the special case of two n-dimensional row vectors x (x1 , x2 , . . . , xn ) and y (y1 , y2 , . . . , yn ), formula (1.6) for the usual inner product simplifies to x • y x y x1 y1 + x2 y2 + · · · + xn yn ,
6.1 Definitions: Norm, Distance, Angle, Inner Product, and Orthogonality
59
which is the same as formula (1.4) for the usual inner product of the corresponding column vectors x and y. The usual inner product A • B of two matrices A and B in a linear space V of m × n matrices can be regarded as the value assigned to A and B by a function whose domain consists of all (ordered) pairs of matrices in V. As is evident from results (5.1.3), (5.1.4), (5.2.3), and (5.2.5) and from Lemma 5.3.1, this function has the following four basic properties: (1) A • B B • A; (2) A • A ≥ 0, with equality holding if and only if A 0; (3) (kA) • B k(A • B); (4) (A + B) • C (A • C) + (B • C) (where A, B, and C represent arbitrary matrices in V and k represents an arbitrary scalar). It is sometimes useful to adopt a different definition for the inner product. Subsequently, we define the inner product of two matrices A and B in a linear space V (of m × n matrices) to be the value A • B assigned to A and B by any designated function f (whose domain consists of all pairs of matrices in V) having Properties (1) – (4). The term inner product is applied to the function f , as well as to its values. When f is chosen to be the function whose values are given by formula (1.5) or (1.6), we obtain the usual inner product. Other properties of the inner product can be derived from the four basic properties. We find, in particular, that (for any A in V) 0•A 0 ,
(1.7)
as is evident from Property (3) upon observing that 0 • A (0A) • A 0(A • A) 0 . Further (for any matrices A1 , . . . , Ak , and B in V and any scalars x1 , . . . , xk ), (x1 A1 + · · · + xk Ak ) • B x1 (A1 • B) + · · · + xk (Ak • B) ,
(1.8)
as can be readily verified by the repeated application of Properties (3) and (4). Note that if a function f qualifies as an inner product for a linear space V of m × n matrices, then f also qualifies as an inner product for any subspace of V — or, more precisely, the function obtained by restricting the domain of f (which consists of pairs of matrices in V) to pairs of matrices in the subspace qualifies as an inner product. In fact, if f is the designated inner product for a linear space V, then (unless otherwise indicated) it is implicitly assumed that the same function f is the designated inner product for any subspace of V. The norm A of a matrix A {aij } in a linear space V of m × n matrices is A (A • A)1/2 ,
60
6. Geometrical Considerations
which, in the case of the usual inner product, gives 1/2 n m 1/2 A tr(A A) aij2 .
(1.9)
i1 j 1
If V is a linear space of m-dimensional column vectors, then, letting x {xi } represent any vector in V, formula (1.9) can be restated as x (x x)1/2 (x12 + · · · + xm2 )1/2 .
(1.10)
The norm defined by formula (1.10) or more generally by formula (1.9) is called the usual norm. Letting A represent an arbitrary matrix in a linear space V and k an arbitrary scalar, it is clear that A
> 0, 0,
A 0 , A0,
if if
(1.11a) (1.11b)
and that kA |k|A .
(1.12)
As a special case of equality (1.12) (that where k −1), we have that − A A .
(1.13)
The distance δ(A, B) between two matrices A and B in a linear space V is δ(A, B) A − B .
(1.14)
If V is a linear space of n-dimensional column vectors, then, letting x {xi } represent any vector in V, formula (1.14) simplifies, in the case of the usual norm, to δ(x, y) [(x − y) (x − y)]1/2 [(x1 − y1 )2 + · · · + (xn − yn )2 ]1/2 .
(1.15)
For two nonnull vectors x {xi } and y {yi } in a linear space V of ndimensional column vectors, the angle θ (0 ≤ θ ≤ π) between x and y is defined (indirectly in terms of its cosine) by cos θ
x•y xy
or equivalently, in the case of the usual inner product and norm, by cos θ
(x12
x1 y1 + · · · + xn yn . + · · · + xn2 )1/2 (y12 + · · · + yn2 )1/2
More generally, the angle θ (0 ≤ θ ≤ π) between two nonnull matrices A and B in a linear space V of m × n matrices is defined by cos θ
A•B . AB
6.2 Orthogonal and Orthonormal Sets
61
The Schwarz inequality, which is to be introduced in Section 6.3, implies that −1 ≤
A•B ≤1 AB
(1.16)
and hence insures that this angle is well-defined. Two vectors x and y in a linear space V of n-dimensional column vectors are said to be orthogonal if x • y 0. More generally, two matrices A and B in a linear space V are said to be orthogonal if A • B 0. The statement that two matrices A and B are orthogonal is sometimes abbreviated to A ⊥ B. Clearly, two nonnull matrices are orthogonal if and only if the angle between them is π/2 or, equivalently, the cosine of that angle is 0. Whether two matrices are orthogonal depends on the choice of inner product; that is, two matrices that are orthogonal with respect to one inner product (one choice for the function f ) may not be orthogonal with respect to another.
6.2
Orthogonal and Orthonormal Sets
A finite set of matrices in a linear space V is said to be orthogonal if every pair of matrices in the set are orthogonal. Thus, the empty set and any set containing only one matrix are orthogonal sets, and a finite set {A1 , . . . , Ak } of two or more matrices in V is an orthogonal set if Ai • Aj 0 for j i 1, . . . , k. A finite set of matrices in V is said to be orthonormal if the set is orthogonal and if the norm of every matrix in the set equals 1. In the special case of a set of (row or column) vectors, the expression “set of orthogonal (or orthonormal) vectors,” or simply “orthogonal (or orthonormal) vectors,” is often used in lieu of the technically more correct expression “orthogonal (or orthonormal) set of vectors.” Note that if A is any nonnull matrix in a linear space V, then the norm of the matrix B A−1 A (2.1) equals 1. The expression “normalizing a (nonnull) matrix” is often used in referring to the conversion — via formula (2.1) — of the matrix into a matrix whose norm is 1. If {A1 , . . . , Ak } is an orthogonal set of nonnull matrices in a linear space V, then the matrices B1 A1 −1 A1 , . . . , Bk Ak −1 Ak form an orthonormal set. Thus, any orthogonal set of nonnull matrices can be converted into an orthonormal set by normalizing each of the matrices. There is a relationship between orthogonality and linear independence, which is described in the following lemma. Lemma 6.2.1. An orthogonal set of nonnull matrices is linearly independent. Proof. If the orthogonal set is the empty set, then the result is clearly true (since, by convention, the empty set is linearly independent). Suppose then that
62
6. Geometrical Considerations
{A1 , . . . , Ak } is any nonempty orthogonal set of nonnull matrices. Let x1 , . . . , xk represent arbitrary scalars such that x 1 A1 + · · · + x k Ak 0 . For i 1, . . . , k, we find that 0 0 • Ai
(x1 A1 + · · · + xk Ak ) • Ai
x1 (A1 • Ai ) + · · · + xk (Ak • Ai )
xi (Ai • Ai ) ,
implying (since Ai is nonnull) that xi 0. We conclude that the set {A1 , . . . , Ak } is linearly independent. Q.E.D. Note that Lemma 6.2.1 implies in particular that any orthonormal set of matrices is linearly independent. Note also that the converse of Lemma 6.2.1 is not necessarily true; that is, a linearly independent set is not necessarily orthogonal. For example, the set consisting of the two 2-dimensional row vectors (1,0) and (1,1) is linearly independent but is not orthogonal (with respect to the usual inner product).
6.3
Schwarz Inequality
The following theorem gives a famous inequality, known as the Schwarz inequality. Theorem 6.3.1 (Schwarz inequality). For any two matrices A and B in a linear space V, |A • B| ≤ AB , (3.1) with equality holding if and only if B 0 or A kB for some scalar k. Proof. Suppose first that B 0 or equivalently that B 0. Then, |A • B| 0 A B, and inequality (3.1) holds as an equality. Now, suppose that B > 0. Then (repeatedly making use of the basic properties of inner products), we find that, for any scalars x and y, 0
≤
(xA − yB) • (xA − yB) x 2 A2 − 2xy(A • B) + y 2 B2 .
Choosing x B and y (A • B)/B, we obtain the inequality 0 ≤ B2 A2 − (A • B)2 , which is equivalent to the inequality (A • B)2 ≤ A2 B2 and hence to inequality (3.1).
6.4 Orthonormal Bases
63
If A kB, then A |k| B, so that |A • B| |k|(B • B) |k|B2 AB . Conversely, suppose that |A • B| A B. Then, letting C B2 A −(A • B)B, we find that C • C 0, implying that C 0, that is, that B2 A (A • B)B . We conclude that either B 0 or A [(A • B)/B2 ]B . Q.E.D. As a special case of Theorem 6.3.1, we have that, for any two n-dimensional column vectors x and y, |x y| ≤ (x x)1/2 (y y)1/2 ,
(3.2)
with equality holding if and only if y 0 or x ky for some scalar k. Note that the result of Theorem 6.3.1 can be reexpressed as follows. Corollary 6.3.2. Let V represent a linear space of m × n matrices. Then, for any matrix B in V, |A • B| max B . {A∈V:A0} A Moreover, if B 0, the maximum is attained at every nonnull A ∈ V; and if B 0, the maximum is attained at every nonnull A ∈ V that is proportional to B.
6.4
Orthonormal Bases
An orthonormal basis for a linear space V is an orthonormal set of matrices in V that is a basis for V. The technique of Gram-Schmidt orthogonalization, which is described in Subsection a below, is used in Subsection b to establish the existence of an orthonormal basis.
a. Gram-Schmidt orthogonalization A nonempty linearly independent set of matrices can be transformed into an orthogonal or orthonormal set of matrices by applying the results of the following theorem and corollary. Theorem 6.4.1. Let {A1 , . . . , Ak } represent a nonempty linearly independent
64
6. Geometrical Considerations
set of matrices in a linear space V. Then, there exist unique scalars xij (i < j 1, . . . , k) such that the set comprising the k matrices B1 A1 , B2 A2 − x12 B1 , .. . Bj Aj − xj −1,j Bj −1 − · · · − x1j B1 , .. . Bk Ak − xk−1,k Bk−1 − · · · − x1k B1 is orthogonal. Further, B1 , B2 , . . . , Bk are nonnull, and (for i < j 1, . . . , k) xij
Aj • Bi . Bi • Bi
(4.1)
Proof. The proof is by mathematical induction. The theorem is obviously true for k 1. Suppose now that the theorem is true for a set of k − 1 linearly independent matrices. Then, there exist unique scalars xij (i < j 1, . . . , k − 1) such that the set comprising the k −1 matrices B1 , . . . , Bk−1 is orthogonal. Further, B1 , . . . , Bk−1 are nonnull, and (for i < j 1, . . . , k − 1) xij
Aj • Bi . Bi • Bi
And, for i 1, . . . , k − 1, we find that B k • Bi
Ak • Bi − xk−1,k (Bk−1 • Bi ) − · · · − x1k (B1 • Bi ) Ak • Bi − xik (Bi • Bi )
and thus that Bk • Bi 0 if and only if Ak • Bi − xik (Bi • Bi ) 0 or, equivalently (since Bi is nonnull), if and only if xik
Ak • Bi . Bi • Bi
We conclude that there exist unique scalars xij (i < j 1, . . . , k) such that the set comprising the k matrices B1 , . . . , Bk is orthogonal. We further conclude that B1 , . . . , Bk are nonnull and that (for i < j 1, . . . , k) xij is given by formula (4.1). (The matrix Bk Ak −xk−1,k Bk−1 −· · ·−x1k B1 is nonnull since, by repeated substitution, it can be rewritten as a nontrivial linear combination of the linearly independent matrices A1 , . . . , Ak .) Q.E.D. Corollary 6.4.2. Let {A1 , . . . , Ak } represent a nonempty linearly independent set of matrices in a linear space V. Then, the set comprising the k matrices C1 B1 −1 B1 , . . . , Ck Bk −1 Bk ,
6.4 Orthonormal Bases
65
obtained by normalizing the k matrices B1 , . . . , Bk defined in Theorem 6.4.1, is orthonormal. Corollary 6.4.2 is an essentially immediate consequence of Theorem 6.4.1. The process of constructing an orthonormal set {C1 , . . . , Ck } from a linearly independent set {A1 , . . . , Ak } in accordance with the formulas of Theorem 6.4.1 and Corollary 6.4.2 is known as Gram-Schmidt orthogonalization.
b. Existence of orthonormal bases and a basic property of orthonormal bases According to Theorem 4.3.4, every linear space (of m × n matrices) has a basis. The basis of the linear space {0}, whose only member is the m × n null matrix 0, is the empty set, which is an orthonormal set. The basis of any other linear space V is a nonempty (linearly independent) set, say {A1 , . . . , Ar }. By applying Gram-Schmidt orthogonalization to the set {A1 , . . . , Ar }, we can construct an orthonormal set {C1 , . . . , Cr } of r matrices in V. It follows from Lemma 6.2.1 that this set is linearly independent and hence — in light of Theorem 4.3.9 — that it is a basis for V. Thus, we have the following theorem. Theorem 6.4.3. Every linear space (of m × n matrices) has an orthonormal basis. The following theorem describes a basic property of orthonormal bases. Theorem 6.4.4. Let A1 , A2 , . . . , Ar represent matrices that form an orthonormal basis for a linear space V. Then, for any matrix A in V, A (A • A1 )A1 + (A • A2 )A2 + · · · + (A • Ar )Ar . Proof. There exist (unique) scalars x1 , x2 , . . . , xr such that A And, for j 1, . . . , r, r r • A Aj xi Ai • Aj xi (Ai • Aj ) xj . i1
Thus, A
r
i1 (A
•
Ai )Ai .
r
i1
x i Ai .
i1
Q.E.D.
c. Inclusion of any particular orthonormal set in an orthonormal basis Suppose that {A1 , . . . , Ar } is an orthonormal set of matrices in a k-dimensional linear space V. Then, in light of Lemma 6.2.1, the matrices A1 , . . . , Ar are linearly independent, and it follows from Theorem 4.3.12 that there exists a basis for V that includes A1 , . . . , Ar ; that is, there exist k−r additional matrices, say Ar+1 , . . . , Ak , such that the set {A1 , . . . , Ar , Ar+1 , . . . , Ak } is a basis for V. Does there exist an orthonormal basis for V that includes A1 , . . . , Ar ? This question can be answered (in the affirmative) by observing that an orthonormal set {C1 , . . . , Cr , Cr+1 , . . . , Ck } of k matrices in V can be constructed by applying
66
6. Geometrical Considerations
Gram-Schmidt orthogonalization to the set {A1 , . . . , Ar , Ar+1 , . . . , Ak }. Since the subset comprising the first r of the matrices in the set {A1 , . . . , Ar , Ar+1 , . . . , Ak } is orthonormal, the matrices in this subset are not altered by the Gram-Schmidt orthogonalization; that is, Ci Ai
(i 1, . . . , r) .
Moreover, it follows from Lemma 6.2.1 and Theorem 4.3.9 that the orthonormal set {C1 , . . . , Cr , Cr+1 , . . . , Ck } is a basis for V. Thus, we have the following theorem. Theorem 6.4.5. For any orthonormal set S of r matrices in a k-dimensional linear space V, there exists an orthonormal basis for V that includes all r of the matrices in S (and k − r additional matrices).
d. QR decomposition Let A represent an m × k matrix of full column rank, that is, of rank k. And, denote the first, . . . , kth columns of A by a1 , . . . , ak , respectively. Then, according to Theorem 6.4.1, there exist unique scalars xij (i < j 1, . . . , k) such that the k column vectors b1 , . . . , bk defined recursively by the equalities b1 a1 , b2 a2 − x12 b1 , .. . bj aj − xj −1,j bj −1 − · · · − x1j b1 , .. . bk ak − xk−1,k bk−1 − · · · − x1k b1 or, equivalently, by the equalities a1 b1 , a2 b2 + x12 b1 , .. . aj bj + xj −1,j bj −1 + · · · + x1j b1 , .. . ak bk + xk−1,k bk−1 + · · · + x1k b1 form an orthogonal set. Further, b1 , . . . , bk are nonnull, and (for i < j 1, . . . , k) xij
aj • bi . bi • bi
Now, let B represent the m × k matrix whose first, . . . , kth columns are b1 , . . . , bk , respectively, and let X represent the k × k unit upper triangular matrix whose ij th element is (for i < j 1, . . . , k) xij . Then, A BX ,
(4.2)
6.4 Orthonormal Bases
67
as is evident upon observing that the first column of BX is b1 and that (for j 2, . . . , k) the j th column of BX is bj + xj −1,j bj −1 + · · · + x1j b1 . Thus, A can be expressed as the product of an m × k matrix with (nonnull) orthogonal columns and of a k × k unit upper triangular matrix. Moreover, this decomposition or factorization of A is unique; that is, if B∗ is an m × k matrix with orthogonal columns and X∗ is a k × k unit upper triangular matrix such that A B∗ X∗ , then B∗ B and X∗ X. To see this, denote the first, . . . , kth columns of B∗ by b∗1 , . . . , b∗k , respectively, denote the ij th element of X∗ by xij∗ , and observe that (by definition) a1 b∗1 and (for j 2, . . . , k) ∗ ∗ b1 , aj b∗j + xj∗−1,j b∗j −1 + · · · + x1j
or, equivalently, that b∗1 a1 and (for j 2, . . . , k) ∗ ∗ b1 . b∗j aj − xj∗−1,j b∗j −1 − · · · − x1j
Then, it follows from Theorem 6.4.1 that (for i < j 1, . . . , k) xij∗ xij and, as a consequence, that (for all j ) b∗j bj , so that X∗ X and B∗ B. A variation on decomposition (4.2) can be obtained by defining Q BD, where D diag(b1 −1 , . . . , bk −1 ), and R EX, where E diag(b1 , . . . , bk ); or equivalently by defining Q to be the m × k matrix with j th column qj bj −1 bj and R {rij } to be the k × k matrix with bi xij , for j > i , bi , for j i , rij 0, for j < i . Then, clearly, the columns of Q are orthonormal (they are the orthonormal vectors obtained by applying Gram-Schmidt orthogonalization to the columns of A), R is an upper triangular matrix with positive diagonal elements, and A QR .
(4.3)
Moreover, decomposition (4.3) is unique; that is, if Q∗ is an m × k matrix with orthonormal columns q∗1 , . . . , q∗k , respectively, and if R∗ {rij∗ } is a k × k upper triangular matrix (with positive diagonal elements) such that A Q∗ R∗ , then ∗ ∗ Q∗ Q and R∗ R. To see this, let B∗ Q∗ E∗ , where E∗ diag(r11 , . . . , rkk ), ∗−1 ∗−1 ∗ ∗ ∗ ∗ and let X D R , where D diag(r11 , . . . , rkk ); or, equivalently, let B∗ ∗ ∗ represent the m × k matrix with j th column b∗j rjj qj , and let X∗ represent the k × k matrix with ij th element xij∗ rii∗−1 rij∗ . Then, the columns of B∗ are orthogonal, X∗ is unit upper triangular, and A B∗ X∗ . Thus, in light of the ∗ ∗ uniqueness of decomposition (4.2), B∗ B and X∗ X, so that rjj qj b∗j ∗−1 ∗ ∗ bj bj qj (for all j ) and rii rij xij xij bi −1 rij (for all j and i < j ), implying that
∗ ∗2 ∗ ∗ 1/2 (rjj qj qj ) (bj 2 qj qj )1/2 bj ( rjj ) . rjj
68
6. Geometrical Considerations
(for all j ), and hence that qj q∗j (for all j ) and rij∗ rij (for all j and i ≤ j ), or, equivalently, that Q∗ Q and R∗ R. Note that decompositions (4.2) and (4.3) depend on the choice of inner product (with respect to which the columns of B and the columns of Q form orthogonal or orthonormal sets). Let us refer to the version of decomposition (4.3) corresponding to the usual inner product as the QR decomposition — for that version, Q Q Ik . This usage of the term QR decomposition conforms to that of Stewart (1973, p. 214) and Lancaster and Tismenetsky (1985, p. 111), but differs somewhat from that of Golub and Van Loan (1989, sec. 5.2), who refer to decomposiiton (4.3) as the “skinny” QR decomposition. In principle, the QR decomposition of the matrix A could be computed by Gram-Schmidt orthogonalization. However, as a computational algorithm, GramSchmidt orthogonalization is numerically unstable. Numerically more stable algorithms for computing the QR decomposition are discussed by Golub and Van Loan (1989, sec. 5.2) — one such algorithm is a variant on Gram-Schmidt orthogonalization called modified Gram-Schmidt orthogonalization.
Exercises Section 6.3 1. Use the Schwarz inequality to show that, for any two matrices A and B in a linear space V, A + B ≤ A + B , with equality holding if and only if B 0 or A kB for some nonnegative scalar k. (This inequality is known as the triangle inequality.) 2. Letting A, B, and C represent arbitrary matrices in a linear space V, show that (a) δ(B, A) δ(A, B), that is the distance between B and A is the same as that between A and B; (b)
δ(A, B) > 0, if A B , 0, if A B , that is, the distance between any two matrices is greater than zero, unless the two matrices are identical, in which case the distance between them is zero;
(c) δ(A, B) ≤ δ(A, C)+ δ(C, B), that is, the distance between A and B is less than or equal to the sum of the distances between A and C and between C and B; (d) δ(A, B) δ(A + C, B + C), that is, distance is unaffected by a translation of “axes.”
Exercises
69
[For Part (c), use the result of Exercise 1, i.e., the triangle inequality.] Section 6.4 3. Let w1 , w2 , and w3 represent the three linearly independent 4-dimensional row vectors (6, 0, –2, 3), (–2, 4, 4, 2), and (0, 5, –1, 2), respectively, in the linear space R4 , and adopt the usual definition of inner product. (a) Use Gram-Schmidt orthogonalization to find an orthonormal basis for the linear space sp(w1 , w2 , w3 ). (b) Find an orthonormal basis for R4 that includes the three orthonormal vectors from Part (a). Do so by extending the results of the Gram-Schmidt orthogonalization [from Part (a)] to a fourth linearly independent row vector such as (0, 1, 0, 0). 4. Let {A1 , . . . , Ak } represent a nonempty (possibly linearly dependent) set of matrices in a linear space V. (a) Generalize Theorem 6.4.1 by showing (1) that there exist scalars xij (i < j 1, . . . , k) such that the set comprising the k matrices B1 A1 , B2 A2 − x12 B1 , .. . Bj Aj − xj −1,j Bj −1 − · · · − x1j B1 , .. . Bk Ak − xk−1,k Bk−1 − · · · − x1k B1 is orthogonal; (2) that, for j 1, . . . , k and for those i < j such that Bi is nonnull, xij is given uniquely by xij
Aj • Bi ; Bi • Bi
and (3) that the number of nonnull matrices among B1 , . . . , Bk equals dim[sp(A1 , . . . , Ak )]. (b) Describe a procedure for constructing an orthonormal basis for sp(A1, . . ., Ak ). 5. Let A represent an m × k matrix of rank r (where r is possibly less than k). Generalize result (4.3) by using the results of Exercise 4 to obtain a decomposition of the form A QR1 , where Q is an m × r matrix with orthonormal columns and R1 is an r × k submatrix whose rows are the r nonnull rows of a k × k upper triangular matrix R having r positive diagonal elements and k − r null rows.
This page intentionally left blank
7 Linear Systems: Consistency and Compatibility
In many instances, the solution to a problem encountered in statistics (or in some other discipline) can be reduced to a problem of solving a system of linear equations. For example, the problem of obtaining the least squares estimates of the parameters in a linear statistical model can be reduced to the problem of solving a system of linear equations called the normal equations or (if the parameters are subject to linear constraints) a system of linear equations sometimes called the constrained normal equations (e.g., Searle 1971). The focus in this chapter is on questions about the existence of (one or more) solutions to a system of linear equations — questions about the solutions themselves (when solutions exist) are deferred until Chapter 11. Such questions of existence arise in the theory of linear statistical models in determining which parametric functions are estimable (i.e., which parametric functions can be estimated from the data) and in the design of experiments (e.g., Searle 1971). The results of Sections 7.2 and 7.3 are general (i.e., applicable to any system of linear equations), while those of Section 7.4 are specific to systems of linear equations of the form of the normal equations or constrained normal equations — some of the terminology employed in discussing systems of linear equations is introduced in Section 7.1.
7.1
Some Basic Terminology
Consider a set of m equations of the general form a11 x1 + a12 x2 + · · · + a1n xn b1 .. . am1 x1 + am2 x2 + · · · + amn xn bm ,
72
7. Linear Systems: Consistency and Compatibility
where a11 , a12 , . . . , a1n , . . . , am1 , am2 , . . . , amn and b1 , . . . , bm represent fixed scalars, and x1 , x2 , . . . , xn are scalar-valued unknowns or variables. Each of these equations is linear in the unknowns x1 , x2 , . . . , xn . Collectively, these equations are called a system of linear equations (in unknowns x1 , x2 , . . . , xn ) or simply a linear system (in x1 , x2 , . . . , xn ). The linear system can be rewritten in matrix form as Ax b ,
(1.1)
where A is the m × n matrix whose ij th element is aij (i 1, . . . , m; j 1, . . . , n), b (b1 , . . . , bm ) , and x (x1 , x2 , . . . , xn ) . The matrix A is called the coefficient matrix of the linear system, and b is called the right side. Any value of the vector x of unknowns that satisfies Ax b is called a solution to the linear system, and the process of finding a solution (when one exists) is called solving the linear system. There may be occasion to solve the linear system for more than one right side, that is, to solve each of p linear systems Axk bk (k 1, . . . , p)
(1.2)
(in vectors x1 , . . . , xp , respectively, of unknowns) that have the same coefficient matrix A but right sides b1 , . . . , bp , respectively, that may differ. By forming an n × p matrix X whose first, . . . , pth columns are x1 , . . . , xp , respectively, and an m × p matrix B whose columns are b1 , . . . , bp , respectively, the p linear systems (1.2) can be rewritten collectively as AX B .
(1.3)
As in the special case (1.1) where p 1, AX B is called a linear system (in X), A and B are called the coefficient matrix and the right side, respectively, and any value of X that satisfies AX B is called a solution. In the special case AX 0 , where the right side B of linear system (1.3) is a null matrix, the linear system is said to be homogeneous. If B is nonnull, linear system (1.3) is said to be nonhomogeneous.
7.2
Consistency
A linear system is said to be consistent if it has one or more solutions. If no solution exists, the linear system is said to be inconsistent. Every homogeneous linear system is consistent — one solution to a homogeneous linear system is the null matrix (of appropriate dimensions). A nonhomogeneous linear system may be either consistent or inconsistent. Some necessary and
7.3 Compatibility
73
sufficient conditions for a linear system to be consistent are given by the following theorem. Theorem 7.2.1. Each of the following conditions is necessary and sufficient for a linear system AX B (in X) to be consistent: (1) C(B) ⊂ C(A); (2) every column of B belongs to C(A); (3) C(A, B) C(A); (4) rank(A, B) rank(A). Proof. That Condition (1) is necessary and sufficient for the consistency of AX B is an immediate consequence of Lemma 4.2.2. Further, it follows from Lemma 4.2.1 that Condition (2) is equivalent to Condition (1), from Lemma 4.5.1 that Condition (3) is equivalent to Condition (1), and from Corollary 4.5.2 that Condition (4) is equivalent to Condition (1). Thus, each of Conditions (2) through (4) is also necessary and sufficient for the consistency of AX B. Q.E.D. A sufficient (but in general not a necessary) condition for the consistency of a linear system is given by the following theorem. Theorem 7.2.2. If the coefficient matrix A of a linear system AX B (in X) has full row rank, then AX B is consistent. Proof. Let m represent the number of rows in A, and suppose that A has full row rank or, equivalently, that rank(A) m. Then, making use of Lemma 4.4.3, we find that rank(A, B) ≤ m rank(A) . Moreover, since C(A) ⊂ C(A, B), it follows from Theorem 4.4.4 that rank(A, B) ≥ rank(A). Thus, rank(A, B) rank(A), and the consistency of AX B follows from Theorem 7.2.1. Q.E.D.
7.3
Compatibility
A linear system AX B (in X) is said to be compatible if every linear relationship that exists among the rows of A also exists among the rows of B. That is, AX B is compatible if k B 0 for every row vector k (of appropriate dimension) such that k A 0. Compatibility is equivalent to consistency as indicated by the following theorem. Theorem 7.3.1. A linear system AX B (in X) is consistent if and only if it is compatible. Proof. Suppose that the linear system AX B is consistent. Then, there exists a matrix X∗ such that AX∗ B, and, for every row vector k such that k A 0, we have that k B k AX∗ 0 . Thus, AX B is compatible. To prove the converse, let a1 , . . . , am and b1 , . . . , bm represent the rows of A and B respectively, and observe that if a value of X is a solution to all m of the
74
7. Linear Systems: Consistency and Compatibility
equations
ai X bi (i 1, . . . , m) ,
then it is a solution to AX B. According to Theorem 4.3.11, there exists a subset S {k1 , . . . , kr } of the first m positive integers such that the set {ak1 , . . . , akr } is a basis for R(A). Taking A1 to be a matrix whose rows are ak1 , . . . , akr and B1 to be a matrix whose rows are bk1 , . . . , bkr , it follows from Theorem 7.2.2 that the linear system A1 X B1 (in X) is consistent. Thus, there exists a matrix X∗ such that A1 X∗ B1 or, equivalently, such that akj X∗ bkj (j 1, . . . , r) . To complete the proof, it suffices to show that if AX B is compatible, then ai X∗ bi for i ∈ S. For each i ∈ S, there exist scalars λi1 , . . . , λir such that ai
r j 1
λij akj
or, equivalently, such that ai −
r j 1
λij akj 0.
If AX B is compatible, then, for each i ∈ S, bi −
r j 1
or, equivalently, bi in which case ai X∗
r j 1
λij bkj 0
r j 1
λij bkj ,
λij akj X∗
r j 1
λij bkj bi . Q.E.D.
7.4
Linear Systems of the Form A AX A B
a. A basic result Theorem 7.3.1 can be used to establish the following result. Theorem 7.4.1. For any m × n matrix A and m × p matrix B, the linear system A AX A B (in X) is consistent.
7.4 Linear Systems of the Form A AX A B
75
Proof. To prove Theorem 7.4.1, it suffices (in light of Theorem 7.3.1) to show that the linear system A AX A B is compatible. Let k represent any row vector such that k A A 0. Then, according to Corollary 5.3.3, we have that k A 0 and hence that k A B 0. Thus, the linear system A AX A B is compatible. Q.E.D. In the special case where B I, Theorem 7.4.1 reduces to the following result. Corollary 7.4.2. For any matrix A, the linear system A AX A (in X) is consistent.
b. Some results on row and column spaces and on ranks Corollary 7.4.2 can be used to establish the following result. Theorem 7.4.3. For any m×n matrix A and n×s matrix T, C(T A A) C(T A ) and R(A AT) R(AT). Proof. According to Corollary 7.4.2, there exists a matrix X such that A AX A . Thus, making use of Corollary 4.2.3, we find that C(T A ) C(T A AX) ⊂ C(T A A) and also that C(T A A) ⊂ C(T A ), implying that C(T A A) C(T A ) and further (in light of Lemma 4.2.5) that R(A AT) R(AT). Q.E.D. One implication of Theorem 7.4.3 is given by the following corollary. Corollary 7.4.4. For any m × n matrix A and n × s matrix T, rank(T A A) rank(T A ) and rank(A AT) rank(AT). In the special case where T I, the results of Theorem 7.4.3 and Corollary 7.4.4 reduce to the results given by the following corollary. Corollary 7.4.5. For any matrix A, C(A A) C(A ), R(A A) R(A), and rank(A A) rank(A). One implication of Corollary 7.4.5 is described in the following, additional corollary. Corollary 7.4.6. For any matrix A of full column rank, A A is nonsingular. In light of Corollary 4.5.6, the following theorem is an immediate consequence of Theorem 7.4.3 (and Corollary 7.4.4). Theorem 7.4.7. Let A represent an m × n matrix, T an n × s matrix, and K a q × s matrix. Then, C(T A A, K ) C(T A , K ) , rank(T A A, K ) rank(T A , K ) , AT A AT A AT AT R , rank R rank . K K K K
c. Extensions The following theorem extends Theorem 7.4.1. Theorem 7.4.8. For any m × n matrix A, m × p matrix B, and n × q matrix L and for any q × p matrix C such that C(C) ⊂ C(L ), the linear system AA L X AB (4.1) L C 0 Y
76
7. Linear Systems: Consistency and Compatibility
(in X and Y) is consistent. Proof. It suffices (in light of Theorem 7.3.1) to show that linear system (4.1) is compatible. Let k1 and k2 represent any n × 1 and q × 1 vectors such that (k1 , k2 )
AA L 0. L 0
Then, k1 A A −k2 L , L k1 0 ,
(4.2)
implying that (Ak1 ) Ak1 k1 A Ak1 −k2 L k1 0 and hence (in light of Corollary 5.3.2) that Ak1 0 .
(4.3)
Moreover, there exists a matrix F such that C L F, implying — in light of results (4.2) and (4.3) — that k2 C k2 L F −k1 A AF −(Ak1 ) AF 0 .
(4.4)
Together, results (4.3) and (4.4) imply that
(k1 , k2 )
A B (Ak1 ) B + k2 C 0 . C
Thus, linear system (4.1) is compatible. Q.E.D. Theorem 7.4.8 is generalized in the following corollary. Corollary 7.4.9. For any m × n matrix A, m × p matrix B, n × q matrix L, and q × p matrix R, and for any q × p matrix C such that C(C) ⊂ C(L ), the linear system X A B + LR AA L (4.5) L C 0 Y (in X and Y) is consistent. Proof. According to Theorem 7.4.8, the linear system
A A L L 0
X AB C Y
X∗ X∗ . Then, clearly, the matrix is a (in X and Y) has a solution, say Y∗ Y∗ + R solution to linear system (4.5). Thus, linear system (4.5) is consistent. Q.E.D.
Exercise
77
Exercise Section 7.4 1. (a) Let A represent an m × n matrix, C an n × q matrix, and B a q × p matrix. Show that if rank(AC) rank(C), then R(ACB) R(CB) and rank(ACB) rank(CB) and that if rank(CB) rank(C), then C(ACB) C(AC) and rank(ACB) rank(AC) , thereby extending the results of Corollary 4.4.7, Theorem 7.4.3, and Corollary 7.4.4. (b) Let A and B represent m×n matrices. (1) Show that if C is an r×q matrix and D a q ×m matrix such that rank(CD) rank(D), then CDA CDB implies DA DB, thereby extending the result of Part (1) of Corollary 5.3.3. {Hint. To show that DA DB, it suffices to show that rank[D(A − B)] 0.} (2) Similarly, show that if C is an n × q matrix and D a q × p matrix such that rank(CD) rank(C), then ACD BCD implies AC BC, thereby extending the result of Part (2) of Corollary 5.3.3.
This page intentionally left blank
8 Inverse Matrices
Corresponding to any nonsingular matrix is another nonsingular matrix that is referred to as the inverse of the first matrix. Inverse matrices are introduced and defined in Section 8.1 and are discussed in the subsequent sections of this chapter. Inverse matrices are of interest because there is a close relationship between the solution to a linear system having a nonsingular coefficient matrix and the inverse of the coefficient matrix — this relationship is described in Section 8.2a. Moreover, there are many situations in statistics and in other disciplines that give rise to inverse matrices that are of interest in their own right.
8.1
Some Definitions and Basic Results
A right inverse of an m × n matrix A is an n × m matrix R such that AR Im . Similarly, a left inverse of an m × n matrix A is an n × m matrix L such that LA In or, equivalently, such that A L In . A matrix may or may not have a right or left inverse, as indicated by the following lemma.
80
8. Inverse Matrices
Lemma 8.1.1. An m × n matrix A has a right inverse if and only if rank(A) m (i.e., if and only if A has full row rank) and has a left inverse if and only if rank(A) n (i.e., if and only if A has full column rank). Proof. If rank(A) m, then it follows from Theorem 7.2.2 that there exists a matrix R such that AR Im , that is, that A has a right inverse. Conversely, if there exists a matrix R such that AR Im , then rank(A) ≥ rank(AR) rank(Im ) m implying [since, according to Lemma 4.4.3, rank(A) ≤ m] that rank(A) m. Thus, A has a right inverse if and only if rank(A) m. That A has a left inverse if and only if rank(A) n is evident upon observing that A has a left inverse if and only if A has a right inverse [and that rank(A ) rank(A)]. Q.E.D. As an almost immediate consequence of Lemma 8.1.1, we have the following corollary. Corollary 8.1.2. A matrix A has both a right inverse and a left inverse if and only if A is a (square) nonsingular matrix. If there exists a matrix B that is both a right and left inverse of a matrix A (so that AB I and BA I), then A is said to be invertible and B is referred to as an inverse of A. Only a (square) nonsingular matrix can be invertible, as is evident from Corollary 8.1.2. The following lemma and theorem include some basic results on the existence and uniqueness of inverse matrices. Lemma 8.1.3. If a square matrix A has a right or left inverse B, then A is nonsingular and B is an inverse of A. Proof. Suppose that A has a right inverse R. Then, it follows from Lemma 8.1.1 that A is nonsingular and further that A has a left inverse L. Observing that L LI LAR IR R and hence that RA I, we conclude that R is an inverse of A. A similar argument can be used to show that if A has a left inverse L, then A is nonsingular and L is an inverse of A. Q.E.D. Theorem 8.1.4. A matrix is invertible if and only if it is a (square) nonsingular matrix. Further, any nonsingular matrix has a unique inverse B and has no right or left inverse other than B. Proof. Suppose that A is a nonsingular matrix. Then, it follows from Lemma 8.1.1 that A has a right inverse B and from Lemma 8.1.3 that B is an inverse of A. Thus, A is invertible. Moreover, for any inverse C of A, we find that C CI CAB IB B , implying that A has a unique inverse and further — in light of Lemma 8.1.3 — that A has no right or left inverse other than B. That any invertible matrix is nonsingular is (as noted earlier) evident from Corollary 8.1.2. Q.E.D.
8.2 Properties of Inverse Matrices
81
The symbol A−1 is used to denote the inverse of a nonsingular matrix A. By definition, AA−1 A−1 A I . For an n × n nonsingular diagonal matrix D {di }, D−1 diag(1/d1 , 1/d2 , . . . , 1/dn ) .
(1.1)
(Clearly, the diagonal elements of a nonsingular diagonal matrix are nonzero.) For any 2 × 2 nonsingular matrix a11 a12 A , a21 a22 (1.2) rr a22 −a12 −1 A , (1/k) −a21 a11 where k a11 a22 − a12 a21 , as is easily verified. [Necessarily, k 0. To see this, assume — for purposes of establishing a contradiction — the contrary (i.e., assume that k 0). Then, if a11 0, we find that a12 a21 0, or, equivalently, that a12 0 or a21 0, and hence that A has a null row or column. If a11 0, we find that a22 a12 a21 /a11 and hence that (a21 , a22 ) (a21 /a11 )(a11 , a12 ), so that the second row of A is a scalar multiple of the first. Thus, in either case (a11 0 or a11 0), the assumption that k 0 leads to the conclusion that A is singular, thereby establishing the sought-after contradiction.]
8.2
Properties of Inverse Matrices
a. Relationship of inverse matrices to the solution of linear systems There is an intimate relationship between the inverse A−1 of a nonsingular matrix A and the solution of linear systems whose coefficient matrix is A. This relationship is described in the following theorem. Theorem 8.2.1. Let A represent any n × n nonsingular matrix, G any n × n matrix, and p any positive integer. Then, GB is a solution to a linear system AX B (in X) for every n × p matrix B if and only if G A−1 . Proof. If G A−1 , then, for every n × p matrix B, A(GB) AA−1 B IB B . Conversely, suppose that GB is a solution to AX B (i.e., that AGB B) for every n × p matrix B and, in particular, for every n × p matrix of the form B (0, . . . , 0, b, 0, . . . , 0) . Then, AGb b Ib for every n×1 vector b. We conclude (on the basis of Lemma 2.3.2) that AG I and hence (in light of Lemma 8.1.3) that G A−1 . Q.E.D.
82
8. Inverse Matrices
b. Some elementary properties For any nonsingular matrix A and any nonzero scalar k, kA is nonsingular and (kA)−1 (1/k)A−1 ,
(2.1)
as is easily verified. In the special case k −1, equality (2.1) reduces to (−A)−1 −A−1 .
(2.2)
It is easy to show that, for any nonsingular matrix A, A is nonsingular, and (A )−1 (A−1 ) .
(2.3)
In the special case of a symmetric matrix A, equality (2.3) reduces to A−1 (A−1 ) .
(2.4)
Thus, the inverse of any nonsingular symmetric matrix is symmetric. The inverse A−1 of an n × n nonsingular matrix A is invertible, or, equivalently (in light of Theorem 8.1.4), rank(A−1 ) n ,
(2.5)
(A−1 )−1 A ,
(2.6)
and that is, the inverse of A−1 is A (as is evident from the definition of A−1 ). For any two n × n nonsingular matrices A and B, rank(AB) n ,
(2.7)
(AB)−1 B−1 A−1 .
(2.8)
that is, AB is nonsingular, and
Results (2.7) and (2.8) can be easily verified by observing that ABB−1 A−1 I (so that B−1 A−1 is a right inverse of AB) and applying Lemma 8.1.3. (If either or both of two n × n matrices A and B are singular, then their product AB is singular, as is evident from Corollary 4.4.5.) Repeated application of results (2.7) and (2.8) leads to the conclusion that, for any k n × n nonsingular matrices A1 , A2 , . . . , Ak , rank(A1 A2 · · · Ak ) n
(2.9)
and −1 −1 (A1 A2 · · · Ak )−1 A−1 k · · · A2 A1 .
(2.10)
8.3 Premultiplication or Postmultiplication by a Matrix of Full Column or Row Rank
8.3
83
Premultiplication or Postmultiplication by a Matrix of Full Column or Row Rank
Lemma 8.1.1 is useful in investigating the effects of premultiplication or postmultiplication by a matrix having full column or row rank. In particular, it can be used to establish the following two lemmas. Lemma 8.3.1. Let A and B represent m×n matrices. Then, for any r ×m matrix C of full column rank (i.e., of rank m) and any n × p matrix D of full row rank (i.e., of rank n), (1) CA CB implies A B, (2) AD BD implies A B, and (3) CAD CBD implies A B. Proof. Parts (1) and (2) are special cases of Part (3) (those where D I and C I, respectively). Thus, it suffices to prove Part (3). According to Lemma 8.1.1, C has a left inverse L and D a right inverse R. Consequently, if CAD CBD, then A IAI LCADR LCBDR IBI B . Q.E.D. Lemma 8.3.2. Let A represent an m × n matrix and B an n × p matrix. If A has full column rank, then R(AB) R(B)
and
rank(AB) rank(B) .
Similarly, if B has full row rank, then C(AB) C(A)
and
rank(AB) rank(A) .
Proof. It is clear from Corollary 4.2.3 that R(AB) ⊂ R(B) and C(AB) ⊂ C(A). If A has full column rank, then (according to Lemma 8.1.1) it has a left inverse L, implying that R(B) R(IB) R(LAB) ⊂ R(AB) and hence that R(AB) R(B) [which implies, in turn, that rank(AB) rank(B)]. Similarly, if B has full row rank, then it has a right inverse R, implying that C(A) C(ABR) ⊂ C(AB) and hence that C(AB) C(A) [and rank(AB) rank(A)]. Q.E.D. As an immediate consequence of Lemma 8.3.2, we have the following corollary. Corollary 8.3.3. If A is an n × n nonsingular matrix, then, for any n × p matrix B, R(AB) R(B) and rank(AB) rank(B) . Similarly, if B is an n × n nonsingular matrix, then, for any m × n matrix A, C(AB) C(A)
and
rank(AB) rank(A) .
A further consequence of Lemma 8.3.2 is described in the following additional corollary.
84
8. Inverse Matrices
Corollary 8.3.4. Let A represent an m × n nonnull matrix, and let B represent an m × r matrix of full column rank r and T an r × n matrix of full row rank r such that A BT. Then, r rank(A). Proof (of Corollary 8.3.4). In light of Lemma 8.3.2, we have that rank(A) rank(BT) rank(T) r . Q.E.D.
8.4
Orthogonal Matrices
a. Definition and basic properties and results A (square) matrix A is said to be an orthogonal matrix if A A AA I or, equivalently, if A is nonsingular and A−1 A . To show that a (square) matrix A is orthogonal, it suffices (in light of Lemma 8.1.3) to demonstrate that A A I or, alternatively, that AA I. The 2 × 2 matrix √ 1 1 (1/ 2) −1 1 is an example of an orthogonal matrix. More generally, for any angle θ, the 2 × 2 matrix cos θ sin θ − sin θ cos θ is an orthogonal matrix. Further, the n × n identity matrix In is an orthogonal matrix. Clearly, for an n × n matrix A, A A I if and only if the columns a1 , . . . , an of A are such that ai aj
1, 0,
for for
j i 1, . . . , n, j i 1, . . . , n .
Thus, a square matrix is orthogonal if and only if its columns form an orthonormal (with respect to the usual inner product) set of vectors. Similarly, a square matrix is orthogonal if and only if its rows form an orthonormal set of vectors. Note that if A is an orthogonal matrix, then its transpose A is also orthogonal. If P and Q are both n × n orthogonal matrices, then it follows from results (2.7) and (2.8) that PQ is nonsingular and that (PQ)−1 Q−1 P−1 Q P (PQ) .
(4.1)
Thus, the product of two n×n orthogonal matrices is an (n×n) orthogonal matrix. Repeated application of this result leads to the following extension.
8.4 Orthogonal Matrices
85
Lemma 8.4.1. If each of the matrices Q1 , Q2 , . . . , Qk is an n × n orthogonal matrix, then their product Q1 Q2 · · · Qk is an (n × n) orthogonal matrix. A further result on orthogonal matrices is given by the following lemma. Lemma 8.4.2. Let A represent an m × n matrix. Then, when the norm is taken to be the usual norm, PAQ A (4.2) for any m × m orthogonal matrix P and any n × n orthogonal matrix Q. Proof. Making use of Lemma 5.2.1, we find that PAQ2
tr[(PAQ) PAQ] tr(Q A P PAQ) tr(Q A AQ) tr(A AQQ ) tr(A A) A2 .
Q.E.D. Note that, as special cases of result (4.2) (those obtained by setting Q In or P Im ), we have that (for any m × m orthogonal matrix P) PA A and (for any n × n orthogonal matrix Q) AQ A.
b. Helmert matrix Let a (a1 , a2 , . . . , an ) represent any row vector such that ai 0 (i 1, 2, . . . , n), that is, any row vector whose elements are all nonzero. Suppose that we require an n × n orthogonal matrix, one row of which is proportional to a . In what follows, one such matrix P is derived. Let p1 , . . . , pn represent the rows of P, and take the first row p1 to be the row of P that is proportional to a . Take the second row p2 to be proportional to the n-dimensional row vector (a1 , −a12 /a2 , 0, 0, . . . , 0) , the third row p3 proportional to [a1 , a2 , −(a12 + a22 )/a3 , 0, 0, . . . , 0] , and more generally the second through nth rows p2 , . . . , pn proportional to (a1 , a2 , . . . , ak−1 , −
k−1 i1
ai2 /ak , 0, 0, . . . , 0)
(k 2, . . . , n) ,
(4.3)
respectively. It is easy to confirm that the n − 1 vectors (4.3) are orthogonal to each other and to the vector a . To obtain explicit expressions for p1 , . . . , pn , it remains to normalize a and the vectors (4.3). Observing that the (usual) norm of the kth of the vectors (4.3) is 2 1/2 1/2 k−1 k−1 k−1 k 2 2 2 2 2 ak ak2 ai + ai ai ai , i1
i1
i1
i1
86
8. Inverse Matrices
we find that p1
n i1
−1/2 ai2
(a1 , a2 , . . . , an ) ,
(4.4)
and that, for k 2, . . . , n, pk
ak2
k−1 2 k ( i1 ai )( i1 ai2 )
−1/2
× (a1 , a2 , . . . , ak−1 , −
k−1 i1
ai2 /ak , 0, 0, . . . , 0) . (4.5)
When a (1, 1, . . . , 1), formulas (4.4) and (4.5) simplify to p1 n−1/2 (1, 1, . . . , 1) , pk [k(k − 1)]−1/2 (1, 1, . . . , 1, 1−k, 0, 0, . . . , 0) (k 2, . . . , n), and P reduces to a matrix known as the Helmert matrix (of order n). (In some presentations, it is the transpose of this matrix that is called the Helmert matrix.) For example, the Helmert matrix of order 4 is
1/2 √ 1/ 2 √ 1/ 6 √ 1/ 12
1/2 √ −1/√ 2 1/√ 6 1/ 12
1/2 1/2 0√ 0 . −2/ 6 0 √ √ 1/ 12 −3/ 12
c. Permutation matrices A permutation matrix is a square matrix whose columns can be obtained by permuting (rearranging) the columns of an identity matrix. Thus, letting u1 , u2 , . . . , un represent the first, second, . . ., nth columns, respectively, of In , an n × n permutation matrix is a matrix of the general form (uk1 , uk2 , . . . , ukn ) , where k1 , k2 , . . . , kn represents any permutation of the first n positive integers 1, 2, . . . , n. For example, one permutation matrix of order n 3 is the 3 × 3 matrix 0 1 0 (u3 , u1 , u2 ) 0 0 1 , 1 0 0 whose columns are the third, first, and second columns, respectively, of I3 . It is clear that the columns of any permutation matrix form an orthonormal (with respect to the usual inner product) set and hence that any permutation matrix is an
8.4 Orthogonal Matrices
87
orthogonal matrix. Thus, if P is a permutation matrix, then P is nonsingular and P−1 P . Clearly, the j th element of the kj th row of the n × n permutation matrix (uk1 , uk2 , . . . , ukn ) is 1 and its other n − 1 elements are 0. That is, the j th row uj of In is the kj th row of (uk1 , uk2 , . . . , ukn ) or equivalently the j th column uj of In is the kj th column of (uk1 , uk2 , . . . , ukn ) . Thus, the transpose of any permutation matrix is itself a permutation matrix. Further, the rows of any permutation matrix are a permutation of the rows of an identity matrix, and conversely any matrix whose rows can be obtained by permuting the rows of an identity matrix is a permutation matrix. The effect of postmultiplying an m × n matrix A by an n × n permutation matrix P is to permute the columns of A in the same way that the columns of In were permuted in forming P. Thus, if a1 , a2 , . . . , an are the first, second, . . . , nth columns of A, the first, second, . . . , nth columns of the product A(uk1 , uk2 , . . . , ukn ) of A and the n × n permutation matrix (uk1 , uk2 , . . . , ukn ) are (ak1 , ak2 , . . . , akn ), respectively. When n 3, we have, for example, that 0 1 0 A(u3 , u1 , u2 ) (a1 , a2 , a3 ) 0 0 1 (a3 , a1 , a2 ) . 1 0 0 Further, the first, second . . . , nth columns a1 , a2 , . . . , an of A are the k1 , k2 , . . . , kn th columns, respectively, of the product A(uk1 , uk2 , . . . , ukn ) of A and the permutation matrix (uk1 , uk2 , . . . , ukn ) . When n 3, we have, for example, that 0 0 1 A(u3 , u1 , u2 ) (a1 , a2 , a3 ) 1 0 0 (a2 , a3 , a1 ) . 0 1 0 Similarly, the effect of premultiplying an n × m matrix A by an n × n permutation matrix is to permute the rows of A. If the first, second, . . . , nth rows of A are a1 , a2 , . . . , an , respectively, then the first, second, . . . , nth rows of the product (uk1 , uk2 , . . . , ukn ) A of the permutation matrix (uk1 , uk2 , . . . , ukn ) and A are (ak1 , ak2 , . . . , akn ), respectively; and a1 , a2 , . . . , an are the k1 , k2 , . . . , kn th rows, respectively, of (uk1 , uk2 , . . ., ukn )A. When k 3, we have, for example, that a3 0 0 1 a1 (u3 , u1 , u2 ) A 1 0 0 a2 a1 0 1 0 a3 a2 (u3 , u1 , u2 )A
0 0 1
1 0 0
a2 0 a1 1 a2 a3 . 0 a3 a1
Letting e1 , e2 , . . . , em represent the first, second, . . . , mth columns of Im and letting r1 , r2 , . . . , rm represent any permutation of the first m positive integers
88
8. Inverse Matrices
1, 2, . . . , m, the ij th element of the matrix (er1 , er2 , . . . , erm ) A(uk1 , uk2 , . . . , ukn ) , obtained by premultiplying and postmultiplying an m × n matrix A by the permutation matrices (er1 , er2 , . . . , erm ) and (uk1 , uk2 , . . . , ukn ), respectively, is the ri kj th element of A. And, the ij th element of A is the ri kj th element of the matrix (er1 , er2 , . . . , erm )A(uk1 , uk2 , . . . , ukn ) , obtained by premultiplying and postmultiplying A by the permutation matrices (er1 , er2 , . . . , erm ) and (uk1 , uk2 , . . . , ukn ) , respectively. Note that the product of two or more n×n permutation matrices is another n×n permutation matrix.
8.5
Some Basic Results on the Ranks and Inverses of Partitioned Matrices
a. A lemma The following lemma is useful in deriving results on the ranks of partitioned matrices. Lemma 8.5.1. Let T represent an m × p matrix, U an m × q matrix, V an n × p matrix, and W an n × q matrix. Then, T U U T V W W V rank rank rank rank . (5.1) V W W V T U U T bysuccessively Lemma 4.5.3 to Proof.Lemma 8.5.1is obtained applying U T U T V W [taking A and B ], to [taking A (V, W) W V W V T U W V W V and C = (T, U)], and to [taking A and B or taking U T U T A (W, V) and C (U, T)]. Q.E.D.
b. Block-diagonal matrices Let T represent an m × m matrix and W an n × n matrix. Then, the (m + n) × T 0 (m + n) block-diagonal matrix is nonsingular if and only if both T and 0 W W are nonsingular, as is evident from Lemma 4.5.11. Moreover, if T and W are nonsingular, then −1 −1 T 0 0 T , (5.2) 0 W 0 W−1 as is easily verified.
8.5 Some Basic Results on the Ranks and Inverses of Partitioned Matrices
89
More generally, for any square matrices A1 , A2 , . . . , Ak , the block-diagonal matrix diag(A1 , A2 , . . . , Ak ) is nonsingular if and only if A1 , A2 , . . . , Ak are all nonsingular [as is evident from result (4.5.14)], in which case −1 −1 [diag(A1 , A2 , . . . , Ak )]−1 diag(A−1 1 , A2 , . . . , Ak ).
(5.3)
c. Block-triangular matrices
I V Im 0 or n , where V In 0 Im V is an n × m matrix. Note that for any m × p matrix A and n × p matrix B, Im 0 A A , (5.4a) V In B B + VA In V B B + VA (5.4b) 0 Im A A
Consider now block-triangular matrices of the form
and similarly that, for any p × m matrix A and p × n matrix B, Im 0 (A, B) (A + BV, B), V In In V (B, A) (B, A + BV) . 0 Im
(5.5a) (5.5b)
Further, recalling (from Theorem 8.1.4) that an invertible matrix is nonsingular, and observing that I 0 I 0 I 0 , −V I V I 0 I I −V I V I 0 , 0 I 0 I 0 I we obtain the following result. Lemma For any 8.5.2. n × mmatrix V, the (m + n) × (m + n) partitioned Im 0 I V matrices and n are nonsingular, and V In 0 Im
−1 Im 0 V In −1 In V 0 Im
Im 0 , −V In In −V . 0 Im
(5.6a) (5.6b)
Formula (4.5.11) for the rank of a block-diagonal matrix can be extended to certain block-triangular matrices, as indicated by the following lemma.
90
8. Inverse Matrices
Lemma 8.5.3. Let T represent an m × p matrix, V an n × p matrix, and W an n × q matrix. If T has full column rank or W has full row rank, that is, if rank(T) p or rank(W) n, then T 0 W V rank rank rank(T) + rank(W) . (5.7) V W 0 T Proof. Suppose that rank(T) p. Then, according to Lemma 8.1.1, there exists a matrix L that is a left inverse of T, in which case I −VL W V W 0 . 0 I 0 T 0 T I −VL Since (according to Lemma 8.5.2) is nonsingular, we conclude (on 0 I the basis of Corollary 8.3.3) that W V W 0 rank rank 0 T 0 T and hence (in light of Lemmas 8.5.1 and 4.5.11) that T 0 W V rank rank rank(T) + rank(W) . V W 0 T That result (5.7) holds if rank(W) n can be established via an analogous argument. Q.E.D. The results of Lemma 8.5.2 can be extended to additional block-triangular matrices, as detailed in the following lemma. Lemma 8.5.4. Let T represent an m × m matrix, V an n × m matrix, and W T 0 an n × n matrix. Then, the (m + n) × (m + n) partitioned matrix , or V W W V equivalently , is nonsingular if and only if both T and W are nonsingular, 0 T in which case −1 T 0 0 T−1 , (5.8a) V W −W−1 VT−1 W−1 −1 −1 W V −W−1 VT−1 W . (5.8b) 0 T 0 T−1 T 0 Proof. If is nonsingular, then, making use of Lemmas 4.5.7 and 4.4.3, V W we find that T 0 m + n rank V W ≤ rank(T, 0) + rank(V, W) ≤ ≤
rank(T) + rank(0) + rank(V, W) rank(T) + n ≤ m + n ,
8.5 Some Basic Results on the Ranks and Inverses of Partitioned Matrices
91
implying that m ≤ rank(T) ≤ m and hence that rank(T) m or, equivalently, that T 0 T is nonsingular. It can likewise be shown that if is nonsingular, then V W W is nonsingular. Suppose now that both T and W are nonsingular. Then,
T 0 I m V W 0
0 W
Im W−1 VT−1
0 In
T 0 0 In
,
I 0 I 0 as is easily verified, and (in light of Lemma 8.5.3) , , 0 W W−1 VT−1 I T 0 T 0 and are nonsingular. Thus, it follows from result (2.9) that is 0 I V W nonsingular and from results (2.10), (5.2), and (5.6) that
T 0 V W
−1
−1 −1 −1 I 0 I 0 0 0 W I W−1 VT−1 I −1 I 0 I 0 0 T 0 W−1 0 I −W−1 VT−1 I T−1 0 . −W−1 VT−1 W−1
T 0
The second part of result (5.8) can be derived in similar fashion. The following theorem extends the first part of Lemma 8.5.4. Theorem 8.5.5. Let
A11 0 A . .. 0
A12 A22 0
. . . A1r B11 B21 . . . A2r .. , B .. .. . . . Br1 Arr
0 B22 .. . Br2
Q.E.D.
0 0 .. . . . . Brr
...
represent, respectively, an n×n upper block-triangular matrix whose ij th block Aij is of dimensions ni × nj (j ≥ i 1, 2, . . . , r) and an n × n lower block-triangular matrix whose ij th block Bij is of dimensions ni ×nj (j ≤ i 1, 2, . . . , r). Then, A is nonsingular if and only if its diagonal blocks A11 , A22 , . . . , Arr are all nonsingular. Likewise, B is nonsingular if and only if its diagonal blocks B11 , B22 , . . . , Brr are all nonsingular. Proof. Observe that the transpose A of the upper block-triangular matrix A is lower block-triangular with diagonal blocks A11 , A22 , . . . , Arr , that rank(A ) rank(A) and rank(Aii ) rank(Aii ) (i 1, 2, . . . , r), and that, as a consequence, it suffices to prove the part of the theorem pertaining to the lower block-triangular matrix B. The proof is by mathematical induction. Lemma 8.5.4 implies that the theorem
92
8. Inverse Matrices
is valid for r 2. Suppose then that the theorem is valid for r k − 1. Defining B11 0 ... 0 B21 B22 0 T . , V (Bk1 , Bk2 , . . . , Bk,k−1 ) , . .. .. .. . Bk−1,2 . . . Bk−1,k−1 T 0 we need to show that is nonsingular if and only if the matrices V Bkk B11 , B22 , . . . , Bkk are all nonsingular. T is nonsingular and, If B11 , B22 , . . . , Bkk are nonsingular, then, by supposition, T 0 based on Lemma 8.5.4, we conclude that is nonsingular. V Bkk T 0 Conversely, if is nonsingular, then, according to Lemma 8.5.4, T V Bkk and Bkk are both nonsingular. Moreover, if T is nonsingular, then, by supposition, Q.E.D. B11 , . . . , Bk−1,k−1 are nonsingular. In the special case of a triangular matrix (i.e., the special case where r n), Theorem 8.5.5 can be restated as follows. Corollary 8.5.6. A triangular matrix is nonsingular if and only if its diagonal elements are all nonzero. Certain of the results given in Lemma 8.5.4 on the inverse of a block-triangular matrix with two rows and columns of blocks are extended in the following theorem to a block-triangular matrix with an arbitrary number r of rows and columns of blocks. Theorem 8.5.7. Let A11 A12 . . . A1r A21 A22 . . . A2r A . .. .. .. .. . . . Ar1 Ar2 . . . Arr Bk−1,1
represent a nonsingular partitioned matrix whose ij th block Aij is of dimensions ni × nj (i, j 1, . . . , r). Partition A−1 as F11 F12 . . . F1r F21 F22 . . . F2r F . .. .. , .. .. . . . Fr1
Fr2
...
Frr
where Fij is of the same dimensions as Aij (i, j 1, . . . , r). If A is upper blocktriangular, then A−1 is upper block-triangular; that is, if Aij 0 for j < i 1, . . . , r, then Fij 0 for j < i 1, . . . , r. Similarly, if A is lower blocktriangular, then A−1 is lower block-triangular. Further, if A is (lower or upper) −1 block-triangular, then Fii A−1 equals the ii ; that is, the ith diagonal block of A inverse of the ith diagonal block of A (i 1, . . . , r).
8.5 Some Basic Results on the Ranks and Inverses of Partitioned Matrices
93
Proof. The proof is by mathematical induction. Lemma 8.5.4 implies that the theorem is valid for r 2. Suppose then that the theorem is valid for r k − 1. Define A11 A1k A12 . . . A1,k−1 A21 A2k A22 . . . A2,k−1 T . , U . , . . . .. .. .. .. .. Ak−1,1 Ak−1,2 . . . Ak−1,k−1 Ak−1,k and V (Ak1 , Ak2 , . . . , Ak,k−1 ), so that
T V
T U and partition V Akk
A11 A U 21 . Akk ..
A12 A22 .. .
Ak1
Ak2
−1 as
. . . A1k . . . A2k .. , .. . . . . . Akk
T U V Akk
−1
B11 B21 . ..
B12 B22 .. .
Bk1
Bk2
. . . B1k . . . B2k .. , .. . . . . . Bkk
where Bij is of dimensions ni × nj (i, j 1, . . . , k). It suffices to show that if Aij 0 for j < i 1, . . . , k, then Bij 0 for j < i 1, . . . , k; if Aij 0 for i < j 1, . . . , k, then Bij 0 for i < j 1, . . . , k; and if either Aij 0 for j < i 1, . . . , k or Aij 0 for j > i 1, . . . , k, then Bii A−1 ii (i 1, . . . , k). If Aij 0 for j < i 1, . . . , k, then V 0, so that (according to Lemma 8.5.4) Bkj 0 for j 1, . . . , k − 1, Bkk A−1 kk , and
B11 B21 .. .
Bk−1,1
A11 0 and T . ..
A12 A22
... ... .. .
B12 B22 .. . Bk−1,2
... ... .. .
B1,k−1 B2,k−1 .. .
T−1 ;
. . . Bk−1,k−1
A1,k−1 A2,k−1 .. .
is upper block-triangular, so that (by
0 0 Ak−1,k−1 supposition) Bij 0 for j < i 1, . . . , k − 1 and Bii A−1 ii (i 1, . . . , k − 1). Similarly, if Aij 0 for i < j 1, . . . , k, then U 0, so that (according to
94
8. Inverse Matrices
Lemma 8.5.4) Bik 0 for i 1, . . . , k − 1, Bkk A−1 kk , and B11 B12 . . . B1,k−1 B21 B . . . B2,k−1 22 .. T−1 ; .. .. .. . . . . Bk−1,1 Bk−1,2 . . . Bk−1,k−1 A11 0 ... 0 A21 A22 ... 0 and T . is lower block-triangular, so that . . .. .. .. Ak−1,1 Ak−1,2 . . . Ak−1,k−1 (by supposition) Bij 0 for i > j 1, . . . , k − 1, and Bii A−1 ii (i 1, . . . , k − 1). Q.E.D. In the special case of a triangular matrix (i.e., the special case where r n), Theorem 8.5.7 can be restated as follows. Corollary 8.5.8. Let A {aij } represent an n × n nonsingular matrix. If A is upper triangular, then A−1 is also upper triangular. Similarly, if A is lower triangular, then A−1 is lower triangular. Further, if A is (lower or upper) triangular, then the ith diagonal element of A−1 is the reciprocal 1/aii of the ith diagonal element aii of A (i 1, . . . , n). In the special case of a unit triangular matrix, Corollary 8.5.8 reduces to the following result. Corollary 8.5.9. The inverse of a unit upper triangular matrix is unit upper triangular. Similarly, the inverse of a unit lower triangular matrix is unit lower triangular.
d. A recursive algorithm for finding the inverse of a (nonsingular) triangular or block-triangular matrix A11 0 A . ..
. . . A1r . . . A2r .. .. . . 0 0 Arr represent an n × n upper block-triangular matrix whose ij th block Aij is of dimensions ni × nj (j ≥ i 1, 2, . . . , r). Suppose that the diagonal blocks A11 , A22 , . . . , Arr of A are all nonsingular, or, equivalently, (according to Theorem 8.5.5) that A itself is nonsingular. We now describe a procedure, derived by repeated application of result (5.8), for building up the inverse of A one “row” of blocks at a time, or in the special case of an upper triangular matrix, one row (of elements) at a time. According to result (5.8), the inverse of the submatrix Ar−1,r−1 Ar−1,r 0 Arr
Let
A12 A22
8.5 Some Basic Results on the Ranks and Inverses of Partitioned Matrices
is expressible as
Fr−1,r−1 0
Fr−1,r Frr
95
,
where Frr A−1 rr and Fr−1,r−1 A−1 r−1,r−1 ,
Fr−1,r −A−1 r−1,r−1 Ar−1,r Frr .
By in an obvious way, the inverse of the submatrix using this representation Ar−1,r−1 Ar−1,r can be generated from that of the sub-submatrix Arr . 0 Arr More generally, result (5.8) indicates that the inverse of the submatrix Aii Ai,i+1 ... Air 0 Ai+1,i+1 . . . Ai+1,r .. .. .. . . . 0 0 Arr can be generated by bordering the inverse matrix Fi+1,i+1 Fi+1,i+2 . . . Fi+1,r 0 Fi+2,i+2 . . . Fi+2,r .. .. . . . . . 0 0 Ai+1,i+1 Ai+1,i+2 0 Ai+2,i+2 .. . 0
0
Frr −1 . . . Ai+1,r . . . Ai+2,r .. .. . . Arr
(5.9a)
(5.9b)
with the matrices Fii A−1 ii , to form the matrix
Fij −A−1 ii
Fii 0 .. . 0
j
Aik Fkj
(j i + 1, . . . , r) ,
(5.10)
ki+1
Fi,i+1 Fi+1,i+1 0
... Fir . . . Fi+1,r .. .. . . Frr
(5.11)
(i r − 1, r − 2, . . . , 1). Note that formulas (5.10) are in terms of the entries of the inverse matrix (5.9) and of the submatrices Aii , Ai,i+1 , . . . , Air belonging to the ith “row” of A. Note also that, for i 1, matrix (5.11) equals A−1 . These observations suggest an algorithm for computing A−1 in r steps. The first step is to compute the matrix Frr A−1 rr . The (r − i + 1)th step is to compute
96
8. Inverse Matrices
the matrices Fii , Fi,i+1 , . . . , Fir from formulas (5.10) (i r − 1, r − 2, . . . , 1). Note that if the matrices Fi,i+1 , . . . , Fir are computed in reverse order, that is, in the order Fir , . . . , Fi,i+1 , then, once the matrix Fij (j ≥ i) has been computed, the submatrix Aij is no longer needed (at least not for purposes of computing A−1 ), a feature that allows us to save storage space in implementing the algorithm on a computer. The savings is achieved by storing the elements of Fij in the locations previously occupied by those of Aij . Then, at the completion of the algorithm, the locations that were previously occupied by the elements of A are occupied by the corresponding elements of A−1 . A possible variation on this algorithm is to use formulas (5.10) to build-up A−1 one “column” at a time, rather than one “row” at a time. As a first step, we could compute the diagonal blocks Frr , Fr−1,r−1 , . . . , F11 . As the (r − j + 2)th step, we could compute in succession the submatrices Fj −1,j , Fj −2,j , . . . , F1j (j r, r − 1, . . . , 2). Note that this alternative scheme, like the original, is such that the elements of Fij can share storage locations with those of Aij . For purposes of illustration, we apply the algorithm to the 3 × 3 upper triangular matrix 8 1 6 A 0 5 4 , 0 0 2 which has an inverse of the form
f11 F 0 0
f12 f22 0
f13 f23 . f33
On the first step of the algorithm, we compute f33 1/2 0.5 ; on the second step, f22 1/5 0.2,
f23 −(0.2)(4)(0.5) −0.4 ;
and, on the third (and final) step, f11 1/8 0.125, f13 f12 giving
−(0.125)[(1)(−0.4) + (6)(0.5)] −0.325 ,
−(0.125)(1)(0.2) −0.025 ;
A−1
0.125 F 0 0
−0.025 0.2 0
−0.325 −0.4 . 0.5
Let us now switch our attention from the upper block-triangular matrix A to a
8.5 Some Basic Results on the Ranks and Inverses of Partitioned Matrices
97
lower block-triangular matrix
B11 B21 B . ..
0 B22 .. .
Br1
Br2
0 0 , .. . . . . Brr ...
whose ij th block Bij is of dimensions ni ×nj (j ≤ i 1, . . . , r). Suppose that the diagonal blocks B11 , B22 , . . . , Brr of B are all nonsingular, or, equivalently,that B itself is nonsingular. According to result (5.8), the inverse of the submatrix B11 0 ... 0 B21 B22 0 .. .. .. . . . Bi1
. . . Bii
Bi2
can be generated by bordering the inverse matrix G11 0 ... 0 G21 G22 0 .. .. .. . . . Gi−1,1
Gi−2,2
(5.12a)
. . . Gi−1,i−1
B11 B21 .. .
Bi−1,1
...
0 B22 .. .
0 0
..
Bi−1,2
. . . . Bi−1,i−1
−1
(5.12b)
with the matrices −1 Gii B−1 ii , Gij −Bii
to form the matrix
i−1
Bik Gkj
(j 1, . . . , i − 1) ,
(5.13)
kj
G11 G21 .. .
0 G22 .. .
Gi1
Gi2
0 0 . .. . . . . Gii
...
(5.14)
We see that formulas (5.13) are in terms of the entries of the inverse matrix (5.12) and of the submatrices Bi1 , Bi2 , . . . , Bii , belonging to the ith “row” of B. We see also that, for i r, matrix (5.14) equals B−1 . These results suggest an algorithm for computing B−1 in r steps. The first step is to compute G11 B−1 11 . The ith step is to compute the matrices Gi1 , Gi2 , . . . , Gii
98
8. Inverse Matrices
from formulas (5.13) (i 2, . . . , r). Note that if Gi1 , Gi2 , . . . , Gi,i−1 are computed in the order listed, then, once the matrix Gij (j ≤ i) has been computed, the submatrix Bij is no longer required and hence, in implementing the algorithm on a computer, storage can be saved by “overwriting” the matrix Bij with the matrix Gij .
e. Matrices partitioned into two rows and two columns of submatrices The ranks and inverses of block-diagonal and block-triangular matrices were considered in Subsections a through d. In this subsection, we consider the ranks and inverses of partitioned matrices that are not necessarily block-diagonal or blocktriangular. The following theorem can (when applicable) be used to express the rank of a partitioned matrix in terms of the rank of a matrix of smaller dimensions. Theorem 8.5.10. Let T represent an m × m matrix, U an m × q matrix, V an n × m matrix, and W an n × q matrix. If rank(T) m, that is if T is nonsingular, then T U U T V W rank rank rank V W W V T U W V rank U T
m + rank(W − VT−1 U).
(5.15)
Proof. Suppose that rank(T) m. Then, in light of Lemma 8.5.1, it suffices to show that T U rank m + rank(W − VT−1 U) . V W It is easy to verify that T 0 Im T U V W 0 −VT−1 In
U W − VT−1 U
.
I 0 is nonsingular, it follows −VT−1 I from Corollary 8.3.3 and Lemma 8.5.3 that T U T U rank rank V W 0 W − VT−1 U
Thus, since (according to Lemma 8.5.2)
rank(T) + rank(W − VT−1 U)
m + rank(W − VT−1 U) . Q.E.D.
8.5 Some Basic Results on the Ranks and Inverses of Partitioned Matrices
99
Result (5.8) on the inverse of a block-triangular matrix can be extended to other partitioned matrices, as detailed in the following theorem. Theorem 8.5.11. Let T represent an m×m matrix, U an m×n matrix, V an n×m T U matrix, and W an n × n matrix. Suppose that T is nonsingular. Then, , V W W V or, equivalently, , is nonsingular if and only if the n × n matrix U T Q W − VT−1 U is nonsingular, in which case
T U V W
−1
−1 T + T−1 UQ−1 VT−1 −T−1 UQ−1 −Q−1 VT−1 Q−1 −1 −1 0 −T U T + Q−1 (−VT−1 , In ) , 0 0 In
(5.16a) (5.16b)
−1 V −Q−1 VT−1 Q−1 (5.17a) T −T−1 UQ−1 T−1 + T−1 UQ−1 VT−1 In 0 0 + (5.17b) Q−1 (In , −VT−1 ) . −T−1 U 0 T−1 T U Proof. That is nonsingular if and only if Q is nonsingular is an V W immediate consequence of Theorem 8.5.10. Suppose now that Q is nonsingular, and observe that T 0 T U I −T−1 U . (5.18) V Q V W 0 I T 0 T U Then (in light of Lemma 8.5.4), , as well as , is nonsingular. V Q V W −1 T U Premultiplying both sides of equality (5.18) by and postmultiplying V W −1 T 0 both sides by and making further use of Lemma 8.5.4, we find that V Q W U
−1
T U V W
−1 T 0 I −T−1 U V Q 0 I −1 T−1 0 I −T U 0 I −Q−1 VT−1 Q−1 −1 T + T−1 UQ−1 VT−1 −T−1 UQ−1 , −Q−1 VT−1 Q−1
100
8. Inverse Matrices
which establishes formula (5.16). Formula (5.17) can be derived in an analogous fashion. (As an alternative to deriving these formulas from results on the inverse of a block-triangular matrix, which is the approach taken here, their validity could be established that the product of expression (5.16) or (5.17) simply by verifying T U W V and or , respectively, equals Im+n .) Q.E.D. V W U T When T is nonsingular, the matrix Q W−VT−1 U, which appears in formulas (5.16) and (5.17) for the inverse of a partitioned matrix and also in formula(5.15) for T U the rank of a partitioned matrix, is called the Schur complement of T in V W W V or , respectively. Moreover, when the context is clear, it is sometimes U T referred to simply as the Schur complement of T oreven more simply as the Schur T U W V complement. Note that if or is symmetric (in which case V W U T T T, W W, and V U ), then the Schur complement of T is symmetric. Among other things, the following corollary (of Theorem 8.5.11) expresses the inverse of a diagonal block of a partitioned matrix in terms of the inverse of the partitioned matrix. Corollary 8.5.12. Let T represent an m×m matrix, U an m×n matrix, V an n×m T U matrix, and W an n × n matrix. Suppose that the partitioned matrix is V W −1 T U B11 B12 nonsingular, define B , and partition B as B , where V W B21 B22 the dimensions of B11 , B12 , B21 , and B22 are the same as those of T, U, V, and W, respectively. If T is nonsingular, then B22 is nonsingular, T−1 B11 − B12 B−1 22 B21
(5.19)
(i.e., T−1 equals the Schur complement of B22 ), T−1 U −B12 B−1 22 , and
VT−1 −B−1 22 B21 ,
W − VT−1 U B−1 22
(5.20) (5.21)
(i.e., the Schur complement of T equals B−1 22 ). Similarly, if W is nonsingular, then B11 is nonsingular, (5.22) W−1 B22 − B21 B−1 11 B12 (i.e., W−1 equals the Schur complement of B11 ), W−1 V −B21 B−1 11 , and
UW−1 −B−1 11 B12 ,
T − UW−1 V B−1 11
(i.e., the Schur complement of W equals
B−1 11 .
(5.23) (5.24)
8.5 Some Basic Results on the Ranks and Inverses of Partitioned Matrices
101
Proof. Suppose that T is nonsingular, and let Q W−VT−1 U. Then, it follows from Theorem 8.5.11 that Q is nonsingular, that B22 Q−1 , implying [in light of results (2.5) and (2.6)] that B22 is nonsingular and B−1 22 Q, and that −1 −1 −1 −B12 B−1 22 −(−T UQ )Q T U ,
−B−1 22 B21
−Q(−Q−1 VT−1 ) VT−1 ,
and −1 + T−1 UQ−1 VT−1 + T−1 U(−Q−1 VT−1 ) T−1 . B11 − B12 B−1 22 B21 T
The second part of the corollary can be established via an analogous argument. Q.E.D. Suppose that we wish to find the rank of a matrix A; or if A is nonsingular, that we wish to find A−1 or a submatrix of A−1 , or that we wish to find the inverse of a nonsingular submatrix of A. Then, depending on the nature of A, Theorems 8.5.10 and 8.5.11 and Corollary 8.5.12 can be helpful, as will now be discussed. A11 A12 Let A represent an arbitrary partitioning of A into two rows A21 A22 and columns of submatrices. If A11 or A22 is nonsingular, then, by making use of Theorem 8.5.10, the problem of finding the rank of A can be replaced by that of (1) inverting A11 or A22 , (2) forming the Schur complement A22 − A21 A−1 11 A12 or A11 − A12 A−1 A , and (3) finding the rank of the Schur complement. This can be 22 21 advantageous if the inverse of A11 or A22 is known — as would be the case, for example, if A11 or A22 were a (nonsingular) diagonal matrix — and if A11 or A22 , respectively, is of relatively large order. Thus, whether Theorem 8.5.10 is helpful in finding the rank of A depends on whether the partitioning of A can be carried out in such a way that A11 or A22 is a relatively large order, nonsingular matrix with a known inverse. that A is nonsingular, let B A−1 , and partition B as B Now, suppose B11 B12 , where the dimensions of B11 , B12 , B21 , and B22 are the same as those B21 B22 of A11 , A12 , A21 , and A22 , respectively. If A11 or A22 is nonsingular, then, by making use of Theorem 8.5.11, the problem of constructing A−1 can be reformulated as −1 one of (1) finding A−1 11 or A22 , (2) forming and inverting the Schur complement −1 A22 − A21 A11 A12 or A11 − A12 A−1 22 A21 , and (3) determining, based on formula (8.16) or (8.17), respectively, B11 , B12 , B21 , and B22 . This can be advantageous if A11 or A22 has a known inverse and is of relatively large order and/or if only the lower-right or upper-left part (B22 or B11 ) of A−1 is of interest. Thus, whether Theorem 8.5.11 is helpful in constructing A−1 depends on whether A can be partitioned in such a way that A11 or A22 is a relatively large order matrix with a known inverse and possibly on whether only part of A−1 is of interest. Finally, suppose that the upper-left or lower-right part (A11 or A22 ) of A is −1 nonsingular and that we wish to construct A−1 11 or A22 . If A itself is nonsingular, −1 −1 then, by making use of Corollary 8.5.12, we can compute A−1 11 or A22 from A , −1 which can be advantageous if A is known and if A11 or A22 , respectively, is of relatively large order.
102
8. Inverse Matrices
f. Use of permutation matrices to extend results on partitioned matrices One important use of permutation matrices is to extend results on partitioned matrices. Consider, for example, result (5.16) on the inverse of a partitioned matrix. This result gives the inverse of an (m + n) × (m + n) matrix, say A, in terms of a submatrix T formed from the first m rows and columns of A, a submatrix U formed from the first m rows and last n columns of A, a submatrix V formed from the last n rows and first m columns of A, and a submatrix W formed from the last m rows and columns of A. Taking i1 , i2 , . . . , im+n and j1 , j2 , . . . , jm+n to be any two (not necessarily different) permutations of the first m + n positive integers 1, 2, . . . , m + n, result (5.16) can be extended to the case where the submatrix T is formed from rows i1 , . . . , im , respectively, and columns j1 , . . . , jm , respectively (of A), U is formed from rows i1 , . . . , im , respectively, and columns jm+1 , . . . , jm+n , respectively, V from rows im+1 , . . . , im+n , respectively, and columns j1 , . . . , jm , respectively, and W from rows im+1 , . . . , im+n , respectively, and columns jm+1 , . . . , jm+n , respectively. In fact, result (5.17) can be viewed as one particularly simple extension of this type. To present explicitly a version of result (5.16) that would be applicable to arbitrary permutations i1 , i2 , . . . , im+n and j1 , j2 , . . . , jm+n would require very elaborate and cumbersome notation. However, by explicitly or implicitly making use of appropriately chosen permutation matrices, result (5.16), which is for the special case where both i1 , i2 , . . . , im+n and j1 , j2 , . . . , jm+n are the sequence 1, 2, . . . , m + n, can be applied to any other choice for i1 , i2 , . . . , im+n and j1 , j2 , . . . , jm+n . Letting u1 , u2 , . . . , um+n represent the first, second, . . . , (m + n)th columns of Im+n , define B PAQ , where
P (ui1 , ui2 , . . . , uim+n ) and Q (uj1 , uj2 , . . . , ujm+n ) .
Partition B as B
T U V W
,
where T is m × m, U is m × n, V is n × m, and W is n × n. Note that T is the matrix formed from rows i1 , . . . , im , respectively, and columns j1 , . . . , jm , respectively, of A; the submatrices U, V, and W have analogous interpretations. Suppose that we invert B by, for example, making use of result (8.16) or (8.17) (assuming that A, and hence B, is invertible). Then, to obtain A−1 from B−1 , we observe that A P BQ and, consequently, that −1
A−1 QB−1 P . −1
(5.25) −1
Thus, to form A from B , it suffices to permute the rows of B so that its first row becomes the j1 th row, its second row becomes the j2 th row, and, in general,
Exercises
103
its rth row becomes the jr th row, and to then permute the columns so that the first column becomes the i1 th column, the second column becomes the i2 th column, and, in general, the sth column becomes the is th column. Or, combining the row and column operations, we can form A−1 from B−1 simply by rearranging the elements of B−1 so that the rsth element becomes the jr is th element. Consider, for example, the matrix 0 1 0 1 −6 2 4 8 A 0 5 1 0 . 1 3 0 0 Observe that the 3 × 3 matrix formed from the fourth, third, and first rows, respectively, and the first, third, and fourth columns, respectively, of A is the 3 × 3 identity matrix, whose inverse is known. Suppose then that we take B
(u , u , u , u ) A(u , u , u , u ) 4 3 1 2 1 3 4 2 1 0 0 3 0 1 0 5 0 0 1 1 . −6 4 8 2
Applying result (5.16) with T (2), we find easily that 3.25 3.75 B−1 0.75 −0.75
I3 , U (3, 5, 1), V (−6, 4, 8), and W −1.5 −3 0.375 −1.5 −5 0.625 . −0.5 0 0.125 0.5 1 −0.125
Rearranging the elements of B−1 in accordance with formula (5.25), we obtain −3 0.375 −1.5 3.25 1 −0.125 0.5 −0.75 . A−1 −5 0.625 −1.5 3.75 0 0.125 −0.5 0.75
Exercises Section 8.1 1. Let A represent an m × n matrix. Show that (a) if A has a right inverse, then n ≥ m and (b) if A has a left inverse, then m ≥ n. 2. An n × n matrix A is said to be involutory if A2 I, that is, if A is invertible and is its own inverse.
104
8. Inverse Matrices
(a) Show that an n × n matrix A is involutory if and only if (I − A)(I + A) 0. a b (b) Show that a 2 × 2 matrix A is involutory if and only if (1) c d a 2 + bc 1 and d −a or (2) b c 0 and d a ±1. Section 8.3 3. Let A represent an n × n nonnull symmetric matrix, and let B represent an n × r matrix of full column rank r and T an r × n matrix of full row rank r such that A BT. Show that the r × r matrix TB is nonsingular. (Hint. Observe that A A A2 BTBT.) Section 8.4 4. Let A represent an n × n matrix, and partition A as A (A1 , A2 ). B1 (where (a) Show that if A is invertible and A−1 is partitioned as A−1 B2 B1 has the same number of rows as A1 has columns), then B1 A1 I, B1 A2 0, B2 A1 0, B2 A2 I ,
(E.1)
A1 B1 I − A2 B2 , A2 B2 I − A1 B1 .
(E.2)
(b) Show that if A is orthogonal, then A1 A1 I, A1 A2 0, A2 A1 0 A2 A2 I , A1 A1 I − A2 A2 ,
(E.3)
A2 A2 I − A1 A1
(E.4)
5. Let A represent an m × n nonnull matrix of rank r. Show that there exists an m × m orthogonal matrix whose first r columns span C(A). Section 8.5 6. Let T represent an n × n triangular matrix. Show that rank(T) is greater than or equal to the number of nonzero diagonal elements in T. 7. Let
A11 0 A . .. 0
A12 A22 0
. . . A1r B11 B21 . . . A2r .. , B .. .. . . . Arr Br1
0 B22 .. .
... 0 0 .. .
Br2
. . . Brr
represent, respectively, an n×n upper block-triangular matrix whose ij th block Aij is of dimensions ni × nj (j ≥ i 1, . . . , r) and an n × n lower blocktriangular matrix whose ij th block Bij is of dimensions ni × nj (j ≤ i 1, . . . , r).
Exercises
(a) Assuming that A and B are invertible, show that F11 F12 . . . F1r G11 0 F22 . . . F2r G21 −1 A−1 . .. , B .. .. .. . . .
0 G22 .. .
Gr1
Gr2
0
0
Frr
105
0 0 , .. . . . . Grr ...
where Fjj
A−1 jj ,
Fij −
j −1 ki
Gjj
B−1 jj ,
Gij −
Fik Akj A−1 (i < j 1, . . . r) , jj
i
kj +1
(E.5)
Gik Bkj B−1 (i > j 1, . . . r) . (E.6) jj
Do so by applying the results of Section 8.5d to A and B [as opposed to mimicking the derivations of formulas (5.10) and (5.13)]. (b) Describe how the formulas in Part (a) can be used to devise r-step algorithms for computing A−1 and B−1 , and indicate how these algorithms differ from those described in Section 8.5d.
This page intentionally left blank
9 Generalized Inverses
In statistics (and in many other disciplines), it is common to encounter linear systems whose coefficient matrices are square but not nonsingular (i.e., they are singular) and hence are not invertible (i.e., they lack inverses). For a linear system that has a nonsingular coefficient matrix, there is an intimate relationship — refer to Section 8.2a — between the solution of a linear system and the inverse of the coefficient matrix. What about a linear system whose coefficient matrix is not nonsingular? Is there a matrix comparable to the inverse (i.e., that relates to the solution of the linear system in a similar way)? The answer is yes! In fact, there are an infinite number of such matrices. These matrices, which are called generalized inverses, are the subject of this chapter. Over time, the use of generalized inverses in statistical discourse (especially that related to linear statistical models and multivariate analysis) has become increasingly routine. There is a particular generalized inverse, known as the Moore-Penrose inverse, that is sometimes singled out for special attention. Discussion of the MoorePenrose inverse is deferred to Chapter 20. For many purposes, one generalized inverse is as good as another.
9.1
Definition, Existence, and a Connection to the Solution of Linear Systems
A generalized inverse of an m × n matrix A is any n × m matrix G such that AGA A .
108
9. Generalized Inverses
(The use of the term generalized inverse to refer to any such matrix is widespread, but not universal — among the alternative names found in the literature are pseudoinverse and conditional inverse.) For example, each of the two 3 × 2 matrices 1 0 −42 −1 0 0 and 5 3 0 0 2 2 is a generalized inverse of the 2 × 3 matrix 1 3 2 . 2 6 4 For a nonsingular matrix A, it is clear that AA−1 A A and that if G is a generalized inverse of A, then G A−1 AGAA−1 A−1 AA−1 A−1 . Thus, we have the following lemma. Lemma 9.1.1. The inverse A−1 of a nonsingular matrix A is a generalized inverse of A, and a nonsingular matrix has no generalized inverse other than its inverse. There is an intimate relationship between any generalized inverse of an m × n matrix A and the solution of linear systems whose coefficient matrix is A. This relationship is described in the following theorem, which generalizes Theorem 8.2.1. Theorem 9.1.2. Let A represent any m × n matrix, G any n × m matrix, and p any positive integer. Then, GB is a solution to a linear system AX B (in X) for every m × p matrix B for which the linear system is consistent if and only if G is a generalized inverse of A. Proof. Suppose that G is a generalized inverse of A. Let B represent any m × p matrix for which AX B is consistent, and take X∗ to be any solution to AX B. Then, A(GB) (AG)B AGAX∗ AX∗ B . Conversely, suppose that GB is a solution to AX B (i.e., that AGB B) for every m × p matrix B for which AX B is consistent. Letting ai represent the ith column of A, observe that AX B is consistent in particular for B (ai , 0, . . . , 0) — for this B, one solution to AX B is the matrix (ui , 0, . . . , 0), where ui is the ith column of In (i 1, . . . , n). It follows that AG(ai , 0, . . . , 0) (ai , 0, . . . , 0) Q.E.D. and hence that AGai ai (i 1, . . . , n), implying that AGA A. Let us now consider the existence of generalized inverses. Does every matrix have at least one generalized inverse? The answer to this question is yes, as can be shown by making use of the following theorem, which is of interest in its own right.
9.2 Some Alternative Characterizations
109
Theorem 9.1.3. Let B represent an m × r matrix of full column rank and T an r × n matrix of full row rank. Then, B has a left inverse, say L, and T has a right inverse, say R; and RL is a generalized inverse of BT. Proof. That B has a left inverse L and T a right inverse R is an immediate consequence of Lemma 8.1.1. Moreover, BT(RL)BT B(TR)(LB)T BIIT BT , that is, RL is a generalized inverse of BT. Q.E.D. Now, consider an arbitrary m × n matrix A. If A 0, then clearly any n × m matrix is a generalized inverse of A. If A 0, then (according to Theorem 4.4.8) there exist a matrix B of full column rank and a matrix T of full row rank such that A BT, and hence, according to Theorem 9.1.3, A has a generalized inverse. Thus, we arrive at the following conclusion. Corollary 9.1.4. Every matrix has at least one generalized inverse. The symbol A− is used to denote an arbitrary generalized inverse of an m × n matrix A. By definition, AA− A A .
9.2
Some Alternative Characterizations
a. A generalized inverse in terms of the inverse of a nonsingular submatrix For an m × n matrix A of the general form A11 0 A , 0 0 where A11 is an r × r nonsingular matrix, and an n × m matrix G11 G12 G G21 G22 (where G11 is of dimensions r × r), we find that A11 G11 A11 0 AGA , 0 0 implying that G is a generalized inverse of A if and only if A11 G11 A11 A11 , or equivalently (in light of Lemma 9.1.1) if and only if G11 A−1 11 , and hence that G is a generalized inverse of A if and only if −1 A11 X G Y Z
110
9. Generalized Inverses
for some matrices X, Y, and Z (of appropriate dimensions). This result can be generalized as follows: Theorem 9.2.1. Let A represent an m × n matrix of rank r, and partition A as A11 A12 A , A21 A22 where A11 is of dimensions r × r. Suppose that A11 is nonsingular. Then, an n × m matrix G is a generalized inverse of A if and only if −1 −1 −1 −1 X A11 − XA21 A−1 11 − A11 A12 Y − A11 A12 ZA21 A11 G (2.1) Y Z for some matrices X, Y, and Z (of appropriate dimensions). To prove Theorem 9.2.1, we require the following lemma, which is of interest in its own right. Lemma 9.2.2. Let A11 A12 A A21 A22 represent an m × n partitioned matrix of rank r, where A11 is of dimensions r × r. If rank(A11 ) r, then A22 A21 A−1 11 A12 . Proof (of Lemma 9.2.2). Suppose that rank(A11 ) r. Then, applying Theorem 8.5.10 (with T A11 , U A12 , V A21 , and W A22 ), we find that r rank(A) r + rank(A22 − A21 A−1 11 A12 ) , implying that and hence that or equivalently that
rank(A22 − A21 A−1 11 A12 ) 0 A22 − A21 A−1 11 A12 0 A22 A21 A−1 11 A12 . Q.E.D.
Proof (of Theorem 9.2.1). It follows from Lemma 9.2.2 that A11 A A−1 11 (A11 , A12 ) . A21 By definition, G is a generalized inverse of A if and only if AGA A, or, equivalently, if and only if A11 A11 −1 A11 (A11 , A12 )G A−1 11 (A11 , A12 ) A21 A21 A11 A−1 (2.2) 11 (A11 , A12 ) . A21
9.2 Some Alternative Characterizations
Partition G as
G11 G G21
G12 G22
111
(where G11 is of dimensions r × r). It is clear that A11 rank r and rank(A11 , A12 ) r A21 and hence (in light of Lemma 8.3.1) that G satisfies condition (2.2) if and only if A11 −1 −1 A11 (A11 , A12 )G A−1 11 A11 , A21 or, equivalently, [since A11 A−1 A−1 (A , A )G 11 12 11 11 A21 −1 −1 −1 G11 + A−1 11 A12 G21 + G12 A21 A11 + A11 A12 G22 A21 A11 ]
if and only if −1 −1 −1 −1 G11 A−1 11 − A11 A12 G21 − G12 A21 A11 − A11 A12 G22 A21 A11 .
Q.E.D. Any m × n matrix A of rank r can be partitioned as A11 A12 A , A21 A22 where A11 is of dimensions r × r. [If m r or n r, then A22 and A21 or A12 , respectively, are regarded as degenerate, that is A11 A (A11 , A12 ) or A , A21 respectively.] Theorem 9.2.1 describes (for the special case where A11 is nonsingular) the general form of a generalized inverse of A (in terms of the submatrices A11 , A12 , and A21 ). [If m r or n r, then, in Theorem 9.2.1, Z and X or Y, respectively, are regarded as degenerate, and — assuming rank(A11 ) r — we have respectively that G is a generalized inverse of A (A11 , A12 ) if and only if −1 A11 − A−1 11 A12 Y G Y for some Y, or that G is a generalized inverse of A11 A A21
112
9. Generalized Inverses
if and only if
−1 G (A−1 11 − XA21 A11 , X)
for some X.] Note that Theorem 9.2.1 implies, in particular, that, if A11 is nonsingular, then one generalized inverse of A is the n × m matrix −1 A11 0 G . 0 0 The r × r submatrix A11 may be singular. For example, if 1 0 5 A 0 0 0 , 5 0 2 then r 2 and
A11
1 0
0 0
.
If A11 is singular or equivalently (in light of Theorem 4.4.10) if the first r rows or first r columns of A are linearly dependent, then the expression given by Theorem 9.2.1 for the general form of a generalized inverse is not applicable to A. The following theorem, which generalizes Theorem 9.2.1, gives an expression for the general form of a generalized inverse of an m × n matrix A that is applicable even if the first r rows or columns of A are linearly dependent. Theorem 9.2.3. Let A represent an m × n matrix of rank r. Let i1 , . . . , ir represent integers, chosen from the first m positive integers 1, . . . , m in such a way that the i1 , . . . , ir th rows of A are linearly independent, and let j1 , . . . , jr represent integers, chosen from the first n positive integers 1, . . . , n in such a way that the j1 , . . . , jr th columns of A are linearly independent. Take P to be any m×m permutation matrix that has as its first r rows the i1 , . . . , ir th rows of the m × m identity matrix, and Q to be any n × n permutation matrix that has as its first r columns the j1 , . . . , jr th columns of the n × n identity matrix. Let B PAQ, and partition B as B11 B12 , B B21 B22 where B11 is of dimensions r × r. Then, an n × m matrix G is a generalized inverse of A if and only if −1 −1 −1 −1 B11 − XB21 B−1 X 11 − B11 B12 Y − B11 B12 ZB21 B11 GQ P (2.3) Y Z for some matrices X, Y, and Z (of appropriate dimensions). With regard to Theorem 9.2.3, it follows from Theorem 4.4.10 that A contains r linearly independent rows and r linearly independent columns. Furthermore, if i1 < · · · < ir and j1 < · · · < jr , then B11 is a submatrix of A, namely, the r × r submatrix obtained by striking out all of the rows and columns of A except
9.2 Some Alternative Characterizations
113
the i1 , . . . , ir th rows and j1 , . . . , jr th columns — more generally, B11 is an r × r matrix obtained from that submatrix by permuting its rows and columns. That B11 is invertible is a consequence of Theorem 4.4.10. If the first r rows and first r columns of A are linearly independent, then i1 , . . . , ir and j1 , . . . , jr can be chosen to be the first r positive integers 1, . . . , r, and P and Q to be identity matrices, in which case Theorem 9.2.3 reduces to Theorem 9.2.1. It is convenient, in proving Theorem 9.2.3, to make use of the following lemma, which generalizes result (8.2.8) and is of interest in its own right. Lemma 9.2.4. Let B represent an m × n matrix and G an n × m matrix. Then, for any m × m nonsingular matrix A and n × n nonsingular matrix C, (1) G is a generalized inverse of AB if and only if G HA−1 for some generalized inverse H of B, (2) G is a generalized inverse of BC if and only if G C−1 H for some generalized inverse H of B, and (3) G is a generalized inverse of ABC if and only if G C−1 HA−1 for some generalized inverse H of B. Proof (of Lemma 9.2.4). Parts (1) and (2) are special cases of Part (3) (those where C I and A I, respectively). Thus, it suffices to prove Part (3). By definition, G is a generalized inverse of ABC if and only if ABCGABC ABC or, equivalently (in light of Lemma 8.3.1), if and only if BCGAB B . Thus, G is a generalized inverse of ABC if and only if CGA H for some generalized inverse H of B or, equivalently, if and only if G C−1 HA−1 for some generalized inverse H of B. Q.E.D. Proof (of Theorem 9.2.3). Since P and Q are permutation matrices, they are orthogonal. Thus, A P PAQQ P BQ , and it follows from Lemma 9.2.4 that G is a generalized inverse of A if and only if G QHP for some generalized inverse H of B. Moreover, it follows from Theorem 9.2.1 that an n × m matrix H is a generalized inverse of B if and only if −1 −1 −1 −1 B11 − XB21 B−1 X 11 − B11 B12 Y − B11 B12 ZB21 B11 H Y Z for some matrices X, Y, and Z. Q.E.D. By setting the matrices X, Y, and Z in expression (2.3) equal to null matrices, we find that one generalized inverse of an m × n matrix A of rank r is −1 B11 0 P (2.4) GQ 0 0 (where B11 , P, and Q — and i1 , . . . , ir and j1 , . . . , jr — are as defined in Theorem 9.2.3). Note that this generalized inverse can be formed by carrying out the following 5-step procedure:
114
9. Generalized Inverses
(1) Find the rank r of A (by, e.g., determining the size of the largest linearly independent set that can be formed from the rows or columns of A). (2) Determine values for i1 , . . . , ir and j1 , . . . , jr ; that is, locate r linearly independent rows of A and r linearly independent columns. (3) Form a submatrix of A by striking out all of the rows and columns of A except the i1 , . . . , ir th rows and the j1 , . . . , jr th columns — this matrix is the matrix B11 . (4) Form the inverse B−1 11 of B11 . (5) Write out the generalized inverse G of A, taking the js it th element of G to be the stth element of B−1 11 (for s 1, . . . , r and t 1, . . . , r) and taking the other elements of G to be zero. Suppose, for example, that
−6 2 −2 −3 5 2 . A 3 −1 −3 1 3 −1
The first and second rows of A are linearly independent (as is easily verified), and the third row is the sum of the first two, so that r 2. Let us choose i1 1, i2 3, j1 2, and j2 4 — clearly, the first and third rows and the second and fourth columns of A are linearly independent. Then, 2 −3 . B11 1 −1 Applying formula (1.2) for the inverse of a 2 × 2 nonsingular matrix, we find that −1 −3 . B−1 11 −1 2 Thus, one generalized inverse of A is
0 −1 G 0 −1
0 0 0 0
0 3 . 0 2
How many generalized inverses does an m × n matrix A of rank r possess? If A is nonsingular, then (according to Theorem 8.1.4) it has a unique generalized inverse, namely A−1 . Suppose that A is not nonsingular (i.e., that A is either not square or is square but singular). Then, in expression (2.3) for the general form of a generalized inverse, at least one of the three matrices X, Y, and Z is nondegenerate, and it follows from Lemma 8.3.1 that distinct choices for X, Y, and Z produce distinct values of G, that is, distinct generalized inverses. Since there are an infinite number of choices for these matrices, we conclude that A has an infinite number of generalized inverses.
9.2 Some Alternative Characterizations
115
b. Generalized inverses of symmetric matrices The expression given by Theorem 9.2.3 for the general form of a generalized inverse of an m × n matrix A of rank r is, of course, applicable to a symmetric matrix. If the i1 , . . . , ir th rows of a symmetric matrix A are linearly independent, then clearly the corresponding (i1 , . . . , ir th) columns of A are likewise linearly independent. Thus, for symmetric matrices, we have the following special case of Theorem 9.2.3. Theorem 9.2.5. Let A represent an n × n symmetric matrix of rank r. Let i1 , . . . , ir represent integers chosen from the first n positive integers 1, . . . , n in such a way that the i1 , . . . , ir th rows of A are linearly independent, and take P to be any n × n permutation matrix that has as its first r rows the i1 , . . . , ir th rows of the n × n identity matrix. Let B PAP , and partition B as B11 B21 B , B21 B22 where B11 is of dimensions r × r. Then, an n × n matrix G is a generalized inverse of A if and only if −1 −1 −1 −1 B11 − XB21 B−1 X 11 − B11 B12 Y − B11 B12 ZB21 B11 G P P (2.5) Y Z for some matrices X, Y, and Z (of appropriate dimensions). As indicated in Section 8.1b, the inverse of any nonsingular symmetric matrix is symmetric. Is a generalized inverse of a singular symmetric matrix necessarily symmetric? To answer this question, observe that the generalized inverses of an n × n symmetric matrix A of rank r consist of all matrices of the form G P CP, where −1 B11 − XB21 B−1 − B−1 B12 Y − B−1 B12 ZB21 B−1 X 11 11 11 11 C Y Z and the matrices X, Y, and Z are arbitrary. (Here, P and B — and the submatrices B11 , B12 , B21 , and B22 of B — are as defined in Theorem 9.2.5.) Since G P C P, it is clear from Lemma 8.3.1 that G G (i.e., that G is symmetric) if and only if C C. Observing that B PA P PAP B, that is, B is symmetric (so that B11 is symmetric — and consequently B−1 11 is symmetric — and B21 B12 ), we find that −1 B11 − B−1 Y B12 X − Y B21 B−1 − B−1 B12 Z B21 B−1 11 11 11 11 C . X Z It follows that C C if and only if Y X and Z Z. We conclude that, if n > r > 0 (in which case A is singular and the matrices X, Y, and Z are nondegenerate), then A has both symmetric and nonsymmetric generalized inverses. For example, if we take X, Y, and Z all to be null, then G is symmetric; however if we take X to
116
9. Generalized Inverses
be null but Y to be nonnull, then G is nonsymmetric. In conclusion, we have the following lemma. Lemma 9.2.6. Every singular symmetric matrix (of order two or more) has both symmetric and nonsymmetric generalized inverses.
c. Every generalized inverse in terms of any particular generalized inverse The general form of a generalized inverse of an m × n matrix A can be expressed in terms of any particular generalized inverse of A, as described in the following theorem. Theorem 9.2.7. Let A represent an m × n matrix, and G any particular generalized inverse of A. Then, an n × m matrix G∗ is a generalized inverse of A if and only if G∗ G + Z − GAZAG (2.6) for some n × m matrix Z. Also, G∗ is a generalized inverse of A if and only if G∗ G + (I − GA)T + S(I − AG)
(2.7)
for some n × m matrices T and S. Proof. It is a simple exercise to verify that any matrix G∗ that is expressible in the form (2.6) or the form (2.7) is a generalized inverse of A. Conversely, if G∗ is any generalized inverse of A, then G∗
G + (G∗ − G) − GA(G∗ − G)AG G + Z − GAZAG ,
where Z G∗ − G, and G∗
G + (I − GA)G∗ AG + (G∗ − G)(I − AG) G + (I − GA)T + S(I − AG) ,
where T G∗ AG and S G∗ − G. Q.E.D. All generalized inverses of the m×n matrix A can be generated from expression (2.6) by letting Z range over all n × m matrices. Alternatively, all generalized inverses of A can be generated from expression (2.7) by letting both T and S range over all n × m matrices. Note that distinct choices for Z or for T or S may not result in distinct generalized inverses.
d. Generalized inverses of matrices having full column or row rank The following lemma extends the results of Lemma 8.1.3. Lemma 9.2.8. Let A represent a matrix of full column rank and B a matrix of full row rank. Then, (1) a matrix G is a generalized inverse of A if and only if G is a left inverse of A. And, (2) a matrix G is a generalized inverse of B if and only if G is a right inverse of B.
9.3 Some Elementary Properties
117
Proof. Let L represent any left inverse of A — that A has a left inverse is guaranteed by Lemma 8.1.1. Then, ALA AI A, so that L is a generalized inverse of A. And, the proof of Part (1) of Lemma 9.2.8 is complete upon observing that A− A IA− A LAA− A LA I and hence that A− is a left inverse of A. The validity of Part (2) can be established via an analogous argument. Q.E.D. If a matrix A has full column rank, then (according to Corollary 7.4.6) A A is nonsingular, and similarly if A has full row rank, then AA is nonsingular. Further, if A has full column or row rank, then, by making use of the following (easily verifiable) lemma, a generalized inverse of A can (in light of Lemma 9.2.8) be obtained from the ordinary inverse of A A or AA . Lemma 9.2.9. If a matrix A has full column rank, then the matrix (A A)−1 A is a left inverse of A. Similarly, if A has full row rank, then A (AA )−1 is a right inverse of A.
9.3
Some Elementary Properties
Let us begin by considering the extension (to generalized inverses) of various elementary properties of inverse matrices. It is easy to verify the following lemma, which is a generalization of result (8.2.1). Lemma 9.3.1. For any matrix A and any nonzero scalar k, (1/k)A− is a generalized inverse of kA. Setting k −1 in Lemma 9.3.1, we obtain the following corollary, which generalizes result (8.2.2). Corollary 9.3.2. For any matrix A, −A− is a generalized inverse of −A. For any matrix A, we find that A (A− ) A (AA− A) A . Thus, we have the following lemma, which generalizes result (8.2.3). Lemma 9.3.3. For any matrix A, (A− ) is a generalized inverse of A . While (as discussed in Section 9.2b) the transpose (A− ) of a generalized inverse − A of a singular symmetric matrix A is not necessarily the same as A− , Lemma 9.3.3 implies that (A− ) has the following weaker property. Corollary 9.3.4. For any symmetric matrix A, (A− ) is a generalized inverse of A. For a nonsingular matrix A, we have (by definition) that AA−1 A−1 A I. The following two lemmas describe, for an arbitrary matrix A, some properties of AA− and A− A. Lemma 9.3.5. Let A represent an m × n matrix. Then, for any m × p matrix B, C(B) ⊂ C(A) if and only if B AA− B, or, equivalently, if and only if (I−AA− )B 0. And, for any q × n matrix C, R(C) ⊂ R(A) if and only if C CA− A, or, equivalently, if and only if C(I − A− A) 0.
118
9. Generalized Inverses
Proof. If B AA− B, then it follows immediately from Lemma 4.2.2 that C(B) ⊂ C(A). Conversely, if C(B) ⊂ C(A), then, according to the same lemma, there exists a matrix F such that B AF, implying that B AA− AF AA− B . Thus, C(B) ⊂ C(A) if and only if B AA− B. That R(C) ⊂ R(A) if and only if C CA− A follows from an analogous argument. Q.E.D. In the special case where p 1 and q 1, Lemma 9.3.5 reduces to the following corollary. Corollary 9.3.6. Let A represent an m × n matrix. Then, for any m-dimensional column vector x, x ∈ C(A) if and only if x AA− x, and, for any n-dimensional row vector y , y ∈ R(A) if and only if y y A− A. Lemma 9.3.7. For any matrix A, R(A− A) R(A) and C(AA− ) C(A) . Proof. It follows from Corollary 4.2.3 that R(A− A) ⊂ R(A) and also, since A A(A− A), that R(A) ⊂ R(A− A). Thus, R(A− A) R(A). That C(AA− ) C(A) follows from an analogous argument. Q.E.D. As an immediate consequence of Lemma 9.3.7, we have the following corollary. Corollary 9.3.8. For any matrix A, rank(A− A) rank(AA− ) rank(A) . It follows from this corollary, together with Corollary 4.4.5, that, for any matrix A,
rank(A− ) ≥ rank(A− A) rank(A) .
Thus, we have the following lemma, which extends result (8.2.5). Lemma 9.3.9. For any matrix A, rank(A− ) ≥ rank(A) . The following two lemmas give some elementary results on generalized inverses of partitioned matrices. Lemma 9.3.10. Let A and B represent m × n partitioned matrices of the form W G1 (where A (T, 0) and B . Then, an n × m partitioned matrix G G2 0 the number of rows in G1 equals the number of columns in T) is a generalized inverse of A if and only if G1 is a generalized inverse of T. Similarly, an n × m partitioned matrix H (H1 , H2 ) (where the number of columns in H1 equals the number of rows in W) is a generalized inverse of B if and only if H1 is a generalized inverse of W. Proof. Thelemma becomes obvious upon observing that AGA (TG1 T, 0) WH1 W . Q.E.D. and BHB 0
9.4 Invariance to the Choice of a Generalized Inverse
119
Lemma 9.3.11. Let A represent an m × n matrix, − B an m × p matrix, and C A a q × n matrix. Then the (n + p) × m matrix is a generalized inverse of B− the partitioned matrix (A, B) if and only if AA− B 0 and BB− A 0. Similarly, the n × (m + q) matrix (A− , C− ) is a generalized inverse of the partitioned matrix A if and only if CA− A 0 and AC− C 0. C Proof. The proof becomes obvious upon observing that − A (A, B) (A, B) (AA− A + BB− A, AA− B + BB− B) B−
(A + BB− A, AA− B + B)
and that − A A AA A + AC− C A + AC− C − − (A , C ) . C CA− A + CC− C CA− A + C C Q.E.D.
9.4
Invariance to the Choice of a Generalized Inverse
Suppose that a generalized inverse A− of a matrix A is premultiplied by a matrix B and postmultiplied by a matrix C. Under certain conditions, the product BA− C is invariant to the choice of A− . These conditions are given by the following theorem. Theorem 9.4.1. Let A represent an m × n matrix, B a p × n matrix, and C an m × q matrix. If R(B) ⊂ R(A) and C(C) ⊂ C(A), then BA− C is invariant to the choice of the generalized inverse A− . Conversely, if BA− C is invariant to the choice of A− and if in addition C is nonnull, then R(B) ⊂ R(A); and, if BA− C is invariant to the choice of A− and if in addition B is nonnull, then C(C) ⊂ C(A). Proof. Suppose that R(B) ⊂ R(A) and C(C) ⊂ C(A). Then, there exist matrices L and R such that B LA and C AR, in which case BA− C LAA− AR LAR . Thus, BA− C is invariant to the choice of A− . Conversely, suppose that BA− C is invariant to the choice of A− . Then, letting G represent any particular choice for A− , it follows from Theorem 9.2.7 that BGC B[G + (I − GA)T + S(I − AG)]C for all n × m matrices T and S, or equivalently that B(I − GA)TC + BS(I − AG)C 0 for all T and S, and hence that B(I − GA)TC 0
120
9. Generalized Inverses
for all T and BS(I − AG)C 0 for all S. Suppose further that C is nonnull. Then, some column, say the kth column ck , of C is nonnull. And, letting ui represent the ith column of In , there exists an n × m matrix Ti such that Ti ck ui (i 1, . . . , n). We have (for i 1, . . . , n) that B(I − GA)Ti C 0. Moreover, the kth column of B(I − GA)Ti C is B(I − GA)Ti ck B(I − GA)ui , which is the ith column of B(I − GA). Thus, the ith column of B(I − GA) is null (i 1, . . . , n). We conclude that B(I − GA) 0 and (in light of Lemma 9.3.5) that R(B) ⊂ R(A). That C(C) ⊂ C(A) if B is nonnull (and BA− C is invariant to the choice of A− ) can be established in similar fashion. Q.E.D. Theorem 9.4.1 has the following implication. Corollary 9.4.2. Let A represent a q × p matrix, B a p × n matrix, and C an m × q matrix. If rank(CAB) rank(C) rank(B), then B(CAB)− C is invariant to the choice of the generalized inverse (CAB)− . Proof. Suppose that rank(CAB) rank(C) rank(B). Then, it follows from Corollary 4.4.7 that R(B) R(CAB) and C(C) C(CAB). Based on Theorem 9.4.1, we conclude that B(CAB)− C is invariant to the choice of (CAB)− . Q.E.D.
9.5
A Necessary and Sufficient Condition for the Consistency of a Linear System
According to Theorem 7.2.1, a linear system AX B (in X) is consistent if and only if C(B) ⊂ C(A). In light of Lemma 9.3.5, this result can be restated as follows: Lemma 9.5.1. A linear system AX B (in X) is consistent if and only if AA− B B or, equivalently, if and only if (I − AA− )B 0 . According to Lemma 9.5.1, either of the two matrices AA− or I − AA− can be used to determine whether any linear system having A as a coefficient matrix is consistent or inconsistent. If the right side of the linear system is unaffected by premultiplication by AA− , then the linear system is consistent; otherwise, it is inconsistent. Similarly, if the premultiplication of the right side by I−AA− produces a null matrix, then the linear system is consistent; otherwise, it is inconsistent. Consider, for example, the linear system Ax b (in x), where −6 2 −2 −3 5 2 . A 3 −1 −3 1 3 −1
9.6 Some Results on the Ranks and Generalized Inverses of Partitioned Matrices
121
As determined in Section 9.2a, one generalized inverse of A is 0 0 0 −1 0 3 G 0 0 0 . −1 0 2 Clearly,
1 0 AG −1 0 0 0 If b (3, 2, 5) , then
0 1 . 1
AGb (3, 2, 5) b ,
in which case the linear system Ax b is consistent. However, if b (1, 2, 1) , then AGb (1, 0, 1) b , in which case Ax b is inconsistent.
9.6
Some Results on the Ranks and Generalized Inverses of Partitioned Matrices
a. Basic results
T U . In the special case where T is V W nonsingular, Theorem 8.5.10 gives rank(A) in terms of the Schur complement Q W − VT−1 U, which is of smaller dimensions than A. Moreover, in the special case where A, as well as, T is nonsingular, Theorem 8.5.11 gives A−1 in terms of T−1 and Q−1 (and U and V). The following theorem extends the results of Theorems 8.5.10 and 8.5.11 to a larger class of partitioned matrices. Theorem 9.6.1. Let T represent an m × p matrix, U an m × q matrix, V an n × p matrix, and W an n × q matrix, and define Q W − VT− U. Suppose that C(U) ⊂ C(T) and R(V) ⊂ R(T). Then, T U W V rank rank rank(T) + rank(Q) . (6.1) V W U T Consider the partitioned matrix A
Further, the partitioned matrices − T + T− UQ− VT− −T− UQ− −Q− VT− Q−
T− 0
− 0 −T U + Q− (−VT− , In ) 0 Iq
(6.2a)
(6.2b)
122
9. Generalized Inverses
and
Q− −T− UQ−
−Q− VT− − T− + T− UQ− VT 0 0 Iq + Q− (In , −VT− ) 0 T− −T− U
(6.3a) (6.3b)
T U W V and , respectively. V W U T In the special case of a block-triangular matrix, Theorem 9.6.1 can be restated as the following result, which generalizes results (8.5.7) and (8.5.8). Corollary 9.6.2. Let T represent an m × p matrix, V an n × p matrix, and W an n × q matrix. If R(V) ⊂ R(T) or C(V) ⊂ C(W), then T 0 W V rank rank rank(T) + rank(W) , V W 0 T are generalized inverses of
and the block-triangular matrices − T− 0 W and −WVT− W− 0
−W− VT− T−
T 0 W V are generalized inverses of and , respectively. V W 0 T As a special case of Corollary 9.6.2, we obtain the following generalization of result (8.5.2). − T 0 Corollary 9.6.3. For any matrices T and W, the partitioned matrix 0 W− T 0 is a generalized inverse of the block-diagonal matrix . 0 W To prove Theorem 9.6.1, let us first prove the following result, which is of some interest in its own right. Theorem 9.6.4. Let T represent an m × p matrix, R a p × q matrix, L an n × m matrix, and W an n × q matrix, and define Q W − LTR. Then, T TR W LT rank rank rank(T) + rank(Q) . (6.4) LT W TR T Furthermore, the partitioned matrices − − T + RQ− L −RQ− T − − −Q L 0 Q
0 −R Q− (−L, In ) + 0 Iq
(6.5)
Iq −Q− L 0 0 + Q− (In , −L) T− + RQ− L 0 T− −R
(6.6)
and
Q− −RQ−
9.6 Some Results on the Ranks and Generalized Inverses of Partitioned Matrices
T TR W LT and , respectively. LT W TR T Proof (of Theorem 9.6.4). Observe that I 0 T TR I −R T 0 −L I LT W 0 I 0 Q
123
are generalized inverses of
(6.7)
I 0 I −R and are −L I 0 I nonsingular. Thus, making use of Corollary 8.3.3 and Lemma 4.5.11, we find that T TR T 0 rank rank rank(T) + rank(Q) , LT W 0 Q and that (according to Lemma 8.5.2) the matrices
which (in light of Lemma 8.5.1) establishes result (6.4). Equality (6.7) further implies that
T LT
TR I W −L
−1 T 0 0 I
0 Q
I 0
−R I
−1
.
Observing that
T 0 0 Q
T− 0
0 Q−
T 0
0 T Q 0
0 Q
T 0 T− 0 is a generalized inverse of , we conclude, on 0 Q− 0 Q the basis of Lemma 9.2.4, that the matrix − − 0 I 0 T + RQ− L −RQ− I −R T 0 Q− −L I −Q− L Q− 0 I
and hence that
T TR is a generalized inverse of . That matrix (6.6) is a generalized inverse LT W W LT follows from a similar argument. (An alternative way of estabof TR T T TR lishing that matrices (6.5) and (6.6) are generalized inverses of and LT W W LT , respectively, is by direct verification; that is, by premultiplying and TR T T TR postmultiplying matrix (6.5) by and premultiplying and postmultiLT W W LT plying matrix (6.6) by and by verifying that the resultant products TR T T TR W LT equal and , respectively.) Q.E.D. LT W TR T
9.7 Extensions to Ssytems of the Form ZXC B
125
T U , and take G to be the generalized inverse of A given V W by expression (6.2). Then, according to Theorem 9.2.7, Proof. Let A
B G + Z − GAZAG for some (p + q) × (m + n) matrix Z. Thus, partitioning Z as Z11 Z12 Z Z21 Z22 (where the dimensions of Z22 are q × n) and observing (in light of Lemma 9.3.5) that U TT− U and V VT− T, we find that − −T UQ− B22 Q− + Z22 − (−Q− VT− , Q− )AZA Q− 0 Q− + Z22 − (0, Q− Q)Z QQ−
Q− + Z22 − Q− QZ22 QQ−
and hence that QB22 Q QQ− Q + QZ22 Q − QQ− QZ22 QQ− Q Q . We conclude that B22 is a generalized inverse of Q. That C11 is a generalized inverse of Q can be established via an analogous argument. Q.E.D.
9.7
Extension of Some Results on Systems of the Form AX B to Systems of the Form AXC B
It was established in Section 9.5 that a linear system AX B (with an m × n coefficient matrix A, m × p right side B, and n × p matrix of unknowns X) is consistent if and only if AA− B B, in which case A− B is a solution to AX B. Consider now the generalization of this result to a system of the form AXC B, where A is an m × n matrix, C a p × q matrix, B an m × q matrix, and X an n × p matrix of unknowns. A system of this form (like one of the form AX B) is said to be consistent if it has one or more solutions. The desired generalization is given by the following theorem. Theorem 9.7.1. The system AXC B (in X) is consistent if and only if AA− BC− C B, or equivalently if and only if AA− B B and BC− C B, in which case A− BC− is a solution to AXC B. Proof. If AA− BC− C B, then clearly A− BC− is a solution to the system AXC B, and this system is consistent. Conversely, suppose that the system AXC B is consistent. Then, by definition, this system has a solution, say X∗ . Thus, AA− BC− C AA− AX∗ CC− C AXC B .
126
9. Generalized Inverses
It remains to show that AA− BC− C B if and only if AA− B B and BC− C B. If AA− B B and BC− C B, then clearly AA− BC− C BC− C B. Conversely, if AA− BC− C B, then clearly AA− B AA− AA− BC− C AA− BC− C B and similarly BC− C AA− BC− CC− C AA− BC− C B . Q.E.D. In light of Lemma 9.3.5, we have the following corollary, which generalizes Part (1) of Theorem 7.2.1. Corollary 9.7.2. The system AXC B (in X) is consistent if and only if C(B) ⊂ C(A) and R(B) ⊂ R(C).
Exercises Section 9.1 1. Let A represent any m × n matrix and B any m × p matrix. Show that if AHB B for some n × m matrix H, then AGB B for every generalized inverse G of A. 2. (a) Let A represent an m × n matrix. Show that any n × m matrix X such that A AX A is a generalized inverse of A and similarly that any n × m matrix Y such that AA Y A is a generalized inverse of A. (b) Use Part (a), together with Corollary 7.4.2, to arrive at the same conclusion as Corollary 9.1.4. 3. Let A represent an m × n nonnull matrix, let B represent a matrix of full column rank and T a matrix of full row rank such that A BT, and let L represent a left inverse of B and R a right inverse of T. (a) Show that the matrix R(B B)−1 R is a generalized inverse of the matrix A A and that the matrix L (TT )−1 L is a generalized inverse of the matrix AA . (b) Show that if A is symmetric, then the matrix R(TB)−1 L is a generalized inverse of the matrix A2 . (If A is symmetric, then it follows from the result of Exercise 8.3 that TB is nonsingular.)
Exercises
127
Section 9.2 4. Use formula (2.3) to find a generalized inverse of the matrix
0 0 A 0 0 0
0 0 4 2 −2 −1 . 3 3 8 4
5. Let A represent an m × n nonnull matrix of rank r. Take B and K to be nonsingular matrices (of orders m and n, respectively) such that I 0 AB r K (E.1) 0 0 (the existence of which is guaranteed by Theorem 4.4.9). Show (a) that an n × m matrix G is a generalized inverse of A if and only if G is expressible in the form U −1 Ir GK B−1 V W for some r × (m − r) matrix U, (n − r) × r matrix V, and (n − r) × (m − r) matrix W, and (b) that distinct choices for U, V, and/or W lead to distinct generalized inverses. Section 9.3 6. Let A represent an m × n matrix, B an m × p matrix, and C a q × n matrix, and let k represent a nonzero scalar. Lemma 9.3.1 by showing (a) that, Generalize G1 for any generalized inverse of the partitioned matrix (A, B) (where G11 G 2 G1 is a generalized inverse of (A, kB) and is of dimensions n × m), k −1 G2 A (b) that, for any generalized inverse (H1 , H2 ) of the partitioned matrix C −1 is of dimensions n × m) (H , k H ) is a generalized inverse of (where H 1 2 1 A . kC Section 9.6 7. Let T represent an m × p matrix and W an n × q matrix. (a) Show that, unless Tand W are both nonsingular, − there exist generalized T 0 T 0 inverses of that are not of the form . [Hint. Make 0 W 0 W− use of result (2.7)].
128
9. Generalized Inverses
(b) Take U to be an m×q matrix and V an n×p matrix such that C(U) ⊂ C(T) and R(V) ⊂ R(T). Generalize the result of Part (a) by showing that, unless T and the matrixQ W − VT− U are both nonsingular, there exist T U generalized inverses of that are not of the form (6.2). [Hint. Use V W Part (a), together with Lemma 9.2.4.] 8. Let T represent an m × p matrix, m × q matrix, V an n × p matrix, and U an T U W an n × q matrix, take A , and define Q W − VT− U. V W (a) Show that the matrix
T− + T− UQ− VT− G −Q− VT−
−T− UQ− Q−
is a generalized inverse of the matrix A if and only if (1) (I − TT− )U(I − Q− Q) 0, (2) (I − QQ− )V(I − T− T) 0, and (3) (I − TT− )UQ− V(I − T− T) 0. (b) Verify that the conditions [C(U) ⊂ C(T) and R(V) ⊂ R(T)] of Theorem 9.6.1 imply Conditions (1) – (3) of Part (a). (c) Exhibit matrices T, U, V, and W that (regardless of how the generalized inverses T− and Q− are chosen) satisfy Conditions (1) – (3) of Part (a) but do not satisfy (both of) the conditions of Theorem 9.6.1. 9. (a) Suppose that a matrix A is partitioned as A11 A12 A A21 A22 A31 A32
A13 A23 A33
and that C(A12 ) ⊂ C(A11 ) and R(A21 ) ⊂ R(A11 ). Take Q to be the Schur complement of A11 in A relative to A− 11 , and partition Q as Q11 Q12 Q Q21 Q22 (where Q11 , Q12 , Q21 , and Q22 are of the same dimensions as A22 , A23 , A32 , and − A33 , respectively), so that Q11 A22 − A21 A− 11 A12 , Q12 A23 − A21 A11 A13 , − − Q21 A32 − A31 A11 A12 , and Q22 A33 − A31 A11 A13 . Let − − − − − A11 + A− 11 A12 Q11 A21 A11 −A11 A12 Q11 G . − −Q− Q− 11 A21 A11 11
Exercises
129
A11 A12 A13 ,U , and V (A31 , A32 ), or equivalently A21 A22 A23 define T, U, and V to satisfy T U A . V A33
Define T
Show that: (1) G is a generalized inverse of T; − (2) the Schur complement Q22 − Q21 Q− 11 Q12 of Q11 in Q relative to Q11 equals the Schur complement A33 − VGU of T in A relative to G; − − A11 A13 − A− 11 A12 Q11 Q12 , andVG (A A− − Q Q− (3) GU 31 11 21 11 Q− 11 Q12 − − A21 A11 , Q21 Q11 ).
(b) Let A represent an n × n matrix (where n ≥ 2), let n1 , . . . , nk represent positive integers such that n1 + · · · + nk n (where k ≥ 2), and (for i 1, . . . , k) let n∗i n1 + · · · + ni . Define (for i 1, . . . , k) Ai to be the leading principal submatrix of A of order n∗i and define (for i 1, . . . , k − 1) Ui to be the n∗i × (n − n∗i ) matrix obtained by striking out all of the rows and columns of A except the first n∗i rows and the last n − n∗i columns, Vi to be the (n − n∗i ) × n∗i matrix obtained by striking out all of the rows and columns of A except the last n − n∗i rows and first n∗i columns, and Wi to be the (n − n∗i ) × (n − n∗i ) submatrix obtained by striking out all of the rows and columns of A except the last n − n∗i rows and columns, so that (for i 1, . . . , k − 1) Ai Ui A . V i Wi Suppose that (for i 1, . . . , k − 1) C(Ui ) ⊂ C(Ai ) and R(Vi ) ⊂ R(Ai ). Let (i) (i) B11 B12 B(i) (i) (i) B21 B22 (k) (1) − − (i 1, . . . , k − 1) and B(k) B11 , where B(1) 11 A1 , B12 A1 U1 , (1) (1) (i) − − B21 V1 A1 , and B22 W1 − V1 A1 U1 , and where (for i ≥ 2) B11 , (i) (i) (i) (i−1) , B21 , and B22 are defined recursively by partitioning B(i−1) , B B12 12 21 , and B(i−1) as 22
B(i−1) 12
B(i−1) 22
(X(i−1) , X(i−1) ), 1 2
and
Q(i−1) 11 Q(i−1) 21
Q(i−1) 12 Q(i−1) 22
B(i−1) 21
(i−1) Y1 , Y(i−1) 2
130
9. Generalized Inverses
(in such a way that X(i−1) has ni columns, Y(i−1) has ni rows, and Q(i−1) 1 1 11 −(i−1) is of dimensions ni × ni ) and (using Q11 to represent a generalized inverse of Q(i−1) 11 ) by taking
(i) B11
(i−1)
− + X(i−1) Q11 Y(i−1) B(i−1) 11 1 1 −(i−1) (i−1) −Q11 Y1
(i) B12
−X(i−1) Q−(i−1) 1 11 −(i−1) Q11
− X(i−1) Q−(i−1) X(i−1) Q(i−1) 11 2 1 12 (i−1) Q−(i−1) Q 12 11
,
,
(i) −(i−1) (i−1) −(i−1) B21 (Y(i−1) − Q(i−1) Y1 , Q(i−1) ), 2 21 Q11 21 Q1
and Show that:
(i) −(i−1) Q(i−1) − Q(i−1) Q(i−1) . B22 22 21 Q11 12
(i) is a generalized inverse of Ai (i 1, . . . , k); (1) B11 (i) (i) is the Schur complement of Ai in A relative to B11 (i 1, . . . , (2) B22 k − 1); (i) (i) (i) (i) B11 Ui , and B21 Vi B11 (i 1, . . . , k − 1). (3) B12
[Note. The recursive formulas given in Part (b) for the sequence of matrices B(1) , . . . , B(k−1) , B(k) can be used to generate B(k−1) in k − 1 steps or to generate B(k) in k steps — the formula for generating B(i) from B(i−1) involves a generalized inverse of the ni × ni matrix Q(i−1) 11 . The various (k−1) (k−1) consist of a generalized inverse B11 of Ak−1 , the Schur parts of B of Ak−1 in A relative to B(k−1) complement B(k−1) , a solution B(k−1) of the 11 22 12 linear system Ak−1 X Uk−1 (in X), and a solution B(k−1) of the linear 21 system YAk−1 Vk−1 (in Y). The matrix B(k) is a generalized inverse of A. In the special case where ni 1, the process of generating the elements of the n × n matrix B(i) from those of the n × n matrix B(i−1) is called a sweep operation — see, e.g., Goodnight (1979).] 10. Let T represent an m × p matrix and W an n × q matrix, and let G G11 G12 (where G11 is of dimensions p × m) represent an arbitrary G21 G22 generalized inverse of the (m + n) × (p + q) block-diagonal matrix A T 0 . Show that G11 is a generalized inverse of T and G22 a generalized 0 W inverse of W. Show also that TG12 W 0 and WG21 T 0.
Exercises
131
11. Let T represent an m × p matrix, U an m × q matrix, V an n × p matrix, and W an n × q matrix, and define Q W − VT− U. Suppose that C(U) ⊂ C(T) and R(V) ⊂ R(T). Devise an alternative proof of the first part of Theorem 9.6.5 by showing that I 0 T 0 T U I −T− U −VT− I 0 I 0 Q V W and by then using Lemma 9.2.4 andthe result of Exercise 10 to show that, G11 G12 for any generalized inverse G of the partitioned matrix G21 G22 T U , the (q × n) submatrix G22 is a generalized inverse of Q. V W 12. Let T represent an m × p matrix, Uan m ×q matrix, V an n × p matrix, and T U W an n × q matrix, and take A . V W G11 G12 (a) Define Q W − VT− U, and let G , where G11 G21 G22 T− + T− UQ− VT− , G12 −T− UQ− , G21 −Q− VT− , and G22 Q− . Show that the matrix G11 − G12 G− 22 G21 is a generalized inverse of T. {Note. If the conditions [C(U) ⊂ C(T) and R(V) ⊂ R(T)] of Theorem 9.6.1 are satisfied or, more generally, if Conditions (1) – (3) of Part (a) of Exercise 8 are satisfied, then G is a generalized inverse of A.} (b) Show by example that, for some values of T, U, V, and W, there exists a G11 G12 generalized inverse G of A (where G11 is of dimensions G21 G22 p × m, G12 of dimensions p × n, G21 of dimensions q × m, and G22 of dimensions q × n) such that the matrix G11 − G12 G− 22 G21 is not a generalized inverse of T.
This page intentionally left blank
10 Idempotent Matrices
This chapter is devoted to a very important class of matrices called idempotent matrices. It provides coverage of some basic properties of idempotent matrices and also of some basic results pertaining to idempotent matrices. Idempotent matrices play an important role in the theory of linear statistical models (especially in connection with the theory of least squares and the analysis of variance) and (not coincidentally) appear prominently in several of the ensuing chapters of this book (including Chapters 12 and 17). Making idempotent matrices the subject of a separate chapter (even though this results in a very short chapter) is convenient and serves to emphasize their importance.
10.1
Definition and Some Basic Properties
A square matrix A is said to be idempotent if A2 A . Examples of n × n idempotent matrices are the identity matrix In , the n × n null matrix 0, and the matrix (1/n)Jn , each element of which equals 1/n. As indicated by the following lemma, n × n idempotent matrices are, with one exception, singular. Lemma 10.1.1. The only n × n idempotent matrix of rank n is the n × n identity matrix In . Proof. Suppose that A is an n × n idempotent matrix of rank n. Then, A In A A−1 AA A−1 A In .
134
10. Idempotent Matrices
Q.E.D. If a square matrix A is idempotent, then (A )2 (AA) A and (I − A)2 I − 2A + A2 I − 2A + A I − A . Thus, upon observing that A (A ) and A I − (I − A), we have the following lemma. Lemma 10.1.2. Let A represent a square matrix. Then, (1) A is idempotent if and only if A is idempotent, and (2) I − A is idempotent if and only if A is idempotent. For any idempotent matrix A, we have that AAA (AA)A AA A, giving rise to the following lemma. Lemma 10.1.3. If a (square) matrix A is idempotent, then A is a generalized inverse of itself (i.e., of A).
10.2
Some Basic Results
Suppose that A is a square matrix such that A2 kA for some nonzero scalar k. Or, equivalently, suppose that [(1/k)A]2 (1/k)A , that is, (1/k)A is an idempotent matrix (so that, depending on whether k 1 or k 1, A is either an idempotent matrix or a scalar multiple of an idempotent matrix). Then, in light of the following theorem, rank(A) (1/k) tr(A) , and consequently the rank of A is determinable from the trace of A. Theorem 10.2.1. For any square matrix A such that A2 kA for some scalar k, tr(A) k rank(A) . Proof. Let us restrict attention to the case where A is nonnull. [The case where A 0 is trivial — if A 0, then tr(A) 0 k rank(A).] Let n denote the order of A, and let r rank(A). Then, according to Theorem 4.4.8, there exists an n × r matrix B and an r × n matrix L such that A BL. Moreover, rank(B) rank(L) r. We have that BLBL A2 kA kBL B(kI)L ,
10.2 Some Basic Results
135
implying (in light of Lemma 8.3.1) that LB kI . Thus, making use of Lemma 5.2.1, we find that tr(A) tr(BL) tr(LB) tr(kI) k tr(Ir ) kr . Q.E.D. In the special case where k 1, Theorem 10.2.1 can be restated as follows. Corollary 10.2.2. For any idempotent matrix A, rank(A) tr(A) . Upon observing that only a null matrix can be of rank zero, we obtain the following, additional corollary (of Theorem 10.2.1). Corollary 10.2.3. If the trace of an idempotent matrix A equals 0, then A 0. Making use of Lemma 10.1.2 and Corollary 10.2.2, we find that, for any n × n idempotent matrix A, rank(I − A) tr(I − A) tr(In ) − tr(A) n − rank(A) , thereby establishing the following lemma. Lemma 10.2.4. For any n × n idempotent matrix A, rank(I − A) tr(I − A) n − rank(A) . For any matrix A, A− AA− A A− A and AA− AA− AA− . Thus, we have the following lemma. Lemma 10.2.5. Let A represent an m × n matrix. Then, the n × n matrix A− A and the m × m matrix AA− are both idempotent. Note that this lemma, together with Corollary 9.3.8 and Corollary 10.2.2, implies that, for any matrix A, rank(A) rank(A− A) rank(AA− ) tr(A− A) tr(AA− ) .
(2.1)
In light of Lemma 10.2.4 [and of result (2.1)], a further implication of Lemma 10.2.5 is as follows. Lemma 10.2.6. Let A represent an m × n matrix. Then, rank(I − A− A) tr(I − A− A) n − rank(A) ,
(2.2)
rank(I − AA− ) tr(I − AA− ) m − rank(A) .
(2.3)
The following theorem expands on the results of Lemma 10.2.5 and Corollary 9.3.8. Theorem 10.2.7. Let A represent an m × n matrix and B an n × m matrix. Then, B is a generalized inverse of A if and only if BA is idempotent and rank(BA)
136
10. Idempotent Matrices
rank(A). Similarly, B is a generalized inverse of A if and only if AB is idempotent and rank(AB) rank(A). Proof. In light of Lemma 10.2.5 and Corollary 9.3.8, it suffices to show that B is a generalized inverse of A if BA is idempotent and rank(BA) rank(A) or if AB is idempotent and rank(AB) rank(A). Suppose that BA is idempotent and rank(BA) rank(A). Then, according to Corollary 4.4.7, R(A) R(BA), and it follows from Lemma 4.2.2 that A SBA for some matrix S. Thus, ABA SBABA SBA A . Alternatively, suppose that AB is idempotent and rank(AB) rank(A). Then, according to Corollary 4.4.7, C(A) C(AB), and consequently A ABT for some matrix T. Thus, ABA ABABT ABT A . Q.E.D.
Exercises Section 10.1 1. Show that if an n × n matrix A is idempotent, then (a) for any n × n nonsingular matrix B, B−1 AB is idempotent; (b) for any integer k greater than or equal to 2, Ak A. 2. Let P represent an m × n matrix (where m ≥ n) such that P P In , or equivalently an m × n matrix whose columns are orthonormal (with respect to the usual inner product). Show that the m × m symmetric matrix PP is idempotent. 3. Show that, for any symmetric idempotent matrix A, the matrix I − 2A is orthogonal. 4. Let A represent an m × n matrix. Show that if A A is idempotent, then AA is idempotent. 5. Let A represent a symmetric matrix and k an integer greater than or equal to 1. Show that if Ak+1 Ak , then A is idempotent. 6. Let A represent an n × n matrix. Show that (1/2)(I + A) is idempotent if and only if A is involutory (where involutory is as defined in Exercise 8.2). 7. Let A and B represent n × n symmetric idempotent matrices. Show that if C(A) C(B), then A B. 8. Let A represent an r × m matrix and B an m × n matrix.
Exercises
137
(a) Show that B− A− is a generalized inverse of AB if and only if A− ABB− is idempotent. (b) Show that if A has full column rank or B has full row rank, then B− A− is a generalized inverse of AB. Section 10.2 9. Let T represent an m × p matrix, U an m × q matrix, V an n × p matrix, and W an n × q matrix, and define Q W − VT− U. Using Part (a) of Exercise 9.8, together with result (2.1), show that if (1) (I − TT− )U(I − Q− Q) 0, (2) (I − QQ− )V(I − T− T) 0, and (3) (I − TT− )UQ− V(I − T− T) 0, then rank
T V
U rank(T) + rank(Q) . W
10. Let T represent an m × p matrix, U an m × q matrix, V an n × p matrix, T U and W an n × q matrix, take A , and define Q W − VT− U. V W Further, let ET I − TT− , FT I − T− T, X ET U, Y VFT , EY I − YY− , FX I − X− X, Z EY QFX , and Q∗ FX Z− EY . (a) (Meyer 1973, Theorem 3.1). Show that the matrix G G1 + G2 ,
(E.1)
where
T− − T− U(I − Q∗ Q)X− ET −FT Y− (I − QQ∗ )VT− G1 −FT Y− (I − QQ∗ )QX− ET (I − Q∗ Q)X− ET and
FT Y− (I − QQ∗ ) 0
−T− U G2 Q∗ (−VT− , In ) , Iq
is a generalized inverse of A.
138
10. Idempotent Matrices
(b) (Meyer 1973, Theorem 4.1) Show that rank(A) rank(T) + rank(X) + rank(Y) + rank(Z) .
(E.2)
[Hint. Use Part (a) together with result (2.1).] (c) Show that if C(U) ⊂ C(T) and R(V) ⊂ R(T), then formula (E.2) for rank(A) reduces to formula (9.6.1), and formula (9.6.2) for a generalized inverse of A can be obtained as a special case of formula (E.1).
11 Linear Systems: Solutions
The subject of this chapter is linear systems. This subject was considered previously in Chapter 7. The emphasis in Chapter 7 was on whether the linear system is consistent, that is, whether it has solutions, whereas the emphasis in the present chapter is on the solutions themselves. The presentation makes heavy use of the results of Chapters 9 and 10 (on generalized inverses and idempotent matrices).
11.1
Some Terminology, Notation, and Basic Results
The collection of all solutions to a linear system AX B (in X) is called the solution set of the linear system. Clearly, a linear system is consistent if and only if its solution set is nonempty. Is the solution set of a linear system AX B (in X) a linear space? The answer depends on whether the linear system is homogeneous or nonhomogeneous, that is, on whether the right side B is null or nonnull. Consider first the solution set of a homogeneous linear system AX 0. Since a homogeneous linear system is consistent, the solution set of AX 0 is nonempty. Furthermore, if X1 and X2 are solutions to AX 0 and k is a scalar, then A(X1 + X2 ) AX1 + AX2 0, and A(kX1 ) k(AX1 ) 0, so that X1 + X2 and kX1 are also solutions to AX 0. Thus, the solution set of a homogeneous linear system is a linear space. Accordingly, the solution set of a homogeneous linear system AX 0 may be called the solution space of AX 0. The solution space of a homogeneous linear system Ax 0 (in a column vector x) is called the null space of the matrix A and is denoted by the symbol N (A).
140
11. Linear Systems: Solutions
Thus, for any m × n matrix A, N (A) {x ∈ Rn×1 : Ax 0} . Note that, for any n × n matrix A, N (A) {x ∈ Rn×1 : (I − A)x x} ⊂ C(I − A) ,
(1.1)
N (I − A) {x ∈ Rn×1 : Ax x} ⊂ C(A) .
(1.2)
The solution set of a nonhomogeneous linear system is not a linear space (as can be easily seen by, e.g., observing that the solution set does not contain the null matrix).
11.2
General Form of a Solution
a. Homogeneous linear systems The following theorem gives an expression for the general form of a solution to a homogeneous linear system in terms of any particular generalized inverse of the coefficient matrix. Theorem 11.2.1. A matrix X∗ is a solution to a homogeneous linear system AX 0 (in X) if and only if X∗ (I − A− A)Y for some matrix Y. Proof. If X∗ (I − A− A)Y for some matrix Y, then AX∗ (A − AA− A)Y (A − A)Y 0 , so that X∗ is a solution to AX 0. Conversely, if X∗ is a solution to AX 0, then X∗ X∗ − A− (AX∗ ) (I − A− A)X∗ , so that X∗ (I − A− A)Y for Y X∗ . Q.E.D. According to Theorem 11.2.1, all solutions to a homogeneous linear system AX 0 can be generated by setting X (I − A− A)Y and allowing Y to range over all matrices (of the appropriate dimensions). As a special case of Theorem 11.2.1, we have that a column vector x∗ is a solution to a homogeneous linear system Ax 0 (in a column vector x) if and only if x∗ (I − A− A)y for some column vector y. Thus, we have the following corollary of Theorem 11.2.1. Corollary 11.2.2. For any matrix A, N (A) C(I − A− A) .
11.2 General Form of a Solution
141
b. Nonhomogeneous linear systems The following theorem relates the solutions of an arbitrary (consistent) linear system AX B to those of the linear homogeneous system AZ 0 (in Z) having the same coefficient matrix. (To avoid confusion, the matrix of unknowns in the homogeneous linear system is now denoted by Z, rather than X.) Theorem 11.2.3. Let X0 represent any particular solution to a consistent linear system AX B (in X). Then, a matrix X∗ is a solution to AX B if and only if X∗ X0 + Z∗ for some solution Z∗ to the homogeneous linear system AZ 0 (in Z). Proof. If X∗ X0 + Z∗ for some solution Z∗ to AZ 0, then AX∗ AX0 + AZ∗ B + 0 B , so that X∗ is a solution to AX B. Conversely, if X∗ is a solution to AX B, then defining Z∗ X∗ − X0 , we find that X∗ X0 + Z∗ and, since
AZ∗ AX∗ − AX0 B − B 0 ,
Q.E.D. that Z∗ is a solution to AZ 0. The upshot of Theorem 11.2.3 is that all of the matrices in the solution set of a consistent linear system AX B can be generated from any particular solution X0 by setting X X0 + Z and allowing Z to range over all the matrices in the solution space of the linear homogeneous system AZ 0. It follows from Theorem 9.1.2 that one solution to a consistent linear system AX B is the matrix A− B. Thus, in light of Theorem 11.2.3, we have the following extension of Theorem 11.2.1. Theorem 11.2.4. A matrix X∗ is a solution to a consistent linear system AX B (in X) if and only if X∗ A− B + (I − A− A)Y for some matrix Y. As a special case of Theorem 11.2.4, we have that a column vector x∗ is a solution to a consistent linear system Ax b (in a column vector x) if and only if x∗ A− b + (I − A− A)y for some column vector y. Consider, for example, expression (2.1) as applied to the linear system −6 2 −2 −3 3 3 −1 5 2 x 2 , −3 1 3 −1 5
(2.1)
(2.2)
142
11. Linear Systems: Solutions
whose consistency was established in Section 9.5. Taking A and b to be the coefficient matrix and right side of linear system (2.2), choosing 0 0 0 −1 0 3 A− 0 0 0 , −1 0 2 and denoting the elements of y by y1 , y2 , y3 , and y4 , respectively, we find that y1 12 + 3y1 − 11y3 . (2.3) A− b + (I − A− A)y y3 7 − 8y3 Thus, the members of the solution set of linear system (2.2) consist of all vectors of the general form (2.3).
11.3
Number of Solutions
a. Homogeneous linear systems What is the dimension of the solution space of a homogeneous linear system AX 0 (in X)? The following lemma answers this question in the special case of a homogeneous linear system Ax 0 (in a column vector x). Lemma 11.3.1. Let A represent an m × n matrix. Then, dim[N (A)] n − rank(A) . That is, the dimension of the solution space of the homogeneous linear system Ax 0 (in an n-dimensional column vector x) equals n − rank(A). Proof. Recalling (from Corollary 11.2.2) that N (A) C(I − A− A) and making use of Lemma 10.2.6, we find that dim[N (A)] dim[C(I − A− A)] rank(I − A− A) n − rank(A) . Q.E.D. The solution space of a homogeneous linear system Ax 0 (in an n-dimensional column vector x) is a subspace of the linear space Rn of all n-dimensional column vectors. According to Lemma 11.3.1, the dimension of this subspace equals n − rank(A). Thus, if rank(A) n, that is, if A has full column rank, then the homogeneous linear system Ax 0 has a unique solution, namely, the null vector 0. And, if rank(A) < n, then Ax 0 has an infinite number of solutions. Consider now the dimension of the solution space of the homogeneous linear system AX 0 (in an n × p matrix X). Clearly, a matrix X∗ is a solution to AX 0 if and only if each of its columns is a solution to the homogeneous linear system Ax 0 (in the n-dimensional column vector x).
11.4 A Basic Result on Null Spaces
143
Suppose that rank(A) n. Then, the only solution to Ax 0 is the ndimensional null vector, and hence the only solution to AX 0 is the n × p null matrix. Alternatively, suppose that rank(A) < n. Let s n − rank(A), and take x1 , . . . , xs to be any s linearly independent solutions to Ax 0. (According to Lemma 11.3.1, the solution space of Ax 0 is s-dimensional.) Then, it is a straightforward exercise to show that the ps n × p matrices (x1 , 0, . . . , 0), . . . , (xs , 0, . . . , 0), . . . , (0, . . . , 0, x1 ), . . . , (0, . . . , 0, xs ) form a basis for the solution space of AX 0 and hence that the dimension of the solution space of AX 0 equals ps. Thus, we have the following generalization of Lemma 11.3.1. Lemma 11.3.2. The dimension of the solution space of a homogeneous linear system AX 0 (in an n × p matrix X) equals p[n − rank(A)]. The solution space of a homogeneous linear system AX 0 (in an n × p matrix X) is a subspace of the linear space Rn×p of all n × p matrices. According to Lemma 11.3.2, the dimension of this subspace equals p[n − rank(A)]. Thus, if rank(A) n, then the homogeneous linear system AX 0 has a unique solution, namely, the null matrix 0. And, if rank(A) < n, then AX 0 has an infinite number of solutions.
b. Nonhomogeneous linear systems Consider the size of the solution set of a possibly nonhomogeneous linear system AX B (in an n × p matrix X). If AX B is inconsistent, then, by definition, it has zero solutions. If AX B is consistent, then it follows from Theorem 11.2.3 that there is a one-to-one correspondence between solutions to AX B and solutions to the corresponding homogeneous linear system AZ 0. Thus, in light of the discussion of Subsection a, we conclude (1) that if the linear system AX B (in the n × p matrix X) is consistent and if the coefficient matrix A has full column rank (i.e., rank n), then AX B has a unique solution, and (2) that if AX B is consistent but A is of less than full column rank, then AX B has an infinite number of solutions. Moreover, on the basis of Theorem 7.2.2, we reach the following, additional conclusion. Theorem 11.3.3. If the coefficient matrix A of the linear system AX B (in X) is nonsingular, then AX B has a solution and that solution is unique.
11.4
A Basic Result on Null Spaces
The following lemma gives a basic result on null spaces. Lemma 11.4.1. Let A represent an m × n matrix and X an n × p matrix. (1) If AX 0, then C(X) ⊂ N (A). (2) If AX 0 and rank(X) n − rank(A), then C(X) N (A).
144
11. Linear Systems: Solutions
Proof. (1) Suppose that AX 0. Then, for any n × 1 vector x in C(X), x Xr for some p × 1 vector r, and consequently Ax AXr 0, so that x ∈ N (A). Thus, C(X) ⊂ N (A). (2) Suppose that AX 0 and that rank(X) n − rank(A). Then, in light of Part (1) and Lemma 11.3.1, we have that C(X) ⊂ N (A) and {since dim[C(X)] rank(X)} that dim[C(X)] dim[N (A)]. Thus, it follows from Theorem 4.3.10 that C(X) N (A). Q.E.D.
11.5
An Alternative Expression for the General Form of a Solution
It follows from Theorem 9.1.2 that one solution to a consistent linear system AX B (in X) is A− B. If X∗ is a solution to AX B, is it necessarily the case that X∗ GB for some generalized inverse G of A? That is, can all solutions to AX B be generated by setting X GB and letting G range over all generalized inverses of A? The answer to this question depends on A and B. Consider, for example, the special case of a consistent linear system Ax b (in an n × 1 column vector x). If rank(A) < n and b 0, then (as discussed in Section 11.3a) Ax b has an infinite number of solutions; however, only one of them is expressible in the form Gb for some generalized inverse G of A, namely, the n × 1 null vector 0. The following theorem gives conditions on A and B under which every solution to AX B is expressible in the form GB for some generalized inverse G of A. Theorem 11.5.1. Suppose that AX B is a consistent linear system (in an n × p matrix X) such that rank(A) n or rank(B) p. Then, a matrix X∗ is a solution to AX B if and only if X∗ GB for some generalized inverse G of A. In the special case where p 1, Theorem 11.5.1 reduces to the following result. Corollary 11.5.2. Suppose that Ax b is a consistent linear system (in an n-dimensional column vector x) such that rank(A) n or b 0. Then, x∗ is a solution to Ax b if and only if x∗ Gb for some generalized inverse G of A. Proof (of Theorem 11.5.1). If X∗ GB for some generalized inverse G of A, then X∗ is a solution to AX B, as is evident from Theorem 9.1.2. Conversely, suppose that X∗ is a solution to AX B. By assumption, rank(A) n or rank(B) p. Assume that rank(A) n. Then, AX B has a unique solution (as discussed in Section 11.3), and hence (since — according to Theorem 9.1.2 — A− B is a
11.6 Equivalent Linear Systems
145
solution to AX B) X∗ A− B; that is, X∗ GB for any generalized inverse G of A. Alternatively, assume that rank(B) p. According to Theorem 11.2.4, there exists a matrix Y such that X∗ A− B + (I − A− A)Y , and, since the matrix B is of full row rank (i.e., rank p), there exists (in light of Theorem 7.2.2) a matrix K such that B K Y . Furthermore, according to Lemma 9.5.1, AA− B B . Thus, X∗ A− B + (I − A− A)(B K)
A− B + K B − A− AK B (A− + K − A− AK AA− )B ,
and hence, in light of Theorem 9.2.7, X∗ GB for some generalized inverse G of A. Q.E.D. Theorem 11.5.1 gives an expression — alternative to that given by Theorem 11.2.4 — for the general form of a solution to a consistent linear system AX B (in an n×p matrix X). However, Theorem 11.5.1 is applicable only if rank(A) n or rank(B) p, whereas Theorem 11.2.4 is applicable to any consistent linear system.
11.6
Equivalent Linear Systems
If two linear systems have the same solution set, they are said to be equivalent. The linear system CAX CB obtained by premultiplying both sides of a linear system AX B (in X) by a matrix C may or may not be equivalent to AX B. The following two lemmas, which are immediate consequences of Lemma 8.3.1 and Corollary 5.3.3, respectively, give sufficient conditions for the two linear systems to be equivalent. Lemma 11.6.1. Let A represent an m × n matrix and B an m × p matrix. If C is an r × m matrix of full column rank (i.e., of rank m), then the linear system CAX CB is equivalent to the linear system AX B (in X). Lemma 11.6.2. For any m × n matrix A and n × p matrix F, the linear system A AX A AF is equivalent to the linear system AX AF (in X). Note that, as a special case of Lemma 11.6.2 (the special case where F 0), we have that the linear system A AX 0 is equivalent to the linear system AX 0.
146
11.7
11. Linear Systems: Solutions
Null and Column Spaces of Idempotent Matrices
It was noted earlier [in results (1.1) and (1.2)] that, for any square matrix A, N (A) ⊂ C(I − A) and N (I − A) ⊂ C(A). Is it possible for N (A) to equal C(I − A) and/or for N (I − A) to equal C(A)? And, if so, under what condition(s)? These questions are answered in the following theorem and corollary. Theorem 11.7.1. Let A represent an n × n matrix. Then, N (A) C(I − A) if and only if A is idempotent. Proof. Suppose that A is idempotent. Then, since (according to Lemma 10.1.3) A is a generalized inverse of itself, it follows from Corollary 11.2.2 that N (A) C(I − AA) C(I − A) . Conversely, suppose that N (A) C(I − A). Then, for every n × 1 vector x, (I − A)x ∈ N (A) or equivalently A(I − A)x 0. Thus, in light of Lemma 2.3.2, we have that A − A2 A(I − A) 0 and hence that A2 A. Q.E.D. Corollary 11.7.2. Let A represent an n × n matrix. Then, C(A) N (I − A) if and only if A is idempotent. Proof. According to Theorem 11.7.1, N (I − A) C[I − (I − A)] if and only if I − A is idempotent. The proof is complete upon observing that I − (I − A) A and further (in light of Lemma 10.1.2) that I − A is idempotent if and only if A is idempotent. Q.E.D.
11.8 Let
Linear Systems With Nonsingular Triangular or Block-Triangular Coefficient Matrices
A11 0 A . .. 0
A12 A22 0
· · · A1r · · · A2r .. .. . . Arr
represent an n × n upper block-triangular matrix whose ij th block Aij is of dimensions ni × nj (j ≥ i 1, 2, . . . , r). Suppose that the diagonal blocks A11 , A22 , . . . , Arr of A are all nonsingular, or, equivalently (in light of Theorem 8.5.5), that A itself is nonsingular.
11.8 Linear Systems With Nonsingular Block-Triangular Coefficient Matrices
147
Let B represent an n × p matrix, and consider the linear system AX B (in the n × p matrix X). Partition X and B as B1 X1 B2 X2 X . and B . , .. .. Xr Br where Xi and Bi are of dimensions ni system as A11 A12 · · · 0 A22 · · · .. .. . . 0
0
× p (i 1, . . . , r), and rewrite the linear A1r X1 B1 X2 B2 A2r .. .. .. . . . Arr
Xr
(8.1)
Br
or, equivalently, as Aii Xi +
r
Aij Xj Bi
(i 1, . . . , r − 1) ,
j i+1
Arr Xr Br . In solving linear system (8.1), the block-triangularity of the coefficient matrix can be exploited by proceeding in r steps. The first step is to solve the linear system Arr Xr Br for Xr — one representation for the solution is Xr A−1 rr Br . The second step is to solve the linear system Ar−1,r−1 Xr−1 + Ar−1,r Xr Br−1 for Xr−1 in terms of Xr — one representation for this solution is Xr−1 A−1 r−1,r−1 (Br−1 − Ar−1,r Xr ) . More generally, the (r − i + 1)th step is to solve the linear system Aii Xi +
r
Aij Xj Bi
j i+1
for Xi in terms of the quantities Xr , Xr−1 , . . . , Xi+1 determined during the first, second, . . ., (r − i)th steps, respectively — one representation for this solution is r −1 (8.2) Aij Xj Xi Aii Bi − j i+1
(i r − 1, r − 2, . . . , 1). This approach to the solution of linear system (8.1) is called back substitution.
148
11. Linear Systems: Solutions
Let us now specialize by taking U {uij } to be an n × n nonsingular upper triangular matrix and b {bi } to be an n × 1 vector, and by considering the linear system Ux b in the n × 1 vector x {xi }. As applied to this linear system, back substitution consists of determining xn , xn−1 , . . . , x1 , recursively, from the n formulas xn bn /unn , (8.3a) n uii (i n − 1, . . . , 1) . uij xj (8.3b) xi bi − j i+1
For example, in the case of the linear system 8 1 6 x1 −9 0 5 4 x2 3 , 0 0 2 −6 x3 these formulas give x3 −6/2 −3 , x2 [3 − 4(−3)]/5 3 , x1 [−9 − 1(3) − 6(−3)]/8 0.75 . Suppose now that, instead of being upper block-triangular, the coefficient matrix of the linear system AX B is a lower block-triangular matrix 0 ··· 0 A11 A21 A22 0 A . . . .. .. .. Ar1
Ar2
· · · Arr
(with nonsingular diagonal blocks A11 , A22 , . . . , Arr ), in which case the linear system is expressible as 0 ··· 0 X1 B1 A11 X2 B2 A21 A22 0 (8.4) .. .. .. .. .. . . . . . Ar1
Ar2
· · · Arr
Xr
Br
or, equivalently, as A11 X1 B1 , Aii Xi +
i−1
Aij Xj Bi
(i 2, 3, . . . , r) .
j 1
In solving linear system (8.4), the block-triangularity of the coefficient matrix can (as in the case of an upper block-triangular coefficient matrix) be exploited by proceeding in r steps. The first step is to solve the linear system A11 X1 B1 for
11.9 A Computational Approach
149
X1 — one representation for this solution is X1 A−1 11 B1 . The ith step is to solve the linear system i−1 Aii Xi + Aij Xj Bi j 1
for Xi in terms of the quantities X1 , . . . , Xi−1 determined during the first, second, . . . , (i − 1)th steps, respectively — one representation for this solution is i−1 −1 Xi Aii Bi − (8.5) Aij Xj j 1
(i 2, 3, . . . , r). This approach to the solution of linear system (8.4) is called forward elimination. Let us now specialize by taking L {#ij } to be an n × n nonsingular lower triangular matrix and b {bi } to be an n × 1 vector and by considering the linear system Lx b in the n × 1 vector x {xi }. As applied to this linear system, forward elimination consists of determining x1 , x2 , . . . , xn , recursively, from the n formulas x1 b1 /#11 , (8.6a) i−1 xi bi − #ii (i 2, 3, . . . , n) . #ij xj (8.6b) j 1
11.9
A Computational Approach
Consider the problem of computing a solution to a consistent linear system AX B (in X). Depending on the nature of the coefficient matrix A, this problem can be relatively easy or relatively difficult. One case where it is relatively easy is that where A is an orthogonal matrix or more generally where the columns of A are orthonormal (with respect to the usual inner product). In that special case, the (unique) solution to AX B is X A B. Another case where the computation of a solution to AX B is relatively easy is that where A is a triangular matrix. If A is upper or lower triangular, then a solution to the linear system can be computed by back substitution or forward elimination — refer to Section 11.8 — or (in the event A is singular) by a variant of back substitution or forward elimination. More generally, the computation of a solution to AX B can be approached by (implicitly or explicitly) decomposing A into the product A KT of two matrices K and T, where T is of full row rank, and by proceeding in two steps as follows: (1) compute a solution Y∗ to the linear system KY B (in a matrix Y) and then (2) compute a solution X∗ to the linear system TX Y∗ (in X). [Upon observing that C(B) ⊂ C(A) ⊂ C(K), it follows from Theorem 7.2.1 that the linear system KY B is consistent; and it follows from Theorem 7.2.2 that the linear system TX Y∗ is consistent.] Clearly, AX∗ KTX∗ KY∗ B,
150
11. Linear Systems: Solutions
so that the matrix X∗ computed in Step (2) is a solution to AX B. Here, the decomposition A KT should be such that the solutions of the linear systems KY B and TX Y∗ are relatively easy to compute. One choice for this decomposition (in the special case where A is of full column rank) is the QR decomposition, considered in Section 6.4d. Other decompositions that could (depending on the nature of A) be suitable choices will be considered subsequently (in Chapters 14 and 21).
11.10
Linear Combinations of the Unknowns
Suppose that Ax b is a consistent linear system (in an n-dimensional vector x). Often, k x, where k is an n-dimensional column vector, or more generally K x, where K is an n × q matrix, may be of interest rather than x itself — note that k x is a linear combination of the unknowns (the elements of x) and that K x is a q-dimensional column vector, each element of which is a linear combination of the unknowns. For instance, in the case of the so-called normal equations (which arise from fitting a linear statistical model by least squares), interest may be confined to those linear combinations of the unknowns that correspond to estimable functions — refer, for example, to Searle (1971, sec. 5.4). More generally, suppose that AX B is a consistent linear system (in an n × p matrix X). Then, K X may be of interest.
a. Invariance to choice of solution Under what circumstances is the value of K X invariant to the choice of solution to AX B? The answer to this question is provided by the following theorem. Theorem 11.10.1. Suppose that AX B is a consistent linear system (in an n × p matrix X), and let K represent an n × q matrix. Then, the value of K X is the same for every solution to AX B if and only if R(K ) ⊂ R(A) or equivalently if and only if every row of K belongs to R(A). Proof. Let X0 represent any particular solution to AX B. Suppose that R(K ) ⊂ R(A). Then, according to Lemma 4.2.2, there exists a matrix L such that K LA. Letting X∗ represent any solution to AX B, we find that K X∗ LAX∗ LB LAX0 K X0 . Thus, the value of K X is the same for every solution to AX B. Conversely, suppose that the value of K X is the same for every solution to AX B. Then, it follows from Theorem 11.2.4 that the value of K [A− B + (I − A− A)Y] is the same for every matrix Y (of appropriate dimensions) or equivalently that K (I − A− A)Y 0 for every matrix Y. In particular, K (I − A− A)Y 0 for every
11.10 Linear Combinations of the Unknowns
151
matrix Y of the general form (y, 0, . . . , 0). Thus, K (I − A− A)y 0 for every n × 1 column vector y, or equivalently K y K A− Ay for every y, implying (in light of Lemma 2.3.2) that K K A− A. We conclude, on the basis of Lemma Q.E.D. 9.3.5, that R(K ) ⊂ R(A). As a special case of Theorem 11.10.1, we have the following corollary. Corollary 11.10.2. Suppose that Ax b is a consistent linear system (in an n-dimensional column vector x), and let k represent an n-dimensional row vector. Then, the value of k x is the same for every solution to Ax b if and only if k ∈ R(A).
b. An alternative representation As described in the following theorem, the solution set of the linear system AX B is related to that of a linear system A Y K (in Y). Theorem 11.10.3. Suppose that AX B and A Y K are consistent linear systems (in X and Y, respectively). Then, K X0 Y0 B
(10.1)
for any solutions X0 and Y0 to AX B and A Y K, respectively. Proof. We have that K X0 (A Y0 ) X0 Y0 AX0 Y0 B . Q.E.D. Suppose that AX B is a consistent linear system (in X) and that, for some n × q matrix K such that R(K ) ⊂ R(A), the value of K X is of interest. (It follows from Theorem 11.10.1 that the value of K X is the same for every solution to AX B.) An obvious way to determine the value of K X is to find a solution X0 to AX B and to then form the product K X0 . According to Theorem 11.10.3, there is an alternative approach — the value of K X can be determined by finding a solution Y0 to A Y K and then forming the product Y0 B.
c. Two augmented linear systems It is easy to verify the following two theorems. Theorem 11.10.4. Let A represent an m × n matrix, B an m × p matrix, and K an n × q matrix. If X∗ and L∗ are the first and second parts, respectively, of any solution to the linear system X B A 0 (10.2) L 0 −K I (in X and L), then X∗ is a solution to the linear system AX B (in X), and L∗ K X∗ . Conversely, if X∗ is any solution to AX B, then X∗ and K X∗ are the first and second parts, respectively, of some solution to linear system (10.2).
152
11. Linear Systems: Solutions
Theorem 11.10.5. Let A represent an n × n matrix, B an n × p matrix, and K an n × q matrix. If X∗ and L∗ are the first and second parts, respectively, of any solution to the linear system A + KK −K X B (10.3) −K I L 0 (in X and L), then X∗ is a solution to the linear system AX B (in X) and L∗ K X∗ . Conversely, if X∗ is any solution to AX B, then X∗ and K X∗ are the first and second parts, respectively, of some solution to linear system (10.3). Note that Theorem 11.10.4 implies that linear system (10.2) is consistent if and only if the linear system AX B is consistent. Similarly, Theorem 11.10.5 implies that linear system (10.3) is consistent if and only if the linear system AX B is consistent. Theorems 11.10.4 and 11.10.5 indicate that a solution X∗ to a consistent linear system AX B (in X) and the corresponding value K X∗ of K X can both be obtained as parts of the solution to a single linear system, namely linear system (10.2) or (in the special case where A is square) linear system (10.3).
11.11
Absorption
Consider the problem of determining whether a linear system a11 x1 + a12 x2 b1 ,
(11.1a)
a21 x1 + a22 x2 b2
(11.1b)
of two equations in two unknowns (x1 and x2 ) is consistent and, if it is consistent, of solving it. Suppose that a11 0. Then, one approach to the problem is to solve the first equation for x1 in terms of x2 , obtaining −1 −1 x1 a11 b1 − a11 a12 x2 ,
(11.2)
and to eliminate x1 from the second equation by replacing x1 with expression (11.2), which gives −1 −1 (a22 − a21 a11 a12 )x2 b2 − a21 a11 b1 .
(11.3)
Clearly, linear system (11.1) is consistent if and only if equation (11.3) has a solution (for x2 ), say x2∗ , in which case a solution to linear system (11.1) is x1∗ and x2∗ , where −1 −1 b1 − a11 a12 x2∗ x1∗ a11 is the value of x1 obtained by setting x2 x2∗ in expression (11.2). Moreover, if −1 a22 a21 a11 a12 , equation (11.3) has a unique solution, namely, −1 −1 x2∗ (a22 − a21 a11 a12 )−1 (b2 − a21 a11 b1 ) .
11.11 Absorption
153
−1 −1 If a22 a21 a11 a12 , then, depending on whether or not b2 a21 a11 b1 , either any value of x2 can serve as a solution to equation (11.3), or there is no solution to equation (11.3). Let us now consider the extension of this approach to the problem of solving linear system (11.1) to that of solving a linear system comprising an arbitrary number of equations in an arbitrary number of unknowns. The basis for such an extension is provided by the following theorem. Theorem 11.11.1. Let A represent an m × n matrix and B an m × p matrix, and consider the linear system AX B (in an n × p matrix X). Partition A, B, and X as A11 A12 B1 X1 A , B , and X , A21 A22 B2 X2
where A11 , A12 , and B1 have m1 rows, A21 , A22 , and B2 have m2 rows, A11 and A21 have n1 columns, A12 and A22 have n2 columns, and X1 and X2 have n1 rows and n2 rows, respectively. Suppose that C(A12 ) ⊂ C(A11 ), C(B1 ) ⊂ C(A11 ), and R(A21 ) ⊂ R(A11 ) , − and let C A− 11 B1 and K A11 A12 or, more generally, let C represent any matrix such that A11 C B1 and K any matrix such that A11 K A12 . Then, (1) the matrix ∗ X1 X∗ (where X∗1 has n1 rows) is a solution to the linear system AX B if X∗2 and only if X∗2 is a solution to the linear system
(A22 − A21 K)X2 B2 − A21 C (in X2 )
(11.4)
and X∗1 and X∗2 form a solution to the linear system A11 X1 + A12 X2 B1 (in X1 and X2 );
(11.5)
(2) the linear system AX B is consistent if and only iflinear system (11.4) is C − KX2 consistent; (3) for any particular value of X2 , is a solution to linear X2 system (11.5), that is, A11 (C − KX2 ) + A12 X2 B1 .
In connection with Theorem 11.11.1, observe that the linear system AX B can be reexpressed in two parts as follows: A11 X1 + A12 X2 B1 , A21 X1 + A22 X2 B2 .
154
11. Linear Systems: Solutions
Observe also (in light of Lemma 4.2.2) that the existence of matrices C and K such that A11 C B1 and A11 K A12 is insured by the assumptions that C(B1 ) ⊂ C(A11 ) and C(A12 ) ⊂ C(A11 ). Proof (of Theorem 11.11.1). It is clear that, for any particular value of X2 , A11 (C − KX2 ) + A12 X2 B1 − A12 X2 + A12 X2 B1 , which establishes Part (3) of the theorem. For purposes of proving Part (1), observe (in light of Lemma 4.2.2) that, since R(A21 ) ⊂ R(A11 ), there exists a matrix L such that A21 LA11 . Thus, it follows from Part (3) that, for any solution X∗1 and X∗2 to linear system (11.5), A21 X∗1 LA11 X∗1 L(B1 − A12 X∗2 ) LA11 (C − KX∗2 ) A21 (C−KX∗2 ) .
(11.6) ∗ X1 Suppose now that X∗ is a solution to AX B. Then, it is clear that X∗1 X∗2 and X∗2 form a solution to linear system (11.5) and, in light of result (11.6), that A21 (C − KX∗2 ) + A22 X∗2 B2 , or equivalently that (A22 − A21 K)X∗2 B2 − A21 C , and hence that X∗2 is a solution to linear system (11.4). Conversely, suppose that X∗1 and X∗2 form a solution to linear system (11.5) and additionally that X∗2 is a solution to linear system (11.4). Then, A21 (C − KX∗2 ) + A22 X∗2 B2 , implying [in light of result (11.6)] that A21 X∗1 + A22 X∗2 B2
∗ X1 is a solution to AX B, which completes the proof of Part and hence that X∗2 (1) of the theorem. Finally, consider Part (2). That the consistency of AX B implies the consistency of linear system (11.4) is an obvious consequence of Part (1). Conversely, if linear system (11.4) is consistent, then by definition this linear system has a solution, say X∗2 , and, letting X∗1 C − KX∗2 , it follows from Part (3) that X∗1 ∗ and X 2 form a solution to linear system (11.5) and hence, in light of Part (1), that ∗ X1 is a solution to AX B, implying that AX B is consistent. Q.E.D. X∗2
11.11 Absorption
155
Theorem 11.11.1 can be translated into the following four-step procedure for solving the linear system AX B: (1) find matrices C and K such that A11 C B1 and A11 K A12 ; (2) form the coefficient matrix A22 − A21 K and the right side B2 − A21 C of linear system (11.4); (3) obtain a solution X∗2 to linear system (11.4); and ∗ X1 (4) form the matrix X∗1 C − KX∗2 , and take to be the solution to AX B. X∗2 In intuitive terms, this procedure consists of: (1) solving the first m1 equations of the linear system AX B for X1 in terms of X2 ; (2) “absorbing” the first m1 equations into the last m2 equations by substituting this solution for X1 into the latter equations, thereby eliminating X1 from these equations and in effect “reducing” them to linear system (11.4); (3) solving linear system (11.4); and (4) “back-solving” for X1 , using the expression for X1 obtained in solving the first m1 equations for X1 in terms of X2 . Accordingly, in the context of this procedure, linear system (11.4) is sometimes called the reduced linear system, and the procedure itself is sometimes referred to as absorption. The circumstances under which the use of absorption is advantageous are similar to those under which the use of formula (8.5.16) for the inverse of a partitioned matrix is advantageous, or more generally under which the use of formula (9.6.2) for the generalized inverse of a partioned matrix is advantageous. More specifically, the use of absorption can be advantageous if matrices C and K such that A11 C B1 and A11 K A12 are known and if the dimensions of A11 are relatively large. Under these circumstances, the effect of absorption is to replace the problem of solving the linear system AX B, which comprises m equations in n unknowns, with the problem of solving linear system (11.4), which comprises “only” m2 equations in “only” n2 unknowns. In describing absorption, it has been supposed that the first n1 rows of X are to be eliminated by absorbing the first m1 equations of the linear system into the last m2 equations. By modifying the results of Theorem 11.11.1 in a straightforward way, we could, in principle, obtain formulas for eliminating an arbitrary set of n1 rows of X by absorbing an arbitrary set of m1 equations of the linear system into the remaining equations. Another means to the same end is to rewrite any particular linear system in such a way that the unknowns to be eliminated are those in the first n1 rows and the equations to be absorbed are the first m1 equations, which can be accomplished by permuting the rows and columns of the coefficient matrix
156
11. Linear Systems: Solutions
and also the rows of the right side and of the matrix of unknowns. Consider, for example, the linear system 0 1 0 1 x1 −2 −6 2 4 8 x2 6 . 0 5 1 0 x3 −1 1 3 0 0 5 x4
(11.7)
By permuting the rows and columns of the coefficient matrix, the elements of the right side, and the unknowns, this linear system can be rewritten as 1 0 0 3 x1 5 0 1 0 5 x3 −1 0 0 1 1 x4 −2 . −6 4 8 2 6 x2 Now, let us apply Theorem 11.11.1, taking 1 0 0 3 5 x1 A11 0 1 0 , A12 5 , B1 −1 , X1 x3 , 0 0 1 1 −2 x4 A21 (−6, 4, 8), A22 (2), B2 (6), and X2 (x2 ) . It is immediately apparent that the unique choices for C and K (such that A11 C B1 and A11 K A12 ) are 5 3 C −1 and K 5 . −2 1 Thus, A22 − A21 K −8 and B2 − A21 C 56 , and the unique solution to linear system (11.4) is x2 56/(−8) −7. Moreover, for x2 −7, 26 C − KX2 34 . 5 We conclude that the unique solution to linear system (11.7) is x1 = 26, x2 = –7, x3 = 34, and x4 = 5. In solving some linear systems, it may be helpful to make repeated use of absorption. That is, the linear system (11.4) obtained by absorbing the first m1 equations of the linear system AX B into the last m2 equations could itself possibly be solved by absorption. For some linear statistical models, the use of absorption can greatly facilitate the solution of the so-called normal equations (which arise in fitting the model by least squares). One linear statistical model for which this is the case is the additive version of the two-way crossed-classification model — refer to Searle (1971, sec. 7.1).
11.12 Extensions to Systems of the Form AXC B
11.12
157
Extensions to Systems of the Form AXC B
Let X0 A− B or, more generally, let X0 represent any particular solution to a consistent linear system AX B (with an m × n coefficient matrix A, m × p right side B, and n × p matrix of unknowns X). It was established in Section 11.2 that a matrix X∗ is a solution to AX B if and only if X∗ X0 + Z∗ for some solution Z∗ to the homogeneous linear system AZ 0 (in Z). Also, in light of Theorem 11.2.1, X∗ is a solution to AX B if and only if X∗ X0 + (I − A− A)Y for some matrix Y. The following theorem generalizes these results to any consistent system of the form AXC B (where A is an m × n matrix, C a p × q matrix, and B an m × q matrix, and where X is an n × p matrix of unknowns). Theorem 11.12.1. Let X0 A− BC− or, more generally, let X0 represent any particular solution to a consistent system AXC B (in X). Then, (1) a matrix X∗ is a solution to AXC B if and only if X∗ X0 + Z∗ for some solution Z∗ to the system AZC 0 (in Z); (2) X∗ is a solution to AXC B if and only if X∗ X0 + Y − A− AYCC− for some matrix Y (of suitable dimensions); and (3) X∗ is a solution to AXC B if and only if X∗ X0 + A− AR(I − CC− ) + (I − A− A)SCC− + (I − A− A)T(I − CC− ) for some matrices R, S, and T (of suitable dimensions). Proof. Note that it follows from Theorem 9.7.1 that A− BC− is a solution to AXC B. (1) If X∗ X0 + Z∗ for some solution Z∗ to AZC 0, then AX∗ C AX0 C + AZ∗ C B + 0 B , so that X∗ is a solution to AXC B. Conversely, suppose that X∗ is a solution to AXC B. Then, X∗ X0 + Z∗ , where Z∗ X∗ − X0 . And, since AZ∗ C AX∗ C − AX0 C B − B 0 , Z∗ is a solution to AZC 0. (2) If X∗ X0 + Y − A− AYCC− for some matrix Y, then AX∗ C AX0 C + AYC − AA− AYCC− C B + AYC − AYC B , so that X∗ is a solution to AXC B. Conversely, if X∗ is a solution to AXC B, then [as a consequence of Part (1)] X∗ X0 +Z∗ for some solution Z∗ to AZC 0 and hence X∗ X0 + Z∗ − A− 0C− X0 + Z∗ − A− AZ∗ CC− ,
158
11. Linear Systems: Solutions
so that X∗ X0 + Y − A− AYCC− for Y Z∗ . (3) If X∗ X0 + A− AR(I − CC− ) + (I − A− A)SCC− + (I − A− A)T(I − CC− ) for some matrices R, S, and T, then AX∗ C
AX0 C + AA− AR(C − CC− C) + (A − AA− A)SCC− C + (A − AA− A)T(C − CC− C)
B + 0 + 0 + 0 B,
so that X∗ is a solution to AXC B. Conversely, if X∗ is a solution to AXC B, then [as a consequence of Part (2)] X∗ X0 + Y − A− AYCC− for some matrix Y, implying {since Y
[A− A + (I − A− A)]Y[CC− + (I − CC− )] A− AYCC− + A− AY(I − CC− ) + (I − A− A)YCC− + (I − A− A)Y(I − CC− )
and hence since Y − A− AYCC− A− AY(I − CC− ) + (I − A− A)YCC− + (I − A− A)Y(I − CC− )} that X∗ X0 + A− AR(I − CC− ) + (I − A− A)SCC− + (I − A− A)T(I − CC− ) for R S T Y.
Q.E.D.
Exercises Section 11.2 1. Show that, for any matrix A, C(A) N (I − AA− ) . to a linear system AX B (in X) and 2. Show that if X1 , . . . , Xk are solutions
c1 , . . . , ck are scalars such that ki1 ci 1, then the matrix ki1 ci Xi is a solution to AX B.
Exercises
159
Section 11.3 3. Let A and Z represent n × n matrices. Suppose that rank(A) n − 1, and let x and y represent nonnull n-dimensional column vectors such that Ax 0 and A y 0. (a) Show that AZ 0 if and only if Z xk for some n-dimensional row vector k . (b) Show that AZ ZA 0 if and only if Z cxy for some scalar c. 4. Suppose that AX B is a nonhomogeneous linear system (in an n × p matrix X). Let s p[n−rank(A)], and take Z1 , . . . , Zs to be any s n×p matrices that form a basis for the solution space of the homogeneous linear system AZ 0 (in an n × p matrix Z). Define X0 to be any particular solution to AX B, and let Xi X0 + Zi (i 1, . . . , s). (a) Show that the s + 1 matrices X0 , X1 , . . . , Xs are linearly independent solutions to AX B. (b) Show that every solution to AX B is expressible as a linear combination of X0 , X1 , . . . , Xs .
a solution to (c) Show that a linear combination si0 ki Xi of X0 , X1 , . . . , Xs is
AX B if and only if the scalars k0 , k1 , . . . , ks are such that si0 ki 1. (d) Show that the solution set of AX B is a proper subset of the linear space sp(X0 , X1 , . . . , Xs ). Section 11.5 5. Suppose that AX B is a consistent linear system (in an n × p matrix X). Show that, if rank(A) < n and rank(B) < p, then there exists a solution X∗ to AX B that is not expressible as X∗ GB for any generalized inverse G of A. Section 11.6 6. Use the result of Part (b) of Exercise 7.1 to generalize Lemma 11.6.1. 7. Let A represent an m × n matrix, B an m × p matrix, and C a q × m matrix, and suppose that AX B and CAX CB are linear systems (in X). (a) Show that if rank[C(A, B)] rank(A, B), then CAX CB is equivalent to AX B, thereby generalizing Lemmas 11.6.1 and 11.6.2. (b) Show that if rank[C(A, B)] < rank(A, B) and if CAX CB is consistent, then the solution set of AX B is a proper subset of that of CAX CB (i.e., there exists a solution to CAX CB that is not a solution to AX B).
160
11. Linear Systems: Solutions
(c) Show, by example, that if rank[C(A, B)] < rank(A, B) and if AX B is inconsistent, then CAX CB can be either consistent or inconsistent. Section 11.10 8. Let A represent a q × n matrix, B an m × p matrix, and C an m × q matrix; and suppose that the linear system CAX B (in an n × p matrix X) is consistent. Show that the value of AX is the same for every solution to CAX B if and only if rank(CA) rank(A). 9. Verify (1) Theorem 11.10.4 and (2) Theorem 11.10.5.
12 Projections and Projection Matrices
Projections and projection matrices, which are introduced and discussed in this chapter, are frequently encountered in discourse on linear statistical models related to the estimation of parameters and to the analysis of variance. Their appearance in such discourse can be attributed to their connection to the so-called least squares problem — one long-standing approach to the estimation of the parameters of a linear statistical model is based on “fitting” the model by least squares. Their connection to the least squares problem is described and discussed in Section 12.4.
12.1
Some General Results, Terminology, and Notation
If a matrix Y in a linear space of matrices is orthogonal to every matrix in a subspace U, Y is said to be orthogonal to U. The statement that Y is orthogonal to U is sometimes abbreviated to Y ⊥ U. Similarly, to indicate that every matrix in a subspace U is orthogonal to every matrix in a subspace W, one says that U is orthogonal to W or writes U ⊥ W. The following lemma is easy to verify. Lemma 12.1.1. Let Y represent a matrix in a linear space V, let U and W represent subspaces of V, and take {X1 , . . . , Xs } to be a set of matrices that spans U and {Z1 , . . . , Zt } to be a set that spans W. Then, Y ⊥ U if and only if Y • Xi 0 for i 1, . . . , s; that is, Y is orthogonal to U if and only if Y is orthogonal to each of the matrices X1 , . . . , Xs . And, similarly, U ⊥ W if and only if Xi • Zj 0 for i 1, . . . , s and j 1, . . . , t; that is, U is orthogonal to W if and only if each of the matrices X1 , . . . , Xs is orthogonal to each of the matrices Z1 , . . . , Zt . By applying Lemma 12.1.1 in the special case where V Rm×1 and U and W
162
12. Projections and Projection Matrices
are the column spaces of two matrices (each of which has m rows), we obtain the following corollary. Corollary 12.1.2. Let y represent an m-dimensional column vector, and let X represent an m × n matrix and Z an m × p matrix. Then, y is orthogonal to C(X) (with respect to the usual inner product) if and only if X y 0 (or equivalently if and only if y X 0). Similarly, C(X) is orthogonal to C(Z) (with respect to the usual inner product) if and only if X Z 0 (or equivalently if and only if Z X 0). Consider the following theorem. Theorem 12.1.3. Let Y represent a matrix in a linear space V, and let U represent an r-dimensional subspace of V. Then there exists a unique matrix Z in U such that (Y − Z) ⊥ U, that is, such that the difference between Y and Z is orthogonal to every matrix in U. If r 0, then Z 0, and, if r > 0, Z is expressible as Z c 1 X1 + · · · + c r Xr ,
(1.1)
where {X1 , . . . , Xr } is any orthonormal basis for U and cj Y • Xj (j 1, . . . , r). Moreover, Z Y if and only if Y ∈ U. Proof. Consider first the case where r 0. In this case, the only matrix in U is the null matrix 0. Clearly, Y − 0 is orthogonal to 0. Thus, there exists a unique matrix Z in U such that (Y − Z) ⊥ U, namely, Z 0. Moreover, it is clear that Y Z if and only if Y ∈ U. Consider now the case where r > 0. Take {X1 , . . . , Xr } to be any orthonormal basis for U, and define cj Y • Xj (j 1, . . . , r). Clearly, j cj Xj ∈ U, and Y− cj Xj • Xi (Y • Xi ) − ci 0 j
for i 1, . . . , r, implying (in light of Lemma 12.1.1) that (Y − j cj Xj ) ⊥ U. Moreover,
for any matrix X such that X ∈ U and (Y − X) ⊥ U, we find that (X − j cj Xj ) ∈ U and hence that • X− X− c j Xj cj X j j
Y−
j
j
cj X j
•
X−
j
c j Xj
− (Y − X) • X −
c j Xj
j
0−00,
so that X − j cj Xj 0 or equivalently X j cj Xj . We conclude
that there exists a unique matrix Z in U such that (Y − Z) ⊥ U, namely, Z j cj Xj . To complete the proof, observe that, if Y Z, then obviously Y ∈ U, and conversely, if Y ∈ U, then, since Y − Y 0 is orthogonal to U, Y Z. Q.E.D. Suppose that U is a subspace of a linear space V. Then, it follows from Theorem 12.1.3 that, corresponding to each matrix Y in V, there exists a unique matrix Z in
12.2 Projection of a Column Vector
163
U such that Y − Z is orthogonal to U or, equivalently (if Y ∈ U), such that Y − Z forms an angle of π/2 with every nonnull matrix in U. The matrix Z is called the orthogonal projection of Y on U or simply the projection of Y on U. Note that, for any matrix Y in U, Y itself is the projection of Y on U. The following theorem relates the projection of a linear combination of p matrices Y1 , . . . , Yp (on a subspace U of a linear space V) to the projections of Y1 , . . . , Yp (on U). Theorem 12.1.4. Let Y1 , . . . , Yp represent matrices in a linear space V, let U represent a subspace of V, and let Z1 , . . . , Zp represent the projections of Y1 , . . . , Yp , respectively, on U. Then, for any scalars k1 , . . . , kp , the projection of the linear combination k1 Y1 + · · · + kp Yp (on U) is the corresponding linear combination k1 Z1 + · · · + kp Zp of Z1 , . . . , Zp . Proof. By definition, Zi ∈ U and (Yi − Zi ) ⊥ U (i 1, . . . , p). Thus, (k1 Z1 + · · · + kp Zp ) ∈ U. Moreover, for every matrix X in U, [k1 Y1 + · · · + kp Yp − (k1 Z1 + · · · + kp Zp )] • X [k1 (Y1 − Z1 ) + · · · + kp (Yp − Zp )] • X k1 [(Y1 − Z1 ) • X] + · · · + kp [(Yp − Zp ) • X] k1 0 + · · · + kp 0 0 , so that [k1 Y1 + · · · + kp Yp − (k1 Z1 + · · · + kp Zp )] ⊥ U. We conclude that k1 Z1 + · · · + kp Zp is the projection of k1 Y1 + · · · + kp Yp on U. Q.E.D.
12.2
Projection of a Column Vector
a. Main results The following theorem gives an algebraic expression for the projection (with respect to the usual inner product) of an n-dimensional column vector on a subspace of Rn . Theorem 12.2.1. Let z represent the projection (with respect to the usual inner product) of an n-dimensional column vector y on a subspace U of Rn , and let X represent any n × p matrix whose columns span U. Then, z Xb∗
(2.1)
for any solution b∗ to the (consistent) linear system X Xb X y (in b) .
(2.2)
Proof. Suppose that b∗ is a solution to the (consistent) linear system X Xb X y. (The consistency of this linear system is evident from Theorem 7.4.1.) Then, X (y−Xb∗ ) 0, implying (in light of Corollary 12.1.2) that y−Xb∗ is orthogonal to C(X) and hence [since C(X) U] to U. Since Xb∗ ∈ U, we conclude that Xb∗ is the projection of y on U and hence, by definition, that z Xb∗ . Q.E.D.
164
12. Projections and Projection Matrices
Linear system (2.2) comprises p equations. These p equations are known as the normal equations. When the columns, say x1 , . . . , xp , of the matrix X are taken to be an orthonormal basis for U, we find that X X I and hence that the normal equations (2.2) have a unique solution b∗ (x1 y, . . . , xp y) , in which case expression (2.1) for the projection z of y on U reduces to a special case of expression (1.1). Since the vector (X X)− X y is one solution to the normal equations (2.2), we have the following corollary of Theorem 12.2.1. Corollary 12.2.2. Let z represent the projection (with respect to the usual inner product) of an n-dimensional column vector y on a subspace U of Rn , and let X represent any n × p matrix whose columns span U. Then, z X(X X)− X y .
(2.3)
A further implication of Theorem 12.2.1 is as follows: Corollary 12.2.3. Let y represent an n-dimensional column vector, X an n × p matrix, and W any n × q matrix such that C(W) C(X). Then, Wa∗ Xb∗ for any solution a∗ to the linear system W Wa W y (in a) and any solution b∗ to the linear system X Xb X y (in b). As a special case of Corollary 12.2.3, we have the following corollary. Corollary 12.2.4. Let y represent an n-dimensional column vector, and X an n × p matrix. Then, Xb1 Xb2 for any two solutions b1 and b2 to the linear system X Xb X y (in b). The following theorem gives a converse of Theorem 12.2.1. Theorem 12.2.5. Let z represent the projection (with respect to the usual inner product) of an n-dimensional column vector y on a subspace U of Rn , and let X represent any n × p matrix whose columns span U. Then any p × 1 vector b∗ such that z Xb∗ is a solution to the linear system X Xb X y (in b). Proof. In light of Theorem 12.2.1, X Xb X y has a solution, say a, and z Xa. Thus, X Xb∗ X z X Xa X y . Q.E.D.
b. Two-dimensional example Let us find the projection (with respect to the usual inner product) of an ndimensional column vector y on a subspace U of Rn in the special case where n 2, y (4, 8) , and U sp{x}, where x (3, 1) . Upon taking X to be the 2 × 1 matrix whose only column is x, the linear system X Xb X y becomes (10)b (20), which has the unique solution b (2). Thus,
i
ii
12.3 Projection Matrices
167
For any matrix X, it is clear that PX is the projection matrix for C(X). Thus, we have the following additional corollary of Theorem 12.3.1. Corollary 12.3.3. A matrix A is a projection matrix if and only if A PX for some matrix X. Certain basic properties of projection matrices are listed in the following two theorems. Theorem 12.3.4. Let X represent any n × p matrix. Then, (1) PX X X; that is, X(X X)− X X X; that is, (X X)− X is a generalized inverse of X; (2) PX XB∗ for any solution B∗ to the (consistent) linear system X XB X (in B);
(3) PX PX ; that is, PX is symmetric; that is, X[(X X)− ] X X(X X)− X ; (4) X[(X X)− ] X X X; that is, [(X X)− ] X is a generalized inverse of X;
(5) X PX X PX X ; that is, X X(X X)− X X X[(X X)− ] X X ; that is, X(X X)− and X[(X X)− ] are generalized inverses of X ; (6) PX2 PX ; that is, PX is idempotent; (7) C(PX ) C(X), and R(PX ) R(X ); (8) rank(PX ) rank(X); (9) (I − PX )2 I − PX (I − PX ) ; that is, I − PX is symmetric and idempotent; (10) rank(I − PX ) n − rank(X). Proof. (1) It follows from the very definition of a generalized inverse that X X(X X)− X X X X X XI, and, upon applying Corollary 5.3.3, we conclude that X(X X)− X X XI X. [An alternative proof of (1) is as follows: Let x1 , . . . , xp represent the columns of X. Then, according to Theorem 12.3.1, PX xi is the projection of xi on C(X), and, since xi ∈ C(X), it follows from Theorem 12.1.3 that the projection of xi on C(X) is xi . Thus, PX X (PX x1 , . . . , PX xp ) (x1 , . . . , xp ) X.] (2) If B∗ is a solution to the linear system X XB X (whose consistency was established in Corollary 7.4.2), then (according to Theorem 11.2.4) B∗ (X X)− X + [I − (X X)− X X]Y for some matrix Y, implying [in light of Part (1)] that XB∗ PX + (X − PX X)Y PX . (3) According to Corollary 9.3.4, [(X X)− ] is a generalized inverse of X X, so that [(X X)− ] X is a solution to the (consistent) linear system X XB X (in B). Thus, applying Part (2), we find that X(X X)− X PX X[(X X)− ] X .
168
12. Projections and Projection Matrices
(4) Making use of Parts (3) and (1), we find that
X[(X X)− ] X X PX X PX X X . (5) Making use of Parts (3) and (1), we find that X PX X PX (PX X) X . (6) Making use of Part (1), we find that PX2 PX X(X X)− X X(X X)− X PX . (7) Recalling Corollary 4.2.3, it is clear from the definition of PX that C(PX ) ⊂ C(X) and from Part (1) that C(X) ⊂ C(PX ). Thus, C(PX ) C(X), and (in light of Lemma 4.2.5) R(PX ) R(X ) or, equivalently [in light of Part (3)], R(PX ) R(X ). (8) That rank(PX ) rank(X) is an immediate consequence of Part (7). (9) It follows from Part (3) that the matrix I − PX is symmetric. And, in light of Lemma 10.1.2, it follows from Part (6) that I − PX is idempotent. (10) Making use of Lemma 10.2.4 and Parts (6) and (8), we find that rank(I − PX ) n − rank(PX ) n − rank(X) . Q.E.D. Theorem 12.3.5. Let X represent an n×p matrix, and let W represent any n×q matrix such that C(W) ⊂ C(X). Then, (1) PX W W, and W PX W ; (2) PX PW PW PX PW . Proof. (1) According to Lemma 4.2.2, there exists a matrix F such that W XF. Thus, making use of Parts (1) and (3) of Theorem 12.3.4, we find that PX W PX XF XF W and
W (PX W) W PX W PX .
(2) Making use of Part (1), we find that PX PW PX W(W W)− W W(W W)− W PW and similarly that PW PX W(W W)− W PX W(W W)− W PW . Q.E.D. In the special case where W X, the results of Theorem 12.3.5 reduce to results included in Parts (1), (5), and (6) of Theorem 12.3.4. Note that if X and W are any two matrices such that C(W) C(X), then it follows from Part (2) of Theorem 12.3.5 that PW PX PW PX .
12.4 Least Squares Problem
169
(That PW PX can also be deduced from Theorem 12.3.1.) Thus, we have the following corollary of Theorem 12.3.5. Corollary 12.3.6. For any two matrices X and W such that C(W) C(X), PW PX . Another result that can be deduced from Part (2) of Theorem 12.3.5 is given by the following corollary. Corollary 12.3.7. Let X represent an n × p matrix. Then, for any matrix A that is the projection matrix for some subspace U of C(X), PX A APX A . Proof. Let W represent any matrix whose columns span U. Then, according to Corollary 12.3.2, A PW . Thus, since C(W) ⊂ C(X), it follows from Part (2) of Theorem 12.3.5 that PX A APX A . Q.E.D. Suppose that a matrix A is the projection matrix for a subspace U of the linear space Rn of all n-dimensional column vectors. Let X represent any matrix whose columns span U. Then, according to Corollary 12.3.2, A PX . Thus, making use of Part (7) of Theorem 12.3.4, we find that U C(X) C(PX ) C(A) [in which case dim(U) rank(A)], thereby establishing the following theorem. Theorem 12.3.8. If a matrix A is the projection matrix for a subspace U of the linear space Rn of all n-dimensional column vectors, then U C(A), and dim(U) rank(A). Projection matrices can be characterized as follows: Theorem 12.3.9. A matrix is a projection matrix if and only if it is symmetric and idempotent. Proof. Together, Corollary 12.3.3 and Parts (3) and (6) of Theorem 12.3.4 imply that every projection matrix is symmetric and idempotent. Thus, to prove Theorem 12.3.9, it suffices to show that every symmetric idempotent matrix is a projection matrix. Suppose that A is a symmetric idempotent matrix. Then, A A A2 A, so that any generalized inverse of A A is a generalized inverse of A. Thus, PA A(A A)− A A(A A)− A A . We conclude, on the basis of Corollary 12.3.3, that A is a projection matrix. Q.E.D. Note that, together, Theorems 12.3.9 and 12.3.8 imply that if a matrix A is symmetric and idempotent, then it is the projection matrix for C(A).
12.4
Least Squares Problem
Suppose that Y is a matrix in a linear space V and that U is a subspace of V. Then, as indicated by Theorem 12.1.3, there exists a unique matrix Z in U, called
170
12. Projections and Projection Matrices
the projection of Y on U, such that the difference Y − Z between Y and Z is orthogonal to U. A fundamental property of the projection of Y on U is described in the following theorem. Theorem 12.4.1. Let Y represent a matrix in a linear space V, and let U represent a subspace of V. Then, for W ∈ U, the distance Y − W between Y and W is minimized uniquely by taking W to be the projection Z of Y on U. Moreover, Y − Z2 Y • (Y − Z) . Proof. For any matrix W in U, Y − W2
(Y − Z) − (W − Z)2
(Y − Z) • (Y − Z) − 2(Y − Z) • (W − Z) + (W − Z) • (W − Z) .
Further, W − Z is in U and, by definition, Y − Z is orthogonal to every matrix in U. Thus, (Y − Z) • (W − Z) 0, and hence Y − W2
(Y − Z) • (Y − Z) + (W − Z) • (W − Z)
≥
Y − Z2 + W − Z2 Y − Z2 ,
with equality holding if and only if W Z. It follows that, for W ∈ U, Y − W2 and, consequently, Y − W are minimized uniquely by taking W Z. That Y − Z2 Y • (Y − Z) is clear upon observing that Z ∈ U and hence that Z • (Y − Z) 0. Q.E.D. Suppose that y {yi } is an n-dimensional column vector and that U is a subspace of the linear space Rn of all n-dimensional column vectors. Consider the
problem of minimizing, for w {wi } in U, the sum of squares (y−w) (y−w) ni1 (yi − wi )2 or, equivalently, the distance [(y − w) (y − w)]1/2 (with respect to the usual norm) between y and w. This minimization problem is known as the least squares problem. The solution of the least squares problem can be obtained as a special case of Theorem 12.4.1. Theorem 12.4.1 implies that, for w ∈ U, the distance between y and w is minimized uniquely by taking w to be the projection of y on U. Thus, in light of Theorem 12.2.1, we reach the following conclusion. Theorem 12.4.2. Let U represent a subspace of the linear space Rn of all ndimensional column vectors, take X to be an n × p matrix such that C(X) U, and let y represent a vector in Rn . Then, for w ∈ U, the sum of squares (y − w) (y − w) of the elements of the difference y − w between y and w is minimized uniquely by taking w Xb∗ , where b∗ is any solution to the normal equations X Xb X y, or, equivalently, by taking w PX y. Further, the minimum value of the sum of squares is expressible as (y − Xb∗ ) (y − Xb∗ ) y (y − Xb∗ ) y (I − PX )y .
12.5 Orthogonal Complements
171
In connection with Theorem 12.4.2, observe that U comprises every n×1 vector w that is expressible as w Xb for some vector b. Thus, in light of Theorem 12.2.5, we have the following variant of Theorem 12.4.2. Theorem 12.4.3. Let X {xij } represent an n × p matrix, and y {yi } an n-dimensional column {bi } in Rp , the sum of squares
nvector. Then,
p for b 2 (y − Xb) (y − Xb) i1 (yi − j 1 xij bj ) has a minimum at a point b∗ if and only if b∗ is a solution to the normal equations X Xb X y, in which case Xb∗ PX y and (y − Xb∗ ) (y − Xb∗ ) y (y − Xb∗ ) y (I − PX )y .
12.5
Orthogonal Complements
a. Some general results, terminology, and notation The set of all matrices in a linear space V that are orthogonal to a subspace U of V is called the orthogonal complement of U relative to V or simply the orthogonal complement of U. The symbol U ⊥ is used to represent the orthonal complement of U. Note that, by definition, the orthogonal complement of a subspace U of a linear space V depends on V as well as U (and also on the choice of inner product). Since this dependence is not evident in the symbol U ⊥ , the use of this symbol is restricted to settings where the identity of the linear space V, relative to which the orthogonal complement of U is defined, is clear from the context. If U is a subspace of a linear space V, then U ⊥ is also a subspace of V, as is easily verified. As an immediate consequence of Lemma 12.1.1, we have the following lemma. Lemma 12.5.1. Let U represent a subspace of a linear space V, and let {B1 , . . . , Bk } represent any set of matrices that spans U. Then, a matrix A in V belongs to U ⊥ if and only if A is orthogonal to each of the matrices B1 , . . . , Bk . For any n × p matrix X, the symbol C ⊥ (X) is used to represent the orthogonal complement of C(X) relative to the linear space Rn of all n-dimensional column vectors (taking the inner product to be the usual inner product for Rn ). Similarly, the symbol R⊥ (X) is used to represent the orthogonal complement of R(X) relative to the linear space Rp of all p-dimensional row vectors. It follows from Corollary 12.1.2 that C ⊥ (X) is the set of all solutions to the homogeneous linear system X z 0 (in z). Thus, recalling (from Theorem 12.3.4) that X(X X)− is a generalized inverse of X , we have (in light of Corollary 11.2.2) the following lemma. Lemma 12.5.2. For any n × p matrix X, C ⊥ (X) N (X ) C(I − PX ) . As a consequence of Lemma 11.3.1 or, alternatively, Theorem 12.3.4, we have the following corollary of Lemma 12.5.2.
172
12. Projections and Projection Matrices
Corollary 12.5.3. For any n × p matrix X, dim[C ⊥ (X)] n − rank(X) n − dim[C(X)] .
(5.1)
The following theorem describes a fundamental property of the orthogonal complement of a subspace U of a linear space V. Theorem 12.5.4. A matrix A in a linear space V belongs to a subspace U of V if and only if A is orthogonal to every matrix in U ⊥ [i.e., if and only if A belongs to (U ⊥ )⊥ ]. Or, equivalently, U (U ⊥ )⊥ . Proof. Suppose that A ∈ U. Then it follows immediately from the definition of U ⊥ that A is orthogonal to every matrix in U ⊥ . Conversely, suppose that A is orthogonal to every matrix in U ⊥ . Let B represent the projection of A on U. Then, by definition, (A − B) ⊥ U or, equivalently, (A − B) ∈ U ⊥ . Thus, (A − B) • (A − B) A • (A − B) − B • (A − B) 0 − 0 0 , implying that A−B 0, or equivalently that A B, and hence that A ∈ U. Q.E.D. Various implications of Theorem 12.5.4 are set forth in the following three corollaries. Corollary 12.5.5. A subspace W of a linear space V is contained in a subspace U of V if and only if W ⊥ U ⊥ (i.e., if and only if W is orthogonal to U ⊥ ). Proof. Corollary 12.5.5 follows from Theorem 12.5.4 upon observing that W ⊥ U ⊥ ⇔ W ⊂ (U ⊥ )⊥ . Q.E.D. Corollary 12.5.6. Let U and W represent subspaces of a linear space V. Then, (1) W ⊂ U if and only if U ⊥ ⊂ W ⊥ , and (2) W U if and only if W ⊥ U ⊥ . Proof. (1) Making use of Corollary 12.5.5 and Theorem 12.5.4, we find that W ⊂ U ⇔ W ⊥ U ⊥ ⇔ (W ⊥ )⊥ ⊥ U ⊥ ⇔ U ⊥ ⊥ (W ⊥ )⊥ ⇔ U ⊥ ⊂ W ⊥ . (2) If W ⊥ U ⊥ , then W ⊥ ⊂ U ⊥ and U ⊥ ⊂ W ⊥ , implying [in light of Part (1)] that U ⊂ W and W ⊂ U and hence that W U. Conversely, if W U, then W ⊂ U and U ⊂ W, implying that U ⊥ ⊂ W ⊥ and W ⊥ ⊂ U ⊥ and hence that Q.E.D. W ⊥ U ⊥. Corollary 12.5.7. Let X represent an n × p matrix, and let Z represent any n × s matrix whose columns span C ⊥ (X) or, equivalently, span N (X ). Then, for any n × q matrix Y, C(Y) ⊂ C(X) if and only if Z Y 0 or, equivalently, if and only if Y Z 0. Proof. In light of Corollary 12.1.2 and Corollary 12.5.5, we have that Z Y 0
⇔ C(Y) ⊥ C(Z) ⇔ C(Y) ⊥ C ⊥ (X) [since, by definition, C(Z) C ⊥ (X)] ⇔ C(Y) ⊂ C(X) . Q.E.D. Note that, for any matrix Y in the orthogonal complement U ⊥ of a subspace U of a linear space V of m × n matrices, the m × n null matrix 0 is the projection of Y on U.
12.5 Orthogonal Complements
173
b. Projection on an orthogonal complement For any matrix Y in a linear space V, there is a simple relationship between the projection of Y on a subspace U and the projection of Y on the orthogonal complement U ⊥ of U. This relationship is described in the following theorem. Theorem 12.5.8. Let Y represent a matrix in a linear space V, and let U represent a subspace of V. Then the projection of Y on U ⊥ equals Y − Z, where Z is the projection of Y on U. Proof. By definition, Y − Z is orthogonal to U, and hence (Y − Z) ∈ U ⊥ . Thus, to show that Y−Z is the projection of Y on U ⊥ , it suffices to show that Y−(Y−Z) is orthogonal to U ⊥ . That is, it suffices to show that Z is orthogonal to every matrix in U ⊥ or, equivalently (in light of Theorem 12.5.4), that Z ∈ U. That Z ∈ U is clear from the definition of Z. Q.E.D. In light of Theorem 12.2.1, we have the following two corollaries of Theorem 12.5.8. Corollary 12.5.9. Let X represent an n × p matrix, and let z represent the projection (with respect to the usual inner product) of a column vector y on C ⊥ (X). Then, z y − Xb∗ for any solution b∗ to the normal equations X Xb X y (in b). In particular, z y − PX y (I − PX )y . Corollary 12.5.10. Let X represent an n × p matrix. Then, the projection matrix for C ⊥ (X) is I − PX . Various of the results included in Theorems 12.1.3 and 12.5.8 can be combined and restated as follows: Theorem 12.5.11. Let Y represent a matrix in a linear space V, and let U represent a subspace of V. Then U contains a unique matrix Z and U ⊥ a unique matrix W such that Y Z + W. Moreover, Z is the projection of Y on U, and W is the projection of Y on U ⊥ .
c. Two-dimensional example revisited Let us find, for the two-dimensional example considered previously in Section 12.2b, the projection (with respect to the usual inner product) of an n-dimensional column vector y on the orthogonal complement U ⊥ of a subspace U of Rn . Recall that y (4, 8) , U sp(x) C(X), where x (3, 1) and X is the 2 × 1 matrix whose only column is x, and that the projection of y on U is z (6, 2) . It follows from Corollary 12.5.3 and Lemma 12.5.2 that dim(U ⊥ ) dim[C ⊥ (X)] n − rank(X) 2 − 1 1 and that U ⊥ C ⊥ (X) sp(v∗ ), where v∗ is any nonnull solution to the homogeneous linear system X v 0 (in v), for example, v ∗ (1, −3) . Furthermore, the projection of y on U ⊥ is w y − z (−2, 6) , as depicted in Figure 12.3.
i
Exercises
175
e. Dimension of an orthogonal complement Formula (5.1) for the dimension of the orthogonal complement C ⊥ (X) of the column space C(X) of an n × p matrix X can be extended to the orthogonal complement of any subspace of any linear space. To do so, suppose that U is an r-dimensional subspace of an n-dimensional linear space V, define k dim(U ⊥ ), and let M {A1 , . . . , Ar } and T {B1 , . . . , Bk } represent orthonormal bases for U and U ⊥ , respectively. In addition, take S {A1 , . . . , Ar , B1 , . . . , Bk } to be the set whose members consist of the r matrices in M together with the k matrices in T. Theorem 12.5.11 implies that every matrix Y in V is expressible as Y Z + W for some matrix Z in U and some matrix W in U ⊥ and hence that the set S spans V. Moreover, since Ai ∈ U and Bj ∈ U ⊥ , Ai and Bj are orthogonal (i 1, . . . , r; j 1, . . . , k), implying that S is orthonormal and consequently linearly independent. We conclude that S is a basis for V and hence that n r + k, thereby establishing the following generalization of Corollary 12.5.3. Theorem 12.5.12. Let U represent a subspace of a linear space V. Then dim(V) dim(U) + dim(U ⊥ ) or, equivalently, dim(U ⊥ ) dim(V) − dim(U).
Exercises Section 12.1 1. Verify Lemma 12.1.1. 2. Let U and V represent subspaces of Rm×n . Show that if dim(V) > dim(U), then V contains a nonnull matrix that is orthogonal to U. Section 12.2 3. Let U represent a subspace of the linear space Rm of all m-dimensional column vectors. Take M to be the subspace of Rm×n defined by W ∈ M if and only if W (w1 , . . . , wn ) for some vectors w1 , . . . , wn in U. Let Z represent the projection (with respect to the usual inner product) of an m × n matrix Y on M, and let X represent any m × p matrix whose columns span U. Show that Z XB∗ for any solution B∗ to the linear system X XB X Y( in B).
176
12. Projections and Projection Matrices
4. For the example of Section 12.2c, recompute the projection of y on U by taking X to be the 3 × 2 matrix 0 −2 3 2 6 4 and carrying out the following two steps: (1) compute the solution to the normal equations X Xb X y; (2) postmultiply X by the solution you computed in Step (1). Section 12.3 5. Let X represent any n × p matrix. It follows from Parts (1) – (3) of Theorem 12.3.4 that if a p × n matrix B∗ is a solution to the linear system X XB X (in B), then B∗ is a generalized inverse of X, and XB∗ is symmetric. Show that, conversely, if a p × n matrix G is a generalized inverse of X, and XG is symmetric, then X XG X (i.e., G is a solution to X XB X ). 6. Using the result of Part (b) of Exercise 9.3 (or otherwise), show that, for any nonnull symmetric matrix A, PA B(TB)−1 T , where B is any matrix of full column rank and T any matrix of full row rank such that A BT. (That TB is nonsingular follows from the result of Exercise 8.3.) 7. Let V represent a k-dimensional subspace of the linear space Rn of all ndimensional column vectors. Take X to be any n × p matrix whose columns span V, let U represent a subspace of V, and define A to be the projection matrix for U. Show (1) that a matrix B (of dimensions n × n) is such that By is the projection of y on U for every y ∈ V if and only if B A + Z∗ for some solution Z∗ to the homogeneous linear system X Z 0 (in an n × n matrix Z), and (2) that, unless k n, there is more than one matrix B such that By is the projection of y on U for every y ∈ V. Section 12.5 8. Let {A1 , . . . , Ak } represent a nonempty linearly independent set of matrices in a linear space V, and define B1 , . . . , Bk as in Theorem 6.4.1. Show that Bj is the (orthogonal) projection of Aj on some subspace Uj (of V) and describe Uj (j 2, . . . , k).
13 Determinants
Determinants are encountered with considerable frequency in the statistics literature (and in the literature of various other disciplines that involve the notion of randomness). A determinant appears in the “normalizing constant” of the probability density function of the all-important multivariate normal distribution (e.g., Searle 1971, sec. 2.4f). And the definition of the generalized variance (or generalized dispersion) of a random vector involves a determinant — in the design of experiments, D-optimal designs are obtained by minimizing a generalized variance (e.g., Fedorov 1972).
13.1
Some Definitions, Notation, and Special Cases
a. Negative versus positive pairs Associated with any square matrix is a scalar that is known as the determinant of the matrix. As a preliminary to defining the determinant, it is convenient to introduce a convention for classifying various pairs of matrix elements as either positive or negative. Let A {aij } represent an arbitrary n × n matrix. Consider any pair of elements of A that do not lie either in the same row or the same column, say aij and ai j (where i i and j j ). The pair is said to be a negative pair if one of the elements is located above and to the right of the other, or equivalently if either i > i and j < j or i < i and j > j . Otherwise (if one of the elements is located above and to the left of the other, or, equivalently, if either i > i and j > j or i < i and j < j ), the pair is said to be a positive pair. Thus, the pair aij and
178
13. Determinants
ai j is classified as positive or negative in accordance with the following two-way table:
j >j j < j
i > i + –
i < i – +
For example (supposing that n ≥ 4), the pair a34 and a22 is positive, whereas the pair a34 and a41 is negative. Note that whether the pair aij and ai j is positive or negative is completely determined by the relative locations of aij and ai j and has nothing to do with whether aij and ai j are positive or negative numbers. Now, consider n elements of A, no two of which lie either in the same row or the same column, say the i1 j1 , . . . , in jn th elements (where both i1, .. . , in and j1 , . . . , jn are permutations of the first n positive integers). A total of n2 pairs can be formed from these n elements. The symbol σn (i1 , j1 ; . . . ; in , jn ) is to be used to represent the number of these n2 pairs that are negative pairs. Observe that σn (i1 , j1 ; . . . ; in , jn ) has the following two properties: (1) the value of σn (i1 , j1 ; . . . ; in , jn ) is not affected by permuting its n pairs of arguments; in particular, it is not affected if the n pairs are permuted so that they are ordered by row number or by column number [e.g., σ3 (2, 3; 1, 2; 3, 1) σ3 (1, 2; 2, 3; 3, 1) σ3 (3, 1; 1, 2; 2, 3)]; (2)
σn (i1 , j1 ; . . . ; in , jn ) σn (j1 , i1 ; . . . ; jn , in ) [e.g., σ3 (2, 3; 1, 2; 3, 1) σ3 (3, 2; 2, 1; 1, 3)].
For any sequence of n distinct integers i1 , . . . , in , define φn (i1 , . . . , in ) p1 + · · · + pn−1 , where pk represents the number of integers in the subsequence ik+1 , . . . , in that are smaller than ik (k 1, . . . , n − 1). For example, φ5 (3, 7, 2, 1, 4) 2 + 3 + 1 + 0 6 . Then, clearly, for any permutation i1 , . . . , in of the first n positive integers, σn (1, i1 ; . . . ; n, in ) σn (i1 , 1; . . . ; in , n) φn (i1 , . . . , in ) .
(1.1)
b. Definition of determinant The determinant of an n × n matrix A {aij }, to be denoted by |A| or (to avoid confusion with the absolute value of a scalar) by det A or det(A), is defined by |A| (−1)σn (1,j1 ;...;n,jn ) a1j 1 · · · anj n (1.2a) or equivalently by |A|
(−1)φn (j1 ,...,jn ) a1j 1 · · · anj n ,
(1.2b)
13.1 Some Definitions, Notation, and Special Cases
179
where j1 , . . . , jn is a permutation of the first n positive integers and the summation is over all such permutations. Thus, the determinant of an n×n matrix A can (at least in principle) be obtained via the following process: (1) Form all possible products, each of n factors, that can be obtained by picking one and only one element from each row and column of A. (2) In each product, count the number of negative pairs among the n2 pairs of elements that can be generated from the n elements that contribute to this particular product. If the number of negative pairs is an even number, attach a plus sign to the product; if it is an odd number, attach a minus sign. (3) Sum the signed products. In particular, the determinant of a 1 × 1 matrix A (a11 ) is |A| a11 ;
(1.3)
the determinant of a 2 × 2 matrix A {aij } is |A|
(−1)0 a11 a22 + (−1)1 a12 a21 a11 a22 − a12 a21 ;
(1.4)
and the determinant of a 3 × 3 matrix A {aij } is |A|
(−1)0 a11 a22 a33 + (−1)1 a11 a23 a32 + (−1)1 a12 a21 a33 +(−1)2 a12 a23 a31 + (−1)2 a13 a21 a32 + (−1)3 a13 a22 a31
a11 a22 a33 + a12 a23 a31 + a13 a21 a32 −a11 a23 a32 − a12 a21 a33 − a13 a22 a31 . (1.5) A11 A12 In the case of a partitioned matrix, say , it is customary to write A A 22 21 A11 A12 A11 A12 A21 A22 in the abbreviated form A21 A22 . An alternative definition of the determinant of an n × n matrix A is
|A| (−1)σn (i1 ,1;...;in ,n) ai1 1 · · · ain n (1.6a) (1.6b) (−1)φn (i1 ,...,in ) ai1 1 · · · ain n , where i1 , . . . , in is a permutation of the first n positive integers and the summation is over all such permutations. Definition (1.6) is equivalent to definition (1.2). To see this, observe that the product a1j 1 · · · anj n , which appears in definition (1.2), can be reexpressed by permuting the n factors a1j 1 , . . . , anj n so that they are ordered by column number, giving a1j 1 · · · anj n ai1 1 · · · ain n ,
180
13. Determinants
where i1 , . . . , in is a permutation of the first n positive integers that is defined uniquely by ji1 1, . . . , jin n . Further, σn (1, j1 ; . . . ; n, jn ) σn (i1 , ji1 ; . . . ; in , jin ) σn (i1 , 1; . . . , ; in , n) , so that (−1)σn (1,j1 ;...;n,jn ) a1j 1 · · · anj n (−1)σn (i1 ,1;···;in ,n) ai1 1 · · · ain n . Thus, we can establish a one-to-one correspondence between the terms of the sum (1.6) and the terms of the sum (1.2) such that the corresponding terms are equal. We conclude that the two sums are themselves equal. The number of terms in the sum (1.2) or (1.6) equals n!. As n increases, the number of terms grows rapidly. As a consequence, the computations required for the direct numerical evaluation of this sum can be extensive and (for even moderately large values of n) prohibitive. Representations that are better suited for computational purposes can be devised by making use of various results to be presented subsequently.
c. Diagonal, triangular, and permutation matrices There is a simple expression for the determinant of a triangular matrix, which is given by the following lemma. Lemma 13.1.1. If an n × n matrix A {aij } is (upper or lower) triangular, then |A| a11 a22 · · · ann ,
(1.7)
that is, the determinant of a triangular matrix equals the product of its diagonal elements. Proof. Consider a lower triangular matrix ... 0 a11 0 a21 a22 A . . . . .. .. .. an1 an2 · · · ann That |A| a11 a22 · · · ann follows immediately upon observing that the only term in the sum (1.2) that can be nonzero is that corresponding to the permutation j1 1, . . . , jn n [and that φn (1, 2, . . . , n) 0]. (To verify formally that only this one term can be nonzero, let j1 , . . . , jn represent an arbitrary permutation of the first n positive integers, and suppose that a1j 1 · · · anj n 0 or equivalently that aij i 0 for i 1, . . . , n. Then, it is clear that j1 1 and that, if j1 1, . . . , ji−1 i − 1, then ji i. We conclude, on the basis of mathematical induction, that j1 1, . . . , jn n).
13.2 Some Basic Properties of Determinants
181
The validity of formula (1.7) as applied to an upper triangular matrix follows from a similar argument. Q.E.D. Corollary 13.1.2. The determinant of a diagonal matrix equals the product of its diagonal elements. As obvious special cases of Corollary 13.1.2, we have that |0| 0 ,
(1.8)
|I| 1 .
(1.9)
The following lemma gives a simple expression for the determinant of a permutation matrix. Lemma 13.1.3. For an n × n permutation matrix P whose first, . . . , nth rows or columns are respectively the k1 , . . . , kn th rows or columns of the n × n identity matrix, |P| (−1)φn (k1 ,...,kn ) . Proof. Putting A P, we find that all of the terms in sum (1.6) are zero except the term corresponding to the permutation i1 k1 , . . . , in kn , which equals (−1)φn (k1 ,...,kn ) . Q.E.D.
13.2
Some Basic Properties of Determinants
The following lemma relates the determinant of a matrix to the determinant of its transpose. Lemma 13.2.1. For any n × n matrix A, |A | |A| .
(2.1)
Proof. Let aij and bij represent the ij th elements of A and A , respectively (i, j 1, . . . , n). Then, in light of the equivalence of definitions (1.6) and (1.2), (−1)φn (j1 ,...,jn ) b1j 1 · · · bnj n |A | (−1)φn (j1 ,...,jn ) aj1 1 · · · ajn n |A| , where j1 , . . . , jn is a permutation of the first n positive integers and the summations are over all such permutations. Q.E.D. As an immediate consequence of the definition of a determinant, we have the following lemma. Lemma 13.2.2. If an n × n matrix B is formed from an n × n matrix A by multiplying all of the elements of one row or one column of A by the same scalar k (and leaving the elements of the other n − 1 rows or columns unchanged), then |B| k|A| .
182
13. Determinants
As a corollary of Lemma 13.2.2, we obtain the following generalization of result (1.8). Corollary 13.2.3. If one or more rows (or columns) of an n × n matrix A are null, then |A| 0 . Proof. Suppose that the ith row of A is null, and let B represent an n × n matrix formed from A by multiplying all of the elements of the ith row of A by zero. Then, A B, and we find that |A| |B| 0|A| 0 . Q.E.D. The following corollary (of Lemma 13.2.2) relates the determinant of a scalar multiple of a matrix A to that of A itself. Corollary 13.2.4. For any n × n matrix A and any scalar k, |kA| k n |A| .
(2.2)
Proof. This result follows from Lemma 13.2.2 upon observing that kA can be formed from A by successively multiplying each of the n rows of A by k. Q.E.D. As a special case of Corollary 13.2.4, we have the following, additional corollary. Corollary 13.2.5. For any n × n matrix A, | − A| (−1)n |A| .
(2.3)
The following two theorems describe how the determinant of a matrix is affected by permuting its rows or columns in certain ways. Theorem 13.2.6. If an n × n matrix B {bij } is formed from an n × n matrix A {aij } by interchangingtwo rows or two columns of A, then |B| −|A| . Proof. Consider first the case where B is formed from A by interchanging two adjacent rows, say the ith and (i + 1)th rows. Then, |B| (−1)φn (j1 ,...,jn ) b1j 1 · · · bnj n (−1)φn (j1 ,...,jn ) a1j 1 · · · ai−1,j i−1 ai+1,j i ai,j i+1 ai+2,j i+2 · · · anj n − (−1)φn (j1 ,...,jj −1 ,ji+1 ,ji ,ji+2 ,...,jn ) × a1j 1 · · · ai−1,j i−1 ai,j i+1 ai+1,j i ai+2,j i+2 · · · anj n [since φn (j1 , . . . , ji−1 , ji+1 , ji , ji+2 . . . , jn ) φn (j1 , . . . , jn ) + 1, if ji+1 > ji , φn (j1 , . . . , jn ) − 1, if ji+1 < ji ]
−|A| ,
where j1 , . . . , jn (and hence j1 , . . . , ji−1 , ji+1 , ji , ji+2 , . . . , jn ) is a permutation of the first n positive integers and the summation is over all such permutations.
13.2 Some Basic Properties of Determinants
183
Consider now the case where B is formed from A by interchanging two notnecessarily-adjacent rows, say the ith and kth rows where k > i. Suppose that we successively interchange the kth row of A with the k − i rows immediately preceeding it, putting the n rows of A in the order 1, . . . , i − 1, k, i, i + 1, . . . , k − 1, k + 1, . . . , n. Suppose that we then further reorder the rows of A by successively interchanging what was originally the ith row with the k − i − 1 rows immediately succeeding it, putting the n rows in the order 1, . . . , i − 1, k, i + 1, . . . , k − 1, i, k + 1, . . . , n. Thus, by executing 2(k − i) − 1 successive interchanges of adjacent rows, we have in effect interchanged the ith and kth rows of A. Since each interchange of adjacent rows changes the sign of the determinant, we conclude that |B| (−1)2(k−i)−1 |A| −|A| . By employing an analogous argument, we find that the interchange of any two columns of A likewise changes the sign of the determinant. Q.E.D. Theorem 13.2.7. If B is an n × p matrix (where p < n) and C an n × q matrix (where q n − p), then |B, C| (−1)pq |C, B| . Similarly, if B is a p × n matrix and C a q × n matrix, then B (−1)pq C . B C
(2.4)
(2.5)
Proof. Suppose that the dimensions of B are n × p and those of C are n × q. Let b1 , . . . , bp represent the columns of B and c1 , . . . , cq the columns of C. Then, (C, B) (c1 , . . . , cq , b1 , . . . , bp ). Suppose that, in the matrix (C, B), we successively interchange column b1 with the columns cq , . . . , c1 , producing the matrix (b1 , c1 , . . . , cq , b2 , . . . , bp ). Suppose then that, in the latter matrix, we successively interchange column b2 with the columns cq , . . . , c1 , producing the matrix (b1 , b2 , c1 , . . . , cq , b3 , . . . , bp ). Continuing in this fashion, we produce (after p steps) the matrix (b1 , . . . , bp , c1 , . . ., cq ) (B, C). It is now clear that we can obtain the matrix (B, C) from the matrix (C, B) via a total of pq successive interchanges of columns. Thus, it follows from Theorem 13.2.6 that |B, C| (−1)pq |C, B| . Result (2.5) can be derived via an analogous approach. Q.E.D. A (square) matrix that has one or more null rows or columns has (according to Corollary 13.2.3) a zero determinant. Other matrices whose determinants are zero are described in the following two lemmas. Lemma 13.2.8. If two rows or two columns of an n × n matrix A are identical, then |A| 0. Proof. Suppose that two rows of A are identical, say the ith and and kth rows, and let B represent a matrix formed from A by interchanging its ith and kth rows.
184
13. Determinants
Obviously, B A and hence |B| |A|. Moreover, according to Theorem 13.2.6, |B| −|A|. Thus, |A| |B| −|A|, implying that |A| 0. That the determinant of a (square) matrix having two identical columns equals zero can be proved via an analogous argument. Q.E.D. Lemma 13.2.9. If a row or column of an n × n matrix A is a scalar multiple of another row or column, then |A| 0. Proof. Let a1 , . . . , an represent the rows of A. Suppose that one row is a scalar multiple of another, that is, that as kai for some s and i (with s i) and some scalar k. Let B represent a matrix formed from A by multiplying the ith row of A by the scalar k. Then, according to Lemmas 13.2.2 and 13.2.8, k|A| |B| 0 .
(2.6) as
If k 0, then it follows from equality (2.6) that |A| 0. If k 0, then 0, and it follows from Corollary 13.2.3 that |A| 0. Thus, in either case, |A| 0. An analogous argument shows that if one column of a (square) matrix is a scalar multiple of another, then again the determinant of the matrix equals zero. Q.E.D. The transposition of a (square) matrix does not (according to Lemma 13.2.1) affect its determinant. Other operations that do not affect the determinant of a matrix are described in the following two theorems. Theorem 13.2.10. Let B represent a matrix formed from an n × n matrix A by adding, to any one row or column of A, scalar multiples of one or more other rows or columns. Then, |B| |A| . Proof. Let ai (ai1 , . . . , ain ) and bi (bi1 , . . . , bin ) represent the ith rows of A and B, respectively (i 1, . . . , n). For some integer s (1 ≤ s ≤ n) and some scalars k1 , . . . , ks−1 , ks+1 , . . . , kn , bs as + ki ai and bi ai (i s). is
Thus, |B|
(−1)φn (j1 ,...,jn ) b1j 1 · · · bnj n (−1)φn (j1 ,...,jn ) × a1j 1 · · · as−1,j s−1 (asjs +
|A| +
is
ki aij s )as+1,j s+1 · · · anj n
(−1)φn (j1 ,...,jn )
is
|A| +
× aij 1 · · · as−1,j s−1 (ki aij s )as+1,js+1 · · · anj n |Bi | ,
is
where Bi is a matrix formed from A by replacing the sth row of A with ki ai and where j1 , . . . , jn is a permutation of the first n positive integers, and the (unlabeled) summations are over all such permutations.
13.3 Partitioned Matrices, Products of Matrices, and Inverse Matrices
185
Since (according to Lemma 13.2.9) |Bi | 0
(i s) ,
we conclude that |B| |A|. An analogous argument shows that |B| |A| when B is formed from A by adding, to a column of A, scalar multiples of other columns. Q.E.D. Theorem 13.2.11. For any n×n matrix A and any (upper or lower) unit triangular matrix T, |AT| |TA| |A| . (2.7) Proof. Consider the case where A is postmultiplied by T and T is unit lower triangular. Define Ti to be a matrix formed from In by replacing the ith column of In with the ith column of T (i 1, . . . , n). It is easy to verify that T T1 T2 · · · Tn and hence that AT AT1 T2 · · · Tn . Define B0 A, and Bi AT1 T2 · · · Ti (i 1, . . . , n − 1). Clearly, to show that |AT| |A|, it suffices to show that, for i 1, . . . , n, the postmultiplication of Bi−1 by Ti does not alter the determinant of Bi−1 . Observe that the columns of Bi−1 Ti are the same as those of Bi−1 , except for the ith column of Bi−1 Ti , which consists of the ith column of Bi−1 plus scalar multiples of the (i + 1), . . . , nth columns of Bi−1 . Thus, it follows from Theorem 13.2.10 that |Bi−1 Ti | |Bi−1 | . We conclude that |AT| |A|. That result (2.7) is valid for the cases of postmultiplication by a unit upper triangular matrix, and premultiplication by a unit upper or lower triangular matrix can be established via similar arguments. Q.E.D.
13.3
Partitioned Matrices, Products of Matrices, and Inverse Matrices
Formula (1.7) for the determinant of a triangular matrix can be extended to a block-triangular matrix, as indicated by the following theorem. Theorem 13.3.1. Let T represent an m × m matrix, V an n × m matrix, and W an n × n matrix. Then, T 0 W V (3.1) V W 0 T |T||W| . Proof. Let
T 0 A , V W
186
13. Determinants
and let aij represent the ij th element of A (i, j 1, . . . , m + n). By definition, (3.2) |A| (−1)φm+n (j1 ,...,jm+n ) a1j 1 · · · am+n,j m+n , where j1 , . . . , jm+n is a permutation of the first m + n positive integers and the summation is over all such permutations. Clearly, the only terms of the sum (3.2) that can be nonzero are those for which j1 , . . . , jm constitutes a permutation of the first m positive integers and thus for which jm+1 , . . . , jm+n constitutes a permutation of the integers m + 1, . . . , m + n. For any such permutation, we have that a1j 1 · · · am+n,j m+n
t1j 1 · · · tmj m w1,j m+1 −m · · · wn,j m+n −m
t1j 1 · · · tmj m w1k1 · · · wnkn ,
where tij represents the ij th element of T (i, j 1, . . . , m) and wij the ij th element of W (i, j 1, . . . , n) and where k1 jm+1 − m, . . . , kn jm+n − m, and that φm+n (j1 , . . . , jm+n )
φm (j1 , . . . , jm ) + φn (jm+1 , . . . , jm+n ) φm (j1 , . . . , jm ) + φn (jm+1 − m, . . . , jm+n − m)
Thus, |A|
φm (j1 , . . . , jm ) + φn (k1 , . . . , kn ) .
(−1)φm (j1 ,...,jm )+φn (k1 ,...,kn ) t1j 1 · · · tmj m w1k1 · · · wnkn (−1)φm (j1 ,...,jm ) t1j 1 · · · tmj m (−1)φn (k1 ,...,kn ) w1k1 · · · wnkn
|T||W| , where j1 , . . . , jm is a permutation of the first m positive integers and k1 , . . . , kn a permutation of the first n positive integers, and where the summations are over all such permutations. W V |T||W| can be established via a similar argument. That Q.E.D. 0 T The repeated application of Theorem 13.3.1 leads to the following formulas for the determinant of an arbitrary (square) upper or lower block-triangular matrix (with square diagonal blocks): A11 A12 . . . A1r 0 A22 . . . A2r (3.3) .. .. |A11 ||A22 | · · · |Arr | ; .. . . . 0 0 Arr B11 B21 .. . Br1
0 B22 .. . Br2
|B11 ||B22 | · · · |Brr | ; .. . . . . Brr ...
0 0
(3.4)
13.3 Partitioned Matrices, Products of Matrices, and Inverse Matrices
187
In the special case of a block-diagonal matrix, formula (3.3) becomes diag(A11 , A22 , . . . , Arr ) |A11 ||A22 | · · · |Arr | .
(3.5)
By making use of Theorem 13.2.7, we obtain the following corollary of Theorem 13.3.1. Corollary 13.3.2. Let T represent an m × m matrix, V an n × m matrix, and W an n × n matrix. Then, 0 T V W mn (3.6) W V T 0 (−1) |T||W| . The following corollary gives a simplified version of formula (3.6) for the special case where m n and T −In . Corollary 13.3.3. For n × n matrices W and V, 0 −In V W (3.7) W V −In 0 |W| . Proof (of Corollary 13.3.3). Corollary 13.3.3 can be derived from the special case of Corollary 13.3.2 where m n and T −In by observing that (−1)nn | − In ||W| (−1)nn (−1)n |W| (−1)n(n+1) |W| and that either n or n + 1 is an even number and consequently n(n + 1) is an even number. Q.E.D. By using Theorem 13.3.1 (and Corollary 13.3.3), together with Theorem 13.2.11, we find that, for n × n matrices A and B, A 0 A 0 I B A AB |AB| , |A||B| −I B −I B 0 I −I 0 thereby establishing the following, very important result. Theorem 13.3.4. For n × n matrices A and B, |AB| |A||B| .
(3.8)
The repeated application of Theorem 13.3.4 leads to the following formula for the product of an arbitrary number of n × n matrices A1 , A2 , . . . , Ak : |A1 A2 · · · Ak | |A1 ||A2 | · · · |Ak | .
(3.9)
As a special case of this formula, we obtain the following formula for the kth power of an n × n matrix A: |Ak | |A|k (3.10) (k 1, 2, . . .). In light of Lemma 13.2.1, we have the following corollary of Theorem 13.3.4.
188
13. Determinants
Corollary 13.3.5. For any n × n matrix A, |A A| |A|2 .
(3.11)
According to Lemma 13.1.3, a permutation matrix has a determinant whose absolute value is one. The following corollary indicates that every orthogonal matrix has this property. Corollary 13.3.6. For an orthogonal matrix P, |P| ±1 . Proof (of Corollary 13.3.6). Using Corollary 13.3.5, together with result (1.9), we find that |P|2 |P P| |I| 1 . Q.E.D. Corollary 13.2.3 and Lemmas 13.2.8 and 13.2.9 identify certain matrices that have zero determinants. These results are generalized as part of the following theorem. Theorem 13.3.7. Let A represent an n × n matrix. Then, A is nonsingular (or, equivalently, A is invertible) if and only if |A| 0, in which case |A−1 | 1/|A| .
(3.12)
Proof. It suffices to show that, if A is nonsingular, then |A| 0 and |A−1 | 1/|A| and that, if A is singular, then |A| 0. Suppose that A is nonsingular. Then, according to Theorem 13.3.4 and result (1.9), |A−1 ||A| |A−1 A| |I| 1 , implying that |A| 0 and further that |A−1 | 1/|A|. Suppose now that A is singular. Then, some column of A, say the sth column as , can be expressed as a linear combination of the other n − 1 columns a1 , . . . , as−1 , as+1 , . . . , an ; that is as ki ai is
for some scalars k1 , . . . , ks−1 , k
s+1 , . . . , kn . Now, let B represent a matrix formed from A by adding the vector − is ki ai to the sth column of A. Clearly, the sth column of B is null, and it follows from Corollary 13.2.3 that |B| 0. Moreover, it follows from Theorem 13.2.10 that |A| |B|. Thus, |A| 0. Q.E.D. The following theorem gives formulas for the determinant of a partitioned matrix that are analogous to formulas (8.5.16) and (8.5.17) for the inverse of a partitioned matrix. Theorem 13.3.8. Let T represent an m × m matrix, U an m × n matrix, V an n × m matrix, and W an n × n matrix. If T is nonsingular, then T U W V −1 (3.13) V W U T |T||W − VT U| .
13.5 Cofactors
Proof. Suppose that T is nonsingular. Then, I 0 T T U 0 V W VT−1 W − VT−1 U
U I
.
Applying Theorems 13.3.4 and 13.3.1, we find that T U −1 V W |T||W − VT U| . W V |T||W − VT−1 U| can be proved in similar fashion. That U T
13.4
189
Q.E.D.
A Computational Approach
Formula (3.8) and, more generally, formula (3.9) (for the determinant of a product of matrices) can be very useful from a computational standpoint. Suppose that A is an n × n matrix whose determinant |A| is of interest and that A can be decomposed into the product of some number of n × n matrices, each of whose determinants is easy to “evaluate.” Then, formula (3.9) can be used to evaluate |A|. Suppose, for instance, that we have obtained the QR decomposition A QR (where Q is orthogonal and R triangular) of an n × n matrix A. Then, in light of Corollary 13.3.6, |A| ±|R|; and, in light of Lemma 13.1.1, |A| can be determined (up to its absolute value) by forming the product of the diagonal elements of R.
13.5
Cofactors
Let A {aij } represent an n × n matrix. Let Aij represent the (n − 1) × (n − 1) submatrix of A obtained by striking out the row and the column that contain the element aij , that is, the ith row and the j th column. The determinant |Aij | of this submatrix is called the minor of the element aij . The “signed” minor (−1)i+j |Aij | is called the cofactor of aij . The determinant of A can be expanded in terms of the cofactors of the n elements of any particular row or column of A, as described in the following theorem. Theorem 13.5.1. Let aij represent the ij th element of an n × n matrix A, and let αij represent the cofactor of aij (i, j 1, . . . , n). Then, for i 1, . . . , n, |A|
n
aij αij ai1 αi1 + · · · + ain αin ,
(5.1)
aij αij a1j α1j + · · · + anj αnj .
(5.2)
j 1
and, for j 1, . . . , n, |A|
n i1
190
13. Determinants
Proof. Let Aij represent the matrix obtained by striking out the ith row and the j th column of A (i, j 1, . . . , n). Consider first result (5.1) for the case (j ) i 1. Denote by ats the tsth element of the matrix A1j (t, s 1, . . . , n − 1; j 1, . . . , n). We find that |A|
(−1)φn (k1 ,...,kn ) a1k1 · · · ankn (where k1 , . . . , kn is a permutation of the first n positive integers and the summation is over all such permutations) a11 (−1)φn−1 (k2 ,...,kn ) a2k2 · · · ankn + · · · (−1)j −1+φn−1 (k2 ,...,kn ) a2k2 · · · ankn + · · · + a1j (−1)n−1+φn−1 (k2 ,...,kn ) a2k2 · · · ankn + a1n (where, in the j th of the n sums, k2 , . . . , kn is a permutation of the n − 1 integers 1, . . . , j − 1, j + 1, . . . , n and the summation is
over all such permutations) (1) (1) a11 (−1)φn−1 (s1 ,...,sn−1 ) a1s · · · an−1,s + ··· 1 n−1 (j ) j −1 φn−1 (s1 ,...,sn−1 ) (j ) + a1j (−1) (−1) a1s 1 · · · an−1,s n−1 + · · · (n) (n) (−1)φn−1 (s1 ,...,sn−1 ) a1s + anj (−1)n−1 · · · an−1,s 1 n−1 (where, in each of the n sums, s1 , . . . , sn−1 is a permutation of the first n − 1 positive integers and the summation is over all such
permutations) n a1j (−1)j −1 |A1j | j 1
n
a1j (−1)j +1 |A1j |
j 1
n
a1j α1j .
j 1
Consider now result (5.1) for the case i > 1. Let B represent the n × n matrix whose first row is the ith row of A, whose second, . . ., ith rows are the first, . . . , (i − 1)th rows, respectively, of A, and whose (i + 1), . . . , nth rows are the same as those of A. Observe that A can be obtained from B by successively interchanging the first row of B with its second, . . . , ith rows, so that, according to Theorem 13.2.6, |A| (−1)i−1 |B| . Let B1j represent the matrix obtained by striking out the first row and the j th column of B, and let b1j represent the j th element of the first row of B (j
13.5 Cofactors
191
1, . . . , n). Then, B1j Aij (j 1, . . . , n), and we find that |A| (−1)i−1 |B|
(−1)i−1
n
b1j (−1)1+j |B1j |
j 1
(−1)i−1
n
aij (−1)1+j |Aij |
j 1
n
aij αij .
j 1
Finally, consider result (5.2). Observe that the matrix obtained by striking out the j th row and the ith column of A is Aij and hence that the cofactor of the j ith element of A is (−1)j +i |Aij | (−1)i+j |Aij | αij (i, j 1, . . . , n). Thus, since the j ith element of A is the ij th element of A (i, j 1, . . . , n), it follows from result (5.1) (and from Lemma 13.2.1) that |A| |A |
n
aij αij
i1
(j 1, . . . , n). Q.E.D. Note that if the j th element aij of the ith row of A equals zero, then the j th term in formula (5.1) also equals zero. Similarly, if aij 0, then the ith term in formula (5.2) equals zero. Thus, if the n × n matrix A contains a row or column that includes many zeroes, then formula (5.1) or (5.2) can be used to reexpress |A| in terms of the determinants of a relatively small number of (n − 1) × (n − 1) submatrices of A. The following theorem can be regarded as a companion to Theorem 13.5.1. Theorem 13.5.2. Let aij represent the ij th element of an n × n matrix A, and let αij represent the cofactor of aij (i, j 1, . . . , n). Then, for i i 1, . . . , n , n
aij αi j ai1 αi 1 + · · · + ain αi n 0 ,
(5.3)
j 1
and, for j j 1, . . . , n, n
aij αij a1j α1j + · · · + anj αnj 0 .
(5.4)
i1
Proof. Consider result (5.3). Let B represent a matrix whose i th row equals the ith row of A and whose first, . . . , (i − 1), (i + 1), . . . , nth rows are identical to those of A (where i i). Observe that the i th row of B is a duplicate of its ith row and hence, according to Lemma 13.2.8, that |B| 0.
192
13. Determinants
Let bkj represent the kj th element of B (k, j 1, . . . , n). Clearly, the cofactor of bi j is the same as that of ai j (j 1, . . . , n). Thus, making use of Theorem 13.5.1, we find that n
aij αi j
j 1
n
bi j αi j |B| 0 ,
j 1
which establishes result (5.3). Result (5.4) can be proved via an analogous argument. Q.E.D. For any n × n matrix A {aij }, the n × n matrix whose ij th element is the cofactor αij of aij is called the matrix of cofactors (or cofactor matrix) of A. The transpose of this matrix is called the adjoint matrix of A and is denoted by the symbol adj A or adj(A). Thus
α11 .. adj A . αn1
. . . α1n α11 .. .. .. . . . . . . αnn α1n
. . . αn1 .. . .. . . . . . αnn
If A is symmetric, then the matrix of cofactors is also symmetric (or equivalently the adjoint matrix equals the matrix of cofactors), as is easily verified. There is a close relationship between the adjoint of a nonsingular matrix A and the inverse of A, as is evident from the following theorem and is made explicit in the corollary of this theorem. Theorem 13.5.3. For an n × n matrix A, A adj(A) (adj A)A |A|In .
(5.5)
Proof. Let aij represent the ij th element of A, and let αij represent the cofactor of
naij (i, j 1, . . . , n). Then, the ii th element of the matrix product A adj(A) is j 1 aij αi j (i, i 1, . . . , n). According to Theorems 13.5.1 and 13.5.2, n
aij αi j
|A|, if i i ,
0,
j 1
if i i .
Thus, A adj(A) |A|I. That (adj A)A |A|I can be established via a similar argument. Corollary 13.5.4. If A is an n × n nonsingular matrix, then
Q.E.D.
adj(A) |A|A−1
(5.6)
A−1 (1/|A|) adj(A) .
(5.7)
or equivalently
13.6 Vandermonde Matrices
13.6
193
Vandermonde Matrices
Consider the matrix
x1 x2 .. .
x12 x22 .. .
1 xn
xn2
1 1 V . ..
. . . x1n−1 . . . x2n−1 .. , . . . . xnn−1
where x1 , x2 , . . . , xn are arbitrary scalars. A matrix of this general form is called a Vandermonde matrix, after Alexandre Theophile Vandermonde (1735–1796). Vandermonde matrices are encountered in statistics in fitting (by least squares) a polynomial (in an explanatory variable x) to the observed values of a “dependent” variable y. Let us find the determinant of V. Observe that 1n−1 A VT , (6.1) 1 0 where
1 0 0 T . .. 0 0 and
A
−xn 1 0 .. .
0 −xn 1
0 0
0 0
x1 − xn x2 − xn .. .
x1 (x1 − xn ) x2 (x2 − xn ) .. .
xn−1 − xn
xn−1 (xn−1 − xn )
... 0 0
1 0 ... ... .. .
0 0 −xn 1 x1n−2 (x1 − xn ) x2n−2 (x2 − xn ) .. .
.
n−2 . . . xn−1 (xn−1 − xn )
Note that the effect of postmultiplying V by T is to add, to the j th column of V, a scalar multiple of the preceding column (j 2, . . . , n), thereby creating a matrix whose last row is (1, 0, 0, . . . , 0). Observe also that A is expressible as A DW ,
(6.2)
where D diag(x1 − xn , x2 − xn , . . . , xn−1 − xn ) and 1 1 W . ..
x1 x2 .. .
1 xn−1
x12 x22 .. . 2 xn−1
. . . x1n−2 . . . x2n−2 .. . . n−2 . . . xn−1
194
13. Determinants
Thus, A is expressible as a product of a diagonal matrix and of the (n − 1) × (n − 1) submatrix of V obtained by deleting the last row and column of V. Note that this submatrix (i.e., the matrix W) is an (n − 1) × (n − 1) Vandermonde matrix. Making use of results (6.1) and (6.2) and of various properties of determinants (described in Theorems 13.2.11 and 13.3.4 and Corollaries 13.3.2, 13.2.5, and 13.1.2), we find that 1n−1 A (−1)n−1 |A| |V| |VT| 1 0 (−1)n−1 |D||W| | − D||W| (xn − x1 )(xn − x2 ) · · · (xn − xn−1 )|W| (6.3) Formula (6.3) serves to relate the determinant of an n × n Vandermonde matrix to that of an (n − 1) × (n − 1) Vandermonde matrix, and its repeated application allows us to evaluate the determinant of any Vandermonde matrix. Clearly, when n 2, |V| x2 − x1 ; when n 3,
|V| (x3 − x1 )(x3 − x2 )(x2 − x1 ) ;
and, in general, (xi − xj ) |V| i,j (j n for some integer s (1 ≤ s ≤ m), then at least one column of C1 1 m is null. Therefore, in light of Corollary 13.2.3, we have that {i1 ,...,im } |C| (−1)1+···+m+i1 +···+im |A{i1 ,...,im } || − I¯ , B| , (8.5) {i1 ,...,im } {i1 ,...,im }
is the n × (n − m) matrix obtained from In by striking out the i1 , where I¯ . . . , im th columns (and where {i1 , . . . , im } is an m-dimensional subset of the first n positive integers). Now, applying result (8.2), we find that {i1 ,...,im } | − I¯ , B| (−1)k1 +···+km +(n−m+1)+···+(n−1)+n {k1 ,...,km } i1 ,...,im
× |B{k1 ,...,km } || − I¯k1 ,...,km | , where {k1 . . . , km } is an m-dimensional subset of the first n positive integers i1 ,...,im 1, . . . , n [and the summation is over all mn such subsets] and where I¯k1 ,...,km is the (n − m) × (n − m) submatrix of In obtained by striking out the k1 , . . . , km th rows and i1 , . . . , im th columns. Moreover, unless {k1 , . . . , km } {i1 , . . . , im }, at i1 ,...,im least one row of I¯k1 ,...,km is null, so that m | − I¯ki11,...,i ,...,km |
| − In−m | 0,
if {k1 , . . . , km } {i1 , . . . , im } , otherwise .
Therefore, {i1 ,...,im } | − I¯ , B| (−1)i1 +···+im +(n−m+1)+···+(n−1)+n |B{i1 ,...,im } || − In−m |
(−1)i1 +···+im +(n−m+1)+···+(n−1)+n |B{i1 ,...,im } |(−1)n−m (−1)i1 +···+im +(n−m)+···+(n−1)+n |B{i1 ,...,im } | .
(8.6)
202
13. Determinants
Finally, substituting from result (8.6) in expression (8.5), we obtain |C|
(−1)1+···+m+2(i1 +···+im )+(n−m)+···+(n−1)+n {i1 ,...,im }
·|A{i1 ,...,im } ||B{i1 ,...,im } | (−1)2(i1 +···+im )+n(m+1) |Ai1 ,...,im } ||B{i1 ,...,im } | , {i1 ,...,im }
which, together with result (8.4), implies that |AB|
(−1)2(i1 +···+im ) |A{i1 ,...,im } ||B{i1 ,...,im } |
{i1 ,...,im }
|A{i1 ,...,im } ||B{i1 ,...,im } | .
{i1 ,...,im }
Q.E.D. Formula (8.3) is sometimes called the Binet-Cauchy formula. In the special case where m n, it reduces to the formula |AB| |A||B|, given by Theorem 13.3.4. Note (in light of Lemma 4.4.3 and Corollary 4.4.5) that the rank of the product AB of an m × n matrix A and an n × m matrix B is at most n, implying (in light of Theorem 13.3.7) that |AB| 0 if m > n.
Exercises Section 13.1 1. Let a11 a 21 A a31 a41
a12 a22 a32 a42
a13 a23 a33 a43
a14 a24 a34 a44
.
(a) Write out all of the pairs that can be formed from the four boxed elements of A. (b) Indicate which of the pairs from Part (a) are positive and which are negative. (c) Use formula (1.1) to compute the number of pairs from Part (a) that are negative, and check that the result of this computation is consistent with your answer to Part (b).
Exercises
203
Section 13.2 2. Consider the n × n matrix x+λ x x x + λ A . . . x
x
... ..
.
x x . x+λ
Use Theorem 13.2.10 to show that |A| λn−1 (nx + λ) . (Hint. Add the last n − 1 columns of A to the first column, and then subtract the first row of the resultant matrix from each of the last n − 1 rows). Section 13.3 3. Let A represent an n × n nonsingular matrix. Show that if the elements of A and A−1 are all integers, then |A| ±1. 4. Let T represent an m × m matrix, U an m × n matrix, V an n × m matrix, and W an n × n matrix. Show that if T is nonsingular, then V W U T mn −1 T U W V (−1) |T||W − VT U| . Section 13.5 5. Compute the determinant of the 4 × 4 matrix 0 4 0 5 1 0 −1 2 A 0 3 0 −2 0 0 −6 0 in each of the following two ways: (a) by finding and summing the nonzero terms in expression (1.2) or (1.6); (b) by repeated expansion in terms of cofactors [use formula (5.1) or (5.2) to expand |A| in terms of the determinants of 3 × 3 matrices, to expand the determinants of the 3 × 3 matrices in terms of the determinants of 2 × 2 matrices, and finally to expand the determinants of the 2 × 2 matrices in terms of the determinants of 1 × 1 matrices]. 6. Let A {aij } represent an n × n matrix. Verify that if A is symmetric, then the matrix of cofactors (of A) is also symmetric. 7. Let A represent an n × n matrix.
204
13. Determinants
(a) Show that if A is singular, then adj(A) is singular. (b) Show that det[adj(A)] [det(A)]n−1 . 8. Use formula (5.7) to verify formula (8.1.2) for the inverse of a 2×2 nonsingular matrix. 9. Let
2 0 3 A −1 0 −4
−1 1 . 5
(a) Compute the cofactor of each element of A. (b) Compute |A| by expanding |A| in terms of the cofactors of the elements of the second row of A, and then check your answer by expanding |A| in terms of the cofactors of the elements of the second column of A. (c) Use formula (5.7) to compute A−1 . 10. Let A {aij } represent an n × n matrix (where n ≥ 2), and let αij represent the cofactor of aij . (a) Show [by, for instance, making use of the result of Part (b) of Exercise 11.3] that if rank(A) = n − 1, then there exists a scalar c such that adj(A) cxy , where x {xj } and y {yi } are any nonnull n-dimensional column vectors such that Ax 0 and A y 0. Show also that c is nonzero and is expressible as c αij /(yi xj ) for any i and j such that yi 0 and xj 0. (b) Show that if rank(A) ≤ n − 2, then adj(A) 0. 11. Let A represent an n × n nonsingular matrix and b an n × 1 vector. Show that the solution to the linear system Ax b (in x) is the n × 1 vector whose j th component is |Aj |/|A| , where Aj is a matrix formed from A by substituting b for the j th column of A (j 1, . . . , n). [This result is called Cramer’s rule, after Gabriel Cramer (1704–1752).] 12. Let c represent a scalar, let x and y represent n × 1 vectors, and let A represent an n × n matrix. (a) Show that
A x
y c|A| − x adj(A) y . c
(E.1)
Exercises
205
(b) Show that, in the special case where A is nonsingular, result (E.1) can be reexpressed as A y −1 x c |A|(c − x A y) , in agreement with result (3.13). Section 13.6 13. Let Vk represent the (n − 1) × (n − 1) submatrix of the n × n Vandermonde matrix 1 x1 x12 . . . x1n−1 1 x2 x 2 . . . x n−1 2 2 V . . .. .. .. .. . . 2 n−1 1 xn xn . . . x n (where x1 , x2 , . . . , xn are arbitrary scalars) obtained by striking out the kth row and the nth (last) column (of V). Show that |V| |Vk |(−1)n−k (xk − xi ) . ik
Section 13.8 14. Show that, for n × n matrices A and B, adj(AB) adj(B)adj(A) [Hint. Use the Binet-Cauchy formula to establish that the ij th elements of adj(AB) and adj(B)adj(A) are equal.]
This page intentionally left blank
14 Linear, Bilinear, and Quadratic Forms
This chapter is devoted to certain functions (of an n-dimensional vector) that are defined in Section 14.1 and that are known as linear, bilinear, and quadratic forms. Those bilinear forms that have certain properties (known as symmetry and positive definiteness) are of interest (at least in part) because they qualify as inner products for Rn (as is discussed in Section 14.10). Quadratic (and bilinear) forms are of considerable relevance in statistics; the “sums of squares (or products)” in an analysis of variance (or covariance) table are quadratic (or bilinear) forms.
14.1
Some Terminology and Basic Results
Let a (a1 , . . . , an ) represent an arbitrary n-dimensional column vector, and n consider
the function that assigns to each vector x n (x1 , . . . , xn ) in R the value a x i ai xi . A function of x (with domain R ) that is expressible as a x for some vector a is called a linear form (in x). Thus, a linear form is a homogeneous polynomial of degree one. Note that the linear form a x can be reexpressed as x a. It is customary to refer to a1 , . . . , an as the coefficients of the linear form and to the row or column vector a or a as the coefficient vector. A function, say f (x), of x (with domain Rn ) is said to be linear if (1) f (x1 +x2 ) f (x1 ) + f (x2 ) for all vectors x1 and x2 in Rn , and (2) f (cx) cf (x) for every scalar c and every vector x in Rn . Or, equivalently, f (x) is linear if f (c1 x1 + c2 x2 + · · · + ck xk ) c1 f (x1 ) + c2 f (x2 ) + · · · + ck f (xk ) for all scalars c1 , c2 , . . . , ck and all (n-dimensional) vectors x1 , x2 , . . . , xk (where k is an integer greater than or equal to 2).
208
14. Linear, Bilinear, and Quadratic Forms
A linear form a x i ai xi is a linear function of x (x1 , . . . , xn ) , as is easily verified. The converse is also true; that is, a linear function f (x) of x is expressible as a linear form (in x). To see this, take ai f (ei ), where ei is the ith column of In (i 1, . . . , n), and observe that f (x)
f (x1 e1 + x2 e2 + · · · + xn en ) x1 f (e1 ) + x2 f (e2 ) + · · · + xn f (en ) a1 x1 + a2 x2 + · · · + an xn a x .
If the coefficient vectors a (a1 , . . . , an ) and b (b1 , . . . , bn ) of two linear forms a x and b x (in x) are equal, then clearly the two linear forms are identically equal (i.e., equal for all x). Conversely, if the two linear forms a x and b x are identically equal, then a b, as is evident from Lemma 2.3.2. Now, let A {aij } represent an arbitrary m×n matrix, and consider the function m that assigns to each pair of vectors x (x
1 , . . . , xm ) and y (y1 , . . . , yn ) (in R n and R , respectively) the value x Ay i,j aij xi xj . A function of x and y that is expressible in the form x Ay is called a bilinear form (in x and y). Thus, a bilinear form is a special kind of second-degree homogeneous polynomial (in the m + n variables x1 , . . . , xm , y1 , . . . , yn ) — one which, for fixed x, is homogeneous of first degree in y1 , . . . , yn and which, for fixed y, is homogeneous of first degree in x1 , . . . , xm . It is customary to refer to A as the matrix of the bilinear form x Ay. Note that the bilinear form x Ay can be reexpressed as y A x — a bilinear form in y and x whose matrix is A . A function, say f (x, y), of x and y is said to be bilinear if, for every fixed x, it is a linear function of y and if, for every fixed y, it is a linear function of x. For every fixed y, the bilinear form x Ay is a linear form in x — one with coefficient vector Ay. (And, for every fixed x, x Ay is a linear form in y.) Since (as noted earlier) a linear form is a linear function, a bilinear form is a bilinear function. Conversely, any bilinear function is expressible as a bilinear form. To see this, let f (x, y) represent an arbitrary bilinear function in x (x1 , . . . , xm ) and y (y1 , . . . , yn ) , and take A to be the m × n matrix with ij th element aij f (ei , uj ), where ei denotes the ith column of Im , and uj the j th column of In . Then, f (x, y) f ( xi ei , y) xi f (ei , y) i
i
xi f (ei ,
i
i
xi
j
yj uj )
j
yj f (ei , uj )
aij xi yj x Ay .
i,j
If the coefficient matrices A {aij } and B {bij } of two bilinear forms x Ay and x By (in x and y) are equal, then clearly the two bilinear forms are identically equal (i.e., equal for all x and y). Conversely, if the two bilinear forms are identically equal, then A B, as is evident upon observing that, for x ei (the ith column of In ) and y uj (the j th column of In ) aij x Ay x By bij (i 1, . . . , m; j 1, . . . , n).
14.1 Some Terminology and Basic Results
209
A bilinear form x Ay in vectors x (x1 , . . . , xn ) and y (y1 , . . . , yn ) (of the same dimensions) is said to be symmetric if x Ay y Ax for all x and y. Since y Ax (y Ax) x A y, the bilinear form x Ay is symmetric if and only if x Ay x A y for all x and y and hence if and only if A A . Thus, the bilinear form is symmetric if and only if the matrix of the bilinear form is symmetric. Finally, let A {aij } represent an arbitrary n × n matrix, and consider the function that assigns to each vector x (x1 , . . . , xn ) (in Rn ) the value x Ax aij xi xj ai xi2 + aij xi xj . i,j
i
i,j i
A function of x that is expressible in the form x Ax is called a quadratic form (in x). Thus, a quadratic form is a homogeneous polynomial of degree two. It is customary to refer to A as the matrix of the quadratic form x Ax. Clearly, the quadratic form x Ax can be obtained from the bilinear form x Ay (in x and y) simply by setting y x. Let B {bij } represent a second n × n matrix. Under what circumstances are the two quadratic forms x Ax and x Bx identically equal? Clearly, a sufficient condition for x Ax ≡ x Bx is that A B. However, except in the special case n 1, A B is not a necessary condition. For the purpose of establishing a necessary condition, suppose that x Ax ≡ x Bx. Setting x equal to the ith column of In , we find that aii x Ax x Bx bii
(i 1, . . . , n) .
(1.1)
That is, the diagonal elements of A are the same as those of B. Consider now the off-diagonal elements of A and B. Setting x equal to the n-dimensional column vector whose ith and j th elements equal one and whose remaining elements equal zero, we find that aii + aij + aj i + ajj x Ax x Bx bii + bij + bj i + bjj
(j i 1, . . . , n) . (1.2)
Together, results (1.1) and (1.2) imply that aii bii , or equivalently that
aij + aj i bij + bj i
(j i 1, . . . , n)
A + A B + B .
(1.3)
Thus, condition (1.3) is a necessary condition for x Ax and x Bx to be identically equal. It is also a sufficient condition. To see this, observe that (since a 1 × 1 matrix is symmetric) condition (1.3) implies that x Ax
(1/2)[x Ax + (x Ax) ] (1/2)(x Ax + x A x) (1/2)x (A + A )x (1/2)x (B + B )x (1/2)[x Bx + (x Bx) ] x Bx .
210
14. Linear, Bilinear, and Quadratic Forms
In summary, we have the following lemma. Lemma 14.1.1. Let A {aij } and B {bij } represent arbitrary n × n matrices. The two quadratic forms x Ax and x Bx (in x) are identically equal if and only if, for j i 1, . . . , n, aii bii and aij + aj i bij + bj i or, equivalently, if and only if A + A B + B . Note that Lemma 14.1.1 implies in particular that x A x x Ax for all x. When B is symmetric, the condition A + A B + B is equivalent to the condition B (1/2)(A+A ), and, when both A and B are symmetric, the condition A+A B+B is equivalent to the condition A B. Thus, we have the following two corollaries of Lemma 14.1.1. Corollary 14.1.2. Corresponding to any quadratic form x Ax, there is a unique symmetric matrix B such that x Bx x Ax for all x, namely, the matrix B (1/2)(A + A ). Corollary 14.1.3. For any pair of n × n symmetric matrices A and B, the two quadratic forms x Ax and x Bx (in x) are identically equal (i.e., x Ax x Bx for all x) if and only if A B. As a special case of Corollary 14.1.3 (that where B 0), we have the following, additional corollary. Corollary 14.1.4. Let A represent an n × n symmetric matrix. If x Ax 0 for every (n × 1) vector x, then A 0.
14.2 Nonnegative Definite Quadratic Forms and Matrices a. Definitions Let x Ax represent an arbitrary quadratic form [in an n-dimensional vector x (x1 , . . . , xn ) ]. The quadratic form x Ax is said to be nonnegative definite if x Ax ≥ 0 for every x in Rn . Note that x Ax 0 for at least one value of x, namely, x 0. If x Ax is nonnegative definite and if, in addition, the null vector 0 is the only value of x for which x Ax 0, then x Ax is said to be positive definite. That is, x Ax is positive definite if x Ax > 0 for every x except x 0. A quadratic form that is nonegative definite, but not positive definite, is called positive semidefinite. Thus, x Ax is positive semidefinite if x Ax ≥ 0 for every x ∈ Rn and x Ax 0 for some nonnull x. Consider, for example, the two quadratic forms x Ix x12 + x22 + · · · + xn2 and x Jx x 11 x (1 x) 1 x (x1 + x2 + · · · + xn )2 . Clearly, x Ix and x Jx are both nonnegative definite. Moreover, x Ix > 0 for all nonnull x, while (assuming that n ≥ 2) x Jx 0 for the nonnull vector x (1 − n, 1, 1, . . . , 1) . Thus, x Ix is positive definite, and x Jx is positive semidefinite. The quadratic form x Ax is said to be nonpositive definite, negative definite, or negative semidefinite if −x Ax is nonnegative definite, positive definite, or positive semidefinite, respectively. Thus, x Ax is nonpositive definite if x Ax ≤ 0 for every x in Rn , is negative definite if x Ax < 0 for every nonnull x in Rn , and is negative
14.2 Nonnegative Definite Quadratic Forms and Matrices
211
semidefinite if x Ax ≤ 0 for every x in Rn and x Ax 0 for some nonnull x. A quadratic form that is neither nonnegative definite nor nonpositive definite is said to be indefinite. Thus, x Ax is indefinite if x Ax < 0 for some x and x Ax > 0 for some (other) x. The terms nonnegative definite, positive definite, positive semidefinite, nonpositive definite, negative definite, negative semidefinite, and indefinite are applied to matrices as well as to quadratic forms. An n × n matrix A is said to be nonnegative definite, positive definite, or positive semidefinite if the quadratic form x Ax (in x) is nonnegative definite, positive definite, or positive semidefinite, respectively. Similarly, A is said to be nonpositive definite, negative definite, or negative semidefinite if the quadratic form x Ax is nonpositive definite, negative definite, or negative semidefinite, respectively, or equivalently if −A is nonnegative definite, positive definite, or positive semidefinite. Further, A is said to be indefinite if the quadratic form x Ax is indefinite or equivalently if A is neither nonnegative definite nor nonpositive definite. (Symmetric) nonnegative definite matrices are encountered with considerable frequency in linear statistical models and in other areas of statistics. In particular, the variance-covariance matrix of any random vector is inherently nonnegative definite (and symmetric). Our usage of the terms nonnegative definite, positive definite, positive semidefinite, nonpositive definite, negative definite, negative semidefinite, and indefinite differs somewhat from that employed in various other presentations. In particular, we apply these terms to both symmetric and nonsymmetric matrices, whereas in many other presentations their application to matrices is confined to symmetric matrices. Moreover, our usage of the terms positive semidefinite and negative semidefinite is not completely standard. In some presentations, these terms are used in the same way that nonnegative definite and nonpositive definite are being used here. It is instructive to consider the following lemma, which characterizes the concepts of nonnegative definiteness, positive definiteness, and positive semidefiniteness as applied to diagonal matrices and which is easy to verify. Lemma 14.2.1. Let D {di } represent an n × n diagonal matrix. Then, (1) D is nonnegative definite if and only if d1 , . . . , dn are nonnegative; (2) D is positive definite if and only if d1 , . . . , dn are positive; and (3) D is positive semidefinite if and only if di ≥ 0 for i 1, . . . , n with equality holding for one or more values of i. Suppose that an n × n symmetric matrix A is both nonnegative definite and nonpositive definite. Then, for every n × 1 vector x, x Ax ≥ 0 and −x Ax ≥ 0 (or equivalently x Ax ≤ 0). We conclude that x Ax 0 for every x and hence (in light of Corollary 14.1.4) that A 0. Thus, we have the following lemma. Lemma 14.2.2. The only n × n symmetric matrix that is both nonnegative definite and nonpositive definite is the n × n null matrix.
b. Some basic properties of nonnegative definite matrices We now consider some of the more elementary properties of nonnegative definite matrices. We do not explicitly consider the properties of nonpositive definite
212
14. Linear, Bilinear, and Quadratic Forms
matrices. However, since A is nonpositive definite, negative definite, or negative semidefinite if and only if −A is nonnegative definite, positive definite, or positive semidefinite, respectively, the properties of nonpositive definite matrices can be readily deduced from those of nonnegative definite matrices. The following two lemmas give some basic results on scalar multiples and sums of nonnegative definite matrices. Lemma 14.2.3. Let k > 0 represent a (positive) scalar, and A an n × n matrix. If A is positive definite, then kA is also positive definite; if A is positive semidefinite, then kA is also positive semidefinite. Proof. Consider the quadratic forms x Ax and x (kA)x (in x). Clearly, x (kA)x kx Ax. Thus, if x Ax is positive definite, then x (kA)x is positive definite; similarly, if x Ax is positive semidefinite, then x (kA)x is positive semidefinite. Or, equivalently, if A is positive definite, then, kA is positive definite; and if A is positive semidefinite, then kA is positive semidefinite. Q.E.D. Lemma 14.2.4. Let A and B represent n × n matrices. If A and B are both nonnegative definite, then A + B is nonnegative definite. Moreover, if either A or B is positive definite and the other is nonnegative definite (i.e., positive definite or positive semidefinite), then A + B is positive definite. Proof. Suppose that one of the two matrices, say A, is positive definite and that the other (B) is nonnegative definite. Then, for every nonnull vector x in R, x Ax > 0 and x Bx ≥ 0, and hence x (A + B)x x Ax + x Bx > 0 . Thus, A + B is positive definite. A similar argument shows that if A and B are both nonnegative definite, then A + B is nonnegative definite. Q.E.D. The repeated application of Lemma 14.2.4 leads to the following generalization. Corollary 14.2.5. Let A1 , . . . , Ak represent n × n matrices. If A1 , . . . , Ak are all nonnegative definite, then their sum A1 + · · · + Ak is also nonnegative definite. Moreover, if one or more of the matrices A1 , . . . , Ak is positive definite and the others are nonnegative definite, then A1 + · · · + Ak is positive definite. As an essentially immediate consequence of Lemma 14.1.1, we have the following lemma and corollary. Lemma 14.2.6. Let A represent an n × n matrix, and take B to be any n × n matrix such that B + B A + A . Then, A is positive definite if and only if B is positive definite, is positive semidefinite if and only if B is positive semidefinite, and is nonnegative definite if and only if B is nonnegative definite. Corollary 14.2.7. An n × n matrix A is positive definite if and only if A is positive definite and if and only if (1/2)(A + A ) is positive definite; is positive semidefinite if and only if A is positive semidefinite and if and only if (1/2)(A+A ) is positive semidefinite; and is nonnegative definite if and only if A is nonnegative definite and if and only if (1/2)(A + A ) is nonnegative definite. If A is a symmetric matrix, then A A and (1/2)(A + A ) A. Thus, it is only in the case of a nonsymmetric positive definite, positive semidefinite, or nonnegative definite matrix that Corollary 14.2.7 is meaningful.
14.2 Nonnegative Definite Quadratic Forms and Matrices
213
A basic property of positive definite matrices is described in the following lemma. Lemma 14.2.8. Any positive definite matrix is nonsingular. Proof. Let A represent an n × n positive definite matrix. For purposes of establishing a contradiction, suppose that A is singular or, equivalently, that rank(A) < n. Then, the columns of A are linearly dependent, and hence there exists a nonnull vector x∗ such that Ax∗ 0. We find that x∗ Ax∗ x∗ (Ax∗ ) x∗ 0 0 , which (since A is positive definite) establishes the desired contradication. Q.E.D. Lemma 14.2.8 implies that singular nonnegative definite matrices are positive semidefinite. However, the converse is not necessarily true. That is, there exist nonsingular positive semidefinite matrices as well as singular positive semidefinite matrices. Additional basic properties of nonnegative definite matrices are described in the following theorem and corollaries. Theorem 14.2.9. Let A represent an n×n matrix, and P an n×m matrix. (1) If A is nonnegative definite, then P AP is nonnegative definite. (2) If A is nonnegative definite and rank(P) < m, then P AP is positive semidefinite. (3) If A is positive definite and rank(P) m, then P AP is positive definite. Proof. Suppose that A is nonnegative definite (either positive definite or positive semidefinite). Then, y Ay ≥ 0 for every y in Rn and in particular for every y that is expressible in the form Px. Thus, for every m-dimensional vector x, x (P AP)x (Px) APx ≥ 0 ,
(2.1)
which establishes that P AP is nonnegative definite, thereby completing the proof of Part (1). If rank(P) < m, then rank(P AP) ≤ rank(P) < m , which (in light of Lemma 14.2.8) establishes that P AP is not positive definite and hence (since P AP is nonnegative definite) that P AP is positive semidefinite, thereby completing the proof of Part (2). If A is positive definite, then equality is attained in inequality (2.1) only when Px 0. Moreover, if rank(P) m, then (in light of Lemma 11.3.1) Px 0 implies x 0. Thus, if A is positive definite and rank(P) m, then equality is attained in inequality (2.1) only when x 0, implying (since P AP is nonnegative Q.E.D. definite) that P AP is positive definite. Corollary 14.2.10. Let A represent an n × n matrix and P an n × n nonsingular matrix. (1) If A is positive definite, then P AP is positive definite. (2) If A is positive semidefinite, then P AP is positive semidefinite. Proof. (1) That P AP is positive definite if A is positive definite is a direct consequence of Part (3) of Theorem 14.2.9.
214
14. Linear, Bilinear, and Quadratic Forms
(2) Suppose that A is positive semidefinite. Then, according to Part (1) of Theorem 14.2.9, P AP is nonnegative definite. Further, there exists a nonnull vector y such that y Ay 0. Let x P−1 y. Then, y Px, and we find that x 0 (since, otherwise, we would have that y 0) and that x (P AP)x (Px) APx y Ay 0 . Q.E.D. We conclude that P AP is positive semidefinite. Corollary 14.2.11. (1) A positive definite matrix is invertible, and its inverse is positive definite. (2) If a positive semidefinite matrix is nonsingular, then it is invertible and its inverse is positive semidefinite. Proof. (1) Let A represent a positive definite matrix. Then, according to Lemma 14.2.8, A is nonsingular and hence (according to Theorem 8.1.4) invertible. Since (A−1 ) (A−1 ) AA−1 , it follows from Part (1) of Corollary 14.2.10 [together with result (2.5)] that (A−1 ) is positive definite and hence (in light of Corollary 14.2.7) that A−1 is positive definite. (2) By employing similar reasoning, it can be shown that Part (2) of Corollary 14.2.11 follows from Part (2) of Corollary 14.2.10. Q.E.D. Corollary 14.2.12. Any principal submatrix of a positive definite matrix is positive definite; any principal submatrix of a positive semidefinite matrix is nonnegative definite. Proof. Let A represent an n × n matrix, and consider the principal submatrix of A obtained by striking out all of its rows and columns except its i1 , i2 , . . . , im th rows and columns (where i1 < i2 < · · · < im ). This submatrix is expressible as P AP, where P is the n × m matrix whose columns are the i1 , i2 , . . . , im th columns of In . Since rank(P) m, it follows from Part (3) of Theorem 14.2.9 that P AP is positive definite if A is positive definite. Further, it follows from Part (1) of Theorem 14.2.9 that P AP is nonnegative definite if A is nonnegative definite (and, in particular, if A is positive semidefinite). Q.E.D. Corollary 14.2.13. The diagonal elements of a positive definite matrix are positive; the diagonal elements of a positive semidefinite matrix are nonnegative. Proof. This corollary follows immediately from Corollary 14.2.12 upon observing (1) that the ith diagonal element of a (square) matrix A is the element of a 1×1 principal submatrix (that obtained by striking out all of the rows and columns of A except the ith row and column) and (2) that the element of a 1 × 1 positive definite matrix is positive and the element of a 1 × 1 nonnegative definite matrix is nonnegative. Q.E.D. Corollary 14.2.14. Let P represent an arbitrary n × m matrix. The m × m matrix P P is nonnegative definite. If rank(P) m, P P is positive definite; otherwise [if rank(P) < m], P P is positive semidefinite. Proof. This corollary follows from Theorem 14.2.9 upon observing that P P Q.E.D. P IP and that (as demonstrated in Subsection a) I is positive definite. Corollary 14.2.15. Let P represent an n × n nonsingular matrix and D {di } an n × n diagonal matrix. Then, (1) P DP is nonnegative definite if and only if d1 , . . . , dn are nonnegative; (2) P DP is positive definite if and only if d1 , . . . , dn are
14.3 Decomposition of Symmetric and Symmetric Nonnegative Definite Matrices
215
positive; and (3) P DP is positive semidefinite if and only if di ≥ 0 for i 1, . . . , n with equality holding for one or more values of i. Proof. Let A P DP. Then, clearly, D (P−1 ) AP−1 . Thus, it follows from Part (1) of Theorem 14.2.9 that A is nonnegative definite if and only if D is nonnegative definite; and it follows, respectively, from Parts (1) and (2) of Corollary 14.2.10 that A is positive definite if and only if D is positive definite and that A is positive semidefinite if and only if D is positive semidefinite. In light of Lemma 14.2.1, the proof is complete. Q.E.D. Corollary 14.2.16. Let A represent an n × n symmetric matrix and D {di } an n × n diagonal matrix such that P AP D for some n × n nonsingular matrix P. Then, (1) A is nonnegative definite if and only if d1 , . . . , dn are nonnegative; (2) A is positive definite if and only if d1 , . . . , dn are positive; and (3) A is positive semidefinite if and only if di ≥ 0 for i 1, . . . , n with equality holding for one or more values of i. Proof. Corollary 14.2.16 follows from Corollary 14.2.15 upon observing that A (P−1 ) DP−1 . Q.E.D. Note that Corollaries 14.2.15 and 14.2.16 can be regarded as generalizations of Lemma 14.2.1.
c. The nonnegative definiteness of symmetric idempotent matrices Suppose that A is a symmetric idempotent matrix. Then, A AA A A, and it follows from Corollary 14.2.14 that A is nonnegative definite. Thus, we have the following lemma. Lemma 14.2.17. Every symmetric idempotent matrix is nonnegative definite. Note (in light of Lemmas 14.2.8 and 10.1.1) that the n × n identity matrix In is the only n×n idempotent matrix (symmetric or otherwise) that is positive definite.
14.3
Decomposition of Symmetric and Symmetric Nonnegative Definite Matrices
According to Corollary 14.2.14, every matrix A that is expressible in the form A P P is a (symmetric) nonnegative definite matrix. Is the converse true? That is, is every symmetric nonnegative definite matrix A expressible in the form A P P? In Subsection b, it is established that the answer to this question is yes. As a preliminary, consideration is given to a closely related question, which is of some interest in its own right. Is a symmetric matrix A expressible in the form A P DP, where P is a nonsingular matrix and D a diagonal matrix? In Subsection a, it is established that the answer to this question is also yes. In what follows, it will be convenient to have at our disposal the following lemma. Lemma 14.3.1. Let A represent an n × n matrix and D an n × n diagonal matrix
216
14. Linear, Bilinear, and Quadratic Forms
such that A PDQ for some n × n nonsingular matrices P and Q. Then, rank(A) equals the number of nonzero diagonal elements in D. Proof. Making use of Corollary 8.3.3, we find that rank(A) rank(PDQ) rank(DQ) rank(D) . Moreover, rank(D) equals the number of nonzero diagonal elements in D. Q.E.D.
a. Decomposition of symmetric matrices Let us begin by establishing the following two lemmas. Lemma 14.3.2. Let A {aij } represent an n × n symmetric matrix (where n ≥ 2). Define B {bij} L AL, n unit lower where L is an n × triangular 1 0 a11 a matrix of the form L . Partition A as A . Suppose In−1 a A22 that a11 0, but that a 0 or, equivalently, that a1j 0 for some j (greater than 1), say j k. Then, the (n − 1)-dimensional vector can be chosen so that b11 0; this can be done by taking the (k − 1)th element of to be any nonzero scalar c such that cakk −2a1k and by taking the other n − 2 elements of to be zero. Proof. Since a1k 0, there exists (whether or not akk 0) a nonzero scalar c such that cakk −2a1k . Taking the (k − 1)th element of to be any such nonzero scalar c and the remaining elements of to be zero, we find that b11
a11 + a + a + A22 0 + cak1 + ca1k + c2 akk
c(cakk + 2a1k ) 0 .
Q.E.D. Lemma 14.3.3. Let A {aij } represent an n × n symmetric matrix (where n ≥ 2). Define B {bij} U AU, where U is an n × n unit upper triangular b11 b 1 u . Partition B and A as B and matrix of the form U 0 In−1 b B22 a a A 11 . Suppose that a11 0. Then, the (n − 1)-dimensional vector u a A22 −1 can be chosen so that b 0; this can be done by taking u −a11 a. Proof. We find that 1 b (u, I)A a11 u + a , 0 −1 which, for u −a11 a, gives b a − a 0. Q.E.D. We are now in a position to establish the following theorem. Theorem 14.3.4. Corresponding to any n × n symmetric matrix A, there exists a nonsingular matrix Q such that Q AQ is a diagonal matrix. Proof. The proof is by mathematical induction. The theorem is clearly true for any 1 × 1 matrix. Suppose now that it is true for any (n − 1) × (n − 1) symmetric
14.3 Decomposition of Symmetric and Symmetric Nonnegative Definite Matrices
217
matrix, and consider an arbitrary n × n symmetric matrix A {aij }. For purposes of establishing the existence of a nonsingular matrix Q such that Q AQ is diagonal, a a it is convenient to partition A as A 11 and to proceed case-by-case. a A22 Case (1): a 0. The submatrix A22 is an (n−1)×(n−1) matrix. Thus, by supposition, there exists a nonsingular matrix Q∗ such that Q∗ A22 Q∗ is a diagonal matrix. Take Q diag(1, Q∗ ). Then, Q is nonsingular, and Q AQ diag(a11 , Q∗ A22 Q∗ ), which (like Q∗ A22 Q∗ ) is a diagonal matrix. Case (2): a 0 and a11 0. According to Lemma 14.3.3, there exists a unit upper triangular matrix U such that U AU diag(b11 , B22 ) for some scalar b11 and some (n − 1) × (n − 1) matrix B22 . Moreover, by supposition, there exists a nonsingular matrix Q∗ such that Q∗ B22 Q∗ is a diagonal matrix. Take Q U diag(1, Q∗ ). Then, Q is nonsingular (since Q is the product of two nonsingular matrices), and Q AQ diag(1, Q∗ ) diag(b11 , B22 ) diag(1, Q∗ ) diag(b11 , Q∗ B22 Q∗ ) , which (like Q∗ B22 Q∗ ) is a diagonal matrix. Case (3): a 0, but a11 0. Let B {bij } L AL, where L is a unit lower triangular matrix chosen so that b11 0 — the existence of such a choice is guaranteed by Lemma 14.3.2. Then, according to Lemma 14.3.3, there exists a unit upper triangular matrix U such that U BU diag(c11 , C22 ) for some scalar c11 and some (n − 1) × (n − 1) matrix C22 . Moreover, by supposition, there exists a nonsingular matrix Q∗ such that Q∗ C22 Q∗ is a diagonal matrix. Take Q LU diag(1, Q∗ ). Then, Q is nonsingular (since Q is the product of three nonsingular matrices), and Q AQ diag(1, Q∗ )U BU diag(1, Q∗ ) diag(1, Q∗ ) diag(c11 , C22 ) diag(1, Q∗ ) diag(c11 , Q∗ C22 Q∗ ) , Q.E.D. which (like Q∗ C22 Q∗ ) is a diagonal matrix. Note that if Q is a nonsingular matrix such that Q AQ D for some diagonal matrix D, then A (Q−1 ) Q AQQ−1 (Q−1 ) DQ−1 . Thus, we have the following corollary of Theorem 14.3.4. Corollary 14.3.5. Corresponding to any n × n symmetric matrix A, there exists a nonsingular matrix P and a diagonal matrix D such that A P DP. Corollary 14.3.5 leads to the following result on quadratic forms. Corollary 14.3.6. Let A represent an n × n matrix. Then, there exists a nonsingular matrix P and n scalars d1 , . . . , dn such that the quadratic
form x Ax (in an n-dimensional vector x) is expressible as a linear combination ni1 di yi2 of the squares of the elements y1 , . . . , yn of the transformed vector y Px. Proof. According to Corollary 14.1.2, there is a unique symmetric matrix B such that x Ax x Bx for all x, namely, the matrix B (1/2)(A + A ). And, according to Corollary 14.3.5, there exists a nonsingular matrix P and a diagonal matrix D
218
14. Linear, Bilinear, and Quadratic Forms
such that B P DP. Thus, letting d1 , . . . , dn represent the diagonal elements of D and y1 , . . . , yn the elements of the vector y Px, we find that di yi2 . x Ax x P DPx (Px) DPx i
Q.E.D.
b. Decomposition of symmetric nonnegative definite matrices Let us now specialize to symmetric nonnegative definite matrices, beginning with the following theorem. Theorem 14.3.7. An n × n (nonnull) matrix A is a symmetric nonnegative definite matrix of rank r if and only if there exists an r × n matrix P of rank r such that A P P. Proof. Suppose that A is a symmetric nonnegative definite matrix of rank r. Then, according to Corollary 14.3.5, there exists a nonsingular matrix T and a diagonal matrix D such that A T DT. Let d1 , . . . , dn represent the first, . . . , nth diagonal elements of D, and t1 , . . . , tn the first, . . . , nth rows of T. It follows from Lemma 14.3.1 that r of the diagonal elements of D, say the k1 , . . . , kr th diagonal elements, are nonzero (and hence, in light of Corollary 14.2.15, are positive). Now, take P to be the r × n matrix whose ith row is dki tki . Then, A
n k1
dk tk tk
r i1
dki tki tki
r i1
dki tki ( dki tki ) P P ,
and rank(P) rank(P P) rank(A) r. Conversely, if there exists an r × n matrix P of rank r such that A P P, then rank(A) rank(P P) rank(P) r , A is symmetric, and (according to Corollary 14.2.14) A is nonnegative definite. Q.E.D. In light of Corollary 14.2.14 (and upon observing that 0 0 0), we have the following corollary of Theorem 14.3.7. Corollary 14.3.8. An n × n matrix A is a symmetric nonnegative definite matrix if and only if there exists a matrix P (having n columns) such that A P P. As a further corollary of Theorem 14.3.7, we have the following result on quadratic forms. Corollary 14.3.9. Let A represent an n × n (nonnull) matrix, and let r rank(A + A ). Then, the quadratic form x Ax (in an n-dimensional vector x) is nonnegative definite if and only if, for some r × n matrix P of rank r, x Ax (Px) Px for all x (i.e., x Ax is expressible as the sum of squares of the elements of the vector Px). Proof. According to Corollary 14.1.2, there is a unique symmetric matrix B such that x Ax x Bx for all x, namely, the matrix B (1/2)(A + A ). Suppose that
14.3 Decomposition of Symmetric and Symmetric Nonnegative Definite Matrices
219
the quadratic form x Ax, or equivalently the quadratic form x Bx, is nonnegative definite, in which case B is a nonnegative definite matrix. Then, it follows from Theorem 14.3.7 that there exists an r × n matrix P of rank r such that B P P and hence such that x Bx (Px) Px for all x or, equivalently, such that x Ax (Px) Px for all x. Conversely, suppose that, for some r × n matrix P of rank r, x Ax (Px) Px for all x or, equivalently, x Ax x P Px for all x. Since (according to Theorem 14.3.7 or, alternatively, according to Corollary 14.2.14) P P is a nonnegative definite matrix, x P Px, or equivalently x Ax, is a nonnegative definite quadratic form. Q.E.D. Further implications of Theorem 14.3.7 are given in Corollaries 14.3.10 to 14.3.12. Corollary 14.3.10. Let A represent an n × n matrix, let r rank(A), and take m to be any positive integer greater than or equal to r. If A is symmetric and nonnegative definite, then there exists an m × n matrix P such that A P P. Proof. Suppose that r > 0. (When r 0, A 0 0.) Accordingto Theorem P1 14.3.7, there exists an r × n matrix P1 such that A P1 P1 . Take P . Then, 0 Q.E.D. clearly, A P P. Corollary 14.3.11. For any n×m matrix X and any n×n symmetric nonnegative definite matrix A, AX 0 if and only if X AX 0. Proof. According to Corollary 14.3.8, there exists a matrix P such that A P P and hence such that X AX (PX) PX. Thus, if X AX 0, then (in light of Corollary 5.3.2) PX 0, implying that AX P (PX) 0. Q.E.D. That X AX 0 if AX 0 is obvious. Corollary 14.3.12. A symmetric nonnegative definite matrix is positive definite if and only if it is nonsingular (or, equivalently, is positive semidefinite if and only if it is singular). Proof. Let A represent an n × n symmetric nonnegative definite matrix. If A is positive definite, then we have, as an immediate consequence of Lemma 14.2.8, that A is nonsingular. Suppose now that the symmetric nonnegative definite matrix A is nonsingular, and consider the quadratic form x Ax (in x). If x Ax 0, then, according to Corollary 14.3.11, Ax 0, and consequently x A−1 Ax 0. Thus, the quadratic form x Ax is positive definite and hence the matrix A is positive definite. Q.E.D. As a special case of Theorem 14.3.7 (that where r n), we have (in light of Corollary 14.3.12) the following corollary. Corollary 14.3.13. An n × n matrix A is a symmetric positive definite matrix if and only if there exists a nonsingular matrix P such that A P P. Corollary 14.3.13 is a variant of Theorem 14.3.7 that is specific to symmetric positive definite matrices. Similarly, the following corollary is a variant of Corollary 14.3.9 that is specific to positive definite quadratic forms. Corollary 14.3.14. A quadratic form x Ax (in an n-dimensional vector x) is positive definite if and only if, for some n×n nonsingular matrix P, x Ax (Px) Px
220
14. Linear, Bilinear, and Quadratic Forms
for all x (i.e., x Ax is expressible as the sum of squares of the elements of the vector Px). Proof. If x Ax is positive definite, then (according to Corollary 14.2.7) (1/2)(A + A ) is positive definite and hence (in light of Lemma 14.2.8) is of rank n, so that it follows from Corollary 14.3.9 that, for some n × n nonsingular matrix P, x Ax (Px) Px for all x. Conversely, if for some n × n nonsingular matrix P, x Ax (Px) Px for all x, then, since (according to Corollary 14.2.14 or Corollary 14.3.13) P P is positive definite, x Ax (which equals x P Px) is positive definite. Q.E.D.
14.4 Generalized Inverses of Symmetric Nonnegative Definite Matrices A symmetric positive definite matrix is invertible, and its inverse is positive definite and symmetric [Corollary 14.2.11 and result (8.2.4)]. A symmetric positive semidefinite matrix is not invertible (Corollary 14.3.12). What is the nature of a generalized inverse of a symmetric positive semidefinite matrix? In particular, are some or all of the generalized inverses of a symmetric positive semidefinite matrix nonnegative definite? Let A represent an n × n matrix of rank r, and suppose that A PDQ ,
(4.1)
where P and Q are (n × n) nonsingular matrices and D {di } is an n × n diagonal matrix. According to Lemma 14.3.1, r of the diagonal elements of D, say the i1 , . . . , ir th diagonal elements, are nonzero and the other n − r diagonal elements of D equal zero. Let S {i1 , i2 , . . . , ir } and denote by S¯ the set whose elements consist of those n − r of the first n positive integers 1, 2, . . . , n not contained in S. Let D∗ represent an n × n matrix of the general form D∗ diag(d1∗ , d2∗ , . . . , dn∗ ) , ¯ di∗ is an arbitrary scalar. Note that D∗ where, for i ∈ S, di∗ 1/di and, for i ∈ S, is a generalized inverse of D. Define G Q−1 D− P−1 and G∗ Q−1 D∗ P−1 . According to Lemma 9.2.4, G is a generalized inverse of A. In particular, G∗ is a generalized inverse of A. Suppose now that A is symmetric and that decomposition (4.1) is such that P Q , so that decomposition (4.1) is of the form A Q DQ .
(4.2)
G∗ Q−1 D∗ (Q−1 ) .
(4.3)
Then, in light of result (8.2.3),
14.5 LDU, U DU, and Cholesky Decompositions
221
Thus, G∗ is a symmetric generalized inverse of A. Moreover, if di∗ is chosen to be ¯ then G∗ is a (symmetric) nonsingular generalized inverse nonzero for every i in S, of A. Next, suppose that A is nonnegative definite, as well as symmetric — and continue to suppose that P Q and hence that decomposition (4.1) is of the form (4.2). Then it follows from Corollary 14.2.15 that di∗ > 0 for every i in S. Thus, ¯ then (in light of Corollary if di∗ is chosen to be greater than zero for every i in S, ∗ 14.2.15) G is a symmetric positive definite generalized inverse of A. (If di is chosen to be greater than or equal to zero for all i in S¯ and equal to zero for at least ¯ then G∗ is positive semidefinite; if di is chosen to be less than zero for one i in S, ¯ then — assuming that A is nonnull — G∗ is indefinite.) Since at least one i in S, (according to Corollary 14.3.5) every symmetric matrix has a decomposition of the form (4.2), we have the following lemma. Lemma 14.4.1. Every symmetric nonnegative definite matrix has a symmetric positive definite generalized inverse.
14.5
LDU, U DU, and Cholesky Decompositions
It was established in Section 14.3 that every symmetric nonnegative definite matrix A has a decomposition of the form A P P. Stronger versions of this result are possible. In fact, it is shown in the present section that every symmetric nonnegative definite matrix A has a decomposition of the form A T T, where T is an upper triangular matrix. [And, in a subsequent chapter (Section 21.9), it is shown that A has a (unique) decomposition of the form A R2 , where R is a symmetric nonnegative definite matrix.] It is convenient to begin by considering some general questions about the decomposition of (not necessarily nonnegative definite) matrices. Is a square matrix A expressible in the form A LDU, where L is a unit lower triangular matrix, D is a diagonal matrix, and U is a unit upper triangular matrix? And, more specifically, is a symmetric matrix A expressible in the form A U DU? Subsequently, the term LDU decomposition is used for any decomposition of the form A LDU and the term U DU decomposition for any decomposition of the form A U DU.
a. Some preliminary results The following lemma relates the LDU decomposition of an n × n matrix A to that of the leading (n − 1) × (n − 1) principal submatrix of A. Lemma 14.5.1. Let A represent an n×n matrix, L an n×n unit lower triangular matrix, U an n × n unit upper triangular matrix, and D an n × n diagonal matrix (where n ≥ 2). Partition A, L, U, and D as
A∗ A b
a L∗ , L c
0 U∗ , U 0 1
u D∗ , and D 1 0
0 k
,
222
14. Linear, Bilinear, and Quadratic Forms
where A∗ , L∗ , U∗ , and D∗ are of dimensions (n − 1) × (n − 1). Then, A LDU if and only if L∗ D∗ U∗ A∗ , (5.1a)
and
L ∗ D∗ u a ,
(5.1b)
U∗ D∗ b ,
(5.1c)
k c − D∗ u .
(5.1d)
Lemma 14.5.1 can be verified simply by equating the four submatrices A∗ , a, b , and c to the corresponding submatrices of the matrix product LDU. With regard to condition (5.1a), note that L∗ is a principal submatrix of a unit lower triangular matrix and hence is itself unit lower triangular, and similarly that U∗ is unit upper triangular and D∗ is diagonal. Thus, condition (5.1a) states that L∗ D∗ U∗ is an LDU decomposition of A∗ . The following theorem relates the existence and construction of an LDU or U DU decomposition of an n × n matrix to the existence and construction of an LDU or U DU decomposition of the leading (n − 1) × (n − 1) principal submatrix of A. Theorem 14.5.2. Let A represent an n × n matrix (where n ≥ 2), and partition A as A∗ a A , b c where A∗ is of dimensions (n − 1) × (n − 1). (1) If A∗ has an LDU decomposition, say A∗ L∗ D∗ U∗ , and if a ∈ C(A∗ ) and b ∈ R(A∗ ), then there exist vectors and u such that U∗ D∗ b and L∗ D∗ u a, and, taking and u to be any such vectors and taking k c − D∗ u, an LDU decomposition of A is U∗ u D∗ 0 L∗ 0 . (5.2) A 1 0 k 0 1 (1 ) If A is symmetric (in which case A∗ A∗ and b a), if A∗ has a U DU decomposition, say A∗ U∗ D∗ U∗ , and if a ∈ C(A∗ ), then there exists a vector u such that U∗ D∗ u a, and, taking u to be any such vector and taking k c − u D∗ u, a U DU decomposition of A is D∗ 0 U∗ u U∗ u . (5.3) A 0 1 0 k 0 1 (2) The matrix A has an LDU decomposition only if A∗ has an LDU decomposition, a ∈ C(A∗ ), and b ∈ R(A∗ ). (2 ) The matrix A has a U DU decomposition only if A is symmetric, A∗ has a U DU decomposition, and a ∈ C(A∗ ).
14.5 LDU, U DU, and Cholesky Decompositions
223
Proof. (1) Suppose that A∗ has an LDU decomposition, say A∗ L∗ D∗ U∗ , and that a ∈ C(A∗ ) and b ∈ R(A∗ ). Then, there exist vectors r and s such that a A∗ r and b s A∗ . Since U∗ D∗ (L∗ s) A∗ s b, and L∗ D∗ (U∗ r) A∗ r a, there exist vectors and u such that U∗ D∗ b and L∗ D∗ u a. Moreover, equality (5.2) is an immediate consequence of Lemma 14.5.1. (1 ) If A∗ A∗ , then a ∈ C(A∗ ) implies a ∈ R(A∗ ). Thus, Part (1 ) can be obtained as a special case of Part (1) by putting b a and L∗ U∗ and setting u. (2) and (2 ). Suppose that A has an LDU decomposition, say A LDU. Partition L, U, and D as D∗ 0 U∗ u L 0 , and D , , U L ∗ 0 1 0 k 1 where L∗ , U∗ , and D∗ are of dimensions (n − 1) × (n − 1). Then, it follows from Lemma 14.5.1 that A∗ L∗ D∗ U∗ and hence that A∗ has an LDU decomposition. As a further consequence, we have that a L∗ D∗ u A∗ U−1 ∗ u ∈ C(A∗ ) and b D∗ U∗ L−1 A ∈ R(A ). ∗ ∗ ∗ In the special case where L U (i.e., where A LDU is a U DU decomposition), we have that L∗ U∗ and hence that A∗ U∗ D∗ U∗ . Thus, if A has a U DU decomposition, then A∗ also has a U DU decomposition. Moreover, if A Q.E.D. has a U DU decomposition, then clearly A is symmetric. Note that, together, Parts (1) and (2) of Theorem 14.5.2 imply, in particular, that A has an LDU decomposition if and only if A∗ has an LDU decomposition, a ∈ C(A∗ ), and b ∈ R(A∗ ). Similarly, Parts (1 ) and (2 ) imply that A has a U DU decomposition if and only if A is symmetric, A∗ has a U DU decomposition, and a ∈ C(A∗ ). The following theorem relates the LDU decomposition of any leading principal submatrix of an n × n matrix A to that of A itself. Theorem 14.5.3. Let A represent an n × n matrix (where n ≥ 2), and let A11 represent the k × k leading principal submatrix of A (where 1 ≤ k ≤ n − 1). Suppose that A has an LDU decomposition, say A LDU, and partition L, U, and D as U11 U12 D1 0 L11 0 , U , and D , L L21 L22 0 D2 0 U22 where the dimensions of L11 , U11 , and D1 are k × k. Then, an LDU decomposition of A11 is A11 L11 D1 U11 . Theorem 14.5.3 can be verified simply by equating A11 to the k × k leading principal submatrix of the matrix product LDU. Note that, in the special case of Theorem 14.5.3 where A LDU is a U DU decomposition (i.e., where L U ), L11 U11 and hence A11 L11 D1 U11 is a U DU decomposition of A11 . Theorem 14.5.3 implies in particular that if A has an LDU or U DU decomposition, then each of its leading principal submatrices has, respectively, an LDU or U DU decomposition.
224
14. Linear, Bilinear, and Quadratic Forms
b. Existence, recursive construction, and uniqueness of an LDU or U DU decomposition It is easy to see that a 1×1 matrix A has a (unique) LDU (and U DU) decomposition, namely, A (1)A(1). The following theorem gives results on the existence and recursive construction of an LDU or U DU decomposition of a (square) matrix of order two or more. Theorem 14.5.4. Let A {aij } represent an n×n matrix (where n ≥ 2). Denote by Ai the leading principal submatrix of A of order i (i 1, . . . , n). For i 2, . . . , n, take ai (a1i , . . . , ai−1,i ) and bi (ai1 , . . . , ai,i−1 ), or equivalently define ai and bi by Ai−1 ai . Ai bi aii (1) Let L1 (1), U1 (1), and D1 (a11 ), and suppose that, for i 2, . . . , n, ai ∈ C(Ai−1 ) and bi ∈ R(Ai−1 ). Then, for i 2, . . . , n, there exist a unit lower triangular matrix Li , a unit upper triangular matrix Ui , and a diagonal matrix Di such that Li−1 0 Ui−1 ui Di−1 0 Li , (5.4) , U , D i i i 0 di 1 0 1 where Ui−1 Di−1 i bi , Li−1 Di−1 ui ai , and di aii −i Di−1 ui ; and, taking Li , Ui , and Di to be any such matrices, an LDU decomposition of Ai is Ai Li Di Ui . In particular, an LDU decomposition of A is A Ln Dn Un . (1 ) Let U1 (1) and D1 (a11 ), and suppose that A is symmetric (in which case Ai−1 Ai−1 and bi ai for i 2, . . . , n) and that, for i 2, . . . , n, ai ∈ C(Ai−1 ). Then, for i 2, . . . , n, there exist a unit upper triangular matrix Ui and a diagonal matrix Di such that Ui
Ui−1 0
ui 1
,
Di
Di−1 0
0 di
,
(5.5)
where Ui−1 Di−1 ui ai and di aii − ui Di−1 ui ; and taking Ui and Di to be any such matrices, a U DU decomposition of Ai is Ai Ui Di Ui . In particular, a U DU decomposition of A is A Un Dn Un . (2) The matrix A has an LDU decomposition only if, for i 2, . . . , n, ai ∈ C(Ai−1 ) and bi ∈ R(Ai−1 ). (2 ) The matrix A has a U DU decomposition only if A is symmetric and, for i 2, . . . , n, ai ∈ C(Ai−1 ). Proof. (1) For purposes of proving Part (1), suppose that, for i 2, . . . , n, ai ∈ C(Ai−1 ) and bi ∈ R(Ai−1 ). The proof is by mathematical induction. It follows from Theorem 14.5.2 that, for i 2, there exist a unit lower triangular matrix Li , a unit upper triangular matrix Ui , and a diagonal matrix Di of the form
14.5 LDU, U DU, and Cholesky Decompositions
225
(5.4) and that A2 L2 D2 U2 for any such matrices L2 , U2 , and D2 . Suppose now that, for i k − 1 (where 3 ≤ k ≤ n), there exist a unit lower triangular matrix Li , a unit upper triangular matrix Ui , and a diagonal matrix Di of the form (5.4) and, taking Lk−1 , Uk−1 , and Dk−1 to be any such matrices, that Ak−1 Lk−1 Dk−1 Uk−1 . The proof is complete upon observing that, for i k, there exist (as a consequence of Theorem 14.5.2) a unit lower triangular matrix Li , a unit upper triangular matrix Ui , and a diagonal matrix Di of the form (5.4) and that Ak Lk Dk Uk for any such matrices Lk , Uk , and Dk . (1 ) A proof of Part (1 ), analogous to that of Part (1), can be constructed by making use of Part (1 ) of Theorem 14.5.2. (2) Suppose that A has an LDU decomposition. Then, it follows from Theorem 14.5.3 that the leading principal submatrices A2 , A3 , . . . , An−1 of orders two through n − 1 (as well as the leading principal submatrix An A of order n) have LDU decompositions. Based on Part (2) of Theorem 14.5.2, we conclude that, for i 2, . . . , n, ai ∈ C(Ai−1 ) and bi ∈ R(Ai ). (2 ) A proof of Part (2 ), analogous to that of Part (2), can be constructed by Q.E.D. making use of Theorem 14.5.3 and Part (2 ) of Theorem 14.5.2. Note that, together, Parts (1) and (2) of Theorem 14.5.4 imply in particular that A has an LDU decomposition if and only if, for i 2, . . . , n, ai ∈ C(Ai−1 ) and bi ∈ R(Ai−1 ). Similarly, Parts (1 ) and (2 ) imply that A has a U DU decomposition if and only if A is symmetric and, for i 2, . . . , n, ai ∈ C(Ai−1 ). For purposes of illustration, consider a 2 × 2 matrix A {aij } and suppose that a11 0. Then, A has an LDU decomposition if and only if a21 a12 0, that is, if and only if A is of the form 0 0 A . 0 a22 When A is of this form, an LDU decomposition of A is 1 0 0 0 1 u A , # 1 0 a22 0 1 where # and u are arbitrary scalars. To what extent is the LDU decomposition of an n × n matrix unique? This question is addressed in the following theorem. Theorem 14.5.5. Let A represent an n × n matrix of rank r that has an LDU decomposition. Let L {#ij } represent an n × n unit lower triangular matrix, U {uij } an n × n unit upper triangular matrix, and D {di } an n × n diagonal matrix such that A LDU; that is, such that A LDU is an LDU decomposition of A. (1) The diagonal matrix D is unique. (2) Suppose that the i1 , . . . , ir th diagonal elements of D (where i1 < · · · < ir ) are nonzero (and the remaining diagonal elements of D are zero). Then, for i ∈ {i1 , . . . , ir } and j > i, uij and #j i are unique, and, for i ∈ {i1 , . . . , ir } and j > i, uij and #j i are completely arbitrary. That is, of the elements of U above the diagonal, those in the i1 , . . . , ir th rows are unique and those in the remaining rows are completely arbitrary; and, similarly, of
226
14. Linear, Bilinear, and Quadratic Forms
the elements of L below the diagonal, those in the i1 , . . . , ir th columns are unique and those in the remaining columns are completely arbitrary. Proof. Let L∗ {#∗ij } represent a unit lower triangular matrix, U∗ {u∗ij } a unit upper triangular matrix, and D∗ {di∗ } a diagonal matrix such that A L∗ D∗ U∗ , so that A L∗ D∗ U∗ , like A LDU, is an LDU decomposition of A. Then, L∗−1 LD L∗−1 (LDU)U−1 L∗−1 (L∗ D∗ U∗ )U−1 D∗ U∗ U−1 .
(5.6)
Since (according to Corollary 8.5.9) L∗−1 is unit lower triangular and U−1 is unit upper triangular, it follows from Lemma 1.3.1 that the diagonal elements of L∗−1 LD are d1 , . . . , dn , respectively, and that the diagonal elements of D∗ U∗ U−1 are d1∗ , . . . , dn∗ , respectively, implying — in light of equality (5.6) — that di∗ di (i 1, . . . , n), or equivalently that D∗ D, which establishes Part (1) of Theorem 14.5.5. For purposes of proving Part (2), take A11 to be the r × r submatrix obtained by striking out all of the rows and columns of A except the i1 , . . . , ir th rows and columns. Let D1 diag(di1 , . . . , dir ). Denote by L1 and L∗1 the r × n submatrices obtained by striking out all of the rows of L and L∗ , respectively, except the i1 , . . . , ir th rows, and by L11 and L∗11 the submatrices obtained by striking out all of the rows and columns of L and L∗ , respectively, except the i1 , . . . , ir th rows and columns. Similarly, denote by U1 and U∗1 the n × r submatrices obtained by striking out all of the columns of U and U∗ , respectively, except the i1 , . . . , ir th columns, and by U11 and U∗11 the r × r submatrices obtained by striking out all of the rows and columns of U and U∗ , respectively, except the i1 , . . . , ir th rows and columns. Then, A11 L1 DU1 L11 D1 U11 and (since D∗ D) A11 L∗1 D∗ U∗1 L∗1 DU∗1 L∗11 D1 U∗11 , implying that L11 D1 U11 L∗11 D1 U∗11 .
(5.7)
The matrices L11 and L∗11 are principal submatrices of unit lower triangular matrices and hence are themselves unit lower triangular. Similarly, U11 and U∗11 are unit upper triangular. Premultiplying both sides of equality (5.7) by L∗−1 11 and −1 postmultiplying both sides by U−1 11 D1 , we find that −1 −1 ∗ L∗−1 11 L11 D1 U11 U11 D1 .
(5.8)
−1 According to Corollary 8.5.9, L∗−1 11 is unit lower triangular and U11 is unit upper ∗−1 triangular. Observe that (according to Lemma 1.3.1) L11 L11 is unit lower trian−1 gular. Since D1 U∗11 U−1 11 D1 is upper triangular, it follows from equality (5.8) that ∗−1 L11 L11 I, or, equivalently, that
L∗11 L11 , and — in light of equality (5.7) and the nonsingularity of L11 and D1 — that U∗11 U11 .
14.5 LDU, U DU, and Cholesky Decompositions
227
Now, take A1 to be the n×r submatrix obtained by striking out all of the columns of A except the i1 , . . . , ir th columns, and take A2 to be the r ×n submatrix obtained by striking out all of the rows of A except the i1 , . . . , ir th rows. Denote by L2 and L∗2 the n × r submatrices obtained by striking out all of the columns of L and L∗ , respectively, except the i1 , . . . , ir th columns. Similarly, denote by U2 and U∗2 the r ×n submatrices obtained by striking out all of the rows of U and U∗ , respectively, except the i1 , . . . , ir th rows. Then, A1 LDU1 L2 D1 U11 and (since D∗ D and U∗11 U11 ) A1 L∗ D∗ U∗1 L∗ DU∗1 L∗2 D1 U∗11 L∗2 D1 U11 , implying that L∗2 D1 U11 L2 D1 U11 , and hence (since D1 and U11 are nonsingular) that L∗2 L2 .
(5.9)
Similarly, A2 L1 DU L11 D1 U2 and A2 L∗1 D∗ U∗ L∗1 DU∗ L∗11 D1 U∗2 L11 D1 U∗2 , implying that L11 D1 U∗2 L11 D1 U2 , and hence that U∗2 U2 .
(5.10)
The kj th elements of U2 and U∗2 are uik j and u∗ik j , respectively, and the j kth elements of L2 and L∗2 are #j i k and #∗j i k , respectively (k 1, . . . , r; j 1, . . . , n). Thus, it follows from equalities (5.9) and (5.10) that, for i ∈ {i1 , . . . , ir } and for j 1, . . . , n (and in particular for j i + 1, . . . , n) that u∗ij uij and #∗j i #j i . To complete the proof of Part (2) of Theorem 14.5.5, observe that A LDU L2 D1 U2 and hence that A LDU even if those elements of L (below the diagonal) that are not elements of L2 and/or those elements of U (above the diagonal) that are not elements of U2 are changed arbitrarily. Q.E.D. Under what circumstances does an n × n matrix A have a unique LDU decomposition? This question is addressed in the following two corollaries. Corollary 14.5.6. If an n × n matrix A has an LDU decomposition and if the leading principal submatrix (of A) of order n − 1 is nonsingular, then the LDU decomposition of A is unique. Proof. Let A11 represent the (n − 1) × (n − 1) leading principal submatrix of A. Suppose that A has an LDU decomposition, say A LDU, and that A11 is nonsingular. Partition L, U, and D as L11 0 U11 u D1 0 L , U , and D 1 0 1 0 d [where L11 , U11 , and D1 are of dimensions (n − 1) × (n − 1)]. According to Lemma 14.5.1, an LDU decomposition of A11 is A11 L11 D1 U11 . Thus (since A11 is nonsingular), it follows from Lemma 14.3.1 that all n − 1 diagonal elements of D1 are nonzero, or equivalently, that the first n − 1 diagonal elements of D are nonzero. Based on Theorem 14.5.5, we conclude that the LDU decomposition of A is unique. Q.E.D. Corollary 14.5.7. Let A represent an n × n matrix (where n ≥ 2), and, for i 1, 2, . . . , n−1, let Ai represent the leading principal submatrix (of A) of order i. If A1 , A2 , . . . , An−1 are nonsingular, then A has a unique LDU decomposition.
228
14. Linear, Bilinear, and Quadratic Forms
Proof. Let aij represent the ij th element of A (i, j 1, . . . , n); and, for i 2, . . . , n, define ai (a1i , . . . , ai−1,i ) and bi (ai1 , . . . , ai,i−1 ). Suppose that A1 , A2 , . . ., An−1 are nonsingular. Then, for i 2, . . . , n, ai ∈ C(Ai−1 ) and bi ∈ R(Ai−1 ), and it follows from Part (1) of Theorem 14.5.4 that A has an LDU decomposition. That this decomposition is unique is (since An−1 is nonsingular) an immediate consequence of Corollary 14.5.6. Q.E.D. For a symmetric matrix, the uniqueness of an LDU decomposition has the following implication. Lemma 14.5.8. If a symmetric matrix A has a unique LDU decomposition, say A LDU, then L U , that is, the unique LDU decomposition is a U DU decomposition. Proof. Suppose that the symmetric matrix A has the unique LDU decomposition A LDU. Then, A A U DL , implying (since U is unit lower triangular and L is unit upper triangular) that A U DL is an LDU decomposition of A and hence — in light of the uniqueness of the LDU decomposition — that L U (or equivalently U L ). Q.E.D. Note that if a (square) matrix A has an LDU decomposition, say A LDU, then, letting L∗ LD and U∗ DU, it can also be decomposed as A L∗ U, which is the product of a lower triangular matrix and a unit upper triangular matrix, or as A LU∗ , which is the product of a unit lower triangular matrix and an upper triangular matrix. The term LU decomposition is sometimes used in referring to any decomposition of a (square) matrix A of the general form A LU, where L is a lower triangular matrix and U an upper triangular matrix — see, e.g., Stewart (1973). In the special case where L is unit lower triangular, Stewart refers to such a decomposition as a Doolittle decomposition, and in the special case where U is unit upper triangular, he refers to such a decomposition as a Crout decomposition. Golub and Van Loan (1989) restrict their use of the term LU decomposition to the special case where L is unit lower triangular, that is, to what Stewart calls a Doolittle decomposition.
c. Decomposition of positive definite matrices Let us now consider the implications of the results of Subsection b as applied to positive definite matrices. Does a positive definite matrix necessary have an LDU decomposition, and is the LDU decomposition of a positive definite matrix unique? These questions are answered (in the affirmative) by the following theorem, which also provides some information about the nature of the LDU decomposition of a positive definite matrix. Theorem 14.5.9. An n × n positive definite matrix A has a unique LDU decomposition, say A LDU, and the diagonal elements of the diagonal matrix D are positive. Proof. According to Corollary 14.2.12, any principal submatrix of a positive definite matrix is positive definite and hence (according to Lemma 14.2.8) is nonsingular. Thus, it follows from Corollary 14.5.7 that A has a unique LDU decomposition, say A LDU.
14.5 LDU, U DU, and Cholesky Decompositions
229
It remains to show that the diagonal elements, say d1 , . . . , dn , of the diagonal matrix D are positive. For this purpose, consider the matrix B DU(L−1 ) . Since (in light of Corollary 8.5.9) (L−1 ) (like U) is unit upper triangular, it follows from Lemma 1.3.1 that the diagonal elements of B are the same as the diagonal elements d1 , . . . , dn of D. Moreover, B L−1 (LDU)(L−1 ) L−1 A(L−1 ) , implying (in light of Corollary 14.2.10) that B is positive definite. We conclude (on the basis of Corollary 14.2.13) that d1 , . . . , dn are positive. Q.E.D. In the special case of a symmetric positive definite matrix, the conclusions of Theorem 14.5.9 can (as a consequence of Lemma 14.5.8) be made more specific, as described in the following corollary. Corollary 14.5.10. An n × n symmetric positive definite matrix A has a unique U DU decomposition, say A U DU, and the diagonal elements of the diagonal matrix D are positive. Note that, as an immediate consequence of Corollary 14.2.15, we have the following converse to Corollary 14.5.10: If an n × n matrix A has a U DU decomposition, say A U DU, and if the diagonal elements of the diagonal matrix D are positive, then A is positive definite (and symmetric). An alternative decomposition of a symmetric positive definite matrix is described in the following theorem. Theorem 14.5.11. For any n × n symmetric positive definite matrix A, there exists a unique upper triangular matrix T with positive diagonal elements such that A T T .
(5.11)
Moreover, taking U to be the unique unit upper triangular matrix and D {di } to be the unique diagonal matrix such that A U DU, T D1/2 U , √ √ √ where D1/2 diag( d1 , d2 , . . . , dn ). Proof. Note that Corollary 14.5.10 guarantees the existence and uniqueness of the unit upper triangular matrix U and the diagonal matrix D and also guarantees 1/2 that the diagonal elements of D are positive. Note√further √ that D√ U is upper 1/2 triangular, that the diagonal elements of D U are d1 , d2 , . . . , dn , and that A (D1/2 U) D1/2 U. Thus, there exists an upper triangular matrix T with positive diagonal elements such that A T T. It remains to show that there is only one such upper triangular matrix with positive diagonal elements. Suppose that T {tij } is an n×n upper triangular matrix with positive diagonal 2 2 2 , t22 , . . . , tnn ) and elements such that A T T. Define D∗ diag(t11 U∗ [diag(t11 , t22 , . . . , tnn )]−1 T diag(1/t11 , 1/t22 , . . . , 1/tnn )T . Then, U∗ is unit upper triangular, and A U∗ D∗ U∗ , so that A U∗ D∗ U∗ is a U DU decomposition of A. Thus, it follows from Corollary 14.5.10 that D∗ D or,
230
14. Linear, Bilinear, and Quadratic Forms
√ equivalently (since tii , is positive), that tii di (i 1, . . . , n), and that U∗ U. Consequently, T D1/2 U∗ D1/2 U. We conclude that the only upper triangular matrix T with positive diagonal elements such that A T T is T D1/2 U. Q.E.D. Decomposition (5.11) of the symmetric positive definite matrix A is known as the Cholesky decomposition.
d. Decomposition of symmetric nonnegative definite matrices Let us now extend the results of Corollary 14.5.10 and Theorem 14.5.11 (which apply to symmetric positive definite matrices) to symmetric nonnegative definite matrices that may not be positive definite. The following theorem provides the basis for these extensions. Theorem 14.5.12. Corresponding to any n × n symmetric nonnegative definite matrix A, there exists a unit upper triangular matrix U such that U AU is a diagonal matrix. For purposes of proving this theorem, it is helpful to establish the following lemma. Lemma 14.5.13. Let A {aij } represent an n × n nonnegative definite matrix. If aii 0, then, for j 1, . . . , n, aij −aj i ; that is, if the ith diagonal element of A equals 0, then (ai1 , . . . , ain ), which is the ith row of A, equals −(a1i , . . . , ani ), which is −1 times the transpose of the ith column of A (i 1, . . . , n). Proof (of Lemma 14.5.13). Suppose that aii 0, and take x {xk } to be an n-dimensional column vector such that xi < −ajj , xj aij + aj i , and xk 0 for k other than k i and k j (where j i). Then, x Ax ≤
aii xi2 + (aij + aj i )xi xj + ajj xj2 (aij + aj i )2 (xi + ajj ) 0,
(5.12)
with equality holding only if aij + aj i 0 or, equivalently, only if aij −aj i . Moreover, since A is nonnegative definite, x Ax ≥ 0, which — together with inequality (5.12) — implies that x Ax 0. We conclude that aij −aj i . Q.E.D. If the nonnegative definite matrix A in Lemma 14.5.13 is symmetric, then aij −aj i ⇔ 2aij 0 ⇔ aij 0. Thus, we have the following corollary. Corollary 14.5.14. Let A {aij } represent an n × n symmetric nonnegative definite matrix. If aii 0, then, for j 1, . . . , n, aj i aij 0; that is, if the ith diagonal element of A equals zero, then the ith column (a1i , . . . , ani ) of A and the ith row (ai1 , . . . , ain ) of A are null. Moreover, if all n diagonal elements a11 , a22 , . . . , ann of A equal zero, then A 0. Proof (of Theorem 14.5.12). The proof is by mathematical induction and is similar to the proof of Theorem 14.3.4. The theorem is clearly true for any 1 × 1 matrix. Suppose now that it is true for any (n − 1) × (n − 1) symmetric nonnegative definite matrix, and consider an arbitrary n × n symmetric nonnegative definite matrix A {aij }. For purposes of establishing the existence of a unit upper
14.5 LDU, U DU, and Cholesky Decompositions
231
triangular matrix such that U AU is diagonal, it is convenient to consider separately the case a11 0 and the case a11 0. Case (1): a11 0. It follows from Corollary 14.5.14 that the first row and column of A are null or, equivalently, that A diag(0, A22 ) for some (n − 1) × (n − 1) matrix A22 . Moreover, since A22 is a principal submatrix of A, A22 is symmetric and nonnegative definite, and hence, by supposition, there exists a unit upper triangular matrix U∗ such that U∗ A22 U∗ is a diagonal matrix. Take U diag(1, U∗ ). Then, U is unit upper triangular, and U AU diag(0, U∗ A22 U∗ ), which (like U∗ A22 U∗ ) is a diagonal matrix. Case (2): a11 0. According to Lemma 14.3.3, there exists a unit upper triangular matrix U1 such that U1 AU1 diag(b11 , B22 ) for some scalar b11 and some (n − 1) × (n − 1) matrix B22 . Moreover, U1 AU1 is (in light of Theorem 14.2.9) symmetric and nonnegative definite, and, since B22 is a principal submatrix of U1 AU1 , B22 is symmetric and nonnegative definite. Thus, by supposition, there exists a unit upper triangular matrix U2 such that U2 B22 U2 is a diagonal matrix. Take U U1 diag(1, U2 ). Then, U is a unit upper triangular matrix [since diag(1, U2 ) is unit upper triangular and the product of two unit upper triangular matrices is unit upper triangular], and U AU diag(1, U2 ) diag(b11 , B22 ) diag(1, U2 ) diag(b11 , U2 B22 U2 ) , which (like U2 B22 U2 ) is a diagonal matrix. Q.E.D. Corollary 14.5.10 indicates that, in the special case of a symmetric positive definite matrix A, the nonsingular matrix P in Corollary 14.3.5 can be chosen to be a unit upper triangular matrix, in which case the decomposition A P DP is a U DU decomposition. The following corollary (of Theorem 14.5.12) indicates that P can be chosen to be unit upper triangular even if A is only (symmetric) positive semidefinite. Corollary 14.5.15. An n × n symmetric nonnegative definite matrix A has a U DU decomposition, and, for any such decomposition A U DU, the diagonal elements of the diagonal matrix D are nonnegative. Proof. In light of Corollary 14.2.15, it suffices to show that A has a U DU decomposition. According to Theorem 14.5.12, there exists a unit upper triangular matrix T such that T AT D for some diagonal matrix D. Take U T−1 . Then, A U DU, and (according to Corollary 8.5.9) U is unit upper triangular. Thus, Q.E.D. A U DU is a U DU decomposition of A. Note that, as an immediate consequence of Corollary 14.2.15, we have the following converse to Corollary 14.5.15: If an n × n matrix A has a U DU decomposition, say A U DU, and if the diagonal elements of the diagonal matrix D are nonnegative, then A is nonnegative definite (and symmetric). Theorem 14.5.11 establishes that any symmetric positive definite matrix A has a unique decomposition of the form (5.11) and relates this decomposition to the U DU decomposition of A. The following theorem extends these results to any symmetric nonnegative definite matrix. Theorem 14.5.16. Let A represent an n × n symmetric nonnegative definite matrix, and let r rank(A). Then, there exists a unique upper triangular matrix T
232
14. Linear, Bilinear, and Quadratic Forms
with r positive diagonal elements and with n − r null rows such that A T T .
(5.13)
Moreover, taking U to be a unit upper triangular matrix and D {di } to be the unique diagonal matrix such that A U DU, T D1/2 U ,
(5.14)
√ √ √ where D1/2 diag( d1 , d2 , . . . , dn ). Proof. Note that Corollary 14.5.15 and Theorem 14.5.5 guarantee the existence of the unit upper triangular matrix U and the existence and uniqueness of the diagonal matrix D and also guarantee that the diagonal elements of D are nonnegative. Note further (on the basis of Lemma 14.3.1) that r of the diagonal elements of D, say the i1 , . . . , ir th diagonal elements (where i1 < · · · < ir ), are nonzero and hence positive, and that the remaining n − r diagonal elements of D equal 1/2 zero. D√ U is upper triangular, the diagonal elements of D1/2 U are √ Moreover, √ d1 , d2 , . . . , dn (r of which are positive), n − r rows of D1/2 U are null (those rows other than the i1 , . . . , ir th rows), and A (D1/2 U) D1/2 U. Thus, there exists an upper triangular matrix T with r positive diagonal elements and with n − r null rows such that A T T. It remains to show that there is only one such upper triangular matrix with r positive diagonal elements and with n − r null rows. Suppose that T {tij } is an n × n upper triangular matrix with r positive diagonal elements — say the k1 , . . . , kr th diagonal elements (where k1 < · · · < kr ) — and with n − r null rows such that A T T. Take D∗ to be the n × n diagonal matrix whose k1 , . . . , kr th diagonal elements are tk21 k1 , . . . , tk2r kr , respectively, and whose other n − r diagonal elements equal zero. Further, let tk1 , . . . , tkr represent the k1 , . . . , kr th rows of T, and take U∗ to be any unit upper triangular matrix whose k1 , . . . , kr th rows are (1/tk1 k1 )tk1 , . . . , (1/tkr kr )tkr , respectively — clearly, such a unit upper triangular matrix exists. Then, A tk1 tk1 + · · · + tkr tkr U∗ D∗ U∗ , so that A U∗ D∗ U∗ is a U DU decomposition of A. Thus, it follows from Theorem 14.5.5 that D∗ D, in which case k1 i1 , . . . , kr ir and ti1 i1 di1 , . . . , tir ir dir , and that the i1 , . . . , ir th rows of U∗ are respectively equal to the i1 , . . . , ir th rows of U. Consequently, T D1/2 U∗ D1/2 U . We conclude that the only upper triangular matrix T with r positive diagonal elements and with n − r null rows such that A T T is T D1/2 U. Q.E.D. In the special case where the symmetric nonnegative definite matrix A is positive definite, decomposition (5.13) simplifies to decomposition (5.11). And, as in that special case, the decomposition is called the Cholesky decomposition.
14.5 LDU, U DU, and Cholesky Decompositions
233
e. Recursive formulas for LDU and Cholesky decompositions Let A {aij } represent an n × n matrix. Consider the problem of finding a unit upper triangular matrix U {uij }, a unit lower triangular matrix L {#j i }, and a diagonal matrix D {di } such that A LDU (when they exist). The formulas given in Part (1) of Theorem 14.5.4 can be used to construct L, D, and U in n steps. At each step, an additional column of U, an additional row of L, and an additional diagonal element of D are obtained by solving linear systems with triangular coefficient matrices. By making use of the results of Section 11.8 (on the solution of linear systems with nonsingular triangular or block-triangular coefficient matrices), the formulas given in Part (1) of Theorem 14.5.4 can be reexpressed as follows: d1 a11 d1 u1j a1j , di uij aij −
i−1
#ik dk ukj (i 2, 3, . . . , j − 1) ,
k1
d1 #j 1 aj 1 , di #j i aj i −
i−1
uki dk #j k (i 2, 3, . . . , j − 1) ,
k1
dj ajj −
j −1
ukj dk #j k
(5.15)
k1
(j 2, 3, . . . , n). The first step in the n-step procedure for constructing U, L, and D consists of setting d1 a11 . The j th step (2 ≤ j ≤ n) consists of successively determining uij and #j i for i 1, 2, . . . , j − 1, and of then determining [from formula (5.15)] dj . If di 0, then uij and #j i can be chosen arbitrarily; for example, choose uij #j i 0. If di 0, then, depending on whether i 1 or i > 1, take uij aij /di and #j i aj i /di or uij aij −
i−1 k1
#ik dk ukj
di and #j i aj i −
j −1
uki dk #j k
di ,
k1
respectively. There is an alternative n-step procedure for constructing U, L, and D in which U is formed row-by-row, rather than column-by-column, and L is formed columnby-column, rather than row-by-row. The first step consists of setting d1 a11 and, depending on whether d1 0 or d1 0, choosing u12 , . . . , u1n and #21 , . . . , #n1 arbitrarily or (for j 2, . . . , n) setting u1j a1j /d1 and #j 1 aj 1 /d1 . The ith step (2 ≤ i ≤ n − 1) consists of determining [from formula (5.15)] di and, depending on whether di 0 or di 0, choosing ui,i+1 , . . . , uin and #i+1,i , . . . , #ni
234
14. Linear, Bilinear, and Quadratic Forms
arbitrarily or (for j i + 1, . . . , n) setting i−1 i−1 di and #j i aj i − di . #ik dk ukj uki dk #j k uij aij − k1
k1
The final (nth) step consists of setting dn ann −
n−1
ukn dk #nk .
k1
Note that (with either of these two n-step procedures), once dj has been determined, ajj is no longer needed (at least not for purposes of constructing an LDU decomposition). Similarly, once uij has been determined, aij is no longer required, and, once #j i has been determined, aj i is no longer required. Thus, in implementing either n-step procedure on a computer, storage can be saved if, as dj , uij , and #j i are determined, they are placed in the locations previously occupied by ajj , aij , and aj i , respectively. So far, it has been presumed that A has an LDU decomposition. Suppose that there is uncertainty about the existence of an LDU decomposition. The nonexistence of an LDU decomposition can (at least in principle) be determined during the course of the n-step procedures by incorporating certain tests. If d1 0, then — prior to assigning values to u1j and #j 1 — we should test whether a1j 0 and aj 1 0; similarly, if di 0 (2 ≤ i ≤ n − 1), then — prior to assigning values to uij and #j i — we should test whether aij −
i−1
#ik dk ukj 0
and
aj i −
k1
i−1
uki dk #j k 0
k1
or, equivalently, whether aij
i−1 k1
#ik dk ukj
and
aj i
i−1
uki dk #j k .
k1
If the result of any test is negative, we terminate the n-step procedure and conclude (on the basis of Theorem 14.5.4) that A does not have an LDU decomposition. If the result of every test is positive, then the n-step procedure is carried to completion and produces an LDU decomposition. Suppose now that A is symmetric, and consider the problem of determining whether A has a U DU decomposition and of constructing a U DU decomposition. This problem can be “solved” by employing a simplified version of the procedure for checking for the existence of an LDU decomposition and for constructing an LDU decomposition. The simplification comes from setting #j i uij , for j 2, . . . , n and i 1, . . . , j − 1, and more specifically from the resulting reduction in computational and storage requirements. Finally, suppose that A is a symmetric nonnegative definite matrix, and consider the problem of finding the Cholesky decomposition of A. That is, consider the
14.5 LDU, U DU, and Cholesky Decompositions
235
problem of finding the unique upper triangular matrix T {tij } with r positive diagonal elements and n − r null rows [where r rank(A)] such that A T T. One approach is to find the U DU decomposition of A and to then determine T from formula (5.14). However, there is a more direct method, which is sometimes called the square root method. The square root method is based on the following formulas, which can be obtained from the formulas of Part (1 ) of Theorem 14.5.4 by applying the results of Section 11.8 and making use of relationship (5.14): √ t11 a11 , (5.16) t1j tij
a1j /t11 , if t11 > 0 , 0 , if t11 0 , " !
i−1 tii , if tii > 0 , aij − k1 tki tkj
(i 2, 3, . . . , j − 1) ,
0, tjj ajj −
j −1 k1
if
tii 0
(5.17a) (5.17b) (5.18a) (5.18b)
1/2 tkj2
(5.19)
(j 2, 3, . . . , n). In the square root method, T is constructed row-by-row or column-by-column in n steps, one row or column per step. For example, the first step of the row-by-row version consists of determining [from formulas (5.16) and (5.17)] t11 , t12 , . . . , t1n ; the ith step (2 ≤ i ≤ n − 1) consists of determining [from formulas (5.19) and (5.18)] tii , ti,i+1 , . . . , tin ; and the final (nth) step consists of determining [from formula (5.19)] tnn . If there is uncertainty about whether A is nonnegative definite, then, in applying the square root method to A, various modifications should be incorporated. We should (prior to determining t11 ) test whether a11 ≥ 0, and if a11 0, we should (prior to setting t1j 0) test whether a1j 0. Similarly, for 2 ≤ i ≤ n − 1,
2 we should (prior to determining tii ) test whether aii − i−1 and if aii − k1 tki ≥ 0,
i−1 2
i−1 t 0, we should (prior to setting t 0) test whether a − t t ij ij k1 ki
k12 ki kj 0. Finally, we should (prior to determining tnn ) test whether ann − n−1 t k1 kn ≥ 0. If the result of any test is negative, it follows from Theorems 14.5.4 and 14.5.16 that either A does not have a U DU decomposition or, for a U DU decomposition (of A), say A U DU, one or more of the diagonal elements of the diagonal matrix D are negative. Thus, if the result of any test is negative, we terminate the square root procedure and conclude (on the basis of Corollary 4.5.15) that A is not nonnegative definite. If the result of every test is positive, then A is nonnegative definite, and the procedure is carried to completion and produces the Cholesky decomposition. Suppose, for example, that 4 2 −2 1 −1 . A 2 −2 −1 10
236
14. Linear, Bilinear, and Quadratic Forms
Let us apply the modified square root √ method (the row-by-row version). Observing that a11 > 0, we find that t11 4 2, t12 2/2 1, and t13 −2/2 −1. 2 Further, upon observing that a22 − t12 0, we find that t22 0, and, after − t t 0, we set observing that a 23 12 13 √ t23 0. Finally, upon observing that
2 a33 − 2k1 tk3 9, we find that t33 9 3. We conclude that A is nonnegative definite — since t22 0, it is positive semidefinite — and that the Cholesky decomposition of A is 2 1 −1 2 1 −1 0 0 0 0 . A 0 0 0 0 3 0 0 3 Note that if a23 a32 had equaled any number other than −1, it would have been the case that a23 − t12 t13 0, and A would not have been nonnegative definite. Or, 2 < 0, if the value of a22 had been smaller than one, we would have had that a22 −t12 and A would not have been nonnegative definite.
f. Use of an LDU, U DU, or Cholesky decomposition in obtaining a generalized inverse Suppose that A is a (square) matrix that has an LDU decomposition, say A LDU. Then, it follows from the discussion in Section 14.4 that the matrix G U−1 D− L−1
(5.20)
is a generalized inverse of A and that one choice for D− is the diagonal matrix obtained by replacing the nonzero diagonal elements of the (diagonal) matrix D with their reciprocals. Thus, one way to obtain a generalized inverse of A is to obtain the LDU decomposition of A and to then apply formula (5.20). In this regard, note that the recursive procedure described in Section 8.5d can be used to invert U and L. Note also that, in the special case where L U , formula (5.20) simplifies to G U−1 D− (U−1 ) .
(5.21)
Suppose now that A is an n × n symmetric nonnegativedefinite matrix of rank r. Then we can obtain a generalized inverse of A in terms of its U DU decomposition [using formula (5.21)]. We can also obtain a generalized inverse of A directly in terms of its Cholesky decomposition. To see this, let A T T represent the Cholesky decomposition of A, so that, by definition, T is an upper triangular matrix with r positive diagonal elements, say its i1 , i2 , . . . , ir th diagonal elements (where i1 < i2 < · · · < ir ), and with n − r null rows. Take T1 to be the r × n matrix obtained by striking out the null rows of T. Then, clearly, A T1 T1 , and rank(T1 ) rank(A) r. It follows from Lemma 8.1.1 that T1 has a right inverse, say R. And, since ARR A T1 T1 R(T1 R) T1 T1 T1 A, RR is a generalized inverse of A.
14.6 Skew-Symmetric Matrices
237
A right inverse of T1 can be obtained by making use of the procedure described in Section 8.5d for inverting a nonsingular triangular matrix. To see this, let T11 represent the r × r submatrix obtained by striking out all of the columns of T1 except the i1 , i2 , . . . , ir th columns. Note that T11 is a principal submatrix of T and hence (like T) is upper triangular and (since the diagonal elements of T11 are nonzero) that T11 is nonsingular. Take R to be the n × r matrix whose i1 , i2 , . . . , ir th rows are the first, second, . . . , rth rows of T−1 11 and whose other n − r rows are null. Then, clearly, T1 R T11 T−1 I, so that R is a right inverse of T1 . 11
14.6
Skew-Symmetric Matrices
An n×n matrix A {aij } is said to be skew-symmetric if A −A or, equivalently (since aii −aii ⇔ 2aii 0 ⇔ aii 0), if aii 0 for i 1, . . . , n and 0 1 aj i −aij for j i 1, . . . , n. For example, the 2 × 2 matrix is −1 0 skew-symmeric. A principal submatrix of a skew-symmetric matrix is skew-symmetric, as is easily verified. Other basic properties of skew-symmetric matrices are described in the following two lemmas. Lemma 14.6.1. The only n × n matrix that is both symmetric and skewsymmetric is the n × n null matrix. Proof. If an n × n matrix A is both symmetric and skew-symmetric, then A A −A, implying that 2A 0 and hence that A 0. Q.E.D. Lemma 14.6.2. Let A represent an n × n matrix and P an n × m matrix. If A is skew-symmetric, then P AP is skew-symmetric. Proof. If A is skew-symmetric, then (P AP) P A P P (−A)P −P AP . Q.E.D. The following lemma, which is an immediate consequence of Lemma 14.1.1, characterizes the skew-symmetry of a (square) matrix A in terms of the quadratic form whose matrix is A. Lemma 14.6.3. An n × n matrix A is skew-symmetric if and only if, for every n-dimensional column vector x, x Ax 0. There is a relationship between skew-symmetry and nonnegative definiteness, which is described in the following lemma. Lemma 14.6.4. An n × n matrix A {aij } is skew-symmetric if and only if it is nonnegative definite and its diagonal elements a11 , a22 , . . . , ann equal zero. Proof. Suppose that A is skew-symmetric. Then, by definition, aii 0 (i 1, 2, . . . , n). Moreover, it follows from Lemma 14.6.3 that A is nonnegative definite. Conversely, suppose that A is nonnegative definite and that its diagonal elements equal zero. Then it follows from Lemma 14.5.13 that aj i −aij for i, j 1, 2, . . . n. Thus, A is skew-symmetric. Q.E.D.
238
14. Linear, Bilinear, and Quadratic Forms
14.7 Trace of a Nonnegative Definite Matrix a. Basic results The following result is an immediate consequence of Corollary 14.2.13. Theorem 14.7.1. For any positive definite matrix A, tr(A) > 0. The following theorem extends the result of Theorem 14.7.1 to nonnegative definite matrices that are not positive definite, that is, to positive semidefinite matrices. Theorem 14.7.2. Let A {aij } represent an n × n nonnegative definite matrix. Then, tr(A) ≥ 0, with equality holding if and only if the diagonal elements a11 , a22 , . . . , ann of A equal zero or, equivalently, if and only if A is skewsymmetric. Proof. According to Corollary 14.2.13, aii ≥ 0 (i 1, 2, . . . , n). Thus, tr(A) a11 + a22 + · · · + ann ≥ 0 , with tr(A) 0 if and only if a11 , a22 , . . . , ann equal zero. That the nonnegative definite matrix A being skew-symmetric is equivalent to the diagonal elements of A being zero is an immediate consequence of Lemma 14.6.4. Q.E.D. In the special case where A is a symmetric nonnegative definite matrix, Theorem 14.7.2 can (in light of Lemma 14.6.1) be restated as follows. Corollary 14.7.3. Let A {aij } represent an n × n symmetric nonnegative definite matrix. Then, tr(A) ≥ 0, with equality holding if and only if the diagonal elements a11 , a22 , . . . , ann of A equal zero or, equivalently, if and only if A 0.
b. Extensions to products of nonnegative definite matrices The following theorem extends Theorem 14.7.1. Theorem 14.7.4. For any n × n positive definite matrix A and any n × n nonnull symmetric nonnegative definite matrix B, tr(AB) > 0. Proof. Let r rank(B). Then, according to Theorem 14.3.7, B Q Q for some r × n matrix Q of rank r. Since (according to Theorem 14.2.9) QAQ is positive definite, we find (using Lemma 5.2.1 and Theorem 14.7.1) that tr(AB) tr(AQ Q) tr(QAQ ) > 0 . Q.E.D. As an essentially immediate consequence of Theorem 14.7.4, we have the following corollary, which extends Corollary 14.7.3. Corollary 14.7.5. Let A represent an n × n positive definite matrix and B an n × n symmetric nonnegative definite matrix. Then, tr(AB) ≥ 0, with equality holding if and only if B 0. In the special case where B I, Theorem 14.7.4 reduces to Theorem 14.7.1, and, in the special case where A I, Corollary 14.7.5 reduces to Corollary 14.7.3. The following theorem extends Theorem 14.7.2.
14.7 Trace of a Nonnegative Definite Matrix
239
Theorem 14.7.6. Let A represent an n × n nonnegative definite matrix and B an n × n symmetric nonnegative definite matrix. Then tr(AB) ≥ 0, with equality holding if and only if BAB is skew-symmetric. Proof. The theorem is true in the special case where B 0, since in that special case tr(AB) 0 and BAB 0. Thus, in proving the theorem, it suffices to restrict attention to the case where B 0. Suppose that B 0, and let r rank(B). Then, according to Theorem 14.3.7, B Q Q for some r × n matrix Q of rank r. Observe [in light of result (5.2.3)] that tr(AB) tr(AQ Q) tr(QAQ ) . (7.1) According to Theorem 14.2.9, QAQ is nonnegative definite. Thus, it follows from Theorem 14.7.2 that tr(QAQ ) ≥ 0, or, equivalently, that tr(AB) ≥ 0, with equality holding if and only if QAQ is skew-symmetric or, equivalently, if and only if QA Q −QAQ .
(7.2)
Since Q is of full row rank and Q of full column rank, we have (as a consequence of Lemma 8.3.1) that condition (7.2) is equivalent to the condition Q QA Q Q −Q QAQ Q .
(7.3)
Moreover, condition (7.3) can be reexpressed as (BAB) −BAB . Thus, condition (7.3) is satisfied if and only if BAB is skew-symmetric. Q.E.D. In the special case where B I, Theorem 14.7.6 reduces to Theorem 14.7.2. If A is symmetric (as well as nonnegative definite), then the results of Theorem 14.7.6 can be sharpened, as described in the following corollary, which generalizes (in a different way than Corollary 14.7.5) Corollary 14.7.3. Corollary 14.7.7. Let A and B represent n × n symmetric nonnegative definite matrices. Then, tr(AB) ≥ 0, with equality holding if and only if AB 0. Proof. Clearly, (BAB) B A B BAB; that is, BAB is symmetric, implying (in light of Lemma 14.6.1) that BAB is skew-symmetric if and only if BAB 0. Thus, it follows from Theorem 14.7.6 that tr(AB) ≥ 0, with equality holding if and only if BAB 0 . (7.4) To complete the proof, it suffices to show that condition (7.4) is equivalent to the condition AB 0. In the special case where A 0, these two conditions are clearly equivalent. Thus, it suffices to restrict attention to the case where A 0. Suppose that A 0, and let r rank(A). According to Theorem 14.3.7, A Q Q for some r × n matrix Q of rank r. Thus, condition (7.4) can be reexpressed as (QB) QB 0, which (according to Corollary 5.3.2) is equivalent to the condition QB 0 . (7.5)
240
14. Linear, Bilinear, and Quadratic Forms
Moreover, since Q is of full column rank, it follows from Lemma 8.3.1 that condition (7.5) is equivalent to the condition Q QB Q 0 , which is reexpressible as AB 0. We conclude that condition (7.4) is equivalent to the condition AB 0. Q.E.D. In the special case where A I or B I, Corollary 14.7.7 reduces to Corollary 14.7.3.
14.8 Partitioned Nonnegative Definite Matrices a. Applicability of formulas for ranks, determinants, inverses, and generalized inverses Consider a (square) partitioned matrix A of the form T U A , V W where T is an m × m (square) matrix, W is an n × n (square) matrix, U is of dimensions m × n, and V is of dimensions n × m, or consider a partitioned matrix B of the form W V B . U T Suppose that T is nonsingular. Then, formula (13.3.13) can be used to express |A| or |B| in terms of the determinant of T and the determinant of the Schur complement W − VT−1 U of T, and formula (8.5.15) can be used to express rank(A) or rank(B) in terms of the order m of T and the rank of the Schur complement of T. Suppose further that A or B is nonsingular. Then, formula (8.5.16) or (8.5.17) can be used to express A−1 or B−1 in terms of the inverse of T and the inverse of the Schur complement of T. Is A or B nonsingular — and is T nonsingular — if A or B is nonnegative definite? If A or B is positive definite, then it is clear from Lemma 14.2.8 that A or B, respectively, is nonsingular and from Corollary 14.2.12 that T is nonsingular. If A or B is a symmetric positive semidefinite matrix, then it is clear from Corollary 14.3.12 that A or B, respectively, is singular. If A or B is a nonsymmetric positive semidefinite matrix, then A or B, respectively, may or may not be nonsingular. Moreover, even if A or B is a nonsingular positive semidefinite matrix, T may be singular. Suppose now that T is possibly singular. If C(U) ⊂ C(T) and R(V) ⊂ R(T), then formula (9.6.2) or (9.6.3) gives a generalized inverse of A or B, respectively, in terms of an arbitrary generalized inverse T− of T and an arbitrary generalized inverse of the Schur complement W − VT− U of T, and formula (9.6.1) can be
14.8 Partitioned Nonnegative Definite Matrices
241
used to express rank(A) or rank(B) in terms of the rank of T and the rank of the Schur complement of T. Are the conditions C(U) ⊂ C(T) and R(V) ⊂ R(T) satisfied if A or B is positive semidefinite? If A or B is symmetric as well as positive semidefinite, the answer to this question is yes, as is evident from the corollary of the following lemma. Lemma 14.8.1. Let A represent a symmetric nonnegative definite matrix that has been partitioned as T U A , V W where T (and hence W) is square. Then there exist matrices R and S such that T R R, U R S, V S R, W S S . Proof. According to Corollary 14.3.8, there exists a matrix X such that A X X. Partition X as X (R, S) (where R has the same number of columns as T). Then, R R R S R (R, S) . AXX S S R S S Since R R, R S, S R, and S S are of the same dimensions as T, U, V, and W, respectively, T R R, U R S, V S R, and W S S. Q.E.D. Corollary 14.8.2. Let A represent a symmetric nonnegative definite matrix that has been partitioned as T U A , V W where T (and hence W) is square. Then, C(U) ⊂ C(T) and R(V) ⊂ R(T). Similarly, C(V) ⊂ C(W) and R(U) ⊂ R(W). Proof. According to Lemma 14.8.1, there exist matrices R and S such that T R R, U R S, V S R, W S S . Thus, making use of Corollaries 4.2.3 and 7.4.5, we find that C(U) ⊂ C(R ) C(T) and R(V) ⊂ R(R) R(T) . It can be shown in similar fashion that C(V) ⊂ C(W) and R(U) ⊂ R(W). Q.E.D.
b. Block-diagonal matrices Lemma 14.2.1 characterizes the concepts of nonnegative definiteness, positive definiteness, and positive semidefiniteness as applied to diagonal matrices. The following result extends the results of Lemma 14.2.1 to block-diagonal matrices.
242
14. Linear, Bilinear, and Quadratic Forms
Lemma 14.8.3. Let Ai represent an ni × ni matrix (i 1, 2, . . . , k), let n n1 + n2 + · · · + nk , and define A to be the n × n block-diagonal matrix A diag(A1 , A2 , . . . , Ak ) . Then, (1) A is nonnegative definite if and only if A1 , A2 , . . . , Ak are nonnegative definite; (2) A is positive definite if and only if A1 , A2 , . . . , Ak are positive definite; and (3) A is positive semidefinite if and only if the diagonal blocks A1 , A2 , . . . , Ak are nonnegative definite with at least one of the diagonal blocks being positive semidefinite. Proof. Consider the quadratic form x Ax (in an n-dimensional column vector x) whose matrix is A. Partition x as x (x1 , x2 , . . . , xk ), where (for i 1, 2, . . . , k) xi is an ni -dimensional (column) vector. Then, clearly, x Ax x1 A1 x1 + x2 A2 x2 + · · · + xk Ak xk . (1) If A1 , A2 , . . . , Ak are nonnegative definite, then, by definition, xi Ai xi ≥ 0 for every xi (i 1, 2, . . . , k), implying that x Ax ≥ 0 for every x and hence that A is nonnegative definite. Conversely, if A is nonnegative definite, then it follows from Corollary 14.2.12 that A1 , A2 , . . . , Ak are nonnegative definite. (2) If A1 , A2 , . . . , Ak are positive definite, then, by definition, xi Ai xi > 0 for every nonnull xi (i 1, 2, . . . , k), implying that x Ax > 0 for every nonnull x and hence that A is positive definite. Conversely, if A is positive definite, then it follows from Corollary 14.2.12 that A1 , A2 , . . . , Ak are positive definite. (3) Suppose that A1 , A2 , . . . , Ak are nonnegative definite and that, for some i, say i i ∗ , Ai is positive semidefinite. Then, by definition, xi Ai xi ≥ 0 for every xi (i 1, 2, . . . , k), and there exists some nonnull value of xi ∗ , say xi ∗ x˜ i ∗ , for which xi ∗ Ai ∗ xi ∗ 0. It follows that x Ax ≥ 0 for every x, with equality holding for x (0, . . . , 0, x˜ i ∗ ,0, . . . , 0). Thus, A is positive semidefinite. Conversely, suppose that A is positive semidefinite. Then, it follows from Part (1) that A1 , A2 , . . . , Ak are nonnegative definite. Moreover, it follows from Part (2) that not all of the matrices A1 , A2 , . . . , Ak are positive definite and hence (since they are nonnegative definite) that at least one of them is positive semidefinite. Q.E.D.
c. Nonnegative definiteness of a Schur complement Sufficient conditions for the positive definiteness or positive semidefiniteness of a Schur complement are given by the following theorem. Theorem 14.8.4. Let T U A , V W where T is of dimensions m × m, U of dimensions m × n, V of dimensions n × m, and W of dimensions n × n. (1) If A is positive definite, then the Schur complement W − VT−1 U of T and the Schur complement T − UW−1 V of W are positive definite.
14.8 Partitioned Nonnegative Definite Matrices
243
(2) If A is symmetric positive semidefinite, then the Schur complement W − VT− U of T and the Schur complement T − UW− V−1 of W are nonnegative definite. (3) If A is positive semidefinite (but not necessarily symmetric) and if C(U) ⊂ C(T) or R(V) ⊂ R(T), then the Schur complement W − VT− U of T (relative to T− ) is nonnegative definite. (3 ) If A is positive semidefinite and if C(V) ⊂ C(W) or R(U) ⊂ R(W), then the Schur complement T − UW− V of W (relative to W− ) is nonnegative definite. Proof. Let us confine our attention to Result (3) and to the parts of Results (1) and (2) that pertain to the Schur complement of T. Result (3 ) and the parts of Results (1) and (2) that pertain to the Schur complement of W can be established via analogous arguments. Define P
Im 0
−T− U In
.
According to Lemma 8.5.2, P is nonsingular. Further,
T (I − TT− )U P AP , V − (T− U) T Q
where Q W − VT− U − (T− U) (I − TT− )U. Suppose that A is positive definite. Then, according to Corollary 14.2.10, P AP is positive definite. Thus, it follows from Corollary 14.2.12 that Q is positive definite. A further implication of Corollary 14.2.12 is that T is positive definite and hence nonsingular, so that Q W − VT−1 U. We conclude that if A is positive definite, then the Schur complement of T is positive definite. Suppose now that A is positive semidefinite. Then, according to Corollary 14.2.10, P AP is positive semidefinite. Thus, it follows from Corollary 14.2.12 that Q is nonnegative definite. If C(U) ⊂ C(T) — which (in light of Corollary 14.8.2) would be the case if A were symmetric — then (according to Lemma 9.3.5) (I − TT− )U 0 and hence Q W − VT− U. We conclude that if A is symmetric positive semidefinite or, more generally, if A is positive semidefinite and C(U) ⊂ C(T), then the Schur complement of T is nonnegative definite. That the Schur complement of T is nonnegative definite if A is positive semidefinite and R(V) ⊂ R(T) can be established via a similar argument. Q.E.D. As a partial “converse” to Theorem 14.8.4, we have the following result. Theorem 14.8.5. Let T U A , U W where T is of dimensions m × m, U of dimensions m × n, and W of dimensions n × n.
244
14. Linear, Bilinear, and Quadratic Forms
(1) If T is symmetric positive definite, and the Schur complement W − U T−1 U of T is positive definite, or if W is symmetric positive definite and the Schur complement T−UW−1 U of W is positive definite, then A is positive definite. (2) Suppose that T is symmetric nonnegative definite and that the Schur complement W − U T− U of T is nonnegative definite. Suppose further that C(U) ⊂ C(T). Then, A is nonnegative definite. (2 ) Suppose that W is symmetric nonnegative definite and that the Schur complement T − UW− U of W is nonnegative definite. Suppose further that R(U) ⊂ R(W). Then, A is nonnegative definite. Proof. Suppose that T is symmetric positive definite (in which case T is nonsingular) or more generally that T is symmetric nonnegative definite and C(U) ⊂ C(T). Define Im −T− U P . 0 In According to Lemma 8.5.2, P is nonsingular. Moreover, P AP diag(T, W − U T− U) , as can be easily verified by making use of Lemma 9.3.5, or equivalently A (P−1 ) diag(T, W − U T− U)P−1 .
(8.1)
If W − U T− U is nonnegative definite, then it follows from Lemma 14.8.3 that diag(T, W−U T− U) is nonnegative definite, implying [in light of equality (8.1) and Corollary 14.2.10] that A is nonnegative definite. Similarly, if T is positive definite (and hence invertible) and W − U T−1 U is positive definite, then diag(T, W − U T−1 U) is positive definite, implying that A is positive definite. We conclude that if T is symmetric nonnegative definite, W − U T− U is nonnegative definite, and C(U) ⊂ C(T), then A is nonnegative definite, and that if T is symmetric positive definite and W−U T−1 U is positive definite, then A is positive definite. It can be shown, in similar fashion, that if W is symmetric nonnegative definite, T − UW− U is nonnegative definite, and R(U) ⊂ R(W), then A is nonnegative definite, and that if W is symmetric positive definite and T − UW−1 U is positive definite, then A is positive definite. Q.E.D. In the special case of a symmetric partitioned matrix, we have (in light of Theorem 14.8.4 and Corollary 14.2.12) the following corollary of Theorem 14.8.5. Corollary 14.8.6. Suppose that a symmetric matrix A is partitioned as T U A U W (where T and W are square). Then, A is positive definite if and only if T and the Schur complement W − U T−1 U of T are both positive definite. Similarly, A is positive definite if and only if W and the Schur complement T − UW−1 U of W are both positive definite.
14.9 Some Results on Determinants
14.9
245
Some Results on Determinants
a. Determinant of a symmetric nonnegative definite matrix Let A represent an n × n symmetric positive definite matrix. Then, according to Corollary 14.3.13, there exists a nonsingular matrix P such that A P P. Since (in light of Theorem 13.3.7) |P| 0, it follows that |A| |P ||P| |P|2 > 0 . Thus, recalling Corollary 14.3.12, we have the following theorem. Lemma 14.9.1. The determinant of a symmetric positive definite matrix is (strictly) positive. The determinant of a symmetric positive semidefinite matrix equals zero.
b. Determinant of a (not necessarily symmetric) nonnegative definite matrix Those nonsymmetric nonnegative definite matrices that are nonsingular have nonzero determinants — refer to Theorem 13.3.7. Can anything further be said about their determinants? In particular, is the determinant of a nonsingular nonsymmetric nonnegative definite matrix, like that of a symmetric positive definite matrix, necessarily positive? In what follows, the answer to this question is shown to be yes. Preliminary to considering the determinant of a possibly nonsymmetric nonnegative definite matrix, it is convenient to establish the following result on the determinants of skew-symmetric matrices — recall (from Lemma 14.6.4) that a matrix is skew-symmetric if and only if it is nonnegative definite and its diagonal elements equal zero. Theorem 14.9.2. Let A represent an n × n skew-symmetric matrix. (1) If n is an odd number, then det(A) 0. (2) If n is an even number, then det(A) ≥ 0. Proof. (1) By definition, A −A, so that, according to Lemma 13.2.1 and Corollary 13.2.5, |A| |A | | − A| (−1)n |A| . Consequently, if n is an odd number, |A| −|A|, implying that 2|A| 0 and hence that |A| 0. (2) The proof that det(A) ≥ 0 when n is an even number is by mathematical induction. When n 2, 0 c A −c 0 for some scalar c, in which case |A| c2 ≥ 0 . Suppose now that the determinant of every (n − 2) × (n − 2) skew-symmetric matrix is greater than or equal to zero, where n is an arbitrary even number (greater
246
14. Linear, Bilinear, and Quadratic Forms
than or equal to 4). To complete the induction argument, we must show that the determinant of an arbitrary n × n skew-symmetric matrix A {aij } is greater than or equal to zero. For this purpose, it suffices to restrict attention to the case where at least one of the last n − 1 elements of the first row of A is nonzero. (The case where all n − 1 of these elements are zero is trivial, since in that case the first row of A is null and hence it follows from Corollary 13.2.3 that |A| 0.) Assume then that a1m 0 for some integer m (2 ≤ m ≤ n). Let B P AP, where P is the permutation matrix obtained by interchanging the second and nth columns of In . (If m 2, take P I.) Observe (in light of Theorem 13.3.4 and Corollary 13.3.6) that |B| |P|2 |A| |A| , (9.1) B11 B12 and partition B as B , where the dimensions of B11 are 2 × 2. B21 B22 According to Lemma 14.6.2, B is skew-symmetric, implying that B11 0 a1m , B12 −B21 , and B22 −B22 . Since a1m 0, we have that −a1m 0 2 |B11 | a1m >0,
and it follows from Theorem 13.3.8 that 2 |B| a1m |B22 − B21 B−1 11 B12 | .
(9.2)
Moreover, (B22 − B21 B−1 11 B12 )
B22 − B12 (B11 )−1 B21
−B22 − (−B21 )(−B−1 11 )(−B12 ) −(B22 − B21 B−1 B 11 12 ) ,
so that B22 − B21 B−1 11 B12 [which is of dimensions (n − 2) × (n − 2)] is skewsymmetric. Thus, by supposition, |B22 − B21 B−1 11 B12 | ≥ 0 .
(9.3)
Together, results (9.2) and (9.3) imply that |B| ≥ 0 and hence [in light of result (9.1)] that |A| ≥ 0. Q.E.D. We are now in a position to establish the following result on the determinant of a nonnegative definite matrix. Theorem 14.9.3. For any nonnegative definite matrix A, det(A) ≥ 0. Proof. The proof is by mathematical induction. Clearly, the determinant of any 1 × 1 nonnegative definite matrix is nonnegative. Suppose now that the determinant of every (n−1)×(n−1) nonnegative definite matrix is nonnegative, and consider the determinant of an n × n nonnegative
14.9 Some Results on Determinants
247
definite matrix A {aij }. To complete the induction argument, we must show that det(A) ≥ 0. In light of Theorem 14.9.2, it suffices to restrict attention to the case where at least one of the diagonal elements a11 , a22 , . . . , ann of A is nonzero and hence positive. [If all n of the diagonal elements of A are zero, then (according to Lemma 14.6.4) A is skew-symmetric, and we have, as an immediate consequence of Theorem 14.9.2, that det(A) ≥ 0.] Assume then that amm > 0 for some integer m (1 ≤ m ≤ n). Let B P AP, where P is the permutation matrix obtained by interchanging the first and mth columns of In . (If m 1, take P I.) Observe (in light of Theorem 14.2.9) that B is nonnegative definite and that |B| |P|2 |A| |A| . (9.4) B11 B12 , where the dimensions of B11 are 1 × 1. Partition B as B B21 B22 Clearly, B11 (amm ), and consequently (since amm 0) it follows from Theorem 13.3.8 that |B| amm |B22 − B21 B−1 (9.5) 11 B12 | . Moreover, according to Parts (1) and (3) of Theorem 14.8.4, B22 − B21 B−1 11 B12 [which is of dimensions (n − 1) × (n − 1)] is nonnegative definite, so that, by supposition, |B22 − B21 B−1 (9.6) 11 B12 | ≥ 0 . Since amm > 0, we conclude [on the basis of results (9.5) and (9.6)] that |B| ≥ 0 and hence [in light of result (9.4)] that |A| ≥ 0. Q.E.D. In light of Lemma 14.2.8 and Corollary 14.3.12, we have, as a corollary of Theorem 14.9.3, the following result, which generalizes Lemma 14.9.1. Corollary 14.9.4. The determinant of a positive definite matrix or of a nonsingular nonsymmetric positive semidefinite matrix is (strictly) positive. The determinant of a symmetric positive semidefinite matrix or of a singular nonsymmetric positive semidefinite matrix equals 0.
c. A necessary and sufficient condition for the positive definiteness of a symmetric matrix Whether a symmetric matrix is positive definite can be ascertained from the determinants of its leading principal submatrices. The following theorem provides the basis for doing so. Theorem 14.9.5. Let A {aij } represent an n × n symmetric matrix, and, for k 1, 2, . . . , n, let a11 a12 . . . a1k a21 a22 . . . a2k Ak . .. . . . . . . ak1 ak2 . . . akk
248
14. Linear, Bilinear, and Quadratic Forms
represent the leading principal submatrix of A of order k. Then, A is positive definite if and only if, for k 1, 2, . . . , n, det(Ak ) > 0, that is, if and only if the determinants of all n of the leading principal submatrices A1 , A2 , . . . , An of A are positive. In proving Theorem 14.9.5, it is convenient to make use of the following result, which is of some interest in its own right. Lemma 14.9.6. Let A represent an n × n symmetric matrix (where n ≥ 2), and partition A as A∗ a A , a c where the dimensions of A∗ are (n − 1) × (n − 1). Then, A is positive definite if and only if A∗ is positive definite and |A| > 0. Proof (of Lemma 14.9.6). If A is positive definite, then it is clear from Corollary 14.2.12 that A∗ is positive definite and from Lemma 14.9.1 that |A| > 0. Conversely, suppose that A∗ is positive definite (and hence nonsingular) and that |A| > 0. Then, according to Theorem 13.3.8, |A| |A∗ |(c − a A−1 ∗ a) . Since (according to Lemma 14.9.1) |A∗ | > 0 (and since |A| > 0), we conclude that the Schur complement c − a A−1 ∗ a of A∗ (like A∗ itself) is positive definite and hence [in light of Part (1) of Theorem 14.8.5] that A is positive definite. Q.E.D. Proof (of Theorem 14.9.5). That the determinants of A1 , A2 , . . . , An are positive if A is positive definite is an immediate consequence of Corollary 14.2.12 and Lemma 14.9.1. For purposes of proving the converse, suppose that the determinants of A1 , A2 , . . ., An are positive. The proof consists of establishing, via a mathematical induction argument, that A1 , A2 , . . . , An are positive definite, which (since A An ) implies in particular that A is positive definite. Clearly, A1 is positive definite. Suppose now that Ak−1 is positive definite (where 2 ≤ k ≤ n), and partition Ak as Ak−1 ak Ak , ak akk where ak (a1k , a2k , . . . , ak−1,k ) . Since Ak−1 is (by supposition) positive definite (and since |Ak | > 0), it follows from Lemma 14.9.6 that Ak is positive definite. We conclude, on the basis of the induction argument, that A1 , A2 , . . . , An are positive definite and that A in particular is positive definite. Q.E.D.
d. A necessary and sufficient condition for the nonnegative definiteness of a symmetric matrix Is it the case that an n×n symmetric matrix is nonnegative definite if and only if the determinants of all n of its leading principal submatrices are nonnegative (as might
14.9 Some Results on Determinants
249
be conjectured on the basis of Theorem 14.9.5)? It is clear (from Corollary 14.2.12 and Lemma 14.9.1) that the nonnegativity of the determinants of the n leading principal submatrices is a necessary condition (for nonnegative definiteness). It can be shown, however, that this condition is not sufficient. In this section, we establish a necessary and sufficient condition for the nonnegative definiteness of a symmetric matrix. This condition is analogous to the necessary and sufficient condition for positive definiteness given by the following theorem (which differs from the necessary and sufficient condition for positive definiteness given by Theorem 14.9.5). Theorem 14.9.7. Let A represent an n×n symmetric matrix. Then, A is positive definite if and only if (1) A is nonsingular and (2) the determinant of every principal submatrix of A is nonnegative. To prove Theorem 14.9.7, we require the following result, which is of some interest in its own right. Theorem 14.9.8. Let A represent an n×n nonsingular symmetric matrix (where n ≥ 3), and partition A as B a A , a c where the dimensions of B are (n − 1) × (n − 1). Then B is nonsingular or B contains an (n − 2) × (n − 2) nonsingular principal submatrix. Moreover, if B is singular and B∗ is any (n − 2) × (n − 2) nonsingular principal submatrix of B, then |B∗ | |A| < 0 (i.e., |B∗ | and |A| are opposite in sign). Proof (of Theorem 14.9.8). Suppose that B is singular, and let A1 (B, a). Since the rows of A are linearly independent, the rows of A1 are also linearly independent, and hence rank(A1 ) n−1. Thus, A1 contains n−1 linearly independent columns, implying that B contains (at least) n − 2 linearly independent columns. Since (by supposition) B is singular, we have that rank(B) n − 2 . Moreover, B is symmetric. We conclude (in light of Corollary 4.4.11) that B contains an (n − 2) × (n − 2) nonsingular principal submatrix. Let B∗ represent an (n − 2) × (n − 2) nonsingular principal submatrix of B, say that obtained by striking out the kth row and column (of B). Let U (U∗ , u), where U∗ is the (n − 1) × (n − 2) submatrix of In−1 obtained by striking out the kth column (of In−1 ) and u is the kth column of In−1 . Then, U is a permutation matrix, and U∗ Bu B∗ U BU u BU∗ u Bu [so that the (n − 2) × (n − 2) leading principal submatrix of U BU is B∗ ]. Take P to be the n × n matrix U 0 P . 0 1
250
14. Linear, Bilinear, and Quadratic Forms
Then, P is a permutation matrix, and U BU P AP a U
B∗ Ua u BU∗ c a U∗
U∗ Bu u Bu a u
U∗ a u a . c
Thus, making use of Theorem 13.3.8, we find that where F
f11 f12
|A| |P|2 |A| |P AP| |B∗ ||F| , f12 with f22 f11 f12 f22
(9.7)
u Bu − u BU∗ B−1 ∗ U∗ Bu , u a − u BU∗ B−1 ∗ U∗ a , c − a U∗ B−1 ∗ U∗ a .
Further, |B| |U|2 |B| |U BU| |B∗ |(u Bu − u BU∗ B−1 ∗ U∗ Bu) |B∗ |f11 .
(9.8)
Since (by supposition) B is singular and since (by definition) B∗ is nonsingular, we have that |B| 0 and |B∗ | 0, implying [in light of result (9.8)] that f11 0 2 . Thus, making use of result (9.7), we find that and hence that |F| −f12 2 |A| −f12 |B∗ | .
We conclude that |B∗ | and |A| are opposite in sign. Q.E.D. Proof (of Theorem 14.9.7). If A is positive definite, then it is clear from Lemma 14.2.8, Corollary 14.2.12, and Lemma 14.9.1 that A is nonsingular and that the determinant of every principal submatrix of A is positive (and hence nonnegative). Thus, it suffices to prove that if A is nonsingular and the determinant of every principal submatrix of A is nonnegative, then A is positive definite. The proof of this is by mathematical induction. Consider first the relatively trivial case of a 1 × 1 matrix A (a11 ) that is nonsingular and whose only principal submatrix (A itself) has a nonnegative determinant. We have that a11 0 and a11 ≥ 0, implying that a11 > 0 and hence that A is positive definite. a11 a12 Next, consider the case of a 2 × 2 symmetric matrix A that is a12 a22 nonsingular and whose three principal submatrices [(a11 ), (a22 ), and A itself] have nonnegative determinants. We have that |A| 0, implying (since |A| ≥ 0) that |A| > 0. And a11 ≥ 0, so that a11 > 0 (since if a11 0, it would be the case 2 that |A| −a12 ≤ 0). Based on Theorem 14.9.5, we conclude that A is positive definite. Now, suppose that every (n − 1) × (n − 1) symmetric matrix that is nonsingular and whose principal submatrices all have nonnegative determinants is positive
14.9 Some Results on Determinants
251
definite, and consider an n × n symmetric matrix A that is nonsingular and whose principal submatrices all have nonnegative determinants. To complete the induction argument, we must show that A is positive definite. Observe that |A| 0 (since A is nonsingular) and that |A| ≥ 0 (since A is a principal submatrix of itself) and hence that |A| > 0. Partition A as B a A , a c where the dimensions of B are (n − 1) × (n − 1). Observe that every principal submatrix of B is a principal submatrix of A and hence that every principal submatrix of B has a nonnegative determinant. Observe also that B is nonsingular [since if B were singular, B would (according to Theorem 14.9.8) contain an (n − 2) × (n − 2) principal submatrix whose determinant would be opposite in sign to |A| and hence negative]. Accordingly, it follows from our supposition that B is positive definite. We conclude (on the basis of Lemma 14.9.6) that A is positive definite. Q.E.D. For purposes of establishing a necessary and sufficient condition for the nonnegative definiteness of a symmetric matrix, analogous to the necessary and sufficient condition given by Theorem 14.9.7 for the positive definiteness of a symmetric matrix, it is helpful to introduce the following two lemmas. Lemma 14.9.9. Let A represent an n × n symmetric matrix of rank r. Then, corresponding to any r × r nonsingular principal submatrix A∗ of A, there exists an r × n matrix Q (of rank r) such that A Q A∗ Q. Proof. Suppose that A∗ is the r × r nonsingular principal submatrix obtained by striking out all of the rows and columns of A except the i1 , i2 , . . . , ir th rows and columns (where i1 < i2 < · · · < ir ). Take P to be any permutation matrix whose first, second, . . . , rth columns are the i1 , i2 , . . . , ir th columns, respectively, of In . Let B P AP, and partition P as P (P1 , P2 ), where P1 is of dimensions n×r. Then, A∗ P1 AP1 and hence A∗ B12 , B B12 B22 where B12 P1 AP2 and B22 P2 AP2 . Since rank(B) rank(A) r, it follows from Lemma 9.2.2 that B22 B12 A−1 ∗ B12 . Thus, −1 B (Ir , A−1 ∗ B12 ) A∗ (Ir , A∗ B12 ) ,
so that
A PBP Q A∗ Q ,
where Q (Ir , A−1 ∗ B12 )P . Moreover, rank(Q) ≥ rank(A) r, and (since Q is of dimensions r × n) rank(Q) ≤ r. Thus, rank(Q) r. Q.E.D. Lemma 14.9.10. Let A represent an n × n symmetric matrix of rank r, and let A∗ represent an r × r nonsingular principal submatrix of A. Then A is nonnegative definite if and only if A∗ is positive definite.
252
14. Linear, Bilinear, and Quadratic Forms
Proof. Suppose that A is nonnegative definite. Then, according to Corollary 14.2.12, A∗ is nonnegative definite. Moreover, since A is symmetric, A∗ is symmetric. Thus, it follows from Corollary 14.3.12 that A∗ is positive definite. Conversely, suppose that A∗ is positive definite. Then, according to Lemma 14.9.9, there exists a matrix Q such that A Q A∗ Q. Thus, it follows from Theorem 14.2.9 that A is nonnegative definite. Q.E.D. The following theorem gives a necessary and sufficient condition for the nonnegative definiteness of a symmetric matrix, analogous to the necessary and sufficient condition given by Theorem 14.9.7 for the positive definiteness of a symmetric matrix. Theorem 14.9.11. Let A represent an n × n symmetric matrix. Then, A is nonnegative definite if and only if the determinant of every principal submatrix of A is nonnegative. Proof. Suppose that the symmetric matrix A is nonnegative definite. Then (in light of Corollary 14.2.12) every principal submatrix of A is nonnegative definite (and symmetric). And, we conclude (on the basis of Lemma 14.9.1) that the determinant of every principal submatrix of A is nonnegative. Conversely, suppose that the determinant of every principal submatrix of A is nonnegative. Let r rank(A). Then, according to Corollary 4.4.11, A contains an r × r nonsingular principal submatrix, say A∗ . Clearly, every principal submatrix of A∗ is a principal submatrix of A, and hence (by supposition) the determinant of every principal submatrix of A∗ is nonnegative, implying (in light of Theorem 14.9.7) that A∗ is positive definite. We conclude (on the basis of Lemma 14.9.10) that A is nonnegative definite. Q.E.D.
14.10
Geometrical Considerations
As discussed in Section 6.1, the inner product of two m × n matrices A and B (in a linear space V of m × n matrices) is the value A • B assigned to A and B by a designated function f whose domain consists of all pairs of matrices in V and that has certain basic properties. The usual inner product of A and B is that given by the formula A • B tr(A B) . In the special case of n-dimensional column vectors x {xi } and y {yi }, the formula for the usual inner product simplifies to x • y x y x1 y1 + x2 y2 + · · · + xn yn . In the present section, we consider alternative inner products for the linear space Rn×1 of all n-dimensional column vectors.
a. Expression of inner products as bilinear forms Consider a bilinear form x Ay (in n-dimensional column vectors x and y). If the matrix A is symmetric positive definite, then x Ay qualifies as an inner product for
14.10 Geometrical Considerations
253
Rn×1 . To see this, let x, y, and z represent arbitrary n-dimensional column vectors and k an arbitrary scalar, and observe that if A is symmetric positive definite, then the bilinear form has the following four properties: (1) x Ay y Ax; (2) x Ax ≥ 0, with equality holding if and only if x 0; (3) (kx) Ay k(x Ay); (4) (x + y) Az x Az + y Az. Are the symmetry and positive definiteness of A necessary as well as sufficient for the bilinear form x Ay to qualify as an inner product for Rn×1 ? The answer is yes. If A were not symmetric, then (as discussed in Section 14.1) the bilinear form x Ay would not be symmetric; that is, there would exist n-dimensional vectors x and y such that x Ay y Ax. Moreover, if A were not positive definite, then x Ax < 0 for some x or x Ax 0 for some nonnull x. Note (in light of Corollary 14.1.3) that distinct (symmetric positive definite) choices for the matrix A of the bilinear form x Ay produce distinct inner products. Is every inner product for Rn×1 expressible as a bilinear form? The answer is yes. To verify this, let x • y represent the value assigned to arbitrary n-dimensional column vectors x and y by an inner product for Rn×1 ; denote by e1 , . . . , en the first, . . . , nth columns, respectively, of In ; and take A to be the n × n matrix whose ij th element is aij ei • ej . Then, •
x y
x i ei
•
y
i
xi (ei • y)
i
x i ei
i
i
xi
•
j
y j ej
j
yj (ei • ej )
xi yj aij x Ay .
i,j
In summary, a bilinear form (in n-dimensional vectors) qualifies as an inner product for Rn×1 if and only if the matrix of the bilinear form is symmetric and positive definite; distinct (symmetric positive definite) choices for the matrix of the bilinear form produce distinct inner products for Rn×1 ; and every inner product for Rn×1 is expressible as a bilinear form.
b. Schwarz inequality In light of the discussion of Subsection a, we obtain, as a direct consequence of Theorem 6.3.1, the following version of the Schwarz inequality.
254
14. Linear, Bilinear, and Quadratic Forms
Theorem 14.10.1. Let W represent an n × n symmetric positive definite matrix. Then, for any n-dimensional column vectors x and y, (x Wy)2 ≤ (x Wx)(y Wy) ,
(10.1)
with equality holding if and only if y 0 or x ky for some scalar k. The following corollary, which is essentially a special case of Corollary 6.3.2, expresses the result of Theorem 14.10.1 in an alternative form. Corollary 14.10.2. Let W represent an n×n symmetric positive definite matrix. Then, for any n-dimensional column vector y, (x Wy)2 y Wy . :x0} x Wx
max n
{x∈R
(10.2)
Moreover, if y 0, the maximum is attained at every nonnull x ∈ Rn , and if y 0, the maximum is attained at every nonnull x ∈ Rn that is proportional to y. By replacing the vector y in Theorem 14.10.1 and Corollary 14.10.2 with the vector W−1 y, we obtain the following two corollaries. Corollary 14.10.3. Let W represent an n×n symmetric positive definite matrix. Then, for any n-dimensional column vectors x and y, (x y)2 ≤ (x Wx)(y W−1 y) ,
(10.3)
with equality holding if and only if y 0 or x kW−1 y for some scalar k. Corollary 14.10.4. Let W represent an n×n symmetric positive definite matrix. Then, for any n-dimensional column vector y, (x y)2 y W−1 y . {x∈Rn :x0} x Wx max
(10.4)
Moreover, if y 0, the maximum is attained at every nonnull x ∈ Rn , and if y 0, the maximum is attained at every nonnull x ∈ Rn that is proportional to W−1 y.
c. Quasi-inner products Let V represent a linear space of m × n matrices, let f represent a function whose domain consists of all pairs of matrices in V, and, for A and B in V, denote by A ∗ B the value assigned by f to the pair A and B. The four basic requirements that would (for all matrices A, B, and C in V and for every scalar k) have to be satisfied by f for f to qualify as an inner product are: (1) A ∗ B B ∗ A; (2) A ∗ A ≥ 0, with equality holding if and only if A 0; (3) (kA) ∗ B k(A ∗ B);
14.10 Geometrical Considerations
255
(4) (A + B) ∗ C (A ∗ C) + (B ∗ C). A less restrictive requirement than requirement (2) is the requirement (2 ) A ∗ A ≥ 0, with equality holding if A 0; obtained by allowing A ∗ A to equal 0 even if A 0. If f satisfies requirement (2 ) [as well as requirements (1), (3), and (4)], but not necessarily requirement (2), let us use the term quasi-inner product in referring to f and to the values assigned by f to the various pairs of matrices. Subsequently, the symbol A • B will sometimes be used to represent the quasiinner product of two matrices A and B, although this will never be done without calling attention to the (temporary) departure from our standard usage of A • B as a symbol for a “true” inner product. In using the dot notation to represent a quasiinner product, the symbol A will continue to be used to represent the quantity (A • A)1/2 . In the case of a quasi-inner product, let us refer to this quantity as a quasi norm, rather than a norm. It is a straightforward exercise to generalize the results of Subsection a to quasiinner products. We find that a bilinear form (in n-dimensional vectors) qualifies as a quasi-inner product for Rn×1 if and only if the matrix of the bilinear form is symmetric and nonnegative definite; that distinct (symmetric nonnegative definite) choices for the matrix of the bilinear form produce distinct quasi-inner products for Rn×1 ; and that every quasi-inner product for Rn×1 is expressible as a bilinear form. The Schwarz inequality (6.3.1) applies to quasi-inner products as well as “true” inner products. To see this, let V represent a linear space of m × n matrices, and let A • B represent the value assigned by a quasi-inner product to any pair of matrices A and B (in V). That the Schwarz inequality |A • B| ≤ AB
(10.5)
is valid for all A and B in V such that B > 0 can be established in essentially the same way as in the case of a “true” inner product — refer to the proof of Theorem 6.3.1. And, it can be established via an analogous argument that this inequality is valid for all A and B in V such that A > 0. It remains to establish the validity of inequality (10.5) for those A and B in V such that A B 0 — this can be accomplished by observing that if A B 0, then 0 ≤ (A + B) • (A + B) 2A • B and 0 ≤ (A − B) • (A − B) −2A • B , and, as a consequence, A • B 0. As in the case of a “true” inner product, a sufficient condition for equality to hold in inequality (10.5), that is, for |A • B| AB ,
(10.6)
256
14. Linear, Bilinear, and Quadratic Forms
is that B 0 or A kB for some scalar k. However, this condition is no longer necessary. That is, in general, equality (10.6) can be satisfied without B being null or A being proportional to B. In the case of a quasi-inner product, A 0 need not imply that A 0. However, even in the case of a quasi-inner product, A 0
⇒
A•B 0
(10.7)
(for every B in V), as is evident from the Schwarz inequality.
14.11
Some Results on Ranks and Row and Column Spaces and on Linear Systems
The following theorem generalizes Theorem 7.4.1. Theorem 14.11.1. Let W represent an m × m symmetric nonnegative definite matrix. Then, for any m × n matrix A and m × p matrix B, the linear system A WAX A WB (in X)
(11.1)
is consistent. Proof. According to Corollary 14.3.8, W P P for some matrix P. Linear system (11.1) can be rewritten as A∗ A∗ X A∗ B∗ , where A∗ PA and B∗ PB. Thus, it follows from Theorem 7.4.1 that linear system (11.1) is consistent. Q.E.D. Some results on the row and column spaces and the rank of the coefficient matrix of linear system (11.1) are given by the following lemma, which generalizes Corollary 7.4.5. Lemma 14.11.2. For any m × n matrix A and any m × m symmetric nonnegative definite matrix W, C(A WA) C(A W), R(A WA) R(WA), and rank(A WA) rank(WA). Proof. According to Corollary 14.3.8, W P P for some matrix P. Observing that A WA (PA) PA and making use of Corollary 7.4.5 and Theorem 7.4.3, we find that R(A WA) R(PA) R(P PA) R(WA) . That C(A WA) C(A W) follows from Lemma 4.2.5. Q.E.D. Since any positive definite matrix is nonsingular, we have (in light of Corollary 8.3.3) the following corollary of Lemma 14.11.2, which (like Lemma 14.11.2 itself) can be regarded as a generalization of Corollary 7.4.5. Corollary 14.11.3. For any m × n matrix A and any m × m symmetric positive definite matrix W, C(A WA) C(A ), R(A WA) R(A), and rank(A WA) rank(A).
14.12 Projections, Projection Matrices, and Orthogonal Complements
14.12
257
Projections, Projection Matrices, and Orthogonal Complements
In this section, further consideration is given to the projection of an n-dimensional column vector on a subspace of Rn×1 . By definition, the projection depends on the choice of inner product. A rather extensive discourse on the projection of a column vector was presented in Chapter 12. The results included in that discourse are, for the most part, specific to the case where the inner product is the usual inner product. In this section, these results are generalized to an arbitrary inner product.
a. Some terminology, notation, and basic results Let W represent an n × n symmetric positive definite matrix. As discussed in Section 14.10a, the bilinear form x Wy (in n-dimensional column vectors x and y) qualifies as an inner product for Rn×1 . (And every inner product is expressible as a bilinear form.) When the bilinear form x Wy is chosen to be the inner product for Rn×1 , x ⊥ y (i.e., two n-dimensional column vectors x and y are orthogonal) if and only if x Wy 0, x ⊥ U (i.e., x is orthogonal to a subspace U of Rn×1 ) if and only if x Wy 0 for every y in U, and U ⊥ V (i.e., U is orthogonal to a subspace V) if and only if x Wy 0 for every x in U and every y in V. To indicate that x Wy 0 for two n-dimensional vectors x and y, let us (for convenience and/or to emphasize that the orthogonality of two vectors depends on the choice of inner product) write x ⊥W y or say that x and y are orthogonal with respect to W. Similarly, to indicate that x Wy 0 for every vector y in a subspace U, let us write x ⊥W U or say that x and U are orthogonal with respect to W. And, to indicate that x Wy 0 for every x in a subspace U and every y in a subspace V, let us write U ⊥W V or say that U and V are orthogonal with respect to W. Clearly, saying that x and y, x and U, or U and V are orthogonal with respect to I is synonymous with saying that they are orthogonal with respect to the usual inner product. Furthermore, let us extend our use of this notation and terminology to the case where W is positive semidefinite rather than positive definite. Thus, for any n × n symmetric nonnegative definite matrix W, let us write x ⊥W y or say that x and y are orthogonal with respect to W to indicate that x Wy 0; let us write x ⊥W U or say that x and U are orthogonal with respect to W to indicate that x Wy 0 for every y in U; and let us write U ⊥W V or say that U and V are orthogonal with respect to W to indicate that x Wy 0 for every x in U and every y in V. Note that if W is only positive semidefinite, then the bilinear form x Wy does not qualify as an inner product (as it does when W is positive definite) — although it still qualifies as what (in Section 14.10c) is called a quasi-inner product. By applying Lemma 12.1.1 (in the special case where V Rm×1 and U and W are column spaces of matrices), we obtain the following generalization of Corollary 12.1.2. Lemma 14.12.1. Let y represent an m-dimensional column vector, X an m × n
258
14. Linear, Bilinear, and Quadratic Forms
matrix, and Z an m × p matrix, and let W represent an m × m symmetric positive definite matrix. Then, y ⊥W C(X) if and only if X Wy 0 (or equivalently if and only if y WX 0). Similarly, C(X) ⊥W C(Z) if and only if X WZ 0 (or equivalently if and only if Z WX 0). The restriction in Lemma 14.12.1 that W be positive definite can be relaxed. The lemma is valid for any m × m symmetric nonnegative definite matrix W, as can be easily verified.
b. Approach To extend (to inner products other than the usual inner product) the results presented in Chapter 12 on the projection of a column vector, we could proceed in either of two ways. One approach is to generalize and (when necessary) modify the derivations given in Chapter 12. An alternative approach, which is sometimes employed here, uses the following lemma to take advantage of the results already established (in Chapter 12) in the special case of the usual inner product. Lemma 14.12.2. Let L represent an arbitrary matrix of dimensions m × n, and let U represent an arbitrary subspace of Rn×1 . Further, define V {v ∈ Rm : v Lx for some x ∈ U} , define W L L, and let X represent an n × p matrix whose columns span U. Then, (1) the set V is a subspace of Rm ; (2) two vectors x and y in Rn are orthogonal with respect to W if and only if Lx and Ly are orthogonal with respect to the usual inner product (for Rm ); (3) a vector x (in Rn ) and the subspace U are orthogonal with respect to W if and only if Lx and V are orthogonal with respect to the usual inner product (for Rm ); (4) the subspace U and a subspace M (of Rn×1 ) are orthogonal with respect to W if and only if V and the subspace N {z ∈ Rm : z Ly for some y ∈ M} are orthogonal with respect to the usual inner product (for Rm ); (5) the columns of LX span V. Proof. (1) By definition, V is a subset of Rm . Thus, it suffices to show that V is a linear space. Let v and w represent arbitrary vectors in V, and let k be an arbitrary scalar. Then, v Lx and w Ly for some vectors x and y in U, and (since U is a linear space) x + y ∈ U and kx ∈ U. It follows that v + w L(x + y) ∈ V and kv L(kx) ∈ V, and hence that V is a linear space. (2) Observe that x Wy (Lx) Ly, and hence that x Wy 0 if and only if (Lx) Ly 0.
14.12 Projections, Projection Matrices, and Orthogonal Complements
259
(3) In light of Part (2), x and U are orthogonal with respect to W, or, equivalently, x and y are orthogonal (with respect to W) for every y in U, if and only if Lx and Ly are orthogonal (with respect to the usual inner product) for every y in U. Thus, x and U are orthogonal (with respect to W) if and only if Lx and v are orthogonal (with respect to the usual inner product) for every v in V, or, equivalently, if and only if Lx and V are orthogonal (with respect to the usual inner product). (4) In light of Part (2), U and M are orthogonal with respect to W, or, equivalently, x and y are orthogonal (with respect to W) for every x in U and every y in M, if and only if Lx and Ly are orthogonal (with respect to the usual inner product) for every x in U and every y in M. Thus, U and M are orthogonal (with respect to W) if and only if v and z are orthogonal (with respect to the usual inner product) for every v in V and every z in N , or, equivalently, if and only if V and N are orthogonal (with respect to the usual inner product). (5) Let v represent an arbitrary vector in V. Then, v Lx for some x ∈ U. Moreover, x Xr for some p-dimensional column vector r. Thus, v LXr, so that v is expressible as a linear combination of the columns of LX. We conclude that the columns of LX span V. Q.E.D.
c. Projections Let W represent an n × n symmetric positive definite matrix, let y represent an n-dimensional column vector, and let U represent a subspace of Rn×1 . Define z to be the projection of y on U when the inner product (for Rn×1 ) is taken to be the bilinear form x Wy. Let us refer to this projection as the orthogonal projection of y on U with respect to, W or simply as the projection of y on U with respect to W. Formula (12.2.1) gives the projection of y on U with respect to the usual inner product (i.e., with respect to I) in terms of an arbitrary solution to the normal equations (12.2.2). For purposes of generalizing this formula, let L represent a nonsingular matrix such that W L L, define V {v ∈ Rn : v Lx for some x ∈ U} , and take X to be any n × p matrix whose columns span U. Let b∗ represent any solution to the linear system X WXb X Wy (in b) . (The existence of such a solution follows from Theorem 14.11.1.) Note that this linear system can be rewritten as (LX) LXb (LX) Ly . By definition, z is the (unique) vector in U such that y − z ⊥W U. Thus, it follows from Part (3) of Lemma 14.12.2 that L(y − z), or, equivalently, Ly − Lz, is orthogonal to V with respect to the usual inner product, implying that Lz is the projection of Ly on V with respect to the usual inner product. Since [according to
260
14. Linear, Bilinear, and Quadratic Forms
Part (5) of Lemma 14.12.2] the columns of LX span V, we have, as a consequence of Theorem 12.2.1, that Lz LXb∗ and hence (since L is nonsingular) that z Xb∗ . In summary, we have the following generalization of Theorem 12.2.1. Theorem 14.12.3. Let z represent the projection of an n-dimensional column vector y on a subspace U (of Rn ) with respect to a symmetric positive definite matrix W, and let X represent any n × p matrix whose columns span U. Then, z Xb∗ for any solution b∗ to the (consistent) linear system X WXb X Wy (in b) . The following three corollaries (of Theorem 14.12.3) generalize Corollaries 12.2.2–12.2.4, respectively. Corollary 14.12.4. Let z represent the projection of an n-dimensional column vector y on a subspace U (of Rn ) with respect to a symmetric positive definite matrix W, and let X represent any n × p matrix whose columns span U. Then, z X(X WX)− X Wy . Corollary 14.12.5. Let y represent an n-dimensional column vector, X an n × p matrix, and U any n × q matrix such that C(U) C(X). Then, Ua∗ Xb∗ for any solution a∗ to the linear system U WUa U Wy (in a) and any solution b∗ to the linear system X WXb X Wy (in b). Corollary 14.12.6. Let y represent an n-dimensional column vector, and X an n × p matrix. Then, Xb1 Xb2 for any two solutions b1 and b2 to the linear system X WXb X Wy (in b). The following theorem generalizes Theorem 12.2.5. Theorem 14.12.7. Let z represent the projection of an n-dimensional column vector y on a subspace U (of Rn ) with respect to a symmetric positive definite matrix W, and let X represent any n × p matrix whose columns span U. Then any p × 1 vector b∗ such that z Xb∗ is a solution to the linear system X WXb X Wy (in b). Proof. As a consequence of Theorem 14.12.3, X WXb X Wy has a solution, say a, and z Xa. Thus, X WXb∗ X Wz X WXa X Wy . Q.E.D.
d. Projection matrices Subsequently, for any n×p matrix X and for any n×n matrix W, the symbol PX,W is used to represent the n×n matrix X(X WX)− X W. Note that PX,I X(X X)− X PX . Note also that if W is symmetric and positive definite, then PX,W is invariant to the choice of the generalized inverse (X WX)− as (in light of Corollary 14.11.3) is evident from Theorem 9.4.1 and as is implicit in the following theorem.
14.12 Projections, Projection Matrices, and Orthogonal Complements
261
Theorem 14.12.8. Let U represent any subspace of the linear space Rn of all n-dimensional column vectors, and let W represent any n × n symmetric positive definite matrix. Then there exists a unique matrix A (of dimensions n × n) such that, for every y in Rn , Ay is the projection of y on U with respect to W. Moreover, A PX,W for any matrix X such that C(X) U. Theorem 14.12.8 generalizes Theorem 12.3.1 and can be proved in essentially the same way as Theorem 12.3.1. Let us refer to the matrix A (from Theorem 14.12.8) as the orthogonal projection matrix for U with respect to W or simply as the projection matrix for U with respect to W. And let us speak of an n × n matrix as a projection matrix with respect to W when we wish to indicate that there exists some subspace of Rn for which that matrix is the projection matrix with respect to W. Moreover, for consistency with our previous terminology, let us refer to the projection matrix for U with respect to I simply as the projection matrix for U and to a projection matrix with respect to I simply as a projection matrix. The following two corollaries (of Theorem 14.12.8) generalize Corollaries 12.3.2 and 12.3.3. Corollary 14.12.9. Let A represent the projection matrix for a subspace U (of Rn×1 ) with respect to an n × n symmetric positive definite matrix W. Then, A PX,W for any matrix X such that C(X) U. Corollary 14.12.10. An n × n matrix A is a projection matrix with respect to an n × n symmetric positive definite matrix W if and only if A PX,W for some matrix X. The basic properties of projection matrices encompassed in Theorems 12.3.4 and 12.3.5 are generalized in the following two theorems. Theorem 14.12.11. Let X represent any n×p matrix, and W any n×n symmetric positive definite matrix. Then, (1) PX,W X X; that is, X(X WX)− X WX X; implying that WPX,W X WX; (2) PX,W XB∗ for any solution B∗ to the linear system X WXB X W (in B); (3) WPX,W is symmetric; that is, WX[(X WX)− ] X W WX(X WX)− X W; (3 ) PX,W W−1 is symmetric; that is, X[(X WX)− ] X X(X WX)− X ;
(4) X[(X WX)− ] X WX X; implying that PX,W WX WX;
(5) X WX(X WX)− X X WX[(X WX)− ] X X PX,W X ; implying that X WPX,W X W; (6) P2X,W PX,W ; that is PX,W is idempotent;
(6 ) PX,W WPX,W WPX,W ; (7) C(PX,W ) C(X), and R(PX,W ) R(X W); (8) rank(PX,W ) rank(X);
262
14. Linear, Bilinear, and Quadratic Forms
(9) (I − PX,W )2 I − PX,W ; that is I − PX,W is idempotent; (9 ) (I − PX,W ) W(I − PX,W ) W(I − PX,W ); (10) rank(I − PX,W ) n − rank(X). Proof. According to Corollary 14.3.13, there exists a nonsingular matrix L such that W L L. (1) Making use of Part (1) of Theorem 12.3.4, we find that LX(X WX)− X WX LX[(LX) LX]− (LX) LX LX . Since L is nonsingular, we conclude that X(X WX)− X WX X. (2) If B∗ is a solution to X WXB X W, then (according to Theorem 11.2.4) B∗ (X WX)− X W + [I − (X WX)− X WX]Y for some matrix Y, implying [in light of Part (1)] that XB∗ PX,W + [X − X(X WX)− X WX]Y PX,W . (3) and (3 ). It follows from Part (3) of Theorem 12.3.4 that LX[(X WX)− ] X L
LX{[(LX) LX]− } (LX)
LX[(LX) LX]− (LX) LX(X WX)− X L .
Thus, WX[(X WX)− ] X W
L LX[(X WX)− ] X L L L LX(X WX)− X L L WX(X WX)− X W ,
and X[(X WX)− ] X
L−1 LX[(X WX)− ] X L (L )−1
L−1 LX(X WX)− X L (L )−1 X(X WX)− X .
(4) Making use of Parts (3) and (1), we find that X[(X WX)− ] X WX
W−1 {WX[(X WX)− ] X W}X W−1 [WX(X WX)− X W]X X(X WX)− X WX X .
(5) It follows from Part (4) that X {X[(X WX)− ] X WX} X WX(X WX)− X and from Part (1) that
X (PX,W X) X PX,W X WX[(X WX)− ] X .
14.12 Projections, Projection Matrices, and Orthogonal Complements
263
(6) Making use of Part (5), we find that P2X,W X(X WX)− X WPX,W X(X WX)− X W PX,W . (6 ) Making use of Part (4), we find that
PX,W WX(X WX)− X W WX(X WX)− X W WPX,W .
PX,W WPX,W
(7) Recalling Corollary 4.2.3, it is clear from the definition of PX,W that C(PX,W ) ⊂ C(X) and from Part (1) that C(X) ⊂ C(PX,W ), so that C(PX,W ) C(X). Similarly, it is clear from the definition of PX,W that R(PX,W ) ⊂ R(X W) and from Part (5) that R(X W) ⊂ R(PX,W ), so that R(PX,W ) R(X W). (8) That rank(PX,W ) rank(X) is an immediate consequence of Part (7). (9) Since [according to Part (6)] PX,W is idempotent, it follows from Lemma 10.1.2 that I − PX,W is idempotent. (9 ) Making use of Parts (3) and (6 ), we find that (I − PX,W ) W(I − PX,W )
W − (WPX,W ) − WPX,W + PX,W WPX,W
W − WPX,W − WPX,W + WPX,W
W(I − PX,W ) .
(10) Making use of Lemma 10.2.4 and Parts (6) and (8), we find that rank(I − PX,W ) n − rank(PX,W ) n − rank(X) . Q.E.D. Theorem 14.12.12. Let X represent an n × p matrix, U an n × q matrix such that C(U) ⊂ C(X), and W an n × n symmetric positive definite matrix. Then, (1) PX,W U U, implying that WPX,W U WU, and U WX(X WX)− X U , implying that U WPX,W U W;
(2) PX,W PU,W PU,W PX,W PU,W , and PX,W WPU,W WPU,W . Proof. (1) According to Lemma 4.2.2, there exists a matrix F such that U XF. Thus, making use of Parts (1) and (5) of Theorem 14.12.11, we find that PX,W U PX,W XF XF U and
U WX(X WX)− X F X WX(X WX)− X F X U .
(2) Making use of Part (1), we find that PX,W PU,W PX,W U(U WU)− U W U(U WU)− U W PU,W and similarly that PU,W PX,W
U(U WU)− U WX(X WX)− X W
U(U WU)− U W PU,W .
264
14. Linear, Bilinear, and Quadratic Forms
Further, making use of Part (3) of Theorem 14.12.11, we find that
PX,W WPU,W (WPX,W ) PU,W WPX,W PU,w WPU,W . Q.E.D. The following two corollaries generalize Corollaries 12.3.6 and 12.3.7 and can be deduced from Theorem 14.12.12 in essentially the same way that Corollaries 12.3.6 and 12.3.7 were deduced from Theorem 12.3.5. Corollary 14.12.13. Let W represent an n×n symmetric positive definite matrix. Then, for any n × p matrix X and any n × q matrix U such that C(U) C(X), PU,W PX,W . Corollary 14.12.14. Let W represent an n×n symmetric positive definite matrix and X an n × p matrix. Then, for any matrix A that is the projection matrix for some subspace U of C(X) with respect to W, PX,W A APX,W A . The following theorem generalizes Theorem 12.3.8 and can be derived in essentially the same way as Theorem 12.3.8. Theorem 14.12.15. If an n × n matrix A is the projection matrix for some subspace U of Rn×1 with respect to some n×n symmetric positive definite matrix, then U C(A) and dim(U) rank(A). The following theorem characterizes matrices that are projection matrices with respect to any particular symmetric positive definite matrix. Theorem 14.12.16. An n × n matrix A is a projection matrix with respect to an n × n symmetric positive definite matrix W if and only if A WA WA or, equivalently, if and only if (I − A) WA 0. Proof. Suppose that A is a projection matrix with respect to W. Then, according to Corollary 14.12.10, A PX,W for some matrix X. Thus, it follows from Part (6 ) of Theorem 14.12.11 that A WA WA. Conversely, suppose that A WA WA or, equivalently, that A W (WA) (A WA) A WA . Then, making use of Part (1) of Theorem 14.12.11, we find that A
PA,W + A − A(A WA)− A W
PA,W + A − A(A WA)− A WA PA,W + A − A
PA,W ,
which is the projection matrix for C(A) with respect to W. Q.E.D. The following corollary, which generalizes Theorem 12.3.9, gives an alternative characterization of matrices that are projection matrices with respect to any particular symmetric positive definite matrix. Corollary 14.12.17. An n × n matrix A is a projection matrix with respect to an n × n symmetric positive definite matrix W if and only if WA is symmetric and A is idempotent.
14.12 Projections, Projection Matrices, and Orthogonal Complements
265
Proof. In light of Theorem 14.12.16, it suffices to show that A WA WA if and only if WA is symmetric and A is idempotent or, equivalently (since W is nonsingular), if and only if WA is symmetric and WA2 WA. If WA is symmetric and WA2 WA, then A WA (WA) A WAA WA2 WA . Conversely, if A WA WA, then (WA) (A WA) A WA WA (i.e., WA is symmetric), and WA2 WAA (WA) A A WA WA . Q.E.D.
e. When are projections with respect to a symmetric positive definite matrix W projections with respect to another symmetric positive definite matrix V? Suppose that U is a subspace of the linear space Rn of all n-dimensional column vectors. Let X represent an n × p matrix whose columns span U, and let W and V represent n × n symmetric positive definite matrices. Under what circumstances is the projection PX,W y of y on U with respect to W the same (for every y in Rn ) as the projection PX,V y of y on U with respect to V? Or equivalently (in light of Lemma 2.3.2), under what circumstances is PX,W PX,V ; that is, under what circumstances is PX,W the projection matrix for U with respect to V as well as the projection matrix for U with respect to W? These circumstances can be characterized in terms of the conditions given by the following theorem. Theorem 14.12.18. Let U represent a subspace of Rn×1 , let X represent an n × p matrix whose columns span U, and let W and V represent n × n symmetric positive definite matrices. Then each of the following four conditions is necessary and sufficient for the projection PX,W y of y on U with respect to W to be the same (for every y in Rn ) as the projection PX,V y of y on U with respect to V (or, equivalently, for PX,W PX,V ): (1) X VPX,W X V, or, equivalently, X V(I − PX,W ) 0;
(2) PX,W VPX,W VPX,W , or, equivalently, (I − PX,W ) VPX,W 0; (3) VPX,W is symmetric; (4) there exists a p ×p matrix Q such that VX WXQ, or, equivalently, C(VX) ⊂ C(WX). Proof. (1) It follows from Lemma 14.12.1 that the projection PX,W y of y on U with respect to W is the same (for every y in Rn ) as the projection of y on U with respect to V if and only if, for every y, X V(y − PX,W y) 0 ,
266
14. Linear, Bilinear, and Quadratic Forms
or, equivalently, if and only if, for every y, X V(I − PX,W )y 0 , and hence if and only if
X V(I − PX,W ) 0 .
(2) It suffices to show that Condition (2) is equivalent to Condition (1). If Condition (1) is satisfied, then
(X VPX,W ) (X WX)− X W (X V) (X WX)− X W VPX,W .
PX,W VPX,W
Conversely, if Condition (2) is satisfied, then, making use of Part (5) of Theorem 14.12.11, we find that X V
X PX,W V X (VPX,W )
X (PX,W VPX,W ) X PX,W VPX,W X VPX,W .
(3) It suffices to show that Condition (3) is equivalent to Condition (2). If Condition (2) is satisfied, then
(VPX,W ) (PX,W VPX,W ) PX,W VPX,W VPX,W , that is, VPX,W is symmetric. Conversely, if Condition (3) is satisfied, then [in light of Part (6) of Theorem 14.12.11]
PX,W VPX,W (VPX,W ) PX,W VPX,W PX,W VPX,W . (4) It suffices to show that Condition (4) is equivalent to Condition (1) or, equivalently [since VX (X V) and PX,W VX (X VPX,W ) ], to the condition
VX PX,W VX .
(12.1)
If Condition (12.1) is satisfied, then VX WX[(X WX)− ] X VX WXQ for Q [(X WX)− ] X VX. Conversely, if VX WXQ for some matrix Q, then, making use of Part (4) of Theorem 14.12.11, we find that
PX,W VX PX,W WXQ WXQ VX ; that is, condition (12.1) is satisifed. Q.E.D. Condition (4) of Theorem 14.12.18 has appeal relative to Conditions (1) – (3) in that it does not explicitly involve PX,W . In the special case where W I, PX,W reduces to the usual projection matrix PX X(X X)− X , and (in this special case) the four conditions of Theorem 14.12.18 reduce, respectively, to
14.12 Projections, Projection Matrices, and Orthogonal Complements
267
(1) X VPX X V, or, equivalently, X V(I − PX ) 0; (2) PX VPX VPX , or, equivalently, (I − PX )VPX 0; (3) VPX is symmetric; (4) there exists a p × p matrix Q such that VX XQ, or, equivalently, C(VX) ⊂ C(X).
f. Generalized or weighted least squares problem Suppose that y {yi } is an n-dimensional column vector and that U is a subspace of the linear space Rn of all n-dimensional column vectors. Let W {wij } represent an n × n symmetric positive definite matrix. Consider the problem of minimizing, for u {ui } in U, the quadratic form (y − u) W(y − u) (in the difference y − u) or, equivalently, the quantity [(y − u) W(y − u)]1/2 , which is the distance between y and u when the inner product is taken to be the bilinear form x Wy. This minimization problem is known as the generalized or weighted least squares problem. [Typically, the use of the term weighted least squares is reserved for the special
case where W is a diagonal matrix — in this special case, (y − u) W(y − u) ni1 wii (yi − ui )2 , which is a weighted sum of the squared deviations of the elements of u from the corresponding elements of y (with weights w11 , w22 , . . . , wnn , respectively).] In the special case where W I, the generalized or weighted least squares problem reduces to the least squares problem considered in Section 12.4. It is customary (and convenient) to refer to this special case as simple least squares, ordinary least squares, or unweighted least squares. The solution of the generalized least squares problem, like that of the simple least squares problem, can be obtained as a special case of Theorem 12.4.1. Since [(y − u) W(y − u)]1/2 is the distance between y and u (when the inner product is taken to be the bilinear form x Wy), Theorem 12.4.1 implies that [(y − u) W(y − u)]1/2 is minimized uniquely by taking u to be the projection of y on U with respect to W. Thus, based on Theorem 14.12.3, we arrive at the following generalization of Theorem 12.4.2. Theorem 14.12.19. Let U represent a subspace of the linear space Rn of all n-dimensional column vectors, let X be an n × p matrix such that C(X) U, let W be an n × n symmetric positive definite matrix, and let y represent a vector in Rn . Then, for u ∈ U, the quadratic form (y − u) W(y − u) (in the difference y − u) is minimized uniquely by taking u Xb∗ , where b∗ is any solution to the linear system X WXb X Wy (in b), or, equivalently, by taking u PX,W y. Furthermore, the minimum value of (y − u) W(y − u) (for u ∈ U) is expressible as (y − Xb∗ ) W(y − Xb∗ ) y W(y − Xb∗ ) y W(I − PX,W )y . In light of Theorem 14.12.7, we have the following variant of Theorem 14.12.19, which generalizes Theorem 12.4.3.
268
14. Linear, Bilinear, and Quadratic Forms
Theorem 14.12.20. Let X represent an n × p matrix, W an n × n symmetric positive definite matrix, and y an n-dimensional column vector. Then, for b ∈ Rp , the quadratic form (y − Xb) W(y − Xb) has a minimum at a point b∗ if and only if b∗ is a solution to the linear system X WXb X Wy, in which case Xb∗ PX,W y and (y − Xb∗ ) W(y − Xb∗ ) y W(y − Xb∗ ) y W(I − PX,W )y . The results encompassed in Theorems 14.12.19 and 14.12.20 are generally attributed to Aitken (1935). In fact, the p equations that compose the linear system X WXb X Wy have come to be known as the Aitken equations.
g. Orthogonal complements of row and column spaces Let X represent an n × p matrix, and take W to be an n × n symmetric positive definite matrix. In Section 12.5, consideration was given to C ⊥ (X) and R⊥ (X), which are the orthogonal complements of C(X) and R(X), respectively, relative to the linear space Rn (of all n-dimensional column or row vectors) when the inner product is taken to be the usual inner product for Rn . Let us now consider the orthogonal complements of C(X) and R(X) relative to Rn when the inner product is taken to be the bilinear form x Wy. Let us denote these orthogonal complements by ⊥ (X) and R⊥ CW W (X), respectively, and speak of them as the orthogonal complements of C(X) and R(X) with respect to W. Note that CI⊥ (X) C ⊥ (X) and R⊥ I (X) R⊥ (X). Since [according to Part (5) of Theorem 14.12.11] X(X WX)− is a generalized inverse of X W, we have (in light of Lemma 14.12.1 and Corollary 11.2.2) the following generalization of Lemma 12.5.2. Lemma 14.12.21. For any n × p matrix X and any n × n symmetric positive definite matrix W, ⊥ CW (X) N (X W) C(I − PX,W ) .
(12.2)
As a consequence of Lemma 11.3.1 or alternatively Theorem 14.12.11, we have the following corollary, which is a generalization of Corollary 12.5.3. Corollary 14.12.22. For any n × p matrix X and any n × n symmetric positive definite matrix W, ⊥ (X)] n − rank(X) n − dim[C(X)] . dim[CW
(12.3)
h. Projection on the orthogonal complement of a column space In light of Theorems 12.5.8 and 14.12.3, we have the following theorem and corollary, which are generalizations of Corollaries 12.5.9 and 12.5.10. Theorem 14.12.23. Let X represent an n × p matrix, W an n × n symmetric positive definite matrix, and y an n-dimensional column vector, and take z to be ⊥ the projection of y on CW (X) with respect to W. Then, z y − Xb∗
14.12 Projections, Projection Matrices, and Orthogonal Complements
269
for any solution b∗ to the linear system X WXb X Wy (in b). In particular, z y − PX,W y (I − PX,W )y . Corollary 14.12.24. Let X represent an n × p matrix and W an n × n symmetric ⊥ positive definite matrix. Then, the projection matrix for CW (X) with respect to W is I − PX,W .
i. Extensions Let W represent an n×n symmetric nonnegative definite matrix, and let U represent a subspace of Rn×1 . In what follows, a vector z in U is said to be a projection of an n-dimensional column vector y on U with respect to W if (y − z) ⊥W U; and an n × n matrix A is said to be a projection matrix for U with respect to W if, for every y in Rn×1 , Ay is a projection of y on U. (To say simply that an n × n matrix A is a projection matrix with respect to W is to indicate that there exists some subspace of Rn×1 for which A is a projection matrix with respect to W.) Our previous use of this terminology was restricted to the case where W is positive definite. Recall that, for any n × p matrix X and any n × n matrix W, PX,W X(X WX)− X W. Theorem 14.12.11 sets forth some basic properties of the matrix PX,W in the special case where W is symmetric and positive definite. The following theorem gives generalizations of those properties for the less restrictive special case where W is symmetric and nonnegative definite. Theorem 14.12.25. Let X represent any n×p matrix, and W any n×n symmetric nonnegative definite matrix. Then, (1) WPX,W X WX; that is WX(X WX)− X WX WX; (2) WPX,W WXB∗ for any solution B∗ to the linear system X WXB X W (in B); (3) WPX,W is symmetric; that is, WX[(X WX)− ] X W WX(X WX)− X W;
(4) PX,W WX WX; that is, WX[(X WX)− ] X WX WX;
(5) X WPX,W X PX,W W X W; that is, X WX(X WX)− X W X WX[(X WX)− ] X W X W; (6) P2X,W PX,W ; that is, PX,W is idempotent;
(6 ) PX,W WPX,W WPX,W ; (7) C(WPX,W ) C(WX), and R(PX,W ) R(X W); (8) rank(PX,W ) rank(WPX,W ) rank(WX); (9) (I − PX,W )2 I − PX,W ; that is, I − PX,W is idempotent; (9 ) (I − PX,W ) W(I − PX,W ) W(I − PX,W );
270
14. Linear, Bilinear, and Quadratic Forms
(10) rank(I − PX,W ) n − rank(WX). The various parts of Theorem 14.12.25 can be established via arguments that are essentially the same as the arguments employed in establishing the corresponding parts of Theorem 14.12.11 or via simple variants of those arguments. The following theorem extends the result (on projections) given by Theorem 14.12.3. Theorem 14.12.26. Let y represent an n-dimensional column vector, let U represent a subspace of Rn×1 , let W represent an n×n symmetric nonnegative definite matrix, and let X represent any n × p matrix whose columns span U. Then (1) there exists a projection of y on U with respect to W; (2) Wz has the same value for every vector z that is a projection of y on U with respect to W; and (3) a vector z is a projection of y on U with respect to W if and only if z Xb∗ for some solution b∗ to the (consistent) linear system X WXb X Wy (in b) .
(12.4)
Proof. Let L represent a matrix such that W L L, denote by m the number of rows in L, define V {v ∈ Rm : v Lx for some x ∈ U} , and let v∗ represent the (unique) projection of Ly on V (with respect to I). Then it follows from Part (3) of Lemma 14.12.2 that a vector z in U is a projection of y on U with respect to W if and only if L(y − z) (or, equivalently, Ly − Lz) is orthogonal to V with respect to the usual inner product and hence if and only if Lz v∗ .
(12.5)
Let b∗ represent any solution to linear system (12.4). (The existence of such a solution follows from Theorem 14.11.1.) According to Part (5) of Lemma 14.12.2, the columns of LX span V. Moreover, linear system (12.4) can be rewritten as (LX) LXb (LX) Ly . Thus, it follows from Theorem 12.2.1 that v∗ LXb∗ .
(12.6)
Clearly, Xb∗ is in U. Moreover, it follows from result (12.6) that condition (12.5) can be satisfied by taking z Xb∗ . Thus, Xb∗ is a projection of y on U with respect to W. Furthermore, since a vector z is a projection of y on U with respect to W only if z satisfies condition (12.5), Wz (which equals L Lz) has the same value, namely L v∗ , for every vector z that is a projection of y on U with respect to W. Suppose now that z is a projection of y on U with respect to W. Then, z Xa for some vector a. Further, WXa Wz L v∗ L LXb∗ WXb∗ ,
14.12 Projections, Projection Matrices, and Orthogonal Complements
271
implying that X WXa X WXb∗ X Wy . Thus, a is a solution to linear system (12.4). Q.E.D. The following three corollaries extend the results of Corollaries 14.12.4– 14.12.6. Corollary 14.12.27. Let y represent an n-dimensional column vector, let U represent a subspace of Rn×1 , let W represent an n × n symmetric nonnegative definite matrix, and let X represent any n × p matrix whose columns span U. Then a vector z is a projection of y on U with respect to W if and only if z PX,W y + (I − PX,W )Xk for some p × 1 vector k. Proof. Corollary 14.12.27 follows from Part (3) of Theorem 14.12.26 upon observing that (for any k) PX,W y + (I − PX,W )Xk X{(X WX)− X Wy + [I − (X WX)− X WX]k} and that (in light of Theorem 11.2.4) a vector b∗ is a solution to linear system (12.4) if and only if b∗ (X WX)− X Wy + [I − (X WX)− X WX]k for some k. Q.E.D. Corollary 14.12.28. Let y represent an n-dimensional column vector, W an n × n symmetric nonnegative definite matrix, X an n × p matrix, and U an n × q matrix such that C(U) C(X). Then, WUa∗ WXb∗ for any solution a∗ to the linear system U WUa U Wy (in a) and any solution b∗ to the linear system X WXb X Wy (in b). Corollary 14.12.29. Let y represent an n-dimensional column vector, X an n×p matrix, and W an n × n symmetric nonnegative definite matrix. Then, WXb1 WXb2 for any two solutions b1 and b2 to the linear system X WXb X Wy (in b). Note that, for any vector y in a subspace U of Rn×1 and for any symmetric nonnegative definite matrix W, y itself is a projection of y on U with respect to W (as is evident from the very definition of a projection of y on U with respect to W). The following theorem generalizes Theorem 14.12.7. Theorem 14.12.30. Let y represent an n-dimensional column vector, let U represent a subspace of Rn×1 , let W represent an n×n symmetric nonnegative definite matrix, and let X represent any n × p matrix whose columns span U. Then any p × 1 vector b∗ such that Xb∗ is a projection of y on U with respect to W is a solution to the linear system X WXb X Wy (in b).
272
14. Linear, Bilinear, and Quadratic Forms
Proof. According to Theorem 14.12.26, Xb∗ Xa for some solution a to X WXb X Wy. Thus,
X WXb∗ X WXa X Wy . Q.E.D. Corollary 14.12.27 leads to the following lemma, which extends the result of Corollary 14.12.9. Lemma 14.12.31. Let U represent a subspace of Rn×1 , and let W represent an n × n symmetric nonnegative definite matrix. Then, for any matrix X such that C(X) U, PX,W is a projection matrix for U with respect to W. Thus, PX,W is a projection matrix for U[ C(X)] with respect to W when W is positive semidefinite as well as when W is positive definite. However, when W is positive semidefinite, there may be more than one projection matrix for U with respect to W. The following theorem, whose proof parallels that of Theorem 12.4.1, provides a basis for extending the results of Theorem 14.12.19. Theorem 14.12.32. Let U represent a subspace of the linear space Rn of all n-dimensional column vectors, take W to be an n × n symmetric nonnegative definite matrix, and let y represent a vector in Rn . Then, for u ∈ U, the quadratic form (y − u) W(y − u) (in the difference y − u) attains its minimum value at u z if and only if z is a projection of y on U with respect to W, in which case (y − z) W(y − z) y W(y − z) . Proof. Suppose that z is a projection of y on U with respect to W. Then, for any vector u in U, (y − u) W(y − u) [y − z − (u − z)] W[y − z − (u − z)] (y − z) W(y − z) − 2(y − z) W(u − z) + (u − z) W(u − z) . Moreover, u − z is in U and, by definition, y − z is orthogonal to every vector in U. Thus, (y − z) W(u − z) 0, and hence (y − u) W(y − u)
≥
(y − z) W(y − z) + (u − z) W(u − z) (y − z) W(y − z) ,
(12.7)
which implies that (y − u) W(y − u) attains its minimum value at u z. Furthermore, since z is in U, we have that z W(y−z) 0, with the consequence that (y − z) W(y − z) y W(y − z) . To complete the proof, it suffices to show that equality is attained in inequality (12.7), or, equivalently, that (u − z) W(u − z) 0, only if u is a projection of y on U with respect to W. If (u − z) W(u − z) 0, then we find (in light of Corollary 14.3.11) that W(u − z) 0, or, equivalently, that Wu Wz, implying that, for every vector x in U, x W(y − u) x W(y − z) 0
Exercises
273
and hence that u, like z, is a projection of y on U with respect to W. Q.E.D. The following theorem, which extends the results of Theorem 14.12.19, is obtained by combining the results of Theorem 14.12.32 with those of Theorem 14.12.26 and Corollary 14.12.27. Theorem 14.12.33. Let U represent a subspace of the linear space Rn of all n-dimensional column vectors, take X to be an n × p matrix such that C(X) U, take W to be an n × n symmetric nonnegative definite matrix, and let y represent a vector in Rn . Then, for u ∈ U, the quadratic form (y − u) W(y − u) (in the difference y − u) has a minimum at a point u∗ if and only if u∗ Xb∗ for some solution b∗ to the linear system X WXb X Wy (in b) or, equivalently, if and only if u∗ PX,W y + (I − PX,W )Xk for some p × 1 vector k. Furthermore, the minimum value of (y − u) W(y − u) (for u ∈ U) is expressible as (y − Xb∗ ) W(y − Xb∗ ) y W(y − Xb∗ ) y W(I − PX,W )y (where b∗ is any solution to X WXb X Wy). In light of Theorem 14.12.30, we have the following variant of Theorem 14.12.33, which generalizes Theorem 14.12.20. Theorem 14.12.34. Let X represent an n × p matrix, W an n × n symmetric nonnegative definite matrix, and y an n-dimensional column vector. Then, for b ∈ Rp , the quadratic form (y − Xb) W(y − Xb) has a minimum at a point b∗ if and only if b∗ is a solution to the linear system X WXb X Wy (in b), in which case Xb∗ PX,W y + (I − PX,W )Xk for some p × 1 vector k and (y − Xb∗ ) W(y − Xb∗ ) y W(y − Xb∗ ) y W(I − PX,W )y .
Exercises Section 14.1 1. Show that a symmetric bilinear form x Ay (in n-dimensional vectors x and y) can be expressed in terms of the corresponding quadratic form, that is, the quadratic form whose matrix is A. Do so by verifying that x Ay (1/2)[(x + y) A(x + y) − x Ax − y Ay] . 2. Show that corresponding to any quadratic form x Ax (in the n-dimensional vector x) there exists a unique upper triangular matrix B such that x Ax and x Bx are identically equal, and express the elements of B in terms of the elements of A. Section 14.2 3. Show, by example, that the sum of two positive semidefinite matrices can be positive definite.
274
14. Linear, Bilinear, and Quadratic Forms
4. Show, via an example, that there exist (nonsymmetric) nonsingular positive semidefinite matrices. 5. Show, by example, that there exist an n × n positive semidefinite matrix A and an n × m matrix P (where m < n) such that P AP is positive definite. 6. Convert results (1) – (3) of Theorem 14.2.9, which are for nonnegative definite (positive definite or positive semidefinite) matrices, into equivalent results for nonpositive definite matrices. 7. Let {X1 , . . . , Xr } represent a set of matrices from a linear space V, and let A {aij } represent the r ×r matrix whose ij th element is Xi ·Xj — this matrix is referred to as the Gram matrix (or the Gramian) of the set {X1 , . . . , Xr } and its determinant is referred to as the Gramian (or the Gram determinant) of {X1 , . . . , Xr }. (a) Show that A is symmetric and nonnegative definite. (b) Show that X1 , . . . , Xr are linearly independent if and only if A is nonsingular. 8. Let A {aij } represent an n × n symmetric positive definite matrix, and let B {bij } A−1 . Show that, for i 1, . . . , n, bii ≥ 1/aii , with equality holding if and only if, for all j i, aij 0. Section 14.3 9. Let A represent an m × n matrix and D a diagonal matrix such that A PDQ for some matrix P of full column rank and some matrix Q of full row rank. Extend the result of Lemma 14.3.1 by showing that rank(A) equals the number of nonzero diagonal elements in D. 10. Let A represent an n × n symmetric idempotent matrix and V an n × n symmetric positive definite matrix. Show that rank(AVA) tr(A). 11. Show that if an n × n matrix A is such that x Ax 0 for every n × 1 nonnull vector x, then A is either positive definite or negative definite. 12. (a) Let A represent an n × n symmetric matrix of rank r. Take P to be an n × n nonsingular matrix and D an n × n diagonal matrix such that A P DP — the existence of such matrices is guaranteed by Corollary 14.3.5. The number, say m, of diagonal elements of D that are positive is called the index of inertia of A (or of the quadratic form x Ax whose matrix is A). Show that the index of inertia is well-defined in the sense that m does not vary with the choice of P or D. That is, show that if P1 and P2 are nonsingular matrices and D1 and D2 are diagonal matrices such that A P1 D1 P1 P2 D2 P2 , then D2 contains the same number of positive
Exercises
275
diagonal elements as D1 . Show also that the number of diagonal elements of D that are negative equals r − m. (b) Let A represent an n × n symmetric matrix. Show that A P diag(Im , −Ir−m , 0)P for some n × n nonsingular matrix P and some nonnegative integers m and r. Show further that m equals the index of inertia of the matrix A and that r rank(A). (c) An n×n symmetric matrix B is said to be congruent to an n×n symmetric matrix A if there exists an n × n nonsingular matrix P such that B P AP. (If B is congruent to A, then clearly A is congruent to B.) Show that B is congruent to A if and only if B has the same rank and the same index of inertia as A. This result is called Sylvester’s law of inertia, after James Joseph Sylvester (1814–1897). (d) Let A represent an n × n symmetric matrix of rank r with index of inertia m. Show that A is nonnegative definite if and only if m r and is positive definite if and only if m r n. 13. Let A represent an n × n symmetric nonnegative definite matrix of rank r. Then, according to Theorem 14.3.7, there exists an n × r matrix B (of rank r) such that A BB . Let X represent any n × m matrix (where m ≥ r) such that A XX . (a) Show that X PB X. (b) Show that X (B, 0)Q for some orthogonal matrix Q. Section 14.4 14. Show that if a symmetric matrix A has a nonnegative definite generalized inverse, then A is nonnegative definite. Section 14.5 15. Suppose that an n × n matrix A has an LDU decomposition, say A LDU, and let d1 , d2 , . . . , dn represent the diagonal elements of the diagonal matrix D. Show that |A| d1 d2 · · · dn . 16. (a) Suppose that an n × n matrix A (where n ≥ 2) has a unique LDU decomposition, say A LDU, and let d1 , d2 , . . . , dn represent the first, second, . . . , nth diagonal elements of D. Show that di 0 (i 1, 2, . . . , n − 1) and that dn 0 if and only if A is nonsingular. (b) Suppose that an n × n (symmetric) matrix A (where n ≥ 2) has a unique U DU decomposition, say A U DU, and let d1 , d2 , . . . , dn represent the first, second, . . . , nth diagonal elements of D. Show that di 0 (i 1, 2, . . . , n − 1) and that dn 0 if and only if A is nonsingular.
276
14. Linear, Bilinear, and Quadratic Forms
17. Suppose that an n×n (symmetric) matrix A has a unique U DU decomposition, say A U DU. Use the result of Part (b) of Exercise 17 to show that A has no LDU decompositions other than A U DU. 18. Show that if a nonsingular matrix has an LDU decomposition, then that decomposition is unique. 19. Let A represent an n×n matrix (where n ≥ 2). By for instance using the results of Exercises 16, 17, and 18, show that if A has a unique LDU decomposition or (in the special case where A is symmetric) a unique U DU decomposition, then the leading principal submatrices (of A) of orders 1, 2, . . . , n − 1 are nonsingular (thereby establishing the converse of Corollary 14.5.7) and have unique LDU decompositions. 20. (a) Let A {aij } represent an m × n nonnull matrix of rank r. Show that there exist an m × m permutation matrix P and an n × n permutation matrix Q such that B11 B12 PAQ , B21 B22 where B11 is an r × r nonsingular matrix whose leading principal submatrices (of orders 1, 2, . . . , r − 1) are nonsingular. B11 B12 represent any m × n nonnull matrix of rank r such B21 B22 that B11 is an r ×r nonsingular matrix whose leading principal submatrices (of orders 1, 2, . . . , r − 1) are nonsingular. Show that there exists a unique decomposition of B of the form
(b) Let B
L1 B D(U1 , U2 ) , L2 where L1 is an r × r unit lower triangular matrix, U1 is an r × r unit upper triangular matrix, and D is an r × r diagonal matrix. Show further that this decomposition is such that B11 L1 DU1 is the unique LDU −1 decomposition of B11 , D is nonsingular, L2 B21 U−1 and U2 1 D −1 −1 D L1 B12 . 21. Show, by example, that there exist n × n (nonsymmetric) positive semidefinite matrices that do not have LDU decompositions. 22. Let A represent an n × n nonnegative definite (possibly nonsymmetric) matrix that has an LDU decomposition, say A LDU. Show that the diagonal elements of the diagonal matrix D are nonnegative (thereby extending part of Theorem 14.5.9 and part of Corollary 14.5.15).
Exercises
277
23. Let A represent an m×k matrix of full column rank. And, let A QR represent the QR decomposition of A; that is, let Q represent the unique m × k matrix whose columns are orthonormal with respect to the usual inner product and let R represent the unique k × k upper triangular matrix with positive diagonal elements such that A QR. Show that A A R R (so that A A R R is the Cholesky decomposition of A A). 24. Let A represent an m × k matrix of rank r (where r is possibly less than k). Consider the decomposition A QR1 , where Q is an m × r matrix with orthonormal columns and R1 is an r × k submatrix whose rows are the r nonnull rows of a k × k upper triangular matrix R having r positive diagonal elements and n − r null rows. (Such a decomposition can be obtained by using the results of Exercise 6.4 — refer to Exercise 6.5.) Generalize the result of Exercise 23 by showing that if the inner product with respect to which the columns of Q are orthonormal is the usual inner product, then A A R R (so that A A R R is the Cholesky decomposition of A A). 25. Let A {aij } represent an n × n matrix that has an LDU decomposition, say A LDU. And, define G U−1 D− L−1 (which, as discussed in Section 14.5f, is a generalized inverse of A). (a) Show that G D− L−1 + (I − U)G U−1 D− + G(I − L) . (b) For i 1, . . . , n, let di represent the ith diagonal element of the diagonal matrix D; and, for i, j 1, . . . , n, let #ij , uij , and gij represent the ij th elements of L, U, and G, respectively. Take D− diag(d1∗ , . . . , dn∗ ), where di∗ 1/di , if di 0, and di∗ is an arbitrary scalar, if di 0. Show that gii di∗ −
n ki+1
uik gki di∗ −
n
gik #ki
(E.1)
ki+1
and that
gij
n gik #kj , for j < i , − −
kj +1 n
(E.2a)
uik gkj , for j > i
(E.2b)
ki+1
(where the degenerate sums interpreted as 0).
n
kn+1
gik #ki and
n
kn+1
uik gki are to be
(c) Devise a recursive procedure that uses the formulas from Part (b) to generate a generalized inverse of A.
278
14. Linear, Bilinear, and Quadratic Forms
Section 14.6 26. Verify that a principal submatrix of a skew-symmetric matrix is skewsymmetric. 27. (a) Show that the sum of skew-symmetric matrices is skew-symmetric. (b) Show that the sum A1 + A2 + · · · + Ak of n × n nonnegative definite matrices A1 , A2 , . . . , Ak is skew-symmetric if and only if A1 , A2 , . . . , Ak are skew-symmetric. (c) Show that the sum A1 +A2 +· · ·+Ak of n×n symmetric nonnegative definite matrices A1 , A2 , . . . , Ak is a null matrix if and only if A1 , A2 , . . . , Ak are null matrices. Section 14.7 28. (a) Let A1 ,
A2 , . . . , Ak represent n × n nonnegative definite matrices.
Show that tr( ki1 Ai ) ≥ 0, with equality holding if and only if ki1 Ai is skew-symmetric or, equivalently, if and only if A1 , A2 , . . . , Ak are
skewsymmetric, thereby generalizing Theorem 14.7.2. [Note. That ki1 Ai being skew-symmetric is equivalent to A1 , A2 , . . . , Ak being skewsymmetric is the result of Part (b) of Exercise 27.] n × n symmetric nonnegative definite ma(b) Let A1 , A2 , . . . , Ak represent
trices. Show that tr( ki1 Ai ) ≥ 0, with equality holding if and only if
k i1 Ai 0 or, equivalently, if and only if A1 , A2 , . . . , Ak are null matrices, thereby generalizing Corollary 14.7.3. 29. Show, via an example, that (for n > 1) there exist n × n (nonsymmetric) positive definite matrices A and B such that tr(AB) < 0. 30. (a) Show, via an example, that (for n > 1) there exist n×n symmetric positive definite matrices A and B such that the product AB has one or more negative diagonal elements (and hence such that AB is not nonnegative definite). (b) Show, however, that the product of two n × n symmetric positive definite matrices cannot be nonpositive definite. 31. Let A {aij } and B {bij } represent n×n matrices, and take C to be the n×n matrix whose ij th element cij aij bij is the product of the ij th elements of A and B. Show that if A is nonnegative definite and B is symmetric nonnegative definite, then C is nonnegative definite. Show further that if A is positive definite and B is symmetric positive definite, then C is positive definite. [Hint. Taking x (x1 , . . . , xn ) to be an arbitrary n × 1 vector and F (f1 , . . . , fn ) to be a matrix such that B F F, begin by showing that x Cx tr(AH), where H G G with G (x1 f1 , . . . , xn fn ).]
Exercises
279
32. Let A1 , A2 , . . . , Ak and B1 , B2 ,
. . . , Bk represent n×n symmetric nonnegative definite matrices. Show that tr( ki1 Ai Bi ) ≥ 0, with equality holding if and only if, for i 1, 2, . . . , k, Ai Bi 0, thereby generalizing Corollary 14.7.7 and the results of Part (b) of Exercise 28. Section 14.8 33. Let A represent a symmetric nonnegative definite matrix that has been partitioned as T U A V W where T (and hence W) is square. Show that VT− U and UW− V are symmetric and nonnegative definite. 34. Show, via an example, that there exists an (m + n) ×(m + n)(nonsymmetric) T U positive semidefinite matrix A of the form A , where T is of V W dimensions m × m, W of dimensions n × n, U of dimensions m × n, and V of dimensions n × m, for which C(U) ⊂ C(T) and/or R(V) ⊂ R(T), expression (9.6.1) does not necessarily equal rank(A) [i.e., rank(T) + rank(W − VT− U) does not necessarily equal rank(A)], formula (9.6.2) does not necessarily give a generalized inverse of A. 35. Show, via an example, that there exists + n) × (m + n) symmetric an (m T U partitioned matrix A of the form A , where T is of dimensions U W m × m, U of dimensions m × n, and W of dimensions n × n, such that T is nonnegative definite and (depending on the choice of T− ) the Schur complement W − U T− U of T relative to T− is nonnegative definite, but A is not nonnegative definite. 36. An n × n matrix A
{aij } is said to be diagonally dominant if, for i n 1, 2, . . . , n, |aii | > j 1(j i) |aij |. (In the degenerate special case where n 1, A is said to be diagonally dominant if it is nonnull.) (a) Show that a principal submatrix of a diagonally dominant matrix is diagonally dominant. (b) Let A {aij } represent an n × n diagonally dominant matrix, partition A A11 a [so that A11 is of dimensions (n − 1) × (n − 1)], and as A b ann let C A11 − (1/ann )ab represent the Schur complement of ann . Show that C is diagonally dominant. (c) Show that a diagonally dominant matrix is nonsingular. (d) Show that a diagonally dominant matrix has a unique LDU decomposition. (e) Let A {aij } represent an n × n symmetric matrix. Show that if A is
280
14. Linear, Bilinear, and Quadratic Forms
diagonally dominant and if the diagonal elements a11 , a22 , . . . , ann of A are all positive, then A is positive definite. Section 14.9 37. Let A {aij }$ represent an n × n symmetric positive definite matrix. Show that det(A) ≤ ni1 aii , with equality holding if and only if A is diagonal. a b 38. Let A , where a, b, c, and d are scalars. c d (a) Show that A √ is positive definite if and only if a > 0, d > 0, and |b + c|/2 < ad. (b) Show that, in the special case where A is symmetric (i.e., where c b), √ A is positive definite if and only if a > 0, d > 0, and |b| < ad. 39. By, for example, making use of the result of Exercise 38, show that if an n × n matrix A {aij } is symmetric positive definite, then, for j i 1, . . . , n, √ |aij | < aii ajj ≤ max(aii , ajj ) . 40. Show, by example, that it is possible for the determinants of both leading principal submatrices of a 2 × 2 symmetric matrix to be nonnegative without the matrix being nonnegative definite and that, for n ≥ 3, it is possible for the determinants of all n leading principal submatrices of an n × n symmetric matrix to be nonnegative and for the matrix to be nonsingular without the matrix being nonnegative definite. Section 14.10 41. Let V represent a subspace of Rn×1 of dimension r (where r ≥ 1). Take B (b1 , b2 , . . . , br ) to be any n × r matrix whose columns b1 , b2 , . . . , br form a basis for V, and let L represent any left inverse of B. Let g represent a function that assigns the value x ∗ y to an arbitrary pair of vectors x and y in V. (a) Let f represent an arbitrary inner product for Rr×1 , and denote by s • t the value assigned by f to an arbitrary pair of r-dimensional vectors s and t. Show that g is an inner product (for V) if and only if there exists an f such that (for all x and y in V) x ∗ y (Lx) • (Ly) . (b) Show that g is an inner product (for V) if and only if there exists an r × r symmetric positive definite matrix W such that (for all x and y in V) x ∗ y x L WLy .
Exercises
281
(c) Show that g is an inner product (for V) if and only if there exists an n × n symmetric positive definite matrix W such that (for all x and y in V) x ∗ y x Wy .
42. Let V represent a linear space of m × n matrices, and let A • B represent the value assigned by a quasi inner product to any pair of matrices A and B (in V). Show that the set U {A ∈ V : A • A 0} , which comprises every matrix in V with a zero quasi norm, is a linear space. 43. Let W represent an m × m symmetric positive definite matrix and V an n × n symmetric positive definite matrix. (a) Show that the function that assigns the value tr(A WBV) to an arbitrary pair of m × n matrices A and B qualifies as an inner product for the linear space Rm×n . (b) Show that the function that assigns the value tr(A WB) to an arbitrary pair of m × n matrices A and B qualifies as an inner product for Rm×n . (c) Show that the function that assigns the value tr(A WBW) to an arbitrary pair of m × m matrices A and B qualifies as an inner product for Rm×m . Section 14.12 44. Let A represent a q × p matrix, B a p × n matrix, and C an m × q matrix. Show that (a) CAB(CAB)− C C if and only if rank(CAB) rank(C), and (b) B(CAB)− CAB B if and only if rank(CAB) rank(B) [thereby (in light of Corollary 14.11.3) extending the results of Parts (5) and (1) of Theorem 14.12.11]. 45. Let U represent a subspace of Rn×1 , let X represent an n × p matrix whose columns span U, and let W and V represent n × n symmetric positive definite matrices. Show that each of the following two conditions is necessary and sufficient for the projection PX,W y of y on U with respect to W to be the same (for every y in Rn ) as the projection PX,V y of y on U with respect to V:
(a) V PX,W VPX,W + (I − PX,W ) V(I − PX,W ); (b) there exist a scalar c, a p × p matrix K, and an n × n matrix H such that V cW + WXKX W + (I − PX,W ) H(I − PX,W ) .
282
14. Linear, Bilinear, and Quadratic Forms
46. Let y represent an n-dimensional column vector, let U represent a subspace of Rn×1 , and let X represent an n × p matrix whose columns span U. It follows from Corollary 12.1.2 that y ⊥I U if and only if X y 0 and, more generally, it follows from Lemma 14.12.1 that, for any n × n symmetric positive definite matrix W, y ⊥W U if and only if X Wy 0. Extend this result (in the direction indicated in the discussion following Lemma 14.12.1) by using Parts (3) and (5) of Lemma 14.12.2 to show that, for any n × n symmetric nonnegative definite matrix W, y ⊥W U if and only if X Wy 0. 47. Let W represent an n × n symmetric nonnegative definite matrix. (a) Generalize Theorem 14.12.12 by showing that, for any n × p matrix X and any n × q matrix U such that C(U) ⊂ C(X), (1) WPX,W U WU, and U WPX,W U W;
(2) PU,W PX,W PU,W and PX,W WPU,W WPX,W PU,W WPU,W . (b) Generalize Corollary 14.12.13 by showing that, for any n × p matrix X and any n × q matrix U such that C(U) C(X), WPU,W WPX,W . 48. Let U represent a subspace of Rn×1 , let A represent an n × n matrix and W an n × n symmetric nonnegative definite matrix, and let X represent any n × p matrix whose columns span U. (a) Show that A is a projection matrix for U with respect to W if and only if A PX,W + (I − PX,W )XK for some p × n matrix K. (b) Show that if A is a projection matrix for U with respect to W, then WA WPX,W . 49. Let A represent an n × n matrix and W an n × n symmetric nonnegative definite matrix. (a) Show (by, e.g., using the results of Exercise 48) that if A WA WA [or, equivalently, if (I−A) WA 0], then A is a projection matrix with respect to W, and in particular A is a projection matrix for C(A) with respect to W, and, conversely, show that if A is a projection matrix with respect to W, then A WA WA (thereby generalizing Theorem 14.12.16). (b) Show that if A is a projection matrix with respect to W, then in particular A is a projection matrix for C(A) with respect to W.
Exercises
283
(c) Show that A is a projection matrix with respect to W if and only if WA is symmetric and WA2 WA (thereby generalizing Corollary 14.12.17). 50. Let U represent a subspace of Rn×1 , let X represent an n × p matrix whose columns span U, and let W and V represent n × n symmetric nonnegative definite matrices. Show (by, e.g., making use of the result of Exercise 46) that each of the following two conditions is necessary and sufficient for every projection of y on U with respect to W to be a projection (for every y in Rn ) of y on U with respect to V: (a) X VPX,W X V, or, equivalently, X V(I − PX,W ) 0; (b) there exists a p × p matrix Q such that VX WXQ, or, equivalently, C(VX) ⊂ C(WX) [thereby generalizing Parts (1) and (4) of Theorem 14.12.18]. 51. Let X represent an n × p matrix and W an n × n symmetric nonnegative definite matrix. As in the special case where W is positive definite, let ⊥ CW (X) {y ∈ Rn×1 : y ⊥W C(X)} .
(a) By, for example, making use of the result of Exercise 46, show that ⊥ CW (X) N (X W) C(I − PX,W )
(thereby generalizing Lemma 14.12.21). (b) Show that ⊥ dim[CW (X)] n − rank(WX) ≥ n − rank(X) n − dim[C(X)]
(thereby generalizing Corollary 14.12.22). (c) By, for example, making use of the result of Exercise 46, show that, for any solution b∗ to the linear system X WXb X Wy (in b), the vector ⊥ (X) with respect to W (thereby extending y−Xb∗ is a projection of y on CW the result of Theorem 14.12.23).
This page intentionally left blank
15 Matrix Differentiation
It is natural and convenient to use matrix notation and terminology in defining and discussing certain functions of one or more variables. Earlier (in Chapter 14), matrix notation and terminology were used in defining and discussing linear, bilinear, and quadratic forms. In some cases, the use of matrix notation and terminology is essentially unavoidable — consider, for example, a case where the determinant of an m × m matrix is regarded as a function of its m2 elements. Matrix differentiation is the derivation of the first-, second-, or higher-order partial derivatives of a function or functions that have been expressed in terms of matrices. In deriving, presenting, and discussing the partial derivatives of such functions, it is natural, convenient, and in some cases necessary to employ matrix notation and terminology. Not only may the functions be expressed in terms of matrices, but the functions may comprise the elements of a vector or matrix, as would be the case if the elements of the inverse of an m × m (nonsingular) matrix A were regarded as functions of the elements of A. Matrix differentiation is of considerable importance in statistics. It is especially useful in connection with the maximum likelihood estimation of the parameters in a statistical model. The maximum likelihood estimates of the model’s parameters satisfy the equations (known as the likelihood equations) obtained by equating to zero the first-order partial derivatives (with respect to the model’s parameters) of the logarithm of the so-called likelihood function — in many important cases, the likelihood function involves the determinant and/or inverse of a matrix. Further, an approximation (suitable for large samples) to the variance-covariance matrix of the maximum likelihood estimators can be obtained by inverting the matrix (known as the information matrix) whose ij th element is −1 times the second-
286
15. Matrix Differentiation
order partial derivative (with respect to the ith and j th parameters) of the logarithm of the likelihood function.
15.1
Definitions, Notation, and Other Preliminaries
a. Neighborhoods, interior points, and open sets Let c represent an arbitrary m-dimensional column vector. Taking the norm for Rm×1 to be the usual norm, a neighborhood of c is (by definition) a set of the general form {x ∈ Rm×1 : x − c < r} , where r is a positive number called the radius of the neighborhood. Thus, a neighborhood of c of radius r is the set of all m-dimensional column vectors whose distance from c is less than r. Geometrically, a neighborhood of c is (depending on whether m is 1, 2, 3, or greater than 3) the interior of an interval, circle, sphere, or “hypersphere” centered at c. The definition of neighborhood can be extended to row vectors. In fact, it can be extended to matrices of any dimensions. Taking the norm for Rm×n to be the usual norm, a neighborhood of an arbitrary m × n matrix C is a set of the general form {X ∈ Rm×n : X − C < r} . Let S represent an arbitrary set of m-dimensional column vectors (or more generally of m × n matrices), that is, let S represent a subset of Rm×1 (or more generally of Rm×n ). Then, a vector x (or matrix X) in S is said to be an interior point of S if there exists a neighborhood of x (or X), all of whose points belong to S. The set S is said to be open if all of its points are interior points. It can be shown that every neighborhood of a point x (or X) in Rm (or Rm×n ) is an open set.
b. Functions and continuity In what follows, the word function is to be used restrictively to mean a scalarvalued function whose domain is a set (of m-dimensional column vectors) in Rm or more generally a set (of m × n matrices) in Rm×n . The value of a function f corresponding to an arbitrary vector x or matrix X is to be denoted by the symbol f (x) or f (X). Further, if f {fs } is a p × 1 vector or, more generally, if F {fst } is a p ×q matrix, each element of which is a function defined on some set in Rm×n , then, for an arbitrary matrix X, the p × 1 vector [f1 (X), . . . , fp (X)] or the p × q matrix with stth element fst (X) is to be denoted by f(X) or F(X) and referred to as the value of f or F at X. At times, attention will be restricted to functions whose domains are sets of column vectors. This can be done without loss of generality in the sense that the elements of an m × n matrix can be rearranged in the form of an mn-dimensional column vector.
15.1 Definitions, Notation, and Other Preliminaries
287
Let f represent a function whose domain is a set S in Rm×1 . Then, f is said to be continuous at an interior point c of S if lim f (x) f (c)
x→c
— by definition, limx→c f (x) is a scalar b such that, for every positive scalar *, there exists a neighborhood N* of c such that |f (x) − b| < * for all x in N* other than c. A p × q matrix F of functions, each of whose domains is the same set S in Rm×1 , will be said to be continuous at an interior point c of S if all pq elements of F are continuous at c.
c. First-order partial derivatives and continuous differentiability Let f represent a function, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Suppose that S contains at least some interior points, and let c (c1 , . . . , cm ) represent an arbitrary one of those points. Further, let uj represent the j th column of Im . Consider the limit f (c + tuj ) − f (c) lim . t→0 t When this limit exists, it is called the j th (first-order) partial derivative of f at c and is denoted by Dj f (c). Note that c + tuj (c1 , . . . , cj −1 , cj + t, cj +1 , . . . , cm ) , so that Dj f (c) can be regarded as the ordinary derivative (at cj ) of the function of one variable obtained from f (x) by fixing x1 , . . . , xj −1 , xj +1 , . . . , xm at c1 , . . . , cj −1 , cj +1 , . . . , cm , respectively. The scalar Dj f (c) can be regarded as the value assigned to the point c by a function. This function is denoted by the symbol Dj f (and is referred to as the j th partial derivative of f ). Its domain consists of those interior points (of S) at which the j th partial derivative (of f ) is defined. The symbol Df represents the row vector (D1 f, . . . , Dm f ) whose elements are the partial derivatives of f , and accordingly the symbol Df (c) represents the row vector [D1 f (c), . . . , Dm f (c)] whose elements are the values of the functions D1 f, . . . , Dm f at c — note that Df (c) is defined only if c is such that all m of the partial derivatives of f at c exist. The column vector (Df ) is referred to as the gradient (or gradient vector) of f . An alternative notation is obtained by writing ∂f (x)/∂xj for the j th partial derivative of f at x, writing ∂f (x)/∂x for the row vector [∂f (x)/∂x1 , . . . , ∂f (x)/∂xm ] of partial derivatives of f at x, and writing ∂f (x)/∂x for the column vector [∂f (x)/∂x1 , . . . , ∂f (x)/∂xm ] of partial derivatives of f at x. In this context, ∂f (x)/∂x may be called the derivative of f (x) with respect to x , and ∂f/∂x may be called the derivative of f (x) with respect to x. The symbols ∂f (x)/∂xj , ∂f (x)/∂x , and ∂f (x)/∂x have the same interpretations as Dj f (x), Df (x), and [Df (x)] , respectively, and are sometimes abbreviated to ∂f/∂xj , ∂f/∂x , and ∂f/∂x. On certain occasions (to be ascertained from the context), these symbols may be used to represent the function Dj f and the vectors of functions Df and (Df ) (rather than their values at x).
288
15. Matrix Differentiation
The function f (with domain S in Rm×1 ) will be said to be continuously differentiable at the interior point c (of S) if D1 f (x), . . . , Dm f (x) exist and are continuous at every point x in some neighborhood of c. It can be shown that if f is continuously differentiable at c, then lim
x→c
f (x) − [f (c) + Df (c)(x − c)] 0, x − c
(1.1)
which indicates that, for x sufficiently close to c, the first-order Taylor formula f (c) + Df (c)(x − c) approximates f (x) with an error that is of smaller order than x − c (e.g., Magnus and Neudecker, 1988, chap. 5). If the function f is such that result (1.1) holds, then f (x) → f (c), as is evident upon writing f (x) f (c) + Df (c)(x − c) + x − c
f (x) − [f (c) + Df (c)(x − c)] . x − c
Thus, we have the following lemma. Lemma 15.1.1. If a function f , with domain S in Rm×1 , is continuously differentiable at an interior point c of S, then f is continuous at c. A function f for which result (1.1) holds is said to be differentiable at c. It is worth mentioning that, while f being continuously differentiable at c is a sufficient condition for f to be differentiable at c, it is not in general necessary — as demonstrated by, for example, Magnus and Neudecker (1988, secs. 5.9 and 5.10).
d. Second- and higher-order partial derivatives As in Subsection c, let f represent a function, defined on a set S, of a vector x (x1 , . . . xm ) of m variables; suppose that S contains at least some interior points; and let c represent an arbitrary one of those points. Suppose that D1 f (x), . . . , Dm f (x) exist for all x in some neighborhood of c (so that c is an interior point of the domains of the functions D1 f, . . . , Dm f ). When the ith (first-order) partial derivative of Dj f at c exists, it is called the ij th second-order partial derivative of f at c and is denoted by Dij2 f (c). The scalar Dij2 f (c) can be regarded as the value assigned to the point c by a function. This function is denoted by the symbol Dij2 f (and is referred to as the ij th second-order partial derivative of f ). The symbol Hf represents the m × m matrix whose ij th element is Dij2 f , and accordingly the symbol Hf (c) represents the value of Hf at the point c, that is, the m × m matrix whose ij th element is Dij2 f (c). The matrix Hf is called the Hessian matrix of f . An alternative notation is obtained by writing ∂ 2 f (x)/∂xi ∂xj — or, in the special case where j i, ∂ 2 f (x)/∂xi2 — for the ij th second-order partial derivative Dij2 f (x) of f at x and writing ∂ 2 f (x)/∂x∂x for the Hessian matrix Hf (x) of f at x. The symbols ∂ 2 f (x)/∂xi ∂xj , ∂ 2 f (x)/∂xi2 , and ∂ 2 f (x)/∂x∂x are sometimes
15.1 Definitions, Notation, and Other Preliminaries
289
abbreviated to ∂ 2 f/∂xi ∂xj , ∂ 2 f/∂xi2 , and ∂ 2 f/∂x∂x , respectively, and are sometimes used to represent the functions Dij2 f and Dii2 f and the matrix of functions Hf (rather than their values at x). The function f will be said to be twice (or 2 times) continuously differentiable at c if f and all of its first-order partial derivatives are continuously differentiable at c or, equivalently, if all of the first- and second-order partial derivatives of f exist and are continuous at every point in some neighborhood of c. It can be shown that if f is twice continuously differentiable at c, then the matrix Hf is symmetric at c [i.e., Hf (c) is symmetric, or, equivalently, Dj2i f (c) Dij2 f (c) for all i and j < i] — refer to, for example, Magnus and Neudecker (1988, sec. 6.7). It can be further shown that if f is twice continuously differentiable at c, then f (x) − [f (c) + Df (c)(x − c) + (1/2)(x − c) Hf (c)(x − c)] 0, x→c x − c2 lim
(1.2)
which indicates that, for x sufficiently close to c, the second-order Taylor formula f (c) + Df (c)(x − c) + (1/2)(x − c) Hf (c)(x − c) approximates f (x) with an error that is of smaller order than x−c2 (e.g., Magnus and Neudecker, 1988, sec. 6.9). Partial derivatives of f of order k (where k ≥ 2) can be defined recursively. Suppose that the (k − 1)th-order partial derivatives of f at x exist for all x in some neighborhood of c. For j 1, . . . , k, let ij represent an arbitrary integer between 1 and m, inclusive. When the i1 th partial derivative of the i2 · · · ik th (k − 1)thorder partial derivative of f at c exists, it is called the i1 i2 · · · ik th kth-order partial derivative of f at c. The function whose value at c is the i1 i2 · · · ik th kth-order partial derivative of f at c is referred to as the i1 i2 · · · ik th kth-order partial derivative of f. The symbol ∂ k f (x)/∂xi1 · · · ∂xik (or in abbreviated form ∂ k f/∂xi1 · · · ∂xik ) can be used to represent the i1 · · · ik th kth-order partial derivative of f at x. The function f will be said to be k times continuously differentiable at c if f and all of its first- through (k − 1)th-order partial derivatives are continuously differentiable at c or, equivalently, if all of the first- through kth-order partial derivatives of f exist and are continuous at every point in some neighborhood of c. It can be shown that if f is k times continuously differentiable at c, then, for any permutation j1 , . . . , jk of the sequence i1 , . . . , ik , the j1 · · · jk th and i1 · · · ik th kthorder partial derivatives of f are identical, and, letting i1∗ , . . . , is∗ (i1∗ < · · · < is∗ ) denote the distinct integers represented among i1 , . . . , ik and letting kj represent the number of integers in the sequence i1 , . . . , ik that equal ij∗ , we may write ∂ k f (x) /∂xik∗1 · · · ∂xiks∗s (or simply ∂ k f/∂xik∗1 · · · ∂xiks∗s ) for ∂ k f (x)/∂xi1 · · · ∂xik . It 1 1 can be further shown that if f is k times continuously differentiable at c, then, for x sufficiently close to c, the kth-order Taylor formula approximates f (x) with an error that is of smaller order than x − ck . Note that if f is k times continuously differentiable at c, then f is continuously differentiable at c and is also 2, . . . , k − 1 times continuously differentiable at
290
15. Matrix Differentiation
c. Moreover, if f is k times continuously differentiable at c, then f is k times continuously differentiable at every point in some neighborhood of c, as can be easily verified.
e. Partial derivatives of a function of an unrestricted or symmetric matrix Suppose that the domain of the function f to be differentiated is the set Rm×n of all m × n matrices or, more generally, is a set S in Rm×n that contains at least some interior points. Then f can be regarded as a function of an m × n matrix X {xij } of mn “independent” variables. And, for purposes of differentiating f , the elements of X can be rearranged in the form of an mn-dimensional column vector x, and f can be reinterpreted as a function of x, in which case the domain of f is the set, say S ∗ , obtained by rearranging the elements of each m × n matrix in S in the form of a column vector. (It should be noted that an mn-dimensional column vector is an interior point of S ∗ if and only if it is a rearrangement of an m × n matrix that is an interior point of S.) By definition, the elements ∂f/∂xij (i 1, . . . , m; j 1, . . . , n) of the mndimensional column vector ∂f/∂x are the first-order partial derivatives of f at x (and the elements of the mn × mn matrix ∂f/∂x∂x are the second-order partial derivatives of f at x). However, instead of presenting the first-order partial derivatives of f at x (or, equivalently, X) in the form of the vector ∂f ∂x, it is natural and in many cases convenient to present them in the form of the m × n matrix whose ij th element is ∂f/∂xij . This matrix is to be denoted by the symbol ∂f (X)/∂X (or in abbreviated form ∂f/∂X) and is to be called the derivative of f (X) with respect to X. Further, let us write ∂f (X)/∂X (or ∂f/∂X ) for the n × m matrix [∂f (X)/∂X] and refer to this matrix as the derivative of f (X) with respect to X . Suppose now that the function f of interest is one whose domain is restricted to all m × m symmetric matrices or, more generally, to a subset S of such matrices. Then, f can still be regarded as a function of an m × m matrix X {xij } of m2 variables. However, because of the restriction to symmetric matrices, xj i xij for all i and j > i, so that the m2 elements of X can no longer be regarded as m2 independent variables. A closely related point is that S cannot contain any interior points. As a consequence, the previous development — that leading to the introduction of the symbol ∂f (X)/∂X and to the definition of the derivative of f (X) with respect to X — is not applicable. In the present case — that where S contains only symmetric matrices — the symbol ∂f (X)/∂X and the term “derivative of f (X) with respect to X” are to be defined differently. (When not explicitly indicated, the intended interpretation must be ascertained from the context.) For purposes of differentiating the function f of the symmetric matrix X, f is to be interpreted as a function of an [m(m+1)/2]-dimensional column vector x whose elements are xij (j ≤ i 1, . . . , m) or, alternatively, xij (j ≥ i 1, . . . , m) [i.e., whose elements are the “independent” elements of X, which are those on and below (or alternatively above) the diagonal]. When f is reinterpreted in this way, the domain of f is the set S ∗ of [m(m+1)/2]-dimensional column vectors obtained
15.1 Definitions, Notation, and Other Preliminaries
291
by transforming the m × m matrices in S from X-values into x-values. Suppose that S ∗ contains at least some interior points. (The set S ∗ can contain interior points, even though S cannot.) By definition, the elements ∂f ∂xij (j ≤ i 1, . . . , m or, alternatively, j ≥ i 1, . . . , m) of the [m(m + 1)/2]-dimensional column vector ∂f/∂x are the first-order partial derivatives of f at x {and the elements of the [m(m + 1)/2] × [m(m + 1)/2] matrix ∂f/∂x∂x are the secondorder partial derivatives of f at x}. However, instead of presenting the first-order partial derivatives of f at x (or, equivalently, X) in the form of the vector ∂f/∂x, it is natural, and in many cases convenient, to present them in the form of the m × m symmetric matrix whose ij th and j ith elements are ∂f/∂xij . In the present case (that where the domain S of f is restricted to symmetric matrices), it is this matrix that is denoted by the symbol ∂f (X)/∂X (or ∂f/∂X) and is called the derivative of f with respect to X.
f. Differentiation of a vector or matrix of functions Suppose that there is a (column) vector f (f1 , . . . , fp ) of p functions to be differentiated and that the domain of all of these functions is a set S in Rm×1 . Suppose further that S contains at least some interior points, and let c represent an arbitrary one of those points. The symbol Dj f is used to represent the p-dimensional column vector whose sth element is the j th partial derivative Dj fs of fs , and the symbol Df is used to represent the p × m matrix whose sj th element is Dj fs or, equivalently, the p × m matrix whose j th column is Dj f. Accordingly, Dj f(c) [Dj f1 (c), . . . , Dj fp (c)] , and Df(c) [D1 f(c), . . . , Dm f(c)] (provided that each of the m partial derivatives of each of the p functions f1 , . . . , fp at c exists). The matrix Df is called the Jacobian matrix of f, and its transpose (Df) is called the gradient (or gradient matrix) of f. Note that (Df) [(Df1 ) , . . . , (Dfp ) ]. In the special case where p m, the determinant of Df is called the Jacobian (or Jacobian determinant) of f. An alternative notation is obtained by letting x (x1 , . . . , xm ) represent a vector of m variables and writing ∂f(x)/∂x (or ∂f/∂x ) for the p × m matrix whose sj th element is ∂fs (x)/∂xj and ∂f (x)/∂x (or ∂f /∂x) for the m × p matrix [∂f(x)/∂x ] whose j sth element is ∂fs (x)/∂xj . In this context, ∂f(x)/∂x may be called the derivative of f(x) with respect to x , and ∂f (x)/∂x may be called the derivative of f (x) with respect to x. The symbol ∂f(x)/∂x has the same interpretation as Df(x) (or alternatively Df). Suppose now that there is a p × q matrix F {fst } of pq functions to be differentiated and that the domain of all of these functions is a set S in Rm×1 (that contains at least some interior points). As in the special case where q 1, each of the elements of F can be regarded as a function of a vector x (x1 , . . . , xm ) of m “independent” variables. All mpq (first-order) partial derivatives (of the elements of F) can be presented in the form of a single pq × m (or m × pq) matrix by rearranging the elements of F in the form of a column vector f and by then forming the Jacobian (or gradient)
292
15. Matrix Differentiation
matrix of f. However, with the possible exception of the special case where p 1 or q 1 (i.e., where F is a row or column vector), it is sometimes preferable to present the j th (first-order) partial derivatives of the elements of F in a separate p × q matrix whose stth element is ∂fst (x)/∂xj (j 1, . . . , m). This matrix is to be denoted by the symbol ∂F(x)/∂xj (or, in abbrevated form, ∂F/∂xj ) and is to be referred to as the j th partial derivative of F — in the special case where q 1 (i.e., where F is a column vector), ∂F(x)/∂xj has the same interpretation as Dj F(x). And, the p × q matrix whose stth element is ∂ k fst (x)/∂xjk11 · · · ∂xjkrr is to be denoted by the symbol ∂ k F(x)/∂xjk11 · · · ∂xjkrr or ∂ k F/∂xjkr1 · · · xjkrr (where j1 , . . . , jr is a subsequence of the first m positive integers; k1 , . . . , kr are positive integers; and k k1 + · · · + kr ). The matrix F will be said to be continuously differentiable at an interior point c (of S) if all pq of its elements are continuously differentiable at c, and to be twice (or 2 times) continuously differentiable at c if all pq of its elements are twice continuously differentiable at c. More generally, F is said to be k times continuously differentiable at c if all pq of its elements are k times continuously differentiable at c.
15.2
Differentiation of (Scalar-Valued) Functions: Some Elementary Results
The techniques employed in matrix differentiation can be regarded as generalizations or extensions of those employed in nonmatrix differentiation. Some elementary results on nonmatrix differentiation are stated (without proof) in the following two lemmas. Lemma 15.2.1. Let f represent a function, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables, and suppose that (for x ∈ S) f (x) is constant or (more generally) does not vary with xj . Then, for any interior point c of S, Dj f (c) 0. Lemma 15.2.2. Let f and g represent functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. And, let a and b represent constants or (more generally) functions (defined on S) that are continuous at every interior point of S and are such that a(x) and b(x) do not vary with xj . Define # af + bg,
h f g,
and
r f/g ,
so that # and h are functions, each of whose domain is S, and r is a function whose domain is S ∗ {x ∈ S : g(x) 0}. If f and g are continuously differentiable at an interior point c of S, then # and h are also continuously differentiable at c, and Dj #(c) a(c)Dj f (c) + b(c)Dj g(c)
(2.1)
Dj h(c) f (c)Dj g(c) + g(c)Dj f (c) .
(2.2)
and
15.2 Differentiation of (Scalar-Valued) Functions: Some Elementary Results
293
And, if f and g are continuously differentiable at an interior point c of S ∗ , then r is also continuously differentiable at c, and Dj r(c) [g(c)Dj f (c) − f (c)Dj g(c)]/[g(c)]2 .
(2.3)
Formulas (2.1) – (2.3) can be expressed less formally and more succinctly as
and
∂f ∂g ∂(af + bg) a +b , ∂xj ∂xj ∂xj
(2.4)
∂f g ∂g ∂f f +g , ∂xj ∂xj ∂xj
(2.5)
∂(f/g) ∂f ∂g [g −f ]/g 2 . ∂xj ∂xj ∂xj
(2.6)
Special cases of formula (2.4) include: ∂f ∂(af ) a , ∂xj ∂xj
∂(f + g) ∂f ∂g + , ∂xj ∂xj ∂xj
∂(f − g) ∂f ∂g − . (2.7) ∂xj ∂xj ∂xj
And, as a special case of formula (2.6), we have (in light of Lemma 15.2.1) that ∂g ∂(1/g) −(1/g 2 ) . ∂xj ∂xj
(2.8)
Results (2.1) and (2.2) can be extended (by repeated application) to a linear combination or a product of an arbitrary number of functions. Let f1 , f2 , . . . , fk represent k functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables, and let a1 , a2 , . . . , ak represent constants or (more generally) functions (defined on S) that are continuous at every interior point of S and are such that a1 (x), a2 (x), . . . , ak (x) do not vary with xj . Define # a1 f1 + a2 f2 + · · · + ak fk
and
h f1 f2 · · · fk .
If f1 , f2 , . . . , fk are continuously differentiable at an interior point c of S, then # and h are also continuously differentiable at c, and Dj #(c) a1 (c)Dj f1 (c) + a2 (c)Dj f2 (c) + · · · + ak (c)Dj fk (c) and Dj h(c)
k i1
(2.9)
fs (c) Dj fi (c) .
(2.10)
si
Formulas (2.9) and (2.10) can be rewritten as ∂(a1 f1 + a2 f2 + · · · ak fk ) ∂f1 ∂f2 ∂fk a1 + a2 + · · · + ak ∂xj ∂xj ∂xj ∂xj
(2.11)
294
15. Matrix Differentiation
and
k ∂(f1 f2 · · · fk ) ∂xj i1
fs
si
∂fi . ∂xj
(2.12)
Note that formulas (2.6) and (2.12) for the partial derivatives of a ratio of two functions or for a product of two or more functions can be recast in vector notation as ∂f ∂g ∂(f/g) g −2 [ g −f ] (2.13) ∂x ∂x ∂x and k ∂fi ∂(f1 f2 · · · fk ) . (2.14) fs ∂x ∂x si i1 Similarly, formula (2.11) can (in the special case where a1 , a2 , . . . , ak are constants) be recast as ∂f1 ∂f2 ∂fk ∂(a1 f1 + a2 f2 + · · · + ak fk ) a1 + a2 + · · · + ak . ∂x ∂x ∂x ∂x
(2.15)
Note also that by setting each of the k functions f1 , . . . , fk in formula (2.12) equal to the same function, say f , we obtain the result that (for any positive integer k) ∂f k ∂f k f k−1 . (2.16) ∂xj ∂xj Since clearly
∂xj 1, ∂xj
we have in particular [upon taking f (x) xjk ] that ∂xjk ∂xj
15.3
k xjk−1 .
(2.17)
Differentiation of Linear and Quadratic Forms
The results of Section 15.2 can be used to derive formulas for the partial derivatives of a linear form a x or a quadratic form x Ax (in an unconstrained m-dimensional column vector x). Let ai and xi represent the ith elements of a and x, respectively, and let aik represent the ikth element of A. Then, ai xi and x Ax aik xi xk . a x i
i,k
In light of Lemma 15.2.1 and results (2.17) and (2.7), we have that % ∂xi 1, if i j , 0, if i j , ∂xj
(3.1a) (3.1b)
15.3 Differentiation of Linear and Quadratic Forms
and that
2xj , ∂(xi xk ) xi , xk , ∂xj 0,
if i k j , if k j but i j, if i j but k j, otherwise (i.e., if i j and k j ) .
Using these results in combination with result (2.11), we find that
∂( i ai xi ) ∂xi ∂(a x) ai aj ∂xj ∂xj ∂xj i
295
(3.2a) (3.2b) (3.2c) (3.2d)
(3.3)
and ∂(x Ax) ∂xj
∂(
i,k
aik xi xk )
∂xj ∂(ajj xj2 +
ij
aij xi xj +
kj
aj k xj xk +
ij,kj
aik xi xk )
∂xj ∂(xi xj ) ∂(xj xk ) ajj + aij + aj k ∂xj ∂xj ∂xj ij kj ∂(xi xk ) + aik ∂xj ij,kj 2ajj xj + aij xi + aj k xk + 0 ∂xj2
i
ij
aij xi +
kj
aj k xk .
(3.4)
k
Result (3.3) can be recast in vector notation as ∂(a x) a ∂x
(3.5)
or alternatively as
∂(a x) a . ∂x And, result (3.4) can be recast in matrix notation as
(3.6)
∂(x Ax) (3.7) (A + A )x , ∂x
as is evident
upon observing that k aj k x k is the j th element of the column vector Ax and i aij xi is the j th element of A x.
296
15. Matrix Differentiation
The sj th second-order partial derivative of x Ax can be obtained by finding the sth partial derivative of expression (3.4), giving ∂ 2 (x Ax) ∂xi ∂xk aij + aj k asj + aj s . ∂xs ∂xj ∂xs ∂xs i k
(3.8)
Result (3.8) can be recast in matrix notation as ∂ 2 (x Ax) A + A . ∂x∂x
(3.9)
Note that all partial derivatives of a x of order higher than one are zero, and that all partial derivatives of x Ax of order higher than two are zero. Note also that, in the special case where A is symmetric, results (3.7) and (3.9) simplify to ∂(x Ax) 2Ax, ∂x
∂ 2 (x Ax) 2A . ∂x∂x
Formulas (3.5) and (3.6) for the derivative of the linear form a x with respect to x or x can be extended to a vector of linear forms. Let B {bij } represent a p × m matrix of constants, and consider the column vector Bx. The ith element of Bx is the linear form bi x, whose coefficient vector is bi (bi1 , . . . , bim ). According to result (3.3), the j th partial derivative of this linear form is bij . Thus, the partial derivative of Bx with respect to x (which is the Jacobian matrix of Bx) is ∂(Bx) B, ∂x
(3.10)
and the partial derivative of (Bx) with respect to x (which is the gradient matrix of Bx) is ∂(Bx) (3.11) B . ∂x Note that, in the special case where B Im , results (3.10) and (3.11) reduce to ∂x ∂x Im . ∂x ∂x
15.4
(3.12)
Differentiation of Matrix Sums, Products, and Transposes (and of Matrices of Constants)
The results presented in Section 15.2 (on the differentiation of functions) can be extended to the differentiation of matrices of functions. The following lemma generalizes (and follows from) Lemma 15.2.1. Lemma 15.4.1. Let F {fis } represent a p × q matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables; and suppose that (for x ∈ S)
15.4 Differentiation of Matrix Sums, Products, and Transposes
297
F (x) is constant or (more generally) does not vary with xj . Then, at any interior point of S, ∂F/∂xj 0. A generalization of formula (2.4) is given by the following lemma. Lemma 15.4.2. Let F {fis } and G {gis } represent p × q matrices of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. And, let a and b represent constants or (more generally) functions (defined on S) that are continuous at every interior point of S and are such that a(x) and b(x) do not vary with xj . Then, at any interior point c (of S) at which F and G are continuously differentiable, aF + bG is continuously differentiable and ∂(aF + bG) ∂F ∂G a +b . ∂xj ∂xj ∂xj
(4.1)
Proof. Let L aF + bG. The isth element of L is #is afis + bgis . The functions fis and gis are continuously differentiable at c, implying (in light of Lemma 15.2.2) that #is is continuously differentiable at c and that (at x c) ∂#is ∂fis ∂gis a +b . ∂xj ∂xj ∂xj It follows that L is continuously differentiable at c, and (since ∂#is /∂xj , ∂fis /∂xj , and ∂gis /∂xj are the isth elements of ∂L/∂xj , ∂F/∂xj , and ∂G/∂xj , respectively) that (at x c) ∂F ∂G ∂L a +b . ∂xj ∂xj ∂xj Q.E.D. We obtain, as special cases of formula (4.1), the following generalization of result (2.7): ∂(aF) ∂F ∂(F + G) ∂F ∂G ∂(F − G) ∂F ∂G a , + , − . ∂xj ∂xj ∂xj ∂xj ∂xj ∂xj ∂xj ∂xj
(4.2)
Formula (2.5) is generalized in the following lemma. Lemma 15.4.3. Let F {fis } and G {gis } represent p × q and q × r matrices of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Then, at any interior point c (of S) at which F and G are continuously differentiable, FG is continuously differentiable and ∂FG ∂G ∂F F + G. ∂xj ∂xj ∂xj Proof. Let H FG. The itth element of H is hit
q s1
fis gst .
(4.3)
298
15. Matrix Differentiation
The functions fis and gst are continuously differentiable at c, implying (in light of Lemma 15.2.2) that fis gst is continuously differentiable at c and that (at x c) ∂fis gst ∂gst ∂fis fis + gst . ∂xj ∂xj ∂xj Thus, hit is continuously differentiable at c, and (at x c) ∂(fis gst ) ∂gst ∂fis ∂hit fis + gst . ∂xj ∂xj ∂xj ∂xj s1 s1 s1 q
q
q
We
q conclude that H isq continuously differentiable at c and [since s1 fis (∂gst /∂xj ) and s1 (∂fis /∂xj )gst are the itth elements of F(∂G/∂xj ) and (∂F/∂xj )G, respectively] that (at x c) ∂FG ∂G ∂F F + G. ∂xj ∂xj ∂xj
Q.E.D. In the special case where (for x ∈ S) F(x) is constant or (more generally) does not vary with xj , formula (4.3) simplifies to ∂FG ∂G F . ∂xj ∂xj
(4.4)
And, in the special case where (for x ∈ S) G(x) is constant or (more generally) does not vary with xj , formula (4.3) simplifies to ∂(FG) ∂F G. ∂xj ∂xj
(4.5)
The results of Lemma 15.4.3 can be extended (by repeated application) to the product of three or more matrices. Let F, G, and H represent p × q, q × r, and r × v matrices of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Then, at any interior point (of S) at which F, G, and H are continuously differentiable, FGH is continuously differentiable and ∂FGH ∂H ∂G ∂F FG +F H+ GH . ∂xj ∂xj ∂xj ∂xj
(4.6)
In the special case where (for x ∈ S) F(x) and H(x) are constant or (more geneally) do not vary with xj , formula (4.6) simplifies to ∂(FGH) ∂G F H. ∂xj ∂xj
(4.7)
More generally, let F1 , F2 , . . . , Fk represent matrices of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Then, at any interior point (of
15.5 Differentiation of a Vector or Matrix With Respect to Its Elements
299
S) at which F1 , F2 , . . . , Fk are continuously differentiable, F1 F2 · · · Fk is continuously differentiable and ∂(F1 F2 · · · Fk ) ∂xj F1 · · · Fk−1
∂F1 ∂Fk ∂Fk−1 + F1 · · · Fk−2 Fk + · · · + F2 · · · Fk . (4.8) ∂xj ∂xj ∂xj
(assuming that the dimensions of F1 , F2 , . . . , Fk are such that the product F1 F2 · · · Fk is defined). Note that if g is a function, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables and if F is a p × q matrix of functions (defined on S) of x, then, at any interior point (of S) at which g and F are continuously differentiable, gF is continuously differentiable and ∂g ∂F ∂(gF) F+g , ∂xj ∂xj ∂xj
(4.9)
as is evident from Lemma 15.4.3 upon taking G gI. Note also that if F is a p × q matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables, then, at any interior point at which F is continuously differentiable, F is continuously differentiable and ∂F ∂F . (4.10) ∂xj ∂xj
15.5
Differentiation of a Vector or an (Unrestricted or Symmetric) Matrix With Respect to Its Elements
Let x {xs } represent an m-dimensional column vector, and let uj represent the j th column of an identity matrix (of unspecified dimensions). The elements of x can be regarded as functions, defined on Rm , of x. The j th partial derivatives of these functions are given by result (3.1). This result can be reexpressed in matrix notation as ∂x uj . (5.1) ∂xj Result (5.1) can be generalized to an (unrestricted) m × n matrix X {xst }. The elements of X can be regarded as functions, defined on Rm×n , of X. For purposes of differentiating xst , the elements of X can be rearranged in the form of an mndimensional column vector x, and xst can be reinterpreted as a function (defined on Rmn ) of x (as discussed in Section 15.1e). Then [in light of result (3.1)], % ∂xst 1, if s i and t j , (5.2a) 0, otherwise . (5.2b) ∂xij
300
15. Matrix Differentiation
Or, in matrix notation,
∂X ui uj . ∂xij
(5.3)
Suppose now that X {xst } is a symmetric (but otherwise unrestricted) matrix (of dimensions m × m). Then, the elements of X can still be regarded as functions of X; however, the domain of these functions now comprises all m × m symmetric matrices, which (unless m 1) is a proper subset of Rm×m . For purposes of differentiating xst , xst is (by convention) interpreted as a function (defined on Rm(m+1)/2 ) of an [m(m + 1)/2]-dimensional column vector x whose elements are xij (j ≤ i 1, . . . , m) or alternatively xij (j ≥ i 1, . . . , m). This approach gives % ∂xst 1, if s t i, (5.4a) 0, otherwise; (5.4b) ∂xii and, for j < i (or alternatively for j > i), % ∂xst 1, if s i and t j or if s j and t i, 0, otherwise . ∂xij Or, in matrix notation,
∂X ui ui , ∂xii
(5.5a) (5.5b)
(5.6)
and, for j < i (or alternatively for j > i), ∂X ui uj + uj ui . ∂xij
15.6
(5.7)
Differentiation of a Trace of a Matrix
Let F {fis } represent a p × p matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Then, at any interior point c (of S) at which F is continuously differentiable, tr(F) is continuously differentiable and ∂F ∂tr(F) , (6.1) tr ∂xj ∂xj as is evident upon observing that tr(F) f11 + f22 + · · · + fpp [which establishes that tr(F) is continuously differentiable at c] and that (at x c) ∂fpp ∂f11 ∂f22 ∂F ∂tr(F) . + + ··· + tr ∂xj ∂xj ∂xj ∂xj ∂xj Suppose now that F is a p × q matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables, and suppose that A is a q × p matrix of
15.6 Differentiation of a Trace of a Matrix
301
constants or (more generally) a q × p matrix of functions (defined on S) that is continuous at every interior point of S and such that A(x) does not vary with xj . Then, making use of results (6.1) and (4.5) (along with Lemma 5.2.1), we find that, at any interior point (of S) at which F is continuously differentiable, tr(AF) or, equivalently, tr(FA) is continuously differentiable and ∂tr(AF) ∂tr(FA) ∂F ∂F . (6.2) tr A tr A ∂xj ∂xj ∂xj ∂xj Result (6.2) can be generalized to the trace of the product of “any” two matrices of functions. Let F and G represent p × q and q × p matrices of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Then, in combination with result (6.1) and Lemma 5.2.1, Lemma 15.4.3 implies that, at any interior point at which F and G are continuously differentiable, tr(FG) or, equivalently, tr(GF) is continuously differentiable and ∂tr(FG) ∂tr(GF) ∂G ∂F tr F + tr G . (6.3) ∂xj ∂xj ∂xj ∂xj Note that alternative versions of formula (6.3) can be obtained by making either or both of the two substitutions ∂G ∂G ∂F ∂F tr F tr F and tr G tr G . ∂xj ∂xj ∂xj ∂xj Let us now consider a special case of result (6.2). Take X {xst } to be an m × n matrix of “independent” variables, and suppose that the range of X comprises all of Rm×n . Define A {ats } to be an n × m matrix of constants, and let uj represent the j th column of an identity matrix (of unspecified dimensions). Then, ∂tr(AX) ∂tr(XA) aj i , ∂xij ∂xij
(6.4)
as is evident from result (6.2) upon observing [in light of result (5.3)] that ∂X tr A tr(Aui uj ) tr(uj Aui ) uj Aui aj i . ∂xij Result (6.4) can be restated as ∂tr(AX) ∂tr(XA) A . ∂X ∂X
(6.5)
Suppose now that X is a symmetric (but otherwise unrestricted) matrix (of dimensions m × m). Then, for purposes of differentiating a function of X, the function is reinterpreted as a function of an [m(m + 1)/2]-dimensional column vector x whose elements are xij (j ≤ i 1, . . . , m). Consequently, result (6.4) is no longer applicable. Instead, we have that % ∂tr(AX) ∂tr(XA) if j i , (6.6a) a , ii (6.6b) aij + aj i , if j < i . ∂xij ∂xij
302
15. Matrix Differentiation
To verify this, apply result (6.2) and observe [in light of results (5.6) and (5.7)] that ∂X tr A tr(Aui ui ) ui Aui aii ∂xii and that (for j < i) ∂X tr(Aui uj ) + tr(Auj ui ) uj Aui + ui Auj aj i + aij . tr A ∂xij Result (6.6) can be restated as ∂tr(XA) ∂tr(AX) A + A − diag(a11 , a22 , . . . , amm ) . ∂X ∂X
(6.7)
Note that, regardless of whether X is unrestricted (but square) or symmetric, we have that % ∂tr(X) 1, if j i , 0, if j i , ∂xij or, equivalently, that
∂tr(X) I, ∂X as is evident from results (6.4) – (6.7) upon taking A I.
15.7
The Chain Rule
The chain rule can be very helpful in deriving the partial derivatives of a function f that is the composite of a function g and a vector of functions h, that is, of a function f whose value at an arbitrary point x is given by the formula f (x) g[h(x)]. The chain rule is stated (without proof) in the following theorem. Theorem 15.7.1 (chain rule). Let h {hi } represent an n×1 vector of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Let g represent a function, defined on a set T , of a vector y (y1 , . . . , yn ) of n variables. Suppose that h(x) ∈ T for every x in S, and take f to be the composite function defined (on S) by f (x) g[h(x)]. If h is continuously differentiable at an interior point c of S and if [assuming that h(c) is an interior point of T ] g is continuously differentiable at h(c), then f is continuously differentiable at c and Dj f (c)
n
Di g[h(c)]Dj hi (c) Dg[h(c)]Dj h(c) .
(7.1)
i1
Formula (7.1) can be reexpressed less formally as n ∂f ∂g ∂hi ∂g ∂h , ∂xj ∂yi ∂xj ∂y ∂xj i1
(7.2)
15.7 The Chain Rule
303
where ∂g/∂yi and ∂g/∂y are to be interpreted as having been evaluated at y h(x). Formula (7.1) or (7.2) can be recast as Df (c)
n
Di g[h(c)]Dhi (c) Dg[h(c)]Dh(c)
(7.3)
i1
or
n ∂f ∂g ∂hi ∂g ∂h . ∂x ∂yi ∂x ∂y ∂x i1
(7.4)
The result of Theorem 15.7.1 can be generalized by taking g {gs } to be a p × 1 vector of functions (defined on T) of y and f {fs } to be a p × 1 vector of composite functions defined (on S) by fs (x) gs [h(x)] (s 1, . . . , p) or, equivalently, by f(x) g[h(x)]. If (in this more general context) h is continuously differentiable at an interior point c of S and g is continuously differentiable at h(c), then f is continuously differentiable at c and n
Dj f(c)
Di g[h(c)]Dj hi (c) Dg[h(c)]Dj h(c)
(7.5)
i1
or, equivalently,
n ∂f ∂g ∂hi ∂g ∂h ∂xj ∂yi ∂xj ∂y ∂xj i1
(7.6)
[where ∂g/∂yi and ∂g/∂y are to be interpreted as having been evaluated at y h(x)]. Formula (7.5) or (7.6) can be recast as Df(c)
n
Di g[h(c)]Dhi (c) Dg[h(c)]Dh(c)
(7.7)
i1
or
n ∂f ∂g ∂hi ∂g ∂h . ∂x ∂y ∂x ∂y ∂x i i1
(7.8)
Let us now consider a different generalization of the result of Theorem 15.7.1 — one where H {his } is an n × r matrix of functions, defined on S, of x; where g is a function, defined on a set T , of an n × r matrix Y {yis } of nr variables; where H(x) ∈ T for every x in S; and where f is the composite function defined (on S) by f (x) g[H(x)]. Suppose that the elements of H and Y are rearranged in the form of column vectors h and y, respectively, and that, for purposes of differentiation, g is reinterpreted as a function of y. If h or, equivalently, H is continuously differentiable at an interior point c of S and if [assuming that H(c) is an interior point of T ] g is continuously differentiable at h(c) or, equivalently, H(c), then f is continuously differentiable at c and (at x c) r n ∂f ∂g ∂his ∂xj ∂yis ∂xj i1 s1
(7.9)
304
15. Matrix Differentiation
(as is evident from Theorem 15.7.1). Formula (7.9) can be rewritten as
∂H ∂f ∂g . tr ∂xj ∂Y ∂xj
(7.10)
[The quantities ∂g/∂yis and ∂g/∂Y, which appear in formulas (7.9) and (7.10), are to be interpreted as having been evaluated at Y H(x).]
15.8
First-Order Partial Derivatives of Determinants and Inverse and Adjoint Matrices
Let X {xij } represent an m × m matrix of m2 “independent” variables (where m ≥ 2), and suppose that the range of X comprises all of Rm×m . Denote by ξij the cofactor of xij . Then, the function f of X defined (on Rm×m ) by f (X) det(X) is continuously differentiable at every X and ∂ det(X) ξij . ∂xij
(8.1)
To see this, rearrange the elements of X in the form of an m2 -dimensional column vector x, and regard f as a function of x. Since each element of X is a continuously differentiable function of x, and since (according to Lemma 15.2.2) sums and products of continuously differentiable functions are continuously differentiable, it follows from the very definition of the determinant [given by expression (13.1.2)] that
m f is continuously differentiable. Moreover, expanding det(X) as det(X) t1 xit ξit [in accordance with result (13.5.1)], observing that ξi1 , . . . , ξim do not vary with xij , and recalling result (5.2), we find that m ∂ det(X) ∂xit ξit ξij . ∂xij ∂x ij t1
(8.2)
Result (8.1) indicates that the derivative of det(X) with respect to X is the matrix of cofactors (of X) or, equivalently, that ∂ det(X) [adj(X)] . (8.3) ∂X Let us now extend our results to the differentiation of the determinant of a p × p matrix F {fis } of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Thus, the function to be differentiated is the function h of x defined (on S) by h(x) det[F(x)]. It is convenient (for purposes of differentiating h) to introduce a function g of a p × p matrix Y {yis } of p 2 variables, defined (on Rp×p ) by g(Y) det(Y), and to express h as the composite of g and F, so that h(x) g[F(x)]. Clearly (in light of our earlier results), g is continuously differentiable at every Y and ∂g [adj(Y)] . ∂Y
15.8 First-Order Partial Derivatives of Determinants and Inverse Matrices
305
Thus, it follows from the chain rule [and in particular from result (7.10)] that if F is continuously differentiable at an interior point c of S, then h is continuously differentiable at c and (at x c)
∂F ∂ det(F) tr adj(F) . (8.4) ∂xj ∂xj Moreover, if F is nonsingular as well as continuously differentiable at c, then [in light of result (13.5.6)] ∂F ∂ det(F) . (8.5) |F|tr F−1 ∂xj ∂xj Suppose now that S is the set of all x-values for which det[F(x)] > 0 or is a subset of that set, and consider the differentiation of the function # of x defined (on S) by #(x) log det[F(x)]. To facilitate the differentiation, let g represent a function of a variable y defined (for y > 0) by g(y) log y, and express # as the composite of g and h, so that #(x) g[h(x)]. Recall (from the calculus of a single variable) that g is continuously differentiable (at all points in its domain) and that (for y > 0) 1 ∂ log y . ∂y y Applying the chain rule, we find [in light of results (8.4) and (8.5)] that if F is continuously differentiable at an interior point c of S (in which case h is continuously differentiable at c), then # is continuously differentiable at c and (at x c)
1 ∂ det(F) 1 ∂F ∂ log det(F) −1 ∂F tr F . (8.6) tr adj(F) ∂xj |F| ∂xj |F| ∂xj ∂xj Let us now consider result (8.6) in the special case where x is an m2 -dimensional column vector whose elements are the same as those of an m × m matrix X {xij } of m2 “independent” variables and where F (x) X. Let c represent an interior point of S [where S consists of some or all x-values for which det(X) > 0], and let uj represent the j th column of Im . It follows from result (5.3) that X is continuously differentiable at c and that (at x c) ∂X/∂xij ui uj . We conclude that the function # defined (on S) by #(x) log det(X) is continuously differentiable at c and that (at x c) ∂ log det(X) tr(X−1 ui uj ) uj X−1 ui yj i , ∂xij
(8.7)
where yj i is the j ith element of X−1 or, equivalently, the ij th element of (X−1 ) . Result (8.7) can be recast as ∂ log det(X) (X−1 ) . ∂X
(8.8)
306
15. Matrix Differentiation
Formulas (8.3) and (8.8) [or (8.2) and (8.7)] are applicable when the m2 elements of X are independent variables. Suppose now that X {xij } is an m×m symmetric matrix, in which case formulas (8.3) and (8.8) are not applicable. For purposes of differentiation, the function f of X defined (on a set S comprising some or all m×m symmetric matrices) by f (X) det(X) and the function # of X defined (on a set S ∗ comprising some or all m × m symmetric matrices with positive determinants) by #(X) log det(X) are by convention to be interpreted as functions of the [m(m+1)/2]-dimensional column vector x whose elements xij (j ≤ i 1, . . . , m) are “independent” elements of X. Let c represent an interior point of S and c∗ an interior point of S ∗ . Then, it follows from the results of Section 15.5 that X is continuously differentiable at c and c∗ , implying that f is continuously differentiable at c and that # is continuously differentiable at c∗ . Moreover, we have [as a special case of result (8.4)] that (at x c)
∂ det(X) ∂X . tr adj(X) ∂xij ∂xij Making use of results (5.6) and (5.7) and denoting the j th column of Im by uj , we find that
∂X tr adj(X)ui ui ui adj(X)ui tr adj(X) ∂xii and (for j < i)
∂X tr adj(X) tr[adj(X)ui uj ] + tr[adj(X)uj ui ] ∂xij uj adj(X)ui + ui adj(X)uj .
Thus, denoting the cofactor of xij by ξij (and recalling that the cofactor matrix of a symmetric matrix is symmetric), we have that % ∂ det(X) if j i , (8.9a) ξ , ii 2ξij , if j < i, (8.9b) ∂xij or, equivalently, that ∂ det(X) 2 adj(X) − diag(ξ11 , ξ22 , . . . , ξmm ) . ∂X
(8.10)
Further, letting yij represent the ij th element of X−1 , we find [in light of results (8.6) and (13.5.7)] that (at x c∗ ) % ∂ log det(X) if j i, (8.11a) y , ii 2 y , if j < i, (8.11b) ∂xij ij or, equivalently, that ∂ log det(X) 2X−1 − diag(y11 , y22 , . . . , ymm ) . ∂X
(8.12)
15.8 First-Order Partial Derivatives of Determinants and Inverse Matrices
307
Consider now the differentiation of the adjoint matrix of a p×p matrix F {fis } of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Let Fsi represent the (p − 1) × (p − 1) submatrix of F obtained by striking out the sth row and the ith column (of F), and let φsi (−1)s+i det(Fsi ). Then, by definition, φsi is the cofactor of fsi and hence the isth element of adj(F). It follows from our discussion of the differentiation of determinants [including result (8.4)] that if F is continuously differentiable at an interior point c of S, then φsi is continuously differentiable at c and (at x c)
∂φsi ∂Fsi s+i . (8.13) (−1) tr adj(Fsi ) ∂xj ∂xj In other words, if F is continuously differentiable at c, then adj(F) is continuously differentiable at c, and the isth element of the matrix ∂adj(F)/∂xj is given by expression (8.13). Suppose now that S is the set of all x-values for which F(x) is nonsingular or is a subset of that set, and consider the differentiation of the inverse matrix F−1 . Denote by c any interior point (of S) at which F is continuously differentiable. Then, φsi and det(F) are continuously differentiable at c, implying (in light of Lemma 15.2.2) that φsi / det(F) is continuously differentiable at c. Since (according to Corollary 13.5.4) φsi / det(F) equals the isth element of F−1 , we conclude that F−1 is continuously differentiable at c. Moreover, FF−1 I, implying (in light of Lemmas 15.4.3 and 15.4.1) that (at x c) F
∂F−1 ∂F −1 ∂I + F 0 ∂xj ∂xj ∂xj
and hence F
∂F −1 ∂F−1 − F . ∂xj ∂xj
(8.14)
Premultiplying both sides of equality (8.14) by F−1 , we obtain ∂F−1 ∂F −1 −F−1 F ∂xj ∂xj
(8.15)
as a formula for ∂F−1 /∂xj . An alternative expression for the elements of ∂adj(F)/∂xj can [when S is restricted to x-values for which F(x) is nonsingular] be obtained by making use of formula (4.9). Since (according to Corollary 13.5.4) adj(F) |F|F−1 , we have [in light of formula (8.5)] that ∂adj(F) ∂xj
∂|F| −1 ∂F−1 F + |F| ∂xj ∂xj ∂F ∂F −1 F−1 + |F| −F−1 |F|tr F−1 F ∂xj ∂xj
∂F ∂F −1 |F| tr F−1 F−1 − F−1 . F ∂xj ∂xj
(8.16)
308
15. Matrix Differentiation
Formula (8.15) can be generalized by making use of result (4.6). Let A and B represent k × p and p × r matrices of functions (defined on the same set S as the elements of F) of x. Suppose that A and B (as well as F) are continuously differentiable at c. Then, AF−1 B is continuously differentiable at c and (at x c) ∂B ∂F −1 ∂A −1 ∂(AF−1 B) AF−1 − AF−1 F B+ F B. ∂xj ∂xj ∂xj ∂xj
(8.17)
In the special case where (for x ∈ S) A(x) and B(x) are constant or (more generally) do not vary with xj , formula (8.17) simplifies to ∂F −1 ∂(AF−1 B) −AF−1 F B. ∂xj ∂xj
15.9
(8.18)
Second-Order Partial Derivatives of Determinants and Inverse Matrices
Let F {fis } represent a p × p matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Suppose that F(x) is nonsingular for every x in S, and denote by c any interior point (of S) at which F is twice continuously differentiable. Then, F is continuously differentiable at c. In fact, F is continuously differentiable at every point in some neighborhood N of c. In light of the results of Section 15.8, we have that det(F) and F−1 are continuously differentiable at every point in N and that (for x ∈ N ) ∂ det(F) −1 ∂F |F|tr F ∂xj ∂xj and
∂F−1 ∂F −1 −F−1 F . ∂xj ∂xj
Moreover, ∂F/∂xj is continuously differentiable at x c. Consequently, ∂ det(F)/∂xj and ∂F−1 /∂xj are continuously differentiable at c, and hence det(F) and F−1 are twice continuously differentiable at c. Further, making use of results (2.5) and (6.3), we find that (at x c) ∂ 2 det(F) ∂xi ∂xj
∂{|F|tr[F−1 (∂F/∂xj )]} ∂xi
∂F ∂F −1 ∂F + tr −F−1 |F| tr F−1 F ∂xi ∂xj ∂xi ∂xj ∂F ∂F +|F|tr F−1 tr F−1 ∂xi ∂xj
15.10 Differentiation of Generalized Inverses
|F| tr F−1
∂F ∂xi ∂xj
∂F ∂F + tr F−1 tr F−1 ∂xi ∂xj ∂F ∂F − tr F−1 . F−1 ∂xi ∂xj
309
(9.1)
And, making use of result (4.6), we find that (at x c) ∂ 2 F−1 ∂xi ∂xj
∂[−F−1 (∂F/∂xj )F−1 ] ∂xi
−F−1
∂F ∂F−1 ∂F ∂F−1 ∂F −1 − F−1 F−1 − F ∂xj ∂xi ∂xi ∂xj ∂xi ∂xj ∂F ∂F −1 ∂F −F−1 − F−1 −F−1 F F−1 ∂xj ∂xi ∂xi ∂xj ∂F −1 −1 ∂F −1 − −F F F ∂xi ∂xj ∂F ∂F −1 ∂F −1 −F−1 F−1 + F−1 F F ∂xi ∂xj ∂xi ∂xj ∂F −1 ∂F −1 + F−1 F F . (9.2) ∂xj ∂xi
Suppose now that det[F(x)] > 0 for every x in S. Then, in light of our previous results, log det(F) is continuously differentiable at every point in N and (for x ∈ N ) ∂ log det(F) ∂F . tr F−1 ∂xj ∂xj Thus (since F−1 and ∂F/∂xj are continuously differentiable at c), ∂ log det(F)/∂xj is continuously differentiable at c, and hence log det(F) is twice continuously differentiable at c. Moreover, making use of result (6.3), we find that (at x c) ∂ 2 log det(F) ∂xi ∂xj
15.10
∂tr[F−1 (∂F/∂xj )] ∂xi −1 ∂F −1 ∂F −1 ∂F + tr −F tr F F ∂xi ∂xj ∂xi ∂xj −1 ∂F −1 ∂F −1 ∂F tr F − tr F . F ∂xi ∂xj ∂xi ∂xj
(9.3)
Differentiation of Generalized Inverses
Let F represent a p × q matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Consider the q × p matrix G of functions defined (on S) by taking G(x) to be any generalized inverse of F(x).
310
15. Matrix Differentiation
In the special case where q p and S is composed exclusively of nonsingular matrices (and hence where G F−1 ), G is continuously differentiable at every interior point of S at which F is continuously differentiable, and ∂G/∂xj −G(∂F/∂xj )G (as discussed in Section 15.8). In this section, we consider the extent to which these results (and various other results on the differentiation of ordinary inverses) can be extended to the case where F is not necessarily nonsingular (and q not necessarily equal to p). One such extension is given by the following theorem. Theorem 15.10.1. Let F represent a p × q matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Let c represent any interior point of S at which F is continuously differentiable. Suppose that F has constant rank, say r, on some neighborhood of c. Take i1 , . . . , ir to be integers chosen from the first p positive integers, 1, . . . , p, in such a way that the i1 , . . . , ir th rows of F(c) are linearly independent, and j1 , . . . , jr to be integers chosen from the first q positive integers, 1, . . . , q, in such a way that the j1 , . . . , jr th columns of F(c) are linearly idependent. Further, take P to be any p × p permutation matrix whose first r rows are the i1 , . . . , ir th rows of Ip and Q to be any q × q permutation matrix whose first r columns are the j1 , . . . , jr th columns of Iq . Let B PFQ, and partition B as B11 B12 B , B21 B22 where B11 is of dimensions r × r. Then, rank(B11 ) rank(F) r on some neighborhood N of c. And, there exists a generalized inverse G of F such that GQ
B−1 11 0
0 P 0
on N. Moreover, G is continuously differentiable at c, and (at x c)
−1 ∂G B (∂B11 /∂xj )B−1 11 −Q 11 0 ∂xj
∂F 0 P −G G. 0 ∂xj
With regard to Theorem 15.10.1, note (in light of the discussion of Section 9.2a) that F(c) necessarily contains r linearly independent rows and r linearly independent columns, that B11 is the submatrix of F obtained by striking out all of the rows and columns of F except the i1 , . . . , ir th rows and j1 , . . . , jr th columns (or is an r ×r matrix obtained from that submatrix by permuting its rows and columns), and that B11 (c) is nonsingular. In proving Theorem 15.10.1, it is convenient to make use of the following lemma. Lemma 15.10.2. Let F represent a p × p matrix of functions, defined on a set S, of an m-dimensional column vector x. Suppose that F is nonsingular at an interior point c of S and that F is continuous at c. Then, F is nonsingular at all points in some neighborhood of c. Proof (of Lemma 15.10.2). It follows from the very definition of a determinant [given by formula (13.1.2)] and from standard results on the continuity of functions
15.10 Differentiation of Generalized Inverses
311
that det(F) is a continuous function of x (at x c) and hence that lim det[F(x)] det[F(c)] .
x→c
Since det[F(c)] 0, S contains a neighborhood N of c such that | det[F(x)]− det[F(c)]| < | det[F(c)]| for x ∈ N or, equivalently, such that | det[F(c)]|− | det[F(c)]− det[F(x)]| > 0 for x ∈ N. And, since | det[F(c)]| ≤ | det[F(x)]|+ | det[F(c)]− det[F(x)]| or, equivalently, | det[F(x)]| ≥ | det[F(c)]|− | det[F(c)]− det[F(x)]|, we have that | det[F(x)]| > 0 for x ∈ N . We conclude that F(x) is nonsingular for x ∈ N. Q.E.D. Proof (of Theorem 15.10.1). Since (in light of Lemma 15.1.1) F is continuous at c (implying that B11 is continuous at c), it follows from Lemma 15.10.2 that B11 is nonsingular at all points in some neighborhood N1 of c. Let N2 represent a neighborhood of c on which rank(F) r, and take N to be whichever of the two neighborhoods N1 and N2 has the smallest radius. Then, clearly, rank(B11 ) rank(F) r for x ∈ N. The existence of a generalized inverse G of F such that −1 B11 0 GQ P 0 0 on N follows from Theorem 9.2.3. That G is continuously differentiable at c and that (at x c) −1 ∂G B11 (∂B11 /∂xj )B11 0 −Q P 0 0 ∂xj follows from the results of Sections 15.4 and 15.8. To complete the proof, observe that ∂B/∂xj P(∂F/∂xj )Q, implying that ∂F ∂B12 /∂xj ∂B ∂B11 /∂xj Q P Q P ∂B21 /∂xj ∂B22 /∂xj ∂xj ∂xj and hence that ∂F G G ∂xj
−1 −1 ∂B11 /∂xj ∂B12 /∂xj B11 B11 0 Q ∂B21 /∂xj ∂B22 /∂xj 0 0 0
−1 −1 B (∂B11 /∂xj )B11 0 Q 11 P. 0 0
0 P 0
Q.E.D. According to Theorem 15.10.1, a sufficient condition for the existence of a generalized inverse of F that is continuously differentiable at c (where c is an interior point at which F is continuously differentiable) is that F have constant rank on some neighborhood of c. Is this condition necessary as well as sufficient? This question is answered (in the affirmative) by the corollary of the following lemma. Lemma 15.10.3. Let F represent a p × q matrix of functions, defined on a set S, of an m-dimensional column vector x. And, let c represent any interior point
312
15. Matrix Differentiation
of S at which F is continuous. If there exists a generalized inverse of F that is continuous at x c, then F has constant rank on some neighborhood of c. Proof. Suppose that there exists a generalized inverse, say G, of F that is continuous at x c. Then, since sums and products of continuous functions are continuous, tr(FG) is continuous at x c. Moreover, according to result (10.2.1), tr(FG) rank(F). Thus, rank(F) is continuous at x c. Since rank(F) is integervalued, we conclude that rank(F) is constant on some neighborhood of c. Q.E.D. Corollary 15.10.4. Let F represent a p × q matrix of functions, defined on a set S, of an m-dimensional column vector x. Let c represent any interior point of S at which F is continuously differentiable. If there exists a generalized inverse of F that is continuously differentiable at x c, then F has constant rank on some neighborhood of c. Proof. Suppose that there exists a generalized inverse, say G, of F that is continuously differentiable at c. Since (according to Lemma 15.1.1) continuously differentiable functions are continuous, F and G are both continuous at x c. Thus, it follows from Lemma 15.10.3 that F has constant rank on some neighborhood of c. Q.E.D. Let F represent a p × q matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Further, let c represent an interior point of S at which F is continuously differentiable, and suppose that F has constant rank on some neighborhood of c. Then, according to Theorem 15.10.1, there exists a generalized inverse G of F that is continuously differentiable at c and whose partial derivatives at x c are given by the formula ∂G ∂F −G G. ∂xj ∂xj
(10.1)
Is formula (10.1) applicable to every generalized inverse G (of F) that is continuously differentiable at c? Except in special cases, the answer is no. Suppose, for example, that F 0 for all x in some neighborhood N of c and that G is chosen in such a way that G is continuously differentiable at c and ∂G/∂xj is nonnull — since any q × p matrix is a generalized inverse of a p × q null matrix, such a choice is clearly possible. Then, the right side of equality (10.1) is null at x c, while the left side is nonnull. The following lemma relates the partial derivatives (at x c) of a generalized inverse of F to the partial derivatives of F itself — it does so in a less definitive way than formula (10.1), but in a way that is applicable to any generalized inverse (of F) that is continuously differentiable at c. Lemma 15.10.5. Let F represent a p × q matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Further, let c represent an interior point of S at which F is continuously differentiable, and (assuming that F has constant rank on some neighborhood of c) let G represent any generalized inverse of F that is continuously differentiable at c. Then (at x c), F
∂G ∂F F −FG GF . ∂xj ∂xj
(10.2)
15.10 Differentiation of Generalized Inverses
313
Proof. Differentiating both sides of the equality F FGF [with the help of result (4.6)], we find that (at x c) ∂F ∂F ∂G ∂F FG +F F+ GF . ∂xj ∂xj ∂xj ∂xj
(10.3)
Premultiplying and postmultiplying both sides of equality (10.3) by FG and GF, respectively, gives FG
∂F GF ∂xj
∂F ∂G ∂F GF + FGF FGF + FG GFGF ∂xj ∂xj ∂xj ∂G ∂F ∂F GF + F F + FG GF FG ∂xj ∂xj ∂xj
FGFG
or, equivalently, F
∂F ∂G F −FG GF . ∂xj ∂xj
Q.E.D. The following theorem generalizes result (10.1). Theorem 15.10.6. Let F, A, and B represent p × q, k × q, and p × r matrices of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Let c represent an interior point of S at which F, A, and B are continuously differentiable. Suppose that there exists a neighborhood N of c such that (1) F has constant rank on N and (2) R(A) ⊂ R(F) and C(B) ⊂ C(F) for all x in N . Then, for any generalized inverse G of F, AGB is continuously differentiable at c, and (at x c) ∂AGB ∂B ∂F ∂A AG − AG GB + GB . ∂xj ∂xj ∂xj ∂xj
(10.4)
Theorem 15.10.6 indicates that, even if the generalized inverse G is not continuously differentiable (at x c) or the formula ∂G ∂F −G G ∂xj ∂xj
(10.5)
is not applicable to G, we can for purposes of obtaining the partial derivatives of AGB (at x c) proceed as though G is continuously differentiable and formula (10.5) is valid. In the special case where (for x ∈ S) A(x) and B(x) are constant or (more generally) do not vary with xj , formula (10.4) simplifies to ∂(AGB) ∂F −AG GB . ∂xj ∂xj
(10.6)
Preliminary to proving Theorem 15.10.6, it is convenient to establish the following theorem, which is of some interest in its own right. Theorem 15.10.7. Let F represent a p × q matrix of functions, defined on a set S, of an m-dimensional column vector x, and let G represent a generalized inverse
314
15. Matrix Differentiation
of F. Further, let c represent any interior point (of S) at which F is continuously differentiable, and suppose that F has constant rank on some neighborhood of c. Then there exists a second generalized inverse G∗ (of F) such that G∗ is continuously differentiable (at c) and G∗ (c) G(c). Proof (of Theorem 15.10.7). According to Theorem 15.10.1, there exists a generalized inverse, say H, of F that is continuously differentiable at c. Let G∗ H + Z − HFZFH , where Z G(c) − H(c). Then, it follows from Theorem 9.2.7 that G∗ is a generalized inverse of F and from the results of Section 15.4 that G∗ is continuously differentiable (at c). Moreover, G∗ (c)
H(c) + Z − H(c)F(c)[G(c) − H(c)]F(c)H(c) H(c) + Z − H(c)F(c)H(c) + H(c)F(c)H(c)
H(c) + Z G(c)
Q.E.D. Proof (of Theorem 15.10.6). According to Theorem 15.10.7, there exists a generalized inverse G∗ of F such that G∗ is continuously differentiable (at c) and G∗ (c) G(c). Moreover, according to Theorem 9.4.1, AGB AG∗ B for every x in N. Thus, it follows from the results of Section 15.4 that AGB is continuously differentiable at c and that (at x c) ∂(AGB) ∂(AG∗ B) ∂xj ∂xj
∂B ∂G∗ ∂A +A B+ G∗ B ∂xj ∂xj ∂xj ∂B ∂G∗ ∂A AG +A B+ GB . ∂xj ∂xj ∂xj
AG∗
To complete the proof, observe that A(c) LF(c) and B(c) F(c)R for some matrices L and R and hence (in light of Lemma 15.10.5) that (at x c) A
∂G∗ ∂G∗ B LF FR ∂xj ∂xj
15.11
∂F G∗ FR ∂xj ∂F ∂F G∗ B −AG GB . −AG∗ ∂xj ∂xj Q.E.D.
−LFG∗
Differentiation of Projection Matrices
Recall (from Section 14.12d) that PX,W represents the matrix X(X WX)− X W (where X is an n × p matrix and W an n × n matrix) and that, for an n × n symmetric positive definite matrix W, PX,W is the projection matrix for C(X) with respect to W. If the elements of W and/or X are functions of a vector, say z, of
15.11 Differentiation of Projection Matrices
315
variables, then the differentiation (with respect to the elements of z) of PX,W may be of interest. The following theorem gives some results on the differentiation of PX,W and also on the differentiation of WPX,W and W − WPX,W . Theorem 15.11.1. Let X represent an n × p matrix and W an n × n symmetric positive definite matrix, and suppose that the elements of X and W are functions, defined on a set S, of a vector z (z1 , . . . , zm ) of m variables. Further, let c represent any interior point (of S) at which X and W are continuously differentiable, and suppose that X has constant rank on some neighborhood of c. Then, PX,W , WPX,W , and W − WPX,W are continuously differentiable at c, and (at z c) ∂PX,W ∂zj
∂(WPX,W ) ∂zj
∂(W − WPX,W ) ∂zj
∂X (X WX)− X W ∂zj ∂X +X(X WX)− W(I − PX,W ) ∂zj ∂W + X(X WX)− X (I − PX,W ) , ∂zj ∂W ∂W − (I − PX,W ) (I − PX,W ) ∂zj ∂zj ∂X + W(I − PX,W ) (X WX)− X W ∂zj ∂X − + WX(X WX) W(I − PX,W ), ∂zj ∂W (I − PX,W ) (I − PX,W ) ∂zj ∂X −W(I − PX,W ) (X WX)− X W ∂zj ∂X − −WX(X WX) W(I − PX,W ). ∂zj (I − PX,W )
(11.1)
(11.2)
(11.3)
The results of Theorem 15.11.1 are special cases of various results encompassed in the following theorem {as is evident upon recalling (from Corollary 14.11.3) that rank(X WX) rank(X) and (from Theorem 14.12.11) that X[(X WX)− ] X X(X WX)− X and hence that WX(X WX)− X PX,W }. Theorem 15.11.2. Let W, X, and Y represent r × n, n × p, and q × r matrices of functions, defined on a set S, of a vector z (z1 , . . . , zm ) of m variables. Let c represent any interior point of S at which W, X, and Y are continuously differentiable. Suppose that there exists a neighborhood N of c such that (1) YWX has constant rank on N and (2) rank(X) rank(Y) rank(YWX) for all z in N . Define K X(YWX)− Y. Then, K, KW, WKW, and W−WKW are continuously differentiable at c, and (at z c) ∂K ∂Y ∂X ∂W (I−KW) (YWX)− Y+X(YWX)− (I−WK)−K K , (11.4) ∂zj ∂zj ∂zj ∂zj
316
15. Matrix Differentiation
∂(KW) ∂zj
∂X (YWX)− YW ∂zj ∂Y ∂W W(I − KW) + K + X(YWX)− (I − KW), ∂zj ∂zj
(I − KW)
∂(WKW) ∂zj
∂(W − WKW) ∂zj
∂W ∂W − (I − WK) (I − KW) ∂zj ∂zj ∂X + W(I − KW) (YWX)− YW ∂zj ∂Y + WX(YWX)− W(I − KW) , ∂zj
∂W (I − KW) ∂zj ∂W −W(I − KW) (YWX)− YW ∂zj ∂Y W(I − KW) . −WX(YWX)− ∂zj
(11.5)
(11.6)
(I − WK)
(11.7)
Proof. In light of the results of Section 15.4, we have that YWX is continuously differentiable at c. And, in light of Corollary 4.4.7, we have that R(X) R(YWX) and C(Y) C(YWX) for all z in N. Applying Theorem 15.10.6 (with F YWX, A X, and B Y), we find that K is continuously differentiable at c and that (at z c) ∂K ∂zj
X(YWX)−
∂Y ∂zj
− X(YWX)− Moreover,
∂(YWX) ∂X (YWX)− Y + (YWX)− Y . ∂zj ∂zj
∂(YWX) ∂X ∂W ∂Y YW +Y X+ WX . ∂zj ∂zj ∂zj ∂zj
(11.8)
(11.9)
Upon substituting expression (11.9) for ∂(YWX)/∂zj in expression (11.8), we obtain ∂K ∂zj
∂Y ∂X ∂W − KW (YWX)− Y − K K ∂zj ∂zj ∂zj ∂Y ∂X − X(YWX)− WK + (YWX)− Y ∂zj ∂zj ∂X ∂Y ∂W (I − KW) (YWX)− Y + X(YWX)− (I − WK) − K K, ∂zj ∂zj ∂zj
X(YWX)−
15.11 Differentiation of Projection Matrices
317
thereby validating formula (11.4). Further, since K is continuously differentiable at c, it follows from the results of Section 15.4 that KW, WKW, and W − WKW are continuously differentiable at c and that (at z c) ∂(KW) ∂zj ∂(WKW) ∂zj ∂(W − WKW) ∂zj
∂W ∂K + W, ∂zj ∂zj ∂(KW) ∂W W + KW , ∂zj ∂zj ∂W ∂(WKW) − . ∂zj ∂zj K
(11.10) (11.11) (11.12)
Upon substituting expression (11.4) for ∂K/∂zj in expression (11.10), we obtain (after a little simplification) expression (11.5). Similarly, upon substituting expression (11.5) for ∂(KW)/∂zj in expression (11.11), we obtain expression (11.6), which when substituted for ∂(WKW)/∂zj in expression (11.12) gives expression (11.7). Q.E.D. According to Theorem 15.11.1, a sufficient condition for PX,W to be continuously differentiable at c (where c is an interior point at which X and W are continuously differentiable) is that X have constant rank on some neighborhood of c. Is this condition necessary as well as sufficient? This question is answered (in the affirmative) by the corollary of the following lemma. Lemma 15.11.3. Let X represent an n × p matrix and W an n × n symmetric positive definite matrix, and suppose that the elements of X and W are functions, defined on a set S, of an m-dimensional column vector z. And let c represent any interior point of S at which X and W are continuous. If PX,W is continuous at z c, then X has constant rank on some neighborhood of c. Proof. Suppose that PX,W is continuous at z c. Then, tr(PX,W ) is continuous at z c. Moreover, since (according to Theorem 14.12.11) PX,W is idempotent and rank(X) rank(PX,W ), we have (in light of Corollary 10.2.2) that rank(X) tr(PX,W ). Thus, rank(X) is continuous at z c. Since rank(X) is integer-valued, we conclude that rank(X) is constant on some neighborhood of c. Q.E.D. Corollary 15.11.4. Let X represent an n × p matrix and W an n × n symmetric positive definite matrix, and suppose that the elements of X and W are functions, defined on a set S, of an m-dimensional column vector z. Let c represent any interior point of S at which X and W are continuously differentiable. If PX,W is continuously differentiable at c, then X has constant rank on some neighborhood of c. Proof. Suppose that PX,W is continuously differentiable at c. Since (according to Lemma 15.1.1) continuously differentiable functions are continuous, X, W, and PX,W are all continuous at z c. Thus, it follows from Lemma 15.11.3 that X has constant rank on some neighborhood of c. Q.E.D. In the special case where X is a matrix of constants, or, more generally, where
318
15. Matrix Differentiation
(for z ∈ S) X(z) does not vary with zj , formulas (11.1) – (11.3) reduce to ∂PX,W ∂zj ∂(WPX,W ) ∂zj ∂(W − WPX,W ) ∂zj
∂W (I − PX,W ) , ∂zj ∂W ∂W − (I − PX,W ) (I − PX,W ) , ∂zj ∂zj ∂W (I − PX,W ) (I − PX,W ) .) ∂zj X(X WX)− X
(11.13) (11.14) (11.15)
Formulas (11.1) – (11.3) can be expressed in a more general form by making use of the following lemma. Lemma 15.11.5. Let X represent an n × p matrix and W an n × n symmetric positive definite matrix, and suppose that the elements of X and W are functions, defined on a set S, of a vector z (z1 , . . . , zm ) of m variables. Let c represent any interior point (of S) at which W and X are continuously differentiable, and suppose that X has constant rank on some neighborhood of c. Further, let B represent any p × n matrix such that X WXB X W. Then, at z c, ∂W ∂PX,W WPX,W (I − PX,W ) PX,W ∂zj ∂zj ∂X +W(I − PX,W ) B. (11.16) ∂zj Proof. Recall (from Theorem 14.12.11) that
PX,W WX WX (for all z in S) and (from Theorem 15.11.1) that PX,W is continuously differentiable at c. Thus (at z c) ∂(PX,W WX) ∂(WX) ∂PX,W ∂(WX) PX,W + WX , ∂zj ∂zj ∂zj ∂zj so that
∂PX,W ∂zj
WX
∂(WX) ∂zj ∂W ∂X (I − PX,W ) X + (I − PX,W )W , ∂zj ∂zj
(I − PX,W )
implying that ∂W ∂X ∂PX,W WXB (I − PX,W ) XB + (I − PX,W )W B. ∂zj ∂zj ∂zj
(11.17)
Moreover, by making use of Parts (2) and (3) of Theorem 14.12.11, equality (11.17) can be reexpressed as equality (11.16). Q.E.D.
15.11 Differentiation of Projection Matrices
319
Since neither (∂PX,W /∂zj ) WPX,W nor (I − PX,W (∂W/∂zj )PX,W involves B, it follows from Lemma 15.11.5 that W(I−PX,W ) (∂X/∂zj )B is invariant to the choice of B. Thus, since the choices for B include (X WX)− X W and [(X WX)− ] X W, we have that W(I − PX,W )
∂X ∂X (X WX)− X W W(I − PX,W ) B ∂zj ∂zj
and W(I − PX,W )
(11.18)
∂X ∂X [(X WX)− ] X W W(I − PX,W ) B, ∂zj ∂zj
which [since W(I − PX,W ) is symmetric] is equivalent to ∂X ∂X WX(X WX)− W(I − PX,W ) [W(I − PX,W ) B] . ∂zj ∂zj
(11.19)
Moreover, upon premultiplying both sides of equalities (11.18) and (11.19) by W−1 , we find that (I − PX,W ) and X(X WX)−
∂X ∂zj
∂X ∂X (X WX)− X W (I − PX,W ) B ∂zj ∂zj
W(I − PX,W ) W−1 [W(I − PX,W )
∂X B] . ∂zj
(11.20)
(11.21)
By using results (11.18) – (11.21) [and writing PX,W W−1 for X(X WX)− X ], formulas (11.1) – (11.3) can be reexpressed as ∂PX,W ∂zj
∂(WPX,W ) ∂zj
∂(W − WPX,W ) ∂zj
∂X ∂X B + W−1 [W(I − PX,W ) B] ∂zj ∂zj ∂W + PX,W W−1 (I − PX,W ) , (11.22) ∂zj ∂W ∂W − (I − PX,W ) (I − PX,W ) ∂zj ∂zj ∂X ∂X B + [W(I − PX,W ) B] , (11.23) + W(I − PX,W ) ∂zj ∂zj ∂W (I − PX,W ) (I − PX,W ) ∂zj ∂X −W(I − PX,W ) B ∂zj ∂X B] (11.24) −[W(I − PX,W ) ∂zj (I − PX,W )
(where B is any p × n matrix such that X WXB X W).
320
15.12
15. Matrix Differentiation
Evaluation of Some Multiple Integrals
Let x (x1 , . . . , xn ) represent a (column) vector of n variables x1 , . . . , xn . Further, let W represent an n × n symmetric positive definite matrix, let A represent an n × n matrix, and let c and k represent n × 1 vectors. Consider the evaluation of the following three integrals: & exp[−(1/2)(x − c) W(x − c)] dx , Rn
& Rn
& Rn
(k x) exp[−(1/2)(x − c) W(x − c)] dx ,
(x − c) A(x − c) exp[−(1/2)(x − c) W(x − c)] dx
' [where the symbol Rn f (z)dz is used to denote the integral of a function f (z) of a (column) vector z of n variables over all of Rn ]. These three integrals are of considerable importance in probability and statistics, where they arise in connection with the multivariate normal distribution (e.g., Searle 1971, chap. 2). They can be evaluated by introducing a suitable change of variables and by recalling (from the integral calculus of a single variable) that & ∞ 2 e−x /2 dx (2π)1/2 , −∞
& &
∞
−∞ ∞
−∞
xe−x
x 2 e−x
2
/2
2
/2
dx 0 ,
dx (2π)1/2 .
According to Corollary 14.3.13, there exists an n × n nonsingular matrix P such that W P P. Define z P(x − c) , so that x P−1 z + c. Further, let J represent the Jacobian of P−1 z + c (where P−1 z + c is regarded as a vector of functions of z). Then, observing [in light of result (3.10)] that ∂(P−1 z + c) P−1 , ∂z we find that J |P−1 | |P|−1 . And, since |W| |P P| |P|2 , we have that J ±|W|−1/2 .
15.12 Evaluation of Some Multiple Integrals
321
Thus, upon making use of standard results on changes of variables (e.g., Bartle 1976, sec. 45), we find that & exp[−(1/2)(x − c) W(x − c)]dx Rn & exp[−(1/2)z z] |J|dz Rn & ∞ & ∞ 2 2 |W|−1/2 e−z1 /2 dz1 · · · e−zn /2 dzn (2π )
n/2
−∞ −1/2
|W|
−∞
.
(12.1)
Further, letting di represent the of the 1 × n vector k P−1 [and ' ∞ith element −zi2 /2 dzi 0], we find that observing that (for i 1, . . . , n) −∞ zi e &
Rn
(k x) exp[−(1/2)(x − c) W(x − c)] dx & exp[−(1/2)(x − c) W(x − c)] dx (k c) Rn & + k (x − c) exp[−(1/2)(x − c) W(x − c)] dx Rn
(k c)(2π)n/2 |W|−1/2 & + (k P−1 z) exp[−(1/2)z z]|J|dz Rn
(k c)(2π)n/2 |W|−1/2 & ∞ n & −1/2 −zi2 /2 +|W| di zi e dzi −∞
i1
(k c)(2π)
n/2
|W|
−1/2
si
∞
−∞
e−zs /2 dzs 2
.
(12.2)
And, letting bij represent the ij th element of the n × n matrix (P−1 ) AP−1 and recalling Lemma 5.2.1 [and observing that (P−1 ) (P )−1 ], we find that & (x − c) A(x − c) exp[−(1/2)(x − c) W(x − c)] dx Rn & [z (P−1 ) AP−1 z] exp[−(1/2)z z] |J|dz Rn & −1/2 |W| bij zi zj exp[−(1/2)z z] dz Rn
i,j
−1/2
|W| +
i,j i
{
& bii
i
&
bij
∞
−∞
∞
−∞
zi e
2 zi2 e−zi /2 dzi
−zi2 /2
& dzi
∞
−∞
&
∞
si
−∞
zj e
−zj2 /2
e−zs /2 dzs
dzj
2
& si,j
∞
−∞
e−zs /2 dzs } 2
322
15. Matrix Differentiation
|W|−1/2
bii (2π )1/2 (2π)(n−1)/2
i
(2π)n/2 |W|−1/2 tr[(P−1 ) AP−1 ] (2π)n/2 |W|−1/2 tr[AP−1 (P−1 ) ]
(2π)n/2 |W|−1/2 tr(AW−1 ) .
(12.3)
Formulas (12.1) – (12.3) can be regarded as special cases of the formula given by the following theorem. Theorem 15.12.1. Let B represent an n × n symmetric positive definite matrix and A an n × n matrix, let b represent an n × 1 vector, and let b0 and a0 represent scalars. Then, & (a0 + a x + x Ax) exp[−(b0 + b x + x Bx)]dx Rn
(1/2)π n/2 |B|−1/2 exp[(1/4)b B−1 b − b0 ] × [tr(AB−1 ) − a B−1 b + (1/2)b B−1 AB−1 b + 2a0 ] .
(12.4)
Proof.It is easy to show that b0 + b x + x Bx (1/2)(x − c) W(x − c) + f , where W 2B, c −(1/2)B−1 b, and f b0 − (1/4)b B−1 b. It is also easy to show that a0 + a x + x Ax (x − c) A(x − c) + k x + g , where k a − (1/2)(A + A )B−1 b and g a0 − (1/4)b B−1 AB−1 b. Thus, making use of results (12.1) – (12.3) [and observing that b B−1 A B−1 b (b B−1 A B−1 b) b B−1 AB−1 b], we find that & (a0 + a x + x Ax) exp[−(b0 + b x + x Bx] dx n R & e−f [g + k x + (x − c) A(x − c)] Rn
× exp[−(1/2)(x − c) W(x − c)] dx e−f [g(2π)n/2 |W|−1/2 + (k c)(2π)n/2 |W|−1/2 +(2π)n/2 |W|−1/2 tr(AW−1 )]
(2π)n/2 |W|−1/2 e−f [g + (k c) + tr(AW−1 )] (2π)n/2 2−n/2 |B|−1/2 exp[(1/4)b B−1 b − b0 ] × [a0 − (1/4)b B−1 AB−1 b − (1/2)a B−1 b +(1/4)b B−1 (A + A )B−1 b + (1/2)tr(AB−1 )]
(1/2)π n/2 |B|−1/2 exp[(1/4)b B−1 b − b0 ] × [tr(AB−1 ) − a B−1 b + (1/2)b B−1 AB−1 b + 2a0 ] . Q.E.D.
Exercises
323
Exercises Section 15.1 1. Using the result of Part (c) of Exercise 6.2, show that every neighborhood of a point x in Rm×1 is an open set. 2. Let f represent a function, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables, suppose that S contains at least some interior points, and let c represent an arbitrary one of those points. Verify that if f is k times continuously differentiable at c, then f is k times continuously differentiable at every point in some neighborhood of c. 3. Let X {xij } represent an m × n matrix of mn variables, and let x represent an mn-dimensional column vector obtained by rearranging the elements of X (in the form of a column vector). Further, let S represent a set of X-values, and let S ∗ represent the corresponding set of x-values (i.e., the set obtained by rearranging the elements of each m × n matrix in S in the form of a column vector). Verify that an mn-dimensional column vector is an interior point of S ∗ if and only if it is a rearrangement of an m × n matrix that is an interior point of S. 4. Let f represent a function whose domain is a set S in Rm×1 (that contains at least some interior points). Show that the Hessian matrix Hf of f is the gradient matrix of the gradient vector (Df ) of f . Section 15.2 5. Let g represent a function, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables, let S ∗ {x ∈ S : g(x) 0}, and let c represent any interior point of S ∗ at which g is continuously differentiable. Use Lemma 15.2.2 and the ensuing discussion [including formulas (2.16) and (2.8)] to show that (for any positive integer k) g −k is continuously differentiable at c and ∂g −k ∂g −kg −k−1 , ∂xj ∂xj thereby generalizing formula (2.8) and establishing that formula (2.16) is valid for negative (as well as positive) values of k. Section 15.4 6. Let F represent a p × p matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Let c represent any interior point of S at which F is continuously differentiable. Show that if F is idempotent at all points in some neighborhood of c, then (at x c) F
∂F F0. ∂xj
324
15. Matrix Differentiation
7. Let g represent a function, defined on a set S, of a vector x = (x1 , . . . , xm ) of m variables, and let f represent a p × 1 vector of functions (defined on S) of x. Let c represent any interior point (of S) at which g and f are continuously differentiable. Show that gf is continuously differentiable at c and that (at x c) ∂(gf) ∂g ∂f f +g . ∂x ∂x ∂x Section 15.6 8. (a) Let X {xij } represent an m × n matrix of mn “independent” variables, and suppose that X is free to range over all of Rm×n . (1) Show that, for any p × m and n × p matrices of constants A and B, ∂tr(AXB) A B . ∂X [Hint. Observe that tr(AXB) = tr(BAX).] (2) Show that, for any m- and n-dimensional column vectors a and b, ∂(a Xb) ab . ∂X [Hint. Observe that a Xb tr(a Xb).] (b) Suppose now that X is a symmetric (but otherwise unrestricted) matrix (of dimensions m × m). (1) Show that, for any p × m and m × p matrices of constants A and B, ∂tr(AXB) C + C − diag(c11 , c22 , . . . , cmm ) , ∂X where C {cij } BA. (2) Show that, for any m-dimensional column vectors a {ai } and b {bi }, ∂(a Xb) ab + ba − diag(a1 b1 , a2 b2 , . . . , am bm ) . ∂X 9. (a) Let X {xst } represent an m × n matrix of “independent” variables, and suppose that X is free to range over all of Rm×n . Show that, for any n × m matrix of constants A, ∂tr[(AX)2 ] 2(AXA) . ∂X
Exercises
325
(b) Let X {xst } represent an m × m symmetric (but otherwise unrestricted) matrix of variables. Show that, for any m × m matrix of constants A, ∂tr[(AX)2 ] 2[B + B − diag(b11 , b22 , . . . , bmm )] , ∂X where B = {bst } = AXA. 10. Let X {xij } represent an m × n matrix of “independent” variables, and suppose that X is free to range over all of Rm×n . Show that, for k 2, 3, . . . , ∂tr(Xk ) k(X )k−1 , ∂X thereby generalizing result (2.17). 11. Let X {xst } represent an m × n matrix of “independent” variables, and suppose that X is free to range over all of Rm×n . (a) Show that, for any m × m matrix of constants A, ∂tr(X AX) (A + A )X . ∂X
(b) Show that, for any n × n matrix of constants A, ∂tr(XAX ) X(A + A ) . ∂X
(c) Show (in the special case where n m) that, for any m × m matrix of constants A, ∂tr(XAX) (AX) + (XA) . ∂X
(d) Use the formulas from Parts (a) – (c) to devise simple formulas for ∂tr(X X)/∂X, ∂tr(XX )/∂X, and (in the special case where n m) ∂tr(X2 )/∂X.
326
15. Matrix Differentiation
Section 15.7 12. Let X {xij } represent an m × m matrix. Let f represent a function of X defined on a set S comprising some or all m × m symmetric matrices. Suppose that, for purposes of differentiation, f is to be interpreted as a function of the [m(m + 1)/2]-dimensional column vector x whose elements are xij (j ≤ i 1, . . . , m). Suppose further that there exists a function g, whose domain is a set T of not-necessarily-symmetric matrices that contains S as a proper subset, such that g(X) f (X) for X ∈ S, so that g is a function of X and f is the function obtained by restricting the domain of g to S. Define S ∗ {x : X ∈ S}. Let c represent an interior point of S ∗ , and let C represent the corresponding value of X. Show that if C is an interior point of T and if g is continuously differentiable at C, then f is continuously differentiable at c and that (at x c) ∂f ∂g ∂g ∂g ∂g ∂g . − diag , , ..., + ∂X ∂X ∂X ∂x11 ∂x22 ∂xmm 13. Let h {hi } represent an n × 1 vector of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Let g represent a function, defined on a set T , of a vector y (y1 , . . . , yn ) of n variables. Suppose that h(x) ∈ T for every x in S, and take f to be the composite function defined (on S) by f (x) g[h(x)]. Show that if h is twice continuously differentiable at an interior point c of S and if [assuming that h(c) is an interior point of T ] g is twice continuously differentiable at h(c), then f is twice continuously differentiable at c and Hf (c) [Dh(c)] Hg(c)Dh(c) +
n
Di g[h(c)]Hhi (c) .
i1
Section 15.8 14. Let X {xij } represent an m×m matrix of m2 “independent” variables (where m ≥ 2), and suppose that the range of X comprises all of Rm×m . Show that (for any positive integer k) the function f defined (on Rm×m ) by f (X) |X|k is continuously differentiable at every X and that ∂|X|k k|X|k−1 [adj(X)] . ∂X 15. Let F {fis } represent a p × p matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Let c represent any interior point (of S) at which F is continuously differentiable. Use the results of Exercise 13.10
Exercises
327
to show that (a) if rank[F(c)] p − 1, then (at x c) ∂ det(F) ∂F ky z, ∂xj ∂xj where z {zs } and y {yi } are any nonnull p-dimensional vectors such that F(c)z 0 and [F(c)] y 0 and where [letting φis represent the cofactor of fis (c)] k is a scalar that is expressible as k φis /(yi zs ) for any i and s such that yi 0 and zs 0; and (b) if rank[F(c)] ≤ p − 2, then (at x c) ∂ det(F) 0. ∂xj 16. Let X {xst } represent an m × n matrix of “independent” variables, let A represent an m × m matrix of constants, and suppose that the range of X is a set S comprising some or all X-values for which det(X AX) > 0. Show that log det(X AX) is continuouslydifferentiable at any interior point C of S and that (at X C) ∂ log det(X AX) AX(X AX)−1 + [(X AX)−1 X A] . ∂X 17. (a) Let X represent an m × n matrix of “independent” variables, let A and B represent q ×m and n×q matrices of constants, and suppose that the range of X is a set S comprising some or all X-values for which det(AXB) > 0. Show that log det(AXB) is continuously differentiable at any interior point C of S and that (at X C) ∂ log det(AXB) [B(AXB)−1 A] . ∂X (b) Suppose now that X is an m × m symmetric matrix; that A and B are q × m and m × q matrices of constants; that, for purposes of differentiating any function of X, the function is to be interpreted as a function of the column vector x whose elements are xij (j ≤ i 1, . . . , m); and that the range of x is a set S comprising some or all x-values for which det(AXB) > 0. Show that log det(AXB) is continuously differentiable at any interior point c (of S) and that (at x c) ∂ log det(AXB) K + K − diag(k11 , k22 , . . . , kqq ) , ∂X where K {kij } B(AXB)−1 A.
328
15. Matrix Differentiation
18. Let F {fis } represent a p × p matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables, and let A and B represent q × p and p × q matrices of constants. Suppose that S is the set of all x-values for which F(x) is nonsingular and det[AF−1 (x)B] > 0, or is a subset of that set. Show that if F is continuously differentiable at an interior point c of S, then log det(AF−1 B) is continuously differentiable at c and (at x c)
∂ log det(AF−1 B) −1 −1 −1 −1 ∂F . −tr F B(AF B) AF ∂xj ∂xj 19. Let A and B represent q × m and m × q matrices of constants, (a) Let X represent an m × m matrix of m2 “independent” variables, and suppose that the range of X is a set S comprising some or all X-values for which X is nonsingular and det(AX−1 B) > 0. Use the result of Exercise 18 to show that log det(AX−1 B) is continuously differentiable at any interior point C of S and that (at X C) ∂ log det(AX−1 B) −[X−1 B(AX−1 B)−1 AX−1 ] ∂X (b) Suppose now that X is an m × m symmetric matrix; that, for purposes of differentiating any function of X, the function is to be interpreted as a function of the column vector x whose elements are xij (j ≤ i 1, . . . , m); and that the range of x is a set S comprising some or all xvalues for which X is nonsingular and det(AX−1 B) > 0. Use the result of Exercise 18 to show that log det(AX−1 B) is continuously differentiable at any interior point c of S and that (at x c) ∂ log det(AX−1 B) −K − K + diag(k11 , k22 , . . . , kqq ) , ∂X where K {kij } X−1 B(AX−1 B)−1 AX−1 . 20. Let F {fis } represent a p × p matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Let c represent any interior point (of S) at which F is continuously differentiable. By, for instance, using the result of Part (b) of Exercise 13.10, show that if rank[F(c)] ≤ p − 3, then ∂adj(F) 0. ∂xj
Exercises
329
21. (a) Let X represent an m × m matrix of m2 “independent” variables, and suppose that the range of X is a set S comprising some or all X-values for which X is nonsingular. Show that (when the elements of X−1 are regarded as functions of X) X−1 is continuously differentiable at any interior point C of S and that (at X C) ∂X−1 −yi zj , ∂xij where yi represents the ith column and zj the j th row of X−1 . (b) Suppose now that X is an m × m symmetric matrix; that, for purposes of differentiating a function of X, the function is to be interpreted as a function of the column vector x whose elements are xij (j ≤ i 1, . . . , m); and that the range of x is a set S comprising some or all x-values for which X is nonsingular. Show that X−1 is continuously differentiable at any interior point c of S and that (at x c) % ∂X−1 −yi yi , if j i , −yi yj − yj yi , if j < i ∂xij (where yi represents the ith column of X−1 ). Section 15.9 22. Let X represent an m × m matrix of m2 “independent” variables. Suppose that the range of X is a set S comprising some or all X-values for which X is nonsingular, and let C represent an interior point of S. Denote the ij th element of X−1 by yij , the j th column of X−1 by yj , and the ith row of X−1 by zi . (a) Show that X−1 is twice continuously differentiable at C and that (at X C) ∂ 2 X−1 yj s yi zt + yti ys zj . ∂xij ∂xst (b) Suppose that det(X) > 0 for every X in S. Show that log det(X) is twice continuously differentiable at C and that (at X C) ∂ 2 log det(X) −yti yj s . ∂xij ∂xst 23. Let F {fis } represent a p × p matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. For any nonempty set T {t1 , . . . , ts }, whose members are integers between 1 and m, inclusive, define D(T ) ∂ s F/∂xt1 · · · ∂xts . Let k represent a positive integer and, for i 1, . . . , k, let ji represent an arbitrary integer between 1 and m, inclusive.
330
15. Matrix Differentiation
(a) Suppose that F is nonsingular for every x in S, and denote by c any interior point (of S) at which F is k times continuously differentiable. Show that F−1 is k times continuously differentiable at c and that (at x c) ∂ k F−1 ∂xj1 · · · ∂xjk k (−1)r F−1 D(T1 )F−1 D(T2 ) · · · F−1 D(Tr )F−1 ,
(E.1)
r1 T1 ,...,Tr
where T1 , . . . , Tr are r nonempty mutually exclusive and exhaustive subsets of {j1 , . . . , jk } (and where the second summation is over all possible choices for T1 , . . . , Tr ). (b) Suppose that det(F) > 0 for every x in S, and denote by c any interior point (of S) at which F is k times continuously differentiable. Show that log det(F) is continuously differentiable at c and that (at x c) ∂ k log det(F) ∂xj1 · · · ∂xjk k (−1)r+1 tr[F−1 D(T1 )F−1 D(T2 ) · · · F−1 D(Tr )], (E.2) r1 T1 ,...,Tr
where T1 , . . . , Tr are r nonempty mutually exclusive and exhaustive subsets of {j1 , . . . , jk } with jk ∈ Tr (and where the second summation is over all possible choices for T1 , . . . , Tr ). Section 15.10 24. Let X {xij } represent an m × m symmetric matrix, and let x represent the [m(m + 1)/2]-dimensional column vector whose elements are xij (j ≤ i 1, . . . , m). Define S to be the set of all x-values for which X is nonsingular and S ∗ to be the set of all x-values for which X is positive definite. Show that S and S ∗ are both open sets. Section 15.11 25. Let X represent an n × p matrix of constants, and let W represent an n × n symmetric positive definite matrix whose elements are functions, defined on a set S, of a vector z (z1 , . . . , zm ) of m variables. Further, let c represent any interior point (of S) at which W is twice continuously differentiable. Show
Bibliographic and Supplementary Notes
331
that W − WPX,W is twice continuously differentiable at c and that (at x c) ∂ 2 (W − WPX,W ) ∂zi ∂zj
∂W (I − PX,W ) ∂zi ∂zj ∂W ∂W X(X WX)− X (I − PX,W ) − (I − PX,W ) ∂zi ∂zj ∂W ∂W − [(I − PX,W ) X(X WX)− X (I − PX,W )] . ∂zi ∂zj
(I − PX,W )
26. Provide an alternative derivation of formula (11.23) for ∂(WPX,W )/∂zj by using Part (6 ) of Theorem 14.12.11 to obtain the representation ∂(WPX,W ) ∂zj
PX,W W
∂W ∂PX,W + PX,W PX,W ∂zj ∂zj ∂PX,W + WPX,W ∂zj
and by then making use of result (11.16).
Bibliographic and Supplementary Notes Dwyer (1967) played a leading role in the development of matrix differentiation. Book-length treatments of matrix differentiation have been authored by Rogers (1980) and by Magnus and Neudecker 1988). §1. For a more general and complete discussion of the terminology and alternative notations employed in matrix diferentiation, refer to Magnus and Neudecker (1988, chaps. 4 – 10). §2 and §3. Sections 2 and 3 can be read without first reading Section 1e. §10 and §11. Many of the results presented in Sections 10 and 11 are adaptations of results presented by Hearon and Evans (1968), Golub and Pereyra (1973), and Rogers (1980, chap. 16). §12. The presentation in Section 12 is modeled after that of Graybill (1983, secs. 10.3 – 10.5).
This page intentionally left blank
16 Kronecker Products and the Vec and Vech Operators
Some (though by no means all) of the partitioned matrices encountered in statistics are expressible in terms of two (or more) matrices (of relatively small dimensions) in the form of something called a Kronecker product. In Section 16.1, the definition of a Kronecker product of matrices is given, and a number of results on Kronecker products are presented. These results can (when applicable) be exploited for computational (and other) purposes. In subsequent sections of this chapter, the notion introduced in Chapter 15 (in connection with the differentiation of a function of a matrix) of rearranging the (nonredundant) elements of a matrix in the form of a column vector is formalized by introducing something called the vec or vech operator. A number of results on the vec or vech operator are presented. Kronecker products appear in many of these results.
16.1
The Kronecker Product of Two or More Matrices: Definition and Some Basic Properties
The Kronecker product of two matrices, say an m × n matrix A {aij } and a p × q matrix B {bij }, is denoted by the symbol A ⊗ B and is defined to be the mp × nq matrix a11 B a12 B . . . a1n B a21 B a22 B . . . a2n B A⊗B . .. .. . . . . am1 B am2 B . . . amn B
334
16. Kronecker Products and the Vec and Vech Operators
obtained by replacing each element aij of A with the p × q matrix aij B. Thus, the Kronecker product of A and B is a partitioned matrix, comprising m rows and n columns of p × q dimensional blocks, the ij th of which is aij B. Clearly, each element of A ⊗ B is the product of an element of A and an element of B. Specifically, the element that appears in the [p(i − 1) + r]th row and [q(j − 1) + s]th column of A ⊗ B is the rsth element aij brs of aij B. Note that, unlike the “ordinary” product AB of A and B (which is defined only in the special case where p n), the Kronecker product A ⊗ B is defined regardless of the dimensions of A and B. Note also that, while the Kronecker product B ⊗ A of B and A is of the same dimensions (mp × nq) as A ⊗ B, it is only in special cases that B ⊗ A equals A ⊗ B. For example, if m n q 2 and p 3, then a11 b11 a11 b12 a12 b11 a12 b12 a11 b21 a11 b22 a12 b21 a12 b22 a11 b31 a11 b32 a12 b31 a12 b32 , A⊗B a21 b11 a21 b12 a22 b11 a22 b12 a21 b21 a21 b22 a22 b21 a22 b22 a21 b31 a21 b32 a22 b31 a22 b32 b11 a11 b11 a21 b21 a11 B⊗A b21 a21 b31 a11 b31 a21
b11 a12 b11 a22 b21 a12 b21 a22 b31 a12 b31 a22
b12 a11 b12 a21 b22 a11 b22 a21 b32 a11 b32 a21
b12 a12 b12 a22 b22 a12 . b22 a22 b32 a12 b32 a22
In some presentations, A ⊗ B is referred to as the direct product or the tensor product of A and B rather than the Kronecker product. And, A ⊗ B and B ⊗ A are sometimes referred to, respectively, as the right and left Kronecker (or direct or tensor) products of A and B. For any scalar k and any m × n matrix A, k ⊗ A A ⊗ k kA ,
(1.1)
as is evident from the very definition of a Kronecker product. And letting a {ai } and b {bj } represent column vectors of dimensions m and n, respectively, it is easy to verify that a1 b a2 b a⊗b . (1.2) .. am b (i.e., that a ⊗ b is an mn-dimensional partitioned column vector comprising m subvectors, the ith of which is ai b); that a ⊗ b (a1 b , a2 b , . . . , am b )
(1.3)
16.1 The Kronecker Product: Definition and Some Basic Properties
335
(i.e., that a ⊗ b is an mn-dimensional partitioned row vector comprising m subvectors, the ith of which is ai b ); and that a ⊗ b b ⊗ a ab .
(1.4)
In connection with result (1.4), recall that ab is an m × n matrix whose ij th element is ai bj . Let A {aij } represent a p × q matrix. Then, clearly, 0⊗AA⊗00.
(1.5)
Further, for any diagonal matrix D {di } of order m, D ⊗ A diag(d1 A, d2 A, . . . , dm A) ,
(1.6)
which, in the special case where A is a diagonal matrix (of order p), is the diagonal matrix of order mp whose [p(i − 1) + r]th diagonal element is di arr (as is easily verified). In the special case where D Im , result (1.6) simplifies to I ⊗ A diag(A, A, . . . , A) ,
(1.7)
and in the further special case where A Ip , it simplifies to Im ⊗ Ip Imp . Note that, aside from certain special cases, the Kronecker product a11 I a12 I . . . a1q I a21 I a22 I . . . a2q I A⊗I . .. .. .. . . ap1 I ap2 I . . . apq I
(1.8)
(1.9)
of A and Im differs from the Kronecker product I ⊗ A of Im and A. Letting k represent an arbitrary scalar and A and B arbitrary matrices, it is easy to see that the effect on the Kronecker product A ⊗ B of replacing either A or B by the scalar multiple kA or kB is as follows: (kA) ⊗ B A ⊗ (kB) k(A ⊗ B) .
(1.10)
Another easily verified property of Kronecker products is that, for any m × n matrices A and B and any p × q matrix C, (A + B) ⊗ C (A ⊗ C) + (B ⊗ C) ,
(1.11)
C ⊗ (A + B) (C ⊗ A) + (C ⊗ B) .
(1.12)
Results (1.11) and (1.12) can be used to show that, for any m × n matrices A and B and any p × q matrices C and D, (A + B) ⊗ (C + D) (A ⊗ C) + (A ⊗ D) + (B ⊗ C) + (B ⊗ D) .
(1.13)
336
16. Kronecker Products and the Vec and Vech Operators
More generally, results (1.11) and (1.12) can be used to show that, for any m × n matrices A1 , A2 , . . . , Ar and p × q matrices B1 , B2 , . . . , Bs , s r s r Ai ⊗ Bj (Ai ⊗ Bj ) . (1.14) i1
j 1
i1 j 1
Note that, in the special case where r s 2, result (1.14) reduces to what is essentially result (1.13). Consider now the transpose (A ⊗ B) of the Kronecker product of an m × n matrix A {aij } and a p × q matrix B. It follows from result (2.2.3) (together with the very definition of a Kronecker product) that (A ⊗ B) is a partitioned matrix, comprising n rows and m columns of q × p dimensional blocks, the ij th of which is aj i B . Since aj i B is also the ij th block of A ⊗ B , (A ⊗ B) A ⊗ B .
(1.15)
Note that, in contrast to what might have been conjectured from the formula [(AB) B A ] for the transpose of the “ordinary” product of two matrices, (A⊗B) is not in general equal to B ⊗ A . Note also that if A and B are both symmetric, then it follows from result (1.15) that (A ⊗ B) A ⊗ B ; that is, the Kronecker product of symmetric matrices is symmetric. The following lemma provides a basis for extending the definition of a Kronecker product to three or more matrices. Lemma 16.1.1. For any m × n matrix A {aij }, p × q matrix B {bij }, and u × v matrix C, A ⊗ (B ⊗ C) (A ⊗ B) ⊗ C . (1.16) Proof. Let G A ⊗ (B ⊗ C) and H (A ⊗ B) ⊗ C. We wish to show that G H. Partition G into m rows and n columns of pu × qv dimensional blocks, and denote the ij th of these blocks by G∗ij . By definition, G∗ij aij (B ⊗ C). For each i and j , partition G∗ij into p rows and q columns of u × v dimensional blocks, thereby defining a further partitioning of G into mp rows and nq columns of (u × v dimensional) blocks. Denote the rsth block of G∗ij by Grs ij and the xzth of the (u×v dimensional) blocks of G by Gxz . Then, Gp(i−1)+r,q(j −1)+s Grs ij aij brs C .
(1.17)
Now, observe that H F ⊗ C, where F {fxz } A ⊗ B. Partition H into mp rows and nq columns of u × v dimensional blocks, and denote the xzth of these blocks by Hxz . Then, fp(i−1)+r,q(j −1)+s aij brs , and consequently Hp(i−1)+r,q(j −1)+s fp(i−1)+r,q(j −1)+s C aij brs C .
(1.18)
16.1 The Kronecker Product: Definition and Some Basic Properties
337
Together, results (1.17) and (1.18) imply that (for arbitrary i, j, r, and s) Gp(i−1)+r,q(j −1)+s Hp(i−1)+r,q(j −1)+s . We conclude that G H. Q.E.D. The symbol A ⊗ B ⊗ C is used to represent the common value of the left and right sides of equality (1.16), and this value is referred to as the Kronecker product of A, B, and C. This notation and terminology extend in an obvious way to any finite number of matrices. The following lemma establishes a connection between the “ordinary” product of Kronecker products and the Kronecker product of ordinary products. Lemma 16.1.2. For any m × n matrix A {aij }, p × q matrix B {bij }, n × u matrix C {cij }, and q × v matrix D {dij }, (A ⊗ B)(C ⊗ D) (AC) ⊗ (BD) .
(1.19)
Proof. By definition, A ⊗ B is a partitioned matrix, comprising m rows and n columns of p × q dimensional blocks, the ij th of which is aij B; and C ⊗ D is a partitioned matrix, comprising n rows and u columns of q × v dimensional blocks, the j rth of which is cj r D. Thus, (A ⊗ B) (C ⊗ D) is a partitioned matrix, comprising m rows and u columns of p × v dimensional blocks, the irth of which is the matrix n n (aij B)(cj r D) aij cj r BD . j 1
j 1
By way of comparison, (AC) ⊗ (BD) is a partitioned matrix, comprising m rows and u columns of p × v dimensional blocks, the irth of which is the matrix fir BD , where
fir is the irth element of AC. The proof is complete upon observing that fir nj1 aij cj r and hence that the irth block of (AC) ⊗ (BD) equals the irth block of (A ⊗ B) (C ⊗ D). Q.E.D. One implication of result (1.19) is that the Kronecker product A ⊗ B of an m × n matrix A and a p × q matrix B can be decomposed in either of the following two ways: A ⊗ B (A ⊗ Ip )(In ⊗ B) (Im ⊗ B)(A ⊗ Iq ) . (1.20) And, in light of result (1.4), a further implication is that, for any m × n matrix A, p × q matrix C, p × 1 vector b, and n × 1 vector d, (A ⊗ b )(d ⊗ C) (b ⊗ A)(C ⊗ d) Adb C .
(1.21)
Result (1.19) can be extended (by repeated application) to the ordinary product of an arbitrary number of Kronecker products. We have that (A1 ⊗ B1 )(A2 ⊗ B2 ) · · · (Ak ⊗ Bk ) (A1 A2 · · · Ak ) ⊗ (B1 B2 · · · Bk ) ,
(1.22)
338
16. Kronecker Products and the Vec and Vech Operators
where (for i 1, 2, . . . , k) Ai is an mi × mi+1 dimensional matrix and Bi is a pi × pi+1 dimensional matrix. The Kronecker product A ⊗ B of any m × m nonsingular matrix A and any p × p nonsingular matrix B is invertible, and (A ⊗ B)−1 A−1 ⊗ B−1 ,
(1.23)
as is evident upon observing [in light of results (1.19) and (1.8)] that (A ⊗ B)(A−1 ⊗ B−1 ) (AA−1 ) ⊗ (BB−1 ) Im ⊗ Ip Imp . More generally, A− ⊗ B− is a generalized inverse of the Kronecker product A ⊗ B of any m × n matrix A and any p × q matrix B, as is evident upon observing that (A ⊗ B)(A− ⊗ B− )(A ⊗ B) (AA− A) ⊗ (BB− B) A ⊗ B .
(1.24)
Consider now the trace of the Kronecker product A ⊗ B of an m × m matrix A {aij } and a p × p matrix B. Making use of formula (5.1.7), we find that tr(A ⊗ B)
tr(a11 B) + tr(a22 B) + · · · + tr(amm B) (a11 + a22 + · · · + amm )tr(B) .
Thus, tr(A ⊗ B) tr(A)tr(B).
(1.25)
Next, consider the rank of the Kronecker product of an m × n matrix A and a p × q matrix B. Since A− ⊗ B− is a generalized inverse of A ⊗ B, it follows from results (10.2.1), (1.19), and (1.25) that rank(A ⊗ B) tr[(A ⊗ B)(A− ⊗ B− )] tr[(AA− ) ⊗ (BB− )] tr(AA− )tr(BB− ) , and [again making use of result (10.2.1)] we conclude that rank(A ⊗ B) rank(A)rank(B) .
(1.26)
Note that result (1.26) implies that the mp × nq dimensional Kronecker product A ⊗ B of an m × n matrix A and a p × q matrix B has full row rank if and only if both A and B have full row rank, has full column rank if and only if both A and B have full column rank, and hence is nonsingular if and only if both A and B are nonsingular. The Kronecker product of an m × n partitioned matrix A11 A12 . . . A1c A21 A22 . . . A2c A . .. .. . . . . Ar1 Ar2 . . . Arc
16.2 The Vec Operator: Definition and Some Basic Properties
339
and a p × q matrix B equals the mp × nq matrix obtained by replacing each block Aij of A with the Kronecker product of Aij and B; that is, A11 A12 . . . A1c A21 A22 . . . A2c .. .. .. ⊗ B . . . Ar1 Ar2 . . . Arc A11 ⊗ B A12 ⊗ B . . . A1c ⊗ B A21 ⊗ B A22 ⊗ B . . . A2c ⊗ B , (1.27) .. .. .. . . . Ar1 ⊗ B
Ar2 ⊗ B
...
Arc ⊗ B
as is easily verified. And, the Kronecker product of an m-dimensional column vector a {ai } and a p×q matrix B that has been partitioned as B (B1 , B2 , . . . , Bk ) is the mp × q matrix obtained by replacing each block Bj of B with the Kronecker product of a and Bj ; that is, a ⊗ (B1 , B2 , . . . , Bk ) (a ⊗ B1 , a ⊗ B2 , . . . , a ⊗ Bk ) , as is also easily verified. Suppose now that
A11 A21 A . ..
A12 A22 .. .
Ar1
Ar2
(1.28)
. . . A1c . . . A2c .. . . . . Arc
is a partitioned matrix whose rc blocks A11 , A12 , . . . , Arc are all of the same size, say m × n (in which case A is of dimensions rm × cn). Let Uij represent an r × c matrix whose ij th element is 1 and whose remaining rc − 1 elements are 0. Then, A
c r
Uij ⊗ Aij ,
(1.29)
i1 j 1
as is evident upon observing that Uij ⊗ Aij is an rm × cn partitioned matrtix comprising r rows and c columns of m × n dimensional blocks, the pqth of which equals Apq , if i p and j q, and equals 0, if i p or j q.
16.2
The Vec Operator: Definition and Some Basic Properties
It is sometimes convenient (as in the discussion of matrix differentiation in Chapter 15) to rearrange the elements of an m × n matrix A {aij } in the form on an mndimensional column vector. The conventional way of doing so is to successively
340
16. Kronecker Products and the Vec and Vech Operators
stack the first, second, . . . , nth columns a1 , a2 , . . . , an of A one under the other, giving the mn-dimensional column vector a1 a2 (2.1) .. , . an that is, giving a partitioned column vector comprising n subvectors of dimension m, the ith of which is ai . The mn-dimensional column vector (2.1) is referred to as the vec of A — think of vec as being an abbreviation for vector. It is denoted by the symbol vec(A) or sometimes (when the parentheses are not needed for clarity) by vec A. Vec(A) can be regarded as the value assigned to A by a vector-valued function or operator whose domain is Rm×n — this operator is known as the vec operator. By definition, the ij th element of A is the [(j − 1)m + i]th element of vec(A). Suppose, for example, that m 2 and n 3. Then, a11 a21 a12 vec(A) a22 . a13 a23 For any column vector a, vec(a ) vec(a) a ,
(2.2)
as is evident from the very definition of the vec operator. And, for any mdimensional column vector a {ai } and n-dimensional column vector b, vec(ba ) a ⊗ b ,
(2.3)
as is evident from result (1.2) upon observing that the ith (of the m columns) of ba is ai b. Clearly, for any scalar c and any matrix A, vec(cA) c vec(A) ,
(2.4)
and, for any two matrices A and B (of the same size), vec(A + B) vec(A) + vec(B) .
(2.5)
More generally, for any k scalars c1 , c2 , . . . , ck and for any k matrices A1 , A2 , . . . , Ak (of the same size), k k vec c i Ai ci vec(Ai ) , (2.6) i1
i1
16.2 The Vec Operator: Definition and Some Basic Properties
341
as can be easily established by the repeated application of results (2.5) and (2.4). Let A represent an m × n matrix and B an n × p matrix, and denote the first, second, . . . , pth columns of B by b1 , b2 , . . . , bp , respectively. Then, Ab1 Ab2 vec(AB) . , (2.7) .. Abp as is evident upon observing that the j th column of AB is Abj . Note that result (2.7) implies that vec(AB) diag(A, A, . . . , A)vec(B)
(2.8)
or equivalently [in light of result (1.7)] that vec(AB) (Ip ⊗ A)vec(B) .
(2.9)
Result (2.9) is generalized in the following theorem. Theorem 16.2.1. For any m × n matrix A, n × p matrix B, and p × q matrix C, vec(ABC) (C ⊗ A)vec(B) .
(2.10)
Proof. According to result (2.4.2), B is expressible as B
p j 1
bj uj ,
where (for j 1, . . . , p) bj is the j th column of B and uj is the j th row of Ip . Thus, making use of results (2.3) and (1.19), we find that vec(ABC) vec A bj uj C
j
j
vec(Abj uj C)
[(C uj ) ⊗ (Abj )]
j
(C ⊗ A)(uj ⊗ bj )
(C ⊗ A)vec(bj uj )
j
j
(C ⊗ A)vec
j
bj uj
(C ⊗ A)vecB . Q.E.D.
342
16. Kronecker Products and the Vec and Vech Operators
Three alternative expressions for the vec of the product AB of an m × n matrix A and an n × p matrix B can be obtained as special cases of result (2.10). One of these expressions is given by result (2.9). The other two are vec(AB) (B ⊗ Im )vec(A) ,
(2.11)
vec(AB) (B ⊗ A)vec(In ) .
(2.12)
Consider now the product ABx of an m × n matrix A, an n × p matrix B, and a p × 1 vector x. According to result (2.2), ABx vec(ABx) vec(x B A ) . Thus, it follows from result (2.10) that ABx (x ⊗ A)vec(B) (A ⊗ x )vec(B ) .
(2.13)
For any m × n matrices A and B, tr(A B) (vec A) vec B .
(2.14)
To see this, let aj and bj represent the j th columns of A and B, respectively, and observe that the j th diagonal element of A B equals aj bj , so that b1 n b2 tr(A B) aj bj (a1 , a2 , . . . , an ) . .. j 1
b1 a1 a2 b2 . . .. .. an
bn
bn
(vec A) vec B . Note that result (2.14) implies that the (usual) inner product of any two m × n matrices equals the (usual) inner product of their vecs. Note also that, since [according to result (5.2.8)] tr(A B) tr(B A) tr(BA ) tr(AB ), alternative versions of formula (2.14) can be obtained by replacing tr(A B) with tr(B A), tr(BA ), or tr(AB ). Result (2.14) is generalized in the following theorem. Theorem 16.2.2. For any m × n matrix A, m × p matrix B, p × q matrix C, and n × q matrix D, tr(A BCD ) (vec A) (D ⊗ B)vec C .
(2.15)
Proof. Making use of results (2.14) and (2.10), we find that tr(A BCD ) (vec A) vec (BCD ) (vec A) (D ⊗ B)vec C . Q.E.D. Note [in light of results (5.2.3) and (5.1.5)] that tr(A BCD ) tr(D A BC) tr(CD A B) tr(BCD A ) and that tr(A BCD ) tr[(A BCD ) ] tr(DC B A)
16.3 Vec-Permutation Matrix
343
tr(ADC B ) tr(B ADC ) tr(C B AD). Thus, alternative versions of formula (2.15) can be obtained by replacing tr(A BCD ) with tr(D A BC), tr(CD A B), tr(BCD A ), tr(DC B A), tr(ADC B ), tr(B ADC ), or tr(C B AD). Note also [in light of result (1.7)] that, in the special case where q n and D In , result (2.15) reduces in effect to tr(A BC) (vec A) diag(B, B, . . . , B)vec C .
(2.16)
Let A (A1 , A2 , . . . , Ak ) represent an m × n partitioned matrix comprising a single row of k blocks, and let nj represent the number of columns in Aj . Then, vec A1 vec A2 vec(A1 , A2 , . . . , Ak ) . ; (2.17) .. vec Ak that is, vec(A1 , A2 , . . . , Ak ) equals an mn-dimensional column vector, comprising k subvectors, the j th of which is the mnj -dimensional column vector vec(Aj ). To see this, observe that both vec(A1 , A2 , . . . , Ak ) and vec A1 vec A2 .. . vec Ak are equal to an mn-dimensional partitioned column vector, comprising n m j −1 dimensional subvectors, the ( s1 ns + r)th of which is the rth column of Aj
0 (where s1 ns 0).
16.3
Vec-Permutation Matrix
a. Definition and some alternative descriptions Let A {aij } represent an m × n matrix, and denote the first, . . . , nth columns of A by a1 , . . . , an , respectively, and the first, . . . , mth rows of A by r1 , . . . , rm , respectively. Then, r1 , . . . , rm are the m columns of A , and, by definition, a1 r1 a2 r2 vec(A) . and vec(A ) . . .. .. an
rm
Both vec(A ) and vec(A) are obtained by rearranging the elements of A in the form of an mn-dimensional column vector; however, they are arranged row by row in
344
16. Kronecker Products and the Vec and Vech Operators
vec(A ) instead of column by column [as in vec(A)]. For example, when m 2 and n 3, a11 a11 a21 a12 a12 a13 vec(A) and vec(A ) a21 . a 22 a13 a22 a23 a23 Clearly, vec(A ) can be obtained by permuting the elements of vec(A). Accordingly, there exists an mn × mn permutation matrix, to be denoted by the symbol Kmn , such that (3.1) vec(A ) Kmn vec(A) . (This matrix depends on m and n, but not on the values of a11 , a12 , . . . , amn .) For example, 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 . K23 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 The matrix Kmn is referred to as a vec-permutation matrix (e.g., Henderson and Searle 1979) or, more commonly and for reasons that will become evident in Subsection c, as a commutation matrix (e.g., Magnus and Neudecker 1979). As discussed in Section 16.2, the ij th element of the m × n matrix A is the [(j −1)m+i]th element of vec(A). And, the ij th element of A is the j ith element of the n×m matrix A and accordingly is the [(i −1)n+j ]th element of vec(A ). Thus, the [(i − 1)n + j ]th row of the vec-permutation matrix Kmn is the [(j − 1)m + i]th row of Imn (i 1, . . . , m; j 1, . . . , n). Note that, since the transpose A of the m × n matrix A is of dimensions n × m, it follows from the very definition of a vec-permutation matrix that vec(A) vec[(A ) ] Knm vec(A ).
(3.2)
The following theorem gives a useful and informative representation for the vec-permutation matrix Kmn . Theorem 16.3.1. Let m and n represent positive integers, and (for i 1, . . . , m and j 1, . . . , n) let Uij ei uj , where ei is the ith column of Im and uj the j th column of In (in which case Uij is an m × n matrix whose ij th element is 1 and whose remaining elements are 0). Then, Kmn
n m i1 j 1
(Uij ⊗ Uij ).
(3.3)
16.3 Vec-Permutation Matrix
345
Proof. Using results (3.1), (2.4.3), (2.4.5), and (2.10), we find that, for any m×n matrix A, Kmn vec(A) vec(A ) vec aij Uij
i,j
i,j
i,j
i,j
i,j
i,j
vec(aij uj ei ) vec(uj aij ei ) vec[uj (ei Auj )ei ] vec(Uij AUij )
(Uij ⊗ Uij )vec(A)
and hence that, for any mn-dimensional column vector a, Kmn a Uij ⊗ Uij a . i,j
Based on Lemma 2.3.2, we conclude that Kmn (Uij ⊗ Uij ). i,j
Q.E.D. In light of result (1.29), result (3.3) can be reexpressed as U11 U12 . . . U1n U21 U22 . . . U2n Kmn . .. .. . .. . . Um1
Um2
(3.4)
. . . Umn
That is, Kmn can be regarded as an mn × mn partitioned matrix, comprising m rows and n columns of n × m dimensional blocks, the ij th of which is the matrix Uij uj ei (whose j ith element is 1 and whose other mn − 1 elements are 0). For example, 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 U11 U12 U13 . K23 U21 U22 U23 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1
346
16. Kronecker Products and the Vec and Vech Operators
Let a represent an m-dimensional column vector. Then, upon setting A a in equality (3.1) and result (3.2), we find [in light of result (2.2)] that a Km1 a ,
a K1m a .
It follows (in light of Lemma 2.3.2) that Km1 K1m Im .
(3.5)
b. Some basic properties It follows from result (3.2) that, for any m × n matrix A, vec(A) Knm vec(A ) Knm Kmn vec(A) and hence that, for any mn-dimensional column vector a, a Knm Kmn a , implying (in light of Lemma 2.3.2) that Imn Knm Kmn . Thus (in light of Lemma 8.1.3), Kmn is nonsingular and K−1 mn Knm . Moreover, since Kmn is a permutation matrix, it is orthogonal, and consequently Kmn K−1 mn . In summary, we have that Kmn is nonsingular and that Kmn K−1 mn Knm .
(3.6)
Note that result (3.6) implies that Kmm Kmm ;
(3.7)
that is, Kmm is symmetric (as well as orthogonal). As a special case of a formula for tr(Kmn ) given by, for example, Magnus and Neudecker (1979, p. 383), we have that tr(Kmm ) m .
(3.8)
To verify formula (3.8), let ei represent the ith column of Im , let Uij ei ej , and observe that ej ei equals 1, if j i, and equals 0, if j i. Then, making use of results (3.3), (1.25), and (5.2.6), we find that Uij ⊗ Uij tr(Kmm ) tr
i,j
i,j
tr(Uij ⊗ Uij )
16.3 Vec-Permutation Matrix
i,j
347
tr(Uij )tr(Uij ) [tr(Uij )]2
i,j
i,j
i,j
[tr(ei ej )]2 (ej ei )2
i
(ei ei )2
m
(1)2 m .
i1
c. Kronecker product of two matrices: the effect of premultiplying or postmultiplying by a vec-permutation matrix As discussed in Section 16.1, the Kronecker product B ⊗ A of two matrices B and A is not in general equal to the Kronecker product A ⊗ B of A and B. However, B ⊗ A can be “made equal to” A ⊗ B by permuting the columns of B ⊗ A and the rows of A ⊗ B, as indicated by the following theorem. Theorem 16.3.2. For any m × n matrix A and p × q matrix B, (B ⊗ A)Kqn Kpm (A ⊗ B) ,
(3.9)
B ⊗ A Kpm (A ⊗ B)Knq .
(3.10)
Proof. Making use of Theorem 16.2.1, we find that, for any q × n matrix X, (B ⊗ A)Kqn vec X (B ⊗ A)vec(X )
vec(AX B ) vec[(BXA ) ]
Kpm vec(BXA )
Kpm (A ⊗ B)vec X .
Thus, (B ⊗ A)Kqn x Kpm (A ⊗ B)x for every nq × 1 vector x, implying (in light of Lemma 2.3.2) that (B ⊗ A)Kqn Kpm (A ⊗ B) . Further, since K−1 qn Knq , we have that B ⊗ A (B ⊗ A)Kqn Knq Kpm (A ⊗ B)Knq . Q.E.D. As indicated by result (3.10), the effect on A ⊗ B of premultiplication and postmultiplication by the vec-permutation matrices Kpm and Knq , respectively, is to interchange or “commute” A and B. It is because of this effect that vecpermutation matrices are often referred to as commutation matrices. In the various special cases where A or B is a row or column vector, result (3.9) or (3.10) of Theorem 16.3.2 can be stated more simply, as indicated by the following corollary.
348
16. Kronecker Products and the Vec and Vech Operators
Corollary 16.3.3. For any m × n matrix A and p × 1 vector b, b⊗A
Kpm (A ⊗ b) , A ⊗ b Kmp (b ⊗ A) , b ⊗ A (A ⊗ b )Knp , A ⊗ b (b ⊗ A)Kpn .
(3.11) (3.12) (3.13) (3.14)
Note that in the special case where B is a row vector, say b , and A is a column vector, say a, equality (3.13) or (3.14) reduces to the equality b ⊗ a a ⊗ b , given previously in result (1.4). The trace of the matrix obtained by premultiplying or postmultiplying a Kronecker product (of an n × m matrix and an m × n matrix) by a vec-permutation matrix is given by the following theorem. Theorem 16.3.4. For any m × n matrices A and B, tr[(A ⊗ B)Kmn ] tr[Kmn (A ⊗ B)] tr(A B) (vec A ) Kmn vec B . (3.15) Proof. Let ei represent the ith column of Im and uj the j th column of In , and define Uij ei uj . That tr[(A ⊗ B)Kmn ] tr[Kmn (A ⊗ B)] is an immediate consequence of Lemma 5.2.1. Further, making use of results (3.3), (1.19), (1.25), (5.2.6), (2.4.5), and (5.2.4), we find that tr Kmn (A ⊗ B) tr (Uij ⊗ Uij )(A ⊗ B)
i,j
i,j
i,j
i,j
i,j
i,j
tr[(Uij ⊗ Uij )(A ⊗ B)] tr[(Uij A ) ⊗ (Uij B)] tr(Uij A )tr(Uij B) tr(ei uj A )tr(uj ei B) (uj A ei )ei Buj bij aij
i,j
tr(A B) .
And, in light of results (2.14), (3.2), and (3.6), we have that
16.3 Vec-Permutation Matrix
tr(A B) (vec A) vec B
349
(Knm vec A ) vec B (vec A ) Knm vec B
(vec A ) Kmn vec B.
Q.E.D.
d. Relationship between the vec of the Kronecker product of two matrices and the Kronecker product of their vecs The following theorem relates the vec of the Kronecker product of two matrices A and B to the Kronecker product of the vecs of A and B. Theorem 16.3.5. For any m × n matrix A and any p × q matrix B, vec(A ⊗ B) (In ⊗ Kqm ⊗ Ip )[vec(A) ⊗ vec(B)].
(3.16)
Proof. Let ai represent the ith column of A, and ei the ith column of In (i 1, . . . , n). And, let bj represent the j th column of
B, and uj the j th
column of Iq (j 1, . . . , q). Then, writing A and B as A i ai ei and B j bj uj and making use of results (1.14), (2.6), (1.15), (1.19), (2.3), (1.16), and (3.11), we find that vec(A ⊗ B) vec (ai ei ) ⊗ (bj uj )
i,j
i,j
vec[(ai ei ) ⊗ (bj uj )] vec[(ai ⊗ bj )(ei ⊗ uj ) ]
i,j
(ei ⊗ uj ) ⊗ (ai ⊗ bj )
i,j
ei ⊗ (uj ⊗ ai ) ⊗ bj
i,j
(In ⊗ Kqm ⊗ Ip )(ei ⊗ ai ⊗ uj ⊗ bj )
i,j
i,j
(In ⊗ Kqm ⊗ Ip )[vec(ai ei ) ⊗ vec(bj uj )]
(In ⊗ Kqm ⊗ Ip )
i
(In ⊗ Kqm ⊗ Ip ) vec
vec(ai ei )
⊗
i
ai ei
j
vec(bj uj )
⊗ vec
j
bj uj
(In ⊗ Kqm ⊗ Ip )[vec(A) ⊗ vec(B)] . Q.E.D.
350
16. Kronecker Products and the Vec and Vech Operators
e. Determinant of a Kronecker product Preliminary to deriving a formula for the determinant of a Kronecker product of two matrices, observe [in light of results (1.20) and (3.10)] that, for any m × n matrix A and any p × q matrix B, A⊗B
(A ⊗ Ip )(In ⊗ B) Kmp (Ip ⊗ A)Kpn (In ⊗ B)
Kmp diag(A, A, . . . , A)Kpn diag(B, B, . . . , B) .
(3.17)
Consider now the determinant of the Kronecker product A ⊗ B of an m × m matrix A and a p × p matrix B. Applying result (3.17) (in the special case where n m and q p), we find [in light of results (13.3.9) and (13.3.5)] that |A ⊗ B| |Kmp | |A|p |Kpm | |B|m . And, in light of result (3.6), we have that |Kmp | |Kpm | |Kmp Kpm | |I| 1 . We conclude that (for any m × m matrix A and any p × p matrix B) |A ⊗ B| |A|p |B|m .
16.4
(3.18)
The Vech Operator
a. Definition and basic characteristics The values of all n2 elements of an n × n symmetric matrix A can be determined from the values of those n(n + 1)/2 elements that are on or below the diagonal [or alternatively from those n(n + 1)/2 elements that are on or above the diagonal]. In rearranging the elements of A in the form of a vector, we may wish to exclude the n(n − 1)/2 “duplicate” elements. This would be the case if, for example, A were a (symmetric) matrix of variables and our objective were the differentiation of a function of A. Let A {aij } represent an n × n (symmetric or nonsymmetric) matrix. To obtain the vec of A, we successively stack the first, second, . . . , nth columns a1 , a2 , . . . , an of A one under the other. Consider a modification of this process in which (before or after the stacking) the n(n − 1)/2 “supradiagonal” elements of A are eliminated from a1 , a2 , . . . , an . The result is the [n(n + 1)/2]-dimensional vector ∗ a1 a∗2 (4.1) .. , . a∗n
16.4 The Vech Operator
351
where (for i 1, 2, . . . , n) a∗i (aii , ai+1,i , . . . , ani ) is the subvector of ai obtained by striking out its first i − 1 elements. Thus, by definition, the vector (4.1) is a subvector of vec A obtained by striking out a particular set of what are, in the special case where A is symmetric, duplicate or redundant elements. Following Henderson and Searle (1979), let us refer to the vector (4.1) as the vech of A — think of vech as being an abbreviation for “vector-half.” And, denote this vector by the symbol vech(A) or possibly (when the parentheses are not needed for clarity) by vech A. Like vec A, vech A can be regarded as the value assigned to A by a vector-valued function or operator — the domain of this function is Rn×n . For n 1, n 2, and n 3, a11 a21 a11 a31 vech A (a11 ), vech A a21 , and vech A a22 , respectively. a22 a32 a33 By way of comparison, a11 a21 a31 a11 a12 a21 , and vec A a22 , respectively. vec A (a11 ), vec A a12 a32 a22 a13 a23 a33
Observe that the total number of elements in the j vectors a∗1 , a∗2 , a∗3 , . . . , a∗j is n + (n − 1) + (n − 2) + · · · + n − (j − 1) nj − (0 + 1 + 2 + · · · + j − 1) nj − j (j − 1)/2 and that, of the n − (j − 1) n − j + 1 elements of a∗j , there are (for i ≥ j ) n − i elements that come after aij . Since nj −j (j −1)/2−(n−i) (j −1)(n−j/2)+i, it follows that (for i ≥ j ) the ij th element of A is the [(j − 1)(n − j/2) + i]th element of vech A. By way of comparison, the ij th element of A is (as discussed in Section 16.2) the [(j − 1)n + i]th element of vec A, so that (for i ≥ j ) the [(j − 1)n + i]th element of vec A is the [(j − 1)(n − j/2) + i]th element of vech A. For example, when n 8, we find [upon setting i 7 and j 5 and observing that (j − 1)n + i 39 and that (j − 1)(n − j/2) + i 29] that a75 is the 39th element of vec A and the 29th element of vech A. Let c1 , . . . , ck represent any k scalars, and let A1 , . . . , Ak represent any k square
352
16. Kronecker Products and the Vec and Vech Operators
matrices (of the same order). Then, k k ci Ai ci vech(Ai ) , vech i1
(4.2)
i1
as is evident from result (2.6) upon observing that the vech of any (square) matrix is a subvector of its vec.
b. Duplication matrix Every element of an n × n symmetric matrix A, and hence every element of vec A, is either an element of vech A or a “duplicate” of an element of vech A. Thus, there exists a unique {[n2 × n(n + 1)/2]-dimensional} matrix, to be denoted by the symbol Gn , such that vec A Gn vech A (4.3) for every n × n symmetric matrix A. This matrix is called the duplication matrix. Clearly, 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 G1 (1), G2 0 1 0 , and G3 0 0 0 1 0 0 . 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 More generally (for an arbitrary positive integer n), the matrix Gn can be described in terms of its rows or columns. For i ≥ j , the [(j − 1)n + i]th and [(i − 1)n + j ]th rows of Gn equal the [(j − 1)(n − j/2) + i]th row of In(n+1)/2 , that is, they equal the [n(n + 1)/2]-dimensional row vector whose [(j − 1)(n − j/2) + i]th element is 1 and whose remaining elements are 0. And (for i ≥ j ), the [(j − 1)(n − j/2) + i]th column of Gn is an n2 -dimensional column vector whose [(j − 1)n + i]th and [(i − 1)n + j ]th elements are 1 and whose remaining n2 − 1 (if i j ) or n2 − 2 (if i > j ) elements are 0. The matrix Gn is of full column rank; that is, rank(Gn ) n(n + 1)/2 .
(4.4)
To see this, observe that the columns of Gn are orthogonal (since every row of Gn contains only one nonzero element) and are nonnull. Or, alternatively, observe that every row of In(n+1)/2 is a row of Gn and hence that Gn contains n(n + 1)/2 linearly independent rows.
16.4 The Vech Operator
353
Now, for purposes of deriving a recursive formula for Gn , let B represent an arbitrary (n + 1) × (n + 1) matrix, and partition B as c b B a A (where A is n × n). Then there exists an (n + 1)2 × (n + 1)2 permutation matrix, to be denoted by the symbol Qn+1 , such that (for every choice of B)
c b Qn+1 vec B a . vec A Further, letting u represent the first column of In+1 and letting U represent the (n + 1) × n submatrix of In+1 obtained by striking out u, Qn+1 is expressible as (2) Qn+1 (Q(1) n+1 , Qn+1 ), where Q(1) n+1
diag(u, u, . . . , u) In+1 ⊗ u ,
Q(2) n+1
diag(U, U, . . . , U) In+1 ⊗ U .
Clearly,
c vech B a . vech A
Thus, if B is symmetric (in which case A is symmetric and b a), we have that c 1 0 0 b 0 In 0 a 0 In 0 vech B vec A 0 0 Gn or, equivalently, that 0 In In 0
0 0 vech B . 0 Gn
We conclude that if B is symmetric, then 1 0 0 In vec B Qn+1 0 In 0 0
0 0 vech B . 0 Gn
1 0 Qn+1 vec B 0 0
354
16. Kronecker Products and the Vec and Vech Operators
This conclusion gives rise to the recursive formula 1 0 0 0 In 0 Gn+1 Qn+1 0 In 0 . 0 0 Gn
(4.5)
Since the duplication matrix Gn is of full column rank, it has a left inverse. In fact, except in the special case where n 1, Gn has an infinite number of left inverses. (G1 is nonsingular and subsequently has a unique left inverse.) In what follows, the symbol Hn is used to represent an arbitrary left inverse of Gn . Thus, by definition, Hn is an n(n + 1)/2 × n2 matrix such that Hn Gn I . One choice for Hn is
Hn (Gn Gn )−1 Gn .
(Since Gn is of full column rank, Gn Gn is nonsingular.) The premultiplication of the vech of an n × n symmetric matrix A by the duplication matrix Gn transforms vech A to vec A. Upon premultiplying both sides of equality (4.3) by Hn , we find that vech A Hn vec A
(4.6)
for every n × n symmetric matrix A. Thus, the premultiplication of the vec of an n × n symmetric matrix A by the left inverse Hn transforms vec A to vech A. Are there matrices other than left inverses (of Gn ) that have this property? That is, does there exist an n(n + 1)/2 × n2 matrix L such that vech A L vec A
(4.7)
for every n × n symmetric matrix A that does not satisfy the condition LGn I? The answer is no, as is evident upon observing that, together with equality (4.3), equality (4.7) implies that vech A LGn vech A for every n × n symmetric matrix A, or, equivalently, that a LGn a for every [n(n + 1)/2]-dimensional column vector a, and hence that LGn I . Thus, as an alternative to characterizing the matrix Hn as an arbitrary left inverse of Gn , it could be characterized as any n(n + 1)/2 × n2 matrix L such that equality (4.7) holds for every n × n symmetric matrix A. In fact, as noted by Henderson and Searle (1979), it is the latter characterization that provides the motivation for denoting this matrix by a capital h — h added to vec gives vech.
16.4 The Vech Operator
355
We find that
H1 (1),
1 0 0 H3 0 0 0
0 c1 0 0 0 0
0 0 c2 0 0 0
1 H2 0 0
0 1 − c1 0 0 0 0
0 0 0 1 0 0
0 0 0 0 c3 0
0 c 0
0 1−c 0
0 0 1 − c2 0 0 0
0 0 , 1
0 0 0 0 1 − c3 0
(4.8a) 0 0 0 , 0 0 1
(4.8b)
where c, c1 , c2 , and c3 are arbitrary scalars. More generally (for an arbitrary positive integer n), the matrix Hn can be described in terms of its rows. The [(i − 1)(n − i/2) + i]th row of Hn is the [(i − 1)n + i]th row of In2 , and (for i > j ) the [(j − 1)(n − j/2) + i]th row of Hn is any n2 -dimensional row vector whose [(j − 1)n + i]th and [(i − 1)n + j ]th elements sum to 1 and whose remaining n2 − 2 elements are 0. Note that Hn is of full row rank, that is, rank(Hn ) n(n + 1)/2
(4.9)
(as is evident from Lemma 8.1.1 upon observing that Gn is a right inverse of Hn ). Note also that vec A Gn Hn vec A (4.10) for every n × n symmetric matrix A [as is evident upon substituting expression (4.6) in the right side of equality (4.3)]. Consider now the matrix (Gn Gn )−1 Gn (which is one choice for Hn ). The n(n + 1)/2 × n(n + 1)/2 matrix Gn Gn is diagonal (since the columns of Gn are orthogonal). Further, the [(i − 1)(n − i/2) + i]th diagonal element of Gn Gn equals 1, and (for i > j ) the [(j − 1)(n − j/2) + i]th diagonal element of Gn Gn equals 2. Consequently, the [(i − 1)(n − i/2) + i]th row of (Gn Gn )−1 Gn is the [(i − 1)n + i]th row of In2 , and (for i > j ) the [(j − 1)(n − j/2) + i]th row of (Gn Gn )−1 Gn is an n2 -dimensional row vector whose [(j − 1)n + i]th and [(i − 1)n + j ]th elements equal 1/2 and whose remaining n2 − 2 elements equal 0. For example, G1 G1 = (1), G2 G2 = diag(1, 2, 1), and G3 G3 diag(1, 2, 2, 1, 2, 1); and (G1 G1 )−1 G1 , (G2 G2 )−1 G2 , and (G3 G3 )−1 G3 are the special cases of H1 , H2 , and H3 , respectively, obtained by setting c c1 c2 c3 1/2 in result (4.8). Recursive formulas for Gn Gn and for Hn can be obtained from formula (4.5). Recalling that Qn+1 is orthogonal, we find that
Gn+1 Gn+1
1 0 0 2In 0 0
0 0 Gn Gn
(4.11)
356
16. Kronecker Products and the Vec and Vech Operators
and that, for Hn+1 (Gn+1 Gn+1 )−1 Gn+1 and Hn (Gn Gn )−1 Gn , 1 0 0 0 Hn+1 0 (1/2)In (1/2)In 0 Qn+1 . 0 0 0 Hn
(4.12)
Note that, for Hn (Gn Gn )−1 Gn , Gn Hn Gn (Gn Gn )−1 Gn PGn .
(4.13)
c. Some relationships involving the duplication and vec-permutation matrices For every n × n symmetric matrix A, Gn vech A vec A vec(A ) Knn vec A Knn Gn vech A . Thus, Gn a Knn Gn a for every [n(n+1)/2]-dimensional column vector a, leading to the conclusion that (4.14) Knn Gn Gn . Further, since Knn Knn , (Gn Gn )−1 Gn Knn (Gn Gn )−1 (Knn Gn ) (Gn Gn )−1 Gn , so that, for Hn (Gn Gn )−1 Gn , Hn Knn Hn .
(4.15)
Note that result (4.14) implies that (1/2)(In2 + Knn )Gn Gn .
(4.16)
Similarly, result (4.15) implies that, for Hn (Gn Gn )−1 Gn , Hn [(1/2)(In2 + Knn )] Hn .
(4.17)
Let us now consider (for future reference) some of the properties of the matrix (1/2)(In2 + Knn ), which enters in results (4.16) and (4.17). Since K2nn I, we have that (1/2)(In2 + Knn )Knn (1/2)(In2 + Knn ) Knn [(1/2)(In2 + Knn )] .
(4.18)
Further, recalling that Knn is symmetric [and using result (4.18)], we find that [(1/2)(In2 + Knn )] (1/2)(In2 + Knn ) [(1/2)(In2 + Knn )]2 ,
(4.19)
that is, (1/2)(In2 + Knn ) is symmetric and idempotent. And, in light of result (3.8), we have that tr[(1/2)(In2 + Knn )] n(n + 1)/2 (4.20)
16.4 The Vech Operator
357
or, equivalently [since (1/2)(In2 + Knn ) is idempotent], that rank[(1/2)(In2 + Knn )] n(n + 1)/2 .
(4.21)
Now, observe [in light of results (4.19), (4.16), and (4.17)] that, for Hn (Gn Gn )−1 Gn , [(1/2)(In2 + Knn ) − Gn Hn ]2 [(1/2)(In2 + Knn )]2 − (1/2)(In2 + Knn )Gn Hn
− Gn Hn [(1/2)(In2 + Knn )] + Gn Hn Gn Hn (1/2)(I + Knn ) − Gn Hn − Gn Hn + Gn Hn
(1/2)(In2 + Knn ) − Gn Hn .
n2
Moreover, as a consequence of results (5.2.3) and (4.20), we have that tr[(1/2)(In2 + Knn ) − Gn Hn ] tr[(1/2)(In2 + Knn )] − tr(Gn Hn ) tr[(1/2)(In2 + Knn )] − tr(Hn Gn ) tr[(1/2)(In2 + Knn )] − tr(In(n+1)/2 )
n(n + 1)/2 − n(n + 1)/2 0 .
Thus, for Hn (Gn Gn )−1 Gn , the matrix (1/2)(In2 + Knn ) − Gn Hn is idempotent and its trace equals 0. We conclude (on the basis of Corollary 10.2.3) that, for Hn (Gn Gn )−1 Gn , (1/2)(In2 − Knn ) − Gn Hn 0 or, equivalently, that [for Hn (Gn Gn )−1 Gn ] Gn Hn (1/2)(In2 + Knn ) .
(4.22)
d. Vech of a product of matrices Let A represent an n × n matrix and X an n × n symmetric matrix. Observe (in light of Theorem 16.2.1) that vec(AXA ) (A ⊗ A) vec X (A ⊗ A)Gn vech X .
(4.23)
Observe also that (since AXA is symmetric) vech(AXA ) Hn vec(AXA ) .
(4.24)
Together, results (4.23) and (4.24) imply that vech(AXA ) Hn (A ⊗ A)Gn vech X.
(4.25)
Result (4.25) can be regarded as the vech counterpart of formula (2.10) for the vec of a product of matrices. According to this result, the premultiplication of
358
16. Kronecker Products and the Vec and Vech Operators
the vech of X by the n(n + 1)/2 × n(n + 1)/2 matrix Hn (A ⊗ A)Gn transforms vech X into vech(AXA ). Let us now consider various properties of the matrix Hn (A ⊗ A)Gn . Observe [in light of results (4.23) and (4.10)] that (for any n × n symmetric matrix X) (A ⊗ A)Gn vech X vec(AXA ) Gn Hn vec(AXA ) Gn Hn (A ⊗ A)Gn vech X . Thus, (A ⊗ A)Gn x Gn Hn (A ⊗ A)Gn x for every [n(n + 1)/2]-dimensional column vector x, leading to the conclusion that Gn Hn (A ⊗ A)Gn (A ⊗ A)Gn .
(4.26)
And, for Hn (Gn Gn )−1 Gn , Gn Hn (A ⊗ A) (A ⊗ A)Gn Hn ,
(4.27)
as is evident from result (4.22) upon observing [in light of result (3.9)] that (1/2)(In2 + Knn )(A ⊗ A) (1/2)[(A ⊗ A) + Knn (A ⊗ A)] (1/2)[(A ⊗ A) + (A ⊗ A)Knn ] (A ⊗ A)[(1/2)(In2 + Knn )] . Further, premultiplying both sides of equality (4.27) by Hn (and recalling that Hn Gn I), we find that [for Hn (Gn Gn )−1 Gn ] Hn (A ⊗ A)Gn Hn Hn (A ⊗ A) ,
(4.28)
analogous to result (4.26). Several properties of the matrix Hn (A⊗A)Gn are given in the following theorem. Theorem 16.4.1. For any n × n matrix A, (1) Hn (A ⊗ A)Gn is invariant to the choice of Hn ; (2) Hn (A− ⊗ A− )Gn is a generalized inverse of Hn (A ⊗ A)Gn ; (3) tr[Hn (A ⊗ A)Gn ] (1/2)[tr(A)]2 + (1/2) tr(A2 ); (4) rank[Hn (A ⊗ A)Gn ] (1/2)[rank(A)]2 + (1/2)rank(A); (5) Hn (A ⊗ A)Gn is nonsingular if and only if A is nonsingular. (2) Proof. (1) Let H(1) n and Hn represent any two choices for Hn , that is, any two left inverses of Gn . Then, using result (4.26), we find that (2) (1) (1) H(2) n (A ⊗ A)Gn Hn Gn Hn (A ⊗ A)Gn Hn (A ⊗ A)Gn .
16.4 The Vech Operator
359
(2) Using result (4.26) and observing (in light of the discussion in Section 16.1) that A− ⊗ A− is a generalized inverse of A ⊗ A, we find that Hn (A ⊗ A)Gn Hn (A− ⊗ A− )Gn Hn (A ⊗ A)Gn Hn (A ⊗ A)(A− ⊗ A− )Gn Hn (A ⊗ A)Gn Hn (A ⊗ A)(A− ⊗ A− )(A ⊗ A)Gn Hn (A ⊗ A)Gn . (3) Set Hn (Gn Gn )−1 Gn — in light of Part (1), it suffices to verify Part (3) for a single choice of Hn . Then, using results (5.2.3), (4.22), (1.25), and (3.15), we find that tr[Hn (A ⊗ A)Gn ]
tr[(A ⊗ A)Gn Hn ] tr{(A ⊗ A)[(1/2)(In2 + Knn )]}
(1/2)tr(A ⊗ A) + (1/2)tr[(A ⊗ A)Knn ]
(1/2)[tr(A)]2 + (1/2)tr(A2 ) .
(4) Since [according to Part (2)] Hn (A− ⊗ A− )Gn is a generalized inverse of Hn (A ⊗ A)Gn , it follows from result (10.2.1) that rank[Hn (A ⊗ A)Gn ] tr[Hn (A ⊗ A)Gn Hn (A− ⊗ A− )Gn ] . Further, using result (4.26), Part (3), and result (10.2.1), we find that tr[Hn (A ⊗ A)Gn Hn (A− ⊗ A− )Gn ] tr[Hn (A ⊗ A)(A− ⊗ A− )Gn ] tr{Hn [(AA− ) ⊗ (AA− )]Gn } (1/2)[tr(AA− )]2 + (1/2)tr(AA− AA− ) (1/2)[tr(AA− )]2 + (1/2)tr(AA− ) (1/2)[rank(A)]2 + (1/2)rank(A) . (5) Since Hn (A ⊗ A)Gn is a square matrix of order n(n + 1)/2, Part (5) is an immediate consequence of Part (4). Q.E.D. For purposes of deriving a recursive formula for Hn (A ⊗ A)Gn , let B represent an arbitrary (n + 1) × (n + 1) matrix, partition B as c b B a A (2) (where A is n × n), and define Qn+1 (Q(1) n+1 , Qn+1 ), u, and U as in Subsection b. Then, (1) (1) (2) Qn+1 (B ⊗ B)Q(1) n+1 Qn+1 (B ⊗ B)Qn+1 . Qn+1 (B ⊗ B)Qn+1 (2) (1) (2) (2) Qn+1 (B ⊗ B)Qn+1 Qn+1 (B ⊗ B)Qn+1
360
16. Kronecker Products and the Vec and Vech Operators
Further, since u Bu u BU c b In+1 BIn+1 (u, U) B(u, U) , a A U Bu U BU we find that
(1) Q(1) n+1 (B ⊗ B)Qn+1
(2) Q(1) n+1 (B ⊗ B)Qn+1 Q(2) n+1 (B
⊗
B)Q(1) n+1
(2) Q(2) n+1 (B ⊗ B)Qn+1
(In+1 ⊗ u )(B ⊗ B)(In+1 ⊗ u) B ⊗ (u Bu) B ⊗ c cB ,
(In+1 ⊗ u )(B ⊗ B)(In+1 ⊗ U)
B ⊗ (u BU) B ⊗ b , (In+1 ⊗ U )(B ⊗ B)(In+1 ⊗ u) B ⊗ (U Bu) B ⊗ a , (In+1 ⊗ U )(B ⊗ B)(In+1 ⊗ U) B ⊗ (U BU) B ⊗ A .
Thus, in light of results (1.27), (1.4), (3.14), and (3.12), we have that c b c b b ⊗ b c2 ca cA ab (b ⊗ A)Knn . Qn+1 (B ⊗ B)Qn+1 ca ab cA b ⊗ A a ⊗ a Knn (a ⊗ A) a ⊗ A A⊗A And, in light of results (4.12), (4.5), (4.15), and (4.16) [as well as Part (1) of Theorem 16.4.1], it follows that, for Hn (Gn Gn )−1 Gn , Hn+1 (B ⊗ B)Gn+1 1 0 0 1 0 0 0 0 In 0 0 (1/2)In (1/2)In 0 Qn+1 (B ⊗ B)Qn+1 0 In 0 0 0 0 Hn 0 0 Gn 2 cb cb b ⊗ b c (b ⊗ A) ca (1/2)(cA + ab ) (1/2)(cA + ab ) ×[(1/2)(In2 + Knn )] Hn (a ⊗ a) Hn (a ⊗ A) Hn (a ⊗ A) Hn (A ⊗ A) 1 0 0 0 In 0 × 0 I n 0 0 0 Gn 2 c 2cb (b ⊗ b )Gn ca cA + ab (b ⊗ A)Gn . (4.29) Hn (a ⊗ a) 2Hn (a ⊗ A) Hn (A ⊗ A)Gn Result (4.29) provides what is in effect a recursive formula for Hn (A ⊗ A)Gn .
16.4 The Vech Operator
Let
361
c2 2cb b ⊗ b S Gn Hn (A− ⊗ A− )Gn Hn [a ⊗ a, 2(a ⊗ A)] − ca cA + ab b ⊗A [where Hn (Gn Gn )−1 Gn ]. And observe [in light of Part (2) of Theorem 16.4.1] that S is a Schur complement of the n(n+1)/2 × n(n+1)/2 submatrix Hn (A⊗A)Gn in the lower right corner of partitioned matrix (4.29). Further, using results (4.26), (4.22), and (3.12), we find that Gn Hn (A− ⊗ A− )Gn Hn [a ⊗ a, 2(a ⊗ A)] (A− ⊗ A− )Gn Hn [a ⊗ a, 2(a ⊗ A)] (A− ⊗ A− )[(1/2))(In2 + Knn )][a ⊗ a, 2(a ⊗ A)] (A− ⊗ A− )[a ⊗ a, (a ⊗ A) + (A ⊗ a)] . Thus,
2 cb − (b A− a) ⊗ (b A− A) c − (b A a) ⊗ (b A a) − (b A− A) ⊗ (b A− a) cA + ab − (b A− a) ⊗ A − − ca − (b A a) ⊗ (AA a) − − − (b A A) ⊗ (AA a) − 2 2 c − (b A a) 2cb − 2(b A− a)b A− A , ca − (b A− a)AA− a (c − b A− a)A + ab − AA− ab A− A
2
S
−
−
and, in the special case where A is nonsingular, c + b A−1 a 2b S (c − b A−1 a) . a A
(4.30)
Consider now the determinant of the matrix Hn+1 (B ⊗ B)Gn+1 . By applying result (13.3.13) to partitioned matrix (4.29), we find that if A is nonsingular [in which case it follows from Part (5) of Theorem 16.4.1 that Hn (A ⊗ A)Gn is also nonsingular], then |Hn+1 (B ⊗ B)Gn+1 | |Hn (A ⊗ A)Gn ||S| .
(4.31)
Further, using result (4.30), Corollary 13.2.4, and result (13.3.13), we find that if A is nonsingular, then c + b A−1 a 2b |S| (c − b A−1 a)n+1 a A
(c − b A−1 a)n+1 |A|(c + b A−1 a − 2b A−1 a)
(c − b A−1 a)n+2 |A| .
(4.32)
Together, results (4.31) and (4.32) imply that (in the special case where A is nonsingular) |Hn+1 (B ⊗ B)Gn+1 | (c − b A−1 a)n+2 |A||Hn (A ⊗ A)Gn | .
(4.33)
362
16. Kronecker Products and the Vec and Vech Operators
Result (4.33), which provides what is in effect a recursive formula for the determinant of Hn (A ⊗ A)Gn , can be used to establish the following theorem. Theorem 16.4.2. For any n × n matrix A, |Hn (A ⊗ A)Gn | |A|n+1 .
(4.34)
Proof. The proof is by mathematical induction. Clearly, equality (4.34) holds for every 1 × 1 matrix A. Suppose that equality (4.34) holds for every n × n matrix A. Let B represent an arbitrary (n + 1) × (n + 1) matrix, and partition B as c b B a A (where A is n × n). To complete the induction argument, it suffices to show that |Hn+1 (B ⊗ B)Gn+1 | |B|n+2 .
(4.35)
In establishing the validity of this equality, it is convenient to consider successively three different cases. Case (1): B singular. In this case, both the left and right sides of equality (4.35) equal 0 — refer to Part (5) of Theorem 16.4.1. Case (2): Both A and B nonsingular. Since (by supposition) |Hn (A ⊗ A)Gn | |A|n+1 , it follows from result (4.33) [along with result (13.3.13)] that |Hn+1 (B ⊗ B)Gn+1 | (c − b A−1 a)n+2 |A|n+2 |B|n+2 . Case (3): B nonsingular, but A singular. Denote the first . . . , nth columns of A by a1 , . . . , an , respectively. Since B is nonsingular, the rows of B are linearly independent, implying that rank(a, A) n and also (since A is singular) that rank(A) n − 1. Consequently, A contains n − 1 linearly independent columns, say a1 , . . . , ai−1 , ai+1 , . . . , an , and a is not expressible as a linear combination of the columns of A. Let e represent the ith column of In . Then, the matrix A + ae , whose columns are a1 , . . . , ai−1 , ai + a, ai+1 , . . . , an , respectively, is nonsingular (since otherwise there would exist scalars c1 , . . . , ci−1 , ci+1 , . . . , cn such that ai + a j i cj aj , which would imply that a is expressible as a linear combination of the columns of A). Now, let 1 e T . 0 In Then,
BT
c a
b + ce A + ae
.
Further, |T| 1. Since In and A + ae are nonsingular, we have [from the same reasoning as in Case (2)] that |Hn+1 (T ⊗ T)Gn+1 | |T|n+2 1 , (4.36)
16.5 Reformulation of a Linear System
|Hn+1 [(BT) ⊗ (BT)]Gn+1 | |BT|n+2 |B|n+2 |T|n+2 |B|n+2 .
363
(4.37)
And, using result (4.26), we find that |Hn+1 [(BT) ⊗ (BT)]Gn+1 | |Hn+1 (B ⊗ B)(T ⊗ T)Gn+1 | |Hn+1 (B ⊗ B)Gn+1 Hn+1 (T ⊗ T)Gn+1 | |Hn+1 (B ⊗ B)Gn+1 ||Hn+1 (T ⊗ T)Gn+1 | , which [in combination with results (4.36) and (4.37)] implies that |Hn+1 (B ⊗ B)Gn+1 | |B|n+2 . Q.E.D.
16.5
Reformulation of a Linear System
Consider a linear system AX B ,
(5.1)
with an m × n coefficient matrix A, m × p right side B, and n × p matrix of unknowns X. This linear system can be reformulated as a linear system whose right side is an mp × 1 vector and whose unknowns are arranged in an np × 1 vector. This process is facilitated by the use of the vec operator (and the use of Kronecker products). Specifically, by applying the vec operator to each side of equation (5.1) and recalling result (2.9), we obtain the equivalent linear system (Ip ⊗ A)x b ,
(5.2)
where b vec B and where x vec X is an np × 1 vector of unknowns — the equivalence is in the sense that X is a solution to linear system (5.1) if and only if vec X is a solution to linear system (5.2). Note that linear system (5.2) can be rewritten as diag(A, A, . . . , A)x b . Let us now generalize from linear system (5.1) to the system AXC B ,
(5.3)
where A is an m × n matrix, C a p × q matrix, B an m × q matrix, and X an n × p matrix of unknowns. Upon applying the vec operator to each side of equation (5.3) and recalling result (2.10), we obtain the equivalent (linear) system (C ⊗ A)x b , where b vec B and where x vec X is an np × 1 vector of unknowns.
364
16. Kronecker Products and the Vec and Vech Operators
A further generalization is possible. Consider the system r
Ai XCi +
i1
s
Lj X Tj B ,
(5.4)
j 1
where A1 , . . . , Ar are m × n matrices, C1 , . . . , Cr are p × q matrices, L1 , . . . , Ls are m × p matrices, T1 , . . . , Ts are n × q matrices, B is an m × q matrix, and X is an n × p matrix of unknowns. Using results (2.6) and (2.10), we find that vec Ai XCi + L j X T j i
j
vec(Ai XCi ) +
i
i
j
(Ci
⊗ Ai ) vec X +
(
i
(Ci ⊗ Ai ) +
vec(Lj X Tj ) j
j
(Tj ⊗ Lj ) vec X
)
(Tj ⊗ Lj ) Knp
Consequently, system (5.4) is equivalent to the (linear) system ) ( (Ci ⊗ Ai ) + (Tj ⊗ Lj ) Knp x b , i
vec X . (5.5)
(5.6)
j
where b vec B, and where x vec X is an np × 1 vector of unknowns. As a special case (that where “s=0”), we have that the system r
Ai XCi B
(5.7)
i1
is equivalent to the (linear) system (Ci ⊗ Ai ) x b .
(5.8)
i
In our consideration of system (5.4) [and systems (5.1), (5.3), and (5.7)], it has been implicitly assumed that there are no restrictions on X (other than those imposed by the system) — if there were restrictions on X, system (5.4) would be equivalent to system (5.6) only if equivalent restrictions were imposed on x. Suppose now that X is restricted to be symmetric [in which case p n and system (5.4) is no more general than system (5.7)]. Then, since vec X Gn vech X, system (5.7) is equivalent to the (linear) system (Ci ⊗ Ai ) Gn x b , (5.9) i
16.6 Some Results on Jacobian Matrices
365
where now x vech X is an n(n + 1)/2 × 1 (unrestricted) vector of unknowns [and where b vec B] — the equivalence is in the sense that a symmetric matrix X is a solution to system (5.7) if and only if vech X is a solution to system (5.9).
16.6
Some Results on Jacobian Matrices
In this section, attention is given to some Jacobian matrices of a kind encountered in multivariate statistical analysis. Let F represent a p × q matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Then, vec F is a pq-dimensional column vector obtained by rearranging the elements of F (in a particular way). By definition, the Jacobian matrix of vec F is the pq × m matrix ∂vec(F)/∂x , whose j th column is ∂vec(F)/∂xj . Note that ∂vec F ∂F (6.1) vec ∂xj ∂xj (as is evident from the very definition of the vec operator). Thus, the Jacobian matrix of vec F is the pq × m matrix whose j th column is vec(∂F/∂xj ). Consider now the special case where q p. If F is symmetric (for all x in S), then p(p − 1)/2 of the elements of vec F are redundant. In contrast, vech F contains no redundancies (that are attributable to symmetry). By definition, the Jacobian matrix of vech F is the p(p + 1)/2 × m matrix ∂vech(F)/∂x , whose j th column is ∂vech(F)/∂xj . Note that [analogous to result (6.1)] ∂vech F ∂F . vech ∂xj ∂xj
(6.2)
Thus, the Jacobian matrix of vech F is the p(p + 1)/2 × m matrix whose j th column is vech(∂F/∂xj ). If F is symmetric, then clearly [in light of result (4.6)] ∂vec F ∂vech F ∂vech F ∂vec F Gp , Hp ∂xj ∂xj ∂xj ∂xj
(6.3)
(j 1, . . . , m), and consequently ∂vec F ∂vech F ∂vech F ∂vec F Gp , Hp . ∂x ∂x ∂x ∂x
(6.4)
Next, consider the Jacobian matrix of vec(AFB), where F is a p × q matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables and where A and B are r × p and q × s matrices of constants. Making use of formula (2.10), we find that ∂vec F ∂vec(AFB) (B ⊗ A) (6.5) ∂xj ∂xj
366
16. Kronecker Products and the Vec and Vech Operators
(j 1, . . . , m) and hence that ∂vec F ∂vec(AFB) (B ⊗ A) . ∂x ∂x
(6.6)
Formula (6.6) relates the Jacobian matrix of vec(AFB) to that of vec F. When s q, r p, and m pq, it follows from results (6.6) and (3.18) that ∂vec(AFB) |A|q |B|p ∂vec F , (6.7) ∂x ∂x which relates the Jacobian of vec(AFB) to that of vec F. In the special case where x vec X and F(x) X for some p × q matrix X of variables, result (6.6) simplifies [in light of result (15.3.12)] to ∂vec(AXB) B ⊗ A , ∂(vec X) and (when s q and r p) result (6.7) simplifies to ∂vec(AXB) q p ∂(vec X) |A| |B| .
(6.8)
(6.9)
Suppose now that F is symmetric and that A is square (in which case both F and A are p × p). Then, ∂vech F ∂vech(AFA ) Hp (A ⊗ A)Gp , ∂x ∂x
(6.10)
as is evident from result (6.6) upon setting B A and observing [in light of result (4.6)] that ∂vec(AFA ) ∂vech(AFA ) H , p ∂x ∂x
∂vech F ∂vec F Gp . ∂x ∂x
When m p(p + 1)/2, it follows from results (6.10) and (4.34) that ∂vech(AFA ) |A|p+1 ∂vech F . ∂x ∂x
(6.11)
In the special case where x vech X and F(x) X for some p × p symmetric matrix X, results (6.10) and (6.11) simplify to ∂vech(AXA ) ∂(vech X) ∂vech(AXA ) ∂(vech X)
Hp (A ⊗ A)Gp ,
|A|p+1 .
Finally, consider the Jacobian matrix of vec(F−1 ), where F is a p × p matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables [with
16.6 Some Results on Jacobian Matrices
367
F(x) nonsingular for every x in S]. Making use of results (15.8.15) and (2.10) [as well as result (6.1)], we find that ∂vec(F−1 ) ∂F−1 ∂F −1 vec vec −F−1 F ∂xj ∂xj ∂xj ∂F −[(F−1 ) ⊗ F−1 ]vec ∂xj ∂vec F −[(F−1 ) ⊗ F−1 ] (6.12) ∂xj (j 1, . . . , m), which implies that ∂vec(F−1 ) ∂vec F −[(F−1 ) ⊗ F−1 ] , ∂x ∂x
(6.13)
thereby relating the Jacobian matrix of vec(F−1 ) to that of vec F. Moreover, when m p2 , it follows from result (6.13), together with Corollary 13.2.5, result (3.18), 2 and Theorem 13.3.7 [and the fact that (−1)p (−1)p ], that ∂vec(F−1 ) p −2p ∂vec F (−1) , (6.14) |F| ∂x ∂x which relates the Jacobian of vec(F−1 ) to that of vec F. In the special case where x vec X and F(x) X for some p × p nonsingular matrix X of variables, results (6.13) and (6.14) simplify to ∂vec(X−1 ) −(X−1 ) ⊗ X−1 , ∂(vec X) ∂vec(X−1 ) (−1)p |X|−2p . ∂(vec X)
(6.15)
(6.16)
Suppose now that the (p × p) matrix F is symmetric. Then ∂vech(F−1 ) ∂vech F −Hp (F−1 ⊗ F−1 )Gp , ∂x ∂x
(6.17)
as is evident from result (6.13) upon observing [in light of result (4.6)] that ∂vech(F−1 ) ∂vec(F−1 ) H , p ∂x ∂x
∂vech F ∂vec F Gp . ∂x ∂x
When m p(p+1)/2, it follows from Corollary 13.2.5, result (4.34), and Theorem 13.3.7 that ∂vech(F−1 ) p(p+1)/2 −(p+1) ∂vech F . (6.18) |F| (−1) ∂x ∂x
368
16. Kronecker Products and the Vec and Vech Operators
In the special case where x vech X and F(x) X for some p × p nonsingular symmetric matrix X, results (6.17) and (6.18) simplify to ∂vech(X−1 ) −Hp (X−1 ⊗ X−1 )Gp , ∂(vech X) ∂vech(X−1 ) (−1)p(p+1)/2 |X|−(p+1) . ∂(vech X)
(6.19)
(6.20)
Exercises Section 16.1 1. (a) Verify result (1.13); that is, verify that, for any m × n matrices A and B and any p × q matrices C and D, (A + B) ⊗ (C + D) (A ⊗ C) + (A ⊗ D) + (B ⊗ C) + (B ⊗ D) . (b) Verify result (1.14); that is, verify that, for any m × n matrices A1 , A2 , . . . , Ar and p × q matrices B1 , B2 , . . . , Bs , s r s r Ai ⊗ Bj (Ai ⊗ Bj ) . i1
j 1
i1 j 1
2. Show that, for any m × n matrix A and p × q matrix B, A ⊗ B (A ⊗ Ip )diag(B, B, . . . , B) . 3. Show that, for any m×1 vector a and any p ×1 vector b, (1) a⊗b (a⊗Ip )b and (2) a ⊗ b b (a ⊗ Ip ). 4. Let A and B represent square matrices. (a) Show that if A and B are orthogonal, then A⊗B is orthogonal. (b) Show that if A and B are idempotent, then A⊗B is idempotent. 5. Letting m, n, p, and q represent arbitrary positive integers, show (a) that, for any p × q matrix B (having p > 1 or q > 1), there exists an m × n matrix A such that A ⊗ B has generalized inverses that are not expressible in the form A− ⊗ B− ; and (b) that, for any m × n matrix A (having m > 1 or n > 1), there exists a p × q matrix B such that A ⊗ B has generalized inverses that are not expressible in the form A− ⊗ B− .
Exercises
369
6. Let X A ⊗ B, where A is an m × n matrix and B a p × q matrix. Show that PX PA ⊗ PB . 7. Show that the Kronecker product A ⊗ B of an m × m matrix A and an n × n matrix B is (a) symmetric nonnegative definite if A and B are both symmetric nonnegative definite or both symmetric nonpositive definite, and (b) symmetric positive definite if A and B are both symmetric positive definite or both symmetric negative definite. 8. Let A and B represent m×m symmetric matrices and C and D n×n symmetric matrices. Using the result of Exercise 7 (or otherwise), show that if A−B, C− D, B, and C are nonnegative definite, then A ⊗ C − B ⊗ D is symmetric nonnegative definite. 9. Let A represent an m × n matrix and B a p × q matrix. Show that, in the case of the usual norm, A ⊗ B AB . 10. Verify result (1.27). 11. Show that (a) if T and U are both upper triangular matrices, then T ⊗ U is an upper triangular matrix, and (b) if T and L are both lower triangular matrices, then T ⊗ L is a lower triangular matrix. 12. Let A represent an m × m matrix and B an n × n matrix. Suppose that A and B have LDU decompositions, say A L1 D1 U1 and B L2 D2 U2 . Using the results of Exercise 11, show that A ⊗ B has the LDU decomposition A ⊗ B LDU, where L L1 ⊗ L2 , D D1 ⊗ D2 , and U U1 ⊗ U2 . Section 16.2 13. Let A1 , A2 , . . . , Ak represent k matrices (of the same size). Show that A1 , A2 , . . . , Ak are linearly independent if and only if vec(A1 ), vec(A2 ), . . . , vec(Ak ) are linearly independent. 14. Let m represent a positive integer, let ei represent the ith column of Im (i 1, . . . , m), and (for i, j 1, . . . , m) let Uij ei ej (in which case Uij is an m × m matrix whose ij th element is 1 and whose remaining m2 − 1 elements are 0). (a) Show that vec (Im )
m
ei ⊗ e i .
i1
(b) Show that (for i, j, r, s 1, . . . , m) vec(Uri )[vec(Usj )] Uij ⊗ Urs .
370
16. Kronecker Products and the Vec and Vech Operators
(c) Show that
m m
Uij ⊗ Uij vec(Im )[vec(Im )] .
i1 j 1
15. Let A represent an n × n matrix. (a) Show that if A is orthogonal, then (vec A) vec A n. (b) Show that if A is idempotent, then [vec(A )] vec A rank(A). 16. Show that for any m × n matrix A, p × n matrix X, p × p matrix B, and n × m matrix C, tr(AX BXC) (vec X) [(A C ) ⊗ B] vec X (vec X) [(CA) ⊗ B ] vec X . 17. (a) Let V represent a linear space of m × n matrices, and let g represent a function that assigns the value A ∗ B to each pair of matrices A and B in V. Take U to be the linear space of mn × 1 vectors defined by U {x ∈ Rmn×1 : x vec(A) for some A ∈ V} , and let x • y represent the value assigned to each pair of vectors x and y in U by an arbitrary inner product f . Show that g is an inner product (for V) if and only if there exists an f such that (for all A and B in V) A ∗ B vec(A) • vec(B) . (b) Let g represent a function that assigns the value A ∗ B to an arbitrary pair of matrices A and B in Rm×n . Show that g is an inner product (for Rm×n ) if and only if there exists an mn×mn partitioned symmetric positive definite matrix W11 W12 . . . W1n W21 W22 . . . W2n W . .. .. .. .. . . . Wn1 Wn2 . . . Wnn (where each submatrix is of dimensions m × m) such that (for all A and B in Rm×n ) ai Wij bj , A∗B i,j
where a1 , a2 , . . . , an and b1 , b2 , . . . , bn represent the first, second, . . . , nth columns of A and B, respectively. (c) Let g represent a function that assigns the value x ∗ y to an arbitrary pair of (row) vectors in R1×n . Show that g is an inner product (for R1×n ) if and
Exercises
371
only if there exists an n × n symmetric positive definite matrix W such that (for every pair of n-dimensional row vectors x and y ) x ∗ y x Wy .
Section 16.3 18. (a) Define (for m ≥ 2) P to be the mn × mn permutation matrix such that, for every m × n matrix A, vec A∗ P vec A , r where A∗ is the (m − 1) × n matrix whose rows are respectively the first, . . . , (m −1)th rows of A and r is the mth row of A [and hence where A∗ and A (A∗ , r)] . A r
(1) Show that Kmn
Km−1,n 0
0 P. In
(2) Show that |P| (−1)(m−1)n(n−1)/2 . (3) Show that |Kmn | (−1)(m−1)n(n−1)/2 |Km−1,n |. (b) Show that |Kmn | (−1)m(m−1)n(n−1)/4 . (c) Show that |Kmm | (−1)m(m−1)/2 . 19. Show that, for any m × n matrix A, p × 1 vector a, and q × 1 vector b, (1)
b ⊗ A ⊗ a Kmp [(ab ) ⊗ A];
(2)
a ⊗ A ⊗ b Kpm [A ⊗ (ab )].
20. Let m and n represent positive integers, and let ei represent the ith column of Im (i 1, . . . , m) and uj represent the j th column of In (j 1, . . . , n). Show that Kmn
n j 1
uj ⊗ Im ⊗ uj
m i1
ei ⊗ In ⊗ ei .
372
16. Kronecker Products and the Vec and Vech Operators
21. Let m, n, and p represent positive integers. Using the result of Exercise 20, show that (a)
Kmp,n Kp,mn Km,np ;
(b)
Kmp,n Knp,m Kmn,p I;
(c)
Kn,mp Knp,m Kmn,p ;
(d)
Kp,mn Km,np Km,np Kp,mn ;
(e)
Knp,m Kmn,p Kmn,p Knp,m ;
(f)
Km,np Kmp,n Kmp,n Km,np .
[Hint. Begin
by letting uj represent the j th column of In and showing that Kmp,n j (uj ⊗ Ip ) ⊗ (Im ⊗ uj ) and then making use of result (3.10).] 22. Let A represent an m × n matrix, and define B Kmn (A ⊗ A). Show (a) that B is symmetric, (b) that rank(B) [rank(A)]2 , (c) that B2 (AA ) ⊗ (A A), and (d) that tr(B) tr(A A). 23. Show that, for any m × n matrix A and any p × q matrix B, vec (A ⊗ B) (In ⊗ G) vec A (H ⊗ Ip ) vec B, where G (Kqm ⊗ Ip )(Im ⊗ vec B) and H (In ⊗ Kqm )[vec(A) ⊗ Iq ]. Section 16.4 24. Show that, for Hn (Gn Gn )−1 Gn , Gn Hn Hn Hn . 25. There exists a unique matrix Ln such that vech A Ln vec A for every n × n matrix A (symmetric or not). [The matrix Ln is one choice for the matrix Hn discussed in Section 16.4b. It is referred to by Magnus and Neudecker (1980) as the elimination matrix — the effect of premultiplying the vec of an n×n matrix A by Ln is to eliminate (from vec A) the “supradiagonal” elements of A.] (a) Write out the elements of L1 , L2 , and L3 . (b) For an arbitrary positive integer n, describe Ln in terms of its rows. 26. Let A represent an n × n matrix and b an n × 1 vector. (a) Show that (1/2)[(A ⊗ b ) + (b ⊗ A)]Gn (A ⊗ b )Gn .
Exercises
373
(b) Show that, for Hn (Gn Gn )−1 Gn , (1) (2) (3)
(1/2)Hn [(b ⊗ A) + (A ⊗ b)] Hn (b ⊗ A), (A ⊗ b )Gn Hn (1/2)[(A ⊗ b ) + (b ⊗ A)], Gn Hn (b ⊗ A) (1/2)[(b ⊗ A) + (A ⊗ b)].
27. Let A {aij } represent an n × n (possibly nonsymmetric) matrix. (a) Show that, for Hn (Gn Gn )−1 Gn , Hn vec A (1/2) vech(A + A ). (b) Show that Gn Gn vech A vech[2A − diag(a11 , a22 , . . . , ann )]. (c) Show that Gn vec A vech[A + A − diag(a11 , a22 , . . . , ann )]. 28. Let A represent an n × n matrix. Show that, for Hn (Gn Gn )−1 Gn , Gn Hn (A ⊗ A)Hn (A ⊗ A)Hn . 29. Show that if an n × n matrix A {aij } is upper triangular, lower triangular, or diagonal, then Hn (A ⊗ A)Gn is respectively upper triangular, lower triangular, or diagonal with diagonal elements aii ajj (i 1, . . . , n; j i, . . . , n). Section 16.5 30. Let A1 , . . . , Ak , and B represent m × n matrices, and let b vec B.
(a) Show that the matrix equation ki1 xi Ai B (in unknowns x1 , . . . , xk ) is equivalent to a linear system of the form Ax b, where x (x1 , . . . , xk ) is a vector of unknowns. (b) Show
k that if A1 , . . . , Ak , and B are symmetric, then the matrix equation i1 xi Ai B (in unknowns x1 , . . . , xk ) is equivalent to a linear system of the form A∗ x b∗ , where b∗ vech B and x (x1 , . . . , xk ) is a vector of unknowns. Section 16.6 31. Let F represent a p × p matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Show that, for k 2, 3, . . . , k ∂vec(Fk ) ∂vec F [(Fs−1 ) ⊗ Fk−s ] ∂x ∂x s1
(where F0 Ip ).
374
16. Kronecker Products and the Vec and Vech Operators
32. Let F {fis } and G represent p × q and r × s matrices of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. (a) Show that (for j 1, . . . , m) ∂F ∂G ∂(F ⊗ G) + F⊗ ⊗G . ∂xj ∂xj ∂xj (b) Show that (for j 1, . . . , m) ∂vec(F ⊗ G) ∂xj
∂vec G ∂vec F (Iq ⊗ Ksp ⊗ Ir ) (vec F) ⊗ + ⊗ (vec G) . ∂xj ∂xj
(c) Show that ∂vec(F ⊗ G) ∂x
∂vec G ∂vec F (Iq ⊗ Ksp ⊗ Ir ) (vec F) ⊗ + ⊗ (vec G) . ∂x ∂x
(d) Show that, in the special case where x [(vec X) , (vec Y) ], F(x) X, and G(x) Y for some p × q and r × s matrices X and Y of variables, the formula in Part (c) simplifies to ∂vec(X ⊗ Y) (Iq ⊗ Ksp ⊗ Ir )(Ipq ⊗ (vec Y), (vec X) ⊗ Irs ) . ∂x
Bibliographic and Supplementary Notes §1. For some historical notes on Kronecker products, refer to Henderson and Searle (1981b, sec. 2.2). Warning: There exist presentations (e.g., Graybill 1983) where the left Kronecker product of two matrices A and B, which is denoted herein by B⊗A, is referred to as the Kronecker (or direct) product of A and B and is denoted by A⊗B. §2. The idea of rearranging the elements of a matrix in the form of a vector dates back at least to Sylvester (1884). Refer to Henderson and Searle (1979, sec. 1; 1981b, sec. 2.1) for some historical notes on the development of this idea. In some presentations (e.g., Rogers 1980), the vec of a matrix A is called the pack of A. §3. Refer to Henderson and Searle (1981b) and to Magnus and Neudecker (1986) for some historical notes on vec-permutation matrices and their properties. Their papers include discussions of the alternative names that have been used in referring to vec-permutation matrices and of the various symbols that have been used to denote these matrices. §4. Henderson and Searle (1979) and Magnus and
Bibliographic and Supplementary Notes
375
Neudecker (1986) provide references to early work on the vech operator (and on related concepts) and review the properties of the vech operator. They indicate that the idea of including only the distinct elements of a symmetric matrix in its vector representation dates back at least to Aitken (1949). This idea can be extended from symmetric matrices to other matrices that contain “redundant” elements — refer, for example, to Henderson and Searle (1979). §6. The results of Section 6 depend to a very significant extent on the material on matrix differentiation presented in Chapter 15.
This page intentionally left blank
17 Intersections and Sums of Subspaces
The orthogonality of a pair of subspaces was defined and discussed in Chapter 12. There are pairs of subspaces that are not orthogonal but that have a weaker property called essential disjointness — orthogonal subspaces are essentially disjoint, but essentially disjoint subspaces are not necessarily orthogonal. Unlike orthogonality, essential disjointness does not depend on the choice of inner product. The essential disjointness of a pair of subspaces is defined and discussed in the present chapter. The concept of essential disjointness arises in a very natural and fundamental way in results (like those of Sections 17.2, 17.3, and 17.5) on the ranks, row and column spaces, and generalized inverses of partitioned matrices and of sums and products of matrices. It was found in Chapter 12 that a subspace U of a linear space V and its orthogonal complement U ⊥ (which is a subspace of V that is by definition orthogonal to U and for which dim U + dim U ⊥ dim V) have the property that every matrix Y in V can be uniquely expressed as the sum of a matrix in U (which is the projection of Y on U) and a matrix in U ⊥ (which is the projection of Y on U ⊥ ) — refer to Theorem 12.5.11. It is shown in Section 17.6 that this property extends to any subspaces U and W of V that are essentially disjoint and that have dim U + dim W dim V. That is, for any such subspaces U and W, every matrix in V can be uniquely expressed as the sum of a matrix in U and a matrix in W.
17.1
Definitions and Some Basic Properties
Let U and V represent subsets of the linear space Rm×n of all m × n matrices. The intersection of U and V is the subset (of Rm×n ) comprising all m × n matrices that
378
17. Intersections and Sums of Subspaces
are common to U and V (i.e., that belong to both U and V) and is denoted by the symbol U ∩ V. If U and V are subspaces (of Rm×n ), then their intersection U ∩ V is also a subspace. To see this, suppose that U and V are subspaces. Then, the m × n null matrix 0 belongs to both U and V and hence to U ∩ V, so that U ∩ V is nonempty. Further, for any matrix A in U ∩ V and any scalar k, A is in U and also in V, implying that kA is in both U and V and consequently in U ∩ V. And, for any matrices A and B in U ∩ V, both A and B are in U and both are also in V, implying that A + B is in U and also in V and hence that A + B is in U ∩ V. More generally, the intersection of k subsets U1 , . . . , Uk of Rm×n (where k ≥ 2) is the subset (of Rm×n ) comprising all m × n matrices that are common to U1 , . . . , Uk and is denoted by the symbol U1 ∩ · · · ∩ Uk (or alternatively by ∩ki1 Ui or simply ∩i Ui ). And, if U1 , . . . , Uk are subspaces (of Rm×n ), then U1 ∩ · · · ∩ Uk is also a subspace. Note that if (for subsets U, V, and W of Rm×n ) W ⊂ U and W ⊂ V, then W ⊂ U ∩ V. Note also that if U ⊂ W and V ⊂ W, then U ∩ V ⊂ W. The sum of two (nonempty) subsets U and V of Rm×n is defined to be the subset {U + V : U ∈ U, V ∈ V} comprising every (m × n) matrix that is expressible as the sum of a matrix in U and a matrix in V. It is denoted by the symbol U + V. Note that, except for special cases, U + V differs from the union U ∪ V of U and V, which by definition is the subset (of Rm×n ) comprising all m × n matrices that belong to U or V. The following lemma provides a useful characterization of the sum of two subspaces of Rm×n . Lemma 17.1.1. Let U and V represent subspaces of Rm×n . If V {0} (i.e., if there are no nonnull matrices in V), then U + V U, and similarly if U {0}, then U + V V. Further, if U is spanned by a (finite nonempty) set of (m × n) matrices U1 , . . . , Us and V is spanned by a set of matrices V1 , . . . , Vt , then U + V sp(U1 , . . . , Us , V1 , . . . , Vt ) . Proof. That U + V U if V {0} and that U + V V if U {0} is obvious. Suppose now that U is spanned by the set {U1 , . . . , Us } and V by the there exist set {V1 , . . . , Vt }. Then, for any matrix U in U and
any matrix V in V,
scalars c1 , . . . , cs and k1 , . . . , kt such that U si1 ci Ui and V tj 1 kj Vj and hence such that U+V
s i1
c i Ui +
t
k j Vj ,
j 1
implying that U + V ∈ sp(U1 , . . . , Us , V1 , . . . , Vt ). Thus, U + V ⊂ sp(U1 , . . . , Us , V1 , . . . , Vt ) .
(1.1)
Further, for any matrix A in sp(U 1 , . . . , Us , V
1 , . . . , Vt ), there exist scalars
c1 , . . . , cs , k1 , . . . , kt such that A si1 ci Ui + tj 1 kj Vj , implying that A
17.1 Definitions and Some Basic Properties
379
s U + V for some
t matrix U in U and some matrix V in V (namely, U i1 ci Ui and V j 1 kj Vj ). It follows that sp(U1 , . . . , Us , V1 , . . . , Vt ) ⊂ U + V, leading [in light of result (1.1)] to the conclusion that U + V sp(U1 , . . . , Us , Q.E.D. V1 , . . . , Vt ). As an immediate consequence of Lemma 17.1.1, we have the following corollary. Corollary 17.1.2. The sum U + V of two subspaces U and V (of Rm×n ) is itself a subspace. Further, if both U and V are contained in a subspace W (of Rm×n ), then U + V is contained in W. The addition of (nonempty) subsets of Rm×n (like the addition of matrices in m×n R ) is commutative and associative (as is easily verified). Thus, taking U and V to be two (nonempty) subsets of Rm×n , U +V V +U ,
(1.2)
and, taking W to be a third (nonempty) subset, U + (V + W) (U + V) + W .
(1.3)
The symbol U + V + W is used to represent the subset that is common to the left and right sides of equality (1.3), and this subset is referred to as the sum of U, V, and W. Further, U + V + W {U + V + W : U ∈ U, V ∈ V, W ∈ W} . This notation, terminology, and property extend in an obvious way to any finite number of (nonempty) subsets. Moreover, the sum of any (finite) number of subspaces is itself a subspace. The column space C(A) and the row space R(A) of an m × n matrix A are subspaces of Rm and Rn , respectively. Further, C(A) is spanned by the n columns of A, and R(A) is spanned by the m rows of A. Thus, it follows from Lemma 17.1.1 that, for any m × n matrix A and any m × p matrix B, C(A, B) C(A) + C(B) and, similarly, that, for any m × n matrix A and any p × n matrix C, A R R(A) + R(C) . C
(1.4)
(1.5)
Results (1.4) and (1.5) can be extended (by repeated application). For any matrices A1 , A2 , . . . , Ak having the same number of rows, C(A1 , A2 , . . . , Ak ) C(A1 ) + C(A2 ) + · · · + C(Ak ) ;
(1.6)
and similarly, for any matrices A1 , A2 , . . . , Ak having the same number of columns, A1 A2 R . R(A1 ) + R(A2 ) + · · · + R(Ak ) . (1.7) .. Ak
380
17. Intersections and Sums of Subspaces
Let U and V represent subspaces of the linear space Rm×n . If U ∩ V {0}, that is, if the only matrix that U and V have in common is the m × n null matrix, then U and V are said to be essentially disjoint. Note that the intersection of essentially disjoint subspaces of Rm×n is not the empty set; rather, it is a set with one member (the m × n null matrix) — this is the reason for referring to essentially disjoint subspaces as essentially disjoint rather than as disjoint. (Since the m×n null matrix is a member of every subspace of Rm×n , it is not possible for the intersection of two subspaces to be the empty set.) The following lemma gives an important property of essentially disjoint subspaces. Lemma 17.1.3. Let U and V represent subspaces (of dimension 1 or more) of Rm×n . And, let {U1 , . . . , Ur } represent any linearly independent set of matrices in U, and {V1 , . . . , Vs } any linearly independent set of matrices in V. If U and V are essentially disjoint, then the combined set {U1 , . . . , Ur , V1 , . . . , Vs } is linearly independent. Proof. It suffices to show that if {U1 , . . . , Ur , V1 , . . . , Vs } is linearly dependent, then U and V are not essentially disjoint. Suppose that {U1 , . . . , Ur , V1 , . . . , Vs } is linearly dependent. Then, for some scalars c1 , . . . cr and k1 , . . . , ks (not all of which are 0), r i1
c i Ui +
s
k j Vj 0
j 1
or, equivalently, r i1
ci U i −
s
k j Vj .
(1.8)
j 1
r
r We i1 ci Ui 0 — since if i1 ci Ui 0 (in which case
s have that that {U1 , . . . , j 1 kj Vj 0), we would be led to the contradictory conclusion
Ur } or {V1 , . . . , Vs } is linearly dependent. Thus, since ri1 ci Ui ∈ U and [in light of equality (1.8)] ri1 ci Ui ∈ V, we conclude that U ∩ V contains a nonnull matrix and hence that U and V are not essentially disjoint. Q.E.D. Note that if U and V are essentially disjoint subspaces of Rm×n , then, for any subspace W of U and any subspace X of V, W and V are essentially disjoint, U and X are essentially disjoint, and more generally W and X are essentially disjoint. The following lemma gives two alternative characterizations of essentially disjoint subspaces. Lemma 17.1.4. Let U and V represent subspaces of Rm×n . Then (1) U and V are essentially disjoint if and only if, for matrices U ∈ U and V ∈ V, the only solution to the matrix equation U+V0 is U V 0; and
(1.9)
17.1 Definitions and Some Basic Properties
381
(2) U and V are essentially disjoint if and only if, for every nonnull matrix U in U and every nonnull matrix V in V, U and V are linearly independent. Proof. (1) It suffices to show that U and V are not essentially disjoint if and only if, for U ∈ U and V ∈ V, equation (1.9) or, equivalently, the equation U −V ,
(1.10)
has a solution other than U V 0. Suppose that (for U ∈ U and V ∈ V) equation (1.10) has a solution other than U V 0, say U U∗ and V V∗ . Then, U∗ is nonnull. Further, since −V∗ ∈ V, U∗ is a member of V (as well as of U), and hence U∗ ∈ U ∩ V. Thus, U and V are not essentially disjoint. Conversely, suppose that U and V are not essentially disjoint. Then, U ∩ V contains a nonnull matrix U∗ . And, since U∗ −(−U∗ ), U∗ ∈ U, and −U∗ ∈ V, a solution to equation (1.10) (that satisfies the constraints U ∈ U and V ∈ V and differs from U V 0) can be obtained by taking U U∗ and V −U∗ . (2) Suppose that U and V are essentially disjoint. Then, upon applying Lemma 17.1.3 (in the special case where r s 1), we find that, for every nonnull matrix U in U and every nonnull matrix V in V, U and V are linearly independent. Conversely, suppose that, for every nonnull U ∈ U and every nonnull V ∈ V, U and V are linearly independent. Then, there does not exist any nonnull matrix belonging to both U and V, since any such matrix would not be linearly independent of itself. Q.E.D. When two subspaces U and V of Rm×n are essentially disjoint, their sum U + V is sometimes referred to as a direct sum and is sometimes denoted by the symbol U ⊕ V. By stating that a subspace W is the direct sum of two subspaces U and V or by writing W U ⊕ V, we can simultaneously indicate that W is the sum of U and V and that U and V are essentially disjoint. Or, even if it has already been indicated that two subspaces U and V are essentially disjoint, we can emphasize their essential disjointness by referring to their sum as a direct sum and/or by using the notation U ⊕ V. Direct sums have an important property, which is described in the following theorem. Theorem 17.1.5. Let U represent a p-dimensional subspace and V a qdimensional subspace of Rm×n . Further, let S1 and S2 represent bases for U and V, respectively, and define S to be the set of p + q matrices obtained by combining the p matrices in S1 with the q matrices in S2 . If U and V are essentially disjoint (or equivalently if U + V is a direct sum), then S is a basis for U + V; if U and V are not essentially disjoint, then S contains a proper subset that is a basis for U + V. Proof. It is clear from Lemma 17.1.1 that S spans U + V. Now, suppose that U and V are essentially disjoint. Then, it is evident from Lemma 17.1.3 that S is a linearly independent set. Thus, S is a basis for U + V. Alternatively, suppose that U and V are not essentially disjoint. Then, U ∩ V
p contains a nonnull matrix, say U. Further, U i1 ci Ui , where c1 , . . . , cp are
382
17. Intersections and Sums of Subspaces
scalars (not all
of which can be zero) and U1 , . . . , Up are the matrices in S1 . q Similarly, U j 1 kj Vj , where k1 , . . . , kq are scalars and V1 , . . . , Vq are the matrices in S2 . Thus, p q c i Ui + (−kj )Vj U − U 0 , i1
j 1
implying that S is a linearly dependent set. We conclude that S itself is not a basis and consequently (in light of Theorem 4.3.11) that S contains a proper subset that is a basis for U + V. Q.E.D. The following corollary is an immediate consequence of Theorem 17.1.5. Corollary 17.1.6. Let U and V represent subspaces of Rm×n . If U and V are essentially disjoint (or equivalently if U + V is a direct sum), then dim(U ⊕ V) dim(U) + dim(V) ;
(1.11)
and if U and V are not essentially disjoint, then dim(U + V) < dim(U) + dim(V) . Or, equivalently, dim(U + V) ≤ dim(U) + dim(V) ,
(1.12)
with equality holding if and only if U and V are essentially disjoint. Corollary 17.1.6 leads to the following result. Corollary 17.1.7. Let U and V represent subspaces of a linear space W. If U and V are essentially disjoint and if dim(U) + dim(V) dim(W), then U ⊕ V W. Proof (of Corollary 17.1.7). Suppose that U and V are essentially disjoint and that dim(U) + dim(V) dim(W). Then, it follows from Corollary 17.1.6 that dim(U ⊕ V) dim(W). Since (according to Corollary 17.1.2) U ⊕ V ⊂ W, we conclude (on the basis of Theorem 4.3.10) that U ⊕ V W. Q.E.D. As a special case of Corollary 17.1.7, we have the following corollary. Corollary 17.1.8. Let U and V represent subspaces of Rm×n . If U and V are essentially disjoint and if dim(U) + dim(V) mn, then U ⊕ V Rm×n . The following lemma establishes an important relationship. Lemma 17.1.9. Let U and V represent subspaces of Rm×n . If U ⊥ V (i.e., if U and V are orthogonal), then U ∩ V {0} (i.e., U and V are essentially disjoint). Proof. Suppose that U ⊥ V. Then, for any matrix U in U ∩ V (i.e., in both U and V), U ⊥ U, or, equivalently, U · U 0, implying that U 0. We conclude that U ∩ V {0}. Q.E.D. The converse of Lemma 17.1.9 is not necessarily true. That is, essentially disjoint subspaces are not necessarily orthogonal. Suppose, for example, that U is the onedimensional subspace spanned by the vector (1, 0) and V is the one-dimensional subspace spanned by (1, 1). Then, U and V are essentially disjoint; however, U and V are not orthogonal (with respect to the usual inner product). As an immediate consequence of Lemma 17.1.9, we have the following corollary. Corollary 17.1.10. Let U and V represent subspaces of Rm×n . If U and V are orthogonal, then their sum is a direct sum.
17.2 Results on Row and Column Spaces and on Ranks of Partitioned Matrices
17.2
383
Some Results on Row and Column Spaces and on the Ranks of Partitioned Matrices
The following lemma is an almost immediate consequence of Lemma 4.1.1. Lemma 17.2.1. For any m × n matrix A and m × p matrix B, C(A) and C(B) are essentially disjoint if and only if R(A ) and R(B ) are essentially disjoint. The following lemma can be useful in establishing that a matrix equals a null matrix. Lemma 17.2.2. (1) Let A represent an m × n matrix and B an m × p matrix whose column spaces C(A) and C(B) are essentially disjoint. And, let X represent an m × q matrix. If C(X) ⊂ C(A) and C(X) ⊂ C(B), or, equivalently, if X AK and X BL for some matrices K and L, then X 0. (2) Similarly, let A represent an m × n matrix and B a p × n matrix whose row spaces R(A) and R(B) are essentially disjoint. And, let X represent a q × n matrix. If R(X) ⊂ R(A) and R(X) ⊂ R(B), or, equivalently, if X KA and X LB for some matrices K and L, then X 0. Proof. (1) If C(X) ⊂ C(A) and C(X) ⊂ C(B), then C(X) ⊂ C(A) ∩ C(B) {0} , implying that rank(X) dim[C(X)] 0 and hence that X 0. (2) The proof of Part (2) is analogous to that of Part (1). Q.E.D. As a variation on Lemma 17.2.2, we have the following corollary. Corollary 17.2.3. (1) Let A represent an m × n matrix and B an m × p matrix whose column spaces C(A) and C(B) are essentially disjoint. And let K represent an n × q matrix and L a p × q matrix. If AK BL, then AK 0 and BL 0. (2) Similarly, let A represent an m × n matrix and B a p × n matrix whose row spaces R(A) and R(B) are essentially disjoint. And let K represent a q × m matrix and L a q × p matrix. If KA LB, then KA 0 and LB 0. By applying Corollary 17.1.6 in the special case where U and V are the column spaces of an m × n matrix A and an m × p matrix B, and in the special case where U and V are the row spaces of an m × n matrix A and a q × n matrix C, we obtain [in light of equalities (1.4) and (1.5)] the following theorem, which sharpens the results of Lemma 4.5.7. Theorem 17.2.4. (1) Let A represent an m × n matrix and B an m × p matrix. If C(A) and C(B) are essentially disjoint, then rank(A, B) rank(A) + rank(B) , and if C(A) and C(B) are not essentially disjoint, then rank(A, B) < rank(A) + rank(B) . Or, equivalently, rank(A, B) ≤ rank(A) + rank(B) , with equality holding if and only if C(A) and C(B) are essentially disjoint.
(2.1)
384
17. Intersections and Sums of Subspaces
(2) Let A represent an m × n matrix and C a q × n matrix. If R(A) and R(C) are essentially disjoint, then A rank rank(A) + rank(C) , C and if R(A) and R(C) are not essentially disjoint, then A rank < rank(A) + rank(C) . C Or, equivalently,
A rank ≤ rank(A) + rank(C) , C
(2.2)
with equality holding if and only if R(A) and R(C) are essentially disjoint. A further result on row and column spaces is given by the following lemma. Lemma 17.2.5. (1) Let A represent an m × n matrix and B an m × p matrix such that C(A) and C(B) are essentially disjoint and rank(A) + rank(B) m. Then, corresponding to any m × q matrix C, there exist an n × q matrix R and a p × q matrix S such that C AR + BS . (2) Similarly, let A represent an m × n matrix and B a p × n matrix such that R(A) and R(B) are essentially disjoint and rank(A)+rank(B) n. Then, corresponding to any q × n matrix C, there exist a q × m matrix R and a q × p matrix S such that C RA + SB . Proof. (1) It follows from Corollary 17.1.8 that C(A) + C(B) Rm or, equivalently [in light of result (1.4)], that C(A, B) Rm . Thus, C(C) ⊂ C(A, B), implying (in light of Lemma 4.2.2) thatC (A, B)L for some (n + p) × q matrix R L. And, upon partitioning L as L (where R has n rows), we find that S C AR + BS. (2) The proof of Part (2) is analogous to that of Part (1). Q.E.D. The following lemma characterizes the idempotency of an n × n matrix A in terms of the essential disjointness of two subspaces of Rn . Lemma 17.2.6. (1) An n × n matrix A is idempotent if and only if C(A) and C(I − A) are essentially disjoint. (2) An n × n matrix A is idempotent if and only if R(A) and R(I − A) are essentially disjoint. Proof. (1) Since A − A2 A(I − A) and A − A2 (I − A)A, it follows from Lemma 17.2.2 that if C(A) and C(I − A) are essentially disjoint, then A − A2 0 or, equivalently, A is idempotent. Conversely, suppose that A is idempotent. Let x represent an arbitrary vector in C(A)∩C(I − A). Then, x Ay and x (I − A)z for some vectors y and z, implying that x AAy Ax A(I − A)z (A − A2 )z 0 .
17.2 Results on Row and Column Spaces and on Ranks of Partitioned Matrices
385
Thus, C(A) and C(I − A) are essentially disjoint. (2) The proof of Part (2) is analogous to that of Part (1). Q.E.D. The following lemma has some useful consequences. Lemma 17.2.7. For any m × n matrix A, C(A) and C(I − AA− ) are essentially disjoint, and R(A) and R(I − A− A) are essentially disjoint. Proof. Since (according to Lemma 10.2.5) AA− is idempotent, it follows from Lemma 17.2.6 that C(AA− ) and C(I − AA− ) are essentially disjoint and hence (in light of Lemma 9.3.7) that C(A) and C(I − AA− ) are essentially disjoint. That R(A) and R(I − A− A) are essentially disjoint follows from an analogous argument. Q.E.D. In light of Lemma 4.2.2 and Theorem 17.2.4, we have the following corollary (of Lemma 17.2.7). Corollary 17.2.8. Let A represent an m × n matrix, B an m × q matrix, and C a q × n matrix. Then, C(A) and C[(I − AA− )B] are essentially disjoint, and rank[A, (I − AA− )B] rank(A) + rank[(I − AA− )B] . Similarly, R(A) and R[C(I − A− A)] are essentially disjoint, and A rank(A) + rank[C(I − A− A)] . rank C(I − A− A)
(2.3)
(2.4)
More generally, for any m × p matrix F such that C(F) ⊂ C(A) (or, equivalently, for any m × p matrix F that is expressible as F AK for some n × p matrix K), C(F) and C[(I − AA− )B] are essentially disjoint, and rank[F, (I − AA− )B] rank(F) + rank[(I − AA− )B] .
(2.5)
And, for any p × n matrix H such that R(H) ⊂ R(A) (or equivalently for any p × n matrix H that is expressible as H LA for some p × m matrix L), R(H) and R[C(I − A− A)] are essentially disjoint, and H rank(H) + rank[C(I − A− A)] . rank (2.6) C(I − A− A) Upon combining Lemma 4.5.4 with Corollary 17.2.8 [and recalling results (1.4) and (1.5)], we obtain as a second corollary (of Lemma 17.2.7) the following result. Corollary 17.2.9. For any m × n matrix A and m × p matrix B, C(A, B) C[A, (I − AA− )B] C(A) ⊕ C[(I − AA− )B], rank(A, B) rank[A, (I − AA− )B] rank(A) + rank[(I − AA− )B]. Similarly, for any m × n matrix A and q × n matrix C. A A R(A) ⊕ R[C(I − A− A)], R R C C(I − A− A) A A rank rank rank(A) + rank[C(I − A− A)]. C C(I − A− A)
(2.7) (2.8)
(2.9) (2.10)
386
17. Intersections and Sums of Subspaces
Three additional corollaries (of Lemma 17.2.7) are as follows. Corollary 17.2.10. Let A represent an m × n matrix, B an m × p matrix, and C a q × n matrix. Then, rank[(I − AA− )B] rank(B) if and only if C(A) and C(B) are essentially disjoint, and, similarly, rank[C(I − A− A)] rank(C) if and only if R(A) and R(C) are essentially disjoint. Proof. According to Corollary 17.2.9, rank[(I − AA− )B] rank(A, B) − rank(A) . Moreover, according to Theorem 17.2.4, rank(A, B) rank(A) + rank(B), or, equivalently, rank(A, B) − rank(A) rank(B), if and only if C(A) and C(B) are essentially disjoint. We conclude that rank[(I − A− A)B] rank(B) if and only if C(A) and C(B) are essentially disjoint. That rank[C(I − A− A)] rank(C) if and only if R(A) and R(C) are essentially disjoint follows from a similar argument. Q.E.D. Corollary 17.2.11. Let A represent an m × n matrix, B an m × p matrix, and C a q × n matrix. Then, R[(I − AA− )B] R(B) if and only if C(A) and C(B) are essentially disjoint, and, similarly, C[C(I − A− A)] C(C) if and only if R(A) and R(C) are essentially disjoint. Proof. Corollary 17.2.11 follows from Corollary 17.2.10 upon observing (in light of Corollary 4.4.7) that R[(I − AA− )B] R(B) if and only if rank[(I − AA− )B] rank(B) and that C[C(I − A− A)] C(C) if and only if rank[C(I − A− A)] rank(C). Q.E.D. Corollary 17.2.12. Let A represent an m × n matrix, B an m × p matrix, and C a q × n matrix. If AA− B 0 or BB− A 0, then C(A) and C(B) are essentially disjoint. Similarly, if CA− A 0 or AC− C 0, then R(A) and R(C) are essentially disjoint. Proof. If AA− B 0 or BB− A 0, then clearly rank[(I−AA− )B] rank(B) or rank[(I − BB− )A] rank(A), and it follows from Corollary 17.2.10 that C(A) and C(B) are essentially disjoint. Similarly, if CA− A 0 or AC− C 0, then clearly rank[C(I − A− A)] rank(C) or rank[A(I − C− C)] rank(A), and it follows from Corollary 17.2.10 that R(A) and R(C) are essentially disjoint. Q.E.D. In connection with Lemma 17.2.7 (and its corollaries), recall [from Part (1) of Theorem 12.3.4] that one choice for A− is (A A)− A , and observe that, for A− (A A)− A , AA− PA . Similarly, recall [from Part (5) of Theorem 12.3.4] that another choice for A− is A (AA )− , and observe that, for A− A (AA )− , A− A PA . As a consequence of Corollary 17.2.9, we have that, for any m × n matrix A and m × p matrix B, there exists a matrix K (having m rows) such that C(A) and C(K) are essentially disjoint and C(A, B) C(A, K) or, equivalently, such that C(A, B) equals the direct sum of C(A) and C(K). One choice for K (that given by Corollary 17.2.9) is K (I−AA− )B. The following theorem gives, for the special case where B is an (m × m) symmetric nonnegative definite matrix, an alternative choice for K. Theorem 17.2.13. For any m × n matrix A and any m × m symmetric nonneg-
17.2 Results on Row and Column Spaces and on Ranks of Partitioned Matrices
387
ative definite matrix V, C(A) and C{V[I − (A )− A ]} are essentially disjoint and C(A, V) C{A, V[I − (A )− A ]}, or, equivalently, C(A, V) C(A) ⊕ C{V[I − (A )− A ]} .
(2.11)
Proof. Let Z I − (A )− A , and observe that A Z 0 and hence that Z A (A Z) 0. Let x represent an arbitrary (m × 1) vector in C(A) ∩ C(VZ). Then, x Ar for some vector r, and x VZs for some vector s. Moreover, Z VZs Z x Z Ar 0 , so that
(Zs) VZs s Z VZs 0 ,
implying (in light of Corollary 14.3.11) that VZs 0 or equivalently that x 0. Thus, C(A) and C(VZ) are essentially disjoint. Now, it is clear from Lemma 4.5.5 that C(A, VZ) ⊂ C(A, V) . And, making use of Theorem 17.2.4 and result (2.8) and observing that rank(VZ) rank[(VZ) ] rank({I − A[(A )− ] }V) and that [(A )− ] is a generalized inverse of A, we find that rank(A, VZ)
rank(A) + rank(VZ)
rank(A) + rank({I − A[(A )− ] }V)
rank(A, V) .
We conclude, on the basis of Theorem 4.4.6, that C(A, VZ) C(A, V). Q.E.D. In connection with Theorem 17.2.13, recall (from Corollary 11.2.2) that C[I− (A )− A ] N (A ), and observe (in light of Corollaries 4.2.4 and 4.5.6) that, for any matrix Z such that C(Z) N (A ), C{V[I − (A )− A ]} C(VZ) and C{A, V[I − (A )− A ]} C(A, VZ). Thus, we have the following corollary. Corollary 17.2.14. Let A represent an m × n matrix, and let V represent an m × m symmetric nonnegative definite matrix. Then, for any matrix Z such that C(Z) N (A ) (i.e., any matrix Z whose columns span the null space of A ), C(A) and C(VZ) are essentially disjoint and C(A, V) C(A, VZ), or, equivalently, C(A, V) C(A) ⊕ C(VZ) .
(2.12)
The following lemma gives a basic result on the essential disjointness of the row or column spaces of partitioned matrices. Lemma 17.2.15. (1) Let A (A1 , A2 ) represent an m × n partitioned matrix and B (B1 , B2 ) a p × n partitioned matrix, where B1 has the same number of columns, say n1 , as A1 . If R(A1 ) and R(B1 ) are essentially disjoint and if R(A2 )
388
17. Intersections and Sums of Subspaces
and R(B2 ) are essentially disjoint, then R(A) and R(B) are essentially disjoint. (2) A1 B1 Similarly, let A represent an m × n partitioned matrix, and B an A2 B2 m × p partitioned matrix, where B1 has the same number of rows, say m1 , as A1 . If C(A1 ) and C(B1 ) are essentially disjoint and if C(A2 ) and C(B2 ) are essentially disjoint, then C(A) and C(B) are essentially disjoint. Proof. (1) Suppose that R(A1 ) and R(B1 ) are essentially disjoint and that R(A2 ) and R(B2 ) are essentially disjoint. Let x represent an arbitrary (1 × n) vector in R(A) ∩ R(B). Then, x r A and x s B for some (row) vectors r and s . Now, partitioning x as x (x1 , x2 ) (where x1 is of dimensions 1 × n1 ), we find that (x1 , x2 ) r (A1 , A2 ) (r A1 , r A2 ) and, similarly, that (x1 , x2 ) s (B1 , B2 ) (s B1 , s B2 ) . Thus, x1 r A1 and x1 s B1 , implying (in light of Lemma 17.2.2) that x1 0; and similarly x2 r A2 and x2 s B2 , implying that x2 0. It follows that x (0, 0) 0. We conclude that R(A) and R(B) are essentially disjoint. (2) The proof of Part (2) is analogous to that of Part (1). Q.E.D. In the special case where one of the submatrices A1 , A2 , B1 , and B2 is a null matrix, Lemma 17.2.15 can be restated as the following corollary. Corollary 17.2.16. Let T represent an m × p matrix, U an m × q matrix, V an n×p matrix, and W an n×q matrix. (1) If R(T) and R(V) are essentially disjoint, then R(T, U) and R(V, 0) are essentially disjoint. Similarly, if R(U) and R(W) are essentially disjoint, then R(T, U) and R(0, disjoint. (2) If C(T) W) are essentially T U and C(U) are essentially disjoint, then C and C are essentially disjoint. V 0 T 0 Similarly, if C(V) and C(W) are essentially disjoint, then C and C are V W essentially disjoint. Let A (A1 , A2 ) represent an m × n partitioned matrix, and B (B1 , B2 ) a p × n partitioned matrix (where B1 has the same number of columns as A1 ). For R(A) and R(B) to be essentially disjoint, it is (according to Lemma 17.2.15) sufficient that R(A1 ) and R(B1 ) be essentially disjoint and that R(A2 ) and R(B2 ) be essentially disjoint. Are these conditions necessary as well as sufficient? The answer is no, as is easily verified. Results (2.10) and (2.8) are extended in the following theorem. Theorem 17.2.17. Let T represent an m × p matrix, U an m × q matrix, and V an n × p matrix. Then
T U rank V 0
0 rank U
V T
rank(V) + rank[U, T(I − V− V)]
(2.13)
17.2 Results on Row and Column Spaces and on Ranks of Partitioned Matrices
389
V (I − UU− )T rank(U) + rank(V) + rank[(I − UU− )T(I − V− V)].
rank(U) + rank
Proof. Clearly,
(2.14)
(2.15)
0 is a generalized inverse of (0, V), and V− I 0 0 (0, V) . I− 0 I − V− V V−
Thus, making use of result (2.10), we find that * %
0 V 0 (0, V) rank rank(0, V) + rank (U, T) I − U T V− rank(V) + rank[U, T(I − V− V)] . 0 V It can be established in similar fashion that rank equals expression (2.14). U T T U 0 V That rank = rank is evident from Lemma 8.5.1. And it follows V 0 U T from result (2.8) that
rank[U, T(I − V− V)] rank(U) + rank[(I − UU− )T(I − V− V)] . Substitution of this expression for rank[U, T(I − V− V)] into expression (2.13) gives expression (2.15). Q.E.D. The following theorem can be regarded as a generalization of Corollary 17.2.10. Theorem 17.2.18. Let T represent an m × p matrix, U an m × q matrix, and V an n × p matrix. Then, rank[(I − UU− )T(I − V− V)] ≤ rank(T) ,
(2.16)
with equality holding if and only if C(T) and C(U) are essentially disjoint and R(T) and R(V) are essentially disjoint. Proof. It follows from Corollary 4.4.5 that rank[(I − UU− )T(I − V− V)] ≤ rank[T(I − V− V)] ≤ rank(T) . Further, in light of Corollary 17.2.10, rank[(I − UU− )T(I − V− V)] rank(T) ⇔ rank[(I − UU− )T(I − V− V)] rank[T(I − V− V)] rank(T) ⇔ C(U) and C[T(I − V− V)] are essentially disjoint and R(V) and R(T) are essentially disjoint.
390
17. Intersections and Sums of Subspaces
And, according to Corollary 17.2.11, R(V) and R(T) are essentially disjoint ⇔ C[T(I − V− V)] C(T), and consequently C(U) and C[T(I − V− V)] are essentially disjoint and R(V) and R(T) are essentially disjoint ⇔ C(U) and C(T) are essentially disjoint and R(V) and R(T) are essentially disjoint. Q.E.D. Upon combining Theorem 17.2.18 with result (2.15), we obtain the following theorem, which extends the results of Theorem 17.2.4. Theorem 17.2.19. For any m × p matrix T, m × q matrix U, and n × p matrix V, T U rank ≤ rank(T) + rank(U) + rank(V) , (2.17) V 0 with equality holding if and only if R(T) and R(V) are essentially disjoint and C(T) and C(U) are essentially disjoint.
17.3
Some Results on Linear Systems and on Generalized Inverses of Partitioned Matrices
The following theorem gives a basic result on a linear system whose left and right sides are the sums of the left and right sides of two other linear systems. Theorem 17.3.1. Let A1 represent an m×n1 matrix, A2 an m×n2 matrix, and B1 and B2 m × p matrices. Further, let n n1 + n2 , A (A1 , A2 ), and B B1 + B2 . Suppose that C(A1 ) and C(A2 ) are essentially disjoint ∗ and that C(B1 ) ⊂ C(A1 ) and X1 ∗ to the linear system AX B C(B2 ) ⊂ C(A2 ). Then, for any solution X X∗2 (in an n × p matrix X), or, equivalently, to the linear system A1 X1 + A2 X2 B1 + B2 (in n1 × p and n2 × p matrices X1 and X2 ), X∗1 is a solution to the linear system A1 X1 B1 , and X∗2 is a solution to the linear system A2 X2 B2 . Proof. According to Lemma 4.2.2, B1 A1 F1 and B2 A2 F2 for some matrices F1 and F2 . Thus, we have that A1 X∗1 + A2 X∗2 B1 + B2 A1 F1 + A2 F2 , implying that
A1 (X∗1 − F1 ) A2 (F2 − X∗2 ) .
Since C(A1 ) and C(A2 ) are essentially disjoint, it follows (in light of Corollary 17.2.3) that A1 (X∗1 − F1 ) 0 and A2 (F2 − X∗2 ) 0 and hence that A1 X∗1
17.3 Results on Linear Systems and Generalized Inverses of Partitioned Matrices
391
A1 F1 B1 and A2 X∗2 A2 F2 B2 . We conclude that X∗1 is a solution to A1 X1 B1 and that X∗2 is a solution to A2 X2 B2 . Q.E.D. In connection with Theorem 17.3.1, note (in light of Lemmas 4.5.8 and 4.5.5) that the supposition that C(B1 ) ⊂ C(A1 ) and C(B2 ) ⊂ C(A2 ) implies that C(B) ⊂ C(A) and hence that the linear system AX B is consistent. Suppose that a linear system A1 X B1 (in a matrix X of unknowns) is consistent and that a second linear system A2 X B2 (inX) is also consistent. Under what B1 A1 X consistent, or, circumstances is the combined linear system A2 B2 equivalently, under what circumstances does A2 X B2 have solutions in common with A1 X B1 ? This question is addressed in the following theorem. Theorem 17.3.2. Let A1 represent an m1 × n matrix, A2 an m2 × n matrix, B1 an m1 × p matrix, and B2 an m2 × p matrix. And suppose that the linear systems A1 X B1 and A2 X B2 (in X) are both consistent [or, equivalently, that C(B1 ) ⊂ C(A1 ) and C(B2 ) ⊂ C(A2 )]. If R(A1) and R(A2 ) are essentially disjoint, A1 B1 then the combined linear system X (in X) is consistent. A2 B2 Proof. Suppose that R(A1 ) and R(A 2) are essentially disjoint. Let k represent k1 A1 any (m1 +m2 )×1 vector such that k 0 . Then, partitioning k as k A2 k2 (where k1 has m1 elements), k1 A1 + k2 A2 0 , or, equivalently, k1 A1 −k2 A2 . Thus, k1 A1 0 , and k2 A2 0 . Moreover, each of the linear systems A1 X B1 and A2 X B2 is (in light of Theorem 7.3.1) compatible, so that k1 B1 0 and k2 B2 0 and hence B B1 A 1 1 k 0 . We conclude that the combined linear system X is B2 A2 B2 compatible and hence (in light of Theorem 7.3.1) consistent. Q.E.D. Under what condition(s) are the blocks G and G of a generalized inverse 1 2 G1 of a partitioned matrix (A, B) generalized inverses of the blocks (A and B) G2 of (A, B)? And, similarly, under what condition(s) are the blocks H1 and H2 of a A generalized inverses of generalized inverse (H1 , H2 ) of a partitioned matrix C A the blocks of ? These questions are answered in the following theorem. C Theorem 17.3.3. Let A represent an m × n matrix, Ban m × p matrix, and G1 C a q × n matrix. (1) For any generalized inverse G (where G1 has n G2 rows) of the m × (n + p) partitioned matrix (A, B), G1 is a generalized inverse of A, and G2 a generalized inverse of B, if and only if C(A) and C(B) are essentially disjoint. (2) Similarly, for any generalized inverse H (H1 , H2 ) (where H1 has m A columns) of the (m+q)×n partitioned matrix , H1 is a generalized inverse of C A, and H2 a generalized inverse of C, if and only if R(A) and R(C) are essentially disjoint.
392
17. Intersections and Sums of Subspaces
Proof. (1) Clearly, (AG1 A + BG2 A, AG1 B + BG2 B) (A, B)G(A, B) (A, B) , so that BG2 A A − AG1 A, AG1 B B − BG2 B .
(3.1)
Now, suppose that C(A) and C(B) are essentially disjoint. Then, rewriting equalities (3.1) as BG2 A A(I − G1 A),
AG1 B B(I − G2 B)
and applying Corollary 17.2.3, we find that A(I − G1 A) 0,
B(I − G2 B) 0 ,
or, equivalently, that AG1 A A and BG2 B B. Thus, G1 is a generalized inverse of A and G2 a generalized inverse of B. Conversely, suppose that G1 is a generalized inverse of A and G2 is a generalized inverse of B. Then it follows from result (3.1) that BG2 A 0, and we conclude (on the basis of Corollary 17.2.12) that C(A) and C(B) are essentially disjoint. (2) The proof of Part (2) is analogous to that of Part (1). Q.E.D. The following theorem gives sufficient conditions for the blocks G , G , G12 , 11 21 G11 G12 and G22 of a generalized inverse of a partitioned matrix A G21 G22 T U to be generalized inverses of the blocks (T, U, V, and W) of A. V W Theorem 17.3.4. Let T represent an m×p matrix,U an m×q matrix, V an n×p G11 G12 matrix, and W an n × q matrix. And let (where G11 is of dimensions G21 G22 T U p × m) represent a generalized inverse of the partitioned matrix . V W (1) If C(T) and C(U) are essentially disjoint and R(T) and R(V) are essentially disjoint, then G11 is a generalized inverse of T; (2) if C(U) and C(T) are essentially disjoint and R(U) and R(W) are essentially disjoint, then G21 is a generalized inverse of U; (3) if C(V) and C(W) are essentially disjoint and R(V) and R(T) are essentially disjoint, then G12 is a generalized inverse of V; and (4) if C(W) and C(V) are essentially disjoint and R(W) and R(U) are essentially disjoint, then G22 is a generalized inverse of W. Proof. Clearly, TG11 T + UG21 T + TG12 V + UG22 V VG11 T + WG21 T + VG12 V + WG22 V
TG11 U + UG21 U + TG12 W + UG22 W VG11 U + WG21 U + VG12 W + WG22 W
17.4 Subspaces: Sum of Their Dimensions Versus Dimension of Their Sum
T V
U W
G11 G21
G12 G22
T U T V W V
U . W
393
(3.2)
(1) It follows from result (3.2) that TG11 T + UG21 T + TG12 V + UG22 V T .
(3.3)
Now, suppose that C(T) and C(U) are essentially disjoint and R(T) and R(V) are essentially disjoint. Then, rewriting equality (3.3) as U(G21 T + G22 V) T(I − G11 T − G12 V) and applying Corollary 17.2.3, we find that T(I − G11 T − G12 V) 0 .
(3.4)
Further, rewriting equality (3.4) as (I − TG11 )T TG12 V and again applying Corollary 17.2.3, we find that (I−TG11 )T 0 or, equivalently, that T TG11 T. Thus, G11 is a generalized inverse of T. (2), (3), and (4). The proofs of Parts (2), (3), and (4) are analogous to the proof of Part (1). Q.E.D. Note that the conditions of Parts (1) and (4) of Theorem 17.3.4 [as well as those of Parts(2) and (3)] are satisfied in particular if U 0 and V 0 — if U 0 and T U V 0, reduces to the block-diagonal matrix diag(T, W). V W
17.4
Subspaces: Sum of Their Dimensions Versus Dimension of Their Sum
The following theorem quantifies the difference between the right and left sides of inequality (1.12). Theorem 17.4.1. For any subspaces U and V of Rm×n , dim(U + V) dim(U) + dim(V) − dim(U ∩ V) ,
(4.1)
dim(U ∩ V) dim(U) + dim(V) − dim(U + V).
(4.2)
or equivalently
Proof. Let r dim(U), s dim(V), and t dim(U ∩ V). If t 0, U and V are essentially disjoint, and result (4.1) follows from result (1.11). Consider now the case where t > 0. Let {F1 , . . . , Ft } represent a basis for the subspace U ∩ V. Since (U ∩ V) ⊂ U, F1 , . . . , Ft are contained in U, and it follows from Theorem 4.3.12 that there exist
394
17. Intersections and Sums of Subspaces
r −t additional matrices A1 , . . . , Ar−t such that the set {F1 , . . . , Ft , A1 , . . . , Ar−t } is a basis for U — if r t, the set {F1 , . . . , Ft , A1 , . . . , Ar−t } reduces to the set {F1 , . . . , Ft }. Similarly, F1 , . . . , Ft are contained in V, and there exist s − t additional matrices B1 , . . . , Bs−t such that the set {F1 , . . . , Ft , B1 , . . . , Bs−t } is a basis for V. To validate result (4.1), it suffices to establish that the set {F1 , . . . , Ft , A1 , . . . , Ar−t , B1 , . . . , Bs−t } spans U + V and is linearly independent [thereby establishing that this (r + s − t)-dimensional set is a basis for U + V]. Clearly, if X ∈ U and Y ∈ V, then each of the matrices X and Y is expressible as a linear combination of the matrices F1 , . . . , Ft , A1 , . . . , Ar−t , B1 , . . . , Bs−t and consequently X + Y is expressible as a linear combination of these matrices. Thus, the set {F1 , . . . , Ft , A1 , . . . , Ar−t , B1 , . . . , Bs−t } spans U + V. To complete the proof, we must show that this set is linearly independent. For this purpose, suppose that s > t — if s t, the set {F1 , . . . , Ft , A1 , . . . , Ar−t , B1 , . . . , Bs−t } reduces to the set {F1 , . . . , Ft , A1 , . . . , Ar−t }, which is a basis for U and is therefore linearly independent. Let k1 , . . . , kt , c1 , . . . , cr−t , d1 , . . . , ds−t represent any scalars such that k1 F1 + · · · + kt Ft + c1 A1 + · · · + cr−t Ar−t + d1 B1 + · · · + ds−t Bs−t 0. (4.3) And, define H k1 F1 + · · · + kt Ft + c1 A1 + · · · + cr−t Ar−t .
(4.4)
H −d1 B1 − · · · − ds−t Bs−t .
(4.5)
Then, Equality (4.4) implies that H ∈ U, and equality (4.5) implies that H ∈ V. Thus, H ∈ U ∩ V, and, consequently, there exist scalars z1 , . . . , zt such that H z1 F1 + · · · + zt Ft .
(4.6)
Together, equalities (4.5) and (4.6) imply that z1 F1 + · · · + zt Ft + d1 B1 + · · · + ds−t Bs−t H − H 0. Since {F1 , . . . , Ft , B1 , . . . , Bs−t } is a basis for V and hence is linearly independent, it follows that d1 . . . ds−t 0 (4.7) (and that z1 . . . zt 0) and [in light of equality (4.3)] that k1 F1 + · · · + kt Ft + c1 A1 + · · · + cr−t Ar−t 0.
(4.8)
And since {F1 , . . . , Ft , A1 , . . . , Ar−t } is a basis for U and hence is linearly independent, result (4.8) implies that k1 . . . kt c1 . . . cr−t 0.
(4.9)
17.4 Subspaces: Sum of Their Dimensions Versus Dimension of Their Sum
395
We conclude [on the basis of results (4.7) and (4.9)] that the set {F1 , . . . , Ft , A1 , . . . , Ar−t , B1 , . . . , Bs−t } is linearly independent. Q.E.D. By applying Theorem 17.4.1 in the special case where U and V are the column spaces of an m × n matrix A and an m × p matrix B and in the special case where U and V are the row spaces of an m × n matrix A and a q × n matrix C, we obtain [in light of equalities (1.4) and (1.5)] the following theorem, which quantifies the difference between the right and left sides of inequality (2.1) and the difference between the right and left sides of inequality (2.2). Theorem 17.4.2. Let A represent an m × n matrix, B an m × p matrix, and C a q × n matrix. Then, rank(A, B) rank(A) + rank(B) − dim[C(A) ∩ C(B)], A rank rank(A) + rank(C) − dim[R(A) ∩ R(C)]. C
(4.10) (4.11)
Or, equivalently, dim[C(A) ∩ C(B)] rank(A) + rank(B) − rank(A, B), A dim[R(A) ∩ R(C)] rank(A) + rank(C) − rank . C
(4.12) (4.13)
Upon combining result (4.10) with result (2.8) and result (4.11) with result (2.10), we obtain the following corollary of Theorem 17.4.2. Corollary 17.4.3. Let A represent an m × n matrix, B an m × p matrix, and C a q × n matrix. Then, rank[(I − AA− )B] rank(B) − dim[C(A) ∩ C(B)],
(4.14)
rank[C(I − A− A)] rank(C) − dim[R(A) ∩ R(C)].
(4.15)
Result (4.15) can be restated in terms of the following set: U {x ∈ Rq×1 : x Cz for some n × 1 vector z in N (A)}. We have that
U C[C(I − A− A)],
(4.16)
as is evident upon observing (in light of Corollary 11.2.2) that x ∈ C[C(I − A− A)] ⇔ x C(I − A− A)y for some n × 1 vector y ⇔ x Cz for some z in C(I − A− A) ⇔ x Cz for some z in N (A). Thus, U is a linear space, and, as a consequence of result (4.15), dim(U) rank[C(I − A− A)] rank(C) − dim[R(A) ∩ R(C)].
(4.17)
396
17. Intersections and Sums of Subspaces
17.5
Some Results on the Rank of a Product of Matrices
a. Initial presentation of results Upper bounds for the product of an m × n matrix A and an n × p matrix B are, as previously indicated (in Corollary 4.4.5): rank(AB) ≤ rank(A),
rank(AB) ≤ rank(B).
(5.1)
Note that inequalities (5.1) can be combined and restated as rank(AB) ≤ min[rank(A), rank(B)].
(5.2)
For purposes of obtaining a lower bound for the rank of a product of matrices, let A represent an m × n matrix, C an n × q matrix, and B a q × p matrix. According to Theorem 9.6.4, C CB rank rank(C) + rank(−ACB) rank(C) + rank(ACB), (5.3) AC 0 and, according to Theorem 17.2.17, C CB rank rank(AC) + rank(CB) AC 0 + rank{[I − CB(CB)− ]C[I − (AC)− AC]}. (5.4) Equating expression (5.4) to expression (5.3), we obtain the following result on the rank of a product of three matrices. Theorem 17.5.1. Let A represent an m × n matrix, C an n × q matrix, and B a q × p matrix. Then, rank(ACB)
rank(AC) + rank(CB) − rank(C) + , + rank I − CB(CB)− C I − (AC)− AC . (5.5)
Further, rank(ACB) ≥ rank(AC) + rank(CB) − rank(C), with equality holding if and only if I − CB(CB)− C I − (AC)− AC 0.
(5.6)
(5.7)
In the special case where C In , Theorem 17.5.1 reduces to the following corollary on the rank of a product of two matrices. Corollary 17.5.2. Let A represent an m × n matrix and B an n × p matrix. Then, rank(AB) rank(A) + rank(B) − n + rank[(I − BB− )(I − A− A)].
(5.8)
Further, rank(AB) ≥ rank(A) + rank(B) − n,
(5.9)
17.5 Some Results on the Rank of a Product of Matrices
397
with equality holding if and only if (I − BB− )(I − A− A) 0.
(5.10)
Inequality (5.9) is called Sylvester’s law of nullity, after James Joseph Sylvester (1814–1897), and inequality (5.6) is called the Frobenius inequality, after Ferdinand Georg Frobenius (1849–1917). According to Corollary 17.5.2, the lower bound (5.9) (on the rank of a product of two matrices) is attained if and only if equality (5.10) holds. Under what condition(s) are the upper bounds [given by result (5.1)] attained? To answer this question, observe (in light of Corollary 17.2.9) that rank(B, I − A− A) rank(B) + rank[(I − BB− )(I − A− A)],
A rank I − BB−
rank(A) + rank[(I − BB− )(I − A− A)].
(5.11) (5.12)
A comparison of expressions (5.11) and (5.12) with expression (5.8) leads to the following theorem. Theorem 17.5.3. Let A represent an m×n matrix and B an n×p matrix. Then, rank(AB)
rank(A) − n + rank(B, I − A− A) A rank(B) − n + rank . I − BB−
(5.13) (5.14)
Further, equality is attained in the inequality rank(AB) ≤ rank(A) if and only if rank(B, I − A− A) n or, equivalently, if and only if (B, I − A− A) is of full row rank.And equality if and only if is attained in the inequality rank(AB) ≤ rank(B) A A n or, equivalently, if and only if is of full column rank I − BB− I − BB− rank.
b. Reexpression of results in more “geometrically meaningful” terms Let A represent an m × n matrix and B an n × p matrix. Then, making use of Theorem 17.4.2, Lemma 10.2.6, and Corollary 11.2.2, we find that rank(B, I − A− A) rank(B) + rank(I − A− A) − dim[C(B) ∩ C(I − A− A)] rank(B) + n − rank(A) − dim[C(B) ∩ N (A)].
(5.15)
Further, recalling that (B− ) is a generalized inverse of B , we find in similar fashion that
398
17. Intersections and Sums of Subspaces
rank
A I − BB−
rank
A I − BB−
rank[A , I − (B− ) B ] rank(A) + rank[I − (B− ) B ]
− dim{C(A ) ∩ C[I − (B− ) B ]} rank(A) + n − rank(B) − dim[C(A ) ∩ N (B )].
(5.16)
Substituting expressions (5.15) and (5.16) into expressions (5.13) and (5.14), respectively, we obtain the following alternative to Theorem 17.5.3. Theorem 17.5.4. Let A represent an m × n matrix and B an n × p matrix. Then, rank(AB)
rank(B) − dim[C(B) ∩ N (A)] rank(A) − dim[C(A ) ∩ N (B )].
(5.17) (5.18)
Further, equality is attained in the inequality rank(AB) ≤ rank(B) if and only if C(B) and N (A) are essentially disjoint. And equality is attained in the inequality rank(AB) ≤ rank(A) if and only if C(A ) and N (B ) are essentially disjoint. By equating expression (5.8) for the rank of a product of two matrices to each of the alternative expressions (5.17) and (5.18), we find (in light of Lemma 11.3.1) that (for any m × n matrix A and any n × p matrix B) rank[(I − BB− )(I − A− A)] n − rank(A) − dim[C(B) ∩ N (A)] dim[N (A)] − dim[C(B) ∩ N (A)]
(5.19)
and similarly that rank[(I − BB− )(I − A− A)] n − rank(B ) − dim[C(A ) ∩ N (B )] dim[N (B )] − dim[C(A ) ∩ N (B )].
(5.20)
Based on equalities (5.19) and (5.20), we obtain the following theorem, which allows us to reexpress condition (5.10) [under which equality holds in inequality (5.9)] in more “geometrically meaningful” terms. Theorem 17.5.5. Let A represent an m × n matrix and B an n × p matrix. Then, (I − BB− )(I − A− A) 0 ⇔ N (A) ⊂ C(B) ⇔ N (B ) ⊂ C(A ). Let A represent an m × n matrix, C an n × q matrix, and B a q × p matrix. Then, making use of result (5.17), we find that rank(ACB) rank[A(CB)] rank(CB) − dim[C(CB) ∩ N (A)]
(5.21)
and, similarly, making use of result (5.18), that rank(ACB) rank[(AC)B] rank(AC) − dim{C[(AC) ] ∩ N (B )}.
(5.22)
17.6 Projections Along a Subspace
399
Further, equating expression (5.5) [for rank(ACB)] to expression (5.21) and making use of result (5.17), we find that rank{[I − CB(CB)− ]C[I − (AC)− AC]} rank(C) − rank(AC) − dim[C(CB) ∩ N (A)] dim[C(C) ∩ N (A)] − dim[C(CB) ∩ N (A)]
(5.23)
and, similarly, equating expression (5.5) to expression (5.22) and making use of result (5.18), that rank{[I − CB(CB)− ]C[I − (AC)− AC]} rank(C) − rank(CB) − dim[C(C A ) ∩ N (B )] dim[C(C ) ∩ N (B )] − dim[C(C A ) ∩ N (B )].
(5.24)
Based on equalities (5.23) and (5.24), we obtain the following theorem, which allows us to reexpress condition (5.7) [under which equality holds in the Frobenius inequality] in more geometrically meaningful terms. Theorem 17.5.6. Let A represent an m × n matrix, C an n × q matrix, and B a q × p matrix. Then, [I − CB(CB)− ]C[I − (AC)− AC] 0 ⇔ C(CB) ∩ N (A) C(C) ∩ N (A) ⇔ C(C A ) ∩ N (B ) C(C ) ∩ N (B ).
17.6
Projections Along a Subspace
a. Some general results and terminology Let V represent a linear space of m × n matrices, and let U represent a subspace of V. The subspace U and its orthogonal complement U ⊥ (which is also a subspace of U) are orthogonal (as is evident from the very definition of U ⊥ ) and hence are (as a consequence of Lemma 17.1.9) essentially disjoint. Moreover, it follows from Corollary 17.1.2 that U + U ⊥ ⊂ V and from Theorem 12.5.11 that V ⊂ U + U ⊥ . Thus, V U ⊕ U⊥ (6.1) (i.e., V equals the direct sum of U and U ⊥ ). Let X represent an m × p matrix, and take W to be an m × m symmetric positive definite matrix. Then, as a special case of result (6.1) [that where V Rm and U C(X) and where the inner product for Rm is taken to be the bilinear form whose matrix is W], we have that ⊥ (X), Rm C(X) ⊕ CW
(6.2)
400
17. Intersections and Sums of Subspaces
which, in the further special case where W I, reduces to Rm C(X) ⊕ C ⊥ (X).
(6.3)
According to Theorem 12.1.3, a subspace U (of a linear space V of m × n matrices) and its orthogonal complement U ⊥ have the following property: corresponding to any m × n matrix Y in V, there exists a unique matrix Z in U such that Y − Z ∈ U ⊥ . The following theorem indicates that any two essentially disjoint subspaces whose sum is V have this property. Theorem 17.6.1. Let Y represent a matrix in a linear space V of m × n matrices, and let U and W represent essentially disjoint subspaces whose sum is V. Then, U contains a unique matrix Z such that Y − Z ∈ W. Proof. Since V U + W, it follows from the very definition of a sum (of subspaces) that U contains a matrix Z and W a matrix W such that Y Z + W. Clearly, Y − Z W, and hence Y − Z ∈ W. For purposes of establishing the uniqueness of Z, let Z∗ represent a matrix (potentially different from Z) in U such that Y − Z∗ ∈ W. Then, Z∗ − Z ∈ U and Y − Z∗ − (Y − Z) ∈ W. And, Z∗ − Z + [Y − Z∗ − (Y − Z)] 0. We conclude, on the basis of Part (1) of Lemma 17.1.4, that Z∗ − Z 0 [and that Y − Z∗ − (Y − Z) 0] and hence that Z∗ Z, thereby establishing the uniqueness of Z. Q.E.D. Theorem 17.6.1 can be restated in the form of the following corollary. Corollary 17.6.2. Let Y represent a matrix in a linear space V of m×n matrices, and let U and W represent essentially disjoint subspaces whose sum is V. Then U contains a unique matrix Z and W a unique matrix W such that Y Z + W. Suppose that a linear space V is the direct sum U ⊕ W of two subspaces U and W (as in Theorem 17.6.1). Then, as indicated by the theorem, there exists a unique matrix Z in U such that the difference between Y and Z is in W. This matrix (the matrix Z) is referred to as the projection of Y on U along W. The following theorem, which is easy to verify, relates the projection of Y on W along U to the projection of Y on U along W. Theorem 17.6.3. Let Y represent a matrix in a linear space V, and let U and W represent essentially disjoint subspaces whose sum is V. Then the projection of Y on W along U equals Y − Z, where Z is the projection of Y on U along W. The following theorem gives an explicit expression for the projection of a matrix Y (in a linear space V) on a subspace U along a subspace W (where V U ⊕ W) and also for the projection of Y on W along U. Theorem 17.6.4. Let Y represent a matrix in a linear space V of m × n matrices, and let U and W represent essentially disjoint subspaces whose sum is V. Further, let {U1 , . . . , Us } represent any set of matrices that spans U, let {W1 , . . . , Wt } represent any set of matrices that spans W, and define c1 , . . . , cs and k1 , . . . kt to be any scalars such that c1 U1 + · · · + cs Us + k1 W1 + · · · + kt Wt Y.
(6.4)
17.6 Projections Along a Subspace
401
Then the projection of Y on U along W equals c1 U1 +· · ·+cs Us , and the projection of Y on W along U equals k1 W1 + · · · + kt Wt . In connection with Theorem 17.6.4, note that the existence of scalars c1 , . . . , cs and k1 , . . . , kt that satisfy condition (6.4) is guaranteed by Lemma 17.1.1.
Proof (of Theorem 17.6.4). Clearly, si1 ci Ui ∈ U, and Y−
s i1
s
t
kj Wj ∈ W .
j 1
is (by definition) the projection of Y on U along W, and is (in light of Theorem 17.6.3) the projection of Y on W along U. Q.E.D. In the special case where n 1 (i.e., where V is a linear space of column vectors), Theorem 17.6.4 can be restated as the following corollary. Corollary 17.6.5. Let y represent a vector in a linear space V of m-dimensional column vectors, and let U and W represent essentially disjoint subspaces whose sum is V. Further, let U (u1 , . . . , us ) and W (w1 , . . . , wt ), where u1 , . . . , us are any vectors that span U and w1 , . . . , wt any vectors that span W, or, equivalently, let U represent any m × s matrix such that C(U) U and W any m × t matrix such that C(W) W. And define x∗ to be any solution to the linear system (U, W)x y [in an (s + t)–dimensional column vector x], and x∗1 partition x∗ as x∗ (where x∗1 has s elements). Then the projection of x∗2 y on U along W equals Ux∗1 , and the projection of y on W along U equals Wx∗2 . The following theorem, whose validity is apparent from result (6.1) and Theorems 12.5.8 and 17.6.3, establishes a connection to the results of Chapter 12 (on orthogonal projections). Theorem 17.6.6. Let Y represent a matrix in a linear space V, and let U represent a subspace of V. Then the projection of Y on U along U ⊥ equals the orthogonal projection of Y on U. And, the projection of Y on U ⊥ along U equals the orthogonal projection of Y on U ⊥ . The orthogonal projection of an m × n matrix Y on a subspace U (of a linear space V of m × n matrices) equals Y if and only if Y ∈ U — refer to the last part of Theorem 12.1.3. An extension of this result is given in the following lemma. Lemma 17.6.7. Let Y represent a matrix in a linear space V, let U and W represent essentially disjoint subspaces whose sum is V, and let Z represent the projection of Y on U along W. Then, Z Y if and only if Y ∈ U. (And Z 0 if and only if Y ∈ W.) Proof. If Z Y, then (since, by definition, Z ∈ U), Y ∈ U. Conversely, if Y ∈ U, then, since Y − Y 0 ∈ W, Z Y. (If Z 0, then Y Y − Z ∈ W; conversely, if Y ∈ W, then clearly Z 0.) Q.E.D. The following theorem can be regarded as an extension of Theorem 12.1.4. Thus,
t
i1 ci Ui
c i Ui
j 1 kj Wj
402
17. Intersections and Sums of Subspaces
Theorem 17.6.8. Let Y1 , . . . , Yp represent matrices in a linear space V, let U and W represent essentially disjoint subspaces whose sum is V, and let Z1 , . . . , Zp represent the projections of Y1 , . . . , Yp , respectively, on U along W. Then, for any scalars k1 , . . . , kp , the projection of the linear combination k1 Y1 + · · · + kp Yp on U along W is the corresponding linear combination k1 Z1 + · · · + kp Zp of Z1 , . . . , Zp . Proof. By definition, Zi ∈ U and Yi − Zi ∈ W (i 1, . . . , p). Thus, k1 Z1 + · · · + kp Zp ∈ U, and k1 Y1 + · · · + kp Yp − (k1 Z1 + · · · + kp Zp )
k1 (Y1 − Z1 ) + · · · + kp (Yp − Zp ) ∈ W.
We conclude that k1 Z1 + · · · + kp Zp is the projection of k1 Y1 + · · · + kp Yp on U along W. Q.E.D.
b. Two–dimensional example Let us find the projection of an m–dimensional column vector y on a subspace U of Rm along a subspace W of Rm in the special case where m 2, y (4, 8) , U sp{u}, and W sp{w}, with u (3, 1) and w (1, 4) . (Clearly, R2 U ⊕ W.) It follows from Corollary 17.6.5 that the projection of y on U along W equals x1∗ u and the projection of y on W along U equals x2∗ w, where x∗ x1∗ , x2∗ is any solution to the linear system
3 1 (u, w)x y ⇔ 1 4
x1 4 8 x2
(6.5)
[in the 2 × 1 vector x (x1 , x2 ) ]. The (unique) solution to linear system (6.5) is x (8/11, 20/11) , as is easily verified. Thus, the projection of y on U along W is the vector 3 24/11 (8/11) , 1 8/11 and the projection of y on W along U is the vector 1 20/11 (20/11) . 4 80/11 Both of these vectors are displayed in Figure 17.1. It is informative to compare Figure 17.1 with Figures 12.1 and 12.3; the latter figures depict the orthogonal projection of y on U (which is identical to the projection of y on U along U ⊥ ) and the orthogonal projection of y on U ⊥ (which is identical to the projection of y on U ⊥ along U).
i
ii
17.6 Projections Along a Subspace
405
Moreover, for any matrix A such that Ay is the projection of y on U along V for every y in Rn , we have that Ay Zy for every y, implying (in light of Lemma 2.3.2) that A Z. We conclude that there exists a unique matrix A such that Ay is the projection of y on U along V for every y ∈ Rn and that A Z. Q.E.D. Suppose that U and V are essentially disjoint subspaces (of Rn×1 ) whose sum is Rn×1 . Then, according to Theorem 17.6.9, there exists a unique matrix A (of dimensions n × n) such that Ay is the projection of y on U along V for every y ∈ Rn . This matrix is called the projection matrix for U along V. As an almost immediate consequence of Theorem 17.6.3, we have the following result. Theorem 17.6.10. Let U and V represent essentially disjoint subspaces (of Rn×1 ) whose sum is Rn×1 . Then, the projection matrix for V along U equals I − A, where A is the projection matrix for U along V. In light of Theorems 17.6.6, 17.6.10, 12.3.1, and 14.12.8, we have the following theorem, which establishes a connection to the results of Chapter 12 and Section 14.12. Theorem 17.6.11. Let X represent an n × p matrix. Then, the projection matrix for C(X) along C ⊥ (X) equals PX , which is the orthogonal projection matrix for C(X), and the projection matrix for C ⊥ (X) along C(X) equals I − PX . More generally, for any n × n symmetric positive definite matrix W, the projection matrix ⊥ for C(X) along CW (X) equals PX,W , which is the orthogonal projection matrix for ⊥ (X) along C(X) equals C(X) with respect to W, and the projection matrix for CW I − PX,W . The following theorem extends the results of Theorems 12.3.8 and 14.12.15. Theorem 17.6.12. If an n × n matrix A is the projection matrix for a subspace U of Rn×1 along a subspace V of Rn×1 (where U ⊕ V Rn×1 ), then U C(A) and V C(I − A). Proof. Suppose that A is the projection matrix for U along V. Then, for any y ∈ Rn , Ay is the projection of y on U along V and hence is in U. Thus, C(A) ⊂ U. Moreover, as a consequence of Lemma 17.6.7, we have that, for any y ∈ U, y Ay ∈ C(A). It follows that U ⊂ C(A) and hence [since C(A) ⊂ U] that U C(A). Further, since (in light of Theorem 17.6.10) I − A is the projection matrix for V along U, it follows from a similar argument that V C(I − A). Q.E.D. The following theorem expands on the results of Theorem 12.3.9 and Corollary 14.12.17. Theorem 17.6.13. An n×n matrix A is the projection matrix for some subspace U of Rn×1 along some subspace V of Rn×1 (where U ⊕ V Rn×1 ) if and only if A is idempotent. Proof. Suppose that A is idempotent. Then, according to Lemma 17.2.6, C(A) and C(I − A) are essentially disjoint. And every y in Rn is expressible as y Ay + (I − A)y. Thus, C(A) ⊕ C(I − A) Rn . Further, for every y in Rn , y − Ay (I − A)y, implying [since Ay ∈ C(A) and (I − A)y ∈ C(I − A)] that Ay is the projection of y on C(A) along C(I − A). It follows that A is the projection matrix for C(A) along C(I − A).
406
17. Intersections and Sums of Subspaces
Conversely, suppose that A is the projection matrix for some subspace U along some subspace V (where U ⊕ V Rn×1 ). Then it follows from Theorem 17.6.12 that C(A) U and C(I − A) V, implying that C(A) and C(I − A) are essentially disjoint and hence (in light of Lemma 17.2.6) that A is idempotent. Q.E.D. The results of Theorems 17.6.12 and 17.6.13 can be combined and (in light of Theorem 11.7.1) restated as the following theorem. Theorem 17.6.14. If an n × n matrix A is the projection matrix for a subspace U of Rn×1 along a subspace V of Rn×1 (where U ⊕V Rn×1 ), then A is idempotent, U C(A), and V C(I − A) N (A). And, if an n × n matrix A is idempotent, then C(A) ⊕ C(I − A) Rn [or, equivalently, C(A) ⊕ N (A) Rn ], and A is the projection matrix for C(A) along C(I − A) [or, equivalently, along N (A)].
17.7
Some Further Results on the Essential Disjointness and Orthogonality of Subspaces and on Projections and Projection Matrices
Let U and W represent two subspaces of Rn×1 . Recall (from Section 17.1) that if U and W are orthogonal, then they are essentially disjoint. Recall also that U and W can be essentially disjoint without being orthogonal with respect to the usual inner product (or with respect to whatever other inner product may have been adopted). Are essentially disjoint subspaces of Rn×1 necessarily orthogonal with respect to some inner product? This question is answered (in the affirmative) by the following theorem. Theorem 17.7.1. Let U and W represent essentially disjoint subspaces of Rn×1 . Further, letting s dim(U) and t dim(W) (and supposing that s > 0 and t > 0), take U to be any n × s matrix such that C(U) U, W to be any n × t matrix such that C(W) W, and Z to be any n× (n–s–t) matrix such that the n × n partitioned (U, W, Z) is nonsingular. Define B (U, W, Z)−1 , partition B matrix B1 as B B2 (where B1 has s rows and B2 has t rows), and let H B B or (more B3 generally) let H represent any matrix of the form H B1 A1 B1 + B2 A2 B2 + B3 A3 B3 , where A1 , A2 , and A3 are symmetric positive definite matrices. Then, U and W are orthogonal with respect to H. In connection with Theorem 17.7.1, observe (in light of Theorem 17.2.4) that rank(U, W) s + t [or, equivalently, that the columns of (U, W) are linearly independent], insuring (in light of Theorem 4.3.12) the existence of n–s–t ndimensional column vectors (the columns of Z) that, together with the columns of (U, W), form a basis for Rn (and hence form a set of n linearly independent vectors). Observe also that H B diag(A1 , A2 , A3 )B and that (according to Lemma 14.8.3) diag(A1 , A2 , A3 ) is positive definite, insuring (in light of Corollary 14.2.10) that
17.7 Some Further Results
407
H is positive definite. Further, in the degenerate special case of Theorem 17.7.1 n×1 where s + t n (or, equivalently, where U ⊕ W R ), interpret (U, W, Z) as B1 B1 (U, W), B2 as , and B1 A1 B1 +B2 A2 B2 +B3 A3 B3 as B1 A1 B1 +B2 A2 B2 . B2 B3 Proof (of Theorem 17.7.1). In light of Lemma 14.12.1, it suffices to show that U HW 0. By definition, B1 U B1 W B1 Z 0 Is 0 B2 U B2 W B2 Z B(U, W, Z) In 0 It 0 , B3 U B3 W B3 Z 0 0 In−s−t implying in particular that B1 W 0, B2 U 0, and B3 W 0. Thus, U HW U B1 A1 B1 W + (B2 U) A2 B2 W + U B3 A3 B3 W 0 + 0 + 0 0. Q.E.D. In discussing the implications of Theorem 17.7.1, it will be convenient to have at our disposal the following lemma. Lemma 17.7.2. Let U and W represent subspaces of a linear space V of m × n matrices. If U ⊥ W and if U + W V, then W U ⊥ and U W ⊥ . Proof. Suppose that U ⊥ W and that U + W V. Then, clearly, W ⊂ U ⊥ , and U ⊂ W ⊥ . Moreover, V and W are (in light of Lemma 17.1.9) essentially disjoint, implying (in light of Corollary 17.1.6) that dim(V) dim(U) + dim(W). Thus, making use of Theorem 12.5.12, we find that dim(W) dim(V) − dim(U) dim(U ⊥ ) and, similarly, that dim(U) dim(V) − dim(W) dim(W ⊥ ). We conclude (on the basis of Theorem 4.3.10) that W U ⊥ and that U W ⊥. Q.E.D. Let V represent a linear space of n × 1 vectors, and let U and W represent essentially disjoint subspaces whose sum is V. Then, according to Theorem 17.7.1, U and V are orthogonal with respect to some symmetric positive definite matrix H, implying (in light of Lemma 17.7.2) that W equals the orthogonal complement U ⊥ of U (where the orthogonality in the orthogonal complement is with respect to the bilinear form x Hy). Thus, it follows from Theorem 17.6.6 that, for any vector y in V, the projection of y on U along W equals the orthogonal projection of y on U with respect to H. Further, letting X represent any matrix such that C(X) U, it follows from Theorem 17.6.11 that, in the special case where V Rn×1 (and hence where U ⊕ W Rn×1 ), the projection matrix for U along W equals the orthogonal projection matrix PX,H for U with respect to H.
408
17. Intersections and Sums of Subspaces
Exercises Section 17.1 1. Let U and V represent subspaces of Rm×n . (a) Show that U ∪ V ⊂ U + V. (b) Show that U + V is the smallest subspace (of Rm×n ) that contains U ∪ V, or, equivalently [in light of Part (a)], show that, for any subspace W such that U ∪ V ⊂ W, U + V ⊂ W.
1 2. Let A 0 0 (b) a basis for C(A) ∪ C(B).
0 0 2 1 and B 1 1. Find (a) a basis for C(A) + C(B), 0 2 3 C(A) ∩ C(B), and (c) a vector in C(A) + C(B) that is not in
3. Let U, W, and X represent subspaces of a linear space V of matrices, and let Y represent an arbitrary matrix in V. (a) Show (1) that if Y ⊥ W and Y ⊥ X , then Y ⊥ (W + X ), and (2) that if U ⊥ W and U ⊥ X , then U ⊥ (W + X ). (b) Show (1) that (U +W)⊥ U ⊥ ∩W ⊥ and (2) that (U ∩W)⊥ U ⊥ +W ⊥ . 4. Let U, W, and X represent subspaces of a linear space V of matrices. (a) Show that (U ∩ W) + (U ∩ X ) ⊂ U ∩ (W + X ). (b) Show (via an example) that U ∩ W {0} and U ∩ X {0} does not necessarily imply that U ∩ (W + X ) {0}. (c) Show that if W ⊂ U, then (1) U + W U and (2) U ∩ (W + X ) W + (U ∩ X ). 5. Let U1 , U2 , . . . , Uk represent subspaces of Rm×n . Show that if, for j 1, 2, . . . , k, Uj is spanned by a (finite nonempty) set of (m × n) matrices (j ) U1 , . . . , Ur(jj ) , then U1 + U2 + · · · + Uk (2) (k) (1) (2) (k) sp(U(1) 1 , . . . , Ur1 , U1 , . . . , Ur2 , . . . , U1 , . . . , Urk ).
6. Let U1 , . . . , Uk represent subspaces of Rm×n . The k subspaces U1 , . . . , Uk are said to be independent if, for matrices U1 ∈ U1 , . . . , Uk ∈ Uk , the only solution to the matrix equation U1 + · · · + Uk 0 is U1 · · · Uk 0.
(E.1)
Exercises
409
(a) Show that U1 , . . . , Uk are independent if and only if, for i 2, . . . , k, Ui and U1 + · · · + Ui−1 are essentially disjoint. (b) Show that U1 , . . . , Uk are independent if and only if, for i 1, . . . , k, Ui and U1 + · · · + Ui−1 + Ui+1 + · · · + Uk are essentially disjoint. (c) Use the results of Exercise 3 [along with Part (a) or (b)] to show that if U1 , . . . , Uk are (pairwise) orthogonal, then they are independent. (d) Assuming that U1 , U2 , . . . , Uk are of dimension one or more and let(j ) ting {U1 , . . . , Ur(jj ) } represent any linearly independent set of matrices in Uj (j 1, 2, . . . , k), show that if U1 , U2 , . . . , Uk are independent, then (2) (k) (1) (2) (k) the combined set {U(1) 1 , . . . , Ur1 , U1 , . . . , Ur2 , . . ., U1 , . . . , Urk } is linearly independent. (e) Assuming that U1 , U2 , . . . , Uk are of dimension one or more, show that U1 , U2 , . . . , Uk are independent if and only if, for every nonnull matrix U1 in U1 , every nonnull matrix U2 in U2 , . . . , and every nonnull matrix Uk in Uk , U1 , U2 , . . . , Uk are linearly independent. (f) For j 1, . . . , k, let pj dim(Uj ), and let Sj represent a basis for
Uj (j 1, . . . , k). Define S to be the set of kj 1 pj matrices obtained by combining all of the matrices in S1 , . . . , Sk into a single set. Use the result of Exercise 5 [along with Part (d)] to show that (1) if U1 , . . . , Uk are independent, then S is a basis for U1 + . . . + Uk ; and (2) if U1 , . . . , Uk are not independent, then S contains a proper subset that is a basis for U1 + . . . + Uk . (g) Show that (1) if U1 , . . . , Uk are independent, then dim(U1 + · · · + Uk ) dim(U1 ) + · · · + dim(Uk ); and (2) if U1 , . . . , Uk are not independent, then dim(U1 + · · · + Uk ) < dim(U1 ) + · · · + dim(Uk ). Section 17.2 7. Let A1 , . . . , Ak represent matrices having the same number of rows, and let B1 , . . . , Bk represent matrices having the same number of columns. Adopting the terminology of Exercise 6, use Part (g) of that exercise to show (a) that if C(A1 ), . . . , C(Ak ) are independent, then rank(A1 , . . . , Ak ) rank(A1 ) + · · · + rank(Ak ), and if C(A1 ), . . . , C(Ak ) are not independent, then rank(A1 , . . . , Ak ) < rank(A1 ) + · · · + rank(Ak )
410
17. Intersections and Sums of Subspaces
and (b) that if R(B1 ), . . . , R(Bk ) are independent, then
B1 rank ... rank(B1 ) + · · · + rank(Bk ), Bk and if R(B1 ), . . . , R(Bk ) are not independent, then B1 rank ... < rank(B1 ) + · · · + rank(Bk ).
Bk 8. Show [by, e.g., using the result of Part (c)–(2) of Exercise 4 in combination with Corollary 17.2.9] that, for any m × n matrix A and any m × p matrix B, (a) C[(I − AA− )B] C(I − AA− ) ∩ C(A, B) and (b) C[(I − PA )B] N (A ) ∩ C(A, B). 9. Let A (T, U) and B (V, 0), where T is an m × p matrix, U an m × q matrix, and V an n × p matrix, and suppose that U is of full row rank. Show that R(A) and R(B) are essentially disjoint [even if R(T) and R(V) are not essentially disjoint]. 10. To what extent does formula (2.15) simplify in (a) the special case where C(T) and C(U) are essentially disjoint [but R(T) and R(V) are not necessarily disjoint] and (b) the special case where R(T) and R(V) are essentially disjoint. Section 17.3 11. Let T represent an m × p matrix, U an m × q matrix, and V an n × p matrix. Further, define ET I − TT− , FT I − T− T, X ETU, and Y VFT . T− − T− UX− ET is a generalized Show (a) that the partitioned matrix X− ET inverse of the partitioned matrix (T, U) and (b) that the partitioned matrix (T−− FT Y− VT− , FT Y− ) is a generalized inverse of the partitioned matrix T . Do so by applying formula (E.1) from Part (a) of Exercise 10.10 to the V T U T 0 partitioned matrices and and by making use of Theorem 0 0 V 0 17.3.3.
Exercises
411
12. Let T representan m × pmatrix, U an m × q matrix, and V an n × p G11 G12 matrix. And let (where G11 is of dimensions p × m) represent a G21 G22 T U generalized inverse of the partitioned matrix . Show that (a) if G11 is V 0 a generalized inverse of T and G12 a generalized inverse of V, then R(T) and R(V) are essentially disjoint, and (b) if G11 is a generalized inverse of T and G21 a generalized inverse of U, then C(T) and C(U) are essentially disjoint. Section 17.4 13. (a) Generalize Theorem 17.4.1 by showing that, for any subspaces U1 , . . . , Uk of Rm×n , dim(U1 + · · · + Uk )
dim(U1 ) + · · · + dim(Uk ) k − dim[(U1 + · · · + Ui−1 ) ∩ Ui ].
(E.2)
i2
(b) Generalize Theorem 17.4.2 by showing that, for any matrices A1 , . . . , Ak having the same number of rows, rank(A1 , . . . , Ak ) rank(A1 )
+ · · · + rank(Ak )
− ki2 dim[C(A1 , . . . Ai−1 ) ∩ C(Ai )]
and, for any matrices B1 , . . . , Bk having the same number of columns, B1 .. rank . rank(B1 ) + · · · + rank(Bk ) Bk
B1 − dim[R ... ∩ R(Bi )]. i2 Bi−1
k
Section 17.5 14. Show that, for any m × n matrix A, n × q matrix C, and q × p matrix B, rank{[I − CB(CB)− ]C[I − (AC)− AC]}
rank(A) + rank(C) − rank(AC) − n + rank{[I − CB(CB)− ](I − A− A)}.
[Hint. Apply equality (5.8) to the product A(CB), and make use of equality (5.5).]
412
17. Intersections and Sums of Subspaces
Section 17.6 15. Show that if an n × n matrix A is the projection matrix for a subspace U of Rn×1 along a subspace V of Rn×1 (where U ⊕ V Rn×1 ), then A is the projection matrix for V ⊥ along U ⊥ [where U ⊥ and V ⊥ are the orthogonal complements (with respect to the usual inner product and relative to Rn×1 ) of U and V, respectively]. 16. Show that, for any n × p matrix X, XX− is the projection matrix for C(X) along N (XX− ). 17. Let Y represent a matrix in a linear space V of m×n matrices, and let U1 , . . . , Uk represent subspaces of V. Adopting the terminology and using the results of Exercise 6, show that if U1 , . . . , Uk are independent and if U1 + · · · + Uk V, then (a) there exist unique matrices Z1 , . . . , Zk in U1 , . . . , Uk , respectively, such that Y Z1 +· · ·+Zk , and (b) for i 1, . . . , k , Zi equals the projection of Y on Ui along U1 + · · · + Ui−1 + Ui+1 + · · · + Uk . 18. Let U and W represent essentially disjoint subspaces (of Rn×1 ) whose sum is Rn×1 , and let U represent any n × s matrix such that C(U) U and W any n × t matrix such that C(W) = W. (a) Show that the n × (s + t) partitioned matrix (U, W) has a right inverse. (b) Taking to be an arbitrary right inverse of (U, W) and partitioning R as R R1 R (where R1 has s rows), show that the projection matrix for U R2 along W equals UR1 and that the projection matrix for W along U equals WR2 . 19. Let A represent the (n × n) projection matrix for a subspace U of Rn×1 along a subspace V of Rn×1 (where U ⊕ V Rn×1 ), let B represent the (n × n) projection matrix for a subspace W of Rn×1 along a subspace X of Rn×1 (where W ⊕ X Rn×1 ), and suppose that A and B commute (i.e., that BA= AB). (a) Show that AB is the projection matrix for U ∩ W along V + X . (b) Show that A + B – AB is the projection matrix for U + W along V ∩ X . [Hint for Part (b). Observe that I − (A + B − AB) (I − A)(I − B), and make use of Part (a).] 20. Let V represent a linear space of n-dimensional column vectors, and let U and W represent essentially disjoint subspaces whose sum is V. Then, an n × n matrix A is said to be a projection matrix for U along W if Ay is the projection of y on U along W for every y ∈ V — this represents an extension of the definition of a projection matrix for U along W given in Section 17.6d (in the special case where V Rn ). Further, let U represent an n × s matrix such that C(U) U, and let W represent an n × t matrix such that C(W) W.
Exercises
413
(a) Show that an n × n matrix A is a projection matrix for U along W if and only if AU U and AW 0 or,equivalently, if and only if A is a solution U U to the linear system B (in an n × n matrix B). W 0 (b) Establish the existence of a projection matrix for U along W. (c) Show that if A is a projection matrix for U along W, then I − A is a projection matrix for W along U (thereby generalizing Theorem 17.6.10). (d) Let X represent any n × p matrix whose columns span N (W ) or, equivalently, W ⊥ . Show that an n × n matrix A is a projection matrix for U along W if and only if A XR∗ for some solution R∗ to the linear system U XR U (in a p × n matrix R). Section 17.7 21. Let U1 , . . . , Uk represent independent subspaces of Rn×1 such that U1 + · · · + Uk Rn×1 (where the independence of subspaces is as defined in Exercise 6). Further, letting si dim(Ui ) (and supposing that si > 0), take Ui to be any n × si matrix such that C(Ui ) Ui (i 1, . . . , k). And define B B1 .. −1 (U1 , . . . , Uk ) , partition B as B . (where, for i 1, . . . , k, Bi has si Bk rows), and let H B B or (more generally) let H represent any matrix of the form H B1 A1 B1 + B2 A2 B2 + · · · + Bk Ak Bk , (E.3) where A1 , A2 , . . . , Ak are symmetric positive definite matrices. (a) Using the result of Part (g)-(1) of Exercise 6 (or otherwise), verify that the partitioned matrix (U1 , . . . , Uk ) is nonsingular (i.e., is square and of rank n). (b) Show that H is positive definite. (c) Show that (for j i 1, . . . , k) Ui and Uj are orthogonal with respect to H. (d) Using the result of Part(a)-(2) of Exercise 3 (or otherwise), show that, for i 1, . . . , k, (1) U1 + · · · + Ui−1 + Ui+1 + · · · + Uk equals the orthogonal complement Ui⊥ of Ui (where the orthogonality in the orthogonal complement is with respect to the bilinear form x Hy) and (2) the projection of any n × 1 vector y on Ui along U1 + · · · + Ui−1 + Ui+1 + · · · + Uk equals the orthogonal projection of y on Ui with respect to H. (e) Show that if, for j i 1, . . . , k, Ui and Uj are orthogonal with respect to some symmetric positive definite matrix H∗ , then H∗ is expressible in the form (E.3).
414
17. Intersections and Sums of Subspaces
Bibliographic and Supplementary Notes §2. Theorem 17.2.13 and its corollary (Corollary 17.2.14) are based on results given by C. R. Rao — refer, for example, to Section 1.3 of Rao’s (1989) paper. §5. The approach taken in Section 5 is essentially that taken by Marsaglia and Styan (1974) in their section 3. Section 4 is a prerequisite for Subsection b. §7. Section 7 (and Exercise 21) are based on results given by Rao and Mitra (1971, sec. 5.3).
18 Sums (and Differences) of Matrices
It is common in such areas of statistics as linear statistical models and Bayesian statistics to encounter matrices of the form R+STU, where the dimensions (number of rows and/or number of columns) of T are small relative to those of R and where R and possibly T are diagonal matrices or are of some other form that, for example, makes them easy to “invert.” Typically, there is a need to find the determinant, ordinary or generalized inverse, or rank of a matrix of this form and/or to solve a linear system having a coefficient matrix of this form. This chapter includes (in Sections 18.1a, 18.2d–e, and 18.5a) formulas that can be very useful in such a situation. It also includes (in the remainder of Sections 18.1, 18.2, and 18.5 and in Section 18.3) a wide variety of relatively basic results (having a myriad of applications in statistics) on the determinants, ordinary or generalized inverses, and ranks of sums, differences, or linear combinations of matrices and on the solution of a linear system whose coefficient matrix is a sum of matrices. Section 18.4 gives necessary and sufficient conditions for (square) matrices whose sum is idempotent to be individually idempotent. These conditions can be used to establish a classical result on the statistical distribution of quadratic forms that is due to Cochran (1934) and is known as Cochran’s theorem. This result can in turn be used to establish the conditions under which the sums of squares in a statistical analysis of variance are distributed independently as scalar multiples of central or noncentral chi-square random variables.
416
18.1
18. Sums (and Differences) of Matrices
Some Results on Determinants
a. Determinants of matrices of the form R + STU The following theorem gives a very useful formula for the determinant of the sum R + STU of an n × n nonsingular matrix R and the product STU of an n × m matrix S, m × m nonsingular matrix T, and m × n matrix U. Theorem 18.1.1. Let R represent an n × n matrix, S an n × m matrix, T an m × m matrix, and U an m × n matrix. If R and T are nonsingular, then |R + STU| |R| |T| |T−1 + UR−1 S| .
(1.1)
Proof. Suppose that R and T are nonsingular. Then, making use of Theorem 13.3.8, we find that R −S −1 −1 −1 −1 U T−1 |T | |R − (−S)(T ) U| |T | |R + STU| and also that R −S −1 −1 −1 −1 U T−1 |R| |T − UR (−S)| |R| |T + UR S| . Thus,
|T−1 | |R + STU| |R| |T−1 + UR−1 S| ,
or, equivalently (since |T−1 | 1/|T|),belowdisplayskip0bp |R + STU| |R| |T| |T−1 + UR−1 S| . Q.E.D. In the special case where R In and T Im , Theorem 18.1.1 simplifies to the following result. Corollary 18.1.2. For any n × m matrix S and any m × n matrix U, |In + SU| |Im + US| .
(1.2)
In the special case where m 1, Corollary 18.1.2 can be restated as the following corollary. Corollary 18.1.3. For any n–dimensional column vectors s {si } and u {ui }, |In + su | 1 + u s 1 + s u 1 +
n
s i ui .
(1.3)
i1
Corollary 18.1.3 reduces the problem of evaluating the determinant of an n × n matrix of the form In + su to one of evaluating a scalar-valued expression. More generally, Corollary 18.1.2 converts the problem of evaluating the determinant of an n × n matrix of the form In + SU into one of evaluating the determinant of an
18.1 Some Results on Determinants
417
m×m matrix (where m equals the number of columns in S and the number of rows in U), which can be advantageous if m < n. Still more generally, Theorem 18.1.1 converts the problem of evaluating the determinant of an n × n matrix of the form R + STU into one of evaluating the determinant and inverse of the n × n matrix R, the determinant and inverse of the m × m matrix T, and the determinant of a further m × m matrix — this can be advantageous if m < n and if |R|, |T|, R−1 , and T−1 are easy to obtain (as would be the case if, e.g., R and T were diagonal). In connection with Theorem 18.1.1, note that R + STU R + (ST)T−1 (TU) .
(1.4)
Upon applying formula (1.1) to the right side of equality (1.4) [i.e., applying formula (1.1) with ST, T−1 , and TU in place of S, T, and U, respectively] and observing that (T−1 )−1 T and |T−1 | 1/|T|, we obtain (as an additional corollary of Theorem 18.1.1) the following, alternative formula. Corollary 18.1.4. Let R represent an n × n matrix, S an n × m matrix, T an m × m matrix, and U an m × n matrix. If R and T are nonsingular, then |R + STU| |R| |T + TUR−1 ST|/|T| .
(1.5)
Finally, as a consequence of Theorem 18.1.1 and Corollary 18.1.4, we have the following corollary. Corollary 18.1.5. Let R represent an n × n matrix, S an n × m matrix, T an m × m matrix, and U an m × n matrix. Suppose that R and T are nonsingular. Then R + STU is nonsingular if and only if T−1 +UR−1 S is nonsingular or, equivalently, if and only if T + TUR−1 ST is nonsingular.
b. Some inequalities The following theorem gives a basic result on the determinant |A + B| of the sum of a symmetric positive definite matrix A and a symmetric nonnegative definite matrix B. Theorem 18.1.6. For any n × n symmetric positive definite matrix A and any n × n symmetric nonnegative definite matrix B, |A + B| ≥ |A|, with equality holding if and only if B 0. Proof. According to Corollary 14.3.8, there exists a matrix K such that B K K. Denote by r the number of rows in K; and (for i 1, . . . , r) let ki represent the ith row of K, and let Ki represent the i × n submatrix (of K) obtained by striking out the last r − i rows of K. Further, define A0 A and (for i 1, . . . , r) Ai A + Ki Ki . Observe (in light of Lemma 14.2.4 and Corollary 14.2.14) that Ai is symmetric and positive definite.
Ki−1 and hence that Ki Ki It is clear that (for i 2, . . . , r) Ki ki Ki−1 Ki−1 + ki ki . Thus, for i 1, . . . , r, Ai Ai−1 + ki ki Ai−1 + ki (1)ki ,
418
18. Sums (and Differences) of Matrices
and, applying formula (1.1), we find that −1 |Ai | |Ai−1 | |1| |1 + ki A−1 i−1 ki | |Ai−1 |(1 + ki Ai−1 ki ) .
Since (according to Corollary 14.2.11) A−1 i−1 is positive definite, we have (for i 1, . . . , r) that |Ai | ≥ |Ai−1 | , with equality holding if and only if ki A−1 i−1 ki 0 or, equivalently, if and only if ki 0. It is now clear that |Ar | ≥ |Ar−1 | ≥ · · · ≥ |A1 | ≥ |A0 | ,
(1.6)
|Ar | ≥ |A0 | .
(1.7)
implying that Further, equality holds in inequality (1.7) if and only if equality holds in all r of the inequalities (1.6). Thus, equality holds in inequality (1.7) if and only if k1 , . . . , kr are null, or, equivalently, if and only if K 0, and hence (in light of Corollary 5.3.2) if and only if B 0. Since clearly Ar A + B (and A0 A), we conclude that |A + B| ≥ |A| , with equality holding if and only if B 0. Q.E.D. Theorem 18.1.6 can be restated in the form of the following corollary. Corollary 18.1.7. For any n × n symmetric positive definite matrix A and for any n × n symmetric matrix C such that C − A is nonnegative definite, |C| ≥ |A| , with equality holding if and only if C A. Proof. Upon setting B C−A in Theorem 18.1.6 (and observing that C−A 0 ⇔ C A), we obtain Corollary 18.1.7. Q.E.D. A variation on Corollary 18.1.7 (in which the requirement that A be symmetric positive definite is replaced by the weaker requirement that A be symmetric nonnegative definite) is given by the following corollary. Corollary 18.1.8. For any n × n symmetric nonnegative definite matrix A and for any n × n symmetric matrix C such that C − A is nonnegative definite, |C| ≥ |A| ,
(1.8)
with equality holding if and only if C is singular or C A. Proof. Let us begin by observing (in light of Lemma 14.9.1) that |A| ≥ 0
(1.9)
and that, since C A + (C − A) (implying that C is nonnegative definite), |C| ≥ 0 .
(1.10)
18.2 Some Results on Inverses and Generalized Inverses and on Linear Systems
419
Now, consider the inequality |C| ≥ |A|. Either A is positive definite, or A is positive semidefinite. If A is positive definite, then it follows from Corollary 18.1.7 that |C| ≥ |A|. Alternatively, if A is positive semidefinite, then |A| 0, and it follows from inequality (1.10) that |C| ≥ |A|. It remains to show that |C| |A| if and only if C is singular or C A. If C A, then obviously |C| |A|. If C is singular, then |C| 0, which together with inequalities (1.8) and (1.9) implies that |C| |A|. Suppose now that |C| |A|. If A is positive definite, then it follows from Corollary 18.1.7 that C A. Alternatively, if A is positive semidefinite, then (in light of Lemma 14.9.1) |A| 0 and hence |C| 0, implying that C is singular. Q.E.D.
18.2
Some Results on Inverses and Generalized Inverses and on Linear Systems
a. Some basic results on (ordinary) inverses The following lemma gives a very basic (but useful) result on the inverse of a (nonsingular) sum of two (square) matrices. Lemma 18.2.1. Let A and B represent n × n matrices. If A + B is nonsingular, then (A + B)−1 A I − (A + B)−1 B , A(A + B)−1 I − B(A + B)−1 .
(2.1) (2.2)
Proof. Suppose that A + B is nonsingular. Then, clearly, (A + B)−1 A + (A + B)−1 B (A + B)−1 (A + B) I , and hence
(A + B)−1 A I − (A + B)−1 B .
Similarly, A(A + B)−1 + B(A + B)−1 (A + B)(A + B)−1 I , and hencebelowdisplayskip0bp A(A + B)−1 I − B(A + B)−1 . Q.E.D. In the special case where A I, Lemma 18.2.1 reduces to the following result. Corollary 18.2.2. For any (square) matrix B such that I + B is nonsingular, (I + B)−1
I − (I + B)−1 B
−1
I − B(I + B)
(2.3) .
(2.4)
420
18. Sums (and Differences) of Matrices
A further basic result on inverse matrices is given by the following lemma. Lemma 18.2.3. Let A represent an m × n matrix and B an n × m matrix. Then, In + BA is nonsingular if and only if Im + AB is nonsingular, in which case (In + BA)−1 B B(Im + AB)−1 .
(2.5)
Proof. That I + BA is nonsingular if and only if I + AB is nonsingular is evident from Corollary 18.1.5 (upon setting R In , S B, T Im , and U A). Suppose now that I + AB is nonsingular (in which case I + BA is also nonsingular), and observe that B(I + AB) (I + BA)B .
(2.6)
Then, upon premultiplying both sides of equality (2.6) by (I + BA)−1 and postmultiplying both sides by (I + AB)−1 , we obtain the equalitybelowdisplayskip0bp (I + BA)−1 B B(I + AB)−1 . Q.E.D. The following theorem establishes a relationship between the inverse of a (nonsingular) difference A − B between two nonsingular matrices A and B and the inverse of the difference A−1 − B−1 between A−1 and B−1 . Theorem 18.2.4. Let A and B represent n × n nonsingular matrices. Then, rank(A−1 − B−1 ) rank(B − A) rank(A − B) .
(2.7)
Further, A−1 − B−1 is nonsingular if and only if B − A is nonsingular (or, equivalently, if and only if A − B is nonsingular), in which case (A−1 − B−1 )−1
A + A(B − A)−1 A A − A(A − B)−1 A .
(2.8) (2.9)
Proof. Clearly, A−1 − B−1
(I − B−1 A)A−1 , B − A B(I − B−1 A) .
(2.10) (2.11)
Thus, recalling (from Corollary 8.3.3) that the premultiplication or postmultiplication of a matrix by a nonsingular matrix does not affect its rank [and observing that A − B −(B − A)], we find that rank(A−1 − B−1 ) rank(I − B−1 A) rank(B − A) rank(A − B) . It follows in particular that A−1 − B−1 is nonsingular if and only if B − A is nonsingular (or equivalently if and only if A − B is nonsingular). Suppose now that B − A is nonsingular (in which case I − B−1 A is also nonsingular). Then, observing [in light of equality (2.11)] that (B − A)−1 [B(I − B−1 A)]−1 (I − B−1 A)−1 B−1 ,
18.2 Some Results on Inverses and Generalized Inverses and on Linear Systems
421
we find [in light of equality (2.10)] that (A−1 − B−1 )[A + A(B − A)−1 A] (I − B−1 A)A−1 [A + A(I − B−1 A)−1 B−1 A] I − B−1 A + B−1 A I, thereby validating result (2.8) and also {since (A − B)−1 [−(B − A)]−1 −(B − A)−1 } result (2.9). Q.E.D.
b. Some basic results on generalized inverses Under what conditions is a generalized inverse (A + B)− of the sum of two m × n matrices A and B a generalized inverse of A and a generalized inverse of B? This question is addressed in the following theorem. Theorem 18.2.5. Let A and B represent m × n matrices. If R(A) and R(B) are essentially disjoint and if C(A) and C(B) are essentially disjoint, then any generalized inverse of A + B is a generalized inverse of A and a generalized inverse of B. Theorem 18.2.5 is an immediate consequence of the following result. Theorem 18.2.6. For any m × n matrices A and B, A A 0 (A + B)− (A, B) (2.12) B 0 B [or, equivalently, A(A + B)− A A, B(A + B)− B B, A(A + B)− B 0, and B(A + B)− A 0] if and only if R(A) and R(B) are essentially disjoint and C(A) and C(B) are essentially disjoint. Proof (of Theorem 18.2.6). Suppose that R(A) and R(B) are essentially disjoint and C(A) and C(B) are essentially disjoint. And observe that A(A + B)− A + A(A + B)− B + B(A + B)− A + B(A + B)− B (A + B)(A + B)− (A + B) A + B and hence that A(A + B)− A + B(A + B)− A − A B − A(A + B)− B − B(A + B)− B . (2.13) Since the left side of equality (2.13) is expressible in the form KA for some matrix K and the right side is expressible in the form LB for some matrix L, it follows from Part (2) of Corollary 17.2.3 that A(A + B)− A + B(A + B)− A − A 0, B − A(A + B)− B − B(A + B)− B 0, or, equivalently, that B(A + B)− A A − A(A + B)− A, A(A + B)− B B − B(A + B)− B .
(2.14) (2.15)
422
18. Sums (and Differences) of Matrices
And, since the right side of equality (2.14) is expressible in the form AK for some matrix K and the right side of equality (2.15) is expressible in the form BL for some matrix L, it follows from Part (1) of Corollary 17.2.3 that B(A + B)− A 0, A − A(A + B)− A 0, A(A + B)− B 0, B − B(A + B)− B 0, or, equivalently, that A 0 A . (A + B)− (A, B) 0 B B Conversely, suppose that A 0 A − . (A + B) (A, B) 0 B B Then, making use of Corollary 4.4.5 and inequality (4.5.1), we find that
A 0 A rank(A) + rank(B) rank rank (A + B)− (A, B) 0 B B ≤ rank(A, B) ≤ rank(A) + rank(B) and hence that rank(A, B) rank(A) + rank(B) . It can be established in similar fashion that A rank rank(A) + rank(B) . B We conclude, on the basis of Theorem 17.2.4, that C(A) and C(B) are essentially disjoint and R(A) and R(B) are essentially disjoint. Q.E.D.
c. A result on linear systems of the form (A + B)X C + D (in X) Under what conditions is a solution to a linear system of the form (A+B)X C+D (in X) a solution to the linear system AX C and to the linear system BX D? This question is addressed in the following theorem. Theorem 18.2.7. Let A and B represent m×n matrices, and let C and D represent m×p matrices such that C(C) ⊂ C(A) and C(D) ⊂ C(B). (1) If R(A) and R(B) are essentially disjoint, then the linear system (A + B)X C + D (in X) is consistent. (2) If C(A) and C(B) are essentially disjoint, then any solution to the linear system (A + B)X C + D is a solution to the linear system AX C and also to the linear system BX D. Proof. (1) Suppose that R(A) and R(B) areessentially Then it follows disjoint. A C from Theorem 17.3.2 that the linear system X (in X) is consistent B D
18.2 Some Results on Inverses and Generalized Inverses and on Linear Systems
423
and hence has a solution, say X∗ . Thus, AX∗ C and BX∗ D, implying that (A+B)X∗ C+D, so that X∗ is a solution to the linear system (A+B)X C+D. And we conclude that the linear system (A + B)X C + D is consistent. (2) Suppose that C(A) and C(B) are essentially disjoint, and let X∗ represent any solution to the linear system (A + B)X C + D. Then, AX∗ + BX∗ C + D, and a solution to the linear system AX1 + BX2 C + D (in n × p matrices X1 and X2 ) is obtained by setting X1 X2 X∗ . We conclude, on the basis of Theorem 17.3.1, that X∗ is a solution to the linear system AX C and also to the linear system BX D. Q.E.D.
d. (Ordinary) inverses of matrices of the form R + STU Let R represent an n × n matrix, S an n × m matrix, T an m × m matrix, and U an m × n matrix. And suppose that R and T are nonsingular. Then result (1.1) [or (1.5)] can be used to express the determinant of R + STU in terms of the determinants of R, T, and T−1 + UR−1 S [or T + TUR−1 ST]. Can the inverse of R + STU (assuming that R + STU is nonsingular) be expressed in a comparable way? In what follows, the answer to this question is shown to be yes. Suppose now that R + STU is nonsingular, and let A TUR−1 . Then, since R + STU (I + SA)R (and since, e.g., the premultiplication or postmultiplication of a matrix by a nonsingular matrix does not affect its rank), I + SA is nonsingular, and (R + STU)−1 R−1 (I + SA)−1 . (2.16) Further, it follows from Corollary 18.2.2 that (I + SA)−1 I − (I + SA)−1 SA .
(2.17)
And it follows from Lemma 18.2.3 that I + AS ( I + TUR−1 S) is nonsingular and that (I + SA)−1 S S(I + AS)−1 . (2.18) Substituting expression (2.18) into expression (2.17) and then substituting the resultant expression into expression (2.16), we find that (R + STU)−1
R−1 [I − S(I + AS)−1 A] R−1 − R−1 S(I + AS)−1 TUR−1 .
(2.19)
And, since I + AS T(T−1 + UR−1 S) and since also I + AS (T + TUR−1 ST)T−1 , T−1 + UR−1 S and T + TUR−1 ST are nonsingular, and (I + AS)−1
(T−1 + UR−1 S)−1 T−1 T(T + TUR−1 ST)−1 .
Substituting expression (2.20) into expression (2.19), we obtain (R + STU)−1 R−1 − R−1 S(T−1 + UR−1 S)−1 UR−1 .
(2.20) (2.21)
424
18. Sums (and Differences) of Matrices
Alternatively, substituting expression (2.21) into expression (2.19), we obtain (R + STU)−1 R−1 − R−1 ST(T + TUR−1 ST)−1 TUR−1 . In summary, we have the following theorem (which incorporates the content of Corollary 18.1.5). Theorem 18.2.8. Let R represent an n × n matrix, S an n × m matrix, T an m × m matrix, and U an m × n matrix. Suppose that R and T are nonsingular. Then, R + STU is nonsingular if and only if T−1 + UR−1 S is nonsingular, or, equivalently, if and only if T + TUR−1 ST is nonsingular, in which case (R + STU)−1
R−1 − R−1 S(T−1 + UR−1 S)−1 UR−1 R−1 − R−1 ST(T + TUR−1 ST)−1 TUR−1 .
(2.22) (2.23)
Some special cases of Theorem 18.2.8 are given in the following three corollaries. Corollary 18.2.9. Let S represent an n × m matrix and U an m × n matrix. Then, In + SU is nonsingular if and only if Im + US is nonsingular, in which case (In + SU)−1 In − S(Im + US)−1 U .
(2.24)
Corollary 18.2.10. Let R represent an n × n nonsingular matrix, and let s and u represent n-dimensional column vectors. Then, R + su is nonsingular if and only if u R−1 s −1, in which case (R + su )−1 R−1 − (1 + u R−1 s)−1 R−1 su R−1 .
(2.25)
Corollary 18.2.11. Let s {si } and u {ui } represent n-dimensional column vectors. Then,
I + su is nonsingular if and only if u s −1 (or, equivalently, if and only if i si ui −1), in which case (I + su )−1 I − (1 + u s)−1 su I − 1 +
−1 si u i
su .
(2.26)
i
Formula (2.25) is generally attributed to Sherman and Morrison (1949 and 1950) and/or to Bartlett (1951). The more general formulas (2.22) and (2.23) are often attributed to Woodbury (1950), and one or the other of them is sometimes referred to as Woodbury’s formula [although a formula that is essentially the same as formula (2.22) was given earlier by Duncan (1944) and by Guttman (1946)]. Refer to Henderson and Searle (1981a) for additional information about the history of formulas (2.22) and (2.23). Depending upon the circumstances, formula (2.22) or (2.23) can be used to great advantage in the inversion of a (nonsingular) matrix of the form R + STU. The circumstances under which the use of formula (2.22) can be advantageous are similar to the circumstances (discussed in Section 18.1a) under which the use of formula (1.1) (for the determinant of R + STU) can be advantageous. Specifically,
18.2 Some Results on Inverses and Generalized Inverses and on Linear Systems
425
the use of formula (2.22) can be advantageous if the dimensions of T−1 + UR−1 S (or, equivalently, of T) are small relative to those of R + STU (or, equivalently, of R) and if R−1 and T−1 are easy to obtain. Formula (2.23) calls for more matrix multiplications than formula (2.22), but does not call for the inversion of T. Formulas (2.22) and (2.23) were derived by making use of Corollary 18.2.2 and Lemma 18.2.3. An alternative derivation of these formulas is obtained by applying Theorem 8.5.11 (on the inverse of a partitioned matrix) to the partitioned matrices R −S R −ST and . TU T U T−1 R −S −1 −1 If T +UR S is nonsingular, then (according to Theorem 8.5.11) U T−1 is nonsingular, R + STU is also nonsingular, and (R + STU)−1 ST (R + STU)−1 −TU(R + STU)−1 T − TU(R + STU)−1 ST −1 R −S U T−1 −1 R − R−1 S(T−1 + UR−1 S)−1 UR−1 R−1 S(T−1 + UR−1 S)−1 , −(T−1 + UR−1 S)−1 UR−1 (T−1 + UR−1 S)−1 implying in particular that (R + STU)−1 R−1 − R−1 S(T−1 + UR−1 S)−1 UR−1 . R −ST −1 is nonsingular, Similarly, if T + TUR ST is nonsingular, then TU T R + STU is also nonsingular, and (R + STU)−1 S (R + STU)−1 −U(R + STU)−1 T−1 − U(R + STU)−1 S −1 R −ST TU T −1 R − R−1 ST(T −1 −1 −1 R ST(T + TUR ST) +TUR−1 ST)−1 TUR−1 , −(T + TUR−1 ST)−1 TUR−1
(T + TUR−1 ST)−1
implying in particular that (R + STU)−1 R−1 − R−1 ST(T + TUR−1 ST)−1 TUR−1 . Either of the two formulas (2.22) and (2.23) can be obtained as a “special case” of the other. To see this, reexpress R + STU as R + STU R + (ST)T−1 (TU) .
426
18. Sums (and Differences) of Matrices
Then, applying formula (2.22) with ST, T−1 , and TU in place of S, T, and U, respectively, we obtain (R + STU)−1
R−1 − R−1 ST[(T−1 )−1 + TUR−1 ST]−1 TUR−1
R−1 − R−1 ST(T + TUR−1 ST)−1 TUR−1 .
Similarly, applying formula (2.23) with ST, T−1 , and TU in place of S, T, and U, respectively, we obtain (R + STU)−1
R−1 − R−1 STT−1 (T−1 +T−1 TUR−1 STT−1 )−1 T−1 TUR−1
R−1 − R−1 S(T−1 + UR−1 S)−1 UR−1 .
e. Generalized inverses of matrices of the form R + STU Let R represent an n × q matrix, S an n × m matrix, T an m × p matrix, and U a p × q matrix. In the special case where R, T, and T + TUR−1 ST are nonsingular, R + STU is nonsingular, and formula (2.23) gives the inverse of R + STU in terms of the inverses of R and T + TUR−1 ST. Consider now the general case where R and T may not be nonsingular or even square. Does the expression obtained from formula (2.23) by replacing R−1 and (T + TUR−1 ST)−1 with generalized inverses R− and (T + TUR− ST)− give a generalized inverse of R + STU? That is, is the matrix R− − R− ST(T + TUR− ST)− TUR− necessarily a generalized inverse of R + STU? To answer this question, let D STU and Q T + TUR− ST, and observe that (R + D)R− ST RR− ST + S(Q − T) SQ − (I − RR− )ST, TUR− (R + D) TUR− R + (Q − T)U QU − TU(I − R− R), SQU D + DR− D, so that (R + D)(R− − R− STQ− TUR− )(R + D) R + DR− R + RR− D + DR− D − (R + D)R− STQ− TUR− (R + D) R + DR− R + RR− D + DR− D −[SQ − (I − RR− )ST]Q− [QU − TU(I − R− R)] R + DR− R + RR− D + DR− D − SQU + SQQ− TU(I − R− R) + (I − RR− )STQ− QU − (I − RR− )STQ− TU(I − R− R) R + DR− R + RR− D + DR− D − D − DR− D + SQQ− TU(I − R− R) + (I − RR− )STQ− QU − (I − RR− )STQ− TU(I − R− R)
18.2 Some Results on Inverses and Generalized Inverses and on Linear Systems
427
R + D − STU(I − R− R) − (I − RR− )STU + SQQ− TU(I − R− R) + (I − RR− )STQ− QU − (I − RR− )STQ− TU(I − R− R) R + D − S(I − QQ− )TU(I − R− R) − (I − RR− )ST(I − Q− Q)U −(I − RR− )STQ− TU(I − R− R). Thus, we have the following theorem. Theorem 18.2.12. Let R represent an n × q matrix, S an n × m matrix, T an m × p matrix, and U a p × q matrix, and define Q T + TUR− ST. Then, the matrix (2.27) R− − R− STQ− TUR− is a generalized inverse of the matrix R + STU if and only if S(I − QQ− )TU(I − R− R) + (I − RR− )ST(I − Q− Q)U +(I − RR− )STQ− TU(I − R− R) 0 .
(2.28)
It is clear (in light of Lemma 9.3.5) that condition (2.28) is satisfied if R(TU) ⊂ R(R) and C(ST) ⊂ C(R). In fact, condition (2.28) is satisfied if R(STU) ⊂ R(R) and C(STU) ⊂ C(R), as is evident from the following lemma. Lemma 18.2.13. Let R represent an n×q matrix, S an n×m matrix, T an m×p matrix, and U a p × q matrix, and define Q T + TUR− ST. If R(STU) ⊂ R(R) and C(STU) ⊂ C(R), then (I − QQ− )TU(I − R− R) 0 ,
(2.29)
−
−
(I − RR )ST(I − Q Q) 0 , −
−
(2.30)
−
(I − RR )STQ TU(I − R R) 0 . −
(2.31)
−
Proof. Let D STU, and observe that QQ (T + TUR ST) T + TUR− ST, or, equivalently, that (I − QQ− )T −(I − QQ− )TUR− ST, and hence that (I − QQ− )TU −(I − QQ− )TUR− D .
(2.32)
It can be shown in similar fashion that ST(I − Q− Q) −DR− ST(I − Q− Q) . Further,
(2.33)
(T + TUR− ST)Q− (T + TUR− ST) T + TUR− ST ,
or, equivalently, TQ− T T + TUR− ST −TUR− STQ− T −TQ− TUR− ST − TUR− STQ− TUR− ST , implying that STQ− TU D + DR− D − DR− STQ− TU −STQ− TUR− D − DR− STQ− TUR− D .
(2.34)
428
18. Sums (and Differences) of Matrices
And, if R(D) ⊂ R(R) and C(D) ⊂ C(R) [in which case D(I − R− R) 0 and (I−RR− )D 0], results (2.29) – (2.31) follow from results (2.32) – (2.34). Q.E.D. In light of Lemma 18.2.13, we have (as a consequence of Theorem 18.2.12) the following result. Theorem 18.2.14. Let R represent an n × q matrix, S an n × m matrix, T an m × p matrix, and U a p × q matrix. If R(STU) ⊂ R(R) and C(STU) ⊂ C(R), then the matrix R− − R− ST(T + TUR− ST)− TUR− is a generalized inverse of the matrix R + STU. Observe (in connection with Theorem 18.2.14) that R+STU can be reexpressed as R + STU R + (ST)T− (TU) . Thus, applying Theorem 18.2.14 with ST, T− , and TU in place of S, T, and U, respectively, we obtain the following corollary, which generalizes result (2.22). Corollary 18.2.15. Let R represent an n × q matrix, S an n × m matrix, T an m × p matrix, and U a p × q matrix. If R(STU) ⊂ R(R) and C(STU) ⊂ C(R), then the matrix R− − R− STT− (T− + T− TUR− STT− )− T− TUR− is a generalized inverse of the matrix R + STU.
f. An infinite-series representation of the inverse of a matrix of the form I − A Let A1 , A2 , . . . represent a sequence of m × n matrices, and (for i 1, . . . , m, j 1, . . . n, and k 1, 2, . . .) let aij(k) represent the ij th element of Ak . If for every i and j (i.e., if for i 1, . . . , m and j 1, . . . , n) there exists a scalar aij such that aij is the limit of the sequence aij(1) , aij(2) , . . ., we say that the m × n matrix A, whose ij th element is aij , is the limit of the sequence A1 , A2 , . . . (or that the sequence A1 , A2 , . . . converges to A), and write limk→∞ Ak A (or Ak → A). If the sequence A1 , A2 , . . . has a limit, it is said to be convergent. If the sequence A1 , A2 , . . . does not have a limit (i.e., if for some i and j the sequence aij(1) , aij(2) , . . . does not have a limit), it is said to be divergent. Four basic properties of sequences of matrices (which are almost immediate consequences of basic properties of sequences of scalars) are as follows: (1) For any m × n matrix A, the sequence A, A, . . . (each of whose members equals A) converges to A. (2) For any scalar c (including c −1) and for any sequence A1 , A2 , . . . of m × n matrices that converge to an (m × n) matrix A, lim (cAk ) cA. k→∞
(3) If A1 , A2 , . . . and B1 , B2 , . . . are sequences of m × n matrices that converge to (m × n) matrices A and B, respectively, then lim (Ak + Bk ) A + B .
k→∞
(2.35)
18.2 Some Results on Inverses and Generalized Inverses and on Linear Systems
429
(4) If A1 , A2 , . . . is a sequence of m × n matrices that converges to an (m × n) matrix A and B1 , B2 , . . . a sequence of n × p matrices that converges to an (n × p) matrix B, then lim Ak Bk AB .
k→∞
(2.36)
Results (2.35) and (2.36) extend in a straightforward way to an arbitrary (finite) number of sequences of matrices. Corresponding to any sequence A1 , A2 , . . . of m×n matrices is another sequence S1 , S2 ,
. . ., where S1 A1 , S2 A1 + A2 , and more generally (for k 1, 2, . . .) Sk ki1 Ai . The sequence S1 , S2 , . . . is referred to as the infinite series (or simply as the series) generated by the sequence A1 , A2 , . . .. Further, the matrix Ak is referred to as the kth term of the infinite series, and the matrix Sk is referred to as the kth partial sum. And, if the infinite series S1 , S2 , . . . converges, its
limit is referred to as the sum of the infinite series and is denoted by the symbol ∞ k1 Ak or by the expression A1 + A2 + . . ..
It is convenient to use the symbol ∞ k1 Ak , or the expression A1 + A2 + . . ., not only to represent the sum of the infinite series generated by the sequence A1 , A2 , . . . (when the infinite series converges) but also to represent the infinite series itself —
the intended usage must be determined from the context. Further, the symbol ∞ kp Ak (or the expression Ap + Ap+1 + . . .) is used to represent an infinite series (Ap , Ap + Ap+1 , . . .) generated by a sequence Ap , Ap+1 , . . . of m × n matrices and also to represent the sum of that infinite series (where p is an integer, not necessarily equal to 1). The following theorem gives a useful result on the inversion of a matrix of the form I − A. Theorem 18.2.16. Let A represent an n × n matrix. Then, the infinite series I + A + A2 + A3 + . . . converges if and only if limk→∞ Ak 0, in which case I − A is nonsingular and (I − A)−1
∞
Ak I + A + A 2 + A 3 + . . .
(2.37)
k0
(where A0 I). Preliminary to proving Theorem 18.2.16, it is convenient to establish the following lemma. Lemma 18.2.17.
Let A0 , A1 , A2 , . . . represent a sequence of m × n matrices. If the infinite series ∞ k0 Ak converges, then lim
k→∞ Ak 0. Proof (of Lemma 18.2.17). Suppose that ∞ k0 Ak converges. And, for k
k A . Then (in light of our supposition) the sequence 0, 1, 2, . . ., let Sk i i0 S0 , S1 , S2 , . . . has a limit, say S. Thus, observing that (for k 1, 2, . . .) Ak Sk − Sk−1 and that limk→∞ Sk−1 S, it follows thatbelowdisplayskip0bp lim Ak lim (Sk − Sk−1 ) lim Sk − lim Sk−1 S − S 0 .
k→∞
k→∞
k→∞
k→∞
430
18. Sums (and Differences) of Matrices
Q.E.D. Proof (of Theorem 18.2.16). If the infinite series I+A+A2 +A3 +. . . converges, then it is clear from Lemma 18.2.17 that limk→∞ Ak 0. Conversely, suppose that limk→∞ Ak 0. And observe that
and that
(I + A + A2 + · · · + Ak )(I − A) I − Ak+1
(2.38)
lim (I − Ak+1 ) I − lim Ak+1 I − 0 I .
(2.39)
k→∞
k→∞
Then, for any n × 1 vector x such that (I − A)x 0, we find that (I − Ak+1 )x (I + A + A2 + · · · + Ak )(I − A)x 0 (k 0, 1, 2, . . .) and consequently that x Ix [ lim (I − Ak+1 )]x lim (I − Ak+1 )x lim 0 0 . k→∞
k→∞
k→∞
Thus, I − A is nonsingular. Further, postmultiplying both sides of equality (2.38) by (I − A)−1 , we obtain the equality I + A + A2 + · · · + Ak (I − Ak+1 )(I − A)−1 .
k And, in light of result (2.39), we conclude that the infinite series ∞ k0 A converges and thatbelowdisplayskip0bp ∞
Ak
k−0
lim (I − Ak+1 )(I − A)−1
k→∞
[ lim (I − Ak+1 )](I − A)−1 I(I − A)−1 (I − A)−1 . k→∞
Q.E.D. Theorem 18.2.16 can be generalized as follows. Theorem 18.2.18. Let A and B represent n × n matrices. Suppose that B is nonsingular, and define F B−1 A. Then the infinite series B−1 +FB−1 +F2 B−1 + F3 B−1 + . . . converges if and only if limk→∞ Fk 0, in which case B − A is nonsingular and (B − A)−1
∞
Fk B−1 B−1 + FB−1 + F2 B−1 + F3 B−1 + . . .
(2.40)
k0
(where F0 I).
k −1 Proof. If the infinite series ∞ converges, then, as a consequence of k0 F B k −1 Lemma 18.2.17, limk→∞ F B 0, and hence lim Fk lim Fk B−1 B ( lim Fk B−1 )B 0B 0 .
k→∞
k→∞
k→∞
18.2 Some Results on Inverses and Generalized Inverses and on Linear Systems
431
Conversely, suppose that limk→∞ Fk 0. Then, it follows from Theorem 18.2.16 that I − F is nonsingular and that (I − F)−1
∞
Fk .
k0
Further, B − A B(I − F), implying (since B is nonsingular) that B − A is nonsingular and [in light of result (2.36)] thatbelowdisplayskip0bp ∞ −1 −1 −1 k F B−1 (B − A) (I − F) B
k0
lim
p→∞
lim
p→∞
p
F
k
B−1
k0
p
Fk B−1
k0
∞
Fk B−1 .
k0
Q.E.D. Formula (2.37) is applicable if (and only if) limk→∞ Ak 0, and, more generally, formula (2.40) is applicable if (and only if) limk→∞ Fk 0. Depending on the nature of A (or F), it may be difficult to determine whether the condition limk→∞ Ak 0 (or the condition limk→∞ Fk 0) is satisfied. A condition that is more stringent, but that is typically easier to check, can be obtained from the following theorem. Theorem 18.2.19. Let A represent an n × n matrix. If A < 1 (where the norm is the usual norm), then limk→∞ Ak 0. Preliminary to proving Theorem 18.2.19, it is convenient to establish the following two lemmas, which are of some interest in their own right. Lemma 18.2.20. Let A1 , A2 , . . . represent a sequence of m × n matrices. Then, A1 , A2 , . . . converges to an (m × n) matrix A if and only if Ak − A → 0 (where the norm is the usual norm). Proof (of Lemma 18.2.20). Let aij represent the ij th element of A, and (for k 1, 2, . . .) let aij(k) represent the ij th element of Ak . Then, it is clear from the very definition of the usual norm that (for k 1, 2, . . .) max |aij(k) − aij | ≤ Ak − A ≤ (mn)1/2 max |aij(k) − aij | . i,j
i,j
(2.41)
Suppose now that Ak − A → 0. Then, corresponding to each positive scalar *, there exists a positive integer p such that, for k > p, Ak − A < * and hence [in light of result (2.41)] such that, for k > p (and for i 1, . . . , m and j 1, . . . , n), |aij(k) − aij | < *. Thus, limk→∞ aij(k) aij (for i 1, . . . , m and j 1, . . . , n), and consequently Ak → A. Conversely, suppose that Ak → A. Then, by definition, aij(k) → aij (for i 1, . . . , m and j 1, . . . , n). Thus, corresponding to any positive scalar *, there exists a positive integer p such that, for k > p (and for i 1, . . . , m and j
432
18. Sums (and Differences) of Matrices
1, . . . , n), |aij(k) − aij | < (mn)−1/2 * and hence [in light of result (2.41)] such that, for k > p, Ak − A < *. Thus, Ak − A → 0. Q.E.D. Lemma 18.2.21. For any m × n matrix A and n × p matrix B, AB ≤ A B (where the norms are the usual norms). Proof (of Lemma 18.2.21). Denote the first, . . . , pth columns of B by b1 , . . . , bp , respectively. Then, the j th column of AB is Abj , and [in light of result (5.2.5)] we have that AB2 tr[(AB) AB]
p
(Abj ) Abj .
(2.42)
j 1
Further, letting ai represent the ith row of A (for i 1, . . . , m) and making use of inequality (6.3.2) (the Schwarz inequality), we find that (for j 1, . . . , p) (Abj ) Abj
m i1
(ai bj )2 ≤
m i1
(ai ai )(bj bj ) A2 bj bj .
(2.43)
And, upon combining result (2.43) with result (2.42), we obtain AB2 ≤ A2
p j 1
bj bj A2 B2 ,
or, equivalently,belowdisplayskip0bp AB ≤ A B . Q.E.D. Proof (of Theorem 18.2.19). By making repeated use of Lemma 18.2.21, we find that (for any positive integer k) Ak ≤ Ak .
(2.44)
Suppose now that A < 1. Then it follows from a basic result on limits [which is example 14.8(c) in Bartle’s (1976) book] that Ak → 0, implying [in light of inequality (2.44)] that Ak → 0. We conclude, on the basis of Lemma 18.2.20, Q.E.D. that limk→∞ Ak 0.
18.3 Some Results on Positive (and Nonnegative) Definiteness a. Matrices of the form V +
k
i1
xi Ai
The following theorem gives a basic result on matrices of the form V + ki1 xi Ai (where V is symmetric and positive definite and A1 , . . . , Ak are symmetric).
18.3 Some Results on Positive (and Nonnegative) Definiteness
433
Theorem 18.3.1. Let V represent an n × n symmetric positive definite matrix, and let A1 , . . . , Ak represent k symmetric matrices of order n. And let x {xi } represent a k × 1 vector. Then there exists a neighborhood N of the k × 1 null vector 0 such that, for x ∈ N, V + ki1 xi Ai is (symmetric) positive definite. Proof. For s 1, . . . , n, let A1(s) , . . . , Ak(s) , and V(s) represent the s × s leading principal submatrices of
A1 , . . . , Ak and V, respectively. Then, when regarded as a function of x, |V(s) + ki1 xi Ai(s) | is continuous at 0 (and at every other point in Rk ), as is evident from the very definition of a determinant [given by formula (13.1.2) or (13.1.6)]. Thus, lim |V(s) +
x→0
k i1
xi Ai(s) | |V(s) +
k i1
0Ai(s) | |V(s) | .
(s) And, since (according to Theorem 14.9.5)
k |V |(s)> 0, there exists a neighborhood (s) Ns of 0 such that, for x ∈ Ns , |V + i1 xi Ai | > 0. Now, take N to be the smallest of the n neighborhoods N1 , . . . Nn . Then, for x ∈
| > 0, . . . , |V(n) + ki1 xi Ai(n) | > 0. And, observing that N, |V(1) + ki1 xi A(1) i
(n) V(1) + ki1 xi A(1) + ki1 xi Ai(n) are the leading principal submatrices i ,...,V
k of V + i1 xi Ai , we conclude (on the basis of Theorem 14.9.5) that, for x ∈ N ,
V + ki1 xi Ai is positive definite. Q.E.D. In the special case where k 1, Theorem 18.3.1 can be restated as the following corollary. Corollary 18.3.2. Let A represent an n×n symmetric matrix, and let V represent an n × n symmetric positive definite matrix. Then there exists a (strictly) positive scalar c such that V + xA is (symmetric) positive definite for every scalar x in the interval −c < x < c. The following corollary gives a variation on Corollary 18.3.2. Corollary 18.3.3. Let A represent an n×n symmetric matrix, and let V represent an n × n symmetric positive definite matrix. Then there exists a scalar c such that A + xV is (symmetric) positive definite for every (scalar) x > c. Proof. Let w represent an arbitrary scalar. Then it follows from Corollary 18.3.2 that there exists a (strictly) positive scalar d such that V + wA is positive definite for −d < w < d. And, since x > 1/d ⇒ 0 < 1/x < d and since (for x 0) A + xV x[V + (1/x)A], it follows from Lemma 14.2.3 that A + xV is positive definite for x > 1/d. Q.E.D.
b. Matrices of the form A−1 − B−1 The following theorem gives sufficient conditions for the difference A−1 − B−1 between the inverses of a symmetric positive definite matrix A and a (nonsingular) matrix B to be positive definite or positive semidefinite. Theorem 18.3.4. Let A represent an n × n symmetric positive definite matrix, and let B represent an n × n matrix.
434
18. Sums (and Differences) of Matrices
(1) If B − A is positive definite or, more generally, if B − A is nonnegative definite and nonsingular (in which case B is positive definite), then A−1 − B−1 is positive definite. (2) If B − A is symmetric and positive semidefinite (in which case B is symmetric and positive definite), then A−1 − B−1 is positive semidefinite. Proof. (1) Suppose that B − A is nonnegative definite and nonsingular [which, since B A+(B−A), implies (in light of Lemma 14.2.4) that B is positive definite (and hence nonsingular)]. Then it follows from Theorem 18.2.4 that A−1 − B−1 is nonsingular and that (A−1 − B−1 )−1 A + A(B − A)−1 A A + A (B − A)−1 A . Moreover, it follows from Corollary 14.2.11 that (B − A)−1 is nonnegative definite, implying (in light of Theorem 14.2.9) that A (B − A)−1 A is nonnegative definite and hence (in light of Lemma 14.2.4) that A + A (B − A)−1 A is positive definite. Thus, (A−1 − B−1 )−1 is positive definite. Since A−1 − B−1 [(A−1 − B−1 )−1 ]−1 , we conclude (on the basis of Corollary 14.2.11) that A−1 − B−1 is positive definite. (2) Suppose that B − A is symmetric and positive semidefinite [which, since B A + (B − A), implies that B is symmetric and (in light of Lemma 14.2.4) that B is positive definite (and hence nonsingular)]. And let r rank(B − A) [and observe (in light of Corollary 14.3.12) that r < n]. Then, according to Theorem 14.3.7, there exists an r × n matrix P (of rank r) such that B − A P P. Thus, B A + (B − A) A + P P A + P Ir P; and it follows from Theorem 18.2.8 that Ir + PA−1 P is nonsingular and that B−1 A−1 − A−1 P (Ir + PA−1 P )−1 PA−1 , or, equivalently, that A−1 − B−1 (PA−1 ) (Ir + PA−1 P )−1 PA−1 . Moreover, since A−1 is positive definite, Ir + PA−1 P is positive definite and hence (Ir + PA−1 P )−1 is positive definite. And, since rank(PA−1 ) r (< n), it follows from Theorem 14.2.9 that (PA−1 ) (Ir + PA−1 P )−1 PA−1 is positive semidefinite. Q.E.D.
18.4
Some Results on Idempotency
a. Basic results Suppose that the sum of k (square) matrices A1 , . . . , Ak is idempotent. Under what condition(s) are A1 , . . . , Ak idempotent? This question is answered in the following theorem.
18.4 Some Results on Idempotency
435
Theorem 18.4.1. Let A1 , . . . , Ak represent n × n matrices, and define A A1 + . . . + Ak . Suppose that A is idempotent. Then, each of the following three conditions implies the other two: (1) Ai Aj 0 (for j i 1, . . . , k) and rank(A2i ) rank(Ai ) (for i 1, . . . , k); (2) A2i Ai (for i 1, . . . , k); (3) rank(A1 ) + · · · + rank(Ak ) rank(A). Preliminary to proving Theorem 18.4.1, it is convenient to establish the following two lemmas. Lemma 18.4.2. An n × n matrix A is idempotent if and only if rank(A) + rank(I − A) n. Proof (of Lemma 18.4.2). According to Theorem 11.7.1, A is idempotent if and only if N (A) C(I − A). Moreover, since [according to result (11.1.1)] N (A) ⊂ C(I − A), it follows from Theorem 4.3.10 that N (A) C(I − A) if and only if dim[N (A)] dim[C(I − A)]. Since (according to Lemma 11.3.1) dim[N (A)] n − rank(A) and since (by definition) dim[C(I − A)] rank(I − A), we conclude that A is idempotent if and only if n − rank(A) rank(I − A) or, equivalently, if and only if rank(A) + rank(I − A) n. Q.E.D. Lemma 18.4.3. For any idempotent matrices A and B (of the same size), A + B is idempotent if and only if BA AB 0. Proof (of Lemma 18.4.3). Clearly, (A + B)2 A2 + B2 + AB + BA A + B + AB + BA . Thus, A + B is idempotent if and only if AB + BA 0. Suppose now that BA AB 0. Then, obviously, AB + BA 0, and consequently A + B is idempotent. Conversely, suppose that AB + BA 0. Then, AB + ABA A2 B + ABA A(AB + BA) 0, and ABA + BA ABA + BA2 (AB + BA)A 0, implying that AB − BA AB + ABA − (ABA + BA) 0 − 0 0 and hence that AB BA . Further,belowdisplayskip0bp AB (1/2)(AB + AB) (1/2)(AB + BA) 0 . Q.E.D.
436
18. Sums (and Differences) of Matrices
Proof (of Theorem 18.4.1). The proof consists of successively showing that Condition (1) implies Condition (2), Condition (2) implies Condition (3), and Condition (3) implies Condition (1). (1) ⇒ (2). Suppose that Condition (1) is satisfied. Then (for i 1, . . . , k) A2i Ai A Ai AA A2i A A3i . Moreover, since rank(A2i ) rank(Ai ), it follows from Corollary 4.4.7 that C(A2i ) C(Ai ), so that Ai A2i Li for some matrix Li . Thus, Ai A2i Li A3i Li Ai (A2i Li ) A2i . (2) ⇒ (3). Suppose that Condition (2) is satisfied. Then, making use of Corollary 10.2.2, we find that k k k rank(Ai ) tr(Ai ) tr Ai tr(A) rank(A) . i1
i1
i1
(3)
⇒ (1). Suppose that Condition (3) is satisfied. And define A0 In − A. Then ki0 Ai I. Moreover, it follows from Lemma 10.2.4 that rank(A0 )
n − rank(A), so that ki0 rank(Ai ) n. Thus, making use of result (4.5.10), we find (for i 1, . . . , k) that k k Am ≤ rank(Am ) n − rank(Ai ) , rank(I − Ai ) rank m0(mi)
m0(mi)
so that rank(Ai ) + rank(I − Ai ) ≤ n, implying [since rank(Ai ) + rank(I − Ai ) ≥ rank(Ai + I − Ai ) rank(In ) n] that rank(Ai ) + rank(I − Ai ) n and hence implying (in light of Lemma 18.4.2) that Ai is idempotent [and that rank(A2i ) rank(Ai )]. Similarly, again making use of result (4.5.10), we find (for j i 1, . . . , k) that k Am rank(I − Ai − Aj ) rank m0(mi,j )
≤
k
rank(Am ) n − rank(Ai ) − rank(Aj )
m0(mi,j )
≤
n − rank(Ai + Aj ) ,
so that rank(Ai + Aj ) + rank(I − Ai − Aj ) ≤ n, implying [since rank(Ai + Aj ) + rank(I − Ai − Aj ) ≥ rank(Ai + Aj + I − Ai − Aj ) rank(In ) n] that rank(Ai + Aj ) + rank[I − (Ai + Aj )] n
18.4 Some Results on Idempotency
437
and hence (in light of Lemma 18.4.2) that Ai + Aj is idempotent. We conclude, on the basis of Lemma 18.4.3, that Ai Aj 0 for j i 1, . . . , k. Q.E.D. The following theorem complements Theorem 18.4.1. Theorem 18.4.4. Let A1 , . . . , Ak represent n × n matrices, and define A A1 + · · · + Ak . If A1 , . . . , Ak are idempotent and if Ai Aj 0 for all i and j i, then A is idempotent and rank(A1 ) + · · · + rank(Ak ) rank(A). Proof. Suppose that A1 , . . . , Ak are idempotent and that Ai Aj 0 for all i and j i. Then, A is idempotent, as is evident upon observing that A2i + Ai A j A2 Ai A . i
i,j i
i
Further, it follows from Theorem 18.4.1 that rank(A1 ) + · · · + rank(Ak ) rank(A). Q.E.D. In connection with Theorem 18.4.1 (and Theorem 18.4.4), observe that, in the special case where A In , rank(A) n. Observe also that if Ai is a symmetric matrix, then A2i Ai Ai , implying (in light of Corollary 7.4.5) that rank(A2i ) rank(Ai ). Thus, in the special case where A1 , . . . , Ak are symmetric matrices, Condition (1) of Theorem 18.4.1 reduces to the condition Ai Aj 0 (for j i 1, . . . k) . In light of these observations, we obtain, as a special case of Theorem 18.4.1, the following theorem. Theorem 18.4.5. Let A1 , . . . , Ak represent n × n symmetric matrices such that A1 + · · · + Ak I. Then each of the following three conditions implies the other two: (1) Ai Aj 0 (for j i 1, . . . , k); (2) A2i Ai (for i 1, . . . , k); (3) rank(A1 ) + · · · + rank(Ak ) n. Theorem 18.4.5 provides the underpinnings for Cochran’s (1934) theorem (on the statistical distribution of quadratic forms) and is itself sometimes referred to as Cochran’s theorem.
b. Extensions Theorems 18.4.1 and 18.4.4 are generalized in the following two theorems. Theorem 18.4.6. Let A1 , . . . , Ak represent n × n matrices, and let V represent an n × n symmetric nonnegative definite matrix. Define A A1 + · · · + Ak , and take R to be any matrix such that V R R. Suppose that RAR is idempotent. Then each of the following three conditions implies the other two: (1) RAi VAj R 0 (for j i 1, . . . , k) and rank(RAi VAi R ) rank(RAi R ) (for i 1, . . . , k);
438
18. Sums (and Differences) of Matrices
(2) RAi VAi R RAi R (for i 1, . . . , k); (3) rank(RA1 R ) + · · · + rank(RAk R ) rank(RAR ). Theorem 18.4.7. Let A1 , . . . , Ak represent n × n matrices, and let V represent an n × n symmetric nonnegative definite matrix. Define A A1 + · · · + Ak , and take R to be any matrix such that V R R. If RAi VAi R RAi R for all i and if RAi VAj R 0 for all i and j i, then RAR is idempotent and rank(RA1 R ) + · · · + rank(RAk R ) rank(RAR ). In connection with Theorems 18.4.6 and 18.4.7, note that the existence of a matrix R such that V R R is guaranteed by Corollary 14.3.8. Note also that, in the special case where A1 , . . . , Ak are symmetric, Condition (1) of Theorem 18.4.6 reduces to the condition RAi VAj R 0 (for j i 1, . . . , k) {since, in that special case, rank(RAi VAi R ) rank[(RAi R ) RAi R ] rank(RAi R )}. And, note that, in the special case where V I (and where R is chosen to be I), Theorems 18.4.6 and 18.4.7 reduce to Theorems 18.4.1 and 18.4.4. Theorems 18.4.6 and 18.4.7 can be derived from Theorems 18.4.1 and 18.4.4 — upon applying Theorems 18.4.1 and 18.4.4 with RA1 R , . . . , RAk R in place of A1 , . . . , Ak , respectively, we obtain Theorems 18.4.6 and 18.4.7. Theorems 18.4.6 and 18.4.7 can be restated in terms that do not involve the matrix R. For this purpose, observe that (RAR )2 RAR ⇒ R RAVARR R RAR R , RAi VAi R RAi R ⇒ R RAi VAi R R R RAi R R , RAi VAj R 0 ⇒ R RAi VAj R R 0 , and conversely (in light of Corollary 5.3.3) that R RAVAR R R RAR R ⇒ RAVAR R RAR R ⇒ (RAR )2 RAR , R RAi VAi R R R RAi R R ⇒ RAi VAi R R RAi R R ⇒ RAi VAi RRAi R , R RAi VAj R R 0 ⇒ RAi VAj R R 0 ⇒ RAi VAj R 0 . Thus, (RAR )2
RAi VAi R RAi VAj R
RAR ⇔ VAVAV VAV , RAi R ⇔ VAi VAi V VAi V ,
(4.4) (4.5)
0 ⇔ VAi VAj V 0 .
(4.6)
18.4 Some Results on Idempotency
439
Further, in light of Corollary 7.4.4, we have that rank(RAR ) rank(R RAR ) rank(R RAR R) rank(VAV),
(4.4)
rank(RAi R ) rank(R RAi R ) rank(R RAi R R) rank(VAi V),
(4.5)
rank(RAi VAi R ) rank(R RAi VAi R ) rank(R RAi VAi R R) rank(VAi VAi V) .
(4.6)
Based on results (4.1) – (4.6), Theorems 18.4.6 and 18.4.7 can be restated as the following two theorems. Theorem 18.4.8. Let A1 , . . . , Ak represent n × n matrices, let V represent an n × n symmetric nonnegative definite matrix, and define A A1 + · · · + Ak . Suppose that VAVAV VAV. Then each of the following three conditions implies the other two: (1) VAi VAj V 0 (for j i 1, . . . , k) and rank(VAi VAi V) rank(VAi V) (for i 1, . . . , k); (2) VAi VAi V VAi V (for i 1, . . . , k); (3) rank(VA1 V) + · · · + rank(VAk V) rank(VAV). Theorem 18.4.9. Let A1 , . . . , Ak represent n × n matrices, let V represent an n × n symmetric nonnegative definite matrix, and define A A1 + · · · Ak . If VAi VAi V VAi V for all i and if VAi VAj V 0 for all i and j i, then VAVAV VAV and rank(VA1 V) + · · · + rank(VAk V) rank(VAV). Note that, in the special case where A1 , . . . , Ak are symmetric, Condition (1) of Theorem 18.4.8 reduces to the condition VAi VAj V 0
(for j i 1, . . . , k)
{since, in that special case, rank(VAi VAi V) rank(RAi VAi R ) rank[(RAi R ) RAi R ] rank(RAi R ) rank(VAi V)}. Note also that, in the special case where V is positive definite (and hence nonsingular), simplifications can be effected in Theorem 18.4.8 (and in Theorem 18.4.9) by observing that VAVAV VAV ⇔ (AV)2 AV ⇔ AVA A , VAi VAi V VAi V ⇔ (Ai V)2 Ai V ⇔ Ai VAi Ai , VAi VAj V 0 ⇔ Ai VAj V 0 ⇔ Ai VAj 0 , and that rank(VAV) rank(AV) rank(A) , rank(VAi V) rank(Ai V) rank(Ai ) , rank(VAi VAi V) rank[(Ai V)2 ] rank(Ai VAi ) .
440
18. Sums (and Differences) of Matrices
18.5
Some Results on Ranks
a. Ranks of matrices of the form R + STU In Sections 18.1a and 18.2d–e, expressions were obtained for the determinant and for the ordinary or generalized inverse of a matrix of the form R + STU. These expressions (when applicable) give the determinant of R + STU in terms of the determinants of R, T, and T + TUR−1 ST or the determinants of R, T, and T−1 + UR−1 S and give the ordinary or generalized inverse of R + STU in terms of the ordinary or generalized inverses of R and T + TUR−1 ST (or T+TUR− ST) or the ordinary or generalized inverses of R, T, and T−1 +UR−1 S (or T− +T− TUR− STT− ). The corollary of the following theorem gives a comparable expression for the rank of R + STU. Theorem 18.5.1. For any n × q matrix R, n × m matrix S, m × p matrix T, and p × q matrix U, rank(T) + rank(R + RR− STUR− R) rank(R) + rank(T + TUR− RR− ST).
(5.1)
R −RR− ST Proof. Let A . Then, observing that TUR− R T I 0 R + RR− STUR− R −RR− ST A , −UR− R I 0 T I 0 R −RR− ST A − −TUR I 0 T + TUR− RR− ST and making use of Lemma 8.5.2 and Corollary 9.6.2, we find that R + RR− STUR− R −RR− ST rank(A) rank 0 T rank(T) + rank(R + RR− STUR− R), R −RR− ST rank(A) rank 0 T + TUR− RR− ST rank(R) + rank(T + TUR− RR− ST) , implying that rank(T) + rank(R + RR− STUR− R) rank(R) + rank(T + TUR− RR− ST) . Or, alternatively, Theorem 18.5.1 can be proved by applying result (9.6.1) — observing that C(TUR− R) ⊂ C(T) and R(−RR− ST) ⊂ R(T) and that C(−RR− ST) ⊂ C(R) and R(TUR− R) ⊂ R(R), we find thatbelowdisplayskip0bp rank(T) + rank(R + RR− STUR− R) rank(A) rank(R) + rank(T + TUR− RR− ST) .
18.5 Some Results on Ranks
441
Q.E.D. Corollary 18.5.2. Let R represent an n × q matrix, S an n × m matrix, T an m × p matrix, and U a p × q matrix. If R(STU) ⊂ R(R) and C(STU) ⊂ C(R), then rank(R + STU) rank(R) + rank(T + TUR− ST) − rank(T) .
(5.2)
Proof. Suppose that R(STU) ⊂ R(R) and C(STU) ⊂ C(R). Then, in light of Lemma 9.3.5, R + RR− STUR− R R + RR− STU R + STU . Now, let Q T + TUR− ST and H T + TUR− RR− ST, and observe that Q − H TU(I − R− R)R− ST . Clearly, to complete the proof, it suffices [in light of result (5.1)] to show that rank(H) rank(Q). In light of result (2.29), (I − QQ− )(Q − H) (I − QQ− )TU(I − R− R)R− ST 0 , implying (in light of Lemma 9.3.5) that C(Q − H) ⊂ C(Q), so that Q − H QK for some matrix K. Moreover, upon substituting R− RR− (which, like R− itself, is a generalized inverse of R) for R− in result (2.29), we find that (I − HH− )TU(I − R− R) (I − HH− )TU(I − R− RR− R) 0 , implying that (I − HH− )(Q − H) (I − HH− )TU(I − R− R)R− ST 0 and hence (in light of Lemma 9.3.5) that C(Q − H) ⊂ C(H), so that Q − H HL for some matrix L. Thus, H Q − (Q − H) Q(I − K),
Q H + (Q − H) H(I + L) ,
implying that C(H) ⊂ C(Q), and C(Q) ⊂ C(H) and hence that C(H) C(Q), and it follows thatbelowdisplayskip0bp rank(H) rank(Q) . Q.E.D. In connection with Corollary 18.5.2, note that equality (5.2) [which is applicable if R(STU) ⊂ R(R) and C(STU) ⊂ C(R)] is equivalent to the equality rank(R) − rank(R + STU) rank(T) − rank(T + TUR− ST) .
(5.3)
Thus, if R(STU) ⊂ R(R) and C(STU) ⊂ C(T), then the difference in rank between R and R + STU is the same as that between T and T + TUR− ST. Note also that this difference in rank is nonnegative [as is evident, e.g., upon observing that T + TUR− ST T(I + UR− ST)].
442
18. Sums (and Differences) of Matrices
b. Lower (and upper) bounds on the rank of a sum of two matrices Let A and B represent m × n matrices. In Section 4.5, it was established that rank(A + B) ≤ rank(A, B) ≤ rank(A) + rank(B), A rank(A + B) ≤ rank ≤ rank(A) + rank(B) . B
(5.4) (5.5)
A , and B by rank(A) + rank(B). Further, in Section 17.2, it was established that equality holds in the inequality rank(A, B) ≤ rank(A) + rank(B) if and only if C(A) and A C(B) are essentially disjoint, and that equality holds in the inequality rank ≤ B rank(A) + rank(B) if and only if R(A) and R(B) are essentially disjoint. In this section, these results are augmented with results on lower bounds for rank(A + B) and with results on the conditions under which these lower bounds are attained [and alsowith results on the conditions under which the upper bounds A rank(A, B) and rank are attained]. These additional results are derived from B the following theorem. Theorem 18.5.3. Let A and B represent m×n matrices. And, let c dim[C(A)∩ C(B)], d dim[R(A) ∩ R(B)], and − A A A 0 H I− [I − (A, B)− (A, B)] . (5.6) B B 0 B Thus, rank(A + B) is bounded from above by rank(A, B), by rank
Then, rank(A + B)
A rank(A, B) + rank − rank(A) − rank(B) + rank(H) (5.7) B rank(A, B) − d + rank(H) (5.8) A rank − c + rank(H) (5.9) B rank(A) + rank(B) − c − d + rank(H) . (5.10)
Proof. Equality (5.7) is the special (17.5.5)obtained by case of equality A 0 In in place of B, and in place of putting (Im , Im ) in place of A, 0 B In A A 0 A 0 In C and by observing that (Im , Im ) , (A, B), B 0 B 0 B In A 0 A 0 In (Im , Im ) A + B, and rank rank(A) + rank(B). Fur0 B 0 B In ther, equalities (5.8) and (5.9) are obtained from equality (5.7) by substituting
18.5 Some Results on Ranks
443
A or rank(A, B), respectively, on the basis of formula (17.4.11) or B (17.4.10). Similarly, equality (5.10)is obtained from equality (5.8) or (5.9) by A substituting for rank(A, B) or rank , respectively, on the basis of formula B (17.4.10) or (17.4.11). Q.E.D. Lower and upper bounds for the rank of the sum of two matrices A and B can be obtained from the following theorem, which gives variousinequalities relating A rank(A + B) to rank(A) + rank(B) and to rank(A, B) or rank and which also B gives the conditions under which these inequalities hold as equalities. Theorem 18.5.4. Let A and B represent m×n matrices. And, let c dim[C(A)∩ C(B)], d dim[R(A) ∩ R(B)], and − A A A 0 H I− [I − (A, B)− (A, B)] . (5.11) B B 0 B for rank
(1) Then, rank(A) + rank(B) − c − d rank(A, B) − d ≤ rank(A + B) ≤ rank(A, B) rank(A) + rank(B) − c ≤ rank(A) + rank(B),
(5.12a) (5.12b) (5.12c)
with equality holding under the following conditions: rank(A + B) rank(A, B) − d [or, equivalently, rank(A + B) rank(A) + rank(B) − c − d] ⇔ rank(H) 0;
rank(A + B) rank(A, B) ⇔ rank(H) d;
(5.13)
(5.14)
rank(A, B) rank(A) + rank(B) [or, equivalently, rank(A) + rank(B) − c rank(A) + rank(B)] ⇔ c 0; (5.15) (2) Similarly, rank(A) + rank(B) − c−d A rank −c B
A rank(A) + rank(B) − d ≤ rank(A + B) ≤ rank B ≤ rank(A) + rank(B),
(5.16a) (5.16b) (5.16c)
444
18. Sums (and Differences) of Matrices
with equality holding under the following conditions: A rank(A + B) rank −c B [or, equivalently, rank(A + B) rank(A) + rank(B) − c − d] ⇔ rank(H) 0; A rank(A + B) rank ⇔ rank(H) c; B
(5.17) (5.18)
A rank(A) + rank(B) B [or, equivalently, rank(A) + rank(B) − d rank(A) + rank(B)] ⇔ d 0. (5.19)
rank
Proof. (1) That rank(A) + rank(B) − c − d rank(A, B) − d is an immediate consequence of result (17.4.10). That rank(A, B)−d ≤ rank(A+B), with equality holding if and only if rank(H) 0, is evident from result (5.8). That rank(A + B) ≤ rank(A, B) was established earlier (in Lemma 4.5.8). That rank(A + B) rank(A, B) if and only if rank(H) d is clear from result (5.8). That rank(A, B) rank(A) + rank(B) − c was established earlier [as result (17.4.10)]. And, that rank(A) + rank(B) − c ≤ rank(A) + rank(B), with equality holding if and only if c 0, is obvious. (2) The proof of Part (2) of Theorem 18.5.4 is analogous to that of Part (1). Q.E.D. Together, results (5.12) and (5.16) lead to the following corollary. Corollary 18.5.5. For any matrices A and B (of the same size), rank(A) + rank(B) − c − d ≤ rank(A + B) ≤ rank(A) + rank(B) − max(c, d) , (5.20) where c dim[C(A) ∩ C(B)] and d dim[R(A) ∩ R(B)]. The matrix H, defined by expression (5.11) [or by expression (5.6)], plays a prominent role in Theorems 18.5.4 and 18.5.3. The following theorem gives some results on the rank of this matrix. Theorem 18.5.6. Let A and B represent m×n matrices. And, let c dim[C(A)∩ C(B)], d dim[R(A) ∩ R(B)], and − A A A 0 H I− [I − (A, B)− (A, B)] . B B 0 B Then, 0 0
A ≤ rank(H) c − [rank − rank(A + B)] ≤ c , B ≤ rank(H) d − [rank(A, B) − rank(A + B)] ≤ d .
Exercises
445
A − rank(A + B)] and rank(H) B d − [rank(A, B) − rank(A + B)] are equivalent to equalities (5.9) and (5.8). FurA ther, since [according to results (5.5) and (5.4)] rank ≥ rank(A + B) and B A rank(A, B) ≥ rank(A + B), it is clear that c − [rank − rank(A + B)] ≤ c and B that d − [rank(A, B) − rank(A + B)] ≤ d. Q.E.D. In connection with Theorem 18.5.6, note that the condition rank(H) d, which appears in Part (1) of Theorem 18.5.4 [as a necessary and sufficient condition for rank(A+B) rank(A, B)], is satisfied if d 0 — if d 0, then rank(H) 0 d. And, similarly, the condition rank(H) c, which appears in Part (2) of Theorem A 18.5.4 [as a necessary and sufficient condition for rank(A + B) rank ], is B satisfied if c 0 — if c 0, then rank(H) 0 c. Proof. The equalities rank(H) c − [rank
c. Rank additivity The following theorem gives necessary and sufficient conditions for rank additivity, that is, for the rank of the sum of two matrices to equal the sum of their ranks. Theorem 18.5.7. For any two matrices A and B (of the same size), rank(A+B) rank(A) + rank(B) if and only if R(A) and R(B) are essentially disjoint and C(A) and C(B) are essentially disjoint. Proof. Let c dim[C(A) ∩ C(B)] and d dim[R(A) ∩ R(B)]. Suppose that R(A) and R(B) are essentially disjoint and C(A) and C(B) are essentially disjoint (or, equivalently, that c 0 and d 0). Then, it follows from Corollary 18.5.5 that rank(A) + rank(B) ≤ rank(A + B) ≤ rank(A) + rank(B) and hence that rank(A + B) rank(A) + rank(B). Conversely, suppose that rank(A + B) rank(A) + rank(B). Then, in light of inequalities (5.4) and (5.5), we have that rank(A, B) rank(A) + rank(B) and A rank rank(A) + rank(B) and hence [according to results (17.4.12) and B 17.4.13)] that c 0 and d 0. Q.E.D.
Exercises Section 18.1 1. Provide an alternative derivation of formula (1.1) by applying the results of R −ST (and by proceeding as in the proof of Theorem Theorem 13.3.8 to TU T 18.1.1).
446
18. Sums (and Differences) of Matrices
2. Let R represent an n × n matrix, S an n × m matrix, T an m × m matrix, and U an m × n matrix. Use Theorem 18.1.1 (or Corollary 18.1.2 or 18.1.4) to show that if R is nonsingular, then |R + STU| |R| |Im + UR−1 ST| |R| |Im + TUR−1 S| .
3. Let A represent an n × n symmetric nonnegative definite matrix. Show that if I − A is nonnegative definite and if |A| 1, then A I. 4. Show that, for any n × n symmetric nonnegative definite matrix B and for any n × n symmetric matrix C such that C − B is nonnegative definite, |C| ≥ |C − B| , with equality holding if and only if C is singular or B 0. 5. Let A represent a symmetric nonnegative definite matrix that has been partitioned as T U A , U W where T is of dimensions m × m and W of dimensions n × n (and where U is of dimensions m × n). Define Q W − U T− U (which is the Schur complement of T). (a) Using Theorem 14.8.4 and the result of Exercise 14.33 (or otherwise), show that |W| ≥ |U T− U| , with equality holding if and only if W is singular or Q 0. (b) Suppose that n m and that T is nonsingular. Show that |W| |T| ≥ |U|2 , with equality holding if and only if W is singular or rank(A) m. (c) Suppose that n m and that A is positive definite. Show that |W| |T| > |U|2 . 6. Show that, for any n × p matrix X and any symmetric positive definite matrix W, |X WX| |X W−1 X| ≥ |X X|2 . (E.1) [Hint. Begin by showing that the matrices X X(X WX)− X X and X W−1 X− X X(X WX)− X X are symmetric and nonnegative definite.]
Exercises
447
7. (a) Show that, for any n × n skew-symmetric matrix C, |In + C| ≥ 1 , with equality holding if and only if C 0. (b) Generalize the result of Part (a) by showing that, for any n × n symmetric positive definite matrix A and any n × n skew-symmetric matrix B, |A + B| ≥ |A| , with equality holding if and only if B 0. Section 18.2 8. (a) Let R represent an n × n nonsingular matrix, and let B represent an n × n matrix of rank one. Show that R+B is nonsingular if and only if tr(R−1 B) −1, in which case (R + B)−1 R−1 − [1 + tr(R−1 B)]−1 R−1 BR−1 . (b) To what does the result of Part (a) simplify in the special case where R In ? 9. Let R represent an n × n matrix, S an n × m matrix, T an m × m matrix, and U an m × n matrix. Suppose that R and T are nonsingular. Use Theorem 18.2.8 to show (a) that R + STU is nonsingular if and only if Im + UR−1 ST is nonsingular, in which case (R + STU)−1 R−1 − R−1 ST(Im + UR−1 ST)−1 UR−1 , and (b) that R+STU is nonsingular if and only if Im +TUR−1 S is nonsingular, in which case (R + STU)−1 R−1 − R−1 S(Im + TUR−1 S)−1 UR−1 . [Hint. Reexpress R + STU as R + STU R + (ST)Im U and as R + STU R + SIm TU.] 10. Let R represent an n × q matrix, S an n × m matrix, T an m × p matrix, and U a p × q matrix. Extend the results of Exercise 9 by showing that if R(STU) ⊂ R(R) and C(STU) ⊂ C(R), then the matrix R− − R− ST(Ip + UR− ST)− UR− and the matrix
R− − R− S(Im + TUR− S)− TUR−
are both generalized inverses of the matrix R + STU.
448
18. Sums (and Differences) of Matrices
11. Let R represent an n × q matrix, S an n × m matrix, T an m × p matrix, and U a p × q matrix. (a) Let G represent a generalized inverse of the partitioned matrix R −ST G11 G12 , and partition G as G (where G11 is of TU T G21 G22 dimensions q × n). Use Theorem 9.6.5 to show that G11 is a generalized inverse of the matrix R + STU. (b) Let ER I − RR− , FR I − R− R, X ER ST, Y TUFR , EY I − YY− , FX I − XX− , Q T + TUR− ST, Z EY QFX , and Q∗ FX Z− EY . Use the result of Part (a) of Exercise 10.10 to show that the matrix R− − R− STQ∗ TUR− − R− ST(I − Q∗ Q)X− ER − FR Y− (I − QQ∗ )TUR− + FR Y− (I − QQ∗ )QX− ER
(E.2)
is a generalized inverse of the matrix R + STU. (c) Show that if R(TU) ⊂ R(R) and C(ST) ⊂ C(R), then formula (2.27) for a generalized inverse of R + STU can be obtained as a special case of formula (E.2). 12. Let A1 , A2 , . . . represent a sequence of m × n matrices, and let A represent another m × n matrix. (a) Using the result of Exercise 6.1 (i.e., the triangle inequality), show that if Ak − A → 0, then Ak → A. (b) Show that if Ak → A, then Ak → A (where the norms are the usual norms). 13. Let A represent an n × n matrix. Using the results of Exercise 6.1 and of Part (b) of Exercise 12, show that if A < 1, then (for k 0, 1, 2, . . .) (I − A)−1 − (I + A + A2 + · · · + Ak ) ≤ Ak+1 /(1 − A) (where the norms are the usual norms). (Note. It follows from Theorems 18.2.16 and 18.2.19 that if A < 1, then I − A is nonsingular.) 14. Let A and B represent n × n matrices. Suppose that B is nonsingular, and define F B−1 A. Using the result of Exercise 13, show that if F < 1, then (for k 0, 1, 2, . . .) (B − A)−1 − (B−1 + FB−1 + F2 B−1 + · · · + Fk B−1 ) ≤ B−1 Fk+1 /(1 − F) (where the norms are the usual norms). (Note. It follows from Theorems 18.2.18 and 18.2.19 that if F < 1, then B − A is nonsingular.)
Exercises
449
Section 18.3 15. Let A represent an n × n symmetric nonnegative definite matrix, and let B represent an n × n matrix. Show that if B − A is nonnegative definite (in which case B is also nonnegative definite), then R(A) ⊂ R(B) and C(A) ⊂ C(B). Section 18.4 16. Let A represent an n × n symmetric idempotent matrix, and let B represent an n × n symmetric nonnegative definite matrix. Show that if I − A − B is nonnegative definite, then BA AB 0. (Hint. Show that A (I − A − B)A −A BA, and then consider the implications of this equality.) 17. Let A1 , . . . Ak represent n × n symmetric matrices, and let A A1 + · · · + Ak . Suppose that A is idempotent. Suppose further that A1 , . . . , Ak−1 are idempotent and that Ak is nonnegative definite. Using the result of Exercise 16 (or otherwise), show that Ai Aj 0 (for j i 1, . . . , k), that Ak is
idempotent, and that rank(Ak ) rank(A) − k−1 i1 rank(Ai ). 18. Let A1 , . . . , Ak represent n×n symmetric matrices, and define A A1 +· · ·+ Ak . Suppose that A is idempotent. Show that if A1 , . . . , Ak are nonnegative
definite and if tr(A) ≤ ki1 tr(A2i ), then Ai Aj
0 (for j i 1, . . . , k) and A1 , . . . , Ak are idempotent. (Hint. Show that i,j i tr(Ai Aj ) ≤ 0 and then make use of Corollary 14.7.7.) 19. Let A1 , . . . , Ak represent n×n symmetric matrices such that A1 +· · ·+Ak I. Show that if rank(A1 ) + · · · + rank(Ak ) n, then, for any (strictly) positive scalars c1 , . . . , ck , the matrix c1 A1 + · · · + ck Ak is positive definite. 20. Let A1 , . . . , Ak represent n × n symmetric idempotent matrices such that Ai Aj 0 for j i 1, 2, . . . , k. Show that, for any (strictly) positive
scalar c0 and any nonnegative scalars c1 , . . . , ck , the matrix c0 I + ki1 ci Ai is positive definite (and hence nonsingular), and c0 I +
k i1
−1 c i Ai
d0 I +
k
di Ai ,
i1
where d0 1/c0 and (for i 1, . . . , k) di −ci /[c0 (c0 + ci )]. 21. Let A1 , . . . , Ak represent n × n symmetric idempotent matrices such that (for j i 1, . . . , k) Ai Aj 0, and let A represent an n × n symmetric idempotent matrix such that (for i 1, . . . , k) C(Ai ) ⊂ C(A). Show that if rank(A1 ) + · · · + rank(Ak ) rank(A), then A1 + · · · + Ak A. 22. Let A represent an m × n matrix and B an n × m matrix. If B is a generalized inverse of A, then it follows from Lemma 10.2.6 that rank(I − BA) n − rank(A). Show that the converse is also true; that is, show that if rank(I−BA) n − rank(A), then B is a generalized inverse of A.
450
18. Sums (and Differences) of Matrices
23. Let A represent the (n × n) projection matrix for a subspace U of Rn×1 along a subspace V of Rn×1 (where U ⊕ V Rn×1 ), and let B represent the (n × n) projection matrix for a subspace W of Rn×1 along a subspace X of Rn×1 (where W ⊕ X Rn×1 ). (a) Show that A + B is the projection matrix for some subspace L of Rn×1 along some subspace M of Rn×1 (where L ⊕ M Rn×1 ) if and only if BA AB 0, in which case L U ⊕ W and M V ∩ X . (b) Show that A − B is the projection matrix for some subspace L of Rn×1 along some subspace M of Rn×1 (where L ⊕ M Rn×1 ) if and only if BA AB B, in which case L U ∩ X and M V ⊕ W. [Hint. Observe (in light of Theorem 17.6.13 and Lemma 10.1.2) that A − B is the projection matrix for some subspace L along some subspace M if and only if I − (A − B) (I − A) + B is the projection matrix for some subspace L∗ along some subspace M∗ , and then make use of Part (a) and Theorem 17.6.10.] 24. (a) Let B represent an n × n symmetric matrix, and let W represent an n × n symmetric nonnegative definite matrix. Show that WBWBW WBW ⇔ ⇔
(BW)3 (BW)2 tr[(BW)2 ] tr[(BW)3 ] tr[(BW)4 ] .
(b) Indicate how, in the special case of Theorems 18.4.8 and 18.4.9 where A1 , . . . , Ak are symmetric, the conditions VAVAV VAV and VAi VAi V VAi V (which appear in both theorems) can be reexpressed by applying the results of Part (a) (of the current exercise). Section 18.5 25. Let R represent an n × q matrix, S an n × m matrix, T an m × p matrix, and U a p × q matrix. (a) Show that rank(R + STU) rank
R TU
−ST − rank(T) . T
(E.3)
(b) Let ER I − RR− , FR I − R− R, X ER ST, Y TUFR , EY I − YY− , FX I − X− X, Q T + TUR− ST, and Z EY QFX . Use the result of Part (b) of Exercise 10.10 to show that rank(R + STU) rank(R) + rank(X) + rank(Y) + rank(Z) − rank(T) .
Exercises
451
26. Show that, for any m × n matrices A and B, rank(A + B) ≥ | rank(A) − rank(B) | . 27. Show that, for any n × n symmetric nonnegative definite matrices A and B, A C(A + B) C(A, B), R(A + B) R , B A rank(A + B) rank(A, B) rank . B 28. Let A and B represent m × n matrices. (a) Show that (1) C(A) ⊂ C(A + B) if and only if rank(A, B) rank(A + B) A and (2) R(A) ⊂ R(A + B) if and only if rank rank(A + B). B (b) Show that (1) if R(A) and R(B) are essentially disjoint, then C(A) ⊂ C(A + B) and (2) if C(A) and C(B) are essentially disjoint, then R(A) ⊂ R(A + B). 29. Let A and B represent m × n matrices. Show that each of the following five conditions is necessary and sufficient for rank additivity [i.e., for rank(A+B) rank(A) + rank(B)]: A (a) rank(A, B) rank rank(A) + rank(B); B (b) rank(A) rank[A(I − B− B)] rank[(I − BB− )A]; (c) rank(B) rank[B(I − A− A)] rank[(I − AA− )B]; (d) rank(A) rank[A(I − B− B)] and rank(B) rank[(I − AA− )B]; (e) rank(A) rank[(I − BB− )A] and rank(B) rank[B(I − A− A)]. 30. Let A and B represent m × n matrices. And, let − A A A 0 H I− [I − (A, B)− (A, B)] . B B 0 −B (a) Using result (5.8) or (5.9) (with −B in place of B), show that rank(A − B)
rank(A) − rank(B) + [rank(A, B) − rank(A)] A + [rank − rank(A)] + rank(H) . B
452
18. Sums (and Differences) of Matrices
(b) Show that A and B are rank subtractive [in the sensethatrank(A − B) A rank(A) − rank(B)] if and only if rank(A, B) rank rank(A) and B H 0. A (c) Show that if rank(A, B) rank rank(A), then (1) (A− , 0) and B − A A are generalized inverses of and (A, B), respectively, and (2) 0 B − − A 0 0 A for (A− , 0) and (A, B)− ,H . B 0 0 BA− B − B (d) Show that each of the following three conditions is necessary and sufficient for rank subtractivity [i.e., for rank(A − B) rank(A) − rank(B)]: A (1) rank(A, B) rank rank(A) and BA− B B; B (2) C(B) ⊂ C(A), R(B) ⊂ R(A), and BA− B B; (3) AA− B BA− A BA− B B. (e) Using the result of Exercise 29 (or otherwise), show that rank(A − B) rank(A) − rank(B) if and only if rank(A − B) rank[A(I − B− B)] rank[(I − BB− )A]. 31. Let A1 , . . . , Ak represent m × n matrices. Adopting the terminology of Exercise 17.6, use Part (a) of that exercise to show that if R(A1 ), . . . , R(Ak ) are independent and C(A1 ), . . . , C(Ak ) are independent, then rank(A1 +· · ·+Ak ) rank(A1 ) + · · · + rank(Ak ). 32. Let T represent an m × p matrix, U an m × q matrix, V an n × p matrix, and W an n × q matrix, and define Q W − VT− U. Further, let ET I − TT− , FT I − T− T, X ET U, and Y VFT . (a) Show that
T U 0 rank rank(T) + rank V W Y
X Q
.
(E.4)
(b) Show that
0 rank U
V −VT− U rank(T) + rank T X
Y 0
.
0 [Hint. Observe (in light of Lemma 8.5.1) that rank U T U rank , and make use of Part (a).] V 0
V T
Bibliographic and Supplementary Notes
453
(c) Show that 0 V rank rank(T) + rank(X) + rank(Y) + rank(EY VT− UFX ), U T where EY I − YY− and FX I − X− X. [Hint. Use Theorem 17.2.17 in combination with Part (b).] (d) Show that T U rank rank(T) + rank(Q) + rank(A) + rank(B) V W + rank[(I − AA− )XQ− Y(I − B− B)], where A X(I − Q− Q) and B (I − QQ− )Y. [Hint. Use Part (c) in combination with Part (a).] 33. Let R represent an n × q matrix, S an n × m matrix, T an m × p matrix, and U a p × q matrix, and define Q T + TUR− ST. Further, let ER I − RR− , FR I−R− R, X ER ST, Y TUFR , A X(I−Q− Q), B (I−QQ− )Y. Use the result of Part (d) of Exercise 32 in combination with the result of Part (a) of Exercise 25 to show that rank(R + STU) rank(R) + rank(Q) − rank(T) + rank(A) + rank(B) + rank[(I − AA− )XQ− Y(I − B− B)], thereby generalizing formula (5.2).
Bibliographic and Supplementary Notes §2. The presentation in Subsection a (and in the first part of Subsection d) is similar to that of Miller (1987, pp. 10–11). The material in Subsection e (and in Exercises 10 and 11) includes a number of the results of Harville (1997). The presentation in Subsection f requires of the reader some familiarity with basic results on sequences of scalars and on the infinite series generated by such sequences. For a more general and more complete treatment of the subject of Subsection f, refer, e.g., to Faddeeva (1959, sec. 5) or to Golub and Van Loan (1989, sec. 2.3). §3. Exercise 15 is based on Lemma 2.4 of Milliken and Akdeniz (1977). §4. The result of Exercise 16 is given by Loynes (1966) and is referred to by Searle (1971, p. 61) as Loynes’ lemma. §5. The results of Corollary 18.5.2 and of Exercises 25 and 33 were given by Harville (1997). The results covered in Subsections b and c (and in Exercises 28, 29, 30, and 32) are adaptations of results presented by Marsaglia and Styan (1974) in their Sections 4, 5, 7, and 8.
This page intentionally left blank
19 Minimization of a Second-Degree Polynomial (in n Variables) Subject to Linear Constraints
The subject of this chapter is the minimization of a quadratic form, or, more generally, a second-degree polynomial, in some number, say n, of variables that may be subject to linear constraints. Special cases of this minimization problem are encountered in various areas of statistics and in many related disciplines. In particular, they are encountered in estimating the parameters of a linear statistical model. One approach to the estimation goes by the acronym BLUE (for best linear unbiased estimation); in this approach, consideration is restricted to estimators that are linear (i.e., that are expressible as linear combinations of the data) and that are unbiased (i.e., whose “expected values” equal the parameters), and the estimator of each parameter is chosen to have minimum variance among all estimators that are linear and unbiased. The minimization problem encompassed in this approach can be formulated as one of minimizing a quadratic form (in the coefficients of the linear combination) subject to linear constraints — the constraints arise from the restriction to unbiased estimators. Another approach is to regard the estimation of the parameters as a least squares problem — the least squares problem was considered (from a geometrical perspective) in Chapter 12. This approach consists of minimizing the sum of the squared deviations between the data points and the linear combinations of the parameters (in the model) that correspond to those points. The sum of the squared deviations is a second-degree polynomial (in the parameters). In some cases, the parameters of the model may be subject to linear constraints — knowledge of the process that gave rise to the data may suggest such constraints (along with the other aspects of the model). In the presence of such constraints, the minimization problem encompassed in the least squares approach is one of minimizing a second-degree polynomial (in the parameters) subject to linear constraints (on the parameters).
456
19.1
19. Minimization of a Second-Degree Polynomial
Unconstrained Minimization
As a preliminary to considering the minimization of a second-degree polynomial (in n variables) subject to linear constraints, it is instructive to consider the unconstrained minimization of a second–degree polynomial.
a. Basic results Let V {vij } represent an n × n symmetric nonnegative definite matrix, and let b {bi } represent an n×1 vector such that b ∈ C(V). Further, let a (a1 , . . . , an ) represent a (column) vector of n variables, and consider the minimization of the function f of a defined (for a ∈ Rn ) by f (a) a Va − 2b a . Note that f (a) can be reexpressed as f (a) a Va − 2a b a Va − b a − a b or in nonmatrix form as the second–degree polynomial f (a) vij ai aj − 2 bi ai . i,j
i
For f to have a minimum at a point a∗ , it is necessary that a∗ be a stationary point of f , that is, it is necessary that ∂f/∂a 0 at a a∗ (e.g., Magnus and Neudecker 1988, pp. 119–120). As a consequence of formulas (15.3.5) and (15.3.7), we have that ∂f 2Va − 2b 2(Va − b) . (1.1) ∂a Thus, for f to have a minimum at a point a∗ , it is necessary that Va∗ b or, equivalently, that a∗ be a solution to the linear system Va b (in a). The following theorem makes a stronger claim — for f to have a minimum at a point a∗ , it is sufficient, as well as necessary, that Va∗ b. Theorem 19.1.1. Let a represent an n × 1 vector of (unconstrained) variables, and define f (a) a Va − 2b a, where V is an n × n symmetric nonnegative definite matrix and b is an n × 1 vector such that b ∈ C(V). Then the linear system Va b (in a) is consistent. Further, f (a) attains its minimum value at a point a∗ if and only if a∗ is a solution to Va b, in which case f (a∗ ) −b a∗ −a∗ b. Theorem 19.1.1 is a special case of the following result (that where s 1). Theorem 19.1.2. Let A represent an n × s matrix of (unconstrained) variables, and define F(A) A VA−B A−A B, where V is an n×n symmetric nonnegative definite matrix and B is an n × s matrix such that C(B) ⊂ C(V). Then, the linear system VA B (in A) is consistent. Further, F(A) attains its minimum value at a matrix A∗ (in the sense that F(A) − F(A∗ ) is nonnegative definite for every A ∈ Rn×s ) if and only if A∗ is a solution to VA B, in which case F(A∗ ) −B A∗ −A∗ B.
19.1 Unconstrained Minimization
457
Proof (of Theorem 19.1.2). Since C(B) ⊂ C(V), the consistency of the linear system VA B follows from Theorem 7.2.1. Now, let A∗ represent any solution to VA B, and let A represent an arbitrary n × s matrix. Then, A VA [A∗ + (A − A∗ )] V[A∗ + (A − A∗ )] A∗ VA∗ + A∗ V(A − A∗ ) + (A − A∗ ) VA∗ + (A − A∗ ) V(A − A∗ ) A∗ VA∗ + B (A − A∗ ) + (A − A∗ ) B + (A − A∗ ) V(A − A∗ ) . Thus, F(A) − F(A∗ )
A VA − A∗ VA∗ − B (A − A∗ ) − (A − A∗ ) B (1.2) (A − A∗ ) V(A − A∗ ) ,
implying (in light of Theorem 14.2.9) that F(A) − F(A∗ ) is nonnegative definite. Further, let A0 represent any n × s matrix such that F(A) − F(A0 ) is nonnegative definite for every A ∈ Rn×s . Then, F(A∗ ) − F(A0 ) is nonnegative definite, or equivalently, F(A0 ) − F(A∗ ) {which −[F(A∗ ) − F(A0 )]} is nonpositive definite, and, since F(A0 ) − F(A∗ ) is nonnegative definite, it follows from Lemma 14.2.2 that F(A0 ) − F(A∗ ) 0 and hence [upon applying equality (1.2) with A A0 ] that (A0 − A∗ ) V(A0 − A∗ ) 0. Thus, as a consequence of Corollary 14.3.11, V(A0 − A∗ ) 0, implying that VA0 VA∗ B and hence that A0 is a solution to VA B. Finally, observe that F(A∗ ) A∗ VA∗ − B A∗ − A∗ B A∗ B − B A∗ − A∗ B −B A∗ and similarly that F(A∗ ) (VA∗ ) A∗ − B A∗ − A∗ B B A∗ − B A∗ − A∗ B −A∗ B . Q.E.D. Note, in connection with Theorem 19.1.1, that in the special case where V is positive definite (and hence nonsingular), the linear system Va b has a unique solution, namely, a V−1 b, and that V−1 b is the only value of a at which f (a) attains its minimum value. Similarly (and more generally), note, in connection with Theorem 19.1.2, that, in the special case where V is positive definite, the linear system VA B has a unique solution, namely, A V−1 B, and that there is only one n × s matrix A∗ such that F(A) − F(A∗ ) is nonnegative definite for every A ∈ Rn×s , namely, A∗ V−1 B.
b. Least squares approach to derivation of main result Let a represent an n × 1 vector of (unconstrained) variables, and define f (a) a Va − 2b a, where V is an n × n symmetric nonnegative definite matrix and b is an n × 1 vector such that b ∈ C(V). Further, let a∗ represent any solution to the (consistent) linear system Va b. It was established in Subsection a (specifically
458
19. Minimization of a Second-Degree Polynomial
in Theorem 19.1.1) that f (a) attains its minimum value at a point a∗ if and only if a∗ is a solution to the (consistent) linear system Va b, in which case f (a∗ ) −b a∗ . This result can be derived from the results of Section 12.4 (on the least squares problem), thereby providing an alternative to the proof given in Subsection a — actually, the proof given in Subsection a is for the more general result given by Theorem 19.1.2. Let R represent a matrix such that V R R — the existence of such a matrix is guaranteed by Corollary 14.3.8 — let t represent an n × 1 vector such that b Vt, and let y Rt. Then, f (a) a Va − 2t Va a R Ra − 2y Ra (y − Ra) (y − Ra) − y y . Since y y does not depend on a, the minimization of f (a) is equivalent to the minimization of (y − Ra) (y − Ra). Moreover, since R y R Rt Vt b, the linear system Va b is equivalent to the linear system R Ra R y of normal equations. Thus, it follows from Theorem 12.4.3 that (y − Ra) (y − Ra) attains its minimum value at a point a∗ if and only if a∗ is a solution to Va b, in which case (y − Ra∗ ) (y − Ra∗ ) y y − y Ra∗ y y − b a∗ . We conclude that f (a) attains its minimum value at a point a∗ if and only if a∗ is a solution to Va b, in which case f (a∗ ) (y − Ra∗ ) (y − Ra∗ ) − y y −b a∗ .
c. Use of convexity to establish main result Let a represent an n × 1 vector of (unconstrained) variables, and define f (a) a Va − 2b a, where V is an n × n symmetric nonnegative definite matrix and b is an n × 1 vector such that b ∈ C(V). Further, let a∗ represent any solution to the (consistent) linear system Va b. Then, f (a) attains its minimum value at a a∗ , as was established in Subsection a and as was reconfirmed (via a second approach) in Subsection b. There is yet another way of verifying that f (a) attains its minimum value at a a∗ . Using the results of Section 15.3, we find that ∂ 2f 2V . ∂a∂a Thus, the Hessian matrix of f is nonnegative definite (for all a), and consequently f is a convex function — refer, for example, to Theorem 7.7 of Magnus and Neudecker (1988). And, recalling (from Subsection a) that a∗ is a stationary point of f , it follows from a well-known result on convex functions [which is Theorem 7.8 of Magnus and Neudecker (1988)] that f (a) attains its minimum value at a∗ .
19.2 Constrained Minimization
19.2
459
Constrained Minimization
a. Basic results Let a (a1 , . . . , an ) represent an n × 1 vector of variables, and impose on a the constraint X a d, where X {xij } is an n × p matrix and d {dj } is a p × 1 vector such that d ∈ C(X ). Further, define (for a ∈ Rn ) f (a) a Va − 2b a, where V is an n × n symmetric nonnegative definite matrix and b is an n × 1 vector such that b ∈ C(V, X). And consider the constrained (by X a d) minimization of f (a). Note that the (vector-valued) constraint X a d can be rewritten as p scalarvalued constraints xj a dj (j 1, . . . , p) , where xj (x1j , . . . , xnj ) is the j th column of X, or in completely nonmatrix notation as n xij ai dj (j 1, . . . , p) . i1
Letting r {rj } represent an arbitrary p × 1 vector, the Lagrangian function for our constrained minimization problem can be expressed as g(a) f (a) − 2r (d − X a) or, equivalently, as g(a) f (a) +
p j 1
(−2rj )(dj − xj a) .
The p scalars −2r1 , . . . , −2rp are the Lagrange multipliers. (Expressing the Lagrangian function so that the vector of Lagrange multipliers is represented by −2r rather than by r will be convenient in what follows.) Suppose now that rank(X) p. Then, upon applying Lagrange’s theorem [which is Theorem 7.10 of Magnus and Neudecker (1988)], we find that, for f (a) to have a minimum at a point a∗ under the constraint X a d, it is necessary that there exist a p × 1 vector r∗ such that, for r r∗ , a∗ is a stationary point of g (i.e., such that, for r r∗ , ∂g/∂a 0 at a a∗ ). Of course, it is also necessary that a∗ satisfy the constraint (i.e., that X a∗ d). Making use of result (1.1) and of formula (15.3.5), we find that ∂g ∂f ∂(r X a) +2 2(Va − b + Xr) . ∂a ∂a ∂a Thus, for f to have a minimum at a point a∗ under the constraint X a d, it is necessary that there exist a p × 1 vector r∗ such that Va∗ + Xr∗ b (and that X a∗ d) or, equivalently, it is necessary that there exist a p × 1 vector r∗ such
460
19. Minimization of a Second-Degree Polynomial
that a∗ and r∗ are, respectively, the first and second parts of a solution to the linear system comprising the two equations Va + Xr b , X a d
(2.1) (2.2)
(in a and r). Note that equations (2.1) and (2.2) can be reformulated as V X a b . X 0 r d Are the conditions obtained by applying Lagrange’s theorem sufficient as well as necessary for f (a) to have a minimum at a point a∗ under the constraint X a d? And does their necessity extend to the degenerate case where rank(X) < p? The following theorem answers these questions (in the affirmative). Theorem 19.2.1. Let a represent an n × 1 vector of variables; let X represent an n × p matrix and d a p × 1 vector such that d ∈ C(X ); and define f (a) a Va − 2b a, where V is an n × n symmetric nonnegative definite matrix and b is an n × 1 vector such that b ∈ C(V, X). Then the linear system V X a b (2.3) X 0 r d (in a and a p × 1 vector r) is consistent, and the values of Va and Xr are invariant to the choice of solution to this linear system. Further, f (a) attains its minimum value at a point a∗ under the constraint X a d if and only if a∗ is the first part of some solution to linear system (2.3). And for the first and second parts a∗ and r∗ of any solution to linear system (2.3), f (a∗ ) −b a∗ − d r∗ −a∗ b − r∗ d .
(2.4)
Theorem 19.2.1 is a special case of the following result (that where s 1). Theorem 19.2.2. Let A represent an n × s matrix of variables; let X represent an n × p matrix and D a p × s matrix such that C(D) ⊂ C(X ); and define F(A) A VA − B A − A B, where V is an n × n symmetric nonnegative definite matrix and B is an n × s matrix such that C(B) ⊂ C(V, X). Then the linear system V X A B (2.5) X 0 R D (in A and a p ×s matrix R) is consistent, and the values of VA and XR are invariant to the choice of solution to this linear system. Further, an n × s matrix A∗ satisfies the constraint X A D and is such that F(A) − F(A∗ ) is nonnegative definite for all A satisfying X A D if and only if A∗ is the first part of some solution to linear system (2.5). And for the first and second parts A∗ and R∗ of any solution to linear system (2.5), F(A∗ ) −B A∗ − D R∗ −A∗ B − R∗ D .
(2.6)
19.2 Constrained Minimization
461
Proof (of Theorem 19.2.2). There exists a matrix L such that V L L. And there exist matrices T and U such that B VT + XU or, equivalently, such that B L LT + XU. Thus, the consistency of linear system (2.5) follows from Corollary 7.4.9. Now, let A∗ and R∗ represent the first and second parts of any solution to linear system (2.5), and let A represent an arbitrary n × s matrix satisfying X A D. Then, clearly, X A∗ D. And, (A − A∗ ) VA∗
(A − A∗ ) (B − XR∗ ) (A − A∗ ) B − (X A) R∗ + (X A∗ ) R∗
(A − A∗ ) B − D R∗ + D R∗
(A − A∗ ) B ,
and consequently A VA [A∗ + (A − A∗ )] V[A∗ + (A − A∗ )] A∗ VA∗ + (A − A∗ ) VA∗
A∗ VA∗
+ [(A − A∗ ) VA∗ ] + (A − A∗ ) V(A − A∗ ) + (A − A∗ ) B + B (A − A∗ ) + (A − A∗ ) V(A − A∗ ) .
Thus, F(A) − F(A∗ )
A VA − A∗ VA∗ − B (A − A∗ ) − (A − A∗ ) B (A − A∗ ) V(A − A∗ ) , (2.7)
implying (in light of Theorem 14.2.9) that F(A) − F(A∗ ) is nonnegative definite. Further, let A0 represent any n × s matrix that satisfies the constraint X A D and is such that F(A) − F(A0 ) is nonnegative definite for all A satisfying X A D. Then, F(A∗ )−F(A0 ) is nonnegative definite, or equivalently, F(A0 )−F(A∗ ) {which equals −[F(A∗ ) − F(A0 )]} is nonpositive definite, and, since F(A0 ) − F(A∗ ) is nonnegative definite, it follows from Lemma 14.2.2 that F(A0 ) − F(A∗ ) 0 and hence [upon applying equality (2.7) with A A0 ] that (A0 − A∗ ) V(A0 − A∗ ) 0. Thus, as a consequence of Corollary 14.3.11, V(A0 −A∗ ) 0, or, equivalently, VA0 VA∗ ,
(2.8)
implying that VA0 + XR∗ VA∗ + XR∗ B
and hence (since X A0 D) that A0 and R∗ are the first and second parts of a solution to linear system (2.5). Next, let A1 and R1 represent the first and second parts of a possibly different (from A∗ and R∗ ) solution to linear system (2.5). Then, X A1 D, and (in light of what has already been established) F(A) − F(A1 ) is nonnegative definite for every A satisfying X A D. Thus, as a consequence of result (2.8), we have that VA1 VA∗
462
19. Minimization of a Second-Degree Polynomial
and that XR1 B − VA1 B − VA∗ XR∗ , implying that VA and XR are invariant to the choice of solution to linear system (2.5). Finally, observe that F(A∗ ) A∗ VA∗ − B A∗ − A∗ B
A∗ (B − XR∗ ) − B A∗ − A∗ B −(X A∗ ) R∗ − B A∗ −D R∗ − B A∗
and, similarly, that F(A∗ ) (VA∗ ) A∗ − B A∗ − A∗ B (B − XR∗ ) A∗ − B A∗ − A∗ B −R∗ X A∗ − A∗ B −R∗ D − A∗ B Q.E.D.
b. Interpretation of the Lagrange multipliers (in the special case where X is of full column rank) Let a represent an n × 1 vector of variables; impose on a the constraint X a d, where X is an n × p matrix and d is a p × 1 vector such that d ∈ C(X ); define f (a) a Va − 2b a, where V is an n × n symmetric nonnegative definite matrix and b is an n × 1 vector such that b ∈ C(V, X); and consider the constrained (by X a d) minimization of f (a). According to Theorem 19.2.1, f (a) attains its minimum value at a point a∗ (under the constraint X a d) if and only if a∗ is the first (n × 1) part of a solution to the linear system V X a b . (2.9) X 0 r d What (if any) significance can be attributed to the second (p × 1) part of a solution to linear system (2.9)? Suppose that rank(X) p (i.e., that X is of full column rank). Then, the second part of the solution to linear system (2.9) is unique — if r1 and r2 are the second parts of two solutions to linear system (2.9), then (according to Theorem 19.2.1) Xr1 Xr2 , or equivalently, X(r1 − r2 ) 0, implying (since, by supposition, the columns of X are linearly independent) that r1 − r2 0, or, equivalently, that r1 r2 . Further, defining (for d ∈ Rp×1 ) h(d)
min
{a∈Rn : X ad}
f (a) ,
it follows from well-known results on Lagrange multipliers [described, for example, by Magnus and Neudecker (1988, sec. 7.16)] that ∂h −2r∗ , ∂d
(2.10)
19.2 Constrained Minimization
463
where r∗ is the (unique) second part of the solution to linear system (2.9). Thus, the elements of the vector −2r∗ indicate how h is affected by small changes in the elements of d. An alternative way of arriving atformula(2.10) is by direct differentiation. Let G V X G11 G12 represent a generalized inverse of , and partition G as G X 0 G21 G22 b G11 b + G12 d (where G11 is of dimensions n×n). Then, G is a solution to G21 b + G22 d d V X linear system (2.9). Moreover, since [in light of the symmetry of ] G is X 0 b G11 b + G21 d V X a generalized inverse of , G is also a solution d X 0 G12 b + G22 d to linear system (2.9). Further, as a consequence of result (2.4), we have that h(d)
−b G11 b − d G21 b − b G12 d − d G22 d −b G11 b − (G21 b) d − (G12 b) d − d G22 d .
(2.11)
And, using formulas (15.3.5) and (15.3.7) to differentiate expression (2.11), we find that ∂h ∂d
−G21 b − G12 b − (G22 + G22 )d
−(G21 b + G22 d) − (G12 b + G22 d) −r∗ − r∗ −2r∗ .
c. Use of convexity to establish main result Let a represent an n × 1 vector of variables; impose on a the constraint X a d, where X is an n × p matrix and d is a p × 1 vector such that d ∈ C(X ); and define f (a) a Va − 2b a, where V is an n × n symmetric nonnegative definite matrix and b is an n × 1 vector such that b ∈ C(V, X). Further, let a∗ and r∗ represent second parts of any solution to the (consistent) linear system the first and V X a b . X 0 r d As discussed in Subsection a, the Lagrangian function for the problem of minimizing f (a) under the constraint X a d is g(a) f (a) − 2r (d − X a) (where −2r is the vector of Lagrange multipliers). Using the results of Section 15.3, we find that ∂ 2g 2V . (2.12) ∂a∂a Thus, the Hessian matrix of g is nonnegative definite (for all a), and, consequently, g is a convex function (regardless of the value of r) — refer, for example, to Theorem 7.7 of Magnus and Neudecker (1988). And, recalling (from Subsection a) that (for r r∗ ) ∂g/∂a 0 at a a∗ and that X a∗ − d 0, it follows
464
19. Minimization of a Second-Degree Polynomial
from a well-known result on convex functions [which is Theorem 7.13 of Magnus and Neudecker (1988)] that f (a) attains its minimum value (under the constraint X a d) at a a∗ .
19.3
Explicit Expressions for Solutions to the Constrained Minimization Problem
In Section 19.2a (specifically, in Theorem 19.2.2), we considered a constrained “minimization” problem that includes as a special case the problem of minimizing a second-degree polynomial (in n variables) subject to linear constraints. And we found that this problem “reduces” to the problem of finding the first (n × s) part of a solution to a (consistent) linear system of the form A B V X (3.1) R D X 0 (in an n × s matrix A and a p × s matrix R), where V is an n × n symmetric nonnegative definite matrix, X is an n × p matrix, B is an n × s matrix such that C(B) ⊂ C(V, X), and D is a p × s matrix such that C(D) ⊂ C(X ). This linear system comprises the two equations VA + XR B, X A D .
(3.2) (3.3)
The objective in the present section is to obtain “explicit” expressions for solutions to linear system (3.1). Let us begin by attacking the important special case where V is positive definite and then the less restrictive special case where C(X) ⊂ C(V), before proceeding to the general case.
a. Special case: V positive definite Suppose that the matrix V is positive definite and hence nonsingular. Then linear system (3.1) is equivalent to the system comprising the two equations A
−1
X V XR
V−1 B − V−1 XR,
(3.4)
X V−1 B − D .
(3.5)
To verify the equivalence of these two systems, suppose that A and R satisfy equation (3.1), or, equivalently, equations (3.2) and (3.3). Then, clearly, A and R satisfy equation (3.4) and, upon replacing A in equation (3.3) with the right side of equation (3.4), we find that X V−1 B − X V−1 XR D or, equivalently, that R satisfies equation (3.5).
19.3 Expressions for Solutions to Constrained Minimization Problem
465
Conversely, suppose that A and R satisfy equations (3.4) and (3.5). Then, clearly, A and R satisfy equation (3.2). Further, X A X (V−1 B − V−1 XR)
X V−1 B − X V−1 XR X V−1 B − (X V−1 B − D) D ,
so that A satisfies equation (3.3). The equivalence of linear system (3.1) to the system comprising equations (3.4) and (3.5) suggests a “computational” scheme for solving this system. First, solve equation (3.5) for R. Then substitute this solution in expression (3.4) to obtain the value of A. If the inverse of V is easy to obtain (as would be the case if, e.g., V were diagonal), then in effect this scheme reduces the problem of solving linear system (3.1) (which comprises n + p equations in n + p rows of unknowns) to one of solving a linear system comprising p equations in p rows of unknowns. According to Corollary 14.11.3, rank(X V−1 X) rank(X). Thus, aside from the special case where rank(X) p (i.e., where X is of full column rank), equation (3.5) has an infinite number of solutions (for R). However, in light of Theorem 19.2.2 [and of the equivalence of linear system (3.1) and the system comprising equations (3.4) and (3.5)], the matrix XR is invariant to the choice of solution. Further, the right side of equation (3.4) is invariant to the choice of solution (for R), which implies that the first (n × s) part of the solution to linear system (3.1) is unique. [The uniqueness of the first part of the solution to linear system (3.1) can also be seen to follow from the invariance of VA to the choice of solution to linear system (3.1) — if A1 and A2 are the first parts of two solutions to linear system (3.1), then VA1 VA2 , implying that A1 V−1 VA1 V−1 VA2 A2 .]
b. Special case: C(X) ⊂ C(V) The results obtained in Subsection a [on the solution of linear system (3.1)], which are for the special case where V is positive definite, can be extended in a relatively straightforward way to the less restrictive special case where C(X) ⊂ C(V). Suppose that C(X) ⊂ C(V). Then the matrices A and R satisfy the two equations (3.2) and (3.3), which compose linear system (3.1), if and only if R satisfies the equation X V− XR X V− B − D (3.6) and A V− B − V− XR + (I − V− V)L
(3.7)
for some (n × s) matrix L. For purposes of verifying this, observe (in light of Lemma 9.3.5 and Lemma 4.2.5) that VV− X X V− V
X
(3.8)
X .
(3.9)
466
19. Minimization of a Second-Degree Polynomial
Observe also that B VE + XF for some matrices E and F and hence that VV− B VV− VE + VV− XF VE + XF B .
(3.10)
Now, suppose that A and R satisfy equations (3.2) and (3.3). Then, VA B − XR, and it follows from Theorem 11.2.4 that equality (3.7) holds for some L. Moreover, upon replacing A in equation (3.3) with the right side of equality (3.7), we find [in light of result (3.9)] that X V− B − X V− XR D or, equivalently, that R satisfies equation (3.6). Conversely, suppose that R satisfies equation (3.6) and that equality (3.7) holds for some L. Then, making use of results (3.8) – (3.10), we find that VA + XR
VV− B − VV− XR + V(I − V− V)L + XR
B − XR + 0 + XR B
and X A
X V− B − X V− XR + X (I − V− V)L
X V− B − X V− XR X V− B − (X V− B − D) D ,
so that A and R satisfy equations (3.2) and (3.3). Our results suggest a “computational” scheme for solving linear system (3.1). First, solve equation (3.6) for R. Then substitute this solution in expression (3.7) to obtain a value for A— the matrix L in expression (3.7) can be chosen arbitrarily; in particular, L can be set equal to 0. We have that rank(X V− X) rank(X) . (3.11) To see this, observe that X VK for some matrix K and hence that X V− X K VV− VK K VK, implying [in light of Part (1) of Theorem 14.12.25] that X(X V− X)− X V− X VK(K VK)− K VK VK X .
(3.12)
And result (3.12) implies result (3.11), as is evident from the following lemma. Lemma 19.3.1. Let W represent an n × n matrix and X an n × p matrix. Then, the following three conditions are equivalent: (1) rank(X WX) rank(X); (2) X(X WX)− X WX X; (3) X WX(X WX)− X X . Proof. If Condition (1) is satisfied, then (according to Corollary 4.4.7) R(X WX) R(X), implying (in light of Lemma 9.3.5) that Condition (2) is
19.3 Expressions for Solutions to Constrained Minimization Problem
467
satisfied. Conversely, if Condition (2) is satisfied, then (according to Corollary 4.4.5) rank(X WX) ≥ rank(X), implying [since clearly rank(X WX) ≤ rank(X)] that Condition (1) is satisfied. Thus, Conditions (1) and (2) are equivalent. It can be shown in similar fashion that Conditions (1) and (3) are equivalent. Q.E.D. It is clear from result (3.11) that, aside from the special case where rank(X) p, equation (3.6) has an infinite number of solutions (for R). However, since any solution to equation (3.6) is the second part of a solution to linear system (3.1), it follows from Theorem 19.2.2 that the value of XR is invariant to the choice of a solution. Since a solution (for R) to equation (3.6) can be obtained by premultiplying the right side of the equation by (X V− X)− , we find [upon substituting this solution in expression (3.7)] that A is the first part of some solution to linear system (3.1) if and only if A [V− − V− X(X V− X)− X V− ]B + V− X(X V− X)− D + (I − V− V)L for some matrix L, or, equivalently, if and only if A V− (I − PX,V− )B + V− X(X V− X)− D + (I − V− V)L
(3.13)
for some L. Clearly, the first part of the solution to linear system (3.1) is unique if and only if V is nonsingular (which is the special case considered in Subsection a).
c. General case The following, easily verifiable lemma provides a basis for extending the results of Subsection b on the solution of linear system (3.1) [which are for the special case where C(X) ⊂ C(V)] to the general case. Lemma 19.3.2. Let V represent an m × n matrix, X an m × p matrix, Y a q × n matrix, B an m × s matrix, D a q × s matrix, and U a p × q matrix. Then, A∗ and R∗ are, respectively, the first (n × s) and second (p × s) parts of a solution to the linear system V X A B Y 0 R D (in an n × s matrix A and a p × s matrix R) if and only if A∗ and R∗ − UD are, respectively, the first (n × s) and second (p × s) parts of a solution to the linear system V + XUY X A B Y 0 T D (in an n × s matrix A and a p × s matrix T). The following theorem gives “explicit” expressions for the first and second parts of solutions to linear system (3.1).
468
19. Minimization of a Second-Degree Polynomial
Theorem 19.3.3. Let V represent an n × n symmetric nonnegative definite matrix, X an n × p matrix, B an n × s matrix such that C(B) ⊂ C(V, X), and D a p×s matrix such that C(D) ⊂ C(X ). Further, let U represent any p×p matrix such that C(X) ⊂ C(V + XUX ), and let W represent an arbitrary generalized inverse of V + XUX . Then A∗ and R∗ are, respectively, the first (n × s) and second (p × s) parts of a solution to the (consistent) linear system V X A B (3.14) X 0 R D (in an n × s matrix A and a p × s matrix R) if and only if
and
R∗ T∗ + UD
(3.15)
A∗ WB − WXT∗ + [I − W(V + XUX )]L
(3.16)
for some solution T∗ to the (consistent) linear system X WXT X WB − D
(3.17)
(in a p × s matrix T) and for some n × s matrix L. A natural question (in connection with Theorem 19.3.3) is whether a p × p matrix U such that C(X) ⊂ C(V + XUX ) necessarily exists. The answer is yes. To see this, note that (according to Corollary 14.3.8) V S S for some matrix S, implying (in light of Corollary 7.4.5) that, for any nonzero scalar k, C(X) C(kX) ⊂ C(S , kX) C[(S , kX)(S , kX) ] C(V + k 2 XX ) . Thus, C(X) ⊂ C(V + XUX ) for U k 2 I and in particular for U I. In the special case where C(X) ⊂ C(V), the condition C(X) ⊂ C(V + XUX ) can be satisfied by setting U 0. When U 0, formula (3.16) reduces to formula (3.7). Preliminary to proving Theorem 19.3.3, it is convenient to establish the following lemma. Lemma 19.3.4. Let V represent an n × n symmetric matrix, X an n × p matrix, and U a p × p matrix. Then, the following ten conditions are equivalent: (1) C(X) ⊂ C(V + XUX ); (2) C(V + XUX ) C(V, X); (3) rank(V + XUX ) rank(V, X); (4) rank(V + XU X ) rank(V, X); (5) C(V + XU X ) C(V, X); (6) C(X) ⊂ C(V + XU X );
19.3 Expressions for Solutions to Constrained Minimization Problem
469
(7) R(X ) ⊂ R(V + XUX ); (8) R(X ) ⊂ R(V + XU X ); (9) X (V + XUX )(V + XUX )− X; (10) X X (V + XUX )− (V + XUX ). Proof (of Lemma 19.3.4). Clearly, V + XUX (V, X) so that
I , UX
C(V + XUX ) ⊂ C(V, X) .
(3.18)
Now, if C(X) ⊂ C(V + XUX ), then X (V + XUX )L for some matrix L, in which case V V + XUX − XUX V + XUX − (V + XUX )LUX (V + XUX )(I − LUX ) and consequently (V, X) (V + XUX )(I − LUX , L), implying that C(V, X) ⊂ C(V + XUX ) and hence [in light of result (3.18)] that C(V + XUX ) C(V, X). Thus, (1) ⇒ (2), and, since clearly (2) ⇒ (1), (1) ⇔ (2). Moreover, in light of Theorem 4.4.6, it follows from result (3.18) that (3) ⇒ (2), and, since clearly (2) ⇒ (3), (2) ⇔ (3). We conclude that Conditions (1), (2), and (3) are equivalent. And, based on essentially the same line of reasoning (with U in place of U), we further conclude that Conditions (4), (5), and (6) are equivalent. Further, observe that V + XU X (V + XUX ) . Thus, rank(V + XU X ) rank(V + XUX ), and consequently (4) ⇔ (3). And, in light of Lemma 4.2.5, (7) ⇔ (6), and (8) ⇔ (1). Finally, in light of Lemma 9.3.5, (9) ⇔ (1), and (10) ⇔ (7). Q.E.D. Proof (of Theorem 19.3.3). Observe (in light of Lemma 19.3.4) that
and
(V + XUX )WX X
(3.19)
X W(V + XUX ) X .
(3.20)
Observe also that B VE + XF for some matrices E and F [so that B (V + XUX )E + X(F − UX E)] and hence that (V + XUX )WB
(V + XUX )W(V + XUX )E +(V + XUX )WX(F − UX E) (V + XUX )E + X(F − UX E) B .
(3.21)
470
19. Minimization of a Second-Degree Polynomial
Now, suppose that A∗ and R∗ are the first and second parts of a solution to linear system (3.14), and let T0 R∗ − UD. Then R∗ T0 + UD. And we have, as a consequence of Lemma 19.3.2, that V + XUX X B A∗ D 0 T0 X or, equivalently, that (V + XUX )A∗
B − XT0
X A∗
D.
(3.22)
Thus, it follows from Theorem 11.2.4 that A∗ WB − WXT0 + [I − W(V + XUX )]L
(3.23)
for some matrix L. Moreover, upon replacing A∗ in equality (3.22) with expression (3.23), we find [in light of result (3.20)] that X WB − X WXT0 D , or, equivalently, that X WXT0 X WB − D, so that T0 is a solution to linear system (3.17). Conversely, suppose that R∗ T∗ + UD and A∗ WB − WXT∗ + [I − W(V + XUX )]L for some solution T∗ to linear system (3.17) and for some matrix L. Then, making use of results (3.19) – (3.21), we find that (V + XUX )A∗ + XT∗
(V + XUX )WB − (V + XUX )WXT∗ + (V + XUX )[I − W(V + XUX )]L + XT∗
B − XT∗ + 0 + XT∗ B
and X A∗
so that
X WB − X WXT∗ + X [I − W(V + XUX )]L X WB − X WXT∗ X WB − (X WB − D) D ,
V + XUX X
X 0
A∗ T∗
B . D
Since T∗ R∗ − UD, it follows from Lemma 19.3.2 that A∗ and R∗ are the first and second parts of a solution to linear system (3.14). Finally, note that the consistency of linear system (3.14) was established in Theorem 19.2.2 and that its consistency implies the consistency of linear system (3.17). Q.E.D.
19.3 Expressions for Solutions to Constrained Minimization Problem
471
Theorem 19.3.3 suggests a “computational” scheme for solving linear system (3.1) or, equivalently, linear system (3.14). First, obtain a solution T∗ to linear system (3.17). Then use expressions (3.16) and (3.15) to obtain the first and second parts of a solution to linear system (3.14) — the matrix L in expression (3.16) can be chosen arbitrarily; in particular, L can be set equal to 0. Result (3.11), which is for the special case where C(X) ⊂ C(V), is generalized in the following theorem. Theorem 19.3.5. Let V represent an n × n symmetric nonnegative definite matrix and X an n × p matrix. Further, let U represent any p × p matrix such that C(X) ⊂ C(V + XUX ), and let W represent an arbitrary generalized inverse of V + XUX . Then, rank(X WX) rank(X) . (3.24) Proof. Observe (in light of Lemma 19.3.4) that R(X ) ⊂ R(V + XUX ) and hence (in light of Lemma 9.3.5) that X W(V + XUX ) X . Now, let Z I − (X )− X . Then, X WVZ X WVZ + X WXUX Z X W(V + XUX )Z X Z 0 . Thus, since (as a consequence of Theorem 17.2.13 and Lemma 19.3.4) C(X, VZ) C(X, V) C(V + XUX ) , we find (in light of Corollary 4.2.4) that C(X WX) C(X WX, 0) C(X WX, X WVZ) C[X W(X, VZ)] C[X W(V + XUX )] C(X ) , implying that rank(X WX) rank(X). Q.E.D. In light of Lemma 19.3.1, we have the following corollary of Theorem 19.3.5. Corollary 19.3.6. Let V represent an n × n symmetric nonnegative definite matrix and X an n × p matrix. Further, let U represent any p × p matrix such that C(X) ⊂ C(V + XUX ), and let W represent an arbitrary generalized inverse of V + XUX . Then, X(X WX)− X WX X , X WX(X WX)− X X .
(3.25) (3.26)
In connection with Theorem 19.3.3, it is clear from result (3.24) that, aside from the special case where rank(X) p, linear system (3.17) has an infinite number of solutions (for T). However, since, for any solution T∗ to linear system (3.17), T∗ + UD is the second part of a solution to linear system (3.14), it follows from Theorem 19.2.2 that the value of X(T + UD) is invariant to the choice of solution
472
19. Minimization of a Second-Degree Polynomial
and hence that XT is invariant to the choice of solution — since R(X WX) R(X) (as is evident from Theorem 19.3.5 and Corollary 4.4.7), the invariance of XT is also apparent from Theorem 11.10.1. Since the matrix (X WX)− (X WB − D) is one solution to linear system (3.17), we find [upon substituting this solution in expression (3.16)] that the n × s matrix A is the first part of some solution to linear system (3.14) if and only if A [W − WX(X WX)− X W]B + WX(X WX)− D + [I − W(V + XUX )]L for some matrix L, or, equivalently, if and only if A W(I − PX,W )B + WX(X WX)− D + [I − W(V + XUX )]L
(3.27)
for some L. Clearly, the first part of the solution to linear system (3.14) is unique if and only if V + XUX is nonsingular or, equivalently (in light of Lemma 19.3.4), if and only if rank(V, X) n. The matrix W in Theorem 19.3.3 (and in Theorem 19.3.5 and Corollary 19.3.6) is by definition a generalized inverse of the matrix V + XUX — recall that V is a symmetric nonnegative definite matrix and that U is any matrix such that C(X) ⊂ C(V + XUX ). There is no requirement that W be a generalized inverse of V. Nevertheless, U can be chosen in such a way that W will be a generalized inverse of V as well as of V + XUX . To verify this, it suffices (in light of Theorem 18.2.5) to show that U can be chosen in such a way that C(V) and C(XUX ) are essentially disjoint and R(V) and R(XUX ) are essentially disjoint [and also, of course, in such a way that C(X) ⊂ C(V + XUX )]. For purposes of constructing such a U, let R represent any matrix such that V RR — the existence of which follows from Corollary 14.3.8 — let T represent any matrix whose columns span the null space of V, and observe (in light of Corollaries 7.4.5, 4.5.6, and 17.2.14) that C(V, X) C(V, XX )
C(V, XX T)
C(R, XX T)
C[(R, XX T)(R, XX T) ] C(V + XX TT XX ) . Now, set U X TT X. Then, C(V + XUX ) C(V, X), or, equivalently (in light of Lemma 19.3.4), C(X) ⊂ C(V + XUX ). Moreover, C(XUX ) C[XX T(XX T) ] C(XX T), implying (in light of Corollary 17.2.14) that C(V) and C(XUX ) are essentially disjoint. And, since clearly XUX is symmetric, it follows from Lemma 17.2.1 that R(V) and R(XUX ) are also essentially disjoint.
19.4 Some Results on Generalized Inverses of Partitioned Matrices
19.4
473
Some Results on Generalized Inverses of Partitioned Matrices
In Subsection a, some expressions areobtained for generalized inverses of par V X titioned matrices of the form (where V is symmetric and nonnegative X 0 definite), and some basic properties of such generalized inverses are described. Actually, some of these results are applicable to generalized inverses of partitioned V X matrices of the more general form (where Y is not necessarily equal Y 0 to X ) and do not require that V be symmetric or nonnegative definite (or even square). Then, in Subsection b, an alternative derivation of the results of Section 19.3c [on the solution of linear system (3.1)] is devised by applying the results of Subsection a.
a. Some expressions and basic properties It is easy to verify the following lemma. Lemma 19.4.1. Let V represent an m × n matrix, X an m × p matrix, and Y a q × n matrix. And, let G11 represent an n × m matrix, G12 an n × q matrix, G21 a p × m matrix, and G22 a p × q matrix. Then, G11 G12 V X G11 V + G12 Y G11 X , (4.1) G21 G22 G21 V + G22 Y G21 X Y 0
V X G11 G12 VG11 + XG21 VG12 + XG22 . (4.2) Y 0 G21 G22 YG11 YG12 G11 G12 V X Further, is a generalized inverse of the partitioned matrix G21 G22 Y 0 if and only if V(G11 V + G12 Y) + X(G21 V + G22 Y) V [or, equivalently, (VG11 + XG21 )V + (VG12 + XG22 )Y V], (4.3a) (VG11 + XG21 )X X, (4.3b) Y(G11 V + G12 Y) Y, and (4.3c) (4.3d) YG11 X 0 .
V X Some basic properties of generalized inverses of matrices of the form X 0 (where V is symmetric and nonnegative definite) are established in the following theorem. Theorem 19.4.2. Let V represent an n × n symmetric nonnegative definite G11 G12 matrix and X an n × p matrix. And, let G (where G11 is of G21 G22
474
19. Minimization of a Second-Degree Polynomial
dimensions n ×n) represent an arbitrary generalized inverse of the partitioned V X matrix . Then, X 0 (1) X G12 X X and XG21 X X (i.e., G12 is a generalized inverse of X and G21 a generalized inverse of X); (2) VG12 X XG21 V −XG22 X ; (3) VG11 X 0, X G11 V 0, and X G11 X 0; (4) V VG11 V − XG22 X ; and (5) VG11 V, VG12 X , XG21 V, and XG22 X are symmetric and are invariant to the choice of the generalized inverse G. Proof. (1) – (2) Consider the linear system V X A 0 X 0 R X (in an n × n matrix A and a p × n matrix R). Since (according to Corollary 14.3.8) V K K for some matrix K, it follows from Theorem 7.4.8 that this linear system is consistent. Thus, 0 0 G11 G12 V X , (4.4) X X G21 G22 X 0 V X and also [since, in light of the symmetry of , G is a generalized inverse X 0 V X of ] X 0 V X G11 G21 0 0 . (4.5) X 0 G12 G22 X X Moreover,
V X 0 VG12 X + XG22 X G11 G12 , X 0 X G21 G22 X G12 X 0 VG21 X + XG22 X G11 G21 V X X G12 G22 X G21 X X 0
(4.6)
(4.7)
[as can be easily verified by taking advantage of result (4.2)]. Clearly, results (4.6) and (4.4) imply that VG12 X + XG22 X 0, or, equivalently, that VG12 X −XG22 X , and that X G12 X X . And results (4.7) and (4.5) imply that VG21 X + XG22 X 0 and X G21 X X , and hence that XG21 V (VG21 X ) (−XG22 X ) −XG22 X and XG21 X (X G21 X ) (X ) X. (3) That X G11 X 0 is evident from Lemma 19.4.1. And, as a further consequence of Lemma 19.4.1, we have that (VG11 + XG21 )X X and X (G11 V +
19.4 Some Results on Generalized Inverses of Partitioned Matrices
475
G12 X ) X , implying [in light of Part (1)] that VG11 X X − XG21 X 0 and X G11 V X − X G12 X 0. (4) It follows from Lemma 19.4.1 that V VG11 V + VG12 X + XG21 V + XG22 X . And, upon applying Part (2), we find that V VG11 V − XG22 X − XG22 X + XG22 X VG11 V − XG22 X . ∗ G11 G∗12 (5) Let G∗ represent an arbitrary generalized inverse of ∗ ∗ G21 G22 V X (where G∗11 is of dimensions n × n and where G∗ may differ from X 0 G). Then, making use of Parts (3) and (4), we find that VG∗11 V
VG∗11 (VG11 V − XG22 X )
VG∗11 VG11 V − VG∗11 XG22 X
VG∗11 VG11 V (since VG∗11 X 0) VG∗11 VG11 V − XG∗22 X G11 V (since X G11 V 0) (VG∗11 V − XG∗22 X )G11 V VG11 V . And, upon setting G∗ G , we find, in particular, that VG11 V VG11 V or, equivalently, that (VG11 V) VG11 V. Thus, VG11 V is symmetric and is invariant to the choice of the generalized inverse G. Further, since [as a consequence of Part (4)] XG22 X VG11 V − V, XG22 X is symmetric and is invariant to the choice of G, and, in light of Part (2), VG12 X and XG21 V are symmetric and are invariant to the choice of G. Q.E.D. Let V represent an n × n symmetric nonnegative definite matrix and X an n × p matrix. In the special case where C(X) ⊂ C(V), Theorem 9.6.1 can be used to V X obtain a generalized inverse for the partitioned matrix in terms of V− X 0 and (X V− X)− . Upon applying formula (9.6.2) [and observing that −(X V− X)− is a generalized inverse of −X V− X], we find that [in the special case where C(X) ⊂ C(V)] the partitioned matrix − V − V− X(X V− X)− X V− V− X(X V− X)− (4.8) (X V− X)− X V− −(X V− X)− V X is a generalized inverse of . X 0 A generalization of formula (4.8) that applies without restriction [i.e., that applies even if C(X) is not contained in C(V)] is given by the following theorem. Theorem 19.4.3. Let V represent an n × n symmetric nonnegative definite matrix and X an n × p matrix. Further, let U represent any p × p matrix such
476
19. Minimization of a Second-Degree Polynomial
that C(X) ⊂ C(V + XUX ), and let W represent an arbitrary generalized inverse of V + XUX . Then the partitioned matrix W − WX(X WX)− X W WX(X WX)− (X WX)− X W −(X WX)− + U
V X . X 0 Preliminary to proving Theorem 19.4.3, it is convenient to establish the following theorem, which is of some interest in its own right. Theorem 19.4.4. Let V represent an m × n matrix, X an m × p matrix, n Y a q × G11 G12 matrix, and U a p × q matrix. (1) Then, for any generalized inverse G21 G22 V X of the partitioned matrix (where G11 is of dimensions n × m), the partiY 0 G11 G12 tioned matrix is a generalized inverse of the partitioned matrix G21 G22 − U V + XUY X H11 H12 . (2) Conversely, for any generalized inverse of Y 0 H21 H22 V + XUY X the partitioned matrix (where H11 is of dimensions n × m), the Y 0 H12 H11 partitioned matrix is a generalized inverse of the partitioned H21 H22 + U V X matrix . Y 0 Proof (of Theorem 19.4.4). (1) Let V + XUY X G11 G12 V + XUY X C , Y 0 G21 G22 − U Y 0 is a generalized inverse of the partitioned matrix
C11 C12 and partition C as C (where C11 is of dimensions m × n). C21 C22 Then, making use of the results of Lemma 19.4.1, we find that C22 C21
C12
YG11 X 0 , Y(G11 V + G11 XUY + G12 Y)
Y(G11 V + G12 Y) + YG11 XUY
Y(G11 V + G12 Y)
Y,
(VG11 + XUYG11 + XG21 )X
(since YG11 X 0)
(VG11 + XG21 )X + XUYG11 X (VG11 + XG21 )X X,
19.4 Some Results on Generalized Inverses of Partitioned Matrices
C11
(VG11 + XUYG11 + XG21 )(V + XUY) + (VG12 + XUYG12 + XG22 − XU)Y
(VG11 + XG21 )V + XUYG11 V
477
+(VG11 + XG21 )XUY + XUYG11 XUY +(VG12 + XG22 )Y + XUYG12 Y − XUY (VG11 + XG21 )V + XUYG11 V + XUY + 0 +(VG12 + XG22 )Y + XUYG12 Y − XUY (since YG11 X 0) (VG11 + XG21 )V + (VG12 + XG22 )Y + XUYG11 V + XUYG12 Y
V + XUYG11 V + XUYG12 Y V + XUY(G11 V + G12 Y) V + XUY . G11 G12 V + XUY X Thus, is a generalized inverse of . Y 0 G21 G22 V X (V + XUY) + X(−U)Y X (2) Rewriting as and applying Part (1) Y 0 Y 0 (with V+ XUY in place of V and −U in place that the partitioned of U), we find H11 H12 H12 H11 matrix , which equals , is a generalized H21 H22 − (−U) H21 H22 + U V X inverse of . Q.E.D. Y 0 Proof (of Theorem 19.4.3). Since (in light of Lemma 19.3.4) R(X ) ⊂ R(V + XUX ), formula (9.6.2) (for the generalized inverse of a partitioned matrix) is V + XUX X applicable to the partitioned matrix . Upon applying that formula X 0 [and observing that −(X WX)− is a generalized inverse of X WX], we find that the partitioned matrix W − WX(X WX)− X W WX(X WX)− (X WX)− X W −(X WX)− V + XUX X is a generalized inverse of . Thus, it follows fom Part (2) of X 0 Theorem 19.4.4 that the partitioned matrix W − WX(X WX)− X W WX(X WX)− (X WX)− X W −(X WX)− + U V X is a generalized inverse of the partitioned matrix . Q.E.D. X 0
b. Alternative derivation of the results of Section 19.3c For purposes of obtaining an alternative derivation of the results of Section 19.3c, let V represent an n × n symmetric nonnegative definite matrix and X an n × p
478
19. Minimization of a Second-Degree Polynomial
matrix. Further, let U represent any p × p matrix such that C(X) ⊂ C(V + XUX ), and let W represent an arbitrary generalized inverse of V + XUX . Then, upon taking the generalized inverse G [of the partitioned matrix V X ] in Theorem 19.4.2 to be the generalized inverse given by Theorem X 0 19.4.3, it follows from Part (1) of Theorem 19.4.2 that X WX(X WX)− X X , X(X WX)− X WX X .
(4.9) (4.10)
And, in light of Lemma 19.3.1, it is evident from equality (4.9) or (4.10) that rank(X WX) rank(X) .
(4.11)
Now, let B represent an n × s matrix such that C(B) ⊂ C(V, X) and D a p × s matrix such that C(D) ⊂ C(X ). And, let G11 G12 G21 G22
W − WX(X WX)− X W, WX(X WX)− ,
(X WX)− X W, −(X WX)− + U .
G11 G12 is a genThen, according to Theorem 19.4.3, the partitioned matrix G21 G22 V X eralized inverse of the partitioned matrix , and it follows from Theorem X 0 11.2.4 that A∗ and R∗ are, respectively, the first (n × s) and second (p × s) parts of a solution to the (consistent) linear system A B V X (4.12) R D X 0 (in an n × s matrix A and a p × s matrix R) if and only if G11 G12 B In 0 G11 G12 V A∗ + − R∗ G21 G22 0 Ip D X G21 G22
X L 0 M
for some n × s matrix L and some p × s matrix M. Note that, as a consequence of Lemma 19.3.4, X X W(V + XUX ), or, equivalently, that X (I − WV) X WXUX . Thus, making use of results (4.1) and (4.10), we find that V X G11 G12 X 0 G21 G22 0 WV + WX(X WX)− X (I − WV) −(X WX)− X (I − WV) + UX (X WX)− X WX W(V + XUX ) 0 . [I − (X WX)− X WX]UX (X WX)− X WX
19.5 Some Additional Results on the Form of Solutions
479
We conclude that A∗ and R∗ are, respectively, the first and second parts of a solution to linear system (4.12) if and only if A∗ [W − WX(X WX)− X W]B + WX(X WX)− D + [I − W(V + XUX )]L, R∗ (X WX)− (X WB − D) + UD + [I − (X WX)− X WX](M − UX L) for some matrices L and M, or, equivalently, if and only if A∗ [W − WX(X WX)− X W]B + WX(X WX)− D +[I − W(V + XUX )]L, (4.13) − − R∗ (X WX) (X WB − D) + UD + [I − (X WX) X WX]Z (4.14) for some matrices L and Z. This result can be reexpressed in terms of the linear system X WXT X WB − D
(4.15)
(in a p × s matrix T). Since clearly D X K for some matrix K, it follows from result (4.9) that X WX(X WX)− (X WB − D) X WB − D and hence (in light of Lemma 9.5.1) that linear system (4.15) is consistent. Further, in light of Corollary 4.4.7, it follows from result (4.11) that R(X WX) R(X), implying (in light of Theorem 11.10.1) that XT is invariant to the choice of solution to linear system (4.15). Then, upon recalling Theorem 11.2.4 and observing that the matrix (X WX)− (X WB − D) is a solution to linear system (4.15), we find that equalities (4.13) and (4.14) hold for some matrices L and Z if and only if R∗ T∗ + UD and A∗ WB − WXT∗ + [I − W(V + XUX )]L for some solution T∗ to linear system (4.15) and for some matrix L.
19.5
Some Additional Results on the Form of Solutions to the Constrained Minimization Problem
Let a represent an n × 1 vector of variables. And consider the minimization of the quadratic form a Va subject to the constraint X a d, where V is an n × n symmetric nonnegative definite matrix, X is an n × p matrix, and d is a p × 1 vector such that d ∈ C(X ). This minimization problem is a special case of the minimization problem considered in Sections 19.2 – 19.4. It follows from the results of Sections 19.2 – 19.4 that the problem of minimizing a Va subject to X a d has a solution or solutions of the form a WX(X WX)− d ,
(5.1)
480
19. Minimization of a Second-Degree Polynomial
where W is an n×n matrix. For the vector (5.1) to be a solution to this minimization problem, it is sufficient (in light of the results of Section 19.3c) that W equal any generalized inverse of V + XUX , where U is any p × p matrix such that C(X) ⊂ C(V + XUX ). In this section, conditions are given that are necessary (as well as sufficient) for the vector (5.1) to solve, for every d ∈ C(X ), the problem of minimizing a Va subject to X a d (when W does not vary with d). For fixed V, these conditions characterize those vectors of the form (5.1) that are solutions [for every d ∈ C(X )] to this minimization problem. For fixed W, these conditions characterize those nonnegative definite quadratic forms (in a) for which the vector (5.1) is a solution to the constrained minimization problem. The following theorem gives what are perhaps the most basic of the necessary and sufficient conditions. Theorem 19.5.1. Let V represent an n × n symmetric nonnegative definite matrix, W an n × n matrix, X an n × p matrix, and d a p × 1 vector. Then, for the vector WX(X WX)− d to be a solution, for every d ∈ C(X ), to the problem of minimizing the quadratic form a Va (in a) subject to X a d, it is necessary and sufficient (assuming that the elements of W are not functionally dependent on d) that C(VWX) ⊂ C(X) (5.2) and rank(X WX) rank(X) .
(5.3)
Proof. It follows from Theorem 19.2.1 that a Va has a minimum at WX(X WX)− d under the constraint X a d [where d ∈ C(X )] if and only if VWX(X WX)− d + Xr 0 for some vector r and X WX(X WX)− d d, or, equivalently, if and only if VWX(X WX)− d ∈ C(X) and X WX(X WX)− d d. Thus, for WX(X WX)− d to be a solution, for every d ∈ C(X ), to the problem of minimizing a Va subject to X a d, it is necessary and sufficient that, for every n × 1 vector u, VWX(X WX)− X u ∈ C(X) and X WX(X WX)− X u X u or, equivalently, that C[VWX(X WX)− X ] ⊂ C(X) (5.4) and X WX(X WX)− X X .
(5.5)
It remains to show that conditions (5.4) and (5.5) are equivalent to conditions (5.2) and (5.3). If condition (5.2) is satisfied, then, since C[VWX(X WX)− X ] ⊂ C(VWX), condition (5.4) is satisfied; and if condition (5.3) is satisfied, then, as a consequence of Lemma 19.3.1, condition (5.5) is satisfied. Conversely, suppose that conditions (5.4) and (5.5) are satisfied. Then it follows from Lemma 19.3.1 that condition (5.3) is satisfied. And, as a further consequence of Lemma 19.3.1, we have that VWX(X WX)− X WX VWX .
19.5 Some Additional Results on the Form of Solutions
Thus,
481
C(VWX) ⊂ C[VWX(X WX)− X ] ,
and hence condition (5.2) is satisfied. Q.E.D. In connection with Theorem 19.5.1, note that the condition C(VWX) ⊂ C(X) is equivalent to the condition VWX XQ for some matrix Q .
(5.6)
And, letting Z represent any matrix whose columns span C ⊥ (X) or, equivalently, span N (X ), it is also equivalent to the condition Z VWX 0
(5.7)
(as is evident from Corollary 12.5.7). Moreover, the condition rank(X WX) rank(X) is equivalent to each of the following conditions: X(X WX)− X WX X, X WX(X WX)− X X , R(X WX) R(X), C(X WX) C(X )
(5.8) (5.9) (5.10) (5.11)
(as is evident from Lemma 19.3.1 and Corollary 4.4.7). Thus, variations on Theorem 19.5.1 can be obtained by replacing condition (5.2) with condition (5.6) or (5.7) and/or by replacing condition (5.3) with any one of conditions (5.8) – (5.11). Note (in light of Corollary 14.11.3) that one circumstance under which the condition rank(X WX) rank(X) is satisfied is that where W is symmetric and positive definite. The following theorem provides alternatives to the necessary and sufficient conditions given by Theorem 19.5.1 [conditions (5.2) and (5.3)] and to the variations on those conditions [conditions (5.6) – (5.7) and (5.8) – (5.11)]. Theorem 19.5.2. Let V represent an n × n symmetric nonnegative definite matrix, W an n × n matrix, X an n × p matrix, and d a p × 1 vector. Then, for the vector WX(X WX)− d to be a solution, for every d ∈ C(X ), to the problem of minimizing the quadratic form a Va (in a) subject to X a d, it is necessary and sufficient that there exist a p × p matrix U such that (V + XUX )WX X .
(5.12)
It is also necessary and sufficient that W be expressible in the form W G + K∗ ,
(5.13)
where, for some p × p matrix U such that C(X) ⊂ C(V + XUX ), G is an arbitrary generalized inverse of V + XUX , and where K∗ is some solution to the system V KX 0 (in an n × n matrix K). X
482
19. Minimization of a Second-Degree Polynomial
Preliminary to proving Theorem 19.5.2, it is convenient to prove the following lemma. Lemma 19.5.3. For any n × n symmetric nonnegative definite matrix V, n × n matrix W, and n × p matrix X, C(VWX) ⊂ C(X) ⇒ R(VWX) ⊂ R(X WX) . Proof (of Lemma 19.5.3). Suppose that C(VWX) ⊂ C(X). Then, as a consequence of Corollary 4.2.4, C(X W VWX) ⊂ C(X W X) , and (in light of Lemma 4.2.5) we have that R[(WX) VWX] R[(X W VWX) ] ⊂ R[(X W X) ] R(X WX) . Since (in light of Lemma 14.11.2) R[(WX) VWX] R(VWX), we conclude that R(VWX) ⊂ R(X WX). Q.E.D. Proof (of Theorem 19.5.2). To prove the first part of the theorem, it suffices (in light of Theorem 19.5.1) to show that there exists a matrix U that satisfies condition (5.12) if and only if C(VWX) ⊂ C(X) and rank(X WX) rank(X) or, equivalently (in light of Corollary 4.4.7), if and only if C(VWX) ⊂ C(X) and R(X WX) R(X). Upon observing that condition (5.12) is equivalent to the condition XUX WX X − VWX , it is clear from Corollary 9.7.2 that there exists a matrix U that satisfies condition (5.12) if and only if C(X − VWX) ⊂ C(X) and R(X − VWX) ⊂ R(X WX) or, equivalently (in light of Lemma 4.5.10), if and only if C(VWX) ⊂ C(X) and R(X − VWX) ⊂ R(X WX). Now, suppose that C(VWX) ⊂ C(X), implying (according to Lemma 19.5.3) that R(VWX) ⊂ R(X WX). Then if R(X WX) R(X), it follows from Lemma 4.5.10 that R(X − VWX) ⊂ R(X WX). Conversely, if R(X − VWX) ⊂ R(X WX), it follows from Lemma 4.5.10 that R(X) ⊂ R(X WX) or, equivalently [since clearly R(X WX) ⊂ R(X)], that R(X WX) R(X). Thus, C(VWX) ⊂ C(X) and R(X−VWX) ⊂ R(X WX) if and only if C(VWX) ⊂ C(X) and R(X WX) R(X). And we conclude that there exists a matrix U that satisfies condition (5.12) if and only if C(VWX) ⊂ C(X) and R(X WX) R(X). To complete the proof of Theorem 19.5.2, it suffices to show that W is expressible in the form (5.13) if and only if there exists a matrix U that satisfies condition (5.12). Suppose that W is expressible in the form (5.13). Then, making use of Lemma 19.3.4, we find that (V + XUX )WX (V + XUX )GX + VK∗ X + XUX K∗ X X + 0 + XU0 X .
19.5 Some Additional Results on the Form of Solutions
483
Thus, there exists a matrix U that satisfies condition (5.12). Conversely, suppose that there exists a matrix U that satisfies condition (5.12). Then, clearly, C(X) ⊂ C(V + XUX ). And, it follows from Theorem 11.12.1 that W (V + XUX )− XX− + Z∗ for some solution Z∗ to the system (V + XUX )ZX 0 (in Z). Now, let K∗ Z∗ − (V + XUX )− (I − XX− ). Then W
(V + XUX )− XX− + (V + XUX )− (I − XX− ) + K∗ (V + XUX )− + K∗ .
Moreover, it follows from Lemma 19.3.4 that C(V + XU X ) C(V, X), implying (in light of Lemma 4.2.2) that (V, X) (V + XU X )L for some matrix L and hence that V (V, X) L (V + XU X ) L (V + XUX ) . X Thus, V K∗ X X
V V Z (V + XUX )− (I − XX− )X X − ∗ X X V L (V + XUX )Z∗ X − (V + XUX )− (X − XX− X) X V (V + XUX )− 0 0 , L 0 − X V so that K∗ is a solution to the system KX 0. Q.E.D. X As discussed earlier, the first of the necessary and sufficient conditions in Theorem 19.5.1 [condition (5.2)] is equivalent to condition (5.6) and also to condition (5.7), and, consequently, can be replaced by either of those two conditions. It can also be replaced by any condition that in combination with condition (5.3) gives a pair of conditions that is equivalent to conditions (5.2) and (5.3). The following theorem gives some variations on Theorem 19.5.1 obtained by replacing condition (5.2) by a condition of the latter kind. Theorem 19.5.4. Let V represent an n × n symmetric nonnegative definite matrix, W an n × n matrix, X an n × p matrix, and d a p × 1 vector. Then, for the vector WX(X WX)− d to be a solution, for every d ∈ C(X ), to the problem of minimizing the quadratic form a Va (in a) subject to X a d, it is necessary and sufficient that
PX,W V(I − PX,W ) 0 and rank(X WX) rank(X) or, equivalently, that
PX,W V PX,W VPX,W and rank(X WX) rank(X) .
484
19. Minimization of a Second-Degree Polynomial
It is also necessary and sufficient that
PX,W V VPX,W and rank(X WX) rank(X) or, equivalently, that PX,W V be symmetric and rank(X WX) rank(X). Preliminary to proving Theorem 19.5.4, it is convenient to establish the following lemma. Lemma 19.5.5. Let W represent an n × n matrix and X an n × p matrix. If rank(X WX) rank(X), then (1) PX,W X X, (2) X WPX,W X W, (3) P2X,W PX,W (i.e., PX,W is idempotent), (4) rank(PX,W ) rank(X), and (5) rank(I − PX,W ) n − rank(X). Proof (of Lemma 19.5.5). Suppose that rank(X WX) rank(X) [and recall that PX,W X(X WX)− X W]. (1) – (2) That PX,W X X and X WPX,W X W is evident from Lemma 19.3.1. (3) Using Part (1), we find that P2X,W PX,W X(X WX)− X W X(X WX)− X W PX,W . (4) – (5) By definition, PX,W XG, where G (X WX)− X W. Since [according to Part (1)] XGX X (i.e., since G is a generalized inverse of X), it follows from result (10.2.1) that rank(PX,W ) rank(X) and from Lemma 10.2.6 that rank(I − PX,W ) n − rank(X). Q.E.D. Proof (of Theorem 19.5.4). To establish the necessity and sufficiency of the conditions PX,W V(I−PX.W ) 0 and rank(X WX) rank(X), it suffices (in light of Theorem 19.5.1) to show that these conditions are equivalent to the conditions C(VWX) ⊂ C(X) and rank(X WX) rank(X). Suppose that rank(X WX) rank(X). Then, since X W X (X WX) , rank(X W X) rank(X). Thus, applying Parts (1) and (2) of Lemma 19.5.5 (with W in place of W), we find that PX,W X X and X W PX,W X W . Letting Z I − PX,W and applying Part (5) of Lemma 19.5.5, we find also that X Z (Z X) [(I−PX,W )X] 0 0 and rank(Z) rank(Z ) n−rank(X), implying (in light of Lemma 11.4.1) that C(Z) N (X ). Now, if C(VWX) ⊂ C(X) or, equivalently, if VWX XQ for some matrix Q, then
PX,W V(I − PX,W ) [(I − PX,W )VPX,W ] {(I − PX,W )VWX[(X W X)− ] X } {(I − PX,W )XQ[(X W X)− ] X } {(X − X)Q[(X W X)− ] X } 0 .
Conversely, if PX,W V(I − PX,W ) 0, then
(VWX) Z X W V(I − PX,W ) X W PX,W V(I − PX,W ) 0 , implying (in light of Corollary 12.5.7) that C(VWX) ⊂ C(X).
19.6 Transformation of the Constrained Minimization Problem
485
We conclude that the conditions PX,W V(I − PX,W ) 0 and rank(X WX) rank(X) are equivalent to the conditions C(VWX) ⊂ C(X) and rank(X WX) rank(X). To complete the proof of Theorem 19.5.4, it suffices to show that the conditions PX,W V VPX,W and rank(X WX) rank(X) are equivalent to the conditions PX,W V PX,W VPX,W and rank(X WX) rank(X). If PX,W V VPX,W and rank(X WX) rank(X), then [since X W X (X WX) ] rank(X W X) rank(X), implying [in light of Part (3) of Lemma 19.5.5] that P2X,W PX,W , so that
PX,W V PX,W (PX,W V) PX,W VPX,W .
Conversely, if PX,W V PX,W VPX,W , then PX,W V is symmetric, so that
PX,W V (PX,W V) VPX,W .
Thus, the conditions PX,W V VPX,W and rank(X WX) rank(X) are equivalent to the conditions PX,W V PX,W VPX,W and rank(X WX) rank(X). Q.E.D.
19.6
Transformation of the Constrained Minimization Problem to an Unconstrained Minimization Problem
Let a represent an n×1 vector of variables, and impose on a the constraint X a d, where X is an n × p matrix and d is a p × 1 vector such that d ∈ C(X ). Define f (a) a Va − 2b a, where V is an n × n symmetric nonnegative definite matrix and b is an n × 1 vector such that b ∈ C(V, X). In Section 19.3, an expression was obtained for the general form of a solution to the problem of minimizing f (a) (under the constraint X a d). This expression was derived by “solving” the linear system V X a b X 0 r d (in a and r), which is the linear system obtained by equating the derivative of the Lagrangian function (with respect to a) to the null vector and by adjoining the constraint. An alternative expression for the general form of a solution to the constrained minimization problem can be derived by transforming this problem to an unconstrained minimization problem (and by then making use of the results of Section 19.1). For purposes of deriving such an expression, let a0 (X )− d, and let Z I−(X )− X . Or, more generally, let a0 represent any n×1 vector such that X a0 d,
486
19. Minimization of a Second-Degree Polynomial
and let Z represent any n × k matrix whose columns span the null space of X . Then, in light of Theorem 11.2.3, X a d if and only if a a0 + Zu for some k × 1 vector u. Now, for u ∈ Rk×1 , define h(u) f (a0 + Zu). Then, h(u)
u Z VZu + 2a0 VZu + a0 Va0 − 2b a0 − 2b Zu
u Z VZu − 2[Z (b − Va0 )] u + c,
(6.1)
where c (Va0 − 2b) a0 (which is a constant). It is clear that the minimization of f (a) (with respect to a), subject to the constraint X a d, is equivalent to the unconstrained minimization of h(u) (with respect to u). The equivalence is in the sense that f (a) attains its minimum value (under the constraint X a d) at a point a∗ if and only if a∗ a0 + Zu∗ for some k × 1 vector u∗ at which h(u) attains its minimum value. Since b ∈ C(V, X), b Vr + Xs for some vectors r and s, so that Z (b − Va0 ) Z (Vr + Xs − Va0 ) Z V(r − a0 ) + (X Z) s Z V(r − a0 ) + 0 Z V(r − a0 ) , implying that Z (b − Va0 ) ∈ C(Z V) and hence (in light of Lemma 14.11.2) that Z (b − Va0 ) ∈ C(Z VZ). Thus, it follows from Theorem 19.1.1 that the linear system Z VZu Z (b − Va0 ) (in u) is consistent and that h(u) has a minimum value at a point u∗ if and only if u∗ is a solution to Z VZu Z (b − Va0 ), in which case h(u∗ ) −(b − Va0 ) Zu∗ + c −b a0 − (b − Va0 ) (a0 + Zu∗ ) .
(6.2)
We conclude that f (a) attains its minimum value (under the constraint X a d) at a point a∗ if and only if a∗ a0 + Zu∗ for some solution u∗ to Z VZu Z (b − Va0 ), or, equivalently (in light of Theorem 11.2.4), if and only if a∗ a0 + Z(Z VZ)− Z (b − Va0 ) + Z[I − (Z VZ)− Z VZ]w
(6.3)
for some k × 1 vector w, in which case f (a∗ ) −b a0 − (b − Va0 ) a∗ .
19.7
(6.4)
The Effect of Constraints on the Generalized Least Squares Problem
Let X represent an n×p matrix, W an n×n symmetric nonnegative definite matrix, and y an n-dimensional column vector. Further, let b represent a p × 1 vector of
19.7 The Effect of Constraints on the Generalized Least Squares Prob- lem
487
variables, and consider the minimization of the quadratic form (y−Xb) W(y−Xb) (in the difference between y and Xb), subject to the constraint A b d , where A is a p × q matrix and d is a q × 1 vector in C(A ). The unconstrained minimization of (y − Xb) W(y − Xb) was considered in Section 12.4 (in the special case where W I), in Section 14.12f (in the special case where W is positive definite), and in Section 14.12i (in the general case). It was found that (in the absence of constraints) (y − Xb) W(y − Xb) attains its minimum value at a point b∗ if and only if b∗ is a solution to the linear system X WXb X Wy (in b), in which case (y − Xb∗ ) W(y − Xb∗ ) y W(y − Xb∗ ) . The results of Section 19.3 can be used to generalize our results on the unconstrained minimization of (y − Xb) W(y − Xb) to the case where b is subject to the constraint A b d. For this purpose, reexpress (y − Xb) W(y − Xb) as (y − Xb) W(y − Xb) b X WXb − 2(X Wy) b + y Wy , and observe (in light of Theorem 14.2.9) that X WX is nonnegative definite (and symmetric) and (in light of Lemma 14.11.2) that X Wy ∈ C(X WX). Now, applying Theorem 19.2.1 (with b, A, X WX, and X Wy in place of a, X, V, and b, respectively), we find that the linear system X WX A b X Wy (7.1) 0 r A d (in b and the q × 1 vector r) is consistent (and that the values of X WXb and Ar are invariant to the choice of solution to this linear system). Further, (y − Xb) W(y − Xb) has a minimum value (under the constraint A b d) at a point b∗ if and only if b∗ is the first part of some solution to linear system (7.1). And, for the first and second parts b∗ and r∗ of any solution to linear system (7.1), (y − Xb∗ ) W(y − Xb∗ )
y Wy − (X Wy) b∗ − d r∗ y W(y − Xb∗ ) − d r∗ .
(7.2) (7.3)
Linear system (7.1) comprises the two equations X WXb + Ar X Wy ,
(7.4)
A b d .
(7.5)
If C(A) ⊂ C(X WX), then (according to the results of Section 19.3b) b and r satisfy equations (7.4) and (7.5) if and only if r satisfies the equation A (X WX)− Ar A (X WX)− X Wy − d
(7.6)
488
19. Minimization of a Second-Degree Polynomial
and b (X WX)− X Wy − (X WX)− Ar + [I − (X WX)− X WX]k
(7.7)
for some p × 1 vector k. Note (in light of Lemma 14.11.2 and Corollary 14.11.3) that the condition C(A) ⊂ C(X WX) is equivalent to the condition C(A) ⊂ C(X W) and that, in the special case where W is positive definite, it is equivalent to the condition C(A) ⊂ C(X ). Turning now to the “solution” of linear system (7.1) in the general case [where C(A) is not necessarily contained in C(X WX)], let U represent any q × q matrix such that C(A) ⊂ C(X WX + AUA ), and let G represent any generalized inverse of X WX + AUA . Then, according to Theorem 19.3.3, b∗ and r∗ are, respectively, the first and second parts of a solution to linear system (7.1) if and only if
and
r∗ t∗ + Ud
(7.8)
b∗ GX Wy + GAt∗ + [I − G(X WX + AUA )]k
(7.9)
for some solution t∗ to the (consistent) linear system A GAt A GX Wy − d
(7.10)
(in a q × 1 vector t) and for some p × 1 vector k. In particular, b∗ is the first part of some solution to linear system (7.1) if and only if b∗ G(I − PA,G )X Wy +
GA(A GA)− d + [I − G(X WX + AUA )]k
(7.11)
for some vector k.
Exercises Section 19.1 1. Let a represent an n×1 vector of (unconstrained) variables, and define f (a) a Va − 2b a, where V is an n × n matrix and b an n × 1 vector. Show that if V is not nonnegative definite or if b ∈ C(V), then f (a) is unbounded from below; that is, corresponding to any scalar c, there exists a vector a∗ such that f (a∗ ) < c. Section 19.3 2. Let V represent an n × n symmetric matrix and X an n × p matrix. Show that, for any p × p matrix U such that C(X) ⊂ C(V + XUX ), (1) (V + XUX )(V + XUX )− V V; (2) V(V + XUX )− (V + XUX ) V.
Exercises
489
3. In Section 19.3c, Theorem 19.3.3 was proved “from scratch.” Devise a shorter proof of Theorem 19.3.3 by taking advantage of Theorem 11.10.1. 4. Let V represent an n × n symmetric matrix and X an n × p matrix. Further, let U X TT X, where T is any matrix whose columns span the null space of V. Show that C(X) ⊂ C(V+XUX ) and that C(V) and C(XUX ) are essentially disjoint, and R(V) and R(XUX ) are essentially disjoint, as has already been established (in Section 19.3c) in the special case where V is nonnegative definite. 5. Let V represent an n × n symmetric nonnegative definite matrix and X an n × p matrix. Further, let Z represent any matrix whose columns span N (X ) or, equivalently, C ⊥ (X). And adopt the same terminology as in Exercise 17.20. (a) Using the result of Part (a) of Exercise 17.20 (or otherwise) show that an n × n matrix H is a projection matrix for C(X) along C(VZ) if and only if H is the first (n × n) part of a solution to the consistent linear system V X A 0 (E.1) X 0 R X (in an n × n matrix A and a p × n matrix R). (b) Letting U represent any p × p matrix such that C(X) ⊂ C(V + XUX ) and letting W represent an arbitrary generalized inverse of V + XUX , show that an n × n matrix H is a projection matrix for C(X) along C(VZ) if and only if H PX,W + K[I − (V + XUX )W] for some n × n matrix K. Section 19.5 6. Let V represent an n × n symmetric nonnegative definite matrix, W an n × n matrix, and X an n × p matrix. Show that, for the matrix WX(X WX)− X to be the first (n × n) part of some solution to the (consistent) linear system V X A 0 (E.2) X 0 R X (in an n × n matrix A and a p × n matrix R), it is necessary and sufficient that C(VWX) ⊂ C(X) and rank(X WX) rank(X). 7. Let a represent an n × 1 vector of variables, and impose on a the constraint X a d, where X is an n × p matrix and d is a p × 1 vector such that d ∈ C(X ). Define f (a) a Va − 2b a, where V is an n × n symmetric nonnegative definite matrix and b is an n × 1 vector such that b ∈ C(V, X). Further, define g(a) a (V + W)a − 2(b + c) a, where W is any n × n matrix such that C(W) ⊂ C(X) and R(W) ⊂ R(X ) and where c is any n × 1 vector in C(X). Show that the constrained (by X a d) minimization of g(a) is equivalent to the constrained minimization of f (a) [in the sense that g(a) and f (a) attain their minimum values at the same points].
490
19. Minimization of a Second-Degree Polynomial
8. Let V represent an n × n symmetric nonnegative definite matrix, W an n × n matrix, X an n × p matrix, f an n × 1 vector, and d a p × 1 vector. Further, let b represent an n × 1 vector such that b ∈ C(V, X). Generalize Theorem 19.5.1 by showing that, for the vector W(I − PX,W )f + WX(X WX)− d to be a solution, for every d ∈ C(X ), to the problem of minimizing the second-degree polynomial a Va−2b a (in a) subject to X a d, it is necessary and sufficient that VWf − b ∈ C(X),
(E.3)
C(VWX) ⊂ C(X),
(E.4)
rank(X WX) rank(X) .
(E.5)
and
9. Let V and W represent n × n matrices, and let X represent an n × p matrix. Show that if V and W are nonsingular, then the condition C(VWX) ⊂ C(X) is equivalent to the condition C(V−1 X) ⊂ C(WX) and is also equivalent to the condition C(W−1 V−1 X) ⊂ C(X). 10. Let V represent an n × n symmetric positive definite matrix, W an n × n matrix, X an n × p matrix, and d a p × 1 vector. Show that, for the vector WX(X WX)− d to be a solution, for every d ∈ C(X ), to the problem of minimizing the quadratic form a Va (in a) subject to X a d, it is necessary and sufficient that V−1 PX,W be symmetric, and rank(X WX) rank(X). Show that it is also necessary and sufficient that (I − PX,W )V−1 PX,W 0 and rank(X WX) rank(X). 11. Let V represent an n × n symmetric nonnegative definite matrix, X an n × p matrix, and d a p × 1 vector. Show that each of the following six conditions is necessary and sufficient for the vector X(X X)− d to be a solution for every d ∈ C(X ) to the problem of minimizing the quadratic form a Va (in a) subject to X a d: (a) C(VX) ⊂ C(X) (or, equivalently, VX XQ for some matrix Q); (b) PX V(I − PX ) 0 (or, equivalently, PX V PX VPX ); (c) PX V VPX (or, equivalently, PX V is symmetric); (d) C(VPX ) ⊂ C(PX ); (e) C(VPX ) C(V) ∩ C(PX ); (f) C(VX) C(V) ∩ C(X).
Bibliographic and Supplementary Notes
491
12. Let V represent an n × n symmetric nonnegative definite matrix, W an n × n matrix, X an n×p matrix, and d a p×1 vector. Further, let K represent any n×q matrix such that C(K) C(I − PX,W ). Show that if rank(X WX) rank(X), then each of the following two conditions is necessary and sufficient for the vector WX(X WX)− d to be a solution, for every d ∈ C(X ), to the problem of minimizing the quadratic form a Va (in a) subject to X a d: (a) V XR1 X + (I − PX,W )R2 (I − PX,W ) for some p × p matrix R1 and some n × n matrix R2 ; (b) V XS1 X + KS2 K for some p × p matrix S1 and some q × q matrix S2 . And show that if rank(X WX) rank(X) and W is nonsingular, then another necessary and sufficient condition is: (c) V tW−1 + XT1 X + KT2 K for some scalar t, some p × p matrix T1 , and some q × q matrix T2 . [Hint. To establish the necessity of Condition (1), begin by observing that V CC for some matrix C and by expressing C as C PX,W C + (I − PX,W )C.]
Bibliographic and Supplementary Notes §2 – §5. Many of the results presented in Sections 2 – 5 are adaptations of results reported by Rao (1989), Baksalary and Puntanen (1989), and Puntanen and Styan (1989). §6. The approach taken in Section 6 is essentially the same as that taken by Albert (1972, sec. 6.1).
This page intentionally left blank
20 The Moore-Penrose Inverse
By definition, a generalized inverse of an m × n matrix A is any n × m matrix G such that AGA A. Except for the special case where A is a (square) nonsingular matrix, A has an infinite number of generalized inverses (as discussed in Section 9.2a). While for many purposes one generalized inverse is as good as another, there is a unique one of the generalized inverses, known as the Moore-Penrose inverse, that is sometimes singled out for special attention and that is the primary subject of the present chapter.
20.1
Definition, Existence, and Uniqueness (of the Moore-Penrose Inverse)
The Moore-Penrose inverse of an m × n matrix A can be described in terms of the conditions given by the following theorem. Theorem 20.1.1. Corresponding to any m × n matrix A, there is a unique n × m matrix G such that (1) AGA A (i.e., G is a generalized inverse of A); (2) GAG G (i.e., A is a generalized inverse of G); (3) (AG) AG (i.e., AG is symmetric); and (4) (GA) GA (i.e., GA is symmetric).
494
20. The Moore-Penrose Inverse
Moreover, if A 0, then G 0; and if A 0, then G T (B AT )−1 B ,
(1.1)
where B is any matrix of full column rank and T any matrix of full row rank such that A BT. In connection with Theorem 20.1.1, note that the existence of a matrix B of full column rank and a matrix T of full row rank such that A BT follows from Theorem 4.4.8. Note also that B AT B BTT and that [since rank(B B) rank(B) and rank(TT ) rank(T)] B B and TT are nonsingular, implying in particular that B AT is nonsingular. Further, (B AT )−1 (TT )−1 (B B)−1 , so that, as an alternative to formula (1.1), we have the formula G T (TT )−1 (B B)−1 B .
(1.2)
Proof (of Theorem 20.1.1). If A 0, then it is obvious that Conditions (1) – (4) are satisfied by taking G 0. Suppose now that A 0, and take G T (B AT )−1 B or, equivalently, take G T (TT )−1 (B B)−1 B . Then, AGA BTT (TT )−1 (B B)−1 B BT BT A , and GAG
T (TT )−1 (B B)−1 B BTT (TT )−1 (B B)−1 B
T (TT )−1 (B B)−1 B G ,
so that Conditions (1) and (2) are satisfied. Further, AG BTT (TT )−1 (B B)−1 B B(B B)−1 B PB , and
GA T (TT )−1 (B B)−1 B BT PT ,
implying [in light of Part (3) of Theorem 12.3.4] that AG and GA are symmetric. We have established that Conditions (1) – (4) are satisfied by taking G G∗ , where G∗ is the n × m matrix defined as follows: G∗ 0, if A 0; G∗ T (B AT )−1 B , if A 0. Moreover, for any n × m matrix G that satisfies Conditions (1) – (4), G GAG G(AG) GG A GG (AG∗ A) GG A (AG∗ ) GG A AG∗ G(AG) AG∗ GAGAG∗ GAG∗ GAG∗ AG∗ (GA) (G∗ A) G∗ A G A G∗ G∗ (AGA) G∗ G∗ A G∗ G∗ (G∗ A) G∗ G∗ AG∗ G∗ . Thus, there is no choice for G other than G G∗ that satisfies Conditions (1) – (4). Q.E.D.
20.2 Some Special Cases
495
The n×m matrix G defined (uniquely) by Conditions (1) – (4) of Theorem 20.1.1 is called the Moore-Penrose inverse (or Moore-Penrose pseudoinverse) of A. (The practice of referring to this matrix as the Moore-Penrose inverse is widespread, although not universal — some other authors refer to this matrix as the generalized inverse or the pseudoinverse.) The existence and uniqueness of the n × m matrix G that satisfies Conditions (1) – (4) was established by Penrose (1955). An earlier effort by Moore (1920) to extend the concept of an inverse matrix to (square) singular matrices and to rectangular matrices had led to a different characterization of the same matrix. Conditions (1) – (4) are referred to as the Penrose conditions or (less commonly and perhaps less appropriately) as the Moore-Penrose conditions. The symbol A+ is used to denote the Moore-Penrose inverse of a matrix A. Clearly, A+ is a particular one of what may be an infinite number of generalized inverses of A.
20.2
Some Special Cases
For any n × n nonsingular matrix A, A+ A−1 , as is evident from Lemma 9.1.1 or upon recalling that AA−1 A−1 A In and verifying that A−1 satisfies the Penrose conditions. More generally, for any m × n matrix A of rank m (i.e., of full row rank), A+ A (AA )−1
(2.1)
— this result is a special case of result (1.1) (that where B Im and T A). Similarly, for any m × n matrix A of rank n (i.e., of full column rank) A+ (A A)−1 A .
(2.2)
For an n × n diagonal matrix D {di }, D+ diag(d1+ , d2+ , . . . , dn+ ) , where (for i 1, . . . , n) di+
%
0, 1/di , if di 0, if di 0 .
More generally, for any matrices A1 , A2 , . . . , Ak , + + [diag(A1 , A2 , . . . , Ak )]+ diag(A+ 1 , A2 , . . . , Ak ) ,
as is easily verified. The following lemmas are easy to verify. Lemma 20.2.1. For any symmetric idempotent matrix A, A+ A. Lemma 20.2.2. For any m × n matrix P whose n columns form an orthonormal (with respect to the usual inner product) set (of m-dimensional vectors) or, equivalently, for any m × n matrix P such that P P In , P+ P .
496
20.3
20. The Moore-Penrose Inverse
Special Types of Generalized Inverses
If in choosing a generalized inverse G of a matrix A [or, equivalently, a matrix G that satisfies Penrose Condition (1)] we require that G satisfy Penrose Conditions (2) – (4), we obtain the Moore-Penrose inverse A+ of A. A less restrictive approach is to require only that G satisfy a particular one or a particular two of Penrose Conditions (2) – (4). Generalized inverses that satisfy Penrose Condition (2), (4), or (3) are considered in Subsections a, b, and c, respectively.
a. Reflexive generalized inverses A generalized inverse G of a matrix A is said to be reflexive if GAG G. Thus, an n × m matrix G is a reflexive generalized inverse of an m × n matrix A if it satisfies Penrose Conditions (1) and (2). The following theorem gives an expression for the general form of a reflexive generalized inverse. Theorem 20.3.1. Let A represent an m×n nonnull matrix, and let B represent any matrix of full column rank and T any matrix of full row rank such that A BT. Then, an n × m matrix G is a reflexive generalized inverse of A if and only if G RL for some right inverse R of T and some left inverse L of B. Proof. Suppose that G RL for some right inverse R of T and some left inverse L of B. Then, according to Theorem 9.1.3, G is a generalized inverse of A. Further, GAG RLBTRL RIIL RL G, so that G is reflexive. Conversely, suppose that G is a reflexive generalized inverse of A. Then, BTGBT AGA A BT BIT, and it follows from Part (3) of Lemma 8.3.1 that TGB I. Thus, GB is a right inverse of T, and TG is a left inverse of B. Further, G GAG (GB)TG . Q.E.D. Any nonreflexive generalized inverse of a matrix A can be converted into a reflexive generalized inverse by making use of the corollary of the following lemma. Lemma 20.3.2. Let G1 and G2 represent any (possibly different) generalized inverses of a matrix A. Then, the matrix G1 AG2 is a reflexive generalized inverse of A. Proof. That G1 AG2 is a reflexive generalized inverse of A is evident upon observing that A(G1 AG2 )A (AG1 A)G2 A AG2 A A , and
20.3 Special Types of Generalized Inverses
497
(G1 AG2 )A(G1 AG2 ) G1 (AG2 A)G1 AG2 G1 AG1 AG2 G1 AG2 . Q.E.D. Corollary 20.3.3. Let G represent any generalized inverse of a matrix A. Then the matrix GAG is a reflexive generalized inverse of A. Proof. The corollary is essentially a special case of Lemma 20.3.2, namely, the special case where G2 G1 . Q.E.D. Note (as a rather obvious converse of Corollary 20.3.3) that any reflexive generalized inverse B of a matrix A is expressible in the form B GAG for some generalized inverse G of A — in particular, B GAG for G B. A very basic characteristic of reflexive generalized inverses is described in the following theorem. Theorem 20.3.4. A generalized inverse G of a matrix A is reflexive if and only if rank(G) rank(A). Proof. Suppose that G is reflexive. Then, as a consequence of Lemma 9.3.9, rank(G) ≥ rank(A) and also (since A is a generalized inverse of G) rank(A) ≥ rank(G). Thus, rank(G) rank(A). Conversely, suppose that rank(G) rank(A). Then, in light of Lemma 10.2.5 and of Corollary 9.3.8 (or in light of Theorem 10.2.7), GA is idempotent, and rank(GA) rank(A) rank(G) . Thus, it follows from Theorem 10.2.7 that A is a generalized inverse of G (i.e., that GAG G) and hence that G is a reflexive generalized inverse of A. Q.E.D. If an n × m matrix G is a generalized inverse of an m × n matrix A, then (according to Lemma 9.3.3) G is a generalized inverse of A . Similarly, if A is a generalized inverse of G, then A is a generalized inverse of G . Thus, we have the following lemma. Lemma 20.3.5. If an n × m matrix G is a reflexive generalized inverse of an m × n matrix A, then G is a reflexive generalized inverse of A .
b. Minimum norm generalized inverses A generalized inverse G of a matrix A is said to be a minimum norm generalized inverse (of A) if (GA) GA. Thus, an n × m matrix G is a minimum norm generalized inverse of an m × n matrix A if it satisfies Penrose Conditions (1) and (4). The rationale for referring to such a matrix as a minimum norm generalized inverse comes from the following theorem. Theorem 20.3.6. Let A represent an m × n matrix and G an n × m matrix. If G is a minimum norm generalized inverse of A, then, for every b ∈ C(A), x attains its minimum value over the set {x : Ax b} [comprising all solutions to the linear system Ax b (in x)] uniquely at x Gb (where the norm is the usual norm). Conversely, if, for every b ∈ C(A), x attains its minimum value over the set {x : Ax b} at x Gb, then G is a minimum norm generalized inverse of A. Proof. Let H represent a minimum norm generalized inverse of A. And let x represent an arbitrary solution to Ax b [where b ∈ C(A)]. Then, according to
498
20. The Moore-Penrose Inverse
Theorem 11.2.4, x Hb + (I − HA)y for some vector y. Further, x2
[Hb + (I − HA)y] · [Hb + (I − HA)y] Hb2 + (I − HA)y2 + 2(Hb) · (I − HA)y
(where the inner product is the usual inner product). And since b Ar for some vector r and since (according to Lemma 10.2.5) HA is idempotent, (Hb) · (I − HA)y (HAr) · (I − HA)y
(HAr) (I − HA)y
r (HA) (I − HA)y
r HA(I − HA)y
r [HA − (HA)2 ]y r (HA − HA)y 0 . Thus, x2 Hb2 + (I − HA)y2 , so that x2 ≥ Hb2 , or, equivalently, x ≥ Hb, with equality holding if and only if (I−HA)y 0. Since (I−HA)y 0 if and only if (I−HA)y 0, and hence if and only if x Hb (and since Hb is a solution to Ax b), we conclude that x attains its minimum value over the set {x : Ax b} uniquely at x Hb. To complete the proof, suppose that, for every b ∈ C(A), x attains its minimum value over the set {x : Ax b} at x Gb. Then, clearly, Gb Hb for every b ∈ C(A), or, equivalently, GAr HAr for every (n × 1) vector r, implying (in light of Lemma 2.3.2) that GA HA. Thus, (GA) (HA) HA GA. And since (in light of Theorem 9.1.2) G is a generalized inverse of A, we conclude that G is a minimum norm generalized inverse of A. Q.E.D. Two alternative characterizations of a minimum norm generalized inverse are given by the following theorem and corollary. Theorem 20.3.7. An n × m matrix G is a minimum norm generalized inverse of an m × n matrix A if and only if GAA A , or, equivalently, if and only if AA G A. Proof. Suppose that GAA A or, equivalently, that AA G A. Then, AGAA AA , implying (in light of Corollary 5.3.3) that AGA A. Moreover, GA GAA G GA(GA) , so that GA is symmetric. Thus, G is a minimum norm generalized inverse of A. Conversely, if G is a minimum norm generalized inverse of A, then GAA (GA) A A G A (AGA) A . Q.E.D.
20.3 Special Types of Generalized Inverses
499
Corollary 20.3.8. An n × m matrix G is a minimum norm generalized inverse of an m × n matrix A if and only if GA PA , or, equivalently, if and only if A G PA . Proof. In light of Theorem 20.3.7, it suffices to show that GA PA ⇔ GAA A. If GA PA , then [in light of Part (1) of Theorem 12.3.4] GAA PA A A . Conversely, if GAA A , then [in light of Part (5) of Theorem 12.3.4] GA GAA (AA )− A A (AA )− A PA . Q.E.D. Let A represent an m×n matrix. Then, for any generalized inverse G of A, GA is idempotent, R(GA) R(A), and rank(GA) rank(A), as was established earlier (in Lemmas 10.2.5 and 9.3.7 and Corollary 9.3.8). Further, for any minimum norm generalized inverse G of A, GA is (according to the very definition of a minimum norm generalized inverse) symmetric. Two other properties of the matrix product GA obtained by premultiplying A by a minimum norm generalized inverse G (of A) are described in the following, additional corollary of Theorem 20.3.7. Corollary 20.3.9. Let G represent a minimum norm generalized inverse of a matrix A. Then, (1) GA is invariant to the choice of G; and (2) C(GA) C(A ). Proof. According to Corollary 20.3.8, GA PA . Thus, GA is invariant to the choice of G, and [in light of Part (7) of Theorem 12.3.4] C(GA) C(PA ) C(A ). Q.E.D. A generalized inverse G of a matrix A is said to be a minimum norm reflexive generalized inverse (of A) if it is a minimum norm generalized inverse (of A) and it is reflexive. Thus, an n × m matrix G is a minimum norm reflexive generalized inverse of an m × n matrix A if it satisfies Penrose Conditions (1), (2), and (4). The following lemma gives a basic property of a minimum norm reflexive generalized inverse. Lemma 20.3.10. For any minimum norm reflexive generalized inverse G of a matrix A, C(G) C(A ). Proof. Recalling Corollary 4.2.3, it follows from Part (2) of Corollary 20.3.9 that C(A ) ⊂ C(G). Moreover, in light of Theorem 20.3.4, rank(G) rank(A) rank(A ). Thus, as a consequence of Theorem 4.4.6, we have that C(G) C(A ). Q.E.D. Since [according to Part (1) of Theorem 12.3.4] A (AA )− AA A , it follows from Theorem 20.3.7 that the matrix A (AA )− is a minimum norm generalized inverse of A. The following theorem makes a stronger statement. Theorem 20.3.11. An n × m matrix G is a minimum norm reflexive generalized inverse of an m × n matrix A if and only if G A H for some generalized inverse H of AA . Proof. According to Part (1) of Theorem 12.3.4, A (AA )− AA A . Thus, as
500
20. The Moore-Penrose Inverse
previously indicated, it follows from Theorem 20.3.7 that the matrix A (AA )− is a minimum norm generalized inverse of A. Further, [A (AA )− ]A[A (AA )− ] [A (AA )− AA ](AA )− A (AA )− , so that A (AA )− is a minimum norm reflexive generalized inverse of A. Now, suppose that G is a minimum norm reflexive generalized inverse of A. Then it follows from Lemma 20.3.10 that C(G) C(A ) and hence that there exists a matrix H such that G A H. And A AGA AA HA, implying that Q.E.D. AA AA HAA , so that H is a generalized inverse of AA .
c. Least squares generalized inverses A generalized inverse G of a matrix A is said to be a least squares generalized inverse (of A) if (AG) AG. Thus, an n×m matrix G is a least squares generalized inverse of an m × n matrix A if it satisfies Penrose Conditions (1) and (3). Two alternative characterizations of a least squares generalized inverse are given by the following theorem and corollary — these characterizations are analogous to the characterizations of a minimum norm generalized inverse given, respectively, by Theorem 20.3.7 and Corollary 20.3.8. Theorem 20.3.12. An n × m matrix G is a least squares generalized inverse of an m × n matrix A if and only if A AG A , or, equivalently, if and only if G A A A. Proof. Suppose that A AG A or, equivalently, that G A A A. Then, A AGA A A, implying (in light of Corollary 5.3.3) that AGA A. Moreover, AG G A AG (AG) AG, so that AG is symmetric. Thus, G is a least squares generalized inverse of A. Conversely, if G is a least squares generalized inverse of A, then A AG A (AG) (AGA) A . Q.E.D. Corollary 20.3.13. An n × m matrix G is a least squares generalized inverse of an m × n matrix A if and only if AG PA . Proof. In light of Theorem 20.3.12, it suffices to show that AG PA ⇔ A AG A . If AG PA , then [in light of Part (5) of Theorem 12.3.4] A AG A PA A . Conversely, if A AG A , then [in light of Part(1) of Theorem 12.3.4] AG A(A A)− A AG A(A A)− A PA . Q.E.D. The aptness of our use of the term least squares generalized inverse is evident from the following corollary (of Theorem 20.3.12). Corollary 20.3.14. A p × n matrix G is a least squares generalized inverse of an n × p matrix X if and only if, for every y ∈ Rn×1 , the norm y − Xb (of the difference between y and Xb) attains its minimum value (with respect to the p × 1 vector b) at b Gy (where the norm is the usual norm), or, equivalently, if and
20.3 Special Types of Generalized Inverses
501
only if, for every y ∈ Rn×1 , the sum of squares (y − Xb) (y − Xb) (of the elements of the difference between y and Xb) attains its minimum value at b Gy. Proof. In light of Theorem 20.3.12, it suffices to show that X XG X if and only if, for every y ∈ Rn×1 , (y−Xb) (y−Xb) attains its minimum value at b Gy. Or, equivalently (in light of Theorem 12.4.3), it suffices to show that X XG X if and only if, for every y ∈ Rn×1 , the vector Gy is a solution to the normal equations X Xb X y (i.e., if and only if, for every y ∈ Rn×1 , X XGy X y). If, for every y ∈ Rn×1 , X XGy X y, then it is evident from Lemma 2.3.2 that X XG X . Conversely, if X XG X , then it is obvious that, for every y ∈ Rn×1 , X XGy X y. Q.E.D. Let A represent an m × n matrix. Then, for any generalized inverse G of A, AG is idempotent, C(AG) C(A), and rank(AG) rank(A), as was established earlier (in Lemmas 10.2.5 and 9.3.7 and Corollary 9.3.8). Further, for any least squares generalized inverse G of A, AG is (according to the very definition of a least squares generalized inverse) symmetric. Two other properties of the matrix product AG obtained by postmultiplying A by a least squares generalized inverse G (of A) are described in the following, additional corollary of Theorem 20.3.12. Corollary 20.3.15. Let G represent a least squares generalized inverse of a matrix A. Then, (1) AG is invariant to the choice of G; and (2) R(AG) R(A ). Proof. According to Corollary 20.3.13, AG PA . Thus, AG is invariant to the choice of G, and [in light of Part (7) of Theorem 12.3.4] R(AG) R(PA ) Q.E.D. R(A ). A generalized inverse G of a matrix A is said to be a least squares reflexive generalized inverse (of A) if it is a least squares generalized inverse (of A) and it is reflexive. Thus, an n × m matrix G is a least squares reflexive generalized inverse of an m × n matrix A if it satisfies Penrose Conditions (1), (2), and (3). The following lemma gives some basic properties of a least squares reflexive generalized inverse. Lemma 20.3.16. For any least squares reflexive generalized inverse G of a matrix A, R(G) R(A ) and N (G) C ⊥ (A) N (A ). Proof. Recalling Corollary 4.2.3, it follows from Part (2) of Corollary 20.3.15 that R(A ) ⊂ R(G). Moreover, in light of Theorem 20.3.4, rank(G) rank(A) rank(A ). Thus, as a consequence of Theorem 4.4.6, we have that R(G) R(A ). Further, it follows from Part (2) of Lemma 4.2.5 that C(G ) C(A). And, making use of Lemma 12.5.2, we find that N (G) C ⊥ (G ) C ⊥ (A) N (A ) . Q.E.D. Since [according to Part (5) of Theorem 12.3.4] A A(A A)− A A , it follows from Theorem 20.3.12 that the matrix (A A)− A is a least squares generalized inverse of A. The following theorem makes a stronger statement.
502
20. The Moore-Penrose Inverse
Theorem 20.3.17. An n × m matrix G is a least squares reflexive generalized inverse of an m × n matrix A if and only if G HA for some generalized inverse H of A A. Proof. According to Part (5) of Theorem 12.3.4, A A(A A)− A A . Thus, as previously indicated, it follows from Theorem 20.3.12 that the matrix (A A)− A is a least squares generalized inverse of A. Further, [(A A)− A ]A[(A A)− A ] (A A)− [A A(A A)− A ] (A A)− A , so that (A A)− A is a least squares reflexive generalized inverse of A. Now, suppose that G is a least squares reflexive generalized inverse of A. Then it follows from Lemma 20.3.16 that R(G) R(A ) and hence that there exists a matrix H such that G HA . And A AGA AHA A, implying that A A A AHA A, so that H is a generalized inverse of A A. Q.E.D.
d. Some equivalences The four Penrose conditions can be reexpressed in accordance with the equivalences given by the following, easily verifiable lemma. Lemma 20.3.18. Let A represent an m × n matrix and G an n × m matrix. Then, (1) AGA A ⇔ A G A A ; (2) GAG G ⇔ G A G G ; (3) (AG) AG ⇔ (G A ) G A ; and (4) (GA) GA ⇔ (A G ) A G . As an immediate consequence of Lemma 20.3.18, we have the following corollary (which expands on Lemma 20.3.5). Corollary 20.3.19. An n × m matrix G is a reflexive generalized inverse of an m × n matrix A if and only if G is a reflexive generalized inverse of A . Further, G is a least squares generalized inverse of A if and only if G is a minimum norm generalized inverse of A and is a least squares reflexive generalized inverse of A if and only if G is a minimum norm reflexive generalized inverse of A .
20.4
Some Alternative Representations and Characterizations
The Moore-Penrose inverse can be characterized in the ways described in the following theorem and two corollaries. Theorem 20.4.1. An n × m matrix G is the Moore-Penrose inverse of an m × n matrix A if and only if G is a least squares generalized inverse of A and A is a least squares generalized inverse of G.
20.4 Some Alternative Representations and Characterizations
503
Proof. By definition, G is a least squares generalized inverse of A if and only if AGA A and (AG) AG [which are Penrose Conditions (1) and (3)], and A is a least squares generalized inverse of G if and only if GAG G and (GA) GA [which, in the relevant context, are Penrose Conditions (2) and (4)]. Thus, G is the Moore-Penrose inverse of A if and only if G is a least squares generalized inverse of A and A is a least squares generalized inverse of G. Q.E.D. Corollary 20.4.2. An n × m matrix G is the Moore-Penrose inverse of an m × n matrix A if and only if A AG A and G GA G . Proof. Corollary 20.4.2 follows from Theorem 20.4.1 upon observing (in light of Theorem 20.3.12) that G is a least squares generalized inverse of A if and only if A AG A and that A is a least squares generalized inverse of G if and only if G GA G . Q.E.D. Corollary 20.4.3. An n × m matrix G is the Moore-Penrose inverse of an m × n matrix A if and only if AG PA and GA PG . Proof. Corollary 20.4.3 follows from Theorem 20.4.1 upon observing (in light of Corollary 20.3.13) that G is a least squares generalized inverse of A if and only if AG PA and that A is a least squares generalized inverse of G if and only if GA PG . Q.E.D. The following theorem expresses the Moore-Penrose inverse of a matrix A in terms of solutions to the two linear systems A AX A and AA Y A. Theorem 20.4.4. For any m × n matrix A, A+ Y∗ AX∗ ,
(4.1)
where X∗ is any solution to the (consistent) linear system A AX A (in an n × m matrix X) and Y∗ is any solution to the (consistent) linear system AA Y A (in an m × n matrix Y). Proof. Note (in light of Corollary 7.4.2) that the two linear systems A AX A and AA Y A are consistent. And observe (in light of Theorems 20.3.12 and 20.3.7) that AX∗ A A and (AX∗ ) AX∗ and that AY∗ A A and (Y∗ A) Y∗ A. Thus, A(Y∗ AX∗ )A AY∗ (AX∗ A) AY∗ A A; (Y∗ AX∗ )A(Y∗ AX∗ ) Y∗ (AX∗ A)Y∗ AX∗ Y∗ AY∗ AX∗ Y∗ AX∗ ; [A(Y∗ AX∗ )] [(AY∗ A)X∗ ] (AX∗ ) AX∗ (AY∗ A)X∗ A(Y∗ AX∗ ); [(Y∗ AX∗ )A] [Y∗ (AX∗ A)] (Y∗ A) Y∗ A Y∗ (AX∗ A) (Y∗ AX∗ )A . We conclude that Y∗ AX∗ satisfies all four of the Penrose conditions and hence that A+ Y∗ AX∗ . Q.E.D. The matrix (A A)− A is one solution to the linear system A AX A and {since AA is symmetric and hence since [(AA )− ] is a generalized inverse of AA } the matrix [(AA )− ] A is one solution to the linear system AA Y A. Thus, as a special case of formula (4.1) {that obtained by setting X∗ (A A)− A and Y∗ [(AA )− ] A}, we have that A+ A (AA )− A(A A)− A .
(4.2)
504
20. The Moore-Penrose Inverse
Note that the right side of equality (4.2) can be reexpressed as A (AA )− AA− A(A A)− A , giving rise to the alternative representation A+ PA A− PA .
(4.3)
The following theorem gives three expressions for the Moore-Penrose inverse of a (nonnull) symmetric nonnegative definite matrix. Theorem 20.4.5. Let A represent an n × n (nonnull) symmetric nonnegative definite matrix. Then, for any matrix T of full row rank such that A T T, A+
T (TAT )−1 T T (TT )−2 T
+
+
T (T )
(4.4) (4.5) (4.6)
{where (TT )−2 [(TT )−1 ]2 }. In connection with Theorem 20.4.5, note that Theorem 14.3.7 guarantees the existence of a matrix T of full row rank such that A T T. Proof. Results (4.4) and (4.5) are special cases of results (1.1) and (1.2), respectively. Specifically, they are the special cases obtained by setting B T . And in light of result (2.1) [and the symmetry of (TT )−1 ], result (4.6) follows from result (4.5). Q.E.D.
20.5
Some Basic Properties and Relationships
The Moore-Penrose inverse of a matrix A is, by definition, a reflexive generalized inverse, a minimum norm generalized inverse, a least squares generalized inverse, a minimum norm reflexive generalized inverse, and a least squares reflexive generalized inverse (of A). Accordingly, certain properties of Moore-Penrose inverses can be deduced from the properties (discussed in Section 3) of reflexive, minimum norm, least squares, minimum norm reflexive, and least squares reflexive generalized inverses. In particular, the following theorem describes some properties of Moore-Penrose inverses that are immediate consequences of Theorem 20.3.4 and of Corollaries 20.3.8 and 20.3.13 and Lemmas 20.3.10 and 20.3.16. Theorem 20.5.1. For any matrix A, (1) rank(A+ ) rank(A); (2) A+ A PA and AA+ PA ; (3) C(A+ ) C(A ) and R(A+ ) R(A ); and (4) N (A+ ) C ⊥ (A) N (A ). In light of Parts (3) and (6) of Theorem 12.3.4, we have the following corollary of Theorem 20.5.1. Corollary 20.5.2. For any matrix A, A+ A and AA+ are symmetric and idempotent.
20.5 Some Basic Properties and Relationships
505
Some additional properties of Moore-Penrose inverses are described in the following theorem. Theorem 20.5.3. Let A represent an m × n matrix. Then, (1) (A )+ (A+ ) ; (2) if A is symmetric, then A+ is symmetric; (3) if A is symmetric and positive semidefinite, then A+ is symmetric and positive semidefinite; if A is symmetric and positive definite, then A+ is symmetric and positive definite (and if A is symmetric and nonnegative definite, then A+ is symmetric and nonnegative definite); (4) (A+ )+ A; and (5) for any nonzero scalar c, (cA)+ (1/c)A+ . Proof. (1) It is clear from Lemma 20.3.18 that (A+ ) satisfies all four of the Penrose conditions (as applied to the matrix A ) and hence that (A+ ) is the MoorePenrose inverse of A . (2) Part (2) is an immediate consequence of Part (1). (3) Suppose that A is symmetric and nonnegative definite. Then, according to Part (2), A+ is symmetric. And since (according to Theorem 20.5.1) rank(A+ ) rank(A), A+ is (in light of Corollary 14.3.12) singular if A is positive semidefinite and nonsingular if A is positive definite. Further, A+ A+ AA+ (A+ ) AA+ . Thus, it follows from Parts (2) and (3) of Theorem 14.2.9 that A+ is positive semidefinite if A is positive semidefinite and positive definite if A is positive definite. (4) That (A+ )+ A is evident from the definition of the Moore-Penrose inverse (as a matrix that satisfies the four Penrose conditions). (5) Clearly, cA[(1/c)A+ ]cA cAA+ A cA, [(1/c)A+ ]cA[(1/c)A+ ] (1/c)A+ AA+ (1/c)A+ , {cA[(1/c)A+ ]} (AA+ ) AA+ cA[(1/c)A+ ], and {[(1/c)A+ ]cA} (A+ A) A+ A [(1/c)A+ ]cA, so that (1/c)A+ satisfies Penrose Conditions (1) – (4) (as applied to the matrix cA). Q.E.D. Note that, as a special case of Part (5) of Theorem 20.5.3 (that where c −1), we have that, for any matrix A, (−A)+ −A+ .
(5.1)
The Moore-Penrose inverse of a matrix A is related to minimum norm generalized inverses of A A and to least squares generalized inverses of AA , as described in the following theorem. Theorem 20.5.4. Let A represent an m × n matrix. Then, for any least squares
506
20. The Moore-Penrose Inverse
generalized inverse F of AA , A+ A F, and, for any minimum norm generalized inverse H of A A, A+ HA . Proof. According to Theorem 20.3.11, A F is a minimum norm reflexive generalized inverse of A, and, according to Theorem 20.3.17, HA is a least squares reflexive generalized inverse of A. Moreover, (AA F) AA F and (HA A) HA A, so that A F satisfies Penrose Condition (3) and HA satisfies Penrose Condition (4). Thus, both A F and HA satisfy all four Penrose conditions, and hence both equal A+ . Q.E.D. As an immediate consequence of Theorem 20.5.4, we have the following corollary, which relates the Moore-Penrose inverse of a matrix A to the Moore-Penrose inverse of AA and to the Moore-Penrose inverse of A A. Corollary 20.5.5. For any matrix A, A+ A (AA )+ (A A)+ A .
(5.2)
The following theorem relates the Moore-Penrose inverse of a matrix of the form PAQ , where P and Q are orthogonal matrices (or more generally where P and Q are such that P P I and Q Q I), to the Moore-Penrose inverse of A itself. Theorem 20.5.6. Let A represent an m × n matrix. Then, for any r × m matrix P whose columns form an orthonormal (with respect to the usual inner product) set (of r-dimensional vectors) and any s × n matrix Q whose columns form an orthonormal (with respect to the usual inner product) set (of s-dimensional vectors) or, equivalently, for any r × m matrix P such that P P Im and any s × n matrix Q such that Q Q In , (PAQ )+ QA+ P . Proof. It suffices to show that QA+ P satisfies the four Penrose conditions. Clearly, (1) PAQ (QA+ P )PAQ PAA+ AQ PAQ ; (2) QA+ P (PAQ )QA+ P QA+ AA+ P QA+ P ; (3) [PAQ (QA+ P )] (PAA+ P ) P(AA+ ) P PAA+ P PAQ (QA+ P ) ; (4) [QA+ P (PAQ )] (QA+ AQ ) Q(A+ A) Q QA+ AQ QA+ P (PAQ ) . Q.E.D. For any m × n matrix A and any p × q matrix B, A− ⊗ B− is a generalized inverse of the Kronecker product A ⊗ B (as discussed in Section 16.1). This result is generalized in the following theorem. Theorem 20.5.7. Let A represent an m × n matrix, B a p × q matrix, G an n × m matrix, and H a q × p matrix. Then, G ⊗ H satisfies any of the Penrose Conditions (1) – (4) (when the Penrose conditions are applied to the matrix A ⊗ B) that are
20.6 Minimum Norm Solution to the Least Squares Problem
507
satisfied by both G and H (when the Penrose conditions are applied to A and B, respectively). Proof. (1) If AGA A and BHB B, then (as indicated in Section 16.1) (A ⊗ B)(G ⊗ H)(A ⊗ B) (AGA) ⊗ (BHB) A ⊗ B . (2) Similarly, if GAG G and HBH H, then (G ⊗ H)(A ⊗ B)(G ⊗ H) (GAG) ⊗ (HBH) G ⊗ H . (3) If (AG) AG and (BH) BH, then [(A ⊗ B)(G ⊗ H)] [(AG) ⊗ (BH)] (AG) ⊗ (BH) (AG) ⊗ (BH) (A ⊗ B)(G ⊗ H) . (4) Similarly, if (GA) GA and (HB) HB, then [(G ⊗ H)(A ⊗ B)] [(GA) ⊗ (HB)] (GA) ⊗ (HB) (GA) ⊗ (HB) (G ⊗ H)(A ⊗ B) . Q.E.D. As an obvious consequence of Theorem 20.5.7, we have the following corollary. Corollary 20.5.8. For any matrices A and B, (A ⊗ B)+ A+ ⊗ B+ .
20.6
Minimum Norm Solution to the Least Squares Problem
For any n × p matrix X and any n × 1 vector y, the (least squares) problem of minimizing the (usual) norm y − Xb (of the difference between y and Xb) with respect to the p × 1 vector b can be solved by taking b Gy, where G is any least squares generalized inverse of X (as indicated in Corollary 20.3.14). One choice for G is G X+ . The solution (b X+ y) obtained by choosing G X+ has the property described in the following theorem. Theorem 20.6.1. Let X represent an n × p matrix and y an n-dimensional column vector. Taking the norm of a vector to be the usual norm, define S to be the set comprising those values of a p × 1 vector b at which y − Xb attains its minimum value or, equivalently, to be the solution set {b : X Xb X y} of the normal equations. Then, b attains its minimum value over the set S uniquely at b X+ y. Moreover, if G is a p × n matrix such that, for every y, b attains its minimum value over the set S at b Gy, then G X+ . In connection with Theorem 20.6.1, note that in general the set S varies with y (although the dependence of S on y is suppressed in the notation).
508
20. The Moore-Penrose Inverse
Proof. That the set comprising those values of b at which y − Xb attains its minimum value is the same as the solution set of the normal equations is evident from Theorem 12.4.3. Now, let H represent a minimum norm generalized inverse of X X. Then, since S {b : X Xb X y}, it follows from Theorem 20.3.6 that b attains its minimum value over the set S uniquely at b HX y. And, according to Theorem 20.5.4, HX X+ . Thus, b attains its minimum value over the set S uniquely at b X+ y. Further, if G is a p × n matrix such that, for every y, b attains its minimum value over the set S at b Gy, then, for every y, Gy X+ y, implying (in light Q.E.D. of Lemma 2.3.2) that G X+ .
20.7
Expression of the Moore-Penrose Inverse as a Limit
Let F {fij } represent an m × n matrix whose elements are functions defined on some set S of scalars. And let fij (x) represent the value of fij at an arbitrary point x in S. Then, the m × n matrix whose ij th element is fij (x) will be referred to as the value of F at x and will be denoted by the symbol F(x). Further, if every element of F has a limit at a point c (in R), then the m × n matrix whose ij th element is lim fij (x) (the limit of fij at c) will be referred to as the limit of F at c x→c
and will be denoted by the symbol lim F(x). x→c
Clearly, if F is an m × n matrix of functions defined on some set S of scalars and if all mn of these functions are continuous at an interior point c of S, then lim F(x) F(c) .
x→c
Various properties of the limits of matrices of functions can be readily deduced from well-known properties of scalar-valued functions. In particular, for any p × q matrix G of functions defined on some set S (of scalars) that have limits at a point c and for any m × p matrix of constants A and any q × n matrix of constants B, the matrix of functions F, defined by F AGB, has a limit at c, and lim F(x) A[lim G(x)]B .
x→c
x→c
The following theorem expresses the Moore-Penrose inverse of a matrix as a limit. Theorem 20.7.1. For any m × n matrix A, A+ lim (A A + δ 2 In )−1 A lim A (AA + δ 2 Im )−1 . δ→0
δ→0
(7.1)
In connection with Theorem 20.7.1, note (in light of Lemmas 14.2.1 and 14.2.4 and Corollary 14.2.14) that, for δ 0, the matrices A A + δ 2 In and AA + δ 2 Im are positive definite and hence (in light of Lemma 14.2.8) nonsingular.
20.7 Expression of the Moore-Penrose Inverse as a Limit
509
Proof. Suppose that A 0 — that the theorem is valid for A 0 is easy to verify — and let B represent an m × r matrix of full column rank r and T an r × n matrix of full row rank r such that A BT — the existence of such matrices was established in Theorem 4.4.8. And, let L B BT, so that A A T L. Further, let δ represent an arbitrary nonzero scalar [and write δ −2 for (δ −1 )2 ]. Then, since A A + δ 2 In δ 2 (δ −2 T L + In ), δ −2 T L + In (like A A + δ 2 In ) is nonsingular, and (A A + δ 2 In )−1 δ −2 (δ −2 T L + In )−1 . And, in light of Lemma 18.2.3, δ −2 LT + Ir is nonsingular, and (A A + δ 2 In )−1 T δ −2 (δ −2 T L + In )−1 T δ −2 T (δ −2 LT + Ir )−1 . Moreover, since LT + δ 2 Ir δ 2 (δ −2 LT + Ir ), LT + δ 2 Ir is nonsingular, and (LT + δ 2 Ir )−1 δ −2 (δ −2 LT + Ir )−1 . Thus, (A A + δ 2 In )−1 A (A A + δ 2 In )−1 T B T (LT + δ 2 Ir )−1 B .
(7.2)
Now, let δ represent a completely arbitrary (not necessarily nonzero) scalar. Recalling (from Section 20.1) that LT ( B AT ) is nonsingular, observe that LT + δ 2 Ir is nonsingular for δ 0 as well as for δ 0. Observe also (in light of Corollary 13.5.4) that (for i, j 1, . . . , r) the ij th element of (LT + δ 2 Ir )−1 equals αj i /|LT + δ 2 Ir |, where αj i is the j ith element of the cofactor matrix of LT + δ 2 Ir . It is clear from Corollary 13.7.4 (or, more basically, from the very definition of a determinant) that |LT +δ 2 Ir | and the elements of the cofactor matrix of LT +δ 2 Ir are polynomials in δ. Thus, every element of (LT +δ 2 Ir )−1 is a continuous function of δ (at 0 or at any other point) — refer, for example, to Bartle (1976, sec. 20). We conclude that lim (LT + δ 2 Ir )−1 (LT + 02 Ir )−1 (LT )−1
δ→0
and hence [in light of results (7.2) and (1.1)] that lim (A A + δ 2 In )−1 A
δ→0
T [lim (LT + δ 2 Ir )−1 ]B
T (LT )−1 B T (B AT )−1 B A+ .
δ→0
To complete the proof, observe that (for every δ) (A A + δ 2 In )A A (AA + δ 2 Im ) , so that, for δ 0, A (AA + δ 2 Im )−1 (A A + δ 2 In )−1 A ,
(7.3)
510
20. The Moore-Penrose Inverse
as is evident upon premultiplying both sides of equality (7.3) by (A A + δ 2 In )−1 and postmultiplying both sides by (AA + δ 2 Im )−1 . It follows that lim A (AA + δ 2 Im )−1 lim (A A + δ 2 In )−1 A .
δ→0
δ→0
Q.E.D. Result (7.1) is of some relevance in statistics. It can be used in particular to relate the estimates of the parameters in a linear statistical model obtained via a Bayesian approach to those obtained by approaching the estimation of the parameters as a least squares problem. More specifically, it can be used to show that, in the limit (as the “amount of prior information decreases”), the vector of Bayesian estimates equals the minimum norm solution to the least squares problem.
20.8
Differentiation of the Moore-Penrose Inverse
Earlier (in Section 15.10), some results were given on the differentiation of generalized inverses of a matrix of functions. These results were (for the most part) applicable to “any” generalized inverse. In the present section, some results are given that are specific to the Moore-Penrose inverse. The Moore-Penrose inverse of a matrix of functions is continuously differentiable under the conditions set forth in the following lemma. Lemma 20.8.1. Let F represent a p × q matrix of functions, defined on a set S, of an m-dimensional column vector x. And, let c represent any interior point of S at which F is continuously differentiable. If F has constant rank on some neighborhood of c, then F+ is continuously differentiable at c. Proof. Suppose that F has constant rank on some neighborhood of c. Then, since rank(FF ) rank(F F) rank(F), each of the matrices FF and F F has constant rank on some neighborhood of c. And, in light of the results of Section 15.4, each of the matrices FF and F F is continuously differentiable at c. Thus, it follows from Theorem 15.10.1 that there exist generalized inverses G and H of FF and F F, respectively, such that G and H are continuously differentiable at c. Since [according to result (4.2)] F+ F GFHF , we conclude (in light of the results of Section 15.4) that F+ is continuously differentiable at c. Q.E.D. In connection with Lemma 20.8.1, note (in light of Corollary 15.10.4) that, for F+ to be continuously differentiable at c, it is necessary, as well as sufficient, that F have constant rank on some neighborhood of c. In fact, unless F has constant rank on some neighborhood of c, there is (according to Corollary 15.10.4) no generalized inverse of F that is continuously differentiable at c. The following theorem gives a formula for the partial derivatives of the MoorePenrose inverse of a matrix of functions. Theorem 20.8.2. Let F represent a p × q matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Further, let c represent an interior point of S at which F is continuously differentiable, and suppose that F
20.8 Differentiation of the Moore-Penrose Inverse
has constant rank on some neighborhood of c. Then, at x c, ∂F ∂F+ + ∂F + + + −F F + F (F ) (I − FF+ ) ∂xj ∂xj ∂xj ∂F + + + + (I − F F) (F ) F . ∂xj
511
(8.1)
Preliminary to proving Theorem 20.8.2, it is convenient to establish the following theorem. Theorem 20.8.3. Let F represent a p × q matrix of functions, defined on a set S, of a vector x (x1 , . . . xm ) of m variables. Further, let c represent an interior point of S at which F is continuously differentiable, and suppose that F has constant rank on some neighborhood of c. Then, F+ F and FF+ are continuously differentiable at c, and (at x c) ∂F+ F ∂xj
F+
∂FF+ ∂xj
(I − FF+ )
∂F ∂F (I − F+ F) + [F+ (I − F+ F)] , ∂xj ∂xj
(8.2)
∂F + ∂F + F + [(I − FF+ ) F ] . ∂xj ∂xj
(8.3)
Proof (of Theorem 20.8.3). That F+ F and FF+ are continuously differentiable at c follows from Lemmas 15.4.3 and 20.8.1. Now, recall (from Corollary 20.5.2) that F+ F and FF+ are symmetric and idempotent, and observe (in light of Lemma 15.4.3) that (at x c) + + + ∂F F ∂F FF F ∂F+ F ∂xj ∂xj ∂xj + ∂F F + ∂F+ F F F + F+ F ∂xj ∂xj + + + ∂F F + ∂F F F F (8.4) + F F ∂xj ∂xj and similarly ∂FF+ ∂xj
∂FF+ ∂xj
∂FF+ FF+ ∂xj
∂FF+ ∂FF+ + FF+ + FF ∂xj ∂xj + ∂FF ∂FF+ + + FF + FF . ∂xj ∂xj
Moreover, at x c, ∂FF+ F ∂F + ∂F+ F ∂F F F+F , ∂xj ∂xj ∂xj ∂xj
(8.5)
512
20. The Moore-Penrose Inverse
and similarly
∂FF+ F ∂FF+ ∂F ∂F F + FF+ , ∂xj ∂xj ∂xj ∂xj
implying that (at x c) ∂F+ F ∂F (I − F+ F) ∂xj ∂xj
(8.6)
∂F ∂FF+ F (I − FF+ ) . ∂xj ∂xj
(8.7)
F and
Upon substituting expressions (8.6) and (8.7) into expressions (8.4) and (8.5), respectively, we obtain expressions (8.2) and (8.3). Q.E.D. Proof (of Theorem 20.8.2). Observe (in light of Lemmas 20.8.1 and 15.4.3) that F+ , F+ F, and FF+ are continuously differentiable at c. Now, using Lemma 15.4.3, we find that (at x c) ∂F+ FF+ ∂F+ F + ∂F+ ∂F+ F + F+ F . ∂xj ∂xj ∂xj ∂xj Moreover, at x c,
(8.8)
∂F + ∂F+ ∂FF+ F +F , ∂xj ∂xj ∂xj
implying that (at x c) F
∂F+ ∂FF+ ∂F + − F . ∂xj ∂xj ∂xj
(8.9)
And, upon substituting expression (8.9) into the second term of expression (8.8) and then making use of results (8.3) and (8.2), we find that (at x c) ∂F+ ∂xj
∂F + ∂FF+ ∂F+ F + F + F+ + F ∂xj ∂xj ∂xj ∂F + ∂F + ∂F + −F+ F + F+ (I − FF+ ) F + F+ [(I − FF+ ) F ] ∂xj ∂xj ∂xj ∂F ∂F + F+ (I − F+ F)F+ + [F+ (I − F+ F)] F+ . ∂xj ∂xj −F+
Thus, since F+ (I − FF+ ) 0 and (I − F+ F)F+ 0 and since (according to Corollary 20.5.2) F+ F and FF+ are symmetric, ∂F ∂F + ∂F+ −F+ F + F+ (F+ ) (I − FF+ ) ∂xj ∂xj ∂xj ∂F + + + + (I − F F) (F ) F . ∂xj Q.E.D.
Exercises
513
Exercises Section 20.2 1. Show that, for any m × n matrix B of full column rank and for any n × p matrix C of full row rank, (BC)+ C+ B+ . 2. Show that, for any m × n matrix A, A+ A if and only if A A is idempotent. Section 20.3 3. In connection with Theorem 9.6.1, show that if C(U) ⊂ C(T) and R(V) ⊂ R(T) and if the generalized inverses T− and Q− (of T and Q, respectively) are both reflexive, then partitioned (9.6.2) matrices and (9.6.3) are reflexive T U W V generalized inverses of and , respectively. V W U T 4. Determine which of Penrose Conditions (1) – (4) are necessarily satisfied by a left inverse of an m × n matrix A (when a left inverse exists). Which of the Penrose conditions are necessarily satisfied by a right inverse of an m × n matrix A (when a right inverse exists)? Section 20.4 5. Let A represent an m × n matrix and G an n × m matrix. (a) Show that G is the Moore-Penrose inverse of A if and only if G is a minimum norm generalized inverse of A and A is a minimum norm generalized inverse of G. (b) Show that G is the Moore-Penrose inverse of A if and only if GAA A and AGG G . (c) Show that G is the Moore-Penrose inverse of A if and only if GA PA and AG PG . 6. (a) Show that, for any m×n matrices A and B such that A B 0 and BA 0, (A + B)+ A+ + B+ . (b) Let A1 , A2 , . . . Ak represent m × n matrices such that, for j > i 1, . . . , k − 1, Ai Aj 0 and Aj Ai 0. Generalize the result of Part + + (a) by showing that (A1 + A2 + · · · + Ak )+ A+ 1 + A 2 + · · · + Ak . Section 20.5 7. Show that, for any m × n matrix A, (A+ A)+ A+ A, and (AA+ )+ AA+ . 8. Show that, for any n × n symmetric matrix A, AA+ A+ A.
514
20. The Moore-Penrose Inverse
9. Let V represent an n × n symmetric nonnegative definite matrix, X an n × p matrix, and d a p × 1 vector. Using the results of Exercises 8 and 19.11 (or otherwise), show that, for the vector X(X X)− d to be a solution, for every d ∈ C(X ), to the problem of minimizing the quadratic form a Va (in a) subject to X a d, it is necessary and sufficient that C(V+ X) ⊂ C(X). 10. Use Theorem 20.4.5 to devise an alternative proof of Part (3) of Theorem 20.5.3. 11. Let C represent an m × n matrix. Show that, for any m × m idempotent matrix A, (AC)+ A (AC)+ and that, for any n × n idempotent matrix B, B (CB)+ (CB)+ . 12. Let a represent an n × 1 vector of variables, and impose on a the constraint X a d, where X is an n × p matrix and d a p × 1 vector such that d ∈ C(X ). Define f (a) a Va − 2b a, where V is an n × n symmetric nonnegative definite matrix and b is an n × 1 vector such that b ∈ C(V, X). Further, let R represent any matrix such that V R R, let a0 represent any n × 1 vector such that X a0 d, and take s to be any n × 1 vector such that b Vs + Xt for some p × 1 vector t. Using the results of Section 19.6 and of Exercise 11 (or otherwise), show that f (a) attains its minimum value (under the constraint X a d) at a point a∗ if and only if a∗ a0 + [R(I − PX )]+ R(s − a0 ) + {I − [R(I − PX )]+ R}(I − PX )w for some n × 1 vector w. 13. Let A represent an n × n symmetric nonnegative definite matrix, and let B represent an n × n matrix. Suppose that B − A is symmetric and nonnegative definite (in which case B is symmetric and nonnegative definite). Using Theorems 18.3.4 and 20.4.5 and the results of Exercises 1 and 18.15 (or otherwise), show that A+ − B+ is nonnegative definite if and only if rank(A) rank(B).
Bibliographic and Supplementary Notes §3(c). The proof of Corollary 20.3.14 makes use of the results of Section 12.4 (on the least squares problem). §6. The result of Exercise 13 is Theorem 3.1 of Milliken and Akdeniz (1977). §8. Formula (8.1) (for the partial derivatives of the Moore-Penrose inverse of a matrix of functions) was given by Golub and Pereyra (1973, thm. 4.3). The derivation of this formula given in Section 8 is patterned after that of Magnus and Neudecker (1988, sec. 8.5).
21 Eigenvalues and Eigenvectors
The decomposition of a matrix A into a product of two or three matrices can (depending on the characteristics of those matrices) be a very useful first step in computing such things as the rank, the determinant, or an (ordinary or generalized) inverse (of A) as well as a solution of a linear system having A as its coefficient matrix. In particular, decompositions like the QR, LDU, U DU, and Cholesky decompositions — refer to Sections 6.4 and 14.5 — in which the component matrices are diagonal or triangular, or have orthonormal rows or columns, can be very useful for computational purposes. Moreover, establishing that a matrix has a decomposition of a certain type can be instructive about the nature of the matrix. In particular, if it can be shown that a matrix A is expressible as A RR for some matrix R, then it can be concluded — refer to Corollary 14.2.14 — that A is nonnegative definite (and symmetric). In the present chapter, consideration is given to a decomposition known as the spectral decomposition, which exists for symmetric matrices, and to a related decomposition known as the singular-value decomposition, which exists for all matrices. In the spectral or singular-value decomposition of a matrix A, A is decomposed into A QDP, where P and Q are orthogonal matrices and where D is a diagonal matrix or, more generally, where D diag(D1 , 0) for some diagonal matrix D1 — in the case of the spectral decomposition P Q . The first part of the present chapter is devoted to scalars and (column) vectors that satisfy the definitions of what are, respectively, known as an eigenvalue and an eigenvector of a (square) matrix. And, in subsequent parts of the chapter, it is shown that the existence and construction of the spectral or singular-value decomposition of a matrix A is equivalent to the existence and computation of linearly independent eigenvectors of A or of A A or AA .
516
21. Eigenvalues and Eigenvectors
The existence of the spectral or singular-value decomposition can (once it has been established) be very useful in establishing various other results on matrices, including a number of the results that were established earlier in the book without resort to the existence of this decomposition. And, once the spectral or singularvalue decomposition of a matrix has been constructed, it can be very useful for computational purposes. However, there are drawbacks in using the existence of the spectral or singular-value decomposition in “theoretical” arguments (when there are other options) and in constructing this decomposition for computational purposes. Any proof of existence implicitly or explicitly involves some relatively deep mathematics, and in general the construction of the spectral or singularvalue decomposition requires iterative methods and is much more computationally intensive than the construction of various other decompositions. Most (if not all) of the more basic theoretical results in linear statistical models and in related areas of statistics can be established without implicit or explicit use of the existence of the spectral or singular-value decomposition. And, in addressing the computational problems encountered in this area of statistics, it is typically not efficient to adopt an approach that requires the construction of the spectral or singular-value decomposition. However, there are exceptions — refer, for example, to Harville and Fenech (1985).
21.1
Definitions, Terminology, and Some Basic Results
A scalar (real number) λ is said to be an eigenvalue of an n × n matrix A {aij } if there exists an n × 1 nonnull vector x such that Ax λx or, equivalently, such that (A − λIn )x 0 . Clearly, λ is an eigenvalue of A if and only if the matrix A − λI is singular. The set comprising the different scalars that are eigenvalues of A is called the spectrum of A. An n × 1 nonnull vector x is said to be an eigenvector of the matrix A if there exists a scalar (real number) λ such that Ax λx, in which case λ is (by definition) an eigenvalue of A. For any particular eigenvector x (of A), there is only one eigenvalue λ such that Ax λx, which (since Ax λx ⇒ x Ax λx x) is λ
x Ax . x x
The eigenvector x is said to correspond to (or belong to) this eigenvalue. Note that if x is an eigenvector of A, then, for any nonzero scalar c, the scalar multiple cx is also an eigenvector of A and cx corresponds to the same eigenvalue as x. Clearly, a nonnull vector x is an eigenvector (of the n×n matrix A) corresponding to any particular eigenvalue λ if and only if it is a solution to the homogeneous linear
21.1 Definitions, Terminology, and Some Basic Results
517
system (A − λI)z 0 (in z) or, equivalently, if and only if x ∈ N (A − λI). Thus, the set comprising all of the eigenvectors (of A) corresponding to the eigenvalue λ is the set obtained from N (A − λI) by deleting the (n × 1) null vector. The linear space N (A − λI) is sometimes referred to as the eigenspace of the eigenvalue λ, and the dimension of this space is referred to as the geometric multiplicity of λ. As a consequence of Lemma 11.3.1, dim[N (A − λI)] n − rank(A − λI) .
(1.1)
A scalar (real number) λ is an eigenvalue of the n × n matrix A if and only if | A − λI | 0
(1.2)
(since A − λI is singular if and only if | A − λI | 0). Let δij represent the ij th element of In , so that δij 1, if j i, and δij 0, if j i (i, j 1, . . . , n). Then, it follows from the very definition of a determinant [given by formula (13.1.2)] that | A − λI | (−1)φn (j1 ,...,jn ) (a1j1 − δ1j1 λ) · · · (anjn − δnjn λ) , (1.3) where j1 , . . . , jn is a permutation of the first n positive integers and the summation is over all such permutations. Upon inspecting the sum (1.3), we find that the term (a11 − λ)(a22 − λ) · · · (ann − λ),
(1.4)
corresponding to the permutation j1 1, j2 2, . . . , jn n, is a polynomial (in λ) of degree n and that each of the remaining (n! − 1) terms is a polynomial (in λ) of degree n − 2 or less. It follows that
where
| A − λI | p(λ),
(1.5)
p(λ) c0 + c1 λ + · · · + cn−1 λn−1 + cn λn
(1.6)
is a polynomial (in λ) whose coefficients c0 , c1 , . . . , cn−1 , cn depend on the elements of A. And the term (1.4) is the only term of the sum (1.3) that contributes to cn and cn−1 , so that cn (−1)n ,
cn−1 (−1)n−1
n
aii (−1)n−1 tr(A) .
(1.7)
i1
Further, c0 p(0) | A | .
(1.8)
Alternatively, results (1.7) and (1.8) could have been deduced from Corollary 13.7.4. In fact, Corollary 13.7.4 provides expressions for c1 , c2 , . . . , cn−2 as well as for c0 , cn−1 , and cn .
518
21. Eigenvalues and Eigenvectors
Condition (1.2) can be reexpressed as p(λ) 0
(1.9)
and can be regarded as an equation (in λ). This equation is called the characteristic equation of A, and the polynomial p is called the characteristic polynomial of A. [Equation (1.9) and the polynomial p differ by a factor of (−1)n from what some authors call the characteristic equation and characteristic polynomial — those authors refer to |λI − A|, which equals (−1)n |A − λI|, as the characteristic polynomial and/or to |λI − A| 0 as the characteristic equation.] Clearly, a scalar (real number) is an eigenvalue of A if and only if it is a root of the characteristic polynomial or, equivalently, if and only if it is a solution to the characteristic equation. Let {λ1 , . . . , λk } represent the spectrum of the n × n matrix A, that is, the set of (distinct) scalars that are eigenvalues of A. It follows from standard results on polynomials — refer, for example, to Beaumont and Pierce (1963, secs. 9-5 and 9-7) — that the characteristic polynomial p of A has a unique (aside from the order of the factors) representation of the form p(λ) (−1)n (λ − λ1 )γ1 · · · (λ − λk )γk q(λ) ,
(1.10)
k where γ1 , . . . , γk are positive integers and q is a polynomial (of degree n− i1 γi ) that has no real roots. The exponent γi of the factor (λ − λi )γi in expression (1.10) is referred to as the algebraic multiplicity of the eigenvalue λi (i 1, . . . , k).
Since the characteristic polynomial p is of degree n, it is clear that the sum ki1 γi of the algebraic multiplicities of the k eigenvalues of the n × n matrix A cannot exceed n (and
also that the number k of distinct eigenvalues of A cannot exceed n). The sum ki1 γi equals n if and only if (for all λ) q(λ) 1 — compare the coefficient of λn in expression (1.10) with that in expression (1.6) — in which case expression (1.10) reduces to p(λ) (−1)n (λ − λ1 )γ1 · · · (λ − λn−1 )γn−1 (λ − λn )γn .
(1.11)
In general, the algebraic multiplicity of an eigenvalue of an n × n matrix is not the same as its geometric multiplicity. In fact, it will be shown in Section 3 that the algebraic multiplicity of any eigenvalue is greater than or equal to its geometric multiplicity. 1 1 Suppose, for example, that n 2 and that A . Then, the characteristic 0 1 polynomial of A is 1 − λ 1 (1 − λ)2 (λ − 1)2 . p(λ) 0 1 − λ Thus, the spectrum of A comprises a single eigenvalue 1, and the algebraic multiplicity of this eigenvalue is 2. However, 0 1 A − (1)I , 0 0
21.1 Definitions, Terminology, and Some Basic Results
519
so that dim{N [A − (1)I]} n − rank[A − (1)I] 2 − 1 1. Thus, the geometric multiplicity of A is only 1. Does every (square) matrix have at least one eigenvalue? The fundamental theorem of algebra guarantees that every polynomial of degree one or more has a possibly complex root. Refer, for example, to Beaumont and Pierce (1963, sec. 9-8 and app. 3) for a formal statement of the fundamental theorem of algebra and for a proof — the proof of this theorem is well beyond the scope and mathematical level of our presentation. Thus, the characteristic polynomial of every (square) matrix has at least one possibly complex root. However, there exist matrices whose characteristic polynomials have no real roots. These matrices have no eigenvalues. 0 1 Consider, for example, the matrix . The characteristic polynomial of −1 0 this matrix is −λ 1 p(λ) λ2 + 1, −1 −λ which has no realroots (although it has two imaginary roots, λ i and λ −i). 0 1 Thus, the matrix has no eigenvalues. −1 0 In the degenerate special case where the n × n matrix A has no eigenvalues, expression (1.10) for the characteristic polynomial is to be read as p(λ) (−1)n q(λ). Every eigenvalue has an algebraic and geometric multiplicity of at least one. An eigenvalue is referred to as a simple eigenvalue or a multiple eigenvalue, depending on whether its algebraic multiplicity equals one or exceeds one. Eigenvectors that correspond to the same simple eigenvalue are scalar multiples of each other — it will be shown in Section 3 that the geometric multiplicity of a simple eigenvalue is necessarily equal to one — and consequently can be distinguished from each other by, for example, specifying the value of any nonzero element. In what follows, scalars that are not eigenvalues will sometimes (for convenience in stating various results) be regarded as eigenvalues whose algebraic and geometric multiplicities equal zero. If the algebraic multiplicities of the eigenvalues of an n × n matrix A sum to n, then every root of the characteristic polynomial of A is a real number [as is evident from expression (1.11)]. The fundamental theorem of algebra can be used to establish the converse of this result. If the polynomial q in expression (1.10) is of degree one or more, then (according to the fundamental theorem) q has a root (which by definition is not real). Thus, if every root of the characteristic polynomial of the n × n matrix A is real, then the algebraic multiplicities of the eigenvalues of A sum to n. Our use of the terms eigenvalue and eigenvector is more restrictive than that of many authors. In reference to an n × n matrix A, they apply the term eigenvalue to any possibly complex number λ for which there exists a vector x (of possibly complex numbers) such that Ax λx or, equivalently, to any possibly complex number that is a root of the characteristic polynomial. Similarly, they apply the term eigenvector to any vector x (of possibly complex numbers) for which there
520
21. Eigenvalues and Eigenvectors
exists a possibly complex number λ such that Ax λx. In contrast, we confine our use of these terms to what those other authors call real eigenvalues and real eigenvectors. It should also be noted that some authors use other terms in place of eigenvalue and eigenvector. In the case of eigenvalues, the alternative terms include characteristic value or root, proper value, and latent value. Similarly, the alternatives to eigenvector include characteristic vector, proper vector, and latent vector. In referring to an n × n matrix, it is convenient to adopt a terminology that allows us to distinguish between the elements of its spectrum and the elements of a certain closely related set. Letting m ki1 γi , expression (1.10) for the characteristic polynomial of an n × n matrix A can be reexpressed as p(λ) (−1)n (λ − d1 )(λ − d2 ) · · · (λ − dm )q(λ) , where d1 , d2 , . . . , dm are m scalars, γi of which equal λi (i.e., equal the ith element of the spectrum of A). Let us refer to the elements of the set {d1 , d2 , . . . , dm } as the eigenvalues of the matrix A or (for emphasis) as the not-necessarily-distinct eigenvalues of A. And, to avoid confusion, let us subsequently refer to the elements of the spectrum of A as the distinct eigenvalues of A. Consider, for example, the 7×7 diagonal matrix D diag(3, 1, −5, −5, 1, 1, 0). Its characteristic polynomial is p(λ) (λ − 3)(λ − 1)(λ + 5)(λ + 5)(λ − 1)(λ − 1)λ (λ − 3)(λ − 1)3 (λ + 5)2 λ . The (not necessarily distinct) eigenvalues of D are 3, 1, −5, −5, 1, 1, and 0; and the distinct eigenvalues of D are 3, 1, −5, and 0. Let A represent an n × n matrix. Further, let x1 , . . . , xm represent n × 1 vectors, and let X (x1 , . . . , xm ). Then, all m of the vectors x1 , . . . , xm are eigenvectors of A if and only if there exists a diagonal matrix D {dj } such that AX XD , in which case d1 , . . . , dm are the eigenvalues to which x1 , . . . , xm , respectively, correspond. (To see this, observe that the j th columns of AX and XD are, respectively, Axj and dj xj .) The eigenvectors of an n × n matrix A have a noteworthy geometrical property. Let λ represent any nonzero eigenvalue of A, let x represent any eigenvector that corresponds to λ, and take the inner product for Rn×1 to be the usual inner product. Then, the direction of the vector Ax (which, like x, is an n × 1 vector) is either the same as that of x or opposite to that of x, depending on whether λ > 0 or λ < 0. That is, the angle between Ax and x is either 0 or π (180◦ ), depending on whether λ > 0 or λ < 0. And the length of Ax is |λ| times that of x. A subspace U of the linear space Rn×1 is said to be invariant relative to an n × n matrix A if, for every vector x in U, the vector Ax is also in U. Let x1 , . . . , xm represent any eigenvectors of A, and let X (x1 , . . . , xm ). Then, there exists a (diagonal) matrix D such that AX XD. And, corresponding to any
21.1 Definitions, Terminology, and Some Basic Results
521
vector u in C(X), there exists an m × 1 vector r such that u Xr, so that Au AXr XDr ∈ C(X) . Thus, the subspace C(X) (of Rn×1 ) spanned by the eigenvectors x1 , . . . , xm is invariant (relative to A). With the help of result (1.1), it is easy to verify the following lemma. Lemma 21.1.1. The scalar 0 is an eigenvalue of an n × n matrix A if and only if A is singular, in which case the geometric multiplicity of the eigenvalue 0 equals n − rank(A) or, equivalently, rank(A) equals n minus the geometric multiplicity of the eigenvalue 0. The following two lemmas relate the eigenvalues of the transpose of an n × n matrix A to those of A itself and relate the eigenvalues and eigenvectors of Ak (where k is a positive integer) and of A−1 to those of A. Lemma 21.1.2. Let A represent an n × n matrix. Then A has the same characteristic polynomial and the same spectrum as A, and every scalar in the spectrum (of A) has the same algebraic multiplicity when regarded as an eigenvalue of A as when regarded as an eigenvalue of A. Proof. It suffices to show that A and A have the same characteristic polynomial. That their characteristic polynomials are the same is evident upon observing (in light of Lemma 13.2.1) that, for any scalar λ, |A − λI| |(A − λI) | |A − λI| . Q.E.D. Lemma 21.1.3. Let λ represent an eigenvalue of an n × n matrix A, and let x represent any eigenvector (of A) corresponding to λ. Then, (1) for any positive integer k, λk is an eigenvalue of Ak , and x is an eigenvector of Ak corresponding to λk ; and (2) if A is nonsingular (in which case λ 0), 1/λ is an eigenvalue of A−1 , and x is an eigenvector of A−1 corresponding to 1/λ. Proof. (1) The proof is by mathematical induction. By definition, λ1 is an eigenvalue of A1 , and x is an eigenvector of A1 corresponding to λ1 . Now, suppose that λk−1 is an eigenvalue of Ak−1 and that x is an eigenvector of Ak−1 corresponding to λk−1 (where k ≥ 2). Then, Ak x Ak−1 Ax Ak−1 (λx) λAk−1 x λλk−1 x λk x . (2) Suppose that A is nonsingular (in which case λ is clearly nonzero). Then, x A−1 Ax A−1 (λx) λA−1 x , implying that A−1 x (1/λ)x. Q.E.D. In connection with Lemma 21.1.2, it should be noted that (unless A is symmetric) an eigenvector of A is not in general an eigenvector of A .
522
21.2
21. Eigenvalues and Eigenvectors
Eigenvalues of Triangular or Block-Triangular Matrices and of Diagonal or Block-Diagonal Matrices
The eigenvalues of a matrix depend on the elements of the matrix in a very complicated way, and in general their computation requires the use of rather sophisticated and time-consuming numerical procedures. However, for certain types of matrices such as block-triangular or block-diagonal matrices, the eigenvalues can be reexpressed in terms of the eigenvalues of matrices of smaller dimensions or in other relatively simple ways, and the computational requirements can be substantially reduced. The following lemma gives some results on the eigenvalues of block-triangular matrices. Lemma 21.2.1. Let A represent an n × n matrix that is partitioned as A11 A12 . . . A1r A21 A22 . . . A2r A . .. .. , .. .. . . . Ar1
Ar2
...
Arr
where (for i, j 1, . . . , r) Aij is of dimensions ni × nj . Suppose that A is (upper or lower) block triangular. Then, (1) $ the characteristic polynomial p(λ) of A is such that (for λ ∈ R) p(λ) r i1 pi (λ), where (for i 1, . . . , r) pi (λ) is the characteristic polynomial of Aii ; (2) a scalar λ is an eigenvalue of A if and only if λ is an eigenvalue of at least one of the diagonal blocks A11 , . . . , Arr , or, equivalently, the spectrum of A is the union of the spectra of A11 , . . . , Arr ;
(3) the algebraic multiplicity of an eigenvalue λ of A equals ri1 γ (i) , where (for i 1, . . . , r) γ (i) is the algebraic multiplicity of λ when λ is regarded as an eigenvalue of Aii — if λ is not an eigenvalue of Aii , then γ (i) 0; and (4) the (not necessarily distinct) eigenvalues of A are d1(1) , . . . , dm(1)1 , d1(2) , . . . , dm(2)2 , . . ., d1(r) , . . . , dm(r)r , where (for i 1, . . . , r) d1(i) , . . . , dm(i)i are the (not necessarily distinct) eigenvalues of Aii . Proof. (1) For λ ∈ R, the matrix A−λIn is block triangular with diagonal blocks A11 − λIn1 , . . . , Arr − λInr , respectively. Thus, making use of results (13.3.3) and (13.3.4), we find that (for λ ∈ R) p(λ) |A − λI|
r i1
|Aii − λI|
r
pi (λ) .
i1
(2) – (4). Parts (2) – (4) are almost immediate consequences of Part (1). Q.E.D.
21.2 Eigenvalues of Block-Triangular or Block-Diagonal Matrices
523
Observe that the characteristic polynomial of a 1 × 1 matrix (c) (whose only element is the scalar c) is p(λ) (−1)(λ − c), that the spectrum of (c) is the set {c} whose only member is c, and that the algebraic (and geometric) multiplicities of the eigenvalue c of (c) equal 1. Then, by regarding a triangular matrix as a block-triangular matrix with 1 × 1 blocks, we obtain the following corollary of Lemma 21.2.1. Corollary 21.2.2. For any n × n (upper or lower) triangular matrix A {aij }, $ (1) the characteristic polynomial of A is p(λ) (−1)n ni1 (λ − aii ); (2) a scalar λ is an eigenvalue of A if and only if it equals one or more of the diagonal elements a11 , . . . , ann , or, equivalently, the spectrum of A comprises the distinct scalars represented among the diagonal elements of A; (3) the algebraic multiplicity of an eigenvalue λ of A equals the number of diagonal elements of A that equal λ; (4) the (not necessarily distinct) eigenvalues of A are the diagonal elements of A.
In light of Corollary 21.2.2, it is a trivial matter to determine the eigenvalues of a triangular matrix. One need only inspect its diagonal elements. Lemma 21.2.1 gives various results on the characteristic polynomial, the spectrum, and the algebraic multiplicities of the distinct eigenvalues of a blocktriangular matrix (with square diagonal blocks). Since block-diagonal matrices are block triangular, these results are applicable to block-diagonal matrices (or, more precisely, to block-diagonal matrices with square diagonal blocks). The following lemma gives some results on the geometric multiplicities of the distinct eigenvalues of a block-diagonal matrix and on the eigenvectors of a block-diagonal matrix — these results are specific to block-diagonal matrices; that is, they do not (in general) apply to block-triangular matrices. Lemma 21.2.3. For any n × n block-diagonal matrix A with square diagonal blocks A11 , . . . , Arr of order n1 , . . . , nr , respectively,
(1) the geometric multiplicity of an eigenvalue λ of A equals ri1 ν (i) , where (for i 1, . . . , r) ν (i) is the geometric multiplicity of λ when λ is regarded as an eigenvalue of Aii — if λ is not an eigenvalue of Aii , then ν (i) 0; and (2) if an ni × 1 vector x∗ is an eigenvector of Aii corresponding to an eigenvalue λ, then the n × 1 vector x (0 , . . . 0 , x∗ , 0 , . . . , 0 ) , whose (1 +
i
i−1 s1 ns )th, . . . , ( s1 ns )th elements are respectively the first, . . . , ni th elements of x∗ , is an eigenvector of A corresponding to λ — λ is an eigenvalue of A as well as of Aii (1 ≤ i ≤ r). Proof. (1) Recalling results (1.1) and (4.5.14) and observing that A − λI diag(A11 − λI, . . . , Arr − λI), we find that the geometric multiplicity of λ equals
524
21. Eigenvalues and Eigenvectors
n − rank(A − λI) n −
r
rank(Aii − λI)
i1
r i1 r
[ni − rank(Aii − λI)] ν (i) .
i1
(2) Suppose that x∗ is an eigenvector of Aii corresponding to an eigenvalue λ. Then, 0 0 .. .. . . 0 0 Ax Aii x∗ λx∗ λx . 0 0 . . .. .. 0
0
Q.E.D. By regarding a diagonal matrix as a block-diagonal matrix with 1 × 1 blocks, we obtain the following corollary of Lemma 21.2.3. Corollary 21.2.4. For any n × n diagonal matrix D {di }, (1) the geometric multiplicity of an eigenvalue λ of D equals the number of diagonal elements of D that equal λ; and (2) the n × 1 vector cui , where ui is the ith column of In and c is an arbitrary nonzero scalar, is an eigenvector of D corresponding to di — di is an eigenvalue of D (1 ≤ i ≤ n). Corollary 21.2.4 gives results on diagonal matrices that augment those given by Corollary 21.2.2 — since diagonal matrices are triangular, the results of Corollary 21.2.2 are applicable to diagonal matrices. Note that the geometric multiplicity of any eigenvalue of a diagonal matrix is the same as its algebraic multiplicity, as evidenced by Part (1) of Corollary 21.2.4 and Part (3) of Corollary 21.2.2.
21.3
Similar Matrices
An n × n matrix B is said to be similar to an n × n matrix A if there exists an n × n nonsingular matrix C such that B C−1 AC or, equivalently, such that CB AC. Upon observing that (for any n × n nonsingular matrix C) B C−1 AC ⇒ A CBC−1 (C−1 )−1 BC−1 , it is clear that if B is similar to A, then A is similar to B.
21.3 Similar Matrices
525
Some of the ways in which similar matrices are similar are described in the following theorem. Theorem 21.3.1. For any n × n matrix A and any n × n nonsingular matrix C, (1) rank(C−1 AC) rank(A); (2) det(C−1 AC) det(A); (3) tr(C−1 AC) tr(A); (4) C−1 AC and A have the same characteristic polynomial and the same spectrum; (5) an eigenvalue has the same algebraic and geometric multiplicities when regarded as an eigenvalue of C−1 AC as when regarded as an eigenvalue of A; (6) if x is an eigenvector of A corresponding to an eigenvalue λ, then C−1 x is an eigenvector of C−1 AC corresponding to λ, and, similarly, if y is an eigenvector of C−1 AC corresponding to λ, then Cy is an eigenvector of A corresponding to λ; and (7) the (not necessarily distinct) eigenvalues of C−1 AC are the same as those of A. Proof. (1) That rank(C−1 AC) rank(A) is evident from Corollary 8.3.3. (2) Using results (13.3.9) and (13.3.12), we find that |C−1 AC| |C−1 | |A| |C| (1/|C|) |A| |C| |A| . (3) As a consequence of Lemma 5.2.1, tr(C−1 AC) tr(ACC−1 ) tr(A) . (4) Applying Part (2) (with A − λI in place of A), we find that, for any scalar λ, |C−1 AC − λI| |C−1 (A − λI)C| |A − λI| . Thus, C−1 AC and A have the same characteristic polynomial (which implies that they have the same spectrum). (5) Let λ represent an eigenvalue of A or, equivalently [in light of Part (4)], of C−1 AC. Since [according to Part (4)] C−1 AC and A have the same characteristic polynomial, λ has the same algebraic multiplicity when regarded as an eigenvalue of C−1 AC as when regarded as an eigenvalue of A. Further, the geometric multiplicities of λ when regarded as an eigenvalue of C−1 AC and when regarded as an eigenvalue of A are, respectively [in light of result (1.1)], n−rank(C−1 AC−λI) and n − rank(A − λI) and hence {since rank(C−1 AC − λI) rank[C−1 (A − λI)C] rank(A − λI)} are the same. (6) If Ax λx, then (C−1 AC)C−1 x C−1 Ax C−1 (λx) λC−1 x ,
526
21. Eigenvalues and Eigenvectors
and if C−1 ACy λy, then ACy CC−1 ACy C(λy) λCy . (7) Since [according to Part (4)] C−1 AC and A have the same characteristic polynomial, the (not necessarily distinct) eigenvalues of C−1 AC are the same as those of A. Q.E.D. Theorem 21.3.1 can be very useful. If, for example, it can be demonstrated that a matrix A is similar to a diagonal or triangular matrix or to some other matrix whose eigenvalues are relatively easy to obtain, then the determination of the eigenvalues of A may be greatly facilitated. Subsequently, we shall have occasion to make use of the following theorem. Theorem 21.3.2. Let A represent an n × n matrix, B a k × k matrix, and U an n × k matrix with orthonormal columns (i.e., with U U I) such that AU UB. Then, there exists an n × (n − k) matrix V such that the n × n matrix (U, V) is orthogonal. And, for any such matrix V, B U AV (U, V) A(U, V) 0 V AV [so that A is similar to the block-triangular matrix
B 0
U AV ], and, in the special V AV
case where A is symmetric,
B (U, V) A(U, V) 0
0 V AV
[so that A is similar to diag(B, V AV)]. Proof. As a consequence of Theorem 6.4.5, there exists an n × (n − k) matrix V such that the columns of the n×n matrix (U, V) form an orthonormal (with respect to the usual inner product) basis for Rn or, equivalently, such that the matrix (U, V) is orthogonal. Now, let V represent any such matrix. Then, observing that U AU U UB IB B and that
V AU V UB 0B 0 ,
we find that (U, V) A(U, V)
B U AV 0 V AV
.
And, in the special case where A is symmetric, U AV U A V (V AU) 0 0 , so that
21.3 Similar Matrices
527
(U, V) A(U, V) diag(B, V AV) . Q.E.D. In the special case where k 1, Theorem 21.3.2 can be restated as the following corollary. Corollary 21.3.3. Let A represent an n × n matrix. And let λ represent any eigenvalue of A (assuming that one exists), and u represent an eigenvector of (usual) norm 1 that corresponds to λ. Then there exists an n × (n − 1) matrix V such that the n × n matrix (u, V) is orthogonal. Moreover, for any such matrix V, λ u AV (u, V) A(u, V) 0 V AV λ u AV [so that A is similar to the block-triangular matrix ], and, in the special 0 V AV case where A is symmetric, λ 0 (u, V) A(u, V) 0 V AV [so that A is similar to diag(λ, V AV)]. The following theorem gives an inequality that was mentioned (but not verified) in Section 1. Theorem 21.3.4. The geometric multiplicity of an eigenvalue λ of an n × n matrix A is less than or equal to the algebraic multiplicity of λ. Proof. Let ν dim[N (A − λI)], which by definition is the geometric multiplicity of λ. Then, as a consequence of Theorem 6.4.3, there exists an n × ν matrix U with orthonormal (with respect to the usual inner product) columns that form a basis for N (A−λI). And, since (A−λI)U 0 and hence since AU λU U(λIν ), it follows from Theorem 21.3.2 that A is similar to a matrix that is expressible as λIν R , 0 S where R is a ν × (n − ν) matrix and S is an (n − ν) × (n − ν) matrix. λIν R Now, it follows from Theorem 21.3.1 that λ is an eigenvalue of — 0 S λIν R that λ is an eigenvalue of is also evident from Lemma 21.2.1 — and that 0 S λIν R λ has the same algebraic multiplicity when regarded as an eigenvalue of 0 S as when regarded as an eigenvalue of A. Moreover, it is clear from Lemma 21.2.1 and from Corollary 21.2.2 that the algebraic multiplicity of λ when regarded as an λIν R eigenvalue of is at least ν. We conclude that the algebraic multiplicity 0 S of λ when regarded as an eigenvalue of A is at least ν. Q.E.D.
528
21. Eigenvalues and Eigenvectors
The following four corollaries give various implications of Theorem 21.3.4. Corollary 21.3.5. If the algebraic multiplicity of an eigenvalue λ of an n × n matrix equals 1, then the geometric multiplicity of λ also equals 1. Proof. The validity of Corollary 21.3.5 is evident from Theorem 21.3.4 upon observing that the geometric multiplicity of λ is at least one. Q.E.D. Corollary 21.3.6. If an n × n matrix A has n distinct eigenvalues, then each of them has a geometric (and algebraic) multiplicity of 1. Proof. The algebraic multiplicities of the distinct eigenvalues of A are greater than or equal to 1, and the sum of the algebraic multiplicities cannot exceed n. Thus, if A has n distinct eigenvalues, then each of them has an algebraic multiplicity of 1 and hence (in light of Corollary 21.3.5) a geometric multiplicity of 1. Q.E.D. Corollary 21.3.7. Let A represent an n×n matrix that has k distinct eigenvalues λ1 , . . . , λk with algebraic multiplicities γ1 , . .
. , γk , respectively, and geometric
k γ ≤ n. And, if multiplicities ν1 , . . . , νk , respectively. Then, ki1 νi ≤ i i1
k
k
k
k ν n, then γ n. Moreover, if ν i1 i i1 i i1 i i1 γi , then (for γi . i 1, . . . , k) νi
k Proof. That ki1 νi ≤ i1 γi is an immediate consequence of Theorem
k 21.3.4, and that i1 γi ≤ n was established earlier (in Section 1). And, if
k
these inequalities imply that ki1 γi n. i1 νi n, then together
k
k
k Now, suppose that i1 νi i1 γi . Then, i1 (γi − νi ) 0. And, according to Theorem 21.3.4, γi ≥ νi or, equivalently, γi − νi ≥ 0 (i 1, . . . , k). Thus, γi − νi 0, or, equivalently, νi γi (i 1, . . . , k). Q.E.D. Corollary 21.3.8. Let A represent an n×n matrix that has k distinct eigenvalues λ1 , . . . , λk with geometric multiplicities ν1 , . . . , νk , respectively. Then the sum of the geometric multiplicities of the (k or k − 1) nonzero distinct eigenvalues (of A)
is less than or equal to rank(A), with equality holding if and only if ki1 νi n. Proof. It is convenient to consider separately two cases. Case 1: rank(A) n. In this case, all k of the distinct eigenvalues λ1 , . . . , λk are nonzero (as is evident from Lemma 11.3.1), and it is apparent from Corollary
21.3.7 that the sum ki1 νi of the geometric multiplicities is less than or equal to
rank(A). (And it is obvious that this sum equals rank(A) if and only if ki1 νi n.) Case 2: rank(A) < n. In this case, it follows from Lemma 11.3.1 that one of the distinct eigenvalues, say λs , equals 0 and that νs n − rank(A). Thus, making use of Corollary 21.3.7, we find that k
νi
is
And, clearly,
21.4
k
νi − [n − rank(A)] ≤ n − [n − rank(A)] rank(A) .
i1
k
is
νi rank(A) if and only if n
k
i1 νi .
Linear Independence of Eigenvectors
A basic property of eigenvectors is described in the following theorem.
Q.E.D.
21.4 Linear Independence of Eigenvectors
529
Theorem 21.4.1. Let A represent an n × n matrix, let x1 , . . . , xk represent k eigenvectors of A, and let λ1 , . . . , λk represent the eigenvalues (of A) to which x1 , . . . xk correspond. If λ1 , . . . , λk are distinct, then x1 , . . . , xk are linearly independent. Theorem 21.4.1 is a special case of the following result. (mi ) Theorem 21.4.2. Let A represent an n × n matrix. And, let x(1) reprei , . . . , xi sent linearly independent eigenvectors of A that correspond to some eigenvalue λi (m1 ) (i 1, . . . , k). If λ1 , . . . , λk are distinct, then the combined set x(1) 1 , . . . , x1 , . . . ,
k (1) (mk ) xk , . . . , xk of i1 mi eigenvectors is linearly independent. Proof (of Theorem 21.4.2). Assume that λ1 , . . . , λk are distinct. To show that the combined set is linearly independent, let us proceed by mathematical induction. (m1 ) The set of m1 eigenvectors x(1) is by definition linearly independent. Sup1 , . . . x1
(m1 ) pose now that the set comprising the first si1 mi eigenvectors x(1) 1 , . . . , x1 , . . ., (ms ) is linearly independent (where 1 ≤ s ≤ k−1). Then, to complete the x(1) s , . . . , xs
induction argument, it suffices to show that the set comprising the first s+1 i1 mi (ms+1 ) (m1 ) (1) eigenvectors x(1) , . . . , x , . . ., x , . . . , x is linearly independent. s+1 1 1 s+1 (m ) (1) , . . . , cs+1s+1 represent any scalars such that Let c1(1) , . . . , c1(m1 ) , . . . , cs+1 (m
) (m
)
(m1 ) (m1 ) (1) (1) + · · · + cs+1 xs+1 + · · · + cs+1s+1 xs+1s+1 0 . c1(1) x(1) 1 + · · · + c1 x1
(4.1)
And, observe that, for j 1, . . . , ms+1 , (j )
(A − λs+1 I)xs+1 0 and that, for i 1, . . . , s and j 1, . . . , mi , (j )
(j )
(j )
(A − λs+1 I)xi [A − λi I + (λi − λs+1 )I]xi (λi − λs+1 )xi . Then, premultiplying both sides of equality (4.1) by A − λs+1 I, we find that (m1 ) (m1 ) (λ1 − λs+1 )(c1(1) x(1) 1 + · · · + c1 x1 ) (ms ) (ms ) xs ) 0 . + · · · + (λs − λs+1 )(cs(1) x(1) s + · · · + cs
And since λi − λs+1 0 for i s + 1 and (by supposition) the si1 mi vectors (m1 ) (1) (ms ) x(1) are linearly independent, it follows that 1 , . . . , x1 , . . . , xs , . . . , xs c1(1) . . . c1(m1 ) . . . cs(1) . . . cs(ms ) 0 .
(4.2)
Moreover, substituting from result (4.2) into equality (4.1), we find that (m
) (m
)
(1) (1) xs+1 + · · · + cs+1s+1 xs+1s+1 0 cs+1 (m
)
s+1 and hence, since the ms+1 vectors x(1) s+1 , . . . xs+1 are by definition linearly independent, that (m ) (1) cs+1 . . . cs+1s+1 0 . (4.3)
530
21. Eigenvalues and Eigenvectors
(1) (m1 ) Together, results (4.2) and (4.3) imply that the s+1 i1 mi vectors x1 ,. . .,x1 , . . ., (ms+1 ) (1) Q.E.D. xs+1 , . . ., xs+1 are linearly independent. How many linearly independent eigenvectors are there? This question is answered (in terms of the geometric multiplicities of the distinct eigenvalues) by the following theorem. Theorem 21.4.3. Let λ1 , . . . , λk represent the distinct eigenvalues of an n × n matrix A (i.e., the members of the spectrum of A), and let ν1 , . . . , νk represent their respective geometric multiplicities. Then, for i 1, . . . , k, there exists a set of (νi ) νi linearly independent eigenvectors x(1) of A corresponding to λi . The i , . . . , xi
(1) (ν1 ) (1) (νk ) combined set S {x1 , . . . , x1 , . . . , xk , . . . xk }, comprising ki1 νi eigen k vectors, is linearly independent; and any set of more than i1 νi eigenvectors is
linearly dependent. Moreover, if ki1 νi n, then S is a basis for Rn , and the set S∗ obtained from S by deleting any eigenvectors that correspond to 0 (in the event that 0 is an eigenvalue of A) is a basis for C(A). Proof. For i 1, . . . , k, any basis for the eigenspace N (A−λi I) is a set of νi linearly independent eigenvectors corresponding to λi , so that such a set clearly exists. That the combined set S is linearly independent is an immediate consequence of Theorem 21.4.2. Suppose now (for purposes of establishing
a contradiction) that there existed a linearly independent set of more that ki1 νi eigenvectors. Then, for some integer t (1 ≤ t ≤ k), the number of eigenvectors in that set that corresponded to λt would exceed νt . And, as a consequence, N (A − λt I) would contain more than νt linearly independent vectors, which {since by definition dim[N (A−λt I)]} establishes the desired contradiction. Thus, any set of more νt
than ki1 νi eigenvectors is linearly dependent.
To complete the proof, suppose that ki1 νi n. Then, S comprises n (linearly independent, n-dimensional) vectors and hence is a basis for Rn . Further, let r represent the number of vectors in S∗ , let X represent an n × r matrix whose columns are the vectors in S∗ , and let 6 represent an r × r diagonal matrix whose diagonal elements are the eigenvalues to which the columns of X correspond, so that AX X6, implying (since the diagonal elements of 6 are nonzero) that X AX6−1 . And, upon observing that rank(X) r and (in light of Corollary 21.3.8) that r rank(A), it follows from Corollary 4.4.7 that C(X) C(A). Thus, S∗ is a basis for C(A). Q.E.D. As an immediate consequence of Theorem 21.4.3, we have the following corollary. Corollary 21.4.4. Let ν1 , . . . , νk represent the geometric multiplicities of the distinct eigenvalues of an n × n matrix A. Then
there exists a linearly independent set of n eigenvectors (of A) if and only if ki1 νi n. Eigenvectors that correspond to distinct eigenvalues are linearly independent (as indicated by Theorem 21.4.1). If the eigenvectors are eigenvectors of a symmetric matrix, then we can make the following, stronger statement. Theorem 21.4.5. If two eigenvectors x1 and x2 of an n × n symmetric matrix A correspond to different eigenvalues, then x1 and x2 are orthogonal (with respect to the usual inner product).
21.5 Diagonalization
531
Proof. Let λ1 and λ2 represent the eigenvalues to which x1 and x2 correspond. Then, by definition, Ax1 λ1 x1 and Ax2 λ2 x2 . Premultiplying both sides of the first of these two equalities by x2 and both sides of the second by x1 , we find that x2 Ax1 λ1 x2 x1 and x1 Ax2 λ2 x1 x2 . And, since A is symmetric, we have that λ1 x2 x1 x2 A x1 (x1 Ax2 ) (λ2 x1 x2 ) λ2 x2 x1 , implying that (λ1 − λ2 )x2 x1 0 and hence if λ1 λ2 that x2 x1 0. Thus, if Q.E.D. λ1 λ2 , then x1 and x2 are orthogonal.
21.5
Diagonalization
a. Definitions and some basic properties An n × n matrix A is said to be diagonalizable (or diagonable) if there exists an n × n nonsingular matrix Q such that Q−1 AQ D for some diagonal matrix D, in which case Q is said to diagonalize A (or A is said to be diagonalized by Q). Note (in connection with this definition) that Q−1 AQ D ⇔ AQ QD ⇔ A QDQ−1 .
(5.1)
Clearly, an n × n matrix is diagonalizable if and only if it is similar to a diagonal matrix. An n×n matrix A is said to be orthogonally diagonalizable if it is diagonalizable by an orthogonal matrix; that is, if there exists an n × n orthogonal matrix Q such that Q AQ is diagonal. The process of constructing an n × n nonsingular matrix that diagonalizes an n × n matrix A is referred to as the diagonalization of A. This process is intimately related to the process of finding eigenvalues and eigenvectors of A, as is evident from the following theorem. Theorem 21.5.1. Let A represent an n × n matrix. And suppose that there exists an n × n nonsingular matrix Q such that Q−1 AQ D for some diagonal matrix D; denote the first, . . . , nth columns of Q by q1 , . . . , qn , respectively, and the first, . . . , nth diagonal elements of D by d1 , . . . , dn , respectively. Then, (1) rank(A) equals the number of nonzero diagonal elements of D; (2) det(A) d1 d2 · · · dn ; (3) tr(A) d1 + d2 + · · · + dn ; (4) the characteristic polynomial of A is p(λ) (−1)n (λ − d1 )(λ − d2 ) · · · (λ − dn ) ; (5) the spectrum of A comprises the distinct scalars represented among the diagonal elements of D;
532
21. Eigenvalues and Eigenvectors
(6) the algebraic and geometric multiplicities of an eigenvalue λ of A equal the number of diagonal elements of D that equal λ; (7) the (not necessarily distinct) eigenvalues of A are the diagonal elements of D; and (8) the columns of Q are (linearly independent) eigenvectors of A (with the ith column qi corresponding to the eigenvalue di ). Proof. Upon recalling various results on diagonal matrices [specifically, result (4.5.14) and the results given by Corollaries 13.1.2, 21.2.2, and 21.2.4], Parts (1) – (7) of Theorem 21.5.1 follow from Theorem 21.3.1. That q1 , . . . , qn are eigenvectors of A [as claimed in Part (8)] is evident upon observing [in light of result (5.1)] that AQ QD (and that, for i 1, . . . , k, the ith columns of AQ and QD are, respectively, Aqi and di qi ). Q.E.D.
b. Necessary and sufficient conditions for a matrix to be diagonalizable If an n × n matrix A is diagonalizable by an n × n nonsingular matrix Q, then, according to Part (8) of Theorem 21.5.1, the columns of Q are (linearly independent) eigenvectors of A. The following theorem makes a stronger statement. Theorem 21.5.2. An n × n matrix A is diagonalizable by an n × n nonsingular matrix Q if and only if the columns of Q are (linearly independent) eigenvectors of A. Proof. In light of Part (8) of Theorem 21.5.1, it suffices to prove the “if part” of Theorem 21.5.2. Suppose that the columns q1 , . . . , qn of Q are eigenvectors of A. Then there exists a diagonal matrix D {di } such that AQ QD (as discussed in Section 1 and as is evident upon observing that, for i 1, . . . , n, the ith columns of AQ and QD are, respectively, Aqi and di qi ). We conclude [in light of result (5.1)] that Q diagonalizes A. Q.E.D. As an immediate consequence of Theorem 21.5.2, we have the following corollary. Corollary 21.5.3. An n × n matrix A is diagonalizable if and only if there exists a linearly independent set of n eigenvectors (of A). In light of Corollary 21.4.4 (and of Corollary 21.3.8), we have the following, additional corollary. Corollary 21.5.4. An n × n matrix A, whose spectrum comprises k eigenvalues with
geometric multiplicities ν1 , . . . , νk , respectively, is diagonalizable if and only if ki1 νi n or, equivalently, if and only if the geometric multiplicities of the k or k − 1 nonzero distinct eigenvalues (of A) sum to rank(A).
21.5 Diagonalization
533
c. A basic result on symmetric matrices In Subsection d, the discussion of the diagonalization of matrices is specialized to the diagonalization of symmetric matrices. The results of Subsection d depend in a fundamental way on the following property of symmetric matrices. Theorem 21.5.5. Every symmetric matrix has an eigenvalue. The conventional way of proving this theorem (e.g., Searle 1982, chap. 11) is to implicitly or explicitly use the fundamental theorem of algebra to establish that the characteristic polynomial of any (square) matrix has a possibly complex root and to then show that if the matrix is symmetric, this root is necessarily real. The resultant proof is accessible only to those who are at least somewhat knowledgeable about complex numbers. Moreover, the fundamental theorem of algebra is a very deep result — its proof is well beyond the scope and mathematical level of our presentation. Here, we take a different approach. This approach consists of establishing the following theorem, of which Theorem 21.5.5 is an immediate consequence. Theorem 21.5.6. Let A represent an n × n matrix. Then, there exist nonnull vectors x1 and x2 such that x1 Ax1 x2 Ax2 x Ax ≤ ≤ x1 x1 x x x2 x2 for every nonnull vector x in Rn (or, equivalently, such that x1 Ax1 /x1 x1 minx0 x Ax/x x and x2 Ax2 /x2 x2 maxx0 x Ax/x x). Moreover, if A is symmetric, then x1 Ax1 /x1 x1 and x2 Ax2 /x2 x2 are eigenvalues of A — in fact, they are, respectively, the smallest and largest eigenvalues of A — and x1 and x2 are eigenvectors corresponding to x1 Ax1 /x1 x1 and x2 Ax2 /x2 x2 , respectively. Proof. Let x represent an n×1 vector of variables, and define S {x : x x 1}. The quadratic form x Ax is a continuous function of x, and the set S is closed and bounded. Since any continuous function attains a maximum value and a minimum value over any closed and bounded subset of its domain (e.g., Bartle 1976, thm. 22.6; Magnus and Neudecker 1988, thm. 7.1), S contains vectors x1 and x2 such that x1 Ax1 ≤ x Ax ≤ x2 Ax2 for every x in S. Moreover, for any nonnull x (in Rn ), (x x)−1/2 x ∈ S and [(x x)−1/2 x] A[(x x)−1/2 x] x Ax/x x . Thus,
x1 Ax1 x Ax2 x Ax x1 Ax1 ≤ ≤ x2 Ax2 2 (5.2) xx x1 x1 x2 x 2 for every nonnull x. Now, suppose that A is symmetric. Then, in light of results (15.2.13) and (15.3.7), we find that (for nonnull x)
∂x Ax ∂x x ∂(x Ax/x x) (x x)−2 (x x) − (x Ax) ∂x ∂x ∂x
(x x)−2 [(x x)2Ax − (x Ax)2x] .
534
21. Eigenvalues and Eigenvectors
Moreover, x Ax/x x attains (for x 0) minimum and maximum values at x1 and x2 , respectively [as is evident from result (5.2)], so that ∂(x Ax/x x)/∂x 0 for x x1 and x x2 . Thus, for x x1 and x x2 , (x x)2Ax − (x Ax)2x 0 , or, equivalently,
Ax (x Ax/x x)x .
We conclude that x1 Ax1 /x1 x1 and x2 Ax2 /x2 x2 are eigenvalues of A and that x1 and x2 are eigenvectors that correspond to x1 Ax1 /x1 x1 and x2 Ax2 /x2 x2 , respectively. Q.E.D.
d. Orthogonal diagonalization Let A represent an n × n matrix, and suppose that there exists an orthogonal matrix Q such that Q AQ D for some diagonal matrix D. Then, since [in light of result (5.1)] A QDQ , A (QDQ ) QD Q QDQ A . Thus, a necessary condition for A to be orthogonally diagonalizable is that A be symmetric (so that while certain nonsymmetric matrices are diagonalizable, they are not orthogonally diagonalizable). This condition is also sufficient, as indicated by the following theorem. Theorem 21.5.7. Every symmetric matrix is orthogonally diagonalizable. Proof. The proof is by mathematical induction. Clearly, every 1 × 1 matrix is orthogonally diagonalizable. Suppose now that every (n − 1) × (n − 1) symmetric matrix is orthogonally diagonalizable (where n ≥ 2). Then it suffices to show that every n × n symmetric matrix is orthogonally diagonalizable. Let A represent an n × n symmetric matrix. And let λ represent an eigenvalue of A (the existence of which is guaranteed by Theorem 21.5.5), and u represent an eigenvector of (usual) norm 1 that corresponds to λ. Then, according to Corollary 21.3.3, (u, V) A(u, V) diag(λ, V AV) for some n × (n − 1) matrix V such that the n × n matrix (u, V) is orthogonal. Clearly, V AV is a symmetric matrix of order n − 1, so that (by supposition) there exists an orthogonal matrix R such that R (V AV)R F for some diagonal matrix F. Define S diag(1, R) and P (u, V)S. Then, S S diag(1, R R) diag(1, In−1 ) In , so that S is orthogonal and hence (according to Lemma 8.4.1) P is orthogonal. Further, P AP S (u, V) A(u, V)S S diag(λ, V AV)S diag(λ, R V AVR) diag(λ, F),
21.5 Diagonalization
535
so that P AP equals a diagonal matrix. Thus, A is orthogonally diagonalizable. Q.E.D. The following corollary (of Theorem 21.5.7) can be deduced from Corollaries 21.5.4 and 21.3.7 (or from Theorem 21.5.1). Corollary 21.5.8. Let A represent an n × n symmetric matrix that has k distinct eigenvalues λ1 , . . . , λk with algebraic multiplicities γ1 ,
. . . , γk , respectively, and
geometric multiplicities ν1 , . . . , νk , respectively. Then, ki1 γi ki1 νi n, and (for i 1, . . . , k) νi γi . As a further corollary of Theorem 21.5.7, we have the following result. Corollary 21.5.9. Let A represent an n × n symmetric matrix, and let d1 , . . . , dn represent the (not necessarily distinct) eigenvalues of A (in arbitrary order). Then, there exists an n × n orthogonal matrix Q such that Q AQ diag(d1 , . . . , dn ) . Proof. According to Theorem 21.5.7, there exists an n × n orthogonal matrix R such that R AR F for some diagonal matrix F {fi }. It follows from Part (7) of Theorem 21.5.1 that there exists some permutation k1 , . . . , kn of the first n positive integers 1, . . . , n such that (for i 1, . . . , n) di fki . Now, let Q RP, where P is the n × n permutation matrix whose first, . . . , nth columns are, respectively, the k1 , . . . , kn th columns of In . Then, since a permutation matrix is orthogonal, Q is (in light of Lemma 8.4.1) orthogonal. Further, Q AQ P R ARP P FP diag(d1 , . . . , dn ) . Q.E.D. Let A represent an n × n symmetric matrix. Then, according to Theorem 21.5.7, there exists an orthogonal matrix that diagonalizes A. There also exist nonorthogonal matrices that diagonalize A. If A has n distinct eigenvalues, then it follows from Theorem 21.4.5 that the columns of any diagonalizing matrix are orthogonal [since, according to Part (8) of Theorem 21.5.1, they are necessarily eigenvectors]. However, the norms of these columns need not equal one. More generally, if λ is an eigenvalue of A of multiplicity ν, then we can include as columns of the diagonalizing matrix any ν linearly independent eigenvectors that correspond to λ. We need not choose these ν linearly independent eigenvectors to be orthonormal or even (if ν > 1) orthogonal. The (usual) norm of a symmetric matrix can be expressed in terms of its eigenvalues, as described in the following theorem. Theorem 21.5.10. For any n × n symmetric matrix A, 1/2 n 2 A di , i1
where d1 , . . . , dn are the (not necessarily distinct) eigenvalues of A (and where the norm is the usual norm). Proof. According to Corollary 21.5.9, there exists an n × n orthogonal matrix Q such that Q AQ D, where D diag(d1 , . . . , dn ). Thus, making use of Lemma
536
21. Eigenvalues and Eigenvectors
5.2.1, we find that A2 tr(A A)
tr(AA) tr(AIn AIn )
tr(AQQ AQQ )
tr(Q AQQ AQ)
tr(D2 ) tr[diag(d12 , . . . , dn2 )]
n i1
di2 . Q.E.D.
e. Orthogonal “triangularization” Let A represent an n × n matrix. If A is nonsymmetric, then there does not exist any n×n orthogonal matrix that diagonalizes A. However, there may exist an n×n orthogonal matrix that “triangularizes” A, as indicated by the following theorem. Theorem 21.5.11. Let A represent an n × n matrix whose distinct eigenvalues have algebraic multiplicities that sum to n, and let d1 , . . . , dn represent the notnecessarily-distinct eigenvalues of A (in arbitrary order). Then there exists an n×n orthogonal matrix Q such that Q AQ T , where T is an (n×n) upper triangular matrix whose first, . . . , nth diagonal elements are d1 , . . . , dn , respectively. Proof. The proof is by mathematical induction. Clearly, the theorem is valid for any 1 × 1 matrix. Suppose now that it is valid for any (n − 1) × (n − 1) matrix whose distinct eigenvalues have algebraic multiplicities that sum to n − 1 (where n ≥ 2), and consider the validity of the theorem for an n × n matrix A whose algebraic multiplicities sum to n and whose (not necessarily distinct) eigenvalues are d1 , . . . dn . Let u represent an eigenvector (of A) of (usual) norm 1 that corresponds to d1 . Then, according to Corollary 21.3.3, d1 u AV (u, V) A(u, V) 0 V AV for some n × (n − 1) matrix V such that the n × n matrix (u, V) is orthogonal. Moreover, it follows from Theorem 21.3.1 and Lemma 21.2.1 that the algebraic multiplicities of the distinct eigenvalues of the (n − 1) × (n − 1) matrix V AV sum to n − 1 and that the (not necessarily distinct) eigenvalues of V AV are d2 , . . . , dn . Thus, by supposition, there exists an orthogonal matrix R such that R (V AV)R T∗ , where T∗ is an (n − 1) × (n − 1) upper triangular matrix whose first, . . . , (n − 1)th diagonal elements are d2 , . . . , dn , respectively. Now, define S diag(1, R) and Q (u, V)S. Then, S S diag(1, R R) diag(1, In−1 ) In ,
21.5 Diagonalization
537
so that S is orthogonal and hence (according to Lemma 8.4.1) Q is orthogonal. Further, d1 u AV 1 0 1 0 Q AQ S (u, V) A(u, V)S 0 V AV 0 R 0 R d1 u AVR d1 u AVR . 0 R V AVR 0 T∗
d1 u AVR And, upon observing that is an (n × n) upper triangular matrix 0 T∗ whose first, . . . , nth diagonal elements are d1 , . . . , dn , respectively, the induction argument is complete. Q.E.D. Let A represent an n × n matrix. If there exists an orthogonal matrix Q such that Q AQ T for some upper triangular matrix T, then the diagonal elements of T are the not-necessarily-distinct eigenvalues of A, as is evident from Part (4) of Corollary 21.2.2 and Part (7) of Theorem 21.3.1. Theorem 21.5.11 indicates that a sufficient (as well as necessary) condition for the existence of such an orthogonal matrix Q is that the algebraic multiplicities of the not-necessarilydistinct eigenvalues of A sum to n and also indicates that (when this condition is satisfied) Q can be chosen so that the order in which the eigenvalues (of A) appear as diagonal elements of the triangular matrix T is arbitrary. Note (in light of Corollary 21.5.8) that Theorem 21.5.11 is applicable to any symmetric matrix. In the special case where the matrix A in Theorem 21.5.11 is symmetric, the triangular matrix T is a diagonal matrix (since if A is symmetric, Q AQ is symmetric and hence T is symmetric). Thus, in this special case, Theorem 21.5.11 simplifies to Corollary 21.5.9.
f. Spectral decomposition (of a symmetric matrix) Let A represent an n×n symmetric matrix. And let Q represent an n×n orthogonal matrix and D {di } an n×n diagonal matrix such that Q AQ D — the existence of such matrices is guaranteed by Theorem 21.5.7. Or, equivalently, let Q represent an n × n matrix whose columns are orthonormal (with respect to the usual inner product) eigenvectors of A, and take D {di } to be the diagonal matrix whose first, . . . , nth diagonal elements d1 , . . . , dn are the eigenvalues (of A) to which the first, . . . , nth columns of Q correspond — the equivalence is evident from Theorems 21.5.1 and 21.5.2. Further, denote the first, . . . , nth columns of Q by q1 , . . . , qn , respectively. In light of result (5.1), A can be expressed as A QDQ or as A
n i1
di qi qi .
(5.3)
(5.4)
538
21. Eigenvalues and Eigenvectors
And, letting λ1 , . . . , λk represent the distinct eigenvalues of A, letting ν1 , . . . νk represent the (algebraic or geometric) multiplicities of λ1 , . . . , λk , respectively, and (for j 1, . . . , k) letting Sj {i : di λj } represent the set comprising the νj values of i such that di λj , A can also be expressed as A
k
λj Ej ,
(5.5)
j 1
where (for j 1, . . . , k) Ej i∈Sj qi qi . Expression (5.5) is called the spectral decomposition or spectral representation of the n × n symmetric matrix A. [Sometimes the term spectral decomposition is used also in reference to expression (5.3) or (5.4).]
The decomposition A kj 1 λj Ej is unique (aside from the ordering of the
terms), whereas (in general) the decomposition A ni1 di qi qi is not. To see
this (i.e., the uniqueness of the decomposition A kj 1 λj Ej ), suppose that P ∗ is an n × n orthogonal matrix and D {di∗ } an n × n diagonal matrix such that P AP D∗ (where P and D∗ are possibly different from Q and D). Further, denote the first, . . . , nth columns of P by p1 , . . . , pn , respectively, and (for j 1, . . . , k)
let Sj∗ {i : di∗ λj }. Then, analogous to the decomposition A kj 1 λj Ej , we have the decomposition k λj Fj , A
j 1
where (for j 1, . . . , k) Fj i∈Sj∗ pj pj . Now, for j 1, . . . , k, let Qj (qi1 , . . . , qiνj ) and Pj (pi1∗ , . . . , piν∗ ), j where i1 , . . . , iνj and i1∗ , . . . , iν∗j are the elements of Sj and Sj∗ , respectively. Then, C(Pj ) N (A − λj I) C(Qj ), so that Pj Qj Lj for some νj × νj matrix Lj . Moreover, since clearly Qj Qj Iνj and Pj Pj Iνj , Lj Lj Lj Qj Qj Lj Pj Pj I , implying that Lj is an orthogonal matrix. Thus, Fj Pj Pj Qj Lj Lj Qj Qj IQj Qj Qj Ej .
We conclude that the decomposition A kj 1 λj Fj is identical to the decom k
position A j 1 λj Ej , and hence that the decomposition A kj 1 λj Ej is unique (aside from the ordering of terms). The spectral decomposition of the mth power Am of the n × n symmetric matrix A (where m is a positive integer) and (if A is nonsingular) the spectral decomposition of A−1 are closely related to the spectral decomposition of A itself. It follows from Lemma 21.1.3 that q1 , . . . , qn are eigenvectors of Am and (if A is nonsingular) of A−1 (as well as of A) and that the eigenvalues to which they correspond are d1m , . . . , dnm (in the case of Am ) and d1−1 , . . . , dn−1
21.6 Expressions for the Trace and Determinant of a Matrix
539
(in the case of A−1 ). Thus, the spectral decompositions of Am and A−1 can be obtained from that of A by replacing each eigenvalue of A by its mth power or by its reciprocal. More explicitly, observing that Dm diag(d1m , . . . , dnm ) and D−1 diag(d1−1 , . . . , dn−1 ), the spectral decompositions of Am and A−1 are n k Am QDm Q dim qi qi λm (5.6) j Ej , i1
A−1 QD−1 Q
n i1
21.6
j 1
di−1 qi qi
k j 1
λ−1 j Ej .
(5.7)
Expressions for the Trace and Determinant of a Matrix
Theorem 21.5.1 gives various results on n × n diagonalizable matrices or, equivalently (in light of Corollary 21.5.4), on n × n matrices whose distinct eigenvalues have geometric multiplicities that sum to n. Included among these results are expressions for the determinant and the trace of such a matrix. These expressions [which are Parts (2) and (3) of Theorem 21.5.1] are in terms of the eigenvalues. They can be extended to a broader class of matrices, as indicated by the following theorem. Theorem 21.6.1. Let A represent an n × n matrix having distinct eigenvalues λ1 , . . . λk with algebraic multiplicities γ1 , . . . , γk , respectively, that sum to n or, equivalently, having n not-necessarily-distinct eigenvalues d1 , . . . , dn . Then, det(A)
n
di
i1
tr(A)
n
di
i1
k
(6.1)
γj λ j .
(6.2)
j 1 k
γ
λj j ,
j 1
Proof. As a consequence of Theorem 21.5.11, there exists an n × n orthogonal matrix Q such that Q AQ T, where T is an (n × n) upper triangular matrix whose diagonal elements are d1 , . . . , dn , respectively. Then, recalling Corollary 13.3.6, result (13.3.9), and Lemmas 13.2.1 and 13.1.1, we find that |A| |Q|2 |A| |Q AQ| |T|
n
di .
i1
And, recalling Lemma 5.2.1, we find that tr(A) tr(AIn ) tr(AQQ ) tr(Q AQ) tr(T)
n i1
di . Q.E.D.
540
21. Eigenvalues and Eigenvectors
There is an alternative way of proving Theorem 21.6.1. Again take Q to be an n × n orthogonal matrix such that Q AQ T, where T is a triangular matrix whose diagonal elements are d1 , . . . , dn . And, recall (from Section 1) that the characteristic polynomial of A is p(λ) c0 + c1 λ + · · · + cn−1 λn−1 + cn λn , with first and next-to-last coefficients that are expressible as cn−1 (−1)n−1 tr(A) .
c0 |A| ,
(6.1)
Clearly, T is similar to A and hence (according to Theorem 21.3.1) has the same characteristic polynomial as A. Thus, recalling Lemma 13.1.1, we find that c0 |T|
n
di ,
cn−1 (−1)n−1 tr(T) (−1)n−1
i1
n
di .
i1
And, upon comparing these $ expressions for c0 and cn−1 with those in result (6.1), we conclude that |A| ni1 di and that tr(A) ni1 di .
21.7
Some Results on the Moore-Penrose Inverse of a Symmetric Matrix
The following lemma relates the eigenvalues and eigenvectors of the MoorePenrose inverse of an n × n symmetric matrix A to those of A itself. Lemma 21.7.1. Let λ represent an eigenvalue of an n × n symmetric matrix A, and let x represent any eigenvector (of A) corresponding to λ. Further, define % 1/λ, if λ 0, + λ 0, if λ 0. Then λ+ is an eigenvalue of A+ , and x is an eigenvector of A+ corresponding to λ+ . Proof. By definition, Ax λx. If λ 0, then x λ−1 Ax, and, upon observing (in light of Theorem 20.5.3) that A+ is symmetric and hence that A+ A (A+ A) A (A+ ) AA+ , we find that A+ x A+ (λ−1 Ax) λ−1 A+ Ax
λ−1 AA+ x λ−1 AA+ (λ−1 Ax)
(λ−1 )2 AA+ Ax
(λ−1 )2 Ax λ−1 (λ−1 Ax) λ−1 x .
Alternatively, if λ 0, then Ax 0, and hence [since, according to Theorem 20.5.1, N (A+ ) N (A)] A+ x 0 0x. Q.E.D.
21.8 Eigenvalues of Orthogonal, Idempotent, and Nonnegative Definite Matrices
541
Let A represent an n×n symmetric matrix. And, as in Section 5f, let Q represent an n × n orthogonal matrix and D {di } an n × n diagonal matrix such that Q AQ D; or, equivalently, let Q represent an n × n matrix whose columns are orthonormal eigenvectors of A, and take D {di } to be the diagonal matrix whose first, . . . , nth diagonal elements d1 , . . . , dn are the eigenvalues (of A) to which the first, . . . , nth columns of Q correspond. Further, denote the first, . . . , nth columns of Q by q1 , . . . , qn , respectively; let λ1 ,
. . . , λk represent the distinct eigenvalues of A; and (for j 1, . . . , k) let Ej i∈Sj qj qj , where Sj {i : di λj }. Then, by definition, the spectral decomposition of A is A QDQ
n i1
di qi qi
k
λj Ej .
j 1
The spectral decomposition of the Moore-Penrose inverse A+ of the n × n symmetric matrix A is closely related to that of A itself. Letting % 1/di , if di 0, + di 0, if di 0 (for i 1, . . . , n), it follows from Lemma 21.7.1 that q1 , . . . , qn are eigenvectors of A+ and that the eigenvalues to which they correspond are d1+ , . . . , dn+ . Thus, the spectral decomposition of A+ can be obtained from that of A by replacing each nonzero eigenvalue of A by its reciprocal. More explicitly, observing (in light of the results of Section 20.2) that D+ diag(d1+ , . . . , dn+ ) and letting (for j 1, . . . , k) % 1/λj , if λj 0, + λj 0, if λj 0, the spectral decomposition of A+ is A+ QD+ Q
n i1
21.8
di+ qi qi
k j 1
λ+ j Ej .
(7.1)
Eigenvalues of Orthogonal, Idempotent, and Nonnegative Definite Matrices
The following two theorems characterize the eigenvalues of orthogonal matrices and idempotent matrices. Theorem 21.8.1. If a scalar (real number) λ is an eigenvalue of an n × n orthogonal matrix P, then λ ±1. Proof. Suppose that λ is an eigenvalue of P. Then, by definition, there exists a nonnull vector x such that Px λx, and, consequently, x x x In x x P Px (Px) Px (λx) (λx) λ2 x x .
(8.1)
542
21. Eigenvalues and Eigenvectors
Since x 0, we have that x x 0, and, upon dividing both sides of equality (8.1) by x x, we find that λ2 1 or, equivalently, that λ ±1. Q.E.D. Theorem 21.8.2. An n × n idempotent matrix A has no eigenvalues other than 0 or 1. Moreover, 0 is an eigenvalue of A if and only if A In , in which case it has a geometric and algebraic multiplicity of n−rank(A). Similarly, 1 is an eigenvalue of A if and only if A 0, in which case it has a geometric and algebraic multiplicity of rank(A). And, the geometric and algebraic multiplicities of the (one or two) distinct eigenvalues of A sum to n. Proof. Suppose that a scalar λ is an eigenvalue of A. Then, by definition, there exists a nonnull vector x such that Ax λx, and, consequently, λx Ax A2 x A(Ax) A(λx) λAx λ2 x . Since x 0, it follows that λ2 λ, or, equivalently, that λ(λ − 1) 0, and hence that λ 0 or λ 1. Moreover, if A In , then (in light of Lemma 21.1.1) 0 is not an eigenvalue of A. Alternatively, if A In , then (according to Lemma 10.1.1) A is singular, and it follows from Lemma 21.1.1 that 0 is an eigenvalue of A of geometric multiplicity n − rank(A). Similarly, if A 0, then there exists no nonnull vector x such that Ax= x, and, consequently, 1 is not an eigenvalue of A. Alternatively, if A 0, then (in light of Lemma 10.2.4) rank(A − 1I) rank[−(I − A)] rank(I − A) n − rank(A) < n , implying that 1 is an eigenvalue of A and that its geometric multiplicity is n − rank(A − 1I) rank(A). And if A In or A 0, then A has one distinct eigenvalue (1 or 0) of geometric multiplicity n; otherwise, A has two distinct eigenvalues (0 and 1) with geometric multiplicities [n − rank(A) and rank(A)] that sum to n. It remains only to observe (on the basis of Corollary 21.3.7) that the algebraic multiplicities of the distinct eigenvalues of A equal the geometric multiplicities. Q.E.D. Idempotent matrices of order n have a maximum of two distinct eigenvalues, and the geometric multiplicities of their distinct eigenvalues sum to n. Orthogonal matrices of order n also have a maximum of two distinct eigenvalues; however, the geometric (or algebraic) multiplicities of their distinct eigenvalues do not necessarily sum to n. In fact, for any positive integer n that is divisible by 2, there exist n × n orthogonal matrices that have no eigenvalues (i.e., whose characteristic polynomials have no real roots). In the special case of an n × n symmetric matrix or other n × n diagonalizable matrix, the first part of Theorem 21.8.2 can be equipped with a converse and restated as the following theorem. Theorem 21.8.3. An n × n symmetric matrix A or, more generally, an n × n diagonalizable matrix A is idempotent if and only if it has no eigenvalues other than 0 or 1. Proof. It suffices to prove the “if” part of the theorem — the “only if” part is a direct consequence of the first part of Theorem 21.8.2.
21.9 Square Root of a Symmetric Nonnegative Definite Matrix
543
Suppose that A has no eigenvalues other than 0 or 1. By definition, there exists an n × n nonsingular matrix Q such that Q−1 AQ D for some n × n diagonal matrix D. And, according to Part (7) of Theorem 21.5.1, the diagonal elements of D are the (not necessarily distinct) eigenvalues of A. Thus, every diagonal element of D equals 0 or 1, implying that D2 D. Further, A QQ−1 AQQ−1 QDQ−1 , and it follows that A2 QDQ−1 QDQ−1 QD2 Q−1 QDQ−1 A . Q.E.D. The following theorem characterizes the eigenvalues of nonnegative definite matrices and positive definite matrices. Theorem 21.8.4. Every eigenvalue of a nonnegative definite matrix is nonnegative; every eigenvalue of a positive definite matrix is positive. Proof. Let λ represent an eigenvalue of a (square) matrix A, and let x represent an eigenvector of A corresponding to λ. Then, by definition, x 0, and, consequently, x x > 0. Further, x Ax λ xx (as discussed in Section 1 and as is evident upon observing that Ax λx and hence that x Ax λx x). Now, if A is nonnegative definite, then x Ax ≥ 0, and consequently λ ≥ 0. And, Q.E.D. if A is positive definite, then x Ax > 0, and consequently λ > 0. The following theorem gives conditions that can be used to determine whether a symmetric matrix is nonnegative definite and, if so, whether the matrix is positive definite or positive semidefinite. Theorem 21.8.5. An n × n symmetric matrix A is nonnegative definite if and only if every eigenvalue of A is nonnegative, is positive definite if and only if every eigenvalue of A is (strictly) positive, and is positive semidefinite if and only if every eigenvalue of A is nonnegative and at least one eigenvalue is zero. Proof. The theorem follows immediately from Corollary 14.2.15 upon recalling (from Section 5) that A QDQ , where Q is an n × n orthogonal matrix and D is an n×n diagonal matrix whose diagonal elements are the (not necessarily distinct) eigenvalues of A. Q.E.D.
21.9 Square Root of a Symmetric Nonnegative Definite Matrix A symmetric nonnegative definite matrix can be decomposed in the way described in the following theorem. Theorem 21.9.1. Corresponding to any n × n symmetric nonnegative definite matrix A, there exists an n × n symmetric nonnegative definite matrix R such that A R2 . Moreover, R is unique and is expressible as R Q diag( d1 , . . . , dn )Q ,
(9.1)
544
21. Eigenvalues and Eigenvectors
where d1 , . . . , dn are the (not necessarily distinct) eigenvalues of A and, letting D diag(d1 , . . . , dn ), Q is any n × n orthogonal matrix such that Q AQ D or, equivalently, such that A QDQ . Note that in Theorem 21.9.1 it is implicitly assumed that the eigenvalues of A are nonnegative and that there exists an n × n orthogonal matrix Q such that Q AQ D. The justification for these assumptions comes from Theorem 21.8.5 and Corollary 21.5.9. √ √ √ √ Proof. Let S diag( d1 , . . . , dn ), so that Q diag( d1 , . . . , dn )Q QSQ . Then, (QSQ )2 QSIn SQ QS2 Q QDQ A . Moreover, QSQ is symmetric and nonnegative definite (as is evident from Corollary 14.2.15). It remains to establish the uniqueness of QSQ ; that is, to show that there is no n × n symmetric nonnegative definite matrix other than QSQ with a “squared value” equal to A. Let R represent any n × n symmetric nonnegative definite matrix such that A R2 . Then, (R − QSQ ) (R − QSQ )
(R − QSQ )(R − QSQ ) R2 − QSQ R − RQSQ + (QSQ )2 2A − QSQ R − (QSQ R) .
Thus, to establish the uniqueness of QSQ , it suffices to show that QSQ R A [since then (R − QSQ ) (R − QSQ ) 0, implying that R − QSQ 0 or, equivalently, that R QSQ ]. Since R is symmetric, there exists an n × n orthogonal matrix P and an n × n diagonal matrix T {ti } such that R PTP . And, we find that Q PT2
Q PTIn TIn Q PTP PTP P Q R2 P Q AP
Q (QSQ )2 P In SIn SQ P S2 Q P .
Now, for i, j 1, . . . , n, let bij represent the ij th element of Q P, and observe that the ij th elements of Q PT2 and S2 Q P are, respectively, tj2 bij and di bij . So, we have that tj2 bij di bij . And, since (in light of Corollary 14.2.15) tj ≥ 0, it √ √ follows that tj bij di bij . (If bij 0, then tj bij 0√ di bij ; alternatively, √ if bij 0, then tj2 bij di bij ⇒ tj2 di ⇒ tj di ⇒ tj bij di bij .) √ Moreover, tj bij and di bij are the ij th elements of Q PT and SQ P, respectively. Thus, Q PT SQ P, and, consequently, QSQ R QSQ PTP QSSQ PP QDQ In A . Q.E.D. The n × n symmetric nonnegative definite matrix R given by expression (9.1) is called the square root of the n × n symmetric nonnegative definite matrix A and is
21.10 Some Relationships
545
denoted by the symbol A1/2 . Note that if the matrix A is positive definite, then (as a consequence of Theorem 21.8.5) its eigenvalues d1 , . . . , dn are (strictly) positive, implying (in light of Corollary 14.2.15) that the matrix R is positive definite. Thus, the square root of a symmetric positive definite matrix is positive definite.
21.10
Some Relationships
Let A represent an n × n matrix, and let k represent an arbitrary scalar. The eigenvalues and eigenvectors of the difference A − kIn and of the scalar multiple kA are related to those of A itself in a relatively simple way. Clearly, the condition Ax λx (where λ is a scalar and x a vector) is equivalent to the condition (A − kI)x (λ − k)x. Thus, a scalar λ is an eigenvalue of A if and only if λ − k is an eigenvalue of A − kI. And an n × 1 vector x is an eigenvector of A corresponding to the eigenvalue λ (of A) if and only if x is an eigenvector of A − kI corresponding to the eigenvalue λ − k (of A − kI). Moreover, for any scalar λ, |A − λI| |A − kI − (λ − k)I| , so that the characteristic polynomials, say p(·) and q(·), of A and A − kI, respectively, are such that (for all λ) p(λ) q(λ − k). And the algebraic and geometric multiplicities of an eigenvalue λ of A are the same as those of the corresponding eigenvalue λ − k of A − λI. If k 0, then kA has only one distinct eigenvalue (namely, 0), any nonnull n×1 vector is an eigenvector of kA, the characteristic polynomial of kA is r(λ) (−λ)n , and the algebraic and geometric multiplicities of the eigenvalue 0 (of kA) equal n. Suppose now that k 0. Then the condition Ax λx (where λ is a scalar and x a vector) is equivalent to the condition kAx kλx. Thus, a scalar λ is an eigenvalue of A if and only if kλ is an eigenvalue of kA. And, an n × 1 vector x is an eigenvector of A corresponding to the eigenvalue λ (of A) if and only if x is an eigenvector of kA corresponding to the eigenvalue kλ (of kA). Moreover, for any scalar λ, |A − λI| k −n |kA − kλI| , so that the characteristic polynomials, say p(·) and r(·) of A and kA, respectively, are such that (for all λ) p(λ) k −n q(kλ). And the algebraic and geometric multiplicities of an eigenvalue λ of A are the same as those of the corresponding eigenvalue kλ of kA. The following theorem relates the eigenvalues and eigenvectors of the n × n product BA of an n × m matrix B and an m × n matrix A to those of the m × m product AB. Theorem 21.10.1. Let A represent an m × n matrix and B an n × m matrix. Then,
546
21. Eigenvalues and Eigenvectors
(1) the characteristic polynomials, say q(λ) and p(λ) of BA and AB, respectively, are such that (for all λ) q(λ) (−λ)n−m p(λ), (−λ)m−n q(λ) p(λ), or q(λ) p(λ), depending on whether m < n, m > n, or m n; (2) the nonzero distinct eigenvalues and nonzero not-necessarily-distinct eigenvalues of BA are the same as those of AB; (3) for any matrix X whose columns are linearly independent eigenvectors of AB corresponding to a nonzero eigenvalue λ, the columns of BX are linearly independent eigenvectors of BA corresponding to λ; and, similarly, for any matrix Y whose columns are linearly independent eigenvectors of BA corresponding to a nonzero eigenvalue λ, the columns of AY are linearly independent eigenvectors of AB corresponding to λ; (4) each nonzero eigenvalue of AB (or, equivalently, of BA) has the same algebraic and geometric multiplicities when regarded as an eigenvalue of BA as when regarded as an eigenvalue of AB; and (5) the algebraic multiplicity of 0 when 0 is regarded as an eigenvalue (or potential eigenvalue) of BA equals n − m plus the algebraic multiplicity of 0 when 0 is regarded as an eigenvalue (or potential eigenvalue) of AB. Proof. (1) Making use of Corollaries 13.2.4 and 18.1.2, we find that, for λ 0, p(λ) |AB − λIm | (−λ)m |Im − λ−1 AB| and q(λ) |BA − λIn | (−λ)n |In − λ−1 BA| (−λ)n |Im − λ−1 AB| . Thus, for λ 0, q(λ) (−λ)n−m p(λ), (−λ)m−n q(λ) p(λ), and, in the special case where m n, q(λ) p(λ). And the proof of Part (1) is complete upon observing that if two polynomials in λ are equal for all λ in some nondegenerate interval, then they are equal for all λ — refer to Theorem 21.A.5 (in the Appendix) or, alternatively, upon observing that if m < n, then BA is singular and hence q(0) 0; that if m > n, then AB is singular and hence p(0) 0; and that if m n, then q(0) |BA| |A| |B| |AB| p(0). (2) Part (2) is an almost immediate consequence of Part (1). (3) By definition, ABX λX . Thus, rank(X) ≥ rank(BX) ≥ rank(ABX) rank(λX) rank(X) , so that rank(BX) rank(X) and consequently (since BX has the same number of columns as X) the columns of BX are linearly independent. Moreover, BA(BX) B(ABX) B(λX) λBX ,
21.11 Eigenvalues and Eigenvectors of Kronecker Products of (Square) Matrices
547
implying (since the columns of BX are linearly independent and hence nonnull) that the columns of BX are eigenvectors of BA corresponding to λ. That the columns of AY are linearly independent eigenvectors of AB corresponding to λ follows from an analogous argument. (4) It follows from Part (3) that, for each nonzero eigenvalue λ of AB (or, equivalently, of BA), dim[N (BA − λI)] ≥ dim[N (AB − λI)] and dim[N (AB − λI)] ≥ dim[N (BA−λI)] and hence dim[N (BA−λI)] dim[N (AB−λI)]. Thus, λ has the same geometric multiplicity when regarded as an eigenvalue of BA as when regarded as an eigenvalue of AB. That λ has the same algebraic multiplicity when regarded as an eigenvalue of BA as when regarded as an eigenvalue of AB is evident from Part (1). (5) Part (5) is an almost immediate consequence of Part (1). Q.E.D. In the special case where B A , the results of Theorem 21.10.1 can be augmented by the following result. Lemma 21.10.2. For any m × n matrix A, the geometric multiplicity of 0 when 0 is regarded as an eigenvalue (or potential eigenvalue) of A A equals n − m plus the geometric multiplicity of 0 when 0 is regarded as an eigenvalue (or potential eigenvalue) of AA . Proof. Making use of result (1.1) (or Lemma 11.3.1) and of Corollary 7.4.5, we find that dim[N (A A − 0In )] n − rank(A A) n − rank(A) and that dim[N (AA − 0Im )] m − rank(AA ) m − rank(A) . Thus,
dim[N (A A − 0In )] n − m + dim[N (AA − 0Im )] . Q.E.D.
21.11
Eigenvalues and Eigenvectors of Kronecker Products of (Square) Matrices
Eigenvalues and eigenvectors of a Kronecker product A⊗B of two square matrices A and B can be obtained by combining eigenvalues and eigenvectors of A with eigenvalues and eigenvectors of B in the way described in the following theorem. Theorem 21.11.1. Let λ represent an eigenvalue of an m × m matrix A, and let x represent an eigenvector of A corresponding to λ. Similarly, let τ represent an eigenvalue of a p × p matrix B, and let y represent an eigenvector of B corresponding to τ . Then, λτ is an eigenvalue of A ⊗ B, and x ⊗ y is an eigenvector of A ⊗ B corresponding to λτ . Proof. By definition, Ax λx, and By τ y. Thus, (A ⊗ B)(x ⊗ y) (Ax) ⊗ (By) (λx) ⊗ (τ y) λτ (x ⊗ y) . Moreover, x ⊗ y is clearly nonnull.
Q.E.D.
548
21. Eigenvalues and Eigenvectors
In connection with Theorem 21.11.1, it should be noted that A ⊗ B may have eigenvectors that are not expressible as the Kronecker product x ⊗ y of an eigenvector x of A and an eigenvector y of B. Following Magnus and Neudecker (1988, 0 1 1 p. 29), suppose, for example, that B A , and let e1 and 0 0 0 0 e2 . Then, A (or B) has only one distinct eigenvalue, namely 0; and every 1 eigenvector of A (or of B) is a scalar multiple of e1 . And, in accordance with Theorem 21.11.1, 0 is an eigenvalue of A ⊗ B, and e1 ⊗ e1 is an eigenvector of A ⊗ B corresponding to 0. However, e1 ⊗ e2 and e2 ⊗ e1 are also eigenvectors of A ⊗ B corresponding to 0 (as is easily verified). The following theorem gives some basic results on the similarity of two Kronecker products. Theorem 21.11.2. Let R represent an m × m matrix that is similar to an m × m matrix A. Similarly, let S represent a p × p matrix that is similar to a p × p matrix B. Then, R ⊗ S is similar to A ⊗ B. And, for any m × m nonsingular matrix C such that R C−1 AC and for any p × p nonsingular matrix T such that S T−1 BT, R ⊗ S (C ⊗ T)−1 (A ⊗ B)(C ⊗ T) . Proof. Since R is similar to A and S similar to B, there exist nonsingular matrices C and T such that R C−1 AC and S T−1 BT. Moreover, recalling formula (16.1.23) (and that the Kronecker product of nonsingular matrices is nonsingular), we find that, for any such nonsingular matrices C and T, C ⊗ T is nonsingular, and R ⊗ S (C−1 ⊗ T−1 )(A ⊗ B)(C ⊗ T) (C ⊗ T)−1 (A ⊗ B)(C ⊗ T) . Q.E.D. Upon recalling that (by definition) a (square) matrix A is diagonalizable if and only if there exists a diagonal matrix that is similar to A and that the Kronecker product of diagonal matrices is diagonal and observing [in light of results (16.1.15) and (16.1.23)] that a Kronecker product of orthogonal matrices is orthogonal, we obtain the following corollary. Corollary 21.11.3. Let A represent an m × m matrix and B a p × p matrix. If both A and B are diagonalizable, then A ⊗ B is diagonalizable; if both A and B are orthogonally diagonalizable, then A ⊗ B is orthogonally diagonalizable. And, if A is diagonalized by an m × m nonsingular matrix P and B by a p × p nonsingular matrix Q, then A⊗B is diagonalized by the (nonsingular) matrix P⊗Q. Moreover, if P and Q are orthogonal, then P ⊗ Q is also orthogonal. The following theorem gives a result on the not-necessarily-distinct eigenvalues of a Kronecker product of two (square) matrices. Theorem 21.11.4. Let A represent an m × m matrix and B a p × p matrix. Suppose that A has m (not necessarily distinct) eigenvalues, say d1 , . . . , dm , the last s of which equal 0. And, let f1 , . . . , fk represent the (not necessarily distinct) eigenvalues of B (where possibly k < p). Then, A ⊗ B has (m − s)k + sp (not necessarily distinct) eigenvalues: d1 f1 , . . . , d1 fk , . . . , dm−s f1 , . . . , dm−s fk , 0, . . . , 0.
21.11 Eigenvalues and Eigenvectors of Kronecker Products of (Square) Matrices
549
Proof. As a consequence of Theorem 21.5.11, there exists an m × m orthogonal matrix Q such that Q AQ T, where T is an upper triangular matrix with diagonal elements d1 , . . . , dm . Further, Q ⊗ Ip is an orthogonal matrix (as is easily verified), and (Q ⊗ Ip ) (A ⊗ B)(Q ⊗ Ip ) (Q AQ) ⊗ B T ⊗ B . Thus, A ⊗ B is similar to T ⊗ B, and it follows from Part (7) of Theorem 21.3.1 that the (not necessarily distinct) eigenvalues of A ⊗ B are the same as those of T ⊗ B. And T ⊗ B is an (upper) block-triangular matrix with diagonal blocks d1 B, . . . , dm B, so that [in light of Part(4) of Lemma 21.2.1 and the results of Section 10] T ⊗ B has (m − s)k + sp (not necessarily distinct) eigenvalues: d1 f1 , . . . , d1 fk , . . ., dm−s f1 , . . . , dm−s fk , 0, . . . , 0. Q.E.D. In the special case where k p, Theorem 21.11.4 can be restated as the following corollary. Corollary 21.11.5. Let A represent an m × m matrix and B a p × p matrix. Suppose that A has m (not necessarily distinct) eigenvalues, say d1 , . . . , dm , and that B has p (not necessarily distinct) eigenvalues, say f1 , . . . , fp . Then, A⊗B has mp (not necessarily distinct) eigenvalues: di fj (i 1, . . . , m; j 1, . . . , p). Let A represent an m × m matrix and B a p × p matrix. According to Theorem 21.11.4 (and Corollary 21.11.5), a sufficient condition for A ⊗ B to have mp (not necessarily distinct) eigenvalues is that A have m (not necessarily distinct) eigenvalues and B have p (not necessarily distinct) eigenvalues or that A 0. However, this condition is not necessary. Suppose, for example that 0 1 0 B A −1 0 0 . 0 0 0 Then the characteristic polynomial of A (or B) is p(λ) |A − λI| −λ(λ2 + 1) (as can be easily seen by, e.g., making use of Theorem 13.3.1). Consequently, 0 is an eigenvalue of A and has an algebraic multiplicity of 1. Moreover, A has no eigenvalues other than 0 — the characteristic polynomial of A has two imaginary roots, namely, i and −i. By way of comparison, the characteristic polynomial of B ⊗ A is (in light of Theorem 13.3.1) −λI A 0 −λI3 A 0 (−λ)3 q(λ) |B ⊗ A − λI| −A −λI . −A −λI3 0 0 −λI And, making use of results (13.3.13) and (13.2.2), we find that (for λ 0) −λI3 A −1 −A −λI3 | − λI3 | | − λI − (−A)(−λI) A|
550
21. Eigenvalues and Eigenvectors
(−λ)3 | − λI3 − λ−1 A2 | |(−λ)(−λI − λ−1 A2 )|
|λ2 I + A2 | 2 λ − 1 0 2 0 λ −1 0 0
0 0 (λ2 − 1)2 λ2λ2 [(λ + 1)(λ − 1)]2 λ2
and hence that (for all λ) q(λ) (−λ)3 λ2 [(λ + 1)(λ − 1)]2 (−1)9 λ5 (λ + 1)2 (λ − 1)2 . So, B⊗A has three distinct eigenvalues: 0, −1, and 1, with algebraic multiplicities of 5, 2, and 2, respectively. Thus, B⊗A has 9 (not necessarily distinct) eigenvalues, whereas each of the matrices A and B (which are of order 3) has only one.
21.12
Singular Value Decomposition
a. Definition, existence, and some basic properties and relationships Let A represent an n × n symmetric nonnegative definite matrix. Then, it follows from the results of Section 5 (and from the nonnegativity of the eigenvalues of a nonnegative definite matrix) that A is expressible in the form D1 0 AQ Q , (12.1) 0 0 where Q is an n × n orthogonal matrix and where D1 is a diagonal matrix with (strictly) positive diagonal elements. In fact, decomposition (12.1) is the spectral decomposition of A. The following theorem can be used to establish a generalization of this decomposition that is applicable to any matrix. Theorem 21.12.1. Let A represent an m × n matrix of rank r. And, take Q to be any n × n orthogonal matrix and D1 to be any r × r nonsingular diagonal matrix such that 2 D1 0 Q A AQ (12.2) 0 0 2 D1 0 [where, when r 0 or r n, equals 0 or D21 , respectively]. Further, 0 0 partition Q as Q (Q1 , Q2 ), where Q1 has r columns, and let P (P1 , P2 ), where P1 AQ1 D−1 1 and where P2 is any m × (m − r) matrix such that P1 P2 0 .
(12.3)
(When r 0, Q Q2 , P P2 , and P2 is arbitrary; when r n, Q Q1 ; and when r m, P P1 .) Then, D1 0 P AQ 0 0
21.12 Singular Value Decomposition
551
D1 0 equals 0, (D1 , 0), [where, when r 0, r m, r n, or r m n, 0 0 D1 , or D1 , respectively]. 0 Proof. Since Q1 A AQ1 Q1 A AQ2 Q A AQ , Q2 A AQ1 Q2 A AQ2 we have that Q1 A AQ1 D21 . Further, (AQ2 ) AQ2 Q2 A AQ2 0, implying (in light of Corollary 5.3.2) that AQ2 0. Thus, upon observing that P1 D−1 1 Q1 A and that AQ1 P1 D1 , we find that −1 P1 AQ1 P1 AQ2 D1 Q1 A AQ1 P1 0 P AQ P2 AQ1 P2 AQ2 P2 P1 D1 P2 0 −1 2 D1 0 D1 D1 0 . 0 0 (P1 P2 ) D1 0 Q.E.D. There exist an r ×r diagonal matrix D1 with (strictly) positive diagonal elements and an n×n orthogonal matrix Q that satisfy condition (12.2) of Theorem 21.12.1, and there exists an m × (m − r) matrix P2 that not only satisfies condition (12.3) but is such that P is orthogonal. To see this, take D1 diag(s1 , . . . , sr ), where s1 , . . . , sr are the positive square roots of the r nonzero (and hence positive) notnecessarily-distinct eigenvalues of A A. [Since A A is symmetric and (in light of Corollary 14.2.14) nonnegative definite and since rank(A A) rank(A) r, it follows from Corollaries 21.3.8 and 21.5.8 that A A has r nonzero not-necessarilydistinct eigenvalues and from Theorem 21.8.5 that those eigenvalues are positive.] Now, choose the n × n orthogonal matrix Q to satisfy condition (12.2) — that this is possible is evident from Corollary 21.5.9. Further, observe (as in the proof of Theorem 21.12.1) that Q1 A AQ1 D21 and hence that −1 −1 2 −1 P1 P1 D−1 1 Q1 A AQ1 D1 D1 D1 D1 Ir . And, observing (in light of Lemma 11.3.1) that dim[N (P1 )] m − rank(P1 ) m − rank(P1 P1 ) m − r, take P2 to be any m × (m − r) matrix whose columns form an orthonormal basis for N (P1 ). Then, 0 Ir P1 P1 P1 P2 PP Im . P2 P1 P2 P2 0 Im−r In light of this discussion, we have the following corollary of Theorem 21.12.1. Corollary 21.12.2. Corresponding to any m × n matrix A of rank r, there exist an m × m orthogonal matrix P and an n × n orthogonal matrix Q such that D1 0 P AQ , 0 0
552
21. Eigenvalues and Eigenvectors
where D1 is an r × r diagonal matrix with diagonal elements that are (strictly) positive. Let A represent an m × n matrix. And, let P represent an m × m orthogonal matrix, Q an n × n orthogonal matrix, and D1 {si } an r × r diagonal matrix with (strictly) positive diagonal elements such that D1 0 P AQ 0 0 — the existence of such matrices is guaranteed by Corollary 21.12.2. Further, partition P and Q as P (P1 , P2 ) and Q (Q1 , Q2 ), where P1 has r columns, say p1 , . . . , pr , respectively, and Q1 has r columns, say q1 , . . . , qr , respectively. Then A can be expressed as D1 0 Q (12.4) AP 0 0 or as
A P1 D1 Q1
or A
r i1
si pi qi .
(12.5)
(12.6)
Letting α1 , . . . , αk represent the distinct values represented among s1 , . . . , sr and (for j 1, . . . , k) letting Lj {i : si αj }, A can also be expressed as A
k
α j Uj ,
(12.7)
j 1
where (for j 1, . . . , k) Uj i∈Lj pi qi . Expression (12.4) is called the singular-value decomposition of the m×n matrix A. Sometimes the term singular-value decomposition is used also in referring to expression (12.5), (12.6), or (12.7). The following theorem provides some insight into the nature of the various components of the singular-value decomposition and the extent to which those components are unique. Theorem 21.12.3. Let A represent an m × n matrix. And, take P to be an m × m orthogonal matrix, Q an n × n orthogonal matrix, and D1 an r × r nonsingular diagonal matrix such that D1 0 . (12.8) P AQ 0 0 Further, partition P and Q as P (P1 , P2 ) and Q (Q1 , Q2 ), where each of the matrices P1 and Q1 has r columns. Then, r rank(A) ,
(12.9)
21.12 Singular Value Decomposition
Q A AQ
P AA P
D21 0
D21 0
0 , 0 0 , 0
553
(12.10) (12.11)
P1 AQ1 D−1 1 ,
(12.12)
Q1 A P1 D−1 1 .
(12.13)
Proof. The veracity of result (12.9) is evident from equality (12.8) upon observing that rank(P AQ) rank(A). Further, 2 D1 0 D1 0 D1 0 Q A AQ Q A PP AQ (P AQ) P AQ , 0 0 0 0 0 0 which verifies equality (12.10). Equality (12.11) canbe verified in similar fashion. P1 AQ1 P1 AQ2 And observing that P AQ [and making use of equality P2 AQ1 P2 AP2 (12.8)], we find that P1 P1 D1 D−1 1
P1 (P1 AQ1 )D−1 1 (P1 P1 )AQ1 D−1 1
(Im − P2 P2 )AQ1 D−1 1
−1 AQ1 D−1 1 − P2 (P2 AQ1 )D1
−1 −1 AQ1 D−1 1 − P2 0D1 AQ1 D1 .
That Q1 A P1 D−1 Q.E.D. 1 can be established via an analogous argument. In light of Theorem 21.5.1, it is clear from Theorem 21.12.3 that the scalars s1 , . . . , sr , which appear in the singular-value decomposition (12.4) (as the diagonal elements of the diagonal matrix D1 ) are the positive square roots of the nonzero (not necessarily distinct) eigenvalues of A A (or, equivalently, of the nonzero notnecessarily-distinct eigenvalues of AA ). Moreover, they are unique (i.e., they do not vary with the choice of the orthogonal matrices P and Q that appear in the singular-value decomposition), and they are equal in number to rank(A). The scalars s1 , . . . , sr are referred to as the singular values of the matrix A. (In some presentations, the positive square roots of all n or m eigenvalues of A A and AA , including those that equal 0, are regarded as singular values of A.) The scalars α1 , . . . , αk , which appear in decomposition (12.7) and which (by definition) are the distinct singular values of A, are the positive square roots of the distinct nonzero eigenvalues of A A (or, equivalently, of the distinct nonzero eigenvalues of AA ). Theorem 21.12.3 is also informative about the nature of the orthogonal matrices P and Q, which appear in the singular-value decomposition (12.4). The m columns of P are eigenvectors of AA , with the first r columns corresponding to the nonzero eigenvalues s12 , . . . , sr2 and the remaining m − r columns corresponding to the 0 eigenvalues. Similarly, the n columns of Q are eigenvectors of A A, with the first r columns corresponding to the nonzero eigenvalues s12 , . . . , sr2 and the remaining
554
21. Eigenvalues and Eigenvectors
n − r columns corresponding to the 0 eigenvalues. Moreover, once the first r columns of Q are specified, the first r columns of P are uniquely determined [by result (12.12)]. Similarly, once the first r columns of P are specified, the first r columns of Q are uniquely determined [by result (12.13)]. For any fixed ordering of the distinct singular values α1 , . . . , αk , decomposition (12.7) is unique. To see this, observe [in light of result (12.12)] that (for i 1, . . . , r) pi si−1 Aqi . Thus, for j 1, . . . , k, pi qi si−1 Aqi qi αj−1 AEj , Uj
i∈Lj
i∈Lj
where Ej i∈Lj qi qi . Further, since (for i ∈ Lj ) qi is an eigenvector of A A corresponding to the eigenvalue αj2 , it follows from the results of Section 5f (on the uniqueness of the spectral decomposition) that Ej does not vary with the choice of P, Q, and D1 and hence that Uj does not vary with this choice. We conclude that decomposition (12.7) is unique (aside from the ordering of the terms). The (usual) norm of the m × n matrix A with singular-value decomposition (12.4) can be expressed in terms of the singular values s1 , . . . sr . Making use of Lemma 5.2.1, we find that A2
tr(A A)
D1 0 D1 0 tr Q Q P P 0 0 0 0
D1 0 D1 0 tr QQ PP 0 0 0 0
2
D1 0 D1 0 D1 I tr I tr 0 0 m 0 0 n 0
0 0
s12 + · · · + sr2 .
Thus, A (s12 + · · · + sr2 )1/2 .
(12.14)
Let us now consider the singular-value decomposition of an n × n symmetric matrix A. Let d1 , . . . , dn represent the (not necessarily distinct) eigenvalues of A, ordered in such a way that d1 , . . . , dr are nonzero and dr+1 · · · dn 0. And let q1 , . . . , qn represent orthonormal eigenvectors of A corresponding to d1 , . . . , dn , respectively, and (for i 1, . . . , n) let % 1, if di ≥ 0, 6i −1, if di < 0 . Further, define D diag(d1 , . . . , dn ), Q (q1 , . . . , qn ), and 6 diag(61 , . . . , 6n ); and take P Q6 to be the n × n matrix whose ith column pi is either qi or −qi depending on whether di ≥ 0 or di < 0. Then, P and Q are orthogonal. And Q AQ D, so that P AQ 6Q AQ 6D
D1 diag(61 d1 , . . . , 6n dn ) diag(|d1 |, . . . , |dn |) 0
0 , 0
21.12 Singular Value Decomposition
555
where D1 diag(|d1 |, . . . , |dr |). Thus, the singular values of A are the absolute values |d1 |, . . . , |dr | of its nonzero eigenvalues. And, the singular-value decomposition of A [decomposition (12.6)] is A
r i1
|di |pi qi
r i1
|di |(6i qi qi ) .
By way of comparison, the spectral decomposition of A [decomposition (5.4)] is A
n i1
di qi qi
r i1
di qi qi .
Note that, in the special case where the symmetric matrix A is nonnegative definite, d1 , . . . , dr are positive, so that (for i 1, . . . , n) 6i 1, |di | di , and pi qi . Thus, in this special case, the singular values of A are its nonzero eigenvalues, and the singular-value decomposition of A is essentially the same as the spectral decomposition of A.
b. Singular-value decomposition of the Moore-Penrose inverse Let A represent an m × n matrix. And let P represent an m × m orthogonal matrix, Q an n×n orthogonal matrix, and D1 {si } an r ×r diagonal matrix with (strictly) positive diagonal elements such that D1 0 P AQ . 0 0 Then, by definition, the singular-value decomposition of A is D1 0 AP Q . 0 0 According to Theorem 20.5.6, A+ Q
+ 0 P . 0
D1 0
And, in light of the results of Section 20.2, + + D1 0 E1 D1 0 0 0 0 0 0 where E1 diag(1/s1 , . . . , 1/sr ). Thus, E1 A+ Q 0 or, equivalently, Q A+ P
E1 0
0 P , 0 0 0
0 0
,
(12.15)
.
Clearly, expression (12.15) is the singular-value decomposition of A+ . And the singular values of A+ are the reciprocals of the singular values of A.
556
21. Eigenvalues and Eigenvectors
c. Approximation of a matrix by a matrix of smaller rank The following theorem suggests that if some of the singular values of an m × n matrix A are relatively small, the m × n matrix obtained from the singular-value decomposition (of A) by setting those singular values equal to zero may provide a “good” approximation to A. Theorem 21.12.4. Let A represent an m×n matrix (of rank r) with singular values s1 , s2 , . . . , sr ordered so that s1 ≥ s2 ≥ · · · ≥ sr . Let D1 diag(s1 , s2 , . . . , sr ), and let P represent an m × m orthogonal matrix and Q an n × n orthogonal matrix such that P AQ diag(D1 , 0), so that D1 0 Q AP 0 0 is the singular-value decomposition of A. Then, for any m × n matrix B of rank k or less (where k < r), 2 B − A2 ≥ sk+1 + · · · + sr2
(12.16)
(where the norm is the usual norm). Moreover, equality is attained in inequality (12.16) by taking ∗ D1 0 BP Q , 0 0 where D∗1 diag(s1 , . . . , sk ). As a preliminary to proving Theorem 21.12.4, it is convenient to establish the following theorem, which is of some interest in its own right. Theorem 21.12.5. Let A represent an n × n symmetric matrix with (not necessarily distinct) eigenvalues d1 , d2 , . . . , dn ordered so that d1 ≥ d2 ≥ · · · ≥ dn . Then, for any n × k matrix X such that X X Ik or, equivalently, for any n × k matrix X with orthonormal columns (where k ≤ n), tr (X AX) ≤
k
di ,
i1
with equality holding if the columns of X are orthonormal eigenvectors of A corresponding to d1 , d2 , . . . , dk , respectively. Proof (of Theorem 21.12.5). Let U represent an n×n matrix whose first, . . . , nth columns are orthonormal (with respect to the usual inner product) eigenvectors of A corresponding to d1 , . . . , dn , respectively. Then there exists an n × k matrix R {rij } such that X UR. Further, U AU D, where D diag(d1 , . . . , dn ). Thus, tr(X AX) tr(R U AUR)
tr(R DR) k n n di rij2 wi di , j 1 i1
i1
21.12 Singular Value Decomposition
557
where (for i 1, . . . , n) wi kj 1 rij2 . The scalars w1 , . . . , wn are such that 0 ≤ wi ≤ 1 (for i 1, . . . , n) and
n
wi k .
(12.17)
(12.18)
i1
To see this, observe that R R R In R R U UR X X Ik (which indicates that the columns of R are orthonormal). Then, as a consequence of Theorem 6.4.5, there exists an n × (n − k) matrix S such that the columns of the matrix (R, S) form an orthonormal basis for Rn or, equivalently, such that (R, S) is an orthogonal matrix. And, RR + SS (R, S)(R, S) In , so that In − RR SS , implying that In − RR is nonnegative definite. Thus, since clearly the ith diagonal element of In − RR equals 1 − wi , we have that 1 − wi ≥ 0, which (together with the obvious inequality wi ≥ 0) establishes result (12.17). Moreover, n i1
wi
n k j 1 i1
rij2 tr(R R) tr(Ik ) k ,
which establishes result (12.18).
Results (12.17) and (12.18) imply that ni1 wi di ≤ ki1 di (as is easily verified) and hence that k tr(X AX) ≤ di . i1
Moreover, in the special case where the columns of X are orthonormal eigenvectors of A corresponding to d1 , . . . , dk , respectively, AX X diag(d1 , . . . , dk ) and hence X AX X X diag(d1 , . . . , dk ) diag(d1 , . . . , dk ) .
Q.E.D. Thus, in that special case, tr(X AX) ki1 di . Proof (of Theorem 21.12.5). Corresponding to any m × n matrix B of rank k or less, there exists an m × k matrix U with orthonormal columns such that C(B) ⊂ C(U) or, equivalently, such that B UL for some k × n matrix L. Now, let U represent an arbitrary m × k matrix with orthonormal columns or, equivalently, an arbitrary m × k matrix such that U U Ik . And, let L represent an arbitrary k × n matrix. Then, to verify inequality (12.16), it suffices to show that 2 UL − A2 ≥ sk+1 + · · · + sr2 .
558
21. Eigenvalues and Eigenvectors
We have that UL − A2 tr[(UL − A) (UL − A)] tr(L L − A UL − L U A) + tr(A A) . And, since L L − A UL − L U A + A UU A (L − U A) (L − U A) and since (L − U A) (L − U A) is a nonnegative definite matrix, we find (in light of Theorem 14.7.2) that tr(L L − A UL − L U A + A UU A) ≥ 0 and hence that tr(L L − A UL − L U A) ≥ −tr(A UU A) −tr(U AA U) . Thus,
UL − A2 ≥ tr(A A) − tr(U AA U) .
Moreover, since (in light of the results of Subsection a) s1 , . . . , sr are the positive square roots of the nonzero eigenvalues of A A (or, equivalently, of the nonzero eigenvalues of AA ), it follows from Theorem 21.6.1 that tr(A A)
r i1
si2
and from Theorem 21.12.5 that tr(U AA U) ≤
k i1
si2 .
We conclude that UL − A2 ≥
r i1
si2 −
k i1
2 si2 sk+1 + · · · + sr2 .
And the proof is complete upon observing (in light of Lemma 8.4.2) that ∗ ∗ D1 0 D1 0 D1 0 2 2 P Q − A P Q −P Q 0 0 0 0 0 0 ∗ D1 0 2 D1 0 2 − sk+1 + · · · + sr2 . 0 0 0 0 Q.E.D. In the special case where the matrix A is symmetric, Theorem 21.12.4 can (in light of the results of Subsection a) be restated in terms related to the spectral decomposition of A, as described in the following corollary.
21.13 Simultaneous Diagonalization
559
Corollary 21.12.6. Let A represent an n × n symmetric matrix (of rank r) with nonzero (not necessarily distinct) eigenvalues d1 , . . . , dr ordered so that |d1 | ≥ |d2 | ≥ · · · ≥ |dr |. Let D1 diag(d1 , . . . , dr ), and let Q represent an n × n orthogonal matrix such that Q AQ diag(D1 , 0), so that D1 0 AQ Q 0 0 is the spectral decomposition of A. Then, for any n × n matrix B of rank k or less (where k < r) 2 B − A2 ≥ dk+1 + · · · + dr2 . (12.19) Moreover, equality is attained in inequality (12.19) by taking ∗ D1 0 BQ Q , 0 0 where D∗1 diag(d1 , . . . , dk ).
21.13
Simultaneous Diagonalization
In Section 5, we considered the diagonalization of an n × n matrix. Now, let A1 , . . . , Ak represent k matrices of dimensions n × n, and consider the conditions under which there exists a single n × n nonsingular matrix Q that diagonalizes all k of these matrices; that is, the conditions under which there exists an n × n nonsingular matrix Q such that Q−1 A1 Q D1 , . . . , Q−1 Ak Q Dk for some diagonal matrices D1 , . . . , Dk . When such a nonsingular matrix Q exists, Q is said to simultaneously diagonalize A1 , . . . , Ak (or A1 , . . . , Ak are said to be simultaneously diagonalized by Q), and A1 , . . . , Ak are referred to as being simultaneously diagonalizable. Suppose that there exists an n × n nonsingular matrix Q such that Q−1 A1 Q D1 , . . . , Q−1 Ak Q Dk for some diagonal matrices D1 , . . . , Dk . Then, for s i 1, . . . , k, Q−1 As Ai Q Q−1 As QQ−1 Ai Q Ds Di Di Ds Q−1 Ai QQ−1 As Q Q−1 Ai As Q , implying that As Ai Q(Q−1 As Ai Q)Q−1 Q(Q−1 Ai As Q)Q−1 Ai As . Thus, a necessary condition for A1 , . . . , Ak to be simultaneously diagonalizable is that As Ai Ai As (s > i 1, . . . , k) (13.1) (i.e., that A1 , . . . , Ak commute in pairs).
560
21. Eigenvalues and Eigenvectors
For symmetric matrices A1 , . . . , Ak , condition (13.1) is sufficient, as well as necessary, for A1 , . . . , Ak to be simultaneously diagonalizable. In fact, symmetric matrices A1 , . . . , Ak that satisfy condition (13.1) can be simultaneously diagonalized by an orthogonal matrix. To verify this, let us proceed by mathematical induction. In the case of one symmetric matrix A1 , we know (from Theorem 21.5.7) that there exists an orthogonal matrix that “simultaneously” diagonalizes A1 — when k 1, condition (13.1) is vacuous. Suppose now that any k −1 symmetric matrices (of the same order) that commute in pairs can be simultaneously diagonalized by an orthogonal matrix (where k ≥ 2). And, let A1 , . . . , Ak represent k symmetric matrices of arbitrary order n that commute in pairs. Then, to complete the induction argument, it suffices to show that A1 , . . . , Ak can be simultaneously diagonalized by an orthogonal matrix. Let λ1 , . . . , λr represent the distinct eigenvalues of Ak , and let ν1 , . . . , νr represent their respective multiplicities. Take Qj to be an n × νj matrix whose columns are orthonormal (with respect to the usual inner product) eigenvectors of Ak corresponding to the eigenvalue λj or, equivalently, whose columns form an orthonormal basis for the νj -dimensional linear space N (Ak − λj I)(j 1, . . . , r). And define Q (Q1 , . . . , Qr ). Since (according
to Theorem 21.5.7) Ak is diagonalizable, it follows from Corollary 21.5.4 that rj 1 νj n, so that Q has n (orthonormal) columns and hence is an orthogonal matrix. Further, Q Ak Q diag(λ1 Iν1 , . . . , λr Iνr )
(13.2)
(as is evident from Theorems 21.5.2 and 21.5.1). Since Ak commutes with each of the matrices A1 , . . . , Ak−1 , we find that, for i 1, . . . , k − 1 and j 1, . . . , r, Ak (Ai Qj ) Ai (Ak Qj ) Ai (λj Qj ) λj Ai Qj . Thus, (Ak − λj I)Ai Qj 0, implying (in light of Lemma 11.4.1) that C(Ai Qj ) ⊂ N (Ak − λj I). And, since the columns of Qj form a basis for N (Ak − λj I), there exists a νj × νj matrix Bij such that Ai Qj Qj Bij
(13.3)
(i 1, . . . , k − 1; j 1, . . . , r), and we find that (for i 1, . . . , k − 1) Q Ai Q Q (Ai Q1 , . . . , Ai Qr )
Q (Q1 Bi1 , . . . , Qr Bir )
Q Q diag(Bi1 , . . . , Bir )
diag(Bi1 , . . . , Bir ) .
(13.4)
Now, using result (13.3), we find that, for j 1, . . . , r, Bij Iνj Bij Qj Qj Bij Qj Ai Qj (i 1, . . . , k − 1) and that Bsj Bij Qj As Qj Bij Qj As Ai Qj Qj Ai As Qj Qj Ai Qj Bsj Bij Bsj
21.13 Simultaneous Diagonalization
561
(s > i 1, . . . , k − 1), so that the k − 1 matrices B1j , . . . , Bk−1,j (which are of order νj ) are symmetric and they commute in pairs. Thus, by supposition, B1j , . . . , Bk−1,j can be simultaneously diagonalized by an orthogonal matrix; that is, there exists a νj × νj orthogonal matrix Sj and νj × νj diagonal matrices D1j , . . . , Dk−1,j such that (for i 1, . . . k − 1) Sj Bij Sj Dij .
(13.5)
Define S diag(S1 , . . . , Sr ) and P QS. Then, clearly, S is orthogonal and, hence, according to Lemma 8.4.1, P is also orthogonal. Further, using results (13.4), (13.5), and (13.2), we find that, for i 1, . . . , k − 1, P Ai P
S Q Ai QS
diag(S1 , . . . , Sr ) diag(Bi1 . . . , Bir ) diag(S1 , . . . , Sr ) diag(S1 Bi1 S1 , . . . , Sr Bir Sr ) diag(Di1 , . . . , Dir ) and that P Ak P
S Q Ak QS diag(S1 , . . . , Sr ) diag(λ1 Iν1 , . . . , λr Iνr ) diag(S1 , . . . , Sr ) diag(λ1 S1 S1 , . . . , λr Sr Sr ) diag(λ1 Iν1 , . . . , λr Iνr ),
so that all k of the matrices A1 , . . . , Ak are simultaneously diagonalized by the orthogonal matrix P. Summarizing, we have the following theorem. Theorem 21.13.1. If n × n matrices A1 , . . . , Ak are simultaneously diagonalizable, then they commute in pairs, that is, for s > i 1, . . . , k, As Ai Ai As . If n × n symmetric matrices A1 , . . . , Ak commute in pairs, then they can be simultaneously diagonalized by an orthogonal matrix; that is, there exists an n × n orthogonal matrix; P and diagonal matrices D1 , . . . , Dk such that, for i 1, . . . , k, P Ai P Di . In connection with Theorem 21.13.1, note that symmetric matrices A1 , . . . , Ak commute in pairs if and only if each of the k(k −1)/2 matrix products A1 A2 , A1 A3 , . . . , Ak−1 Ak is symmetric. In the special case where k 2, Theorem 21.13.1 can be restated as the following corollary. Corollary 21.13.2. If two n × n matrices A and B are simultaneously diagonalizable, then they commute, that is, BA AB. If two n × n symmetric matrices A and B commute (or, equivalently, if their product AB is symmetric), then they can be simultaneously diagonalized by an orthogonal matrix; that is, there exists an n × n orthogonal matrix P such that P AP D1 and P BP D2 for some diagonal matrices D1 and D2 .
562
21. Eigenvalues and Eigenvectors
21.14
Generalized Eigenvalue Problem
Let A represent an n × n symmetric matrix, and let B represent an n × n symmetric positive definite matrix. Then, according to Corollary 14.3.14, there exists an n×n nonsingular matrix Q such that the quadratic form x Bx (in an n × 1 vector x) is
n 2 expressible as the sum of squares i1 yi of the elements y1 , . . . , yn of the transformed vector y Q x. And, according to Corollary 14.3.6, there exists an n × n nonsingular matrix Q and n scalars d1
, . . . , dn such that the quadratic form x Ax is expressible as a linear combination ni1 di yi2 of the squares of the elements y1 , . . . , yn of the transformed vector y Q x. Can the same n × n nonsingular matrix Q be used to so express both x Bx and x Ax? Or, equivalently, does there exist an n × n nonsingular matrix Q such that B QQ and A QDQ for some diagonal matrix D? The answer is yes, as is shown in the following development. Let R represent any n × n nonsingular matrix such that B−1 R R. And let C RAR , and define P to be an n × n orthogonal matrix such that P CP D for some diagonal matrix D {di }. Now, take Q R−1 P. Then, QQ R−1 PP (R )−1 R−1 (R )−1 B ,
(14.1)
and QDQ R−1 PP CPP (R )−1 R−1 C(R )−1 R−1 RAR (R )−1 A . (14.2) In addition to establishing the existence of an n × n nonsingular matrix Q such that B QQ and A QDQ (for some diagonal matrix D), the preceding development suggests an indirect “strategy” for constructing such a matrix. This strategy comprises four steps: (1) construction of the n × n nonsingular matrix R (such that B−1 R R); (2) formation of the matrix C RAR ; (3) determination of the n × n orthogonal matrix P that diagonalizes C; and (4) formation of the matrix Q R−1 P. In connection with Step (3), note that the columns of the n × n orthogonal matrix P can be any n orthonormal eigenvectors of C. Let us now consider an alternative approach to the construction of an n × n nonsingular matrix Q such that B QQ and A QDQ (for some diagonal matrix D). In the alternative approach, the columns of the matrix (Q )−1 are taken to be orthonormal “generalized eigenvectors” of A, where the orthonormality of these vectors is with respect to an inner product other than the usual inner product. Let X (Q )−1 (where Q represents an arbitrary n × n nonsingular matrix), and let D {di } represent an arbitrary n × n diagonal matrix. Then, B QQ and A QDQ
⇔ BX Q and AX QD ⇔ BX Q and AX BXD ⇔ X BX I and AX BXD .
And, letting xi represent the ith column of X (i 1, . . . , n), % 1, for j i 1, . . . , n, X BX I ⇔ xj Bxi 0, for j i 1, . . . , n,
21.14 Generalized Eigenvalue Problem
563
and AX BXD ⇔ Axi di Bxi ,
for i 1, . . . , n .
Accordingly, the alternative approach to the construction of an n×n nonsingular matrix Q such that B QQ and A QDQ (for some diagonal matrix D) consists of finding n solutions (d1 , x1 ); . . . ; (dn , xn ) (for a scalar λ and an n × 1 vector x) to the equation Ax λBx
(14.3)
such that x1 , . . . , xn are orthogonal with respect to the inner product x By and of then taking (Q )−1 to be the matrix whose columns are x1 , . . . , xn . Various properties of the “x- and λ-parts” of solutions to equation (14.3) can be deduced by observing that Ax λBx ⇔ C(R−1 ) x λ(R−1 ) x
(14.4)
and that (for any n × 1 vectors x and y) x By [(R−1 ) x] (R−1 ) y .
(14.5)
Thus, a scalar λ and an n-dimensional vector x form a solution to equation (14.3) if and only if λ is an eigenvalue of C and (R−1 ) x is an eigenvector of C corresponding to λ. Further, an n-dimensional vector x has unit norm with respect to the inner product x By if and only if (R−1 ) x has unit norm with respect to the usual inner product. And two n-dimensional vectors x and y are orthogonal with respect to the inner product x By if and only if (R−1 ) x and (R−1 ) y are orthogonal with respect to the usual inner product. Recalling Theorem 21.4.5, we conclude in particular that x1 Bx2 0 for any two solutions (λ1 , x1 ) and (λ2 , x2 ) to equation (14.3) such that λ2 λ1 . Since Ax λBx ⇔ (A − λB)x 0 ,
(14.6)
Ax λBx for some n-dimensional vector x if and only if |A − λB| 0. The problem of finding the roots of |A − λB| (i.e., the solutions for λ to the equation |A − λB| 0) is called the generalized eigenvalue problem. Note that |A − λB| |R|−2 |C − λI| |B| |AB−1 − λI| |B| |B−1 A − λI| ,
(14.7)
so that the generalized eigenvalue problem is equivalent to the problem of finding the eigenvalues of the symmetric matrix C or of the not-necessarily-symmetric matrix AB−1 or B−1 A. Note also that, in the special case where B I, the generalized eigenvalue problem reduces to the problem of finding the eigenvalues of A.
564
21. Eigenvalues and Eigenvectors
21.15
Differentiation of Eigenvalues and Eigenvectors
The following lemma provides an appropriate context for our discussion of the differentiation of eigenvalues and eigenvectors. Lemma 21.15.1. Let F represent a p ×p symmetric matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Further, let c represent any interior point of S at which F is continuously differentiable. And, let λ∗ represent a simple eigenvalue of F(c) (i.e., an eigenvalue of multiplicity 1), and let u∗ (u∗1 , . . . , u∗p ) represent an eigenvector [of F(c)] with (usual) norm 1 corresponding to λ∗ . Then, for some neighborhood N of c, there exists a function λ (of x), defined on N, and a vector u (u1 , . . . , up ) of functions (of x), defined on N , with the following properties: (1) λ(c) λ∗ and u(c) u∗ ; (2) for x ∈ N, λ(x) is an eigenvalue of F(x), and u(x) is an eigenvector [of F(x)] with (usual) norm 1 corresponding to λ(x) [and the signs of the nonzero elements of u(x) are the same as those of the corresponding elements of u∗ ]; and (3) λ and u are continuously differentiable at c. Proof. Regarding (for the moment) λ and u as a variable and a vector of variables, define (for x ∈ S, λ ∈ R, and u ∈ Rp )
(F(x) − λI)u h(u, λ; x) . u u − 1 Further, let
J(u, λ; x)
∂h(u, λ; x) ∂h(u, λ; x) , ∂u ∂λ
.
And observe [in light of results (15.3.10) and (15.3.7)] that F(x) − λI −u J(u, λ; x) . 2u 0 Now, since λ∗ is a simple eigenvalue of F(c), rank [F(c) − λ∗ I] p − 1 . And, since [F(c) − λ∗ I] u∗ [F(c) − λ∗ I]u∗ 0, C(u∗ ) is (in light of Corollary 12.1.2) orthogonal to C[F(c)−λ∗ I], implying (in light of Lemma 17.1.9) that C(u∗ ) and C[F(c) − λ∗ I] are essentially disjoint and also (in light of Lemma 17.2.1) that R(u∗ ) and R[F(c) − λ∗ I] are essentially disjoint. Thus, making use of Theorem 17.2.19, we find that rank [J(u∗ , λ∗ ; c)]
Moreover,
rank [F(c) − λ∗ I] + rank(−u∗ ) + rank(2u∗ ) p−1+1+1p+1. h(u∗ , λ∗ ; c) 0 ,
and h is continuously differentiable at the point (u∗ , λ∗ ; c).
21.15 Differentiation of Eigenvalues and Eigenvectors
565
The upshot of these results is that the conditions of the implicit function theorem (e.g., Magnus and Neudecker 1988, thm. 7.A.2; Bartle 1976, p. 384) are satisfied. And it follows from this theorem that, for some neighborhood N ∗ of c, there exists a function λ (of x), defined on N ∗ , and a vector u (u1 , . . . , up ) of functions (of x), defined on N ∗ , with the following properties: (1) λ(c) λ∗ and u(c) u∗ ; (2) for x ∈ N ∗ , λ(x) is an eigenvalue of F(x), and u(x) is an eigenvector [of F(x)] with (usual) norm 1 corresponding to λ(x); and (3) λ and u are continuously differentiable at c. Moreover, in light of Lemma 15.1.1, the elements of u are continuous at c, so that there exists some neighborhood N of c (where N ⊂ N ∗ ) such that the signs of the nonzero elements of u(x) are the same as those of the corresponding elements of u∗ . Q.E.D. Let us now consider the differentiation of the functions λ, u1 , . . . , un described in Lemma 21.15.1. For x ∈ N, we have that Fu λu . Upon differentiating both sides of this equality with respect to xj , we find that (at x c) ∂F ∂u ∂λ ∂u + uλ + u (15.1) F ∂xj ∂xj ∂xj ∂xj (j 1, . . . , m). And, upon premultiplying both sides of equality (15.1) by u , we obtain ∂u ∂F ∂u ∂λ + u u λu + uu, u F ∂xj ∂xj ∂xj ∂xj or, equivalently [since u F (Fu) λu and u u 1], λu
∂u ∂F ∂u ∂λ + u u λu + . ∂xj ∂xj ∂xj ∂xj
And it follows that (at x c) ∂λ ∂F u u ∂xj ∂xj
(15.2)
(j 1, . . . , m). As a formula for the j th partial derivative of u, we have that (at x c) ∂u ∂F −H+ u, ∂xj ∂xj
(15.3)
where H F − λI. To verify formula (15.3), rewrite equality (15.1) as H
∂u ∂λ ∂F u− u. ∂xj ∂xj ∂xj
(15.4)
566
21. Eigenvalues and Eigenvectors
Premultiplying both sides of equality (15.4) by H+ , we obtain H+ H
∂u ∂λ + ∂F H u − H+ u. ∂xj ∂xj ∂xj
(15.5)
Since H+ H (H+ H) H(H+ ) HH+ and since [observing that Hu 0 and recalling (from Theorem 20.5.1) that N (H+ ) N (H)] H+ u 0, equality (15.5) can be rewritten as ∂u ∂F HH+ −H+ u. ∂xj ∂xj To complete the verification of formula (15.3), we need to show that (at x c) HH+ For this purpose, observe that
∂u ∂xj
∂u ∂u . ∂xj ∂xj
u + u
(15.6)
∂u 0 ∂xj
(as is clear upon differentiating both sides of the equality u u 1) and hence {since (∂u/∂xj ) u [(∂u/∂xj ) u] u (∂u/∂xj )} that u Thus,
∂u 0. ∂xj
∂u u H, 0 , ∂xj
implying that the p rows of the matrix (H, ∂u/∂xj ) are linearly dependent and hence that ∂u rank H, ≤p−1. (15.7) ∂xj Moreover, at x c,
∂u p − 1 rank(H) ≤ rank H, ∂xj
.
(15.8)
Together, results (15.7) and (15.8) imply that (at x c) ∂u rank H, rank(H) . ∂xj It follows (in light of Corollary 4.5.2) that ∂u/∂xj ∈ C(H), which (upon applying Corollary 9.3.6) gives result (15.6). Let us now consider formulas (15.2) and (15.3) in the special case where x is an [m(m + 1)/2]-dimensional column vector whose elements consist of those
21.16 An Equivalence (Involving Determinants and Polynomials)
567
elements of an m×m symmetric matrix X {xij } that lie on or below the diagonal and where F(x) X. Assume that S Rm(m+1)/2 (i.e., that there are no restrictions on X other than symmetry), observe that (in this special case) the interior points of S at which F is continuously differentiable consist of all of S, and let ej represent the j th column of Im . Then, upon substituting from result (15.5.6) or (15.5.7) into equality (15.2), we find that ∂λ u ei ei u u2i ∂xii and, for j < i, ∂λ u (ei ej + ej ei )u ui uj + uj ui 2ui uj . ∂xij Thus, % 2 ∂λ ui , 2ui uj , ∂xij
if j i , if j < i .
(15.9a) (15.9b)
Or, equivalently,
∂λ 2uu − diag(u21 , . . . , u2m ) . (15.10) ∂X Further, let gj represent the j th column of H+ and gij the ij th element of H+ . Then, upon substituting from result (15.5.6) or (15.5.7) into equality (15.3), we find that % ∂u if j i , (15.11a) −ui gi , −(u g + u g ) , if j < i . (15.11b) ∂xij j i i j And the sth element of the (m-dimensional) vector ∂u/∂xij is expressible as % ∂us −ui gsi , if j i , (15.12a) if j < i . (15.12b) −(uj gsi + ui gsj ) , ∂xij Further, letting xj (xj 1 , . . . , xj,j −1 , xjj , xj +1,j , . . . , xmj ) , ∂u −uj H+ − gj u + uj gj ej . ∂xj
21.16
(15.13)
An Equivalence (Involving Determinants and Polynomials)
The following theorem is of considerable importance in statistics (where it is used in establishing a fundamental result on the statistical independence of quadratic forms) — refer, for example, to Driscoll and Gundberg (1986) and Reid and Driscoll (1988).
568
21. Eigenvalues and Eigenvectors
Theorem 21.16.1. Let A and B represent n × n symmetric matrices, and let c and d represent (strictly) positive scalars. Then a necessary and sufficient condition for |I − tA − uB| |I − tA| |I − uB| (16.1) for all (scalars) t and u satisfying |t| < c and |u| < d (or, equivalently, for all t and u) is that AB 0. Proof. The sufficiency of the condition AB 0 is evident upon observing that |I − tA| |I − uB| |(I − tA)(I − uB)| |I − tA − uB + tuAB| . Now, for purposes of establishing the necessity of this condition, suppose that equality (16.1) holds for all t and u satisfying |t| < c and |u| < d. And let c∗ (≤ c) represent a positive scalar such that I − tA is positive definite whenever |t| < c∗ — the existence of such a scalar is guaranteed by Corollary 18.3.2 — and (for t satisfying |t| < c∗ ) let H (I − tA)−1 . If |t| < c∗ , then |I − uB| |I − uBH| and |I − (−u)B| |I − (−u)BH|, implying that |I − u2 B2 | |I − u2 (BH)2 | . (16.2) Since each side of equality (16.2) is a polynomial in u2 , we have that |I − rB2 | |I − r(BH)2 | for all r (and for t such that |t| < c∗ ) — refer to Theorem 21.A.5 (in the Appendix). Applying result (15.8.5), we find that (if |t| < c∗ ) −∂|I − rB2 | −∂|I − r(BH)2 | 2 tr(B ) tr[(BH)2 ] . ∂r ∂r r0 r0
Thus,
∂ 2 tr[(BH)2 ] ∂ 2 tr(B2 ) 0 (16.3) ∂t 2 ∂t 2 (for t such that |t| < c∗ ). And, using results (15.8.15), (15.9.2), (15.6.1), (15.4.8), and (5.2.3), we find that ∂H ∂ 2H HAH , 2HAHAH , ∂t ∂t 2
∂tr[(BH)2 ] ∂(BH)2 ∂H ∂H ∂H tr tr B BH + BHB 2tr BHB , ∂t ∂t ∂t ∂t ∂t and ∂ 2 tr[(BH)2 ] ∂t 2
∂H ∂H ∂ 2H 2tr B B + BHB 2 ∂t ∂t ∂t 2tr[BHAHBHAH + 2BHBHAHAH] .
(16.4)
21.16 An Equivalence (Involving Determinants and Polynomials)
569
Combining results (16.4) and (16.3) and setting t 0 gives 0
tr[(BA)2 ] + 2tr(B2 A2 ) tr[(BA)2 + B2 A2 ] + tr(B2 A2 ) tr[B(AB + BA)A] + tr(B2 A2 ) (1/2)tr[B(AB + BA)A] + (1/2)tr{[B(AB + BA)A] } + tr(BA2 B) (1/2)tr[(AB + BA)AB] + (1/2)tr[A(AB + BA) B] + tr(BA2 B) (1/2)tr[(AB + BA) AB] + (1/2)tr[(AB + BA) BA] + tr(BA2 B)
(1/2)tr[(AB + BA) (AB + BA)] + tr[(AB) AB] .
(16.5)
Both terms of expression (16.5) are nonnegative and hence equal to 0. Moreover, tr[(AB) AB] 0 implies that AB 0 — refer to Lemma 5.3.1. Q.E.D. In light of Theorem 18.3.1, we have the following variation on Theorem 21.16.1. Corollary 21.16.2. Let A and B represent n × n symmetric matrices. Then there exist (strictly) positive scalars c and d such that I − tA, I − uB, and I − tA − uB are positive definite for all (scalars) t and u satisfying |t| < c and |u| < d. And a necessary and sufficient condition for
|I − tA − uB| 0 log |I − tA| |I − uB| for all t and u satisfying |t| < c and |u| < d is that AB 0. The following theorem (which, like Theorem 21.16.1, can be useful in establishing results on the statistical independence of quadratic forms) generalizes Corollary 21.16.2. Theorem 21.16.3. Let A and B represent n × n symmetric matrices. Then there exist (strictly) positive scalars c and d such that I − tA, I − uB, and I − tA − uB are positive definite for all (scalars) t and u satisfying |t| < c and |u| < d. And letting h(t, u) represent a polynomial (in t and u), necessary and sufficient conditions for
h(t, u) |I − tA − uB| (16.6) log |I − tA| |I − uB| |I − tA| |I − uB| |I − tA − uB| for all t and u satisfying |t| < c and |u| < d are that AB 0 and that, for all t and u satisfying |t| < c and |u| < d (or, equivalently, for all t and u), h(t, u) 0. As a preliminary to proving Theorem 21.16.3, it is convenient to establish the following result on polynomials. Theorem 21.16.4. Let r1 (x), s1 (x), and s2 (x) represent polynomials in a real variable x. And, let r2 (x) γ (x − λ1 )m1 (x − λ2 )m2 · · · (x − λk )mk , where k is a nonnegative integer; m1 , m2 , . . . , mk are (strictly) positive integers; γ is a nonzero real number; and λ1 , λ2 , . . . , λk are real numbers. [When k 0, r2 (x) γ .] Suppose that
s1 (x) r1 (x) log (16.7) s2 (x) r2 (x)
570
21. Eigenvalues and Eigenvectors
for all x in some nondegenerate interval I [that does not include λ1 , λ2 , . . . , λk or any roots of s2 (x)]. Then there exists a real number α such that r1 (x) αr2 (x) for all x. Further, s1 (x) eα s2 (x) for all x. Proof (of Theorem 21.16.4). The proof makes considerable use of various basic properties of polynomials — refer to the Appendix for a review of the relevant properties. Assume (without loss of generality) that λ1 , λ2 , . . . , λk are distinct and that λ1 , λ2 , . . . , λk are not roots of r1 (x). [To see that the latter assumption can be made without loss of generality, suppose that λ1 were a root of r1 (x). Then, in light of Theorem 21.A.3, there would exist a polynomial p1 (x) such that r1 (x) (x − λ1 )p1 (x), so that, for x ∈ I , r1 (x)/r2 (x) p1 (x)/p2 (x), with p2 (x) γ (x − λ1 )m1 −1 (x − λ2 )m2 · · · (x − λk )mk . Moreover, to show that r1 (x) αr2 (x) for some α, it would suffice to show that p1 (x) αp2 (x) for some α. This process of canceling common factors could be continued until the right side of equality (16.7) were expressed as a ratio of two polynomials that have no common roots.] Assume also (again without loss of generality) that λi is not a root of both s1 (x) and s2 (x) (i 1, 2, . . . , k). Making frequent use of an abbreviated notation for polynomials (discussed in the Appendix) and letting r1∗ (x), r2∗ (x), s1∗ (x), and s2∗ (x) represent the derivatives of r1 (x), r2 (x), s1 (x), and s2 (x), respectively, we find [upon differentiating both sides of equality (16.7)] that r1∗ r2 − r1 r2∗ s ∗ s2 − s1 s2∗ 1 2 s1 s2 r2 for x ∈ I . And, in light of Theorem 21.A.5, it follows that (r1∗ r2 − r1 r2∗ )s1 s2 r22 (s1∗ s2 − s1 s2∗ )
(16.8)
for all x. We now come to the heart of the proof, which consists of showing that equality (16.8) implies that k 0 (i.e., that r2 ≡ γ ). Letting i represent an arbitrary one of the first m positive integers, we can rewrite r2 (x) as r2 (x) (x − λi )mi t(x) ,
$ where t(x) γ j i (x − λj )mj . Then, letting t ∗ (x) represent the derivative of t(x), we can rewrite equality (16.8) as [(x − λi )(r1∗ t − r1 t ∗ ) − mi r1 t](x − λi )mi −1 s1 s2 (x − λi )2mi t 2 (s1∗ s2 − s1 s2∗ ) , so that (for all x) [(x − λi )(r1∗ t − r1 t ∗ ) − mi r1 t]s1 s2 (x − λi )mi +1 t 2 (s1∗ s2 − s1 s2∗ ) .
(16.9)
Neither r1 nor t has λi as a root, implying that r1 t does not have λi as a root and hence that (x − λi )(r1∗ t − r1 t ∗ ) − mi r1 t
21.16 An Equivalence (Involving Determinants and Polynomials)
571
does not have λi as a root. Thus, in light of Theorem 21.A.4, s1 s2 (x − λi )mi +1 b for some polynomial b(x). By assumption, λi is not a root of both s1 and s2 , so that (x − λi )mi +1 is a factor of either s1 or s2 . Suppose that it is s1 that has λi as a root, so that s1 (x) (x − λi )mi +1 d(x) for some polynomial d(x). Then, letting d ∗ (x) represent the derivative of d(x), the right side of equality (16.9) can be rewritten as the polynomial (x − λi )mi +1 t 2 {[(mi + 1)(x − λi )mi d + (x − λi )mi +1 d ∗ ]s2 − (x − λi )mi +1 ds2∗ } , which has (x − λi )2mi +1 as a factor. It follows that (x − λi )2mi +1 is a factor of s1 s2 and hence of s1 . This argument can be repeated to establish that (x − λi )3mi +1 is a factor of s1 . Further repetition reveals that, for an arbitrarily large integer n, (x − λi )nmi +1 is a factor of s1 . Alternatively, if it is s2 (rather than s1 ) that has λi as a root, then we find that, for arbitrarily large n, (x − λi )nmi +1 is a factor of s2 . Thus, k 0, that is, r2 ≡ γ (since otherwise we arrive at a contradiction of the fact that s1 and s2 are polynomials of fixed degree). And, upon substituting γ for r2 in equality (16.8), we find that (for all x) γ r1∗ s1 s2 γ 2 (s1∗ s2 − s1 s2∗ ) .
(16.10)
Now, if r1 were not a constant and if (for x ∈ I ) s1 /s2 were of constant value, then (for x ∈ I ) the left side of equality (16.7) would be of constant value but the right side would not be of constant value. If r1 were not a constant and if (for x ∈ I ) s1 /s2 were not of constant value (in which case s1 or s2 is not a constant), then the degree of the polynomial that forms the left side of equality (16.10) would exceed the degree of the polynomial that forms the right side. In either case, we arrive at a contradiction. Thus, r1 is a constant; that is, r1 (x) τ for some real number τ , and hence r1 ≡ (τ/γ )r2 . Further, s1 ≡ exp(τ/γ )s2 [since, for x ∈ I , s1 /s2 exp(r1 /r2 ) exp(τ/γ )]. Q.E.D. Proof (of Theorem 21.16.3). The sufficiency of these conditions is an immediate consequence of Corollary 21.16.2 [as is the existence of positive scalars c and d such that I − tA, I − uB, and I − tA − uB are positive definite for all t and u satisfying |t| < c and |u| < d]. For purposes of establishing their necessity, take u to be an arbitrary scalar satisfying |u| < d, and observe (in light of Corollaries 14.2.11 and 14.3.13) that there exists an n × n nonsingular matrix S such that (I − uB)−1 S S. And let d1 , . . . , dr represent the nonzero (not necessarily distinct) eigenvalues of A and f1 , . . . , fr the nonzero (not necessarily distinct) eigenvalues of SAS . Then, according to Corollary 21.5.9, there exist n×n orthogonal matrices P and Q such that
572
21. Eigenvalues and Eigenvectors
P AP diag(d1 , . . . , dr , 0, . . . , 0) and Q SAS Q diag(f1 , . . . , fr , 0, . . . , 0). Thus, in light of result (13.3.9), we have that |I − tA| |P(I − tP AP)P |
|P| |diag(1 − td1 , . . . , 1 − tdr , 1, . . . , 1)| |P | r (1 − tdi ) i1
r i1
(−di )(t − di−1 )
and that |I − tA − uB|
|S−1 (S )−1 − tA|
|S−1 (I − tSAS )(S )−1 |
|S|−2 |I − tSAS |
|S|−2 |Q(I − tQ SAS Q)Q | |S|−2 |Q| |diag(1 − tf1 , . . . , 1 − tfr , 1, . . . , 1)| |Q | r r |S|−2 (1 − tfi ) |S|−2 (−fi )(t − fi−1 ) , i1
i1
so that (for fixed u) |I − tA − uB| and |I − tA| |I − uB| are polynomials in t. Further, |I − tA| |I − uB| |I − tA − uB| r |I − uB| |S|−2 di fi (t − di−1 )(t − fi−1 ) ,
(16.11)
i1
which (for fixed u) is a polynomial in t of degree 2r with roots d1−1 , . . . , dr−1 , f1−1 , . . . , fr−1 . Now, regarding u as fixed, suppose that equality (16.6) holds for all t satisfying |t| < c. Then, in light of equality (16.11), it follows from Theorem 21.16.4 that there exists a real number α such that, for all t, h(t, u) α|I − tA| |I − uB| |I − tA − uB| and
|I − tA − uB| eα |I − tA| |I − uB| .
(16.12)
[In applying Theorem 21.16.4, take x t, s1 (t) |I − tA − uB|, s2 (t) |I − tA| |I − uB|, r1 (t) h(t, u), and r2 (t) |I − tA| |I − uB| |I − tA − uB|.] Moreover, upon setting t 0 in equality (16.12), we find that |I − uB| eα |I − uB| , implying that eα 1 or, equivalently, that α 0. Thus, for all t, h(t, u) 0 and |I − tA − uB| |I − tA| |I − uB|.
Appendix
573
We conclude that if equality (16.6) holds for all t and u satisfying |t| < c and |u| < d, then h(t, u) 0 and |I − tA − uB| |I − tA| |I − uB| for all t and u satisfying |u| < d, implying (in light of Theorem 21.A.5) that h(t, u) 0 for all t and u and (in light of Theorem 21.16.1) that AB 0. Q.E.D.
Appendix: Some Properties of Polynomials (in a Single Variable) An expression of the form p(x) a0 + a1 x + a2 x 2 + · · · + an x n , where x is a real variable, n is a nonnegative integer, and the coefficients a0 , a1 , a2 , . . . , an are real numbers is referred to as a polynomial in x. The polynomial p(x) is said to be nonzero if one or more of the coefficients a0 , a1 , a2 , . . . , an is nonzero, in which case the largest nonnegative integer k such that ak 0 is referred to as the degree of p(x) and is denoted by the symbol deg[p(x)]. When it causes no confusion, p(x) may be abbreviated to p {and deg[p(x)] to deg(p)}. A polynomial q is said to be a factor of a polynomial p if there exists a polynomial r such that p ≡ qr. And, a real number c is said to be a root (or a zero) of a polynomial p if p(c) 0. The following three theorems give some basic properties of polynomials — refer, for example, to Beaumont and Pierce (1963) for proofs of these theorems, which are equivalent to their Theorems 9-3.3, 9-3.5, and 9-7.5. Theorem 21.A.1 (the division algorithm). Let p and q represent polynomials. Suppose that q is nonzero. Then, there exist unique polynomials b and r such that p ≡ bq + r, where either r ≡ 0 or else deg(r) < deg(q). Theorem 21.A.2. Let p(x) represent a nonzero polynomial (in x) of degree n. Then, for any real number c, p(x) has a unique representation of the form p(x) b0 + b1 (x − c) + b2 (x − c)2 + · · · + bn (x − c)n , where b0 , b1 , b2 , . . . , bn are real numbers. Theorem 21.A.3. A real number c is a root of a polynomial p(x) (in x) if and only if the polynomial x − c is a factor of p(x). The following two theorems give some additional properties of polynomials. Theorem 21.A.4. Let p(x), q(x), and r(x) represent polynomials (in x). And suppose that p(x)q(x) (x − c)m r(x) , (A.1) where m is a positive integer and where c is a real number that is not a root of p(x). Then, (x − c)m is a factor of q(x); that is, there exists a polynomial s(x) such that q(x) (x − c)m s(x) .
574
21. Eigenvalues and Eigenvectors
Proof. The proof consists of using mathematical induction to show that, for k 1, . . . , m, there exists a polynomial sk (x) such that q(x) (x − c)k sk (x). Clearly, c is a root of q(x). Thus, it follows from Theorem 21.A.3 that there exists a polynomial s1 (x) such that q(x) (x − c)1 s1 (x). Suppose now that there exists a polynomial sk−1 (x) (where 2 ≤ k ≤ m) such that q(x) (x − c)k−1 sk−1 (x) . (A.2) Then, substituting expression (A.2) into expression (A.1), we find that (x − c)k−1 p(x)sk−1 (x) (x − c)m r(x) , implying that
(A.3)
p(x)sk−1 (x) (x − c)m−k+1 r(x)
for x c and hence that p(c)sk−1 (c) lim p(x)sk−1 (x) lim (x − c)m−k+1 r(x) x→c
x→c
(c − c)m−k+1 r(c) 0 .
(A.4)
Equality (A.4) implies that c is a root of sk−1 (x). Thus, there exists a polynomial sk (x) such that (A.5) sk−1 (x) (x − c)sk (x) . And, substituting expression (A.5) into expression (A.2), we find that q(x) (x − c)k sk (x) , thereby completing the induction argument. Q.E.D. Theorem 21.A.5. Let p(x) and q(x) represent polynomials (in x). And suppose that p(x) q(x) for all x in some nondegenerate interval I . Then, p(x) q(x) for all x. Proof. Let c represent an interior point of I , and observe (in light of Theorem 21.A.2) that p(x) and q(x) are expressible as
a0 + a1 (x − c) + a2 (x − c)2 + · · · + an (x − c)n ,
q(x)
b0 + b1 (x − c) + b2 (x − c)2 + · · · + bn (x − c)n ,
p(x)
respectively, where n is a nonnegative integer [with n ≥ deg(p) and n ≥ deg(q)] and a0 , a1 , a2 , . . . , an and b0 , b1 , b2 , . . . bn are real numbers. And we find that for k 1, . . . , n, ∂ k p(x) ∂x k
∂ k q(x) ∂x k
n mk n mk
m(m − 1) · · · (m − k + 1)am (x − c)m−k , m(m − 1) · · · (m − k + 1)bm (x − c)m−k .
Exercises
575
Thus, b0 q(c) p(c) a0 , and, for k 1, . . . , n,
∂ k q(x) ∂ k p(x) k!ak . k!bk ∂x k xc ∂x k xc
We conclude that bk ak for k 0, 1, . . . , n and that p(x) q(x) for all x. Q.E.D.
Exercises Section 21.1 1. Show that an n × n skew-symmetric matrix A has no nonzero eigenvalues. 2. Let A represent an n × n matrix, B a k × k matrix, and X an n × k matrix such that AX XB. (a) Show that C(X) is an invariant subspace (of Rn×1 ) relative to A. (b) Show that if X is of full column rank, then every eigenvalue of B is an eigenvalue of A. 3. Let p(λ) represent the characteristic polynomial of an n × n matrix A, and let c0 , c1 , c2 , . . ., cn represent the respective coefficients of the characteristic polynomial, so that p(λ) c0 λ0 + c1 λ + c2 λ2 + · · · + cn λn
n
cs λ s
s0
(for λ ∈ R). Further, let P represent the n × n matrix obtained from p(λ) by formally replacing the scalar λ with the n × n matrix A (and by setting A0 In ). That is, let P c0 I + c1 A + c2 A2 + · · · + cn An
n
c s As .
s0
Show that P 0 (a result that is known as the Cayley-Hamilton theorem) by carrying out the following four steps. (a) Letting B(λ) A − λI and letting H(λ) represent the adjoint matrix of B(λ), show that (for λ ∈ R) H(λ) K0 + λK1 + λ2 K2 + · · · + λn−1 Kn−1 , where K0 , K1 , K2 , . . . , Kn−1 are n × n matrices (that do not vary with λ).
576
21. Eigenvalues and Eigenvectors
(b) Letting T0 AK0 , Tn −Kn−1 , and (for s 1, . . . , n − 1) Ts AKs − Ks−1 , show that (for λ ∈ R) T0 + λT1 + λ2 T2 + · · · + λn Tn p(λ)In . [Hint. It follows from Theorem 13.5.3 that (for λ ∈ R) B(λ)H(λ) |B(λ)|In p(λ)In .] (c) Show that, for s 0, 1, . . . , n, Ts cs I. (d) Show that P T0 + AT1 + A2 T2 + · · · + An Tn 0 . 4. Let c0 , c1 , . . . , cn−1 , cn represent the respective coefficients of the characteristic polynomial p(λ) of an n × n matrix A [so that p(λ) c0 + c1 λ + · · · + cn−1 λn−1 + cn λn (for λ ∈ R)]. Using the result of Exercise 3 (the CayleyHamilton theorem), show that if A is nonsingular, then c0 0, and A−1 −(1/c0 )(c1 I + c2 A + · · · + cn An−1 ) . Section 21.3 5. Show that if an n × n matrix B is similar to an n × n matrix A, then (1) Bk is similar to Ak (k 2, 3, . . .) and (2) B is similar to A . 6. Show that if an n × n matrix B is similar to an (n × n) idempotent matrix, then B is idempotent. 1 0 1 1 7. Let A and B . Show that B has the same rank, deter0 1 0 1 minant, trace, and characteristic polynomial as A, but that, nevertheless, B is not similar to A. 8. Expand on the result of Exercise 7 by showing (for an arbitrary positive integer n) that for an n×n matrix B to be similar to an n×n matrix A it is not sufficient for B to have the same rank, determinant, trace, and characteristic polynomial as A. 9. Let A represent an n × n matrix, B a k × k matrix, and X an n × k matrix such that AX XB. Show that if X is of full column rank, then there exists T11 T12 an orthogonal matrix Q such that Q AQ , where T11 is a k × k 0 T22 matrix that is similar to B. 10. Show that if 0 is an eigenvalue of an n × n matrix A, then its algebraic multiplicity is greater than or equal to n − rank(A). 11. Let A represent an n × n matrix. Show that if a scalar λ is an eigenvalue of A of algebraic multiplicity γ , then rank(A − λI) ≥ n − γ .
Exercises
577
12. Let γ1 represent the algebraic multiplicity and ν1 the geometric multiplicity of 0 when 0 is regarded as an eigenvalue of an n × n (singular) matrix A. And let γ2 represent the algebraic multiplicity and ν2 the geometric multiplicity of 0 when 0 is regarded as an eigenvalue of A2 . Show that if ν1 γ1 , then ν2 γ2 ν1 . Section 21.4 13. Let x1 and x2 represent eigenvectors of an n × n matrix A, and let c1 and c2 represent nonzero scalars. Under what circumstances is the vector x c1 x1 + c2 x2 an eigenvector of A? Section 21.5 14. Let A represent an n × n matrix, and suppose that there exists an n × n nonsingular matrix Q such that Q−1 AQ D for some diagonal matrix D {di }. Further, for i 1, . . . , n, let ri represent the ith row of Q−1 . Show (a) that A is diagonalized by (Q−1 ) , (b) that the diagonal elements of D are the (not necessarily distinct) eigenvalues of A , and (c) that r1 , . . . , rn are eigenvectors of A (with ri corresponding to the eigenvalue di ). 15. Show that if an n × n nonsingular matrix A is diagonalized by an n × n nonsingular matrix Q, then A−1 is also diagonalized by Q. 16. Let A represent an n × n matrix whose spectrum comprises k eigenvalues λ1 , . . . , λk with algebraic multiplicities γ1 , . . . , γk , respectively, that sum to n. Show that A is diagonalizable if and only if, for i 1, . . . , k, rank(A − λi I) n − γi . 17. Let A represent an n×n symmetric matrix with not-necessarily-distinct eigenvalues d1 , . . . , dn that have been ordered so that d1 ≤ d2 ≤ · · · ≤ dn . And let Q represent an n × n orthogonal matrix such that Q AQ diag(d1 , . . . , dn ) — the existence of which is guaranteed by Corollary 21.5.9. Further, for m 2, . . . , n − 1, define Sm {x ∈ Rn×1 : x 0, Qm x 0} and Tm {x ∈ Rn×1 : x 0, Pm x 0}, where Qm (q1 , . . . , qm−1 ) and Pm (qm+1 , . . . , qn ). Show that, for m 2, . . . , n − 1, dm min x∈Sm
x Ax x Ax max . x∈Tm x x x x
18. Let A represent an n × n symmetric matrix, and adopt the same notation as in Section 5f. (a) Show that the matrices E1 , . . . , Ek , which appear in the spectral decomposition (5.5) of A, have the following properties: (1) E1 + · · · + Ek I; (2) E1 , . . . , Ek are nonnull, symmetric, and idempotent; (3) for t j 1, . . . , k, Et Ej 0; and
578
21. Eigenvalues and Eigenvectors
(4) rank(E1 ) + · · · + rank(Ek ) n. (b) Take F1 , . . . , Fr to be n × n nonnull idempotent matrices such that F1 + · · · + Fr I. And suppose that, for some distinct scalars τ1 , . . . , τr , A τ1 F1 + · · · + τr Fr . Show that r k and that there exists a permutation t1 , . . . , tr of the first r positive integers such that (for j 1, . . . , r) τj λtj and Fj Etj . 19. Let A represent an n × n symmetric matrix, and let d1 , . . . , dn represent the (not necessarily distinct) eigenvalues of A. Show that limk→∞ Ak 0 if and only if, for i 1, . . . , k, |di | < 1. Section 21.7 20. (a) Show that if 0 is an eigenvalue of an n×n not-necessarily-symmetric matrix A, then it is also an eigenvalue of A+ and that the geometric multiplicity of 0 is the same when it is regarded as an eigenvalue of A+ as when it is regarded as an eigenvalue of A. (b) Show (via an example) that the reciprocals of the nonzero eigenvalues of a square nonsymmetric matrix A are not necessarily eigenvalues of A+ . Section 21.8 21. Show that, for any positive integer n that is divisible by 2, there exists an n × n orthogonal matrix that has no eigenvalues. [Hint. Find a 2 × 2 orthogonal matrix Q that has no eigenvalues, and then consider the block-diagonal matrix diag(Q, Q, . . . , Q).] 22. Let Q represent an n × n orthogonal matrix, and let p(λ) represent the characteristic polynomial of Q. Show that (for λ 0) p(λ) ±λn p(1/λ) . 23. Let A represent an n×n matrix, and suppose that the scalar 1 is an eigenvalue of A of geometric multiplicity ν. Show that ν ≤ rank(A) and that if ν rank(A), then A is idempotent. Section 21.10 24. Let A represent an n×n nonsingular matrix. And let λ represent an eigenvalue of A, and x represent an eigenvector of A corresponding to λ. Show that |A|/λ is an eigenvalue of adj(A) and that x is an eigenvector of adj(A) corresponding to |A|/λ.
Exercises
579
25. Let A represent an n × n matrix, and let p(λ) represent the characteristic polynomial of A. And let λ1 , . . . , λk represent the distinct eigenvalues of A, and γ1 , . . . , γk represent their respective algebraic multiplicities, so that (for all λ) k p(λ) (−1)n q(λ) (λ − λj )γj j 1
for some polynomial q(λ) (of degree n − kj 1 γj ) that has no real roots. Further, define B A − λ1 UV , where U (u1 , . . . , uγ1 ) is an n × γ1 matrix whose columns u1 , . . . , uγ1 are (not necessarily linearly independent) eigenvectors of A corresponding to λ1 and where V (v1 , . . . , vγ1 ) is an n × γ1 matrix such that V U is diagonal. (a) Show that the characteristic polynomial, say r(λ), of B is such that (for all λ)
r(λ) (−1)n q(λ)
γ1 i1
[λ − (1 − vi ui )λ1 ]
k
(λ − λj )γj .
(E.1)
j 2
[Hint. Since the left and right sides of equality (E.1) are polynomials (in λ), it suffices to show that they are equal for all λ other than λ1 , . . . , λk .]
(b) Show that in the special case where U V cI for some nonzero scalar c, the distinct eigenvalues of B are either λ2 , . . . , λs−1 , λs , λs+1 , . . . , λk with algebraic multiplicities γ2 , . . . , γs−1 , γs + γ1 , γs+1 , . . . , γk , respectively, or (1 − c)λ1 , λ2 , . . . , λk with algebraic multiplicities γ1 , γ2 , . . . , γk , respectively [depending on whether or not (1 − c)λ1 λs for some s (2 ≤ s ≤ k)].
(c) Show that, in the special case where γ1 1, (a) u1 is an eigenvector of B corresponding to the eigenvalue (1 − v1 u1 )λ1 and (b) for any eigenvector x of B corresponding to an eigenvalue λ [other than (1 − v1 u1 )λ1 ], the vector x − λ1 (λ1 − λ)−1 (v1 x)u1 is an eigenvector of A corresponding to λ.
580
21. Eigenvalues and Eigenvectors
Section 21.12 26. Let A represent an m × n matrix of rank r. And, take P to be any m × m orthogonal matrix and D1 to be any r × r nonsingular diagonal matrix such that 2 D1 0 P AA P . 0 0 Further, partition P as P (P1 , P2 ), where P1 has r columns, and let Q (Q1 , Q2 ), where Q1 A P1 D−1 1 and where Q2 is any n × (n − r) matrix such that Q1 Q2 0. Show that D1 0 P AQ . 0 0 27. Show that the matrices U1 , . . . , Uk , which appear in decomposition (12.7), are such that Uj Uj Uj Uj (for j 1, . . . , k) and Ut Uj 0 and Ut Uj 0 (for t j 1, . . . , k). 28. Let A represent an m × n matrix. And, as in Theorem 21.12.3, take P to be an m × m orthogonal matrix, Q an n × n orthogonal matrix, and D1 an r × r nonsingular diagonal matrix such that D1 0 P AQ . 0 0 Further, partition P and Q as P (P1 , P2 ) and Q (Q1 , Q2 ), where each of the matrices P1 and Q1 has r columns. Show that C(A) C(P1 ) and that N (A) C(Q2 ). Section 21.13 29. Let A1 , . . . , Ak represent n × n not-necessarily-symmetric matrices, each of which is diagonalizable. Show that if A1 , . . . , Ak commute in pairs, then A1 , . . . , Ak are simultaneously diagonalizable. 30. Let V represent an n × n symmetric nonnegative definite matrix, X an n × p matrix of rank r, and d a p × 1 vector. Using the results of Exercise 19.11 (or otherwise), show that each of the following three conditions is necessary and sufficient for the vector X(X X)− d to be a solution, for every d ∈ C(X ), to the problem of minimizing the quadratic form a Va (in a) subject to X a d: (a) there exists an orthogonal matrix that simultaneously diagonalizes V and PX ; (b) there exists a subset of r orthonormal eigenvectors of V that is a basis for C(X); (c) there exists a subset of r eigenvectors of V that is a basis for C(X).
Bibliographic and Supplementary Notes
581
Section 21.14 31. Let A represent an n × n symmetric matrix, and let B represent an n × n symmetric positive definite matrix. And let λmax and λmin represent, respectively, the largest and smallest roots of |A − λB|. Show that λmin ≤
x Ax ≤ λmax x Bx
for every nonnull vector x in Rn . 32. Let A represent an n × n symmetric matrix, and let B represent an n × n symmetric positive definite matrix. Show that A − B is nonnegative definite if and only if all n (not necessarily distinct) roots of |A − λB| are greater than or equal to 1 and is positive definite if and only if all n roots are (strictly) greater than 1.
Bibliographic and Supplementary Notes §15. The presentation in Section 15 was heavily influenced by that of Magnus and Neudecker (1988, sec. 8.8). For a more extensive discussion of the differentiation of eigenvalues and eigenvectors, reb r, for example, to Sections 8.7 – 8.12 of Magnus and Neudecker (and to the sources cited by them). Their coverage includes some results on the second-order differentiation of eigenvalues, on the differentiation of multiple eigenvalues, and on the differentiation of eigenvalues and eigenvectors of nonsymmetric matrices. §16. The proof of the result on polynomials given by Theorem 21.16.4 is that of Harville and Kempthorne (1997).
This page intentionally left blank
22 Linear Transformations
In more advanced presentations of the topics of Chapters 1 – 21, matrices typically play a subordinate role. In such presentations, the main results are in terms of something called a linear transformation, which is regarded as a more fundamental concept than that of a matrix. The emphasis on linear transformations results in an approach that is more abstract, more “elegant,” and more conducive to geometrical interpretation. It results in more generality in one sense, although not in another sense. It tends to appeal to the “mathematically more sophisticated,” who typically prefer “geometrical reasoning” to “algebraic arguments.” In the first part of the present (and final) chapter of the book, the concept of a linear transformation is formally introduced, and a number of results on linear transformations are derived from first principles (i.e., “independently” of matrices). And, in the latter parts of the chapter, it is shown that linear transformations can be put into 1–1 correspondence with matrices, and then, based on this correspondence, various results and terminology pertaining to matrices are extended to linear transformations.
22.1
Some Definitions, Terminology, and Basic Results
A transformation (also known as a function, operator, map, or mapping) T from a set V (consisting of scalars, row or column vectors, matrices, or other “objects”) into a set W is a correspondence that assigns to each member X of V a unique member of W. This unique member of W is denoted by the symbol T (X) and is referred to as the image of X. The use of the term “into” (in the definition of T ) alludes to the possibility that some members of W may not appear as the image
584
22. Linear Transformations
of any member of V. The set V is called the domain of T . And the set {Y ∈ W : Y T (X) for some X ∈ V}, consisting of every member of W that appears as the image of one or more members of V, is called the range of T . In the event that the range of T consists of all of W, T is said to be onto and may be referred to as a transformation from V onto W. If each member of the range of T appears as the image of only one member of V, T is referred to as a 1–1 (one to one) transformation. Corresponding to any m × n matrix A is the transformation T from Rn×1 into m×1 that assigns to each n × 1 vector x the m × 1 vector Ax. Clearly, the range of R T equals C(A). Further, T is onto if and only if A is of full row rank, that is, if and only if rank(A) m. And, T is 1–1 if and only if the columns of A are linearly independent, that is, if and only if rank(A) n. In what follows, the emphasis is on linear transformations. Let T represent a transformation from a linear space V (of m × n matrices) into a linear space W (of p × q matrices). Then, T is said to be linear if it satisfies the following two conditions: (1) for all X and Z in V, T (X + Z) T (X) + T (Z); and (2) for every scalar c and for all X in V, T (cX) cT (X). It is easy to verify that T is linear if and only if, for all scalars c and k and for all X and Z in V, T (cX + kZ) cT (X) + kT (Z) . More generally, letting r represent a positive integer (greater than 1), T is linear if and only if, for all scalars c1 , . . . , cr and for all X1 , . . . Xr in V, r r c i Xi ci T (Xi ) . (1.1) T i1
i1
Clearly, for any m × n matrix A, the transformation from the linear space Rn×1 into the linear space Rm×1 that assigns to each n × 1 vector x the m × 1 vector Ax is a linear transformation. More generally, for any r × p matrix A and any q × s matrix B, the transformation from the linear space Rp×q into the linear space Rr×s that assigns to each p × q matrix X the r × s matrix AXB is a linear transformation (as is easily verified). Let T represent a transformation from a set V into a set W. Then corresponding to any subset U of Vis the subset {Y ∈ W : Y T (X) for some X ∈ U}, consisting of every member of W that appears as the image of one or more members of U. This subset is denoted by the symbol T (U) and is referred to as the image of the set U. Note that, by definition, the image T (V) of the domain V of T is the range of T . Now, suppose that T is a linear transformation from a linear space V into a linear space W and that U is a subspace of V. Then, for any matrices X1 , . . . , Xr that span U, T (U) sp[T (X1 ), . . . , T (Xr )],
22.1 Some Definitions, Terminology, and Basic Results
585
as is evident from result (1.1). Thus, T (U) is a linear space; it is a subspace of W. In particular, the range T (V) of T is a subspace of W and, accordingly, may be referred to as the range space of T . A linear transformation T from a linear space V of m × n matrices into a linear space W of p × q matrices has the property that T (0) T (00) 0T (0) 0. Thus, T assigns the (p × q) null matrix in W to the (m × n) null matrix in V. The linear transformation T may also assign the null matrix in W to various nonnull matrices in V. The set {X ∈ V : T (X) 0} , (1.2) comprising all matrices in V to which T assigns the null matrix, is nonempty. Moreover, for any matrices X and Z in the set (1.2) and for any scalar c, T (X+Z) T (X) + T (Z) 0 + 0 0 and T (cX) cT (X) c0 0, so that X + Z and cX are in the set (1.2). Thus, the set (1.2) is a linear space; it is a subspace of V. This subspace is called the null space (or the kernel) of the linear transformation T and is denoted by the symbol N (T ). There is a simple and fundamental relationship between the range and null spaces of a linear transformation. This relationship is described in the following theorem. Theorem 22.1.1. Let T represent a linear transformation from a linear space V into a linear space W. Then, dim(V) dim(M) + dim(N ) ,
(1.3)
where M and N are, respectively, the range and null spaces of T . Proof. Let k dim(V) and s dim(N ). Further, let r k −s. And assume that r > 0 — if r 0, then (in light of Theorem 4.3.10) V N , in which case M {0} and equality (1.3) is clearly valid — and take {Z1 , . . . Zs } to be a basis for N — if s 0, interpret {Z1 , . . . , Zs } as the empty set. Then, it follows from Theorem 4.3.12 that there exist matrices X1 , . . . , Xr in V such that {X1 , . . . , Xr , Z1 , . . . , Zs } is a basis for V — if s 0, interpret {X1 , . . . , Xr , Z1 , . . . Zs } as {X1 , . . . , Xr }. Now, for i 1, . . . , r, let Yi T (Xi ) (and observe that Yi ∈ M). To prove Theorem 22.1.1, it suffices to show that {Y1 , . . . , Yr } is a basis for M. Let us begin by showing that this set spans M. Let Y represent an arbitrary matrix in M. Then there exists a matrix X in V such that Y T (X). Further, if s > 0, there exist scalars a1 , . . . , ar , b1 , . . . , bs such that r s a i Xi + b j Zj , X i1
j 1
in which case Y T (X)
r i1
ai T (Xi ) +
s j 1
bj T (Zj )
r i1
ai T (Xi )
r i1
a i Yi .
586
22. Linear Transformations
Alternatively, if s 0, there exist scalars a1 , . . . , ar such that X which case r r Y T (X) ai T (Xi ) a i Yi . i1
r
i1
ai Xi , in
i1
Thus, whether s > 0 or s 0, M ⊂ sp(Y1 , . . . , Yr ), and, consequently, {Y1 , . . . , Yr } spans M. It remains to show that {Y1
, . . . , Yr } is linearly independent.
Let c1 , . . . , cr represent any scalars such that ri1 ci Yi 0. And define Z ri1 ci Xi . Then, we have that T (Z) T (
r i1
c i Xi )
r i1
ci T (Xi )
r
c i Yi 0 ,
i1
implying
that Z belongs to N . Thus, if s > 0, there exist scalars d1 , . . . , ds such that Z sj 1 dj Zj , in which case c 1 X 1 + · · · + c r X r − d 1 Z1 − · · · − d s Zs Z − Z 0 , and (since {X1 , . . . , Xr , Z1 , . . . , Zs } is a basis for V and hence is linearly independent) it follows that c1 · · · cr 0 (and that d1 · · · ds 0). Alternatively, if s 0, then Z 0, and (since {X1 , . . . , Xr } is linearly independent), it follows that c1 · · · cr 0. In either case, we conclude that {Y1 , . . . , Yr } is linearly independent (and hence is a basis for M). Q.E.D. In connection with Theorem 22.1.1, equality (1.3) can be rewritten to give the following expressions for dim(M) and dim(N ): dim(M) dim(V) − dim(N ) ,
(1.4)
dim(N ) dim(V) − dim(M) .
(1.5)
Moreover, as an immediate consequence of Theorem 22.1.1, we have the following corollary. Corollary 22.1.2. For any linear transformation T from a linear space V into a linear space W, the dimension of the range space of T is less than or equal to dim(V), that is, less than or equal to the dimension of the domain of T . One very basic transformation is the transformation from a linear space V into a linear space W that assigns to every matrix in V the null matrix (in W). This transformation is called the zero transformation and is denoted by the symbol 0. Clearly, the zero transformation is linear. Further, its range space is the set whose only member is the null matrix, and its null space equals its domain V. Another very basic transformation is the identity transformation. The identity transformation is the transformation from a linear space V into (the same linear space) V defined by T (X) X; it is denoted by the symbol I . The identity transformation is linear (as is readily apparent). Further, it is onto; that is, its range space equals V. And, clearly, it is 1–1, implying in particular that its null space is the set whose only member is the null matrix.
22.1 Some Definitions, Terminology, and Basic Results
587
Let T represent a linear transformation from a linear space V into a linear space W, and let U represent any subspace of V. Then, the transformation, say R, from U into W defined by R(X) T (X) (which assigns to each matrix in U the same matrix in W assigned by T ) is called the restriction of T to U. Clearly, the restriction of T to U is a linear transformation. Further, its range space equals T (U), and its null space equals U ∩ N (T ). And if T is 1–1, then so is the restriction of T to U. The following four lemmas give some basic results on linear transformations. Lemma 22.1.3. Let T represent a linear transformation from a linear space V into a linear space W. Then T is 1–1 if and only if N (T ) {0} [i.e., if and only if N (T ) contains no nonnull matrices]. Proof. Suppose that T is 1–1. Then, since the image of the null matrix (in V) is the null matrix (in W), V cannot contain any other matrix (i.e., any nonnull matrix) whose image is the null matrix. Thus, N (T ) contains no nonnull matrices. Conversely, suppose that N (T ) contains no nonnull matrices. Then, for any matrices Z and X in V for which T (Z) T (X), we have that T (Z − X) T (Z) − T (X) 0, implying that Z − X ∈ N (T) and hence that Z − X 0 or, equivalently, Z X. Thus, T is 1–1. Q.E.D. Lemma 22.1.4. Let T represent a linear transformation from a linear space V into a linear space W. And let X1 , . . . , Xk represent matrices in V. If X1 , . . . , Xk are linearly dependent, then their images T (X1 ), . . . ,T(Xk ) are also linearly dependent. Proof. Suppose that X1 , . . . , Xk are linearly dependent.
Then there exist scalars c1 , . . . , ck , one or more of which is nonzero, such that ki1 ci Xi 0. And, k k ci T (Xi ) T ci Xi T (0) 0 . i1
i1
Q.E.D. Thus, T (X1 ), . . . , T (Xk ) are linearly dependent. Lemma 22.1.5. Let T represent a 1–1 linear transformation from a linear space V into a linear space W. And let X1 , . . . , Xk represent matrices in V. Then T (X1 ), . . . , T (Xk ) are linearly independent if and only if X1 , . . . , Xk are linearly independent. Proof. It suffices to show that T (X1 ), . . . , T (Xk ) are linearly dependent if and only if X1 , . . . , Xk are linearly dependent. That T (X1 ), . . . , T (Xk ) are linearly dependent if X1 , . . . , Xk are linearly dependent is an immediate consequence of Lemma 22.1.4. Now, suppose that T (X1 ), . . . , T (Xk ) are linearly dependent.
Then there exist scalars c1 , . . . , ck , one or more of which is nonzero, such that ki1 ci T (Xi ) 0.
Further, T ( ki1 ci Xi ) ki1 ci T (Xi ) 0. And, it follows from Lemma 22.1.3
k Q.E.D. that i1 ci Xi 0. Thus, X1 , . . . , Xk are linearly dependent. Lemma 22.1.6. Let T represent a linear transformation from V into W, where V and W are linear spaces of the same dimension. Then, T is 1–1 if and only if T (V) W (i.e., if and only if T is onto). Proof. According to Lemma 22.1.3, T is 1–1 if and only if N (T ) {0} or,
588
22. Linear Transformations
equivalently, if and only if dim[N (T )] 0. Moreover, according to Theorem 22.1.1, dim[N (T )] dim(V) − dim[T (V)] . Thus, T is 1–1 if and only if dim(V) − dim[T (V)] 0 or, equivalently, if and only if dim[T (V)] dim(V). And, since dim(V) dim(W), T is 1–1 if and only if dim[T (V)] dim(W). It is now clear that if T (V) W, then T is 1–1. And, conversely, if T is 1–1, then [since T (V) ⊂ W] we have [in light of Theorem 4.3.10] that T (V) W. Q.E.D. As a special case of Lemma 22.1.6, we have the following corollary. Corollary 22.1.7. Let T represent a linear transformation from V into V. Then T is 1–1 if and only if T (V) V (i.e., if and only if T is onto). The following lemma is sometimes useful. Lemma 22.1.8. Let V and W represent linear spaces. And, denoting dim(V) by r (and supposing that r > 0), let {X1 , . . . , Xr } represent a basis for V, and Y1 , . . . , Yr represent any r (not necessarily distinct) matrices in W. Then the transformation T (from V into W) defined by T (X)
r
ci Yi ,
i1
where c1 , . . . , cr are the (unique) scalars that satisfy X ri1 ci Xi , is linear. And, T (V) sp(Y1 , . . . , Yr ). Moreover, T is 1–1 if and only if Y1 , . . . , Yr are linearly independent. Proof. Letting k represent an arbitrary scalar, letting X and Z represent arbitrary matrices in V, taking c1 , . . . ,
cr and d1 , . . . , dr to be the (unique)
and
r scalars that r r satisfy X c X and Z d X , we find that kX i1 i i i1 (kci )Xi and
i1 i i X + Z ri1 (ci + di )Xi and hence that T (kX)
r
(kci )Yi k
i1
r
ci Yi kT (X)
i1
and T (X + Z)
r i1
(ci + di )Yi
r i1
c i Y+
r
di Yi T (X) + T (Z) .
i1
Thus, T is linear. To verify that T (V) sp(Y1 , . . . , Yr ), let Y represent any
matrix in r sp(Y1 , . .
. , Yr ). Then, there exist scalars c , . . . , c such that Y 1 r i1 ci Yi .
r r Clearly, i1 ci Xi ∈ V and T ( i1 ci Xi ) Y, implying that Y ∈ T (V). Thus, sp(Y1 , . . . , Yr ) ⊂ T (V), and [since obviously T (V) ⊂ sp(Y1 , . . . Yr )] it follows that T (V) sp(Y1 , . . . , Yr ). To prove the final part of the lemma, observe
(in light of Lemma 22.1.3) that T is 1–1 if and only if N (T ) {0} and (since ri1 ci Xi 0 ⇔ c1
· · · cr 0) that N (T ) {0} if and only if the only scalars c1 , . . . , cr for which ri1 ci Yi 0
22.2 Scalar Multiples, Sums, and Products of Linear Transformations
589
are c1 · · · cr 0. Thus, T is 1–1 if and only if Y1 , . . . , Yr are linearly independent. Q.E.D. Let S and T represent transformations from a set V into a set W. If S(X) T (X) for every member X of V, S and T are said to be equal (or identical), and we may write S T . The following lemma gives a necessary and sufficient condition for two linear transformations to be equal. Lemma 22.1.9. Let S and T represent linear transformations from a linear space V into a linear space W. And let X1 , . . . , Xr represent any matrices (in V) that form a basis for V or, more generally, any matrices such that sp(X1 , . . . , Xr ) V. Then (supposing that r > 0) S T if and only if, for i 1, . . . , r, S(Xi ) T (Xi ). Proof. That S(Xi ) T (Xi ) (for i 1, . . . , r) if S T is obvious. Now, suppose that, for i 1, . . . , r, S(Xi ) T (Xi ). And let X represent an
arbitrary matrix in V. Then there exist scalars c1 , . . . , cr such that X ri1 ci Xi . Further, r r r r S(X) S ci X i ci S(Xi ) ci T (Xi ) T ( ci Xi ) T (X) . i1
i1
i1
Thus, S T .
22.2
i1
Q.E.D.
Scalar Multiples, Sums, and Products of Linear Transformations
a. Scalar multiples Let T represent a transformation from a linear space V into a linear space W, and let k represent an arbitrary scalar. Then the transformation from V into W that assigns to each matrix X in V the matrix kT (X) (in W) is referred to as a scalar multiple of T and is denoted by the symbol (kT ) or (in the absence of ambiguity) kT . Thus, (kT )(X) kT (X). If the transformation T is linear, then the scalar multiple kT is also linear, as is easily verified. Clearly, 1T T , (2.1) and, letting c (like k) represent a scalar, we find that c(kT ) (ck)T (kc)T k(cT ) .
(2.2)
In the special case where k 0 or T 0, the scalar multiple kT reduces to the zero transformation (from V into W). That is, 0T 0, and k0 0. Further, it is customary to refer to the scalar multiple (−1)T as the negative of T and to abbreviate (−1)T to (−T ) or −T .
590
22. Linear Transformations
b. Sums Let T and S represent transformations from a linear space V into a linear space W. Then, the transformation from V into W that assigns to each matrix X in V the matrix T (X)+S(X) (in W) is referred to as the sum of T and S and is denoted by the symbol (T + S) or T + S. Thus, (T + S)(X) T (X) + S(X). If the transformations T and S are both linear, then their sum T + S is also linear, as is easily verified. The addition of transformations is commutative, that is, T +S S+T .
(2.3)
The addition of transformations is also associative, that is, taking R to be a third transformation from V into W, T + (S + R) (T + S) + R .
(2.4)
The symbol (T + S + R) or T + S + R is used to represent the (common) transformation given by the left and right sides of equality (2.4), and this transformation is referred to as the sum of T , S, and R. This notation and terminology extend in an obvious way to any finite number of transformations from V into W. We find (via a straightforward exercise) that, for any scalar c, c(T + S) (cT ) + (cS)
(2.5)
and that, for any scalars c and k, (c + k)T (cT ) + (kT ) .
(2.6)
Let us write (T − S) or T − S for the sum T + (−S) or, equivalently, for the transformation (from V into W) that assigns to each matrix X in V the matrix T (X) − S(X) (in W). And, let us refer to this transformation as the difference between T and S. Clearly, T −T 0. (2.7) Further, T +00+T T .
(2.8)
c. Products Let S represent a transformation from a linear space U into a linear space V, and let T represent a transformation from V into a linear space W. Consider the transformation from U into W that assigns to each matrix X in U the matrix T [S(X)] (in W) obtained by applying S to X and then applying T to S(X). This transformation is called the product (or the composition) of T and S and is denoted by the symbol (T S) or T S. Thus, (T S)(X) T [S(X)]. If the transformations T and S are both linear, then their product T S is also linear, as is easily verified.
22.2 Scalar Multiples, Sums, and Products of Linear Transformations
591
Let R represent a transformation from a linear space M into a linear space U, S a transformation from U into a linear space V, and T a transformation from V into a linear space W. Then, for any matrix X in M, (T (SR))(X) T [(SR)(X)] T {S[R(X)]} (T S)[R(X)] ((T S)R)(X) . Thus, T (SR) (T S)R .
(2.9)
The symbol (T SR) or T SR is used to represent the (common) transformation given by the left and right sides of equality (2.9), and this transformation is referred to as the product of T , S, and R — if the transformations R, S, and T are all linear, then clearly the transformation T SR is also linear. This terminology and notation extend in an obvious way to an arbitrary number of transformations. Now, let R and S represent linear transformations from a linear space U into a linear space V, and let T represent a linear transformation from V into a linear space W. Then, for any matrix X in U, (T (S + R))(X) T [(S + R)(X)] T [S(X) + R(X)] T [S(X)] + T [R(X)]
(T S)(X) + (T R)(X) .
Thus, T (S + R) (T S) + (T R) .
(2.10)
[And, the transformation T (S + R) (like R, S, and T ) is linear.] Alternatively, suppose that R is a linear transformation from a linear space U into a linear space V and that S and T are linear transformations from V into a linear space W. Then, employing an argument similar to that used to establish equality (2.10), we find that (T + S)R (T R) + (SR) .
(2.11)
[And, the transformation (T + S)R is linear.] Result (2.10) extends in an obvious way to the product of the linear transformation T (from V into W) and the sum of an arbitrary number of linear transformations (from U into V). Similarly, result (2.11) extends in an obvious way to the product of the sum of an arbitrary number of linear transformations (from V into W) and the linear transformation R (from U into V). For any transformation S from a linear space U into a linear space V and any transformation T from V into a linear space W, and for any scalar k, k(T S) (kT )S T (kS) ,
(2.12)
as is easily verified. The symbol kT S may be used to represent transformation (2.12). (Further, if the transformations S and T are linear, then so is the transformation kT S.)
592
22. Linear Transformations
For any transformation T from a linear space V into a linear space W, T I IT T , T 0 0,
0T 0
(2.13) (2.14)
(where, depending on the context, I is the identity transformation from V onto V or from W onto W, and 0 is the zero transformation from a linear space U into V or W or from W or V into U). The following theorem gives a basic result on the product of two linear transformations. Theorem 22.2.1. Let S represent a linear transformation from a linear space U into a linear space V, and let T represent a linear transformation from V into a linear space W. Then, dim(MT S ) dim(MS ) − dim(MS ∩ NT ) ,
(2.15)
where MS and MT S are the range spaces of S and T S, respectively, and NT is the null space of T . Proof. Let R represent the restriction of T to MS . And denote the range space and the null space of R by MR and NR , respectively. According to Theorem 22.1.1, dim(MR ) dim(MS ) − dim(NR ) . Moreover, it follows from the discussion (of restrictions) in Section 22.1 that MR T (MS ) T [S(U)] T S(U) MT S and NR MS ∩ NT . Thus, dim(MT S ) dim(MS ) − dim(MS ∩ NT ) . Q.E.D. As an immediate consequence of Theorem 22.2.1, we have the following corollary. Corollary 22.2.2. Let S represent a linear transformation from a linear space U into a linear space V, and let T represent a linear transformation from V into a linear space W. Then, dim(MT S ) ≤ dim(MS ) , (2.16) where MT S and MS are the range spaces of T S and S, respectively.
22.3
Inverse Transformations and Isomorphic Linear Spaces
Let T represent a transformation from a linear space V into a linear space W. Suppose that T is 1–1 and onto. Then T is said to be invertible. And there exists
22.3 Inverse Transformations and Isomorphic Linear Spaces
593
a (unique) transformation from W into V that assigns to each matrix Y in W the (unique) matrix X (in V) such that T (X) Y. This transformation is called the inverse of T and is denoted by the symbol T −1 . Thus, T −1 (Y) X [where X is such that T (X) Y]. The inverse transformation T −1 is 1–1 and onto, as can be easily verified. Moreover, if T is linear, then so is T −1 . To see this, suppose that T is linear. Then, letting c represent an arbitrary scalar, letting Y and Z represent arbitrary matrices in W, and letting X and U represent the (unique) matrices (in V) such that T (X) Y and T (U) Z, we find that T (cX) cT (X) cY and T (X + U) T (X) + T (U) Y + Z, so that T −1 (cY) cX cT −1 (Y) and
T −1 (Y + Z) X + U T −1 (Y) + T −1 (Z) .
And it follows that T −1 is linear. For any matrix X in V, we have that (T −1 T )(X) T −1 [T (X)] X I (X) (where the identity transformation I is that from V onto V). Thus, T −1 T I .
(3.1)
The inverse transformation T −1 is itself invertible (since it is 1–1 and onto). Moreover, upon applying result (3.1) (with T −1 in place of T ), we find that (T −1 )−1 T −1 I
(3.2)
(where the identity transformation I is that from W onto W). It follows that (T −1 )−1 (T −1 )−1 I (T −1 )−1 (T −1 T ) ((T −1 )−1 T −1 )T I T T . Thus, T is the inverse of T −1 . Result (3.2) can be restated as T T −1 I .
(3.3)
Let V and W represent linear spaces. If there exists a 1–1 linear transformation, say T , from V onto W, then V and W are said to be isomorphic, and T is said to be an isomorphism of V onto W. Note that the identity transformation I from a linear space V onto V is an isomorphism (from V onto V) and hence that any linear space is isomorphic to itself. Note also that I is invertible and that I −1 I . The following theorem gives a necessary and sufficient condition for two linear spaces to be isomorphic.
594
22. Linear Transformations
Theorem 22.3.1. Two linear spaces V and W are isomorphic if and only if dim(V) dim(W). Proof. Suppose that dim(V) dim(W) r for some integer r. And suppose that r > 0 — if r 0, we have that V {0} and W {0}, and these two linear spaces are clearly isomorphic. Then, there exist r linearly independent matrices Y1 , . . . , Yr in W (consisting of any r matrices that form a basis for W), and it follows from Lemma 22.1.8 that there exists a 1–1 linear transformation from V onto W. Thus, V and W are isomorphic. Conversely, suppose that V and W are isomorphic. Then, by definition, there exists an isomorphism, say T , of V onto W. And, since (according to Lemma 22.1.3) N (T ) {0}, it follows from Theorem 22.1.1 that dim(V) dim[T (V)] + dim[N (T )] dim(W) + 0 dim(W) . Q.E.D. As an immediate consequence of Theorem 22.3.1, we have the following corollary. Corollary 22.3.2. Every n-dimensional linear space is isomorphic to Rn . Let W represent an n-dimensional linear space, and let B represent a set of matrices Y1 , . . . , Yn (in W) that form a basis for W. Subsequently, the symbol LB is used to represent the transformation from Rn×1 into W that assigns to each vector x (x1 , . . . , xn ) in Rn×1 the matrix x1 Y1 + · · · + xn Yn in W. Clearly, LB is 1–1 and onto (and hence invertible) and is linear, so that LB is an isomorphism of Rn onto W. Note that the inverse L−1 B of LB is the (linear) transformation that assigns to each matrix Y in W the column vector x in Rn whose elements (x1 , . . . , xn , respectively) are (uniquely) determined by the condition Y x1 Y1 + · · · + xn Yn ; that is, whose elements are the coefficients of the basis matrices Y1 , . . . , Yn when Y is expressed as a linear combination of those matrices. For i 1, . . . , m and j 1, . . . , n, let Uij represent that m × n matrix whose ij th element equals 1 and whose remaining mn − 1 elements equal 0. Then, the set, say B, whose members are, respectively, the mn matrices U11 , U21 , . . . , Um1 , . . . , U1n , U2n , . . . , Umn , is a basis for Rm×n . It is easy to see that, for any m × n matrix A, L−1 B (A) vec(A) .
(3.4)
Similarly, for i 1, . . . , n, let U∗ii represent the n×n matrix whose ith diagonal element equals 1 and whose remaining n2 − 1 elements equal 0. And, for j < i 1, . . . , n, let U∗ij represent the n × n matrix whose ij th and j ith elements equal 1 and whose remaining n2 − 2 elements equal 0. Then, the set, say B ∗ , whose members are, respectively, the n(n + 1)/2 matrices U∗11 , U∗21 , . . . , U∗n1 , . . . , U∗ii , U∗i+1,i , . . . , U∗ni , . . . , U∗nn is a basis for the linear space of all n × n symmetric matrices. Clearly, for any n × n symmetric matrix A, L−1 B ∗ (A) vech(A) .
(3.5)
22.4 Matrix Representation of a Linear Transformation
22.4
595
Matrix Representation of a Linear Transformation
a. Background, definition, and some basic properties Any linear transformation T from an n-dimensional linear space V into an mdimensional linear space W can be replaced by a linear transformation from Rn×1 into Rm×1 . Let B represent a set of matrices V1 , . . . , Vn (in V) that form a basis for V, and let C represent a set of matrices W1 , . . . , Wm (in W) that form a basis for W. And, adopting the notation introduced in Section 3, consider the product −1 L−1 C T LB of the three linear transformations LC , T , and LB . For any n × 1 vector x and any m × 1 vector y, (L−1 C T LB )(x) y ⇔ T [LB (x)] LC (y) ,
(4.1)
as is evident upon observing that −1 −1 (L−1 C T LB )(x) (LC (T LB ))(x) LC [(T LB )(x)]
and T [LB (x)] (T LB )(x) and hence that result (4.1) can be reexpressed as L−1 C [(T LB )(x)] y ⇔ (T LB )(x) LC (y). And, for any matrix Z in V and any matrix Y in W, −1 −1 T (Z) Y ⇔ (L−1 C T LB )[LB (Z)] LC (Y) ,
(4.2)
−1 as is evident from result (4.1) upon setting x L−1 B (Z) and y LC (Y). It is now clear that the linear transformation T from V into W can be replaced n×1 by the transformation L−1 into C T LB , which is a linear transformation from R m×1 R . While T transforms each matrix Z in V into a matrix T (Z) in W, L−1 C T LB transforms the n-dimensional column vector x (x1 , . . . , xn ) , whose elements are the coefficients of the basis matrices V1 , . . . , Vn in the representation Z x1 V1 +· · ·+xn Vn , into the m-dimensional column vector y (y1 , . . . , ym ) , whose elements are the coefficients of the basis matrices W1 , . . . Wm in the representation T (Z) y1 W1 + · · · + ym Wm . The image (L−1 C T LB )(x) of an arbitrary n × 1 vector x (x1 , . . . , xn ) under −1 the transformation LC T LB can be obtained by premultiplying x by a certain matrix. To see this, observe that (for j 1, . . . , n) the image T (Vj ) of the j th basis matrix Vj for V (under the transformation T ) can be uniquely expressed as a linear combination of the basis matrices for W; that is, there exist unique scalars a1j , a2j , . . . , amj such that
T (Vj ) a1j W1 + a2j W2 + · · · + amj Wm .
(4.3)
And, let A represent the m × n matrix whose j th column is (a1j , a2j , . . . , amj ) or, equivalently, whose ij th element is aij . This matrix, which is dependent on the choice of the bases B and C, is referred to as the matrix representation of the transformation T (or simply as the matrix of T ).
596
22. Linear Transformations
Now, let Z nj1 xj Vj [where x (x1 , . . . , xn ) is an arbitrary n × 1 vector]. Then Z is in V, and there exists a unique vector y (y1 , . . . , ym ) in Rm×1 such that m T (Z) yi Wi . (4.4) i1
Moreover, it follows from the definition of a linear transformation that n n n m n m T (Z) T x j Vj xj T (Vj ) xj aij Wi xj aij Wi . j 1
j 1
j 1
i1
i1
j 1
And, in light of the uniqueness of the coefficients y1 , . . . , ym in representation (4.4), we have that yi
n
xj aij
(i 1, . . . , m) .
(4.5)
j 1
The m equalities (4.5) can be rewritten as the matrix equality y Ax .
(4.6)
Moreover, since clearly T [LB (x)] T (Z) LC (y), it follows from result (4.1) that y (L−1 C T LB )(x). Thus, (L−1 C T LB )(x) Ax ;
(4.7)
that is, the image of x under the transformation L−1 C T LB equals Ax. Let S represent a linear transformation from V into W such that S T . Further, define F {fij } to be the matrix representation of S (with respect to the bases B and C), and observe that, as a consequence of Lemma 22.1.9, there exists an integer j (between 1
and n, inclusive) such that S(Vj ) T (Vj ). Then, since (by definition) S(Vj ) m i1 fij Wi , it follows that fij aij for some integer i and hence that F A. Thus, distinct transformations from V into W have distinct matrix representations (with respect to the same bases).
b. Some special cases It is instructive to consider the matrix representation of a linear transformation in the following special cases. 1. Let T represent a linear transformation from an n-dimensional linear space V into Rm×1 . Further, let B represent a set of matrices V1 , . . . , Vn that form a basis for V, and let C represent a set of (n-dimensional) column vectors w1 , . . . , wm that form a basis for Rm×1 . Then, letting W represent the m × m (nonsingular) matrix whose first, . . ., mth columns are w1 , . . . , wm , respectively, the matrix representation of T with respect to B and C is (by definition) the unique m × n matrix A such that WA [T (V1 ), . . . , T (Vn )] , (4.8)
22.4 Matrix Representation of a Linear Transformation
597
that is, the matrix W−1 [T (V1 ), . . . , T (Vn )] .
(4.9)
Note that when C is taken to be the natural basis for Rm×1 , W I, and the matrix (4.9) simplifies to [T (V1 ), . . . , T (Vn )]. 2. Let A represent an m × n matrix. Then, as discussed in Section 22.1, the transformation T from Rn×1 into Rm×1 defined by T (x) Ax is a linear transformation. The matrix representation of T with respect to the natural bases for Rn×1 and Rm×1 (which consist of the columns of In and Im , respectively) is the matrix A. However, except for special cases, the matrix representation of T with respect to other bases differs from A. 3. Let V represent an n-dimensional linear space. And let B {V1 , . . . , Vn } and C {W1 , . . . , Wn } represent arbitrary bases for V. Then the matrix representation (with respect to B and C) of the identity transformation I from V onto V is the unique n × n matrix A {aij } such that (for j 1, . . . , n) Vj a1j W1 + a2j W2 + · · · + anj Wn .
(4.10)
Moreover, the columns of A are linearly independent and hence A is nonsingular (since if the columns of A were linearly dependent, then, in light of the linear independence of V1 , . . . , Vn , we would arrive at a contradiction of Lemma 3.2.4). Note that if x (x1 , . . . , xn ) is the n-dimensional column vector whose elements are the coefficients of the basis matrices V1 , . . . , Vn when a matrix Z (in V) is expressed as Z x1 V1 + · · · + xn Vn , then the first, . . . , nth elements y1 , . . . , yn of the n-dimensional column vector y Ax are the coefficients of the basis matrices W1 , . . . , Wn when Z is expressed as Z y1 W1 + · · · + yn Wn . Note also that A In if (and only if) B C. Further, for any n × n nonsingular matrix A {aij } and for any choice of the basis C, the basis B can be chosen so that A is the matrix representation of the identity transformation I (from V onto V) with respect to B and C. This can be done by choosing (for j 1, . . . , n) Vj a1j W1 + a2j W2 + · · · + anj Wn ; that V1 , . . . , Vn are linearly independent (and hence form a basis for V) is evident from Lemma 3.2.4. Now, suppose that V Rn×1 . Then, B comprises n column vectors v1 , . . . , vn , and similarly C comprises n column vectors w1 , . . . , wn . Defining V (v1 , . . . , vn ) and W (w1 , . . . , wn ) (both of which are n × n nonsingular matrices), the matrix representation of the identity transformation I from Rn×1 onto Rn×1 with respect to B and C is the (unique) n × n (nonsingular) matrix A such that WA V [as is evident from equality (4.10)], that is, the matrix W−1 V. 4. Let B represent a set of matrices Y1 , . . . , Yn that form a basis for an ndimensional linear space W, and let C represent the set comprising the first, . . . , nth columns, say e1 , . . . , en , of In (which is the natural basis for Rn×1 ). Further, let A {aij } denote the matrix representation of the linear transformation LB (with
598
22. Linear Transformations
respect to C and B). For j 1, . . . , n, we have that Yj LB (ej )
n
aij Yi ,
i1
implying that ajj 1 and that, for i j , aij 0. Thus, A In . 5. Let T represent a linear transformation from Rm×n into Rp×q . Further, let C represent the natural basis for Rm×n , comprising the mn matrices U11 , U21 , . . . , Um1 , . . . , U1n , U2n , . . . , Umn , where (for i 1, . . . , m and j 1, . . . , n) Uij is the m × n matrix whose ij th element equals 1 and whose remaining mn − 1 elements equal 0; and, similarly, let D represent the natural basis for Rp×q . Then, making use of result (3.4), we find that, for any mn × 1 vector x, −1 −1 (L−1 D T LC )(x) (LD (T LC ))(x) LD [(T LC )(x)] vec[(T LC )(x)] vec{T [LC (x)]} .
Further, for any m × n matrix X {xij }, (L−1 D T LC )(vec X) vec{T [LC (vec X)]} vec(T {LC [L−1 C (X)]}) vec[T (X)] ,
(4.11)
implying in particular that (L−1 D T LC )(vec
X)
vec T xij Uij
vec
i,j
xij T Uij
i,j
xij vec[T (Uij )]
i,j
[vec T (U11 ), . . . , vec T (Um1 ), . . . , vec T (U1n ), . . . , vec T (Umn )]vec(X) .
And, in light of result (4.7), it follows that the matrix representation of T (with respect to the natural bases C and D) equals the pq × mn matrix [vec T (U11 ), . . . , vec T (Um1 ), . . . , vec T (U1n ), . . . , vec T (Umn )] .
(4.12)
Suppose, for instance, that (for every m × n matrix X) T (X) AXB , where A is a p × m matrix and B an n × q matrix. Then the matrix representation of T (with respect to the natural bases C and D) is B ⊗ A. To see this, observe [in light of result (4.11) and Theorem 16.2.1] that (L−1 D T LC )(vec X) vec[T (X)] (B ⊗ A)vec X ,
22.4 Matrix Representation of a Linear Transformation
599
and apply result (4.7). Or, alternatively, letting ai represent the ith column of a and bj the j th row of B, observe [in light of result (16.2.3)] that vec T (Uij ) vec(ai bj ) bj ⊗ ai (i 1, . . . , m ; j 1, . . . , n) and hence [in light of results (16.1.28) and (16.1.27)] that expression (4.12) simplifies to (b1 ⊗ a1 , . . . , b1 ⊗ am , . . . , bn ⊗ a1 , . . . , bn ⊗ am ) (b1 ⊗ A, . . . bn ⊗ A) (b1 , . . . , bn ) ⊗ A B ⊗ A . 6. Let V represent the linear space of all n × n symmetric matrices and W the linear space of all p × p symmetric matrices, and let T represent a linear transformation from V into W. Further, let B represent the usual basis for V, comprising the n(n + 1)/2 matrices U∗11 , U∗21 , . . ., U∗n1 , . . . , U∗ii , . . . , U∗i+1,i , . . . , U∗ni , . . ., U∗nn , where (for i 1, . . . , n) U∗ii is the n × n matrix whose ith diagonal element equals 1 and whose remaining n2 − 1 elements equal 0 and where (for j < i 1, . . . , n) U∗ij is the n × n matrix whose ij th and j ith elements equal 1 and whose remaining n2 − 2 elements equal 0. And let C represent the usual basis for W. Then, making use of result (3.5), we find that, for any n(n + 1)/2 × 1 vector x, −1 −1 (L−1 C T LB )(x) (LC (T LB ))(x) LC [(T LB )(x)] vech[(T LB )(x)] vech{T [LB (x)]} .
Further, for any n × n symmetric matrix X {xij }, (L−1 C T LB )(vech X) vech{T [LB (vech X)]} vech(T {LB [L−1 B (X)]}) vech[T (X)] , implying in particular that (L−1 C T LB )(vech
X)
vech T
vech
i,j
i,j
i,j
(4.13)
xij U∗ij
xij T
U∗ij
xij vech[T (U∗ij )]
[vech T (U∗11 ), . . . , vech T (U∗n1 ), . . . , vech T (U∗ii ), . . . , vech T (U∗ni ), . . . , vech T (U∗nn )]vech(X) .
And, in light or result (4.7), it follows that the matrix representation of T (with respect to the usual bases B and C) equals the p(p + 1)/2 × n(n + 1)/2 matrix [vech T (U∗11 ), . . . , vech T (U∗n1 ), . . . , vech T (U∗ii ),
. . . vech T (U∗ni ), . . . , vech T (U∗nn )] .
(4.14)
600
22. Linear Transformations
Suppose, for instance, that p n (implying that W V and C B) and that (for every n × n symmetric matrix X) T (X) AXA , where A is an n × n matrix. Then, the matrix representation of T (with respect to the usual bases) is Hn (A ⊗ A)Gn (where Gn and Hn are as defined in Section 16.4b), as can be verified by, for example, observing [in light of results (4.13) and (16.4.25)] that (L−1 C T LB )(vech X) vech[T (X)] [Hn (A ⊗ A)Gn ]vech X and applying result (4.7).
c. Matrix representations of scalar multiples, sums, and products of linear transformations The following two theorems give some basic results on the matrix representations of scalar multiples, sums, and products of linear transformations. Theorem 22.4.1. Let k represent a scalar, and let T and S represent linear transformations from an n-dimensional linear space V into an m-dimensional linear space W. And let C and D represent bases for V and W, respectively. Further, let A {aij } represent the matrix representation of T with respect to C and D, and B {bij } the matrix representation of S with respect to C and D. Then, kA is the matrix representation of kT (with respect to C and D) and A + B is the matrix representation of T + S (with respect to C and D). Proof. Let V1 , . . . , Vn represent the matrices that form the basis C, and W1 , . . . , Wm the matrices that form the basis D. Then, for j 1, . . . , n, (kT )(Vj ) kT (Vj ) k
m
aij Wi
i1
m
(kaij )Wi ,
i1
and (T + S)(Vj ) T (Vj ) + S(Vj )
m i1
aij Wi +
m i1
bij Wi
m
(aij + bij )Wi .
i1
Thus, the matrix representation of kT (with respect to C and D) is the m×n matrix whose ij th element is kaij , that is, the matrix kA; and the matrix representation of T + S (with respect to C and D) is the m × n matrix whose ij th element is aij + bij , that is, the matrix A + B. Q.E.D. Theorem 22.4.2. Let S represent a linear transformation from a p-dimensional linear space U into an n-dimensional linear space V, and let T represent a linear transformation from V into an m-dimensional linear space W. And let C, D, and E represent bases for U, V, and W, respectively. Further, let A {aij } represent
22.4 Matrix Representation of a Linear Transformation
601
the matrix representation of S with respect to C and D, and B {bij } the matrix representation of T with respect to D and E. Then BA is the matrix representation of T S (with respect to C and E). Proof. Let U1 , . . . , Up represent the matrices that form the basis C, V1 , . . . , Vn the matrices that form the basis D, and W1 , . . . , Wm the matrices that form the basis E. Then, for j 1, . . . , p, (T S)(Uj ) T [S(Uj )]
T n
m
akj Vk
k1
akj T (Vk )
k1
n k1
akj
m i1
bik Wi
m n i1
bik akj Wi .
k1
Thus, the matrix representation
of T S (with respect to C and E) is the m × p matrix whose ij th element is nk1 bik akj , that is, the matrix BA. Q.E.D. The results given by Theorems 22.4.1 and 22.4.2 on the matrix representations of a sum and a product of two linear transformations can be extended (by repeated application) to a sum and a product of any finite number of linear transformations. If T1 , T2 , . . . , Tk are linear transformations from a linear space V into a linear space W, and if A1 , A2 , . . . , Ak are their respective matrix representations (with respect to the same bases C and D), then A1 + A2 + · · · + Ak is the matrix representation of T1 + T2 + · · · + Tk (with respect to C and D). Similarly, if B0 , B1 , . . . , Bk are bases for linear spaces V0 , V1 , . . . , Vk , respectively, and if (for i 1, . . . , k) Ti is a linear transformation from Vi−1 into Vi , and Ai is the matrix representation of Ti with respect to Bi−1 and Bi , then Ak · · · A2 A1 is the matrix representation of Tk · · · T2 T1 with respect to B0 and Bk . As a corollary of Theorem 22.4.2, we have the following result. Corollary 22.4.3. Let T represent an invertible linear transformation from a linear space V onto a linear space W (in which case V and W are of the same dimension). And, let B and C represent bases for V and W, respectively. Further, let A represent the matrix representation of T with respect to B and C. Then A is nonsingular, and A−1 is the matrix representation of T −1 (which is a linear transformation from W onto V) with respect to C and B. Proof. Let H represent the matrix representation of T −1 (with respect to C and B). Then, since [according to result (3.1)] T −1 T I and since (as discussed in Part 3 of Subsection b) the matrix representation of the identity transformation from V onto V (with respect to B and B) is I, it follows from Theorem 22.4.2 that HA I. And, based on Lemma 8.1.3, we conclude that A is nonsingular and that H A−1 . Q.E.D.
602
22. Linear Transformations
d. Change of bases The effect of a change of bases on the matrix representation of a linear transformation is described in the following theorem. Theorem 22.4.4. Let T represent a linear transformation from a linear space V into a linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). Then the matrix representation of T with respect to alternative bases E and F (for V and W, respectively) equals S−1 AR, where R is the matrix representation of the identity transformation from V onto V with respect to E and B and S is the matrix representation of the identity transformation from W onto W with respect to F and C. Proof. To avoid confusion, let us write I1 for the identity transformation from V onto V and I2 for the identity transformation from W onto W. Then, since I −1 I , we have that T I2−1 T I1 . And, upon observing (in light of Corollary 22.4.3) that S−1 is the matrix representation of I2−1 with respect to C and F , and upon applying Theorem 22.4.2, we find that the matrix representation of T with respect to E and F equals S−1 AR. Q.E.D. As special cases of Theorem 22.4.4, we have the following two corollaries. Corollary 22.4.5. Let T represent a linear transformation from a linear space V into a linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). Then, the matrix representation of T with respect to an alternative basis E (for V) and the basis C equals AR, where R is the matrix representation of the identity transformation from V onto V with respect to E and B. And the matrix representation of T with respect to B and an alternative basis F (for W) equals S−1 A, where S is the matrix representation of the identity transformation from W onto W with respect to F and C. Corollary 22.4.6. Let V represent a linear space, and let C and F represent bases for V. Further, let T represent a linear transformation from V into V, and let A represent the matrix representation of T with respect to C and C. Then the matrix representation of T with respect to F and F equals S−1 AS, where S is the matrix representation of the identity transformation (from V onto V) with respect to F and C. Let V represent an n-dimensional linear space and W an m-dimensional linear space. Further, let B represent a basis for V and C a basis for W. And let R represent an n × n nonsingular matrix and S an m × m nonsingular matrix. Then, in light of the discussion in Part 3 of Subsection b, there exists a basis E for V such that R is the matrix representation of the identity transformation (from V onto V) with respect to E and B, and similarly there exists a basis F for W such that S is the matrix representation of the identity transformation (from W onto W) with respect to F and C. Thus, as a consequence of Theorem 22.4.4 and Corollary 22.4.6, we have the following two results. Theorem 22.4.7. Let V represent an n-dimensional linear space and W an mdimensional linear space. Further, let B represent a basis for V and C a basis for W. And let T represent a linear transformation from V into W, and A represent the matrix representation of T with respect to B and C. Then an m × n matrix H
22.5 Terminology and Properties Shared by a Linear Transformation
603
is a matrix representation of T with respect to some bases E and F if and only if H S−1 AR for some n×n (nonsingular) matrix R and some m×m (nonsingular) matrix S. Theorem 22.4.8. Let V represent an n-dimensional linear space, and let C represent any basis for V. Further, let T represent a linear transformation from V into V, and let A represent the matrix representation of T with respect to C and C. And let H represent an n × n matrix. Then there exists a basis F for V such that H is the matrix representation of T with respect to F and F if and only if H S−1 AS for some n × n (nonsingular) matrix S, that is, if and only if H is similar to A.
22.5
Terminology and Properties Shared by a Linear Transformation and Its Matrix Representation
Let V represent an n-dimensional linear space and W an m-dimensional linear space. And let B represent a set of matrices V1 , . . . , Vn (in V) that form a basis for V, and C represent a set of matrices W1 , . . . , Wm (in W) that form a basis for W. Then, corresponding to each linear transformation T from V into W is its matrix representation A {aij } (with respect to B and C), which is the m × n matrix whose j th column is uniquely defined (for j 1, . . . , n) by equation (4.3). Conversely, corresponding to any m × n matrix A, there is a unique linear transformation from V into W that has A as its matrix representation (with respect to B and C), namely, the transformation LC SL−1 B , where S is the (linear) transformation from Rn into Rm defined by S(x) Ax. To see this, observe (in light of Part 4 of Section 22.4b) that the matrix representation of LB (with respect to the natural basis for Rn×1 and the basis B) is In , and that the matrix representation of LC (with respect to the natural basis for Rm×1 and the basis C) is Im . Then, making use of Theorem 22.4.2 and Corollary 22.4.3, we find (in light of Part 2 of Section 22.4b) that the matrix representation of LC SL−1 B (with respect to B and C) is Im AI−1 A. [Moreover, it follows from the discussion in Section 22.4a that n LC SL−1 is the only linear transformation from V into W that has A as its matrix B representation (with respect to B and C).] Thus, by associating every linear transformation (from V into W) with its matrix representation (with respect to B and C), we obtain a 1–1 correspondence between transformations (from V into W) and m×n matrices. It is customary to use the same or similar terminology in speaking of various kinds of linear transformations as in speaking of their matrix counterparts (and vice versa). For example, in the special case where W V and C B, the identity matrix is the matrix representation of the identity transformation from V onto V. Results on linear transformations can be translated into results on matrices (and conversely). As discussed in Section 22.4a, a linear transformation T from V into W can n×1 be replaced by L−1 into Rm×1 C T LB , which is a linear transformation from R −1 LC T LB transforms an n × 1 vector x (x1 , . . . , xn ) , whose elements can be
604
22. Linear Transformations
regarded as the coefficients or “coordinates” of a matrix Z in V (when Z is expressed as a linear combination Z x1 V1 + · · · + xn Vn of the basis matrices V1 , . . . , Vn ) into the m × 1 vector y (y1 , . . . , ym ) , whose elements are the coefficients or “coordinates” of the matrix T(Z) in W [when T(Z) is expressed as a linear combination T (Z) y1 W1 + · · · + ym Wm of the basis matrices W1 , . . . , Wm ]. Further, the image (L−1 C T LB )(x) of x can be obtained by matrix multiplication, using the formula L−1 C T LB (x) Ax, where A is the matrix representation of T (with respect to B and C). Accordingly, one approach to the subject of linear transformations is to restrict attention to linear transformations defined, in terms of an m × n matrix A, by specifying that Ax is the image of an arbitrary n × 1 vector x. In a certain sense, there is no loss of generality in this approach. Its appeal is that it allows results on linear transformations to be developed as results on matrices and to be expressed in the language of matrices. An alternative approach is to derive results on linear transformations from first principles (starting with the definition of a linear transformation), with matrices playing a subordinate role. This approach, which was followed to a considerable extent in Sections 22.1 – 22.3, is sometimes referred to as the coordinate-free approach. Let us now consider a few of the more important relationships between linear transformations and their matrix representations, beginning with the following result on null spaces and on range or column spaces. Theorem 22.5.1. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). (1) An m × 1 vector y is in C(A) if and only if the corresponding matrix LC (y) is in the range space T (V) of T , or, equivalently, a matrix Y (in W) is in T (V) if and only if the corresponding vector L−1 C (Y) is in C(A). (2) An n × 1 vector x is in N (A) if and only if the corresponding matrix LB (x) is in N (T ), or, equivalently, a matrix X (in V) is in N (T ) if and only if the corresponding vector L−1 B (X) is in N (A). Proof. (1) Making use of results (4.7) and (4.1), we find that y ∈ C(A)
⇔
y Ax for some vector x
⇔
y (L−1 C T LB )(x) for some vector x
⇔
LC (y) T [LB (x)] for some vector x
⇔ LC (y) ∈ T (V) . (2) Again making use of results (4.7) and (4.1), we find that x ∈ N (A) ⇔ Ax 0 ⇔
(L−1 C T LB )(x) 0
⇔
T [LB (x)] LC (0)
22.5 Terminology and Properties Shared by a Linear Transformation
⇔
605
T [LB (x)] 0 ⇔ LB (x) ∈ N (T ) .
Q.E.D. The dimension dim[T (V)] of the range space of a linear transformation T from a linear space V into a linear space W is referred to as the rank of T and is denoted by the symbol rank T or rank(T ). This use of the term rank is consistent with its use in connection with matrices, as described in the following theorem. Theorem 22.5.2. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). Then, rank T rank A . (5.1) Proof. Part (1) of Theorem 22.5.1 implies that LC [C(A)] T (V) (as can be easily verified). Thus, there exists a 1–1 linear transformation from C(A) onto T (V), namely, the linear transformation R defined [for y ∈ C(A)] by R(y) LC (y). And, it follows that C(A) and T (V) are isomorphic. Based on Theorem 22.3.1, we conclude that dim[T (V)] dim[C(A)] or, equivalently, that rank T rank A. Q.E.D. In connection with Theorem 22.5.2, note that result (5.1) does not depend on the choice of the bases B and C. Note also that, as a consequence of Theorem 22.1.1 and Lemma 11.3.1, we have the following corollary. Corollary 22.5.3. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). Then, dim[N (T )] n − rank(T ) n − rank(A) dim[N (A)] . (5.2) Now, let T represent a linear transformation from a linear space V into V. Then, a scalar (real number) λ is said to be an eigenvalue of T if there exists a nonnull matrix X (in V) such that T (X) λX , in which case X may be referred to as an eigenmatrix (or, in the special case where V is a linear space of vectors, as an eigenvector) corresponding to λ. As might be suspected, the eigenvalues and eigenmatrices of a linear transformation T are related to the eigenvalues and eigenvectors of the matrix representation of T . This relationship is described in the following theorem. Theorem 22.5.4. Let T represent a linear transformation from an n-dimensional linear space V into V, let B represent any basis for V, and let A represent the matrix representation of T (with respect to B and B). Then a scalar λ is an eigenvalue of A and an n × 1 vector x is an eigenvector of A corresponding to λ if and only if λ is an eigenvalue of T and LB (x) is an eigenmatrix of T corresponding to λ. Proof. In light of results (4.7) and (4.1), Ax λx ⇔ (L−1 B T LB )(x) λx ⇔ T [LB (x)] LB (λx) ⇔ T [LB (x)] λLB (x) . Moreover, x is nonnull if and only if LB (x) is nonnull.
Q.E.D.
606
22. Linear Transformations
A subspace U of an n-dimensional linear space V is said to be invariant relative to a linear transformation T from V into V if T (U) ⊂ U, that is, if for every matrix Z in U, the image T (Z) of Z is also in U. As described in the following theorem, the invariance of a subspace of an n-dimensional linear space V relative to a linear transformation T (from V into V) is related to the invariance of a subspace of Rn×1 relative to the matrix representation of T . Theorem 22.5.5. Let T represent a linear transformation from an n-dimensional linear space V into V, let B represent any basis for V, and let A represent the matrix representation of T (with respect to B and B). Then a subspace U of Rn×1 is invariant relative to A if and only if the corresponding subspace LB (U) of matrices in V is invariant relative to T . Proof. In light of result (4.7), U is invariant relative to A if and only if U is n×1 invariant relative to L−1 into B T LB (which is a linear transformation from R −1 n×1 R ). Thus, it suffices to show that U is invariant relative to LB T LB if and only if LB (U) is invariant relative to T . Suppose that LB (U) is invariant relative to T . And let x represent an arbitrary vector in U [so that LB (x) ∈ LB (U)]. Then T [LB (x)] Y for some matrix Y in LB (U), or, equivalently, T [LB (x)] LB (y) for some vector y in U. And it follows from result (4.1) that (L−1 B T LB )(x) y for some y in U and hence that −1 (L−1 B T LB )(x) ∈ U. Thus, U is invariant relative to LB T LB . Conversely, suppose that U is invariant relative to L−1 B T LB . And let Z represent an arbitrary matrix in LB (U). Then there exists a vector x in U such that Z LB (x). Moreover, (L−1 B T LB )(x) y for some vector y in U. Thus, making use of result (4.1), we find that T (Z) T [LB (x)] LB (y) ∈ LB (U) . And it follows that LB (U) is invariant relative to T .
22.6
Q.E.D.
Linear Functionals and Dual Transformations
In the special case where W R1 , it is customary to refer to a linear transformation from a linear space V into a linear space W as a linear functional on V. Thus, a linear functional f on a linear space V transforms each matrix
X in V into a scalar f (X) and does so in such a way that f ( ri1 ci Xi ) ri1 ci f (Xi ) for any r matrices X1 , . . . , Xr (in V) and any r scalars c1 , . . . , cr (where r is an arbitrary positive integer). Note that if the linear functional f is the zero functional [i.e., if f (X) 0 for every matrix X in the domain V of f ], then the range of f is {0} and that otherwise the range of f is R1 . It follows from the discussion in Section 14.1 that, corresponding to any linear functional f on Rn×1 , there exists a unique vector a in Rn×1 such that f (x) a x for every vector x in Rn×1 , that is, such that f (x) equals the usual inner product of a and x. And, for any vector a in Rn×1 , the function with domain Rn×1 that
22.6 Linear Functionals and Dual Transformations
607
transforms each vector x in Rn×1 into the usual inner product a x of a and x is a linear functional on Rn×1 . These results are generalized (to inner products other than the usual inner product and to linear spaces other than Rn×1 ) in the following lemma. Lemma 22.6.1. (1) Corresponding to any linear functional f on a linear space V (and to any inner product for V), there exists a matrix A in V such that f (X) A • X for every matrix X in V. Moreover, this matrix is unique and is expressible as A f (X1 )X1 + · · · + f (Xr )Xr , where X1 , . . . , Xr are any matrices that form an orthonormal basis for V. (2) For any matrix A in V, the function f (with domain V) that transforms each matrix X in V into the inner product A • X of A and X is a linear functional on V. Proof. (1) Let X represent an arbitrary matrix in V. Then, according to Theorem 6.4.4, X ri1 (X • Xi )Xi . And we find that r r r f (X) (X • Xi )f (Xi ) f (Xi )(Xi • X) f (Xi )Xi • X A • X , i1
i1
i1
r
where A i1 f (Xi )Xi . Now, let B represent any matrix in V such that f (X) B • X for every X in V. Then, to complete the proof of Part (1), it suffices to show that B A. For every X in V, we have that B • X f (X) A • X and hence that (B − A) • X (B • X) − (A • X) 0 . In particular, (B − A) • X 0 for X B − A; that is, (B − A) • (B − A) 0, implying that B − A 0 or, equivalently, that B A. (2) That the function f is a linear functional on V is an immediate consequence of the properties of inner products. Q.E.D. Let A represent an m × n matrix. Take x • z to be the usual inner product x z of arbitrary vectors x and z in Rn×1 , and write u ∗ y for the usual inner product u y of arbitrary vectors u and y in Rm×1 . Then there exists a unique n × m matrix B such that (6.1) x • (By) (Ax) ∗ y for every x in Rn×1 and every y in Rm×1 , and B A (as can be easily verified). The following theorem extends this result to transformations. Theorem 22.6.2. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W. And write X • Z for the inner product of arbitrary matrices X and Z in V, and U ∗ Y for the inner product of arbitrary matrices U and Y in W. Then there exists a linear transformation S from W into V such that X • S(Y) T (X) ∗ Y
608
22. Linear Transformations
for every matrix X in V and every matrix Y in W. Moreover, this linear transformation is unique, and (for every Y in W) S(Y) [Y ∗ T (X1 )]X1 + [Y ∗ T (X2 )]X2 + · · · + [Y ∗ T (Xn )]Xn , where X1 , X2 , . . . , Xn are any matrices that form an orthonormal basis for V. Proof. Let X represent an arbitrary matrix in V, and
Y an arbitrary matrix in W. And observe (in light of Theorem 6.4.4) that X nj1 (X • Xj )Xj and that
(for j 1, . . . , n) Xj ni1 (Xj • Xi )Xi . Then, n T (X) ∗ Y T (X • Xj )Xj ∗ Y
j 1 n
(X Xj )T (Xj ) ∗ Y •
j 1
n j 1
n
(X • Xj )[T (Xj ) ∗ Y] ) ( n • (X Xj ) T (Xi Xj )Xi ∗ Y •
j 1
n
i1
(X • Xj )
( n
j 1
n
(X • Xj )
i1 n
(X • Xj )
n
•
(Xi • Xj )[T (Xi ) ∗ Y] [Y ∗ T (Xi )](Xi • Xj )
(X Xj )
( n (
n
[Y ∗ T (Xi )]Xi
n
Xj )
[Y ∗ T (Xi )]Xi
i1
(X • Xj )Xj
•
j 1
) •
i1
(X • Xj ) Xj •
j 1
(Xi • Xj )T (Xi ) ∗ Y
i1
j 1
n
j 1
j 1
)
i1
n
n
n
[Y ∗ T (Xi )]Xi
i1
X • S(Y) ,
where S is the transformation from W into V that transforms each matrix Y in
W into the matrix ni1 [Y ∗ T (Xi )]Xi . Moreover, S is linear, as is evident upon observing that (for any scalar k and for any matrices Y and U in W) S(kY)
n i1
[(kY) ∗ T (Xi )]Xi k
n i1
[Y ∗ T (Xi )]Xi kS(Y)
Exercises
609
and S(U + Y)
n i1 n i1
[(U + Y) ∗ T (Xi )]Xi [U ∗ T (Xi )]Xi +
n
[Y ∗ T (Xi )]Xi S(U) + S(Y) .
i1
Now, let R represent any linear transformation from W into V such that X • R(Y) T (X) ∗ Y for every X ∈ V and every Y ∈ W. Then, to complete the proof, it suffices to show that R S. For every X ∈ V and every Y ∈ W, we have that X • R(Y) X • S(Y) and hence that X • [R(Y) − S(Y)] X • R(Y) − X • S(Y) 0 . And, upon setting X R(Y)−S(Y), we find that [R(Y)−S(Y)] • [R(Y)−S(Y)] 0 for every Y and hence that R(Y) − S(Y) 0 or, equivalently, R(Y) S(Y) (for every Y). Thus, R S. Q.E.D. The linear transformation S in Theorem 22.6.2 is referred to as the dual transformation of T or the adjoint transformation of T (or simply as the adjoint of T ) — referring to this transformation as the adjoint transformation risks confusion with the adjoint matrix (which was introduced in Section 13.5 and is unrelated to the dual or adjoint transformation). Note that the dual transformation of T depends on the choice of inner products for V and W. Now, let A represent an m × n matrix. And consider the dual transformation S of the linear transformation T from Rn×1 into Rm×1 defined by T (x) Ax (where x is an arbitrary n × 1 vector), taking the inner products for Rn×1 and Rm×1 to be the usual inner products. Then, for every x in Rn×1 and every y in Rm×1 , x S(y) (Ax) y x A y . And, in light of the uniqueness of S, it follows that (for all y in Rm×1 ) S(y) A y
(6.2)
[which is consistent with the earlier observation that the unique matrix B that satisfies condition (6.1) (for all x ∈ Rn×1 and all y ∈ Rm×1 ) equals A ].
Exercises Section 22.1 1. Let U represent a subspace of a linear space V, and let S represent a linear transformation from U into a linear space W. Show that there exists a linear transformation T from V into W such that S is the restriction of T to U.
610
22. Linear Transformations
2. Let T represent a 1–1 linear transformation from a linear space V into a linear space W. And write U · Y for the inner product of arbitrary matrices U and Y in W. Further, define X ∗ Z T (X) · T (Z) for all matrices X and Z in V. Show that the “∗-operation” satisfies the four properties required of an inner product for V. 3. Let T represent a linear transformation from a linear space V into a linear space W, and let U represent any subspace of V such that U and N (T ) are essentially disjoint. Further, let {X1 , . . . , Xr } represent a linearly independent set of r matrices in U. (a) Show that T (X1 ), . . . , T (Xr ) are linearly independent. (b) Show that if r dim(U) (or, equivalently, if X1 , . . . , Xr form a basis for U) and if U ⊕ N (T ) V, then T (X1 ), . . . , T (Xr ) form a basis for T (V). Section 22.2 4. Let T and S represent linear transformations from a linear space V into a linear space W, and let k represent an arbitrary scalar. (a) Verify that the transformation kT is linear. (b) Verify that the transformation T + S is linear. 5. Let S represent a linear transformation from a linear space U into a linear space V, and let T represent a linear transformation from V into a linear space W. Show that the transformation T S is linear. 6. Let T represent a linear transformation from a linear space V into a linear space W, and let R represent a linear transformation from a linear space U into W. Show that if T (V) ⊂ R(U), then there exists a linear transformation S from V into U such that T RS. Section 22.3 7. Let T represent a transformation from a linear space V into a linear space W, and let S and R represent transformations from W into V. And suppose that RT I (where the identity transformation I is from V onto V) and that T S I (where the identity transformation I is from W onto W). (a) Show that T is invertible. (b) Show that R S T −1 .
Exercises
611
8. Let T represent an invertible transformation from a linear space V into a linear space W, let S represent an invertible transformation from a linear space U into V, and let k represent an arbitrary scalar. Using the results of Exercise 7 (or otherwise), show that (a) kT is invertible and (kT )−1 (1/k)T −1 , and that (b) T S is invertible and (T S)−1 S −1 T −1 . Section 22.4 9. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W. And write U · Y for the inner product of arbitrary matrices U and Y in W. Further, let B represent a set of matrices V1 , . . . , Vn (in V) that form a basis for V, and let C represent a set of matrices W1 , . . . , Wm (in W) that form an orthonormal basis for W. Show that the matrix representation for T with respect to B and C is the m × n matrix whose ij th element is T (Vj ) · Wi . 10. Let T represent the linear transformation from Rm×n into Rn×m defined by T (X) X . And, let C represent the natural basis for Rm×n , comprising the mn matrices U11 , U21 , . . ., Um1 , . . . , U1n , U2n , . . . , Umn , where (for i 1, . . . , m and j 1, . . . , n) Uij is the m × n matrix whose ij th element equals 1 and whose remaining mn − 1 elements equal 0; and, similarly, let D represent the natural basis for Rn×m . Show that the matrix representation for T with respect to the bases C and D is the vec-permutation matrix Kmn . 11. Let W represent the linear space of all p × p symmetric matrices, and let T represent a linear transformation from Rm×n into W. Further, let B represent the natural basis for Rm×n , comprising the mn matrices U11 , . . . , U21 , . . . , Um1 , . . . , U1n , U2n , . . . , Umn , where (for i 1, . . . , m and j 1, . . . , n) Uij is the m × n matrix whose ij th element equals 1 and whose remaining mn − 1 elements equal 0. And let C represent the usual basis for W. (a) Show that, for any m × n matrix X, (L−1 C T LB )(vec X) vech[T (X)] . (b) Show that the matrix representation for T (with respect to B and C) equals the p(p + 1)/2 × mn matrix [vech T (U11 ), . . . , vech T (Um1 ), . . . , vech T (U1n ), . . . , vech T (Umn )] . (c) Suppose that p m n and that (for every n × n matrix X) T (X) (1/2)(X + X ) . Show that the matrix representation of T (with respect to B and C) equals (Gn Gn )−1 Gn (where Gn is the duplication matrix).
612
22. Linear Transformations
12. Let V represent an n-dimensional linear space. Further, let B {V1 , V2 , . . . , Vn } represent a basis for V, and let A represent an n × n nonsingular matrix. And, for j 1, . . . , n, let Wj f1j V1 + f2j V2 + · · · + fnj Vn , where (for i 1, . . . , n) fij is the ij th element of A−1 . Show that the set C comprising the matrices W1 , W2 , . . . Wn is a basis for V and that A is the matrix representation of the identity transformation I (from V onto V) with respect to B and C. Section 22.5 13. Let T represent the linear transformation from R4×1 into R3×1 defined by T (x) (x1 + x2 , x2 + x3 − x4 , x1 − x3 + x4 ) , where x (x1 , x2 , x3 , x4 ) . Further, let B represent the natural basis for R4×1 (comprising the columns of I4 ), and let E represent the basis (for R4×1 ) comprising the four vectors (1, −1, 0, −1) , (0, 0, 1, 1) , (0, 0, 0, 1) , and (1, 1, 0, 0) . And, let C represent the natural basis for R3×1 (comprising the columns of I3 ), and F represent the basis (for R3×1 ) comprising the three vectors (1, 0, 1) , (1, 1, 0) , and (−1, 0, 0) . (a) Find the matrix representation of T with respect to B and C. (b) Find (1) the matrix representation of the identity transformation from R4×1 onto R4×1 with respect to E and B and (2) the matrix representation of the identity transformation from R3×1 onto R3×1 with respect to C and F . (c) Find the matrix representation of T with respect to E and F via each of two approaches: (1) a direct approach, using equality (4.8); and (2) an indirect approach, using Theorem 22.4.4 together with the results of Parts (a) and (b). (d) Using Theorem 22.5.2 and Corollary 22.5.3 (or otherwise), find rank T and dim[N (T )]. 14. Let T represent a linear transformation of rank k (where k > 0) from an n-dimensional linear space V into an m-dimensional linear space W. Show that there exist a basis E for V and a basis F for W such the matrix that Ik 0 representation of T with respect to E and F is of the form . 0 0 15. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). Use Part (2) of Theorem 22.5.1 to devise a “direct” proof that dim[N (T )] dim[N (A)] (as opposed to deriving this equality as a corollary of Theorem 22.5.2).
Exercises
613
16. Let T represent a linear transformation from an n-dimensional linear space V into V. (a) Let U represent an r-dimensional subspace of V, and suppose that U is invariant relative to T . Show that there exists a basis for V such that the matrix representation T with respect to B and B is of the (upper block of E F triangular) form (where E is of dimensions r × r). 0 H (b) Let U and W represent subspaces of V such that U ⊕ W V (i.e., essentially disjoint subspaces of V whose sum is V). Suppose that both U and W are invariant relative to T . Show that there exists a basis B for V such that the matrix representation of T with respect to B and B is of the (block-diagonal) form diag(E, H) [where the dimensions of E equal dim(U)]. Section 22.6 17. Let V, W, and U represent linear spaces. (a) Show that the dual transformation of the identity transformation I from V onto V is I . (b) Show that the dual transformation of the zero transformation 01 from V into W is the zero transformation 02 from W into V. (c) Let S represent the dual transformation of a linear transformation T from V into W. Show that T is the dual transformation of S. (d) Let k represent a scalar, and let S represent the dual transformation of a linear transformation T from V into W. Show that kS is the dual transformation of kT . (e) Let T1 and T2 represent linear transformations from V into W, and let S1 and S2 represent the dual transformations of T1 and T2 , respectively. Show that S1 + S2 is the dual transformation of T1 + T2 . (f) Let P represent the dual transformation of a linear transformation S from U into V, and let Q represent the dual transformation of a linear transformation T from V into W. Show that P Q is the dual transformation of T S. 18. Let S represent the dual transformation of a linear transformation T from an n-dimensional linear space V into an m-dimensional linear space W. And let A {aij } represent the matrix representation of T with respect to orthonormal bases C and D, and B {bij } represent the matrix representation of S with respect to D and C. Using the result of Exercise 9 (or otherwise), show that B A .
614
22. Linear Transformations
19. Let A represent an m × n matrix, let V represent an n × n symmetric positive definite matrix, and let W represent an m × m symmetric positive definite matrix. And let S represent the dual transformation of the linear transformation T from Rn×1 into Rm×1 defined by T (x) Ax (where x is an arbitrary n × 1 vector). Taking the inner product of arbitrary vectors x and z in Rn×1 to be x Vz and taking the inner product of arbitrary vectors u and y in Rm×1 to be u Wy, generalize result (6.2) by obtaining a formula for S(y). 20. Let S represent the dual transformation of a linear transformation T from a linear space V into a linear space W. (a) Show that [S(W)]⊥ N (T ) (i.e., that the orthogonal complement of the range space of S equals the null space of T ). (b) Using the result of Part (c) of Exercise 17 (or otherwise), show that [N (S)]⊥ T (V) (i.e., that the orthogonal complement of the null space of S equals the range space of T ). (c) Show that rank S rank T .
References
Aitken, A. C. (1935), “On Least Squares and Linear Combination of Observations,” Proceedings of the Royal Society of Edinburgh, 55, 42–48. Aitken, A. C. (1949), “On the Wishart Distribution in Statistics,” Biometrika, 36, 59– 62. Albert, A. (1972), Regression and the Moore-Penrose Pseudoinverse, New York: Academic Press. Baksalary, J. K., and Puntanen, S. (1989), “Weighted-Least-Squares Estimation in the General Gauss-Markov Model,” in Statistical Data Analysis and Inference, ed. Y. Dodge, Amsterdam: North-Holland, pp. 355–368. Bartle, R. G. (1976), The Elements of Real Analysis (2nd ed.), New York: John Wiley. Bartlett, M. S. (1951), “An Inverse Matrix Adjustment Arising in Discriminant Analysis,” Annals of Mathematical Statistics, 22, 107–111. Basilevsky, A. (1983), Applied Matrix Algebra in the Statistical Sciences, New York: North-Holland. Beaumont, R. A., and Pierce, R. S. (1963), The Algebraic Foundations of Mathematics, Reading, MA: Addison-Wesley. Christensen, R. (1996), Plane Answers to Complex Questions: The Theory of Linear Models (2nd ed.), New York: Springer-Verlag. Cochran, W. G. (1934), “The Distribution of Quadratic Forms in a Normal System, With Applications to the Analysis of Covariance,” Proceedings of the Cambridge Philosophical Society, 30, 178–191.
616
22. Linear Transformations
Driscoll, M. F., and Gundberg, W. R., Jr. (1986), “A History of the Development of Craig’s Theorem,” The American Statistician, 40, 65–70. Duncan, W. J. (1944), “Some Devices for the Solution of Large Sets of Simultaneous Linear Equations (With an Appendix on the Reciprocation of Patterned Matrices),” The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, Seventh Series, 35, 660–670. Dwyer, P. S. (1967), “Some Applications of Matrix Derivatives in Multivariate Analysis,” Journal of the American Statistical Association, 62, 607–625. Faddeeva, V. N. (1959), Computational Methods of Linear Algebra, New York: Dover. Fedorov, V. V. (1972), Theory of Optimal Experiments, New York: Academic Press. Golub, G. H., and Pereyra, V. (1973), “The Differentiation of Pseudo-Inverses and Nonlinear Least Squares Problems Whose Variables Separate,” SIAM Journal on Numerical Analysis, 10, 413–432. Golub, G. H., and Van Loan, C. F. (1989), Matrix Computations (2nd ed.), Baltimore: Johns Hopkins University Press. Goodnight, J. H. (1979), “A Tutorial on the SWEEP Operator,” The American Statistician, 33, 149–158. Graybill, F. A. (1983), Matrices With Applications in Statistics (2nd ed.), Belmont, CA: Wadsworth. Guttman, L. (1946), “Enlargement Methods for Computing the Inverse Matrix,” Annals of Mathematical Statistics, 17, 336–343. Halmos, P. R. (1958), Finite-Dimensional Vector Spaces (2nd ed.), Princeton, NJ: Van Nostrand. Harville, D. A. (1996–97), “Generalized Inverses and Ranks of Modified Matrices,” Journal of the Indian Society of Agricultural Statistics, 49 (Golden Jubilee Number), 67–78. Harville, D. A., and Fenech, A. P. (1985), “Confidence Intervals for a Variance Ratio, or for Heritability, in an Unbalanced Mixed Linear Model,” Biometrics, 41, 137–152. Harville, D. A., and Kempthorne, O. (1997) “An Alternative Way to Establish the Necessity Part of the Classical Result on the Statistical Independence of Quadratic Forms”, Linear Algebra and Its Applications, Sixth Special Issue on Linear Algebra and Statistics. Hearon, J. Z., and Evans, J. W. (1968), “Differentiable Generalized Inverses,” Journal of Research of the National Bureau of Standards, 72B, 109–113. Henderson, H. V., and Searle, S. R. (1979), “Vec and Vech Operators for Matrices, With Some Uses in Jacobians and Multivariate Statistics,” The Canadian Journal of Statistics, 7, 65–81.
Exercises
617
Henderson, H. V., and Searle, S. R. (1981a), “On Deriving the Inverse of a Sum of Matrices,” SIAM Review, 23, 53–60. Henderson, H. V., and Searle, S. R. (1981b), “The Vec-Permutation Matrix, the Vec Operator and Kronecker Products: A Review,” Linear and Multilinear Algebra, 9, 271–288. Lancaster, P., and Tismenetsky, M. (1985), The Theory of Matrices (2nd ed.), New York: Academic Press. Loynes, R. M. (1966), “On Idempotent Matrices,” Annals of Mathematical Statistics, 37, 295–296. Magnus, J. R., and Neudecker, H. (1979), “The Commutation Matrix: Some Properties and Applications,” The Annals of Statistics, 7, 381–394. Magnus, J. R., and Neudecker, H. (1980), “The Elimination Matrix: Some Lemmas and Applications,” SIAM Journal on Algebra and Discrete Mathematics, 1, 422– 449. Magnus, J. R., and Neudecker, H. (1986), “Symmetry, 0–1 Matrices and Jacobians: A Review,” Econometric Theory, 2, 157–190. Magnus, J. R., and Neudecker, H. (1988), Matrix Differential Calculus With Applications in Statistics and Econometrics, New York: John Wiley. Marsaglia, G., and Styan, G. P. H. (1974), “Equalities and Inequalities for Ranks of Matrices,” Linear and Multilinear Algebra, 2, 269–292. Meyer, C. D. (1973), “Generalized Inverses and Ranks of Block Matrices,” SIAM Journal on Applied Mathematics, 25, 597–602. Miller, K. S. (1987), Some Eclectic Matrix Theory, Malabar, FL: Robert E. Krieger Publishing Company. Milliken, G. A., and Akdeniz, F. (1977), “A Theorem on the Difference of the Generalized Inverses of Two Nonnegative Matrices,” Communications in Statistics, Part A —Theory and Methods, 6, 73–79. Moore, E. H. (1920), “On the Reciprocal of the General Algebraic Matrix,” Bulletin of the American Mathematical Society, 26, 394–395. Penrose, R. (1955), ”A Generalized Inverse for Matrices,” Proceedings of the Cambridge Philosophical Society, 51, 406–413. Puntanen, S., and Styan, G. P. H. (1989), ”The Equality of the Ordinary Least Squares Estimator and the Best Linear Unbiased Estimator” (with discussion), The American Statistician, 43, 153–164. Rao, C. R. (1989), “A Lemma on Optimization of a Matrix Function and a Review of the Unified Theory of Linear Estimation,” in Statistical Data Analysis and Inference, ed. Y. Dodge, Amsterdam: North-Holland, pp. 397–417.
618
22. Linear Transformations
Rao, C. R., and Mitra, S. K. (1971), Generalized Inverse of Matrices and Its Applications, New York: John Wiley. Reid, J. G., and Driscoll, M. F. (1988), “An Accessible Proof of Craig’s Theorem in the Noncentral Case,” The American Statistician, 42, 139–142. Rogers, G. S. (1980), Matrix Derivatives, New York: Marcel Dekker. Scheff´e, H. (1959), The Analysis of Variance, New York: John Wiley. Searle, S. R. (1971), Linear Models, New York: John Wiley. Searle, S. R. (1982), Matrix Algebra Useful for Statistics, New York: John Wiley. Sherman, J., and Morrison, W. J. (1949), “Adjustment of an Inverse Matrix Corresponding to Changes in the Elements of a Given Column or a Given Row of the Original Matrix” (abstract), Annals of Mathematical Statistics, 20, 621. Sherman, J., and Morrison, W. J. (1950), “Adjustment of an Inverse Matrix Corresponding to a Change in One Element of a Given Matrix,” Annals of Mathematical Statistics, 21, 124–127. Stewart, G. W. (1973), Introduction to Matrix Computations, New York: Academic Press. ´ Sylvester, J. (1884), “Sur la Solution du Cas le Plus G´en´eral des Equations Lin´eares en Quantit´es Binares, C’est-´a-dire en Quaternions ou en Matrices du Second Ordre,” Comptes Rendus des S´eances de l’Acad´emie des Sciences, 99, 117–118. Woodbury, M. A. (1950), “Inverting Modified Matrices,” Memorandum Report 42, Princeton University, Statistical Research Group.
ii
iii
iv
522
21.2
21. Eigenvalues and Eigenvectors
Eigenvalues of Triangular or Block-Triangular Matrices and of Diagonal or Block-Diagonal Matrices
The eigenvalues of a matrix depend on the elements of the matrix in a very complicated way, and in general their computation requires the use of rather sophisticated and time-consuming numerical procedures. However, for certain types of matrices such as block-triangular or block-diagonal matrices, the eigenvalues can be reexpressed in terms of the eigenvalues of matrices of smaller dimensions or in other relatively simple ways, and the computational requirements can be substantially reduced. The following lemma gives some results on the eigenvalues of block-triangular matrices. Lemma 21.2.1. Let A represent an n × n matrix that is partitioned as A11 A12 . . . A1r A21 A22 . . . A2r A . .. .. , .. .. . . . Ar1
Ar2
...
Arr
where (for i, j 1, . . . , r) Aij is of dimensions ni × nj . Suppose that A is (upper or lower) block triangular. Then, (1) $ the characteristic polynomial p(λ) of A is such that (for λ ∈ R) p(λ) r i1 pi (λ), where (for i 1, . . . , r) pi (λ) is the characteristic polynomial of Aii ; (2) a scalar λ is an eigenvalue of A if and only if λ is an eigenvalue of at least one of the diagonal blocks A11 , . . . , Arr , or, equivalently, the spectrum of A is the union of the spectra of A11 , . . . , Arr ;
(3) the algebraic multiplicity of an eigenvalue λ of A equals ri1 γ (i) , where (for i 1, . . . , r) γ (i) is the algebraic multiplicity of λ when λ is regarded as an eigenvalue of Aii — if λ is not an eigenvalue of Aii , then γ (i) 0; and (4) the (not necessarily distinct) eigenvalues of A are d1(1) , . . . , dm(1)1 , d1(2) , . . . , dm(2)2 , . . ., d1(r) , . . . , dm(r)r , where (for i 1, . . . , r) d1(i) , . . . , dm(i)i are the (not necessarily distinct) eigenvalues of Aii . Proof. (1) For λ ∈ R, the matrix A−λIn is block triangular with diagonal blocks A11 − λIn1 , . . . , Arr − λInr , respectively. Thus, making use of results (13.3.3) and (13.3.4), we find that (for λ ∈ R) p(λ) |A − λI|
r i1
|Aii − λI|
r
pi (λ) .
i1
(2) – (4). Parts (2) – (4) are almost immediate consequences of Part (1). Q.E.D.
21.2 Eigenvalues of Block-Triangular or Block-Diagonal Matrices
523
Observe that the characteristic polynomial of a 1 × 1 matrix (c) (whose only element is the scalar c) is p(λ) (−1)(λ − c), that the spectrum of (c) is the set {c} whose only member is c, and that the algebraic (and geometric) multiplicities of the eigenvalue c of (c) equal 1. Then, by regarding a triangular matrix as a block-triangular matrix with 1 × 1 blocks, we obtain the following corollary of Lemma 21.2.1. Corollary 21.2.2. For any n × n (upper or lower) triangular matrix A {aij }, $ (1) the characteristic polynomial of A is p(λ) (−1)n ni1 (λ − aii ); (2) a scalar λ is an eigenvalue of A if and only if it equals one or more of the diagonal elements a11 , . . . , ann , or, equivalently, the spectrum of A comprises the distinct scalars represented among the diagonal elements of A; (3) the algebraic multiplicity of an eigenvalue λ of A equals the number of diagonal elements of A that equal λ; (4) the (not necessarily distinct) eigenvalues of A are the diagonal elements of A.
In light of Corollary 21.2.2, it is a trivial matter to determine the eigenvalues of a triangular matrix. One need only inspect its diagonal elements. Lemma 21.2.1 gives various results on the characteristic polynomial, the spectrum, and the algebraic multiplicities of the distinct eigenvalues of a blocktriangular matrix (with square diagonal blocks). Since block-diagonal matrices are block triangular, these results are applicable to block-diagonal matrices (or, more precisely, to block-diagonal matrices with square diagonal blocks). The following lemma gives some results on the geometric multiplicities of the distinct eigenvalues of a block-diagonal matrix and on the eigenvectors of a block-diagonal matrix — these results are specific to block-diagonal matrices; that is, they do not (in general) apply to block-triangular matrices. Lemma 21.2.3. For any n × n block-diagonal matrix A with square diagonal blocks A11 , . . . , Arr of order n1 , . . . , nr , respectively,
(1) the geometric multiplicity of an eigenvalue λ of A equals ri1 ν (i) , where (for i 1, . . . , r) ν (i) is the geometric multiplicity of λ when λ is regarded as an eigenvalue of Aii — if λ is not an eigenvalue of Aii , then ν (i) 0; and (2) if an ni × 1 vector x∗ is an eigenvector of Aii corresponding to an eigenvalue λ, then the n × 1 vector x (0 , . . . 0 , x∗ , 0 , . . . , 0 ) , whose (1 +
i
i−1 s1 ns )th, . . . , ( s1 ns )th elements are respectively the first, . . . , ni th elements of x∗ , is an eigenvector of A corresponding to λ — λ is an eigenvalue of A as well as of Aii (1 ≤ i ≤ r). Proof. (1) Recalling results (1.1) and (4.5.14) and observing that A − λI diag(A11 − λI, . . . , Arr − λI), we find that the geometric multiplicity of λ equals
524
21. Eigenvalues and Eigenvectors
n − rank(A − λI) n −
r
rank(Aii − λI)
i1
r i1 r
[ni − rank(Aii − λI)] ν (i) .
i1
(2) Suppose that x∗ is an eigenvector of Aii corresponding to an eigenvalue λ. Then, 0 0 .. .. . . 0 0 Ax Aii x∗ λx∗ λx . 0 0 . . .. .. 0
0
Q.E.D. By regarding a diagonal matrix as a block-diagonal matrix with 1 × 1 blocks, we obtain the following corollary of Lemma 21.2.3. Corollary 21.2.4. For any n × n diagonal matrix D {di }, (1) the geometric multiplicity of an eigenvalue λ of D equals the number of diagonal elements of D that equal λ; and (2) the n × 1 vector cui , where ui is the ith column of In and c is an arbitrary nonzero scalar, is an eigenvector of D corresponding to di — di is an eigenvalue of D (1 ≤ i ≤ n). Corollary 21.2.4 gives results on diagonal matrices that augment those given by Corollary 21.2.2 — since diagonal matrices are triangular, the results of Corollary 21.2.2 are applicable to diagonal matrices. Note that the geometric multiplicity of any eigenvalue of a diagonal matrix is the same as its algebraic multiplicity, as evidenced by Part (1) of Corollary 21.2.4 and Part (3) of Corollary 21.2.2.
21.3
Similar Matrices
An n × n matrix B is said to be similar to an n × n matrix A if there exists an n × n nonsingular matrix C such that B C−1 AC or, equivalently, such that CB AC. Upon observing that (for any n × n nonsingular matrix C) B C−1 AC ⇒ A CBC−1 (C−1 )−1 BC−1 , it is clear that if B is similar to A, then A is similar to B.
21.3 Similar Matrices
525
Some of the ways in which similar matrices are similar are described in the following theorem. Theorem 21.3.1. For any n × n matrix A and any n × n nonsingular matrix C, (1) rank(C−1 AC) rank(A); (2) det(C−1 AC) det(A); (3) tr(C−1 AC) tr(A); (4) C−1 AC and A have the same characteristic polynomial and the same spectrum; (5) an eigenvalue has the same algebraic and geometric multiplicities when regarded as an eigenvalue of C−1 AC as when regarded as an eigenvalue of A; (6) if x is an eigenvector of A corresponding to an eigenvalue λ, then C−1 x is an eigenvector of C−1 AC corresponding to λ, and, similarly, if y is an eigenvector of C−1 AC corresponding to λ, then Cy is an eigenvector of A corresponding to λ; and (7) the (not necessarily distinct) eigenvalues of C−1 AC are the same as those of A. Proof. (1) That rank(C−1 AC) rank(A) is evident from Corollary 8.3.3. (2) Using results (13.3.9) and (13.3.12), we find that |C−1 AC| |C−1 | |A| |C| (1/|C|) |A| |C| |A| . (3) As a consequence of Lemma 5.2.1, tr(C−1 AC) tr(ACC−1 ) tr(A) . (4) Applying Part (2) (with A − λI in place of A), we find that, for any scalar λ, |C−1 AC − λI| |C−1 (A − λI)C| |A − λI| . Thus, C−1 AC and A have the same characteristic polynomial (which implies that they have the same spectrum). (5) Let λ represent an eigenvalue of A or, equivalently [in light of Part (4)], of C−1 AC. Since [according to Part (4)] C−1 AC and A have the same characteristic polynomial, λ has the same algebraic multiplicity when regarded as an eigenvalue of C−1 AC as when regarded as an eigenvalue of A. Further, the geometric multiplicities of λ when regarded as an eigenvalue of C−1 AC and when regarded as an eigenvalue of A are, respectively [in light of result (1.1)], n−rank(C−1 AC−λI) and n − rank(A − λI) and hence {since rank(C−1 AC − λI) rank[C−1 (A − λI)C] rank(A − λI)} are the same. (6) If Ax λx, then (C−1 AC)C−1 x C−1 Ax C−1 (λx) λC−1 x ,
526
21. Eigenvalues and Eigenvectors
and if C−1 ACy λy, then ACy CC−1 ACy C(λy) λCy . (7) Since [according to Part (4)] C−1 AC and A have the same characteristic polynomial, the (not necessarily distinct) eigenvalues of C−1 AC are the same as those of A. Q.E.D. Theorem 21.3.1 can be very useful. If, for example, it can be demonstrated that a matrix A is similar to a diagonal or triangular matrix or to some other matrix whose eigenvalues are relatively easy to obtain, then the determination of the eigenvalues of A may be greatly facilitated. Subsequently, we shall have occasion to make use of the following theorem. Theorem 21.3.2. Let A represent an n × n matrix, B a k × k matrix, and U an n × k matrix with orthonormal columns (i.e., with U U I) such that AU UB. Then, there exists an n × (n − k) matrix V such that the n × n matrix (U, V) is orthogonal. And, for any such matrix V, B U AV (U, V) A(U, V) 0 V AV [so that A is similar to the block-triangular matrix
B 0
U AV ], and, in the special V AV
case where A is symmetric,
B (U, V) A(U, V) 0
0 V AV
[so that A is similar to diag(B, V AV)]. Proof. As a consequence of Theorem 6.4.5, there exists an n × (n − k) matrix V such that the columns of the n×n matrix (U, V) form an orthonormal (with respect to the usual inner product) basis for Rn or, equivalently, such that the matrix (U, V) is orthogonal. Now, let V represent any such matrix. Then, observing that U AU U UB IB B and that
V AU V UB 0B 0 ,
we find that (U, V) A(U, V)
B U AV 0 V AV
.
And, in the special case where A is symmetric, U AV U A V (V AU) 0 0 , so that
21.3 Similar Matrices
527
(U, V) A(U, V) diag(B, V AV) . Q.E.D. In the special case where k 1, Theorem 21.3.2 can be restated as the following corollary. Corollary 21.3.3. Let A represent an n × n matrix. And let λ represent any eigenvalue of A (assuming that one exists), and u represent an eigenvector of (usual) norm 1 that corresponds to λ. Then there exists an n × (n − 1) matrix V such that the n × n matrix (u, V) is orthogonal. Moreover, for any such matrix V, λ u AV (u, V) A(u, V) 0 V AV λ u AV [so that A is similar to the block-triangular matrix ], and, in the special 0 V AV case where A is symmetric, λ 0 (u, V) A(u, V) 0 V AV [so that A is similar to diag(λ, V AV)]. The following theorem gives an inequality that was mentioned (but not verified) in Section 1. Theorem 21.3.4. The geometric multiplicity of an eigenvalue λ of an n × n matrix A is less than or equal to the algebraic multiplicity of λ. Proof. Let ν dim[N (A − λI)], which by definition is the geometric multiplicity of λ. Then, as a consequence of Theorem 6.4.3, there exists an n × ν matrix U with orthonormal (with respect to the usual inner product) columns that form a basis for N (A−λI). And, since (A−λI)U 0 and hence since AU λU U(λIν ), it follows from Theorem 21.3.2 that A is similar to a matrix that is expressible as λIν R , 0 S where R is a ν × (n − ν) matrix and S is an (n − ν) × (n − ν) matrix. λIν R Now, it follows from Theorem 21.3.1 that λ is an eigenvalue of — 0 S λIν R that λ is an eigenvalue of is also evident from Lemma 21.2.1 — and that 0 S λIν R λ has the same algebraic multiplicity when regarded as an eigenvalue of 0 S as when regarded as an eigenvalue of A. Moreover, it is clear from Lemma 21.2.1 and from Corollary 21.2.2 that the algebraic multiplicity of λ when regarded as an λIν R eigenvalue of is at least ν. We conclude that the algebraic multiplicity 0 S of λ when regarded as an eigenvalue of A is at least ν. Q.E.D.
528
21. Eigenvalues and Eigenvectors
The following four corollaries give various implications of Theorem 21.3.4. Corollary 21.3.5. If the algebraic multiplicity of an eigenvalue λ of an n × n matrix equals 1, then the geometric multiplicity of λ also equals 1. Proof. The validity of Corollary 21.3.5 is evident from Theorem 21.3.4 upon observing that the geometric multiplicity of λ is at least one. Q.E.D. Corollary 21.3.6. If an n × n matrix A has n distinct eigenvalues, then each of them has a geometric (and algebraic) multiplicity of 1. Proof. The algebraic multiplicities of the distinct eigenvalues of A are greater than or equal to 1, and the sum of the algebraic multiplicities cannot exceed n. Thus, if A has n distinct eigenvalues, then each of them has an algebraic multiplicity of 1 and hence (in light of Corollary 21.3.5) a geometric multiplicity of 1. Q.E.D. Corollary 21.3.7. Let A represent an n×n matrix that has k distinct eigenvalues λ1 , . . . , λk with algebraic multiplicities γ1 , . .
. , γk , respectively, and geometric
k γ ≤ n. And, if multiplicities ν1 , . . . , νk , respectively. Then, ki1 νi ≤ i i1
k
k
k
k ν n, then γ n. Moreover, if ν i1 i i1 i i1 i i1 γi , then (for γi . i 1, . . . , k) νi
k Proof. That ki1 νi ≤ i1 γi is an immediate consequence of Theorem
k 21.3.4, and that i1 γi ≤ n was established earlier (in Section 1). And, if
k
these inequalities imply that ki1 γi n. i1 νi n, then together
k
k
k Now, suppose that i1 νi i1 γi . Then, i1 (γi − νi ) 0. And, according to Theorem 21.3.4, γi ≥ νi or, equivalently, γi − νi ≥ 0 (i 1, . . . , k). Thus, γi − νi 0, or, equivalently, νi γi (i 1, . . . , k). Q.E.D. Corollary 21.3.8. Let A represent an n×n matrix that has k distinct eigenvalues λ1 , . . . , λk with geometric multiplicities ν1 , . . . , νk , respectively. Then the sum of the geometric multiplicities of the (k or k − 1) nonzero distinct eigenvalues (of A)
is less than or equal to rank(A), with equality holding if and only if ki1 νi n. Proof. It is convenient to consider separately two cases. Case 1: rank(A) n. In this case, all k of the distinct eigenvalues λ1 , . . . , λk are nonzero (as is evident from Lemma 11.3.1), and it is apparent from Corollary
21.3.7 that the sum ki1 νi of the geometric multiplicities is less than or equal to
rank(A). (And it is obvious that this sum equals rank(A) if and only if ki1 νi n.) Case 2: rank(A) < n. In this case, it follows from Lemma 11.3.1 that one of the distinct eigenvalues, say λs , equals 0 and that νs n − rank(A). Thus, making use of Corollary 21.3.7, we find that k
νi
is
And, clearly,
21.4
k
νi − [n − rank(A)] ≤ n − [n − rank(A)] rank(A) .
i1
k
is
νi rank(A) if and only if n
k
i1 νi .
Linear Independence of Eigenvectors
A basic property of eigenvectors is described in the following theorem.
Q.E.D.
21.4 Linear Independence of Eigenvectors
529
Theorem 21.4.1. Let A represent an n × n matrix, let x1 , . . . , xk represent k eigenvectors of A, and let λ1 , . . . , λk represent the eigenvalues (of A) to which x1 , . . . xk correspond. If λ1 , . . . , λk are distinct, then x1 , . . . , xk are linearly independent. Theorem 21.4.1 is a special case of the following result. (mi ) Theorem 21.4.2. Let A represent an n × n matrix. And, let x(1) reprei , . . . , xi sent linearly independent eigenvectors of A that correspond to some eigenvalue λi (m1 ) (i 1, . . . , k). If λ1 , . . . , λk are distinct, then the combined set x(1) 1 , . . . , x1 , . . . ,
k (1) (mk ) xk , . . . , xk of i1 mi eigenvectors is linearly independent. Proof (of Theorem 21.4.2). Assume that λ1 , . . . , λk are distinct. To show that the combined set is linearly independent, let us proceed by mathematical induction. (m1 ) The set of m1 eigenvectors x(1) is by definition linearly independent. Sup1 , . . . x1
(m1 ) pose now that the set comprising the first si1 mi eigenvectors x(1) 1 , . . . , x1 , . . ., (ms ) is linearly independent (where 1 ≤ s ≤ k−1). Then, to complete the x(1) s , . . . , xs
induction argument, it suffices to show that the set comprising the first s+1 i1 mi (ms+1 ) (m1 ) (1) eigenvectors x(1) , . . . , x , . . ., x , . . . , x is linearly independent. s+1 1 1 s+1 (m ) (1) , . . . , cs+1s+1 represent any scalars such that Let c1(1) , . . . , c1(m1 ) , . . . , cs+1 (m
) (m
)
(m1 ) (m1 ) (1) (1) + · · · + cs+1 xs+1 + · · · + cs+1s+1 xs+1s+1 0 . c1(1) x(1) 1 + · · · + c1 x1
(4.1)
And, observe that, for j 1, . . . , ms+1 , (j )
(A − λs+1 I)xs+1 0 and that, for i 1, . . . , s and j 1, . . . , mi , (j )
(j )
(j )
(A − λs+1 I)xi [A − λi I + (λi − λs+1 )I]xi (λi − λs+1 )xi . Then, premultiplying both sides of equality (4.1) by A − λs+1 I, we find that (m1 ) (m1 ) (λ1 − λs+1 )(c1(1) x(1) 1 + · · · + c1 x1 ) (ms ) (ms ) xs ) 0 . + · · · + (λs − λs+1 )(cs(1) x(1) s + · · · + cs
And since λi − λs+1 0 for i s + 1 and (by supposition) the si1 mi vectors (m1 ) (1) (ms ) x(1) are linearly independent, it follows that 1 , . . . , x1 , . . . , xs , . . . , xs c1(1) . . . c1(m1 ) . . . cs(1) . . . cs(ms ) 0 .
(4.2)
Moreover, substituting from result (4.2) into equality (4.1), we find that (m
) (m
)
(1) (1) xs+1 + · · · + cs+1s+1 xs+1s+1 0 cs+1 (m
)
s+1 and hence, since the ms+1 vectors x(1) s+1 , . . . xs+1 are by definition linearly independent, that (m ) (1) cs+1 . . . cs+1s+1 0 . (4.3)
530
21. Eigenvalues and Eigenvectors
(1) (m1 ) Together, results (4.2) and (4.3) imply that the s+1 i1 mi vectors x1 ,. . .,x1 , . . ., (ms+1 ) (1) Q.E.D. xs+1 , . . ., xs+1 are linearly independent. How many linearly independent eigenvectors are there? This question is answered (in terms of the geometric multiplicities of the distinct eigenvalues) by the following theorem. Theorem 21.4.3. Let λ1 , . . . , λk represent the distinct eigenvalues of an n × n matrix A (i.e., the members of the spectrum of A), and let ν1 , . . . , νk represent their respective geometric multiplicities. Then, for i 1, . . . , k, there exists a set of (νi ) νi linearly independent eigenvectors x(1) of A corresponding to λi . The i , . . . , xi
(1) (ν1 ) (1) (νk ) combined set S {x1 , . . . , x1 , . . . , xk , . . . xk }, comprising ki1 νi eigen k vectors, is linearly independent; and any set of more than i1 νi eigenvectors is
linearly dependent. Moreover, if ki1 νi n, then S is a basis for Rn , and the set S∗ obtained from S by deleting any eigenvectors that correspond to 0 (in the event that 0 is an eigenvalue of A) is a basis for C(A). Proof. For i 1, . . . , k, any basis for the eigenspace N (A−λi I) is a set of νi linearly independent eigenvectors corresponding to λi , so that such a set clearly exists. That the combined set S is linearly independent is an immediate consequence of Theorem 21.4.2. Suppose now (for purposes of establishing
a contradiction) that there existed a linearly independent set of more that ki1 νi eigenvectors. Then, for some integer t (1 ≤ t ≤ k), the number of eigenvectors in that set that corresponded to λt would exceed νt . And, as a consequence, N (A − λt I) would contain more than νt linearly independent vectors, which {since by definition dim[N (A−λt I)]} establishes the desired contradiction. Thus, any set of more νt
than ki1 νi eigenvectors is linearly dependent.
To complete the proof, suppose that ki1 νi n. Then, S comprises n (linearly independent, n-dimensional) vectors and hence is a basis for Rn . Further, let r represent the number of vectors in S∗ , let X represent an n × r matrix whose columns are the vectors in S∗ , and let 6 represent an r × r diagonal matrix whose diagonal elements are the eigenvalues to which the columns of X correspond, so that AX X6, implying (since the diagonal elements of 6 are nonzero) that X AX6−1 . And, upon observing that rank(X) r and (in light of Corollary 21.3.8) that r rank(A), it follows from Corollary 4.4.7 that C(X) C(A). Thus, S∗ is a basis for C(A). Q.E.D. As an immediate consequence of Theorem 21.4.3, we have the following corollary. Corollary 21.4.4. Let ν1 , . . . , νk represent the geometric multiplicities of the distinct eigenvalues of an n × n matrix A. Then
there exists a linearly independent set of n eigenvectors (of A) if and only if ki1 νi n. Eigenvectors that correspond to distinct eigenvalues are linearly independent (as indicated by Theorem 21.4.1). If the eigenvectors are eigenvectors of a symmetric matrix, then we can make the following, stronger statement. Theorem 21.4.5. If two eigenvectors x1 and x2 of an n × n symmetric matrix A correspond to different eigenvalues, then x1 and x2 are orthogonal (with respect to the usual inner product).
21.5 Diagonalization
531
Proof. Let λ1 and λ2 represent the eigenvalues to which x1 and x2 correspond. Then, by definition, Ax1 λ1 x1 and Ax2 λ2 x2 . Premultiplying both sides of the first of these two equalities by x2 and both sides of the second by x1 , we find that x2 Ax1 λ1 x2 x1 and x1 Ax2 λ2 x1 x2 . And, since A is symmetric, we have that λ1 x2 x1 x2 A x1 (x1 Ax2 ) (λ2 x1 x2 ) λ2 x2 x1 , implying that (λ1 − λ2 )x2 x1 0 and hence if λ1 λ2 that x2 x1 0. Thus, if Q.E.D. λ1 λ2 , then x1 and x2 are orthogonal.
21.5
Diagonalization
a. Definitions and some basic properties An n × n matrix A is said to be diagonalizable (or diagonable) if there exists an n × n nonsingular matrix Q such that Q−1 AQ D for some diagonal matrix D, in which case Q is said to diagonalize A (or A is said to be diagonalized by Q). Note (in connection with this definition) that Q−1 AQ D ⇔ AQ QD ⇔ A QDQ−1 .
(5.1)
Clearly, an n × n matrix is diagonalizable if and only if it is similar to a diagonal matrix. An n×n matrix A is said to be orthogonally diagonalizable if it is diagonalizable by an orthogonal matrix; that is, if there exists an n × n orthogonal matrix Q such that Q AQ is diagonal. The process of constructing an n × n nonsingular matrix that diagonalizes an n × n matrix A is referred to as the diagonalization of A. This process is intimately related to the process of finding eigenvalues and eigenvectors of A, as is evident from the following theorem. Theorem 21.5.1. Let A represent an n × n matrix. And suppose that there exists an n × n nonsingular matrix Q such that Q−1 AQ D for some diagonal matrix D; denote the first, . . . , nth columns of Q by q1 , . . . , qn , respectively, and the first, . . . , nth diagonal elements of D by d1 , . . . , dn , respectively. Then, (1) rank(A) equals the number of nonzero diagonal elements of D; (2) det(A) d1 d2 · · · dn ; (3) tr(A) d1 + d2 + · · · + dn ; (4) the characteristic polynomial of A is p(λ) (−1)n (λ − d1 )(λ − d2 ) · · · (λ − dn ) ; (5) the spectrum of A comprises the distinct scalars represented among the diagonal elements of D;
532
21. Eigenvalues and Eigenvectors
(6) the algebraic and geometric multiplicities of an eigenvalue λ of A equal the number of diagonal elements of D that equal λ; (7) the (not necessarily distinct) eigenvalues of A are the diagonal elements of D; and (8) the columns of Q are (linearly independent) eigenvectors of A (with the ith column qi corresponding to the eigenvalue di ). Proof. Upon recalling various results on diagonal matrices [specifically, result (4.5.14) and the results given by Corollaries 13.1.2, 21.2.2, and 21.2.4], Parts (1) – (7) of Theorem 21.5.1 follow from Theorem 21.3.1. That q1 , . . . , qn are eigenvectors of A [as claimed in Part (8)] is evident upon observing [in light of result (5.1)] that AQ QD (and that, for i 1, . . . , k, the ith columns of AQ and QD are, respectively, Aqi and di qi ). Q.E.D.
b. Necessary and sufficient conditions for a matrix to be diagonalizable If an n × n matrix A is diagonalizable by an n × n nonsingular matrix Q, then, according to Part (8) of Theorem 21.5.1, the columns of Q are (linearly independent) eigenvectors of A. The following theorem makes a stronger statement. Theorem 21.5.2. An n × n matrix A is diagonalizable by an n × n nonsingular matrix Q if and only if the columns of Q are (linearly independent) eigenvectors of A. Proof. In light of Part (8) of Theorem 21.5.1, it suffices to prove the “if part” of Theorem 21.5.2. Suppose that the columns q1 , . . . , qn of Q are eigenvectors of A. Then there exists a diagonal matrix D {di } such that AQ QD (as discussed in Section 1 and as is evident upon observing that, for i 1, . . . , n, the ith columns of AQ and QD are, respectively, Aqi and di qi ). We conclude [in light of result (5.1)] that Q diagonalizes A. Q.E.D. As an immediate consequence of Theorem 21.5.2, we have the following corollary. Corollary 21.5.3. An n × n matrix A is diagonalizable if and only if there exists a linearly independent set of n eigenvectors (of A). In light of Corollary 21.4.4 (and of Corollary 21.3.8), we have the following, additional corollary. Corollary 21.5.4. An n × n matrix A, whose spectrum comprises k eigenvalues with
geometric multiplicities ν1 , . . . , νk , respectively, is diagonalizable if and only if ki1 νi n or, equivalently, if and only if the geometric multiplicities of the k or k − 1 nonzero distinct eigenvalues (of A) sum to rank(A).
21.5 Diagonalization
533
c. A basic result on symmetric matrices In Subsection d, the discussion of the diagonalization of matrices is specialized to the diagonalization of symmetric matrices. The results of Subsection d depend in a fundamental way on the following property of symmetric matrices. Theorem 21.5.5. Every symmetric matrix has an eigenvalue. The conventional way of proving this theorem (e.g., Searle 1982, chap. 11) is to implicitly or explicitly use the fundamental theorem of algebra to establish that the characteristic polynomial of any (square) matrix has a possibly complex root and to then show that if the matrix is symmetric, this root is necessarily real. The resultant proof is accessible only to those who are at least somewhat knowledgeable about complex numbers. Moreover, the fundamental theorem of algebra is a very deep result — its proof is well beyond the scope and mathematical level of our presentation. Here, we take a different approach. This approach consists of establishing the following theorem, of which Theorem 21.5.5 is an immediate consequence. Theorem 21.5.6. Let A represent an n × n matrix. Then, there exist nonnull vectors x1 and x2 such that x1 Ax1 x2 Ax2 x Ax ≤ ≤ x1 x1 x x x2 x2 for every nonnull vector x in Rn (or, equivalently, such that x1 Ax1 /x1 x1 minx0 x Ax/x x and x2 Ax2 /x2 x2 maxx0 x Ax/x x). Moreover, if A is symmetric, then x1 Ax1 /x1 x1 and x2 Ax2 /x2 x2 are eigenvalues of A — in fact, they are, respectively, the smallest and largest eigenvalues of A — and x1 and x2 are eigenvectors corresponding to x1 Ax1 /x1 x1 and x2 Ax2 /x2 x2 , respectively. Proof. Let x represent an n×1 vector of variables, and define S {x : x x 1}. The quadratic form x Ax is a continuous function of x, and the set S is closed and bounded. Since any continuous function attains a maximum value and a minimum value over any closed and bounded subset of its domain (e.g., Bartle 1976, thm. 22.6; Magnus and Neudecker 1988, thm. 7.1), S contains vectors x1 and x2 such that x1 Ax1 ≤ x Ax ≤ x2 Ax2 for every x in S. Moreover, for any nonnull x (in Rn ), (x x)−1/2 x ∈ S and [(x x)−1/2 x] A[(x x)−1/2 x] x Ax/x x . Thus,
x1 Ax1 x Ax2 x Ax x1 Ax1 ≤ ≤ x2 Ax2 2 (5.2) xx x1 x1 x2 x 2 for every nonnull x. Now, suppose that A is symmetric. Then, in light of results (15.2.13) and (15.3.7), we find that (for nonnull x)
∂x Ax ∂x x ∂(x Ax/x x) (x x)−2 (x x) − (x Ax) ∂x ∂x ∂x
(x x)−2 [(x x)2Ax − (x Ax)2x] .
534
21. Eigenvalues and Eigenvectors
Moreover, x Ax/x x attains (for x 0) minimum and maximum values at x1 and x2 , respectively [as is evident from result (5.2)], so that ∂(x Ax/x x)/∂x 0 for x x1 and x x2 . Thus, for x x1 and x x2 , (x x)2Ax − (x Ax)2x 0 , or, equivalently,
Ax (x Ax/x x)x .
We conclude that x1 Ax1 /x1 x1 and x2 Ax2 /x2 x2 are eigenvalues of A and that x1 and x2 are eigenvectors that correspond to x1 Ax1 /x1 x1 and x2 Ax2 /x2 x2 , respectively. Q.E.D.
d. Orthogonal diagonalization Let A represent an n × n matrix, and suppose that there exists an orthogonal matrix Q such that Q AQ D for some diagonal matrix D. Then, since [in light of result (5.1)] A QDQ , A (QDQ ) QD Q QDQ A . Thus, a necessary condition for A to be orthogonally diagonalizable is that A be symmetric (so that while certain nonsymmetric matrices are diagonalizable, they are not orthogonally diagonalizable). This condition is also sufficient, as indicated by the following theorem. Theorem 21.5.7. Every symmetric matrix is orthogonally diagonalizable. Proof. The proof is by mathematical induction. Clearly, every 1 × 1 matrix is orthogonally diagonalizable. Suppose now that every (n − 1) × (n − 1) symmetric matrix is orthogonally diagonalizable (where n ≥ 2). Then it suffices to show that every n × n symmetric matrix is orthogonally diagonalizable. Let A represent an n × n symmetric matrix. And let λ represent an eigenvalue of A (the existence of which is guaranteed by Theorem 21.5.5), and u represent an eigenvector of (usual) norm 1 that corresponds to λ. Then, according to Corollary 21.3.3, (u, V) A(u, V) diag(λ, V AV) for some n × (n − 1) matrix V such that the n × n matrix (u, V) is orthogonal. Clearly, V AV is a symmetric matrix of order n − 1, so that (by supposition) there exists an orthogonal matrix R such that R (V AV)R F for some diagonal matrix F. Define S diag(1, R) and P (u, V)S. Then, S S diag(1, R R) diag(1, In−1 ) In , so that S is orthogonal and hence (according to Lemma 8.4.1) P is orthogonal. Further, P AP S (u, V) A(u, V)S S diag(λ, V AV)S diag(λ, R V AVR) diag(λ, F),
21.5 Diagonalization
535
so that P AP equals a diagonal matrix. Thus, A is orthogonally diagonalizable. Q.E.D. The following corollary (of Theorem 21.5.7) can be deduced from Corollaries 21.5.4 and 21.3.7 (or from Theorem 21.5.1). Corollary 21.5.8. Let A represent an n × n symmetric matrix that has k distinct eigenvalues λ1 , . . . , λk with algebraic multiplicities γ1 ,
. . . , γk , respectively, and
geometric multiplicities ν1 , . . . , νk , respectively. Then, ki1 γi ki1 νi n, and (for i 1, . . . , k) νi γi . As a further corollary of Theorem 21.5.7, we have the following result. Corollary 21.5.9. Let A represent an n × n symmetric matrix, and let d1 , . . . , dn represent the (not necessarily distinct) eigenvalues of A (in arbitrary order). Then, there exists an n × n orthogonal matrix Q such that Q AQ diag(d1 , . . . , dn ) . Proof. According to Theorem 21.5.7, there exists an n × n orthogonal matrix R such that R AR F for some diagonal matrix F {fi }. It follows from Part (7) of Theorem 21.5.1 that there exists some permutation k1 , . . . , kn of the first n positive integers 1, . . . , n such that (for i 1, . . . , n) di fki . Now, let Q RP, where P is the n × n permutation matrix whose first, . . . , nth columns are, respectively, the k1 , . . . , kn th columns of In . Then, since a permutation matrix is orthogonal, Q is (in light of Lemma 8.4.1) orthogonal. Further, Q AQ P R ARP P FP diag(d1 , . . . , dn ) . Q.E.D. Let A represent an n × n symmetric matrix. Then, according to Theorem 21.5.7, there exists an orthogonal matrix that diagonalizes A. There also exist nonorthogonal matrices that diagonalize A. If A has n distinct eigenvalues, then it follows from Theorem 21.4.5 that the columns of any diagonalizing matrix are orthogonal [since, according to Part (8) of Theorem 21.5.1, they are necessarily eigenvectors]. However, the norms of these columns need not equal one. More generally, if λ is an eigenvalue of A of multiplicity ν, then we can include as columns of the diagonalizing matrix any ν linearly independent eigenvectors that correspond to λ. We need not choose these ν linearly independent eigenvectors to be orthonormal or even (if ν > 1) orthogonal. The (usual) norm of a symmetric matrix can be expressed in terms of its eigenvalues, as described in the following theorem. Theorem 21.5.10. For any n × n symmetric matrix A, 1/2 n 2 A di , i1
where d1 , . . . , dn are the (not necessarily distinct) eigenvalues of A (and where the norm is the usual norm). Proof. According to Corollary 21.5.9, there exists an n × n orthogonal matrix Q such that Q AQ D, where D diag(d1 , . . . , dn ). Thus, making use of Lemma
536
21. Eigenvalues and Eigenvectors
5.2.1, we find that A2 tr(A A)
tr(AA) tr(AIn AIn )
tr(AQQ AQQ )
tr(Q AQQ AQ)
tr(D2 ) tr[diag(d12 , . . . , dn2 )]
n i1
di2 . Q.E.D.
e. Orthogonal “triangularization” Let A represent an n × n matrix. If A is nonsymmetric, then there does not exist any n×n orthogonal matrix that diagonalizes A. However, there may exist an n×n orthogonal matrix that “triangularizes” A, as indicated by the following theorem. Theorem 21.5.11. Let A represent an n × n matrix whose distinct eigenvalues have algebraic multiplicities that sum to n, and let d1 , . . . , dn represent the notnecessarily-distinct eigenvalues of A (in arbitrary order). Then there exists an n×n orthogonal matrix Q such that Q AQ T , where T is an (n×n) upper triangular matrix whose first, . . . , nth diagonal elements are d1 , . . . , dn , respectively. Proof. The proof is by mathematical induction. Clearly, the theorem is valid for any 1 × 1 matrix. Suppose now that it is valid for any (n − 1) × (n − 1) matrix whose distinct eigenvalues have algebraic multiplicities that sum to n − 1 (where n ≥ 2), and consider the validity of the theorem for an n × n matrix A whose algebraic multiplicities sum to n and whose (not necessarily distinct) eigenvalues are d1 , . . . dn . Let u represent an eigenvector (of A) of (usual) norm 1 that corresponds to d1 . Then, according to Corollary 21.3.3, d1 u AV (u, V) A(u, V) 0 V AV for some n × (n − 1) matrix V such that the n × n matrix (u, V) is orthogonal. Moreover, it follows from Theorem 21.3.1 and Lemma 21.2.1 that the algebraic multiplicities of the distinct eigenvalues of the (n − 1) × (n − 1) matrix V AV sum to n − 1 and that the (not necessarily distinct) eigenvalues of V AV are d2 , . . . , dn . Thus, by supposition, there exists an orthogonal matrix R such that R (V AV)R T∗ , where T∗ is an (n − 1) × (n − 1) upper triangular matrix whose first, . . . , (n − 1)th diagonal elements are d2 , . . . , dn , respectively. Now, define S diag(1, R) and Q (u, V)S. Then, S S diag(1, R R) diag(1, In−1 ) In ,
21.5 Diagonalization
537
so that S is orthogonal and hence (according to Lemma 8.4.1) Q is orthogonal. Further, d1 u AV 1 0 1 0 Q AQ S (u, V) A(u, V)S 0 V AV 0 R 0 R d1 u AVR d1 u AVR . 0 R V AVR 0 T∗
d1 u AVR And, upon observing that is an (n × n) upper triangular matrix 0 T∗ whose first, . . . , nth diagonal elements are d1 , . . . , dn , respectively, the induction argument is complete. Q.E.D. Let A represent an n × n matrix. If there exists an orthogonal matrix Q such that Q AQ T for some upper triangular matrix T, then the diagonal elements of T are the not-necessarily-distinct eigenvalues of A, as is evident from Part (4) of Corollary 21.2.2 and Part (7) of Theorem 21.3.1. Theorem 21.5.11 indicates that a sufficient (as well as necessary) condition for the existence of such an orthogonal matrix Q is that the algebraic multiplicities of the not-necessarilydistinct eigenvalues of A sum to n and also indicates that (when this condition is satisfied) Q can be chosen so that the order in which the eigenvalues (of A) appear as diagonal elements of the triangular matrix T is arbitrary. Note (in light of Corollary 21.5.8) that Theorem 21.5.11 is applicable to any symmetric matrix. In the special case where the matrix A in Theorem 21.5.11 is symmetric, the triangular matrix T is a diagonal matrix (since if A is symmetric, Q AQ is symmetric and hence T is symmetric). Thus, in this special case, Theorem 21.5.11 simplifies to Corollary 21.5.9.
f. Spectral decomposition (of a symmetric matrix) Let A represent an n×n symmetric matrix. And let Q represent an n×n orthogonal matrix and D {di } an n×n diagonal matrix such that Q AQ D — the existence of such matrices is guaranteed by Theorem 21.5.7. Or, equivalently, let Q represent an n × n matrix whose columns are orthonormal (with respect to the usual inner product) eigenvectors of A, and take D {di } to be the diagonal matrix whose first, . . . , nth diagonal elements d1 , . . . , dn are the eigenvalues (of A) to which the first, . . . , nth columns of Q correspond — the equivalence is evident from Theorems 21.5.1 and 21.5.2. Further, denote the first, . . . , nth columns of Q by q1 , . . . , qn , respectively. In light of result (5.1), A can be expressed as A QDQ or as A
n i1
di qi qi .
(5.3)
(5.4)
538
21. Eigenvalues and Eigenvectors
And, letting λ1 , . . . , λk represent the distinct eigenvalues of A, letting ν1 , . . . νk represent the (algebraic or geometric) multiplicities of λ1 , . . . , λk , respectively, and (for j 1, . . . , k) letting Sj {i : di λj } represent the set comprising the νj values of i such that di λj , A can also be expressed as A
k
λj Ej ,
(5.5)
j 1
where (for j 1, . . . , k) Ej i∈Sj qi qi . Expression (5.5) is called the spectral decomposition or spectral representation of the n × n symmetric matrix A. [Sometimes the term spectral decomposition is used also in reference to expression (5.3) or (5.4).]
The decomposition A kj 1 λj Ej is unique (aside from the ordering of the
terms), whereas (in general) the decomposition A ni1 di qi qi is not. To see
this (i.e., the uniqueness of the decomposition A kj 1 λj Ej ), suppose that P ∗ is an n × n orthogonal matrix and D {di∗ } an n × n diagonal matrix such that P AP D∗ (where P and D∗ are possibly different from Q and D). Further, denote the first, . . . , nth columns of P by p1 , . . . , pn , respectively, and (for j 1, . . . , k)
let Sj∗ {i : di∗ λj }. Then, analogous to the decomposition A kj 1 λj Ej , we have the decomposition k λj Fj , A
j 1
where (for j 1, . . . , k) Fj i∈Sj∗ pj pj . Now, for j 1, . . . , k, let Qj (qi1 , . . . , qiνj ) and Pj (pi1∗ , . . . , piν∗ ), j where i1 , . . . , iνj and i1∗ , . . . , iν∗j are the elements of Sj and Sj∗ , respectively. Then, C(Pj ) N (A − λj I) C(Qj ), so that Pj Qj Lj for some νj × νj matrix Lj . Moreover, since clearly Qj Qj Iνj and Pj Pj Iνj , Lj Lj Lj Qj Qj Lj Pj Pj I , implying that Lj is an orthogonal matrix. Thus, Fj Pj Pj Qj Lj Lj Qj Qj IQj Qj Qj Ej .
We conclude that the decomposition A kj 1 λj Fj is identical to the decom k
position A j 1 λj Ej , and hence that the decomposition A kj 1 λj Ej is unique (aside from the ordering of terms). The spectral decomposition of the mth power Am of the n × n symmetric matrix A (where m is a positive integer) and (if A is nonsingular) the spectral decomposition of A−1 are closely related to the spectral decomposition of A itself. It follows from Lemma 21.1.3 that q1 , . . . , qn are eigenvectors of Am and (if A is nonsingular) of A−1 (as well as of A) and that the eigenvalues to which they correspond are d1m , . . . , dnm (in the case of Am ) and d1−1 , . . . , dn−1
21.6 Expressions for the Trace and Determinant of a Matrix
539
(in the case of A−1 ). Thus, the spectral decompositions of Am and A−1 can be obtained from that of A by replacing each eigenvalue of A by its mth power or by its reciprocal. More explicitly, observing that Dm diag(d1m , . . . , dnm ) and D−1 diag(d1−1 , . . . , dn−1 ), the spectral decompositions of Am and A−1 are n k Am QDm Q dim qi qi λm (5.6) j Ej , i1
A−1 QD−1 Q
n i1
21.6
j 1
di−1 qi qi
k j 1
λ−1 j Ej .
(5.7)
Expressions for the Trace and Determinant of a Matrix
Theorem 21.5.1 gives various results on n × n diagonalizable matrices or, equivalently (in light of Corollary 21.5.4), on n × n matrices whose distinct eigenvalues have geometric multiplicities that sum to n. Included among these results are expressions for the determinant and the trace of such a matrix. These expressions [which are Parts (2) and (3) of Theorem 21.5.1] are in terms of the eigenvalues. They can be extended to a broader class of matrices, as indicated by the following theorem. Theorem 21.6.1. Let A represent an n × n matrix having distinct eigenvalues λ1 , . . . λk with algebraic multiplicities γ1 , . . . , γk , respectively, that sum to n or, equivalently, having n not-necessarily-distinct eigenvalues d1 , . . . , dn . Then, det(A)
n
di
i1
tr(A)
n
di
i1
k
(6.1)
γj λ j .
(6.2)
j 1 k
γ
λj j ,
j 1
Proof. As a consequence of Theorem 21.5.11, there exists an n × n orthogonal matrix Q such that Q AQ T, where T is an (n × n) upper triangular matrix whose diagonal elements are d1 , . . . , dn , respectively. Then, recalling Corollary 13.3.6, result (13.3.9), and Lemmas 13.2.1 and 13.1.1, we find that |A| |Q|2 |A| |Q AQ| |T|
n
di .
i1
And, recalling Lemma 5.2.1, we find that tr(A) tr(AIn ) tr(AQQ ) tr(Q AQ) tr(T)
n i1
di . Q.E.D.
540
21. Eigenvalues and Eigenvectors
There is an alternative way of proving Theorem 21.6.1. Again take Q to be an n × n orthogonal matrix such that Q AQ T, where T is a triangular matrix whose diagonal elements are d1 , . . . , dn . And, recall (from Section 1) that the characteristic polynomial of A is p(λ) c0 + c1 λ + · · · + cn−1 λn−1 + cn λn , with first and next-to-last coefficients that are expressible as cn−1 (−1)n−1 tr(A) .
c0 |A| ,
(6.1)
Clearly, T is similar to A and hence (according to Theorem 21.3.1) has the same characteristic polynomial as A. Thus, recalling Lemma 13.1.1, we find that c0 |T|
n
di ,
cn−1 (−1)n−1 tr(T) (−1)n−1
i1
n
di .
i1
And, upon comparing these $ expressions for c0 and cn−1 with those in result (6.1), we conclude that |A| ni1 di and that tr(A) ni1 di .
21.7
Some Results on the Moore-Penrose Inverse of a Symmetric Matrix
The following lemma relates the eigenvalues and eigenvectors of the MoorePenrose inverse of an n × n symmetric matrix A to those of A itself. Lemma 21.7.1. Let λ represent an eigenvalue of an n × n symmetric matrix A, and let x represent any eigenvector (of A) corresponding to λ. Further, define % 1/λ, if λ 0, + λ 0, if λ 0. Then λ+ is an eigenvalue of A+ , and x is an eigenvector of A+ corresponding to λ+ . Proof. By definition, Ax λx. If λ 0, then x λ−1 Ax, and, upon observing (in light of Theorem 20.5.3) that A+ is symmetric and hence that A+ A (A+ A) A (A+ ) AA+ , we find that A+ x A+ (λ−1 Ax) λ−1 A+ Ax
λ−1 AA+ x λ−1 AA+ (λ−1 Ax)
(λ−1 )2 AA+ Ax
(λ−1 )2 Ax λ−1 (λ−1 Ax) λ−1 x .
Alternatively, if λ 0, then Ax 0, and hence [since, according to Theorem 20.5.1, N (A+ ) N (A)] A+ x 0 0x. Q.E.D.
21.8 Eigenvalues of Orthogonal, Idempotent, and Nonnegative Definite Matrices
541
Let A represent an n×n symmetric matrix. And, as in Section 5f, let Q represent an n × n orthogonal matrix and D {di } an n × n diagonal matrix such that Q AQ D; or, equivalently, let Q represent an n × n matrix whose columns are orthonormal eigenvectors of A, and take D {di } to be the diagonal matrix whose first, . . . , nth diagonal elements d1 , . . . , dn are the eigenvalues (of A) to which the first, . . . , nth columns of Q correspond. Further, denote the first, . . . , nth columns of Q by q1 , . . . , qn , respectively; let λ1 ,
. . . , λk represent the distinct eigenvalues of A; and (for j 1, . . . , k) let Ej i∈Sj qj qj , where Sj {i : di λj }. Then, by definition, the spectral decomposition of A is A QDQ
n i1
di qi qi
k
λj Ej .
j 1
The spectral decomposition of the Moore-Penrose inverse A+ of the n × n symmetric matrix A is closely related to that of A itself. Letting % 1/di , if di 0, + di 0, if di 0 (for i 1, . . . , n), it follows from Lemma 21.7.1 that q1 , . . . , qn are eigenvectors of A+ and that the eigenvalues to which they correspond are d1+ , . . . , dn+ . Thus, the spectral decomposition of A+ can be obtained from that of A by replacing each nonzero eigenvalue of A by its reciprocal. More explicitly, observing (in light of the results of Section 20.2) that D+ diag(d1+ , . . . , dn+ ) and letting (for j 1, . . . , k) % 1/λj , if λj 0, + λj 0, if λj 0, the spectral decomposition of A+ is A+ QD+ Q
n i1
21.8
di+ qi qi
k j 1
λ+ j Ej .
(7.1)
Eigenvalues of Orthogonal, Idempotent, and Nonnegative Definite Matrices
The following two theorems characterize the eigenvalues of orthogonal matrices and idempotent matrices. Theorem 21.8.1. If a scalar (real number) λ is an eigenvalue of an n × n orthogonal matrix P, then λ ±1. Proof. Suppose that λ is an eigenvalue of P. Then, by definition, there exists a nonnull vector x such that Px λx, and, consequently, x x x In x x P Px (Px) Px (λx) (λx) λ2 x x .
(8.1)
542
21. Eigenvalues and Eigenvectors
Since x 0, we have that x x 0, and, upon dividing both sides of equality (8.1) by x x, we find that λ2 1 or, equivalently, that λ ±1. Q.E.D. Theorem 21.8.2. An n × n idempotent matrix A has no eigenvalues other than 0 or 1. Moreover, 0 is an eigenvalue of A if and only if A In , in which case it has a geometric and algebraic multiplicity of n−rank(A). Similarly, 1 is an eigenvalue of A if and only if A 0, in which case it has a geometric and algebraic multiplicity of rank(A). And, the geometric and algebraic multiplicities of the (one or two) distinct eigenvalues of A sum to n. Proof. Suppose that a scalar λ is an eigenvalue of A. Then, by definition, there exists a nonnull vector x such that Ax λx, and, consequently, λx Ax A2 x A(Ax) A(λx) λAx λ2 x . Since x 0, it follows that λ2 λ, or, equivalently, that λ(λ − 1) 0, and hence that λ 0 or λ 1. Moreover, if A In , then (in light of Lemma 21.1.1) 0 is not an eigenvalue of A. Alternatively, if A In , then (according to Lemma 10.1.1) A is singular, and it follows from Lemma 21.1.1 that 0 is an eigenvalue of A of geometric multiplicity n − rank(A). Similarly, if A 0, then there exists no nonnull vector x such that Ax= x, and, consequently, 1 is not an eigenvalue of A. Alternatively, if A 0, then (in light of Lemma 10.2.4) rank(A − 1I) rank[−(I − A)] rank(I − A) n − rank(A) < n , implying that 1 is an eigenvalue of A and that its geometric multiplicity is n − rank(A − 1I) rank(A). And if A In or A 0, then A has one distinct eigenvalue (1 or 0) of geometric multiplicity n; otherwise, A has two distinct eigenvalues (0 and 1) with geometric multiplicities [n − rank(A) and rank(A)] that sum to n. It remains only to observe (on the basis of Corollary 21.3.7) that the algebraic multiplicities of the distinct eigenvalues of A equal the geometric multiplicities. Q.E.D. Idempotent matrices of order n have a maximum of two distinct eigenvalues, and the geometric multiplicities of their distinct eigenvalues sum to n. Orthogonal matrices of order n also have a maximum of two distinct eigenvalues; however, the geometric (or algebraic) multiplicities of their distinct eigenvalues do not necessarily sum to n. In fact, for any positive integer n that is divisible by 2, there exist n × n orthogonal matrices that have no eigenvalues (i.e., whose characteristic polynomials have no real roots). In the special case of an n × n symmetric matrix or other n × n diagonalizable matrix, the first part of Theorem 21.8.2 can be equipped with a converse and restated as the following theorem. Theorem 21.8.3. An n × n symmetric matrix A or, more generally, an n × n diagonalizable matrix A is idempotent if and only if it has no eigenvalues other than 0 or 1. Proof. It suffices to prove the “if” part of the theorem — the “only if” part is a direct consequence of the first part of Theorem 21.8.2.
21.9 Square Root of a Symmetric Nonnegative Definite Matrix
543
Suppose that A has no eigenvalues other than 0 or 1. By definition, there exists an n × n nonsingular matrix Q such that Q−1 AQ D for some n × n diagonal matrix D. And, according to Part (7) of Theorem 21.5.1, the diagonal elements of D are the (not necessarily distinct) eigenvalues of A. Thus, every diagonal element of D equals 0 or 1, implying that D2 D. Further, A QQ−1 AQQ−1 QDQ−1 , and it follows that A2 QDQ−1 QDQ−1 QD2 Q−1 QDQ−1 A . Q.E.D. The following theorem characterizes the eigenvalues of nonnegative definite matrices and positive definite matrices. Theorem 21.8.4. Every eigenvalue of a nonnegative definite matrix is nonnegative; every eigenvalue of a positive definite matrix is positive. Proof. Let λ represent an eigenvalue of a (square) matrix A, and let x represent an eigenvector of A corresponding to λ. Then, by definition, x 0, and, consequently, x x > 0. Further, x Ax λ xx (as discussed in Section 1 and as is evident upon observing that Ax λx and hence that x Ax λx x). Now, if A is nonnegative definite, then x Ax ≥ 0, and consequently λ ≥ 0. And, Q.E.D. if A is positive definite, then x Ax > 0, and consequently λ > 0. The following theorem gives conditions that can be used to determine whether a symmetric matrix is nonnegative definite and, if so, whether the matrix is positive definite or positive semidefinite. Theorem 21.8.5. An n × n symmetric matrix A is nonnegative definite if and only if every eigenvalue of A is nonnegative, is positive definite if and only if every eigenvalue of A is (strictly) positive, and is positive semidefinite if and only if every eigenvalue of A is nonnegative and at least one eigenvalue is zero. Proof. The theorem follows immediately from Corollary 14.2.15 upon recalling (from Section 5) that A QDQ , where Q is an n × n orthogonal matrix and D is an n×n diagonal matrix whose diagonal elements are the (not necessarily distinct) eigenvalues of A. Q.E.D.
21.9 Square Root of a Symmetric Nonnegative Definite Matrix A symmetric nonnegative definite matrix can be decomposed in the way described in the following theorem. Theorem 21.9.1. Corresponding to any n × n symmetric nonnegative definite matrix A, there exists an n × n symmetric nonnegative definite matrix R such that A R2 . Moreover, R is unique and is expressible as R Q diag( d1 , . . . , dn )Q ,
(9.1)
544
21. Eigenvalues and Eigenvectors
where d1 , . . . , dn are the (not necessarily distinct) eigenvalues of A and, letting D diag(d1 , . . . , dn ), Q is any n × n orthogonal matrix such that Q AQ D or, equivalently, such that A QDQ . Note that in Theorem 21.9.1 it is implicitly assumed that the eigenvalues of A are nonnegative and that there exists an n × n orthogonal matrix Q such that Q AQ D. The justification for these assumptions comes from Theorem 21.8.5 and Corollary 21.5.9. √ √ √ √ Proof. Let S diag( d1 , . . . , dn ), so that Q diag( d1 , . . . , dn )Q QSQ . Then, (QSQ )2 QSIn SQ QS2 Q QDQ A . Moreover, QSQ is symmetric and nonnegative definite (as is evident from Corollary 14.2.15). It remains to establish the uniqueness of QSQ ; that is, to show that there is no n × n symmetric nonnegative definite matrix other than QSQ with a “squared value” equal to A. Let R represent any n × n symmetric nonnegative definite matrix such that A R2 . Then, (R − QSQ ) (R − QSQ )
(R − QSQ )(R − QSQ ) R2 − QSQ R − RQSQ + (QSQ )2 2A − QSQ R − (QSQ R) .
Thus, to establish the uniqueness of QSQ , it suffices to show that QSQ R A [since then (R − QSQ ) (R − QSQ ) 0, implying that R − QSQ 0 or, equivalently, that R QSQ ]. Since R is symmetric, there exists an n × n orthogonal matrix P and an n × n diagonal matrix T {ti } such that R PTP . And, we find that Q PT2
Q PTIn TIn Q PTP PTP P Q R2 P Q AP
Q (QSQ )2 P In SIn SQ P S2 Q P .
Now, for i, j 1, . . . , n, let bij represent the ij th element of Q P, and observe that the ij th elements of Q PT2 and S2 Q P are, respectively, tj2 bij and di bij . So, we have that tj2 bij di bij . And, since (in light of Corollary 14.2.15) tj ≥ 0, it √ √ follows that tj bij di bij . (If bij 0, then tj bij 0√ di bij ; alternatively, √ if bij 0, then tj2 bij di bij ⇒ tj2 di ⇒ tj di ⇒ tj bij di bij .) √ Moreover, tj bij and di bij are the ij th elements of Q PT and SQ P, respectively. Thus, Q PT SQ P, and, consequently, QSQ R QSQ PTP QSSQ PP QDQ In A . Q.E.D. The n × n symmetric nonnegative definite matrix R given by expression (9.1) is called the square root of the n × n symmetric nonnegative definite matrix A and is
21.10 Some Relationships
545
denoted by the symbol A1/2 . Note that if the matrix A is positive definite, then (as a consequence of Theorem 21.8.5) its eigenvalues d1 , . . . , dn are (strictly) positive, implying (in light of Corollary 14.2.15) that the matrix R is positive definite. Thus, the square root of a symmetric positive definite matrix is positive definite.
21.10
Some Relationships
Let A represent an n × n matrix, and let k represent an arbitrary scalar. The eigenvalues and eigenvectors of the difference A − kIn and of the scalar multiple kA are related to those of A itself in a relatively simple way. Clearly, the condition Ax λx (where λ is a scalar and x a vector) is equivalent to the condition (A − kI)x (λ − k)x. Thus, a scalar λ is an eigenvalue of A if and only if λ − k is an eigenvalue of A − kI. And an n × 1 vector x is an eigenvector of A corresponding to the eigenvalue λ (of A) if and only if x is an eigenvector of A − kI corresponding to the eigenvalue λ − k (of A − kI). Moreover, for any scalar λ, |A − λI| |A − kI − (λ − k)I| , so that the characteristic polynomials, say p(·) and q(·), of A and A − kI, respectively, are such that (for all λ) p(λ) q(λ − k). And the algebraic and geometric multiplicities of an eigenvalue λ of A are the same as those of the corresponding eigenvalue λ − k of A − λI. If k 0, then kA has only one distinct eigenvalue (namely, 0), any nonnull n×1 vector is an eigenvector of kA, the characteristic polynomial of kA is r(λ) (−λ)n , and the algebraic and geometric multiplicities of the eigenvalue 0 (of kA) equal n. Suppose now that k 0. Then the condition Ax λx (where λ is a scalar and x a vector) is equivalent to the condition kAx kλx. Thus, a scalar λ is an eigenvalue of A if and only if kλ is an eigenvalue of kA. And, an n × 1 vector x is an eigenvector of A corresponding to the eigenvalue λ (of A) if and only if x is an eigenvector of kA corresponding to the eigenvalue kλ (of kA). Moreover, for any scalar λ, |A − λI| k −n |kA − kλI| , so that the characteristic polynomials, say p(·) and r(·) of A and kA, respectively, are such that (for all λ) p(λ) k −n q(kλ). And the algebraic and geometric multiplicities of an eigenvalue λ of A are the same as those of the corresponding eigenvalue kλ of kA. The following theorem relates the eigenvalues and eigenvectors of the n × n product BA of an n × m matrix B and an m × n matrix A to those of the m × m product AB. Theorem 21.10.1. Let A represent an m × n matrix and B an n × m matrix. Then,
546
21. Eigenvalues and Eigenvectors
(1) the characteristic polynomials, say q(λ) and p(λ) of BA and AB, respectively, are such that (for all λ) q(λ) (−λ)n−m p(λ), (−λ)m−n q(λ) p(λ), or q(λ) p(λ), depending on whether m < n, m > n, or m n; (2) the nonzero distinct eigenvalues and nonzero not-necessarily-distinct eigenvalues of BA are the same as those of AB; (3) for any matrix X whose columns are linearly independent eigenvectors of AB corresponding to a nonzero eigenvalue λ, the columns of BX are linearly independent eigenvectors of BA corresponding to λ; and, similarly, for any matrix Y whose columns are linearly independent eigenvectors of BA corresponding to a nonzero eigenvalue λ, the columns of AY are linearly independent eigenvectors of AB corresponding to λ; (4) each nonzero eigenvalue of AB (or, equivalently, of BA) has the same algebraic and geometric multiplicities when regarded as an eigenvalue of BA as when regarded as an eigenvalue of AB; and (5) the algebraic multiplicity of 0 when 0 is regarded as an eigenvalue (or potential eigenvalue) of BA equals n − m plus the algebraic multiplicity of 0 when 0 is regarded as an eigenvalue (or potential eigenvalue) of AB. Proof. (1) Making use of Corollaries 13.2.4 and 18.1.2, we find that, for λ 0, p(λ) |AB − λIm | (−λ)m |Im − λ−1 AB| and q(λ) |BA − λIn | (−λ)n |In − λ−1 BA| (−λ)n |Im − λ−1 AB| . Thus, for λ 0, q(λ) (−λ)n−m p(λ), (−λ)m−n q(λ) p(λ), and, in the special case where m n, q(λ) p(λ). And the proof of Part (1) is complete upon observing that if two polynomials in λ are equal for all λ in some nondegenerate interval, then they are equal for all λ — refer to Theorem 21.A.5 (in the Appendix) or, alternatively, upon observing that if m < n, then BA is singular and hence q(0) 0; that if m > n, then AB is singular and hence p(0) 0; and that if m n, then q(0) |BA| |A| |B| |AB| p(0). (2) Part (2) is an almost immediate consequence of Part (1). (3) By definition, ABX λX . Thus, rank(X) ≥ rank(BX) ≥ rank(ABX) rank(λX) rank(X) , so that rank(BX) rank(X) and consequently (since BX has the same number of columns as X) the columns of BX are linearly independent. Moreover, BA(BX) B(ABX) B(λX) λBX ,
21.11 Eigenvalues and Eigenvectors of Kronecker Products of (Square) Matrices
547
implying (since the columns of BX are linearly independent and hence nonnull) that the columns of BX are eigenvectors of BA corresponding to λ. That the columns of AY are linearly independent eigenvectors of AB corresponding to λ follows from an analogous argument. (4) It follows from Part (3) that, for each nonzero eigenvalue λ of AB (or, equivalently, of BA), dim[N (BA − λI)] ≥ dim[N (AB − λI)] and dim[N (AB − λI)] ≥ dim[N (BA−λI)] and hence dim[N (BA−λI)] dim[N (AB−λI)]. Thus, λ has the same geometric multiplicity when regarded as an eigenvalue of BA as when regarded as an eigenvalue of AB. That λ has the same algebraic multiplicity when regarded as an eigenvalue of BA as when regarded as an eigenvalue of AB is evident from Part (1). (5) Part (5) is an almost immediate consequence of Part (1). Q.E.D. In the special case where B A , the results of Theorem 21.10.1 can be augmented by the following result. Lemma 21.10.2. For any m × n matrix A, the geometric multiplicity of 0 when 0 is regarded as an eigenvalue (or potential eigenvalue) of A A equals n − m plus the geometric multiplicity of 0 when 0 is regarded as an eigenvalue (or potential eigenvalue) of AA . Proof. Making use of result (1.1) (or Lemma 11.3.1) and of Corollary 7.4.5, we find that dim[N (A A − 0In )] n − rank(A A) n − rank(A) and that dim[N (AA − 0Im )] m − rank(AA ) m − rank(A) . Thus,
dim[N (A A − 0In )] n − m + dim[N (AA − 0Im )] . Q.E.D.
21.11
Eigenvalues and Eigenvectors of Kronecker Products of (Square) Matrices
Eigenvalues and eigenvectors of a Kronecker product A⊗B of two square matrices A and B can be obtained by combining eigenvalues and eigenvectors of A with eigenvalues and eigenvectors of B in the way described in the following theorem. Theorem 21.11.1. Let λ represent an eigenvalue of an m × m matrix A, and let x represent an eigenvector of A corresponding to λ. Similarly, let τ represent an eigenvalue of a p × p matrix B, and let y represent an eigenvector of B corresponding to τ . Then, λτ is an eigenvalue of A ⊗ B, and x ⊗ y is an eigenvector of A ⊗ B corresponding to λτ . Proof. By definition, Ax λx, and By τ y. Thus, (A ⊗ B)(x ⊗ y) (Ax) ⊗ (By) (λx) ⊗ (τ y) λτ (x ⊗ y) . Moreover, x ⊗ y is clearly nonnull.
Q.E.D.
548
21. Eigenvalues and Eigenvectors
In connection with Theorem 21.11.1, it should be noted that A ⊗ B may have eigenvectors that are not expressible as the Kronecker product x ⊗ y of an eigenvector x of A and an eigenvector y of B. Following Magnus and Neudecker (1988, 0 1 1 p. 29), suppose, for example, that B A , and let e1 and 0 0 0 0 e2 . Then, A (or B) has only one distinct eigenvalue, namely 0; and every 1 eigenvector of A (or of B) is a scalar multiple of e1 . And, in accordance with Theorem 21.11.1, 0 is an eigenvalue of A ⊗ B, and e1 ⊗ e1 is an eigenvector of A ⊗ B corresponding to 0. However, e1 ⊗ e2 and e2 ⊗ e1 are also eigenvectors of A ⊗ B corresponding to 0 (as is easily verified). The following theorem gives some basic results on the similarity of two Kronecker products. Theorem 21.11.2. Let R represent an m × m matrix that is similar to an m × m matrix A. Similarly, let S represent a p × p matrix that is similar to a p × p matrix B. Then, R ⊗ S is similar to A ⊗ B. And, for any m × m nonsingular matrix C such that R C−1 AC and for any p × p nonsingular matrix T such that S T−1 BT, R ⊗ S (C ⊗ T)−1 (A ⊗ B)(C ⊗ T) . Proof. Since R is similar to A and S similar to B, there exist nonsingular matrices C and T such that R C−1 AC and S T−1 BT. Moreover, recalling formula (16.1.23) (and that the Kronecker product of nonsingular matrices is nonsingular), we find that, for any such nonsingular matrices C and T, C ⊗ T is nonsingular, and R ⊗ S (C−1 ⊗ T−1 )(A ⊗ B)(C ⊗ T) (C ⊗ T)−1 (A ⊗ B)(C ⊗ T) . Q.E.D. Upon recalling that (by definition) a (square) matrix A is diagonalizable if and only if there exists a diagonal matrix that is similar to A and that the Kronecker product of diagonal matrices is diagonal and observing [in light of results (16.1.15) and (16.1.23)] that a Kronecker product of orthogonal matrices is orthogonal, we obtain the following corollary. Corollary 21.11.3. Let A represent an m × m matrix and B a p × p matrix. If both A and B are diagonalizable, then A ⊗ B is diagonalizable; if both A and B are orthogonally diagonalizable, then A ⊗ B is orthogonally diagonalizable. And, if A is diagonalized by an m × m nonsingular matrix P and B by a p × p nonsingular matrix Q, then A⊗B is diagonalized by the (nonsingular) matrix P⊗Q. Moreover, if P and Q are orthogonal, then P ⊗ Q is also orthogonal. The following theorem gives a result on the not-necessarily-distinct eigenvalues of a Kronecker product of two (square) matrices. Theorem 21.11.4. Let A represent an m × m matrix and B a p × p matrix. Suppose that A has m (not necessarily distinct) eigenvalues, say d1 , . . . , dm , the last s of which equal 0. And, let f1 , . . . , fk represent the (not necessarily distinct) eigenvalues of B (where possibly k < p). Then, A ⊗ B has (m − s)k + sp (not necessarily distinct) eigenvalues: d1 f1 , . . . , d1 fk , . . . , dm−s f1 , . . . , dm−s fk , 0, . . . , 0.
21.11 Eigenvalues and Eigenvectors of Kronecker Products of (Square) Matrices
549
Proof. As a consequence of Theorem 21.5.11, there exists an m × m orthogonal matrix Q such that Q AQ T, where T is an upper triangular matrix with diagonal elements d1 , . . . , dm . Further, Q ⊗ Ip is an orthogonal matrix (as is easily verified), and (Q ⊗ Ip ) (A ⊗ B)(Q ⊗ Ip ) (Q AQ) ⊗ B T ⊗ B . Thus, A ⊗ B is similar to T ⊗ B, and it follows from Part (7) of Theorem 21.3.1 that the (not necessarily distinct) eigenvalues of A ⊗ B are the same as those of T ⊗ B. And T ⊗ B is an (upper) block-triangular matrix with diagonal blocks d1 B, . . . , dm B, so that [in light of Part(4) of Lemma 21.2.1 and the results of Section 10] T ⊗ B has (m − s)k + sp (not necessarily distinct) eigenvalues: d1 f1 , . . . , d1 fk , . . ., dm−s f1 , . . . , dm−s fk , 0, . . . , 0. Q.E.D. In the special case where k p, Theorem 21.11.4 can be restated as the following corollary. Corollary 21.11.5. Let A represent an m × m matrix and B a p × p matrix. Suppose that A has m (not necessarily distinct) eigenvalues, say d1 , . . . , dm , and that B has p (not necessarily distinct) eigenvalues, say f1 , . . . , fp . Then, A⊗B has mp (not necessarily distinct) eigenvalues: di fj (i 1, . . . , m; j 1, . . . , p). Let A represent an m × m matrix and B a p × p matrix. According to Theorem 21.11.4 (and Corollary 21.11.5), a sufficient condition for A ⊗ B to have mp (not necessarily distinct) eigenvalues is that A have m (not necessarily distinct) eigenvalues and B have p (not necessarily distinct) eigenvalues or that A 0. However, this condition is not necessary. Suppose, for example that 0 1 0 B A −1 0 0 . 0 0 0 Then the characteristic polynomial of A (or B) is p(λ) |A − λI| −λ(λ2 + 1) (as can be easily seen by, e.g., making use of Theorem 13.3.1). Consequently, 0 is an eigenvalue of A and has an algebraic multiplicity of 1. Moreover, A has no eigenvalues other than 0 — the characteristic polynomial of A has two imaginary roots, namely, i and −i. By way of comparison, the characteristic polynomial of B ⊗ A is (in light of Theorem 13.3.1) −λI A 0 −λI3 A 0 (−λ)3 q(λ) |B ⊗ A − λI| −A −λI . −A −λI3 0 0 −λI And, making use of results (13.3.13) and (13.2.2), we find that (for λ 0) −λI3 A −1 −A −λI3 | − λI3 | | − λI − (−A)(−λI) A|
550
21. Eigenvalues and Eigenvectors
(−λ)3 | − λI3 − λ−1 A2 | |(−λ)(−λI − λ−1 A2 )|
|λ2 I + A2 | 2 λ − 1 0 2 0 λ −1 0 0
0 0 (λ2 − 1)2 λ2λ2 [(λ + 1)(λ − 1)]2 λ2
and hence that (for all λ) q(λ) (−λ)3 λ2 [(λ + 1)(λ − 1)]2 (−1)9 λ5 (λ + 1)2 (λ − 1)2 . So, B⊗A has three distinct eigenvalues: 0, −1, and 1, with algebraic multiplicities of 5, 2, and 2, respectively. Thus, B⊗A has 9 (not necessarily distinct) eigenvalues, whereas each of the matrices A and B (which are of order 3) has only one.
21.12
Singular Value Decomposition
a. Definition, existence, and some basic properties and relationships Let A represent an n × n symmetric nonnegative definite matrix. Then, it follows from the results of Section 5 (and from the nonnegativity of the eigenvalues of a nonnegative definite matrix) that A is expressible in the form D1 0 AQ Q , (12.1) 0 0 where Q is an n × n orthogonal matrix and where D1 is a diagonal matrix with (strictly) positive diagonal elements. In fact, decomposition (12.1) is the spectral decomposition of A. The following theorem can be used to establish a generalization of this decomposition that is applicable to any matrix. Theorem 21.12.1. Let A represent an m × n matrix of rank r. And, take Q to be any n × n orthogonal matrix and D1 to be any r × r nonsingular diagonal matrix such that 2 D1 0 Q A AQ (12.2) 0 0 2 D1 0 [where, when r 0 or r n, equals 0 or D21 , respectively]. Further, 0 0 partition Q as Q (Q1 , Q2 ), where Q1 has r columns, and let P (P1 , P2 ), where P1 AQ1 D−1 1 and where P2 is any m × (m − r) matrix such that P1 P2 0 .
(12.3)
(When r 0, Q Q2 , P P2 , and P2 is arbitrary; when r n, Q Q1 ; and when r m, P P1 .) Then, D1 0 P AQ 0 0
21.12 Singular Value Decomposition
551
D1 0 equals 0, (D1 , 0), [where, when r 0, r m, r n, or r m n, 0 0 D1 , or D1 , respectively]. 0 Proof. Since Q1 A AQ1 Q1 A AQ2 Q A AQ , Q2 A AQ1 Q2 A AQ2 we have that Q1 A AQ1 D21 . Further, (AQ2 ) AQ2 Q2 A AQ2 0, implying (in light of Corollary 5.3.2) that AQ2 0. Thus, upon observing that P1 D−1 1 Q1 A and that AQ1 P1 D1 , we find that −1 P1 AQ1 P1 AQ2 D1 Q1 A AQ1 P1 0 P AQ P2 AQ1 P2 AQ2 P2 P1 D1 P2 0 −1 2 D1 0 D1 D1 0 . 0 0 (P1 P2 ) D1 0 Q.E.D. There exist an r ×r diagonal matrix D1 with (strictly) positive diagonal elements and an n×n orthogonal matrix Q that satisfy condition (12.2) of Theorem 21.12.1, and there exists an m × (m − r) matrix P2 that not only satisfies condition (12.3) but is such that P is orthogonal. To see this, take D1 diag(s1 , . . . , sr ), where s1 , . . . , sr are the positive square roots of the r nonzero (and hence positive) notnecessarily-distinct eigenvalues of A A. [Since A A is symmetric and (in light of Corollary 14.2.14) nonnegative definite and since rank(A A) rank(A) r, it follows from Corollaries 21.3.8 and 21.5.8 that A A has r nonzero not-necessarilydistinct eigenvalues and from Theorem 21.8.5 that those eigenvalues are positive.] Now, choose the n × n orthogonal matrix Q to satisfy condition (12.2) — that this is possible is evident from Corollary 21.5.9. Further, observe (as in the proof of Theorem 21.12.1) that Q1 A AQ1 D21 and hence that −1 −1 2 −1 P1 P1 D−1 1 Q1 A AQ1 D1 D1 D1 D1 Ir . And, observing (in light of Lemma 11.3.1) that dim[N (P1 )] m − rank(P1 ) m − rank(P1 P1 ) m − r, take P2 to be any m × (m − r) matrix whose columns form an orthonormal basis for N (P1 ). Then, 0 Ir P1 P1 P1 P2 PP Im . P2 P1 P2 P2 0 Im−r In light of this discussion, we have the following corollary of Theorem 21.12.1. Corollary 21.12.2. Corresponding to any m × n matrix A of rank r, there exist an m × m orthogonal matrix P and an n × n orthogonal matrix Q such that D1 0 P AQ , 0 0
552
21. Eigenvalues and Eigenvectors
where D1 is an r × r diagonal matrix with diagonal elements that are (strictly) positive. Let A represent an m × n matrix. And, let P represent an m × m orthogonal matrix, Q an n × n orthogonal matrix, and D1 {si } an r × r diagonal matrix with (strictly) positive diagonal elements such that D1 0 P AQ 0 0 — the existence of such matrices is guaranteed by Corollary 21.12.2. Further, partition P and Q as P (P1 , P2 ) and Q (Q1 , Q2 ), where P1 has r columns, say p1 , . . . , pr , respectively, and Q1 has r columns, say q1 , . . . , qr , respectively. Then A can be expressed as D1 0 Q (12.4) AP 0 0 or as
A P1 D1 Q1
or A
r i1
si pi qi .
(12.5)
(12.6)
Letting α1 , . . . , αk represent the distinct values represented among s1 , . . . , sr and (for j 1, . . . , k) letting Lj {i : si αj }, A can also be expressed as A
k
α j Uj ,
(12.7)
j 1
where (for j 1, . . . , k) Uj i∈Lj pi qi . Expression (12.4) is called the singular-value decomposition of the m×n matrix A. Sometimes the term singular-value decomposition is used also in referring to expression (12.5), (12.6), or (12.7). The following theorem provides some insight into the nature of the various components of the singular-value decomposition and the extent to which those components are unique. Theorem 21.12.3. Let A represent an m × n matrix. And, take P to be an m × m orthogonal matrix, Q an n × n orthogonal matrix, and D1 an r × r nonsingular diagonal matrix such that D1 0 . (12.8) P AQ 0 0 Further, partition P and Q as P (P1 , P2 ) and Q (Q1 , Q2 ), where each of the matrices P1 and Q1 has r columns. Then, r rank(A) ,
(12.9)
21.12 Singular Value Decomposition
Q A AQ
P AA P
D21 0
D21 0
0 , 0 0 , 0
553
(12.10) (12.11)
P1 AQ1 D−1 1 ,
(12.12)
Q1 A P1 D−1 1 .
(12.13)
Proof. The veracity of result (12.9) is evident from equality (12.8) upon observing that rank(P AQ) rank(A). Further, 2 D1 0 D1 0 D1 0 Q A AQ Q A PP AQ (P AQ) P AQ , 0 0 0 0 0 0 which verifies equality (12.10). Equality (12.11) canbe verified in similar fashion. P1 AQ1 P1 AQ2 And observing that P AQ [and making use of equality P2 AQ1 P2 AP2 (12.8)], we find that P1 P1 D1 D−1 1
P1 (P1 AQ1 )D−1 1 (P1 P1 )AQ1 D−1 1
(Im − P2 P2 )AQ1 D−1 1
−1 AQ1 D−1 1 − P2 (P2 AQ1 )D1
−1 −1 AQ1 D−1 1 − P2 0D1 AQ1 D1 .
That Q1 A P1 D−1 Q.E.D. 1 can be established via an analogous argument. In light of Theorem 21.5.1, it is clear from Theorem 21.12.3 that the scalars s1 , . . . , sr , which appear in the singular-value decomposition (12.4) (as the diagonal elements of the diagonal matrix D1 ) are the positive square roots of the nonzero (not necessarily distinct) eigenvalues of A A (or, equivalently, of the nonzero notnecessarily-distinct eigenvalues of AA ). Moreover, they are unique (i.e., they do not vary with the choice of the orthogonal matrices P and Q that appear in the singular-value decomposition), and they are equal in number to rank(A). The scalars s1 , . . . , sr are referred to as the singular values of the matrix A. (In some presentations, the positive square roots of all n or m eigenvalues of A A and AA , including those that equal 0, are regarded as singular values of A.) The scalars α1 , . . . , αk , which appear in decomposition (12.7) and which (by definition) are the distinct singular values of A, are the positive square roots of the distinct nonzero eigenvalues of A A (or, equivalently, of the distinct nonzero eigenvalues of AA ). Theorem 21.12.3 is also informative about the nature of the orthogonal matrices P and Q, which appear in the singular-value decomposition (12.4). The m columns of P are eigenvectors of AA , with the first r columns corresponding to the nonzero eigenvalues s12 , . . . , sr2 and the remaining m − r columns corresponding to the 0 eigenvalues. Similarly, the n columns of Q are eigenvectors of A A, with the first r columns corresponding to the nonzero eigenvalues s12 , . . . , sr2 and the remaining
554
21. Eigenvalues and Eigenvectors
n − r columns corresponding to the 0 eigenvalues. Moreover, once the first r columns of Q are specified, the first r columns of P are uniquely determined [by result (12.12)]. Similarly, once the first r columns of P are specified, the first r columns of Q are uniquely determined [by result (12.13)]. For any fixed ordering of the distinct singular values α1 , . . . , αk , decomposition (12.7) is unique. To see this, observe [in light of result (12.12)] that (for i 1, . . . , r) pi si−1 Aqi . Thus, for j 1, . . . , k, pi qi si−1 Aqi qi αj−1 AEj , Uj
i∈Lj
i∈Lj
where Ej i∈Lj qi qi . Further, since (for i ∈ Lj ) qi is an eigenvector of A A corresponding to the eigenvalue αj2 , it follows from the results of Section 5f (on the uniqueness of the spectral decomposition) that Ej does not vary with the choice of P, Q, and D1 and hence that Uj does not vary with this choice. We conclude that decomposition (12.7) is unique (aside from the ordering of the terms). The (usual) norm of the m × n matrix A with singular-value decomposition (12.4) can be expressed in terms of the singular values s1 , . . . sr . Making use of Lemma 5.2.1, we find that A2
tr(A A)
D1 0 D1 0 tr Q Q P P 0 0 0 0
D1 0 D1 0 tr QQ PP 0 0 0 0
2
D1 0 D1 0 D1 I tr I tr 0 0 m 0 0 n 0
0 0
s12 + · · · + sr2 .
Thus, A (s12 + · · · + sr2 )1/2 .
(12.14)
Let us now consider the singular-value decomposition of an n × n symmetric matrix A. Let d1 , . . . , dn represent the (not necessarily distinct) eigenvalues of A, ordered in such a way that d1 , . . . , dr are nonzero and dr+1 · · · dn 0. And let q1 , . . . , qn represent orthonormal eigenvectors of A corresponding to d1 , . . . , dn , respectively, and (for i 1, . . . , n) let % 1, if di ≥ 0, 6i −1, if di < 0 . Further, define D diag(d1 , . . . , dn ), Q (q1 , . . . , qn ), and 6 diag(61 , . . . , 6n ); and take P Q6 to be the n × n matrix whose ith column pi is either qi or −qi depending on whether di ≥ 0 or di < 0. Then, P and Q are orthogonal. And Q AQ D, so that P AQ 6Q AQ 6D
D1 diag(61 d1 , . . . , 6n dn ) diag(|d1 |, . . . , |dn |) 0
0 , 0
21.12 Singular Value Decomposition
555
where D1 diag(|d1 |, . . . , |dr |). Thus, the singular values of A are the absolute values |d1 |, . . . , |dr | of its nonzero eigenvalues. And, the singular-value decomposition of A [decomposition (12.6)] is A
r i1
|di |pi qi
r i1
|di |(6i qi qi ) .
By way of comparison, the spectral decomposition of A [decomposition (5.4)] is A
n i1
di qi qi
r i1
di qi qi .
Note that, in the special case where the symmetric matrix A is nonnegative definite, d1 , . . . , dr are positive, so that (for i 1, . . . , n) 6i 1, |di | di , and pi qi . Thus, in this special case, the singular values of A are its nonzero eigenvalues, and the singular-value decomposition of A is essentially the same as the spectral decomposition of A.
b. Singular-value decomposition of the Moore-Penrose inverse Let A represent an m × n matrix. And let P represent an m × m orthogonal matrix, Q an n×n orthogonal matrix, and D1 {si } an r ×r diagonal matrix with (strictly) positive diagonal elements such that D1 0 P AQ . 0 0 Then, by definition, the singular-value decomposition of A is D1 0 AP Q . 0 0 According to Theorem 20.5.6, A+ Q
+ 0 P . 0
D1 0
And, in light of the results of Section 20.2, + + D1 0 E1 D1 0 0 0 0 0 0 where E1 diag(1/s1 , . . . , 1/sr ). Thus, E1 A+ Q 0 or, equivalently, Q A+ P
E1 0
0 P , 0 0 0
0 0
,
(12.15)
.
Clearly, expression (12.15) is the singular-value decomposition of A+ . And the singular values of A+ are the reciprocals of the singular values of A.
556
21. Eigenvalues and Eigenvectors
c. Approximation of a matrix by a matrix of smaller rank The following theorem suggests that if some of the singular values of an m × n matrix A are relatively small, the m × n matrix obtained from the singular-value decomposition (of A) by setting those singular values equal to zero may provide a “good” approximation to A. Theorem 21.12.4. Let A represent an m×n matrix (of rank r) with singular values s1 , s2 , . . . , sr ordered so that s1 ≥ s2 ≥ · · · ≥ sr . Let D1 diag(s1 , s2 , . . . , sr ), and let P represent an m × m orthogonal matrix and Q an n × n orthogonal matrix such that P AQ diag(D1 , 0), so that D1 0 Q AP 0 0 is the singular-value decomposition of A. Then, for any m × n matrix B of rank k or less (where k < r), 2 B − A2 ≥ sk+1 + · · · + sr2
(12.16)
(where the norm is the usual norm). Moreover, equality is attained in inequality (12.16) by taking ∗ D1 0 BP Q , 0 0 where D∗1 diag(s1 , . . . , sk ). As a preliminary to proving Theorem 21.12.4, it is convenient to establish the following theorem, which is of some interest in its own right. Theorem 21.12.5. Let A represent an n × n symmetric matrix with (not necessarily distinct) eigenvalues d1 , d2 , . . . , dn ordered so that d1 ≥ d2 ≥ · · · ≥ dn . Then, for any n × k matrix X such that X X Ik or, equivalently, for any n × k matrix X with orthonormal columns (where k ≤ n), tr (X AX) ≤
k
di ,
i1
with equality holding if the columns of X are orthonormal eigenvectors of A corresponding to d1 , d2 , . . . , dk , respectively. Proof (of Theorem 21.12.5). Let U represent an n×n matrix whose first, . . . , nth columns are orthonormal (with respect to the usual inner product) eigenvectors of A corresponding to d1 , . . . , dn , respectively. Then there exists an n × k matrix R {rij } such that X UR. Further, U AU D, where D diag(d1 , . . . , dn ). Thus, tr(X AX) tr(R U AUR)
tr(R DR) k n n di rij2 wi di , j 1 i1
i1
21.12 Singular Value Decomposition
557
where (for i 1, . . . , n) wi kj 1 rij2 . The scalars w1 , . . . , wn are such that 0 ≤ wi ≤ 1 (for i 1, . . . , n) and
n
wi k .
(12.17)
(12.18)
i1
To see this, observe that R R R In R R U UR X X Ik (which indicates that the columns of R are orthonormal). Then, as a consequence of Theorem 6.4.5, there exists an n × (n − k) matrix S such that the columns of the matrix (R, S) form an orthonormal basis for Rn or, equivalently, such that (R, S) is an orthogonal matrix. And, RR + SS (R, S)(R, S) In , so that In − RR SS , implying that In − RR is nonnegative definite. Thus, since clearly the ith diagonal element of In − RR equals 1 − wi , we have that 1 − wi ≥ 0, which (together with the obvious inequality wi ≥ 0) establishes result (12.17). Moreover, n i1
wi
n k j 1 i1
rij2 tr(R R) tr(Ik ) k ,
which establishes result (12.18).
Results (12.17) and (12.18) imply that ni1 wi di ≤ ki1 di (as is easily verified) and hence that k tr(X AX) ≤ di . i1
Moreover, in the special case where the columns of X are orthonormal eigenvectors of A corresponding to d1 , . . . , dk , respectively, AX X diag(d1 , . . . , dk ) and hence X AX X X diag(d1 , . . . , dk ) diag(d1 , . . . , dk ) .
Q.E.D. Thus, in that special case, tr(X AX) ki1 di . Proof (of Theorem 21.12.5). Corresponding to any m × n matrix B of rank k or less, there exists an m × k matrix U with orthonormal columns such that C(B) ⊂ C(U) or, equivalently, such that B UL for some k × n matrix L. Now, let U represent an arbitrary m × k matrix with orthonormal columns or, equivalently, an arbitrary m × k matrix such that U U Ik . And, let L represent an arbitrary k × n matrix. Then, to verify inequality (12.16), it suffices to show that 2 UL − A2 ≥ sk+1 + · · · + sr2 .
558
21. Eigenvalues and Eigenvectors
We have that UL − A2 tr[(UL − A) (UL − A)] tr(L L − A UL − L U A) + tr(A A) . And, since L L − A UL − L U A + A UU A (L − U A) (L − U A) and since (L − U A) (L − U A) is a nonnegative definite matrix, we find (in light of Theorem 14.7.2) that tr(L L − A UL − L U A + A UU A) ≥ 0 and hence that tr(L L − A UL − L U A) ≥ −tr(A UU A) −tr(U AA U) . Thus,
UL − A2 ≥ tr(A A) − tr(U AA U) .
Moreover, since (in light of the results of Subsection a) s1 , . . . , sr are the positive square roots of the nonzero eigenvalues of A A (or, equivalently, of the nonzero eigenvalues of AA ), it follows from Theorem 21.6.1 that tr(A A)
r i1
si2
and from Theorem 21.12.5 that tr(U AA U) ≤
k i1
si2 .
We conclude that UL − A2 ≥
r i1
si2 −
k i1
2 si2 sk+1 + · · · + sr2 .
And the proof is complete upon observing (in light of Lemma 8.4.2) that ∗ ∗ D1 0 D1 0 D1 0 2 2 P Q − A P Q −P Q 0 0 0 0 0 0 ∗ D1 0 2 D1 0 2 − sk+1 + · · · + sr2 . 0 0 0 0 Q.E.D. In the special case where the matrix A is symmetric, Theorem 21.12.4 can (in light of the results of Subsection a) be restated in terms related to the spectral decomposition of A, as described in the following corollary.
21.13 Simultaneous Diagonalization
559
Corollary 21.12.6. Let A represent an n × n symmetric matrix (of rank r) with nonzero (not necessarily distinct) eigenvalues d1 , . . . , dr ordered so that |d1 | ≥ |d2 | ≥ · · · ≥ |dr |. Let D1 diag(d1 , . . . , dr ), and let Q represent an n × n orthogonal matrix such that Q AQ diag(D1 , 0), so that D1 0 AQ Q 0 0 is the spectral decomposition of A. Then, for any n × n matrix B of rank k or less (where k < r) 2 B − A2 ≥ dk+1 + · · · + dr2 . (12.19) Moreover, equality is attained in inequality (12.19) by taking ∗ D1 0 BQ Q , 0 0 where D∗1 diag(d1 , . . . , dk ).
21.13
Simultaneous Diagonalization
In Section 5, we considered the diagonalization of an n × n matrix. Now, let A1 , . . . , Ak represent k matrices of dimensions n × n, and consider the conditions under which there exists a single n × n nonsingular matrix Q that diagonalizes all k of these matrices; that is, the conditions under which there exists an n × n nonsingular matrix Q such that Q−1 A1 Q D1 , . . . , Q−1 Ak Q Dk for some diagonal matrices D1 , . . . , Dk . When such a nonsingular matrix Q exists, Q is said to simultaneously diagonalize A1 , . . . , Ak (or A1 , . . . , Ak are said to be simultaneously diagonalized by Q), and A1 , . . . , Ak are referred to as being simultaneously diagonalizable. Suppose that there exists an n × n nonsingular matrix Q such that Q−1 A1 Q D1 , . . . , Q−1 Ak Q Dk for some diagonal matrices D1 , . . . , Dk . Then, for s i 1, . . . , k, Q−1 As Ai Q Q−1 As QQ−1 Ai Q Ds Di Di Ds Q−1 Ai QQ−1 As Q Q−1 Ai As Q , implying that As Ai Q(Q−1 As Ai Q)Q−1 Q(Q−1 Ai As Q)Q−1 Ai As . Thus, a necessary condition for A1 , . . . , Ak to be simultaneously diagonalizable is that As Ai Ai As (s > i 1, . . . , k) (13.1) (i.e., that A1 , . . . , Ak commute in pairs).
560
21. Eigenvalues and Eigenvectors
For symmetric matrices A1 , . . . , Ak , condition (13.1) is sufficient, as well as necessary, for A1 , . . . , Ak to be simultaneously diagonalizable. In fact, symmetric matrices A1 , . . . , Ak that satisfy condition (13.1) can be simultaneously diagonalized by an orthogonal matrix. To verify this, let us proceed by mathematical induction. In the case of one symmetric matrix A1 , we know (from Theorem 21.5.7) that there exists an orthogonal matrix that “simultaneously” diagonalizes A1 — when k 1, condition (13.1) is vacuous. Suppose now that any k −1 symmetric matrices (of the same order) that commute in pairs can be simultaneously diagonalized by an orthogonal matrix (where k ≥ 2). And, let A1 , . . . , Ak represent k symmetric matrices of arbitrary order n that commute in pairs. Then, to complete the induction argument, it suffices to show that A1 , . . . , Ak can be simultaneously diagonalized by an orthogonal matrix. Let λ1 , . . . , λr represent the distinct eigenvalues of Ak , and let ν1 , . . . , νr represent their respective multiplicities. Take Qj to be an n × νj matrix whose columns are orthonormal (with respect to the usual inner product) eigenvectors of Ak corresponding to the eigenvalue λj or, equivalently, whose columns form an orthonormal basis for the νj -dimensional linear space N (Ak − λj I)(j 1, . . . , r). And define Q (Q1 , . . . , Qr ). Since (according
to Theorem 21.5.7) Ak is diagonalizable, it follows from Corollary 21.5.4 that rj 1 νj n, so that Q has n (orthonormal) columns and hence is an orthogonal matrix. Further, Q Ak Q diag(λ1 Iν1 , . . . , λr Iνr )
(13.2)
(as is evident from Theorems 21.5.2 and 21.5.1). Since Ak commutes with each of the matrices A1 , . . . , Ak−1 , we find that, for i 1, . . . , k − 1 and j 1, . . . , r, Ak (Ai Qj ) Ai (Ak Qj ) Ai (λj Qj ) λj Ai Qj . Thus, (Ak − λj I)Ai Qj 0, implying (in light of Lemma 11.4.1) that C(Ai Qj ) ⊂ N (Ak − λj I). And, since the columns of Qj form a basis for N (Ak − λj I), there exists a νj × νj matrix Bij such that Ai Qj Qj Bij
(13.3)
(i 1, . . . , k − 1; j 1, . . . , r), and we find that (for i 1, . . . , k − 1) Q Ai Q Q (Ai Q1 , . . . , Ai Qr )
Q (Q1 Bi1 , . . . , Qr Bir )
Q Q diag(Bi1 , . . . , Bir )
diag(Bi1 , . . . , Bir ) .
(13.4)
Now, using result (13.3), we find that, for j 1, . . . , r, Bij Iνj Bij Qj Qj Bij Qj Ai Qj (i 1, . . . , k − 1) and that Bsj Bij Qj As Qj Bij Qj As Ai Qj Qj Ai As Qj Qj Ai Qj Bsj Bij Bsj
21.13 Simultaneous Diagonalization
561
(s > i 1, . . . , k − 1), so that the k − 1 matrices B1j , . . . , Bk−1,j (which are of order νj ) are symmetric and they commute in pairs. Thus, by supposition, B1j , . . . , Bk−1,j can be simultaneously diagonalized by an orthogonal matrix; that is, there exists a νj × νj orthogonal matrix Sj and νj × νj diagonal matrices D1j , . . . , Dk−1,j such that (for i 1, . . . k − 1) Sj Bij Sj Dij .
(13.5)
Define S diag(S1 , . . . , Sr ) and P QS. Then, clearly, S is orthogonal and, hence, according to Lemma 8.4.1, P is also orthogonal. Further, using results (13.4), (13.5), and (13.2), we find that, for i 1, . . . , k − 1, P Ai P
S Q Ai QS
diag(S1 , . . . , Sr ) diag(Bi1 . . . , Bir ) diag(S1 , . . . , Sr ) diag(S1 Bi1 S1 , . . . , Sr Bir Sr ) diag(Di1 , . . . , Dir ) and that P Ak P
S Q Ak QS diag(S1 , . . . , Sr ) diag(λ1 Iν1 , . . . , λr Iνr ) diag(S1 , . . . , Sr ) diag(λ1 S1 S1 , . . . , λr Sr Sr ) diag(λ1 Iν1 , . . . , λr Iνr ),
so that all k of the matrices A1 , . . . , Ak are simultaneously diagonalized by the orthogonal matrix P. Summarizing, we have the following theorem. Theorem 21.13.1. If n × n matrices A1 , . . . , Ak are simultaneously diagonalizable, then they commute in pairs, that is, for s > i 1, . . . , k, As Ai Ai As . If n × n symmetric matrices A1 , . . . , Ak commute in pairs, then they can be simultaneously diagonalized by an orthogonal matrix; that is, there exists an n × n orthogonal matrix; P and diagonal matrices D1 , . . . , Dk such that, for i 1, . . . , k, P Ai P Di . In connection with Theorem 21.13.1, note that symmetric matrices A1 , . . . , Ak commute in pairs if and only if each of the k(k −1)/2 matrix products A1 A2 , A1 A3 , . . . , Ak−1 Ak is symmetric. In the special case where k 2, Theorem 21.13.1 can be restated as the following corollary. Corollary 21.13.2. If two n × n matrices A and B are simultaneously diagonalizable, then they commute, that is, BA AB. If two n × n symmetric matrices A and B commute (or, equivalently, if their product AB is symmetric), then they can be simultaneously diagonalized by an orthogonal matrix; that is, there exists an n × n orthogonal matrix P such that P AP D1 and P BP D2 for some diagonal matrices D1 and D2 .
562
21. Eigenvalues and Eigenvectors
21.14
Generalized Eigenvalue Problem
Let A represent an n × n symmetric matrix, and let B represent an n × n symmetric positive definite matrix. Then, according to Corollary 14.3.14, there exists an n×n nonsingular matrix Q such that the quadratic form x Bx (in an n × 1 vector x) is
n 2 expressible as the sum of squares i1 yi of the elements y1 , . . . , yn of the transformed vector y Q x. And, according to Corollary 14.3.6, there exists an n × n nonsingular matrix Q and n scalars d1
, . . . , dn such that the quadratic form x Ax is expressible as a linear combination ni1 di yi2 of the squares of the elements y1 , . . . , yn of the transformed vector y Q x. Can the same n × n nonsingular matrix Q be used to so express both x Bx and x Ax? Or, equivalently, does there exist an n × n nonsingular matrix Q such that B QQ and A QDQ for some diagonal matrix D? The answer is yes, as is shown in the following development. Let R represent any n × n nonsingular matrix such that B−1 R R. And let C RAR , and define P to be an n × n orthogonal matrix such that P CP D for some diagonal matrix D {di }. Now, take Q R−1 P. Then, QQ R−1 PP (R )−1 R−1 (R )−1 B ,
(14.1)
and QDQ R−1 PP CPP (R )−1 R−1 C(R )−1 R−1 RAR (R )−1 A . (14.2) In addition to establishing the existence of an n × n nonsingular matrix Q such that B QQ and A QDQ (for some diagonal matrix D), the preceding development suggests an indirect “strategy” for constructing such a matrix. This strategy comprises four steps: (1) construction of the n × n nonsingular matrix R (such that B−1 R R); (2) formation of the matrix C RAR ; (3) determination of the n × n orthogonal matrix P that diagonalizes C; and (4) formation of the matrix Q R−1 P. In connection with Step (3), note that the columns of the n × n orthogonal matrix P can be any n orthonormal eigenvectors of C. Let us now consider an alternative approach to the construction of an n × n nonsingular matrix Q such that B QQ and A QDQ (for some diagonal matrix D). In the alternative approach, the columns of the matrix (Q )−1 are taken to be orthonormal “generalized eigenvectors” of A, where the orthonormality of these vectors is with respect to an inner product other than the usual inner product. Let X (Q )−1 (where Q represents an arbitrary n × n nonsingular matrix), and let D {di } represent an arbitrary n × n diagonal matrix. Then, B QQ and A QDQ
⇔ BX Q and AX QD ⇔ BX Q and AX BXD ⇔ X BX I and AX BXD .
And, letting xi represent the ith column of X (i 1, . . . , n), % 1, for j i 1, . . . , n, X BX I ⇔ xj Bxi 0, for j i 1, . . . , n,
21.14 Generalized Eigenvalue Problem
563
and AX BXD ⇔ Axi di Bxi ,
for i 1, . . . , n .
Accordingly, the alternative approach to the construction of an n×n nonsingular matrix Q such that B QQ and A QDQ (for some diagonal matrix D) consists of finding n solutions (d1 , x1 ); . . . ; (dn , xn ) (for a scalar λ and an n × 1 vector x) to the equation Ax λBx
(14.3)
such that x1 , . . . , xn are orthogonal with respect to the inner product x By and of then taking (Q )−1 to be the matrix whose columns are x1 , . . . , xn . Various properties of the “x- and λ-parts” of solutions to equation (14.3) can be deduced by observing that Ax λBx ⇔ C(R−1 ) x λ(R−1 ) x
(14.4)
and that (for any n × 1 vectors x and y) x By [(R−1 ) x] (R−1 ) y .
(14.5)
Thus, a scalar λ and an n-dimensional vector x form a solution to equation (14.3) if and only if λ is an eigenvalue of C and (R−1 ) x is an eigenvector of C corresponding to λ. Further, an n-dimensional vector x has unit norm with respect to the inner product x By if and only if (R−1 ) x has unit norm with respect to the usual inner product. And two n-dimensional vectors x and y are orthogonal with respect to the inner product x By if and only if (R−1 ) x and (R−1 ) y are orthogonal with respect to the usual inner product. Recalling Theorem 21.4.5, we conclude in particular that x1 Bx2 0 for any two solutions (λ1 , x1 ) and (λ2 , x2 ) to equation (14.3) such that λ2 λ1 . Since Ax λBx ⇔ (A − λB)x 0 ,
(14.6)
Ax λBx for some n-dimensional vector x if and only if |A − λB| 0. The problem of finding the roots of |A − λB| (i.e., the solutions for λ to the equation |A − λB| 0) is called the generalized eigenvalue problem. Note that |A − λB| |R|−2 |C − λI| |B| |AB−1 − λI| |B| |B−1 A − λI| ,
(14.7)
so that the generalized eigenvalue problem is equivalent to the problem of finding the eigenvalues of the symmetric matrix C or of the not-necessarily-symmetric matrix AB−1 or B−1 A. Note also that, in the special case where B I, the generalized eigenvalue problem reduces to the problem of finding the eigenvalues of A.
564
21. Eigenvalues and Eigenvectors
21.15
Differentiation of Eigenvalues and Eigenvectors
The following lemma provides an appropriate context for our discussion of the differentiation of eigenvalues and eigenvectors. Lemma 21.15.1. Let F represent a p ×p symmetric matrix of functions, defined on a set S, of a vector x (x1 , . . . , xm ) of m variables. Further, let c represent any interior point of S at which F is continuously differentiable. And, let λ∗ represent a simple eigenvalue of F(c) (i.e., an eigenvalue of multiplicity 1), and let u∗ (u∗1 , . . . , u∗p ) represent an eigenvector [of F(c)] with (usual) norm 1 corresponding to λ∗ . Then, for some neighborhood N of c, there exists a function λ (of x), defined on N, and a vector u (u1 , . . . , up ) of functions (of x), defined on N , with the following properties: (1) λ(c) λ∗ and u(c) u∗ ; (2) for x ∈ N, λ(x) is an eigenvalue of F(x), and u(x) is an eigenvector [of F(x)] with (usual) norm 1 corresponding to λ(x) [and the signs of the nonzero elements of u(x) are the same as those of the corresponding elements of u∗ ]; and (3) λ and u are continuously differentiable at c. Proof. Regarding (for the moment) λ and u as a variable and a vector of variables, define (for x ∈ S, λ ∈ R, and u ∈ Rp )
(F(x) − λI)u h(u, λ; x) . u u − 1 Further, let
J(u, λ; x)
∂h(u, λ; x) ∂h(u, λ; x) , ∂u ∂λ
.
And observe [in light of results (15.3.10) and (15.3.7)] that F(x) − λI −u J(u, λ; x) . 2u 0 Now, since λ∗ is a simple eigenvalue of F(c), rank [F(c) − λ∗ I] p − 1 . And, since [F(c) − λ∗ I] u∗ [F(c) − λ∗ I]u∗ 0, C(u∗ ) is (in light of Corollary 12.1.2) orthogonal to C[F(c)−λ∗ I], implying (in light of Lemma 17.1.9) that C(u∗ ) and C[F(c) − λ∗ I] are essentially disjoint and also (in light of Lemma 17.2.1) that R(u∗ ) and R[F(c) − λ∗ I] are essentially disjoint. Thus, making use of Theorem 17.2.19, we find that rank [J(u∗ , λ∗ ; c)]
Moreover,
rank [F(c) − λ∗ I] + rank(−u∗ ) + rank(2u∗ ) p−1+1+1p+1. h(u∗ , λ∗ ; c) 0 ,
and h is continuously differentiable at the point (u∗ , λ∗ ; c).
21.15 Differentiation of Eigenvalues and Eigenvectors
565
The upshot of these results is that the conditions of the implicit function theorem (e.g., Magnus and Neudecker 1988, thm. 7.A.2; Bartle 1976, p. 384) are satisfied. And it follows from this theorem that, for some neighborhood N ∗ of c, there exists a function λ (of x), defined on N ∗ , and a vector u (u1 , . . . , up ) of functions (of x), defined on N ∗ , with the following properties: (1) λ(c) λ∗ and u(c) u∗ ; (2) for x ∈ N ∗ , λ(x) is an eigenvalue of F(x), and u(x) is an eigenvector [of F(x)] with (usual) norm 1 corresponding to λ(x); and (3) λ and u are continuously differentiable at c. Moreover, in light of Lemma 15.1.1, the elements of u are continuous at c, so that there exists some neighborhood N of c (where N ⊂ N ∗ ) such that the signs of the nonzero elements of u(x) are the same as those of the corresponding elements of u∗ . Q.E.D. Let us now consider the differentiation of the functions λ, u1 , . . . , un described in Lemma 21.15.1. For x ∈ N, we have that Fu λu . Upon differentiating both sides of this equality with respect to xj , we find that (at x c) ∂F ∂u ∂λ ∂u + uλ + u (15.1) F ∂xj ∂xj ∂xj ∂xj (j 1, . . . , m). And, upon premultiplying both sides of equality (15.1) by u , we obtain ∂u ∂F ∂u ∂λ + u u λu + uu, u F ∂xj ∂xj ∂xj ∂xj or, equivalently [since u F (Fu) λu and u u 1], λu
∂u ∂F ∂u ∂λ + u u λu + . ∂xj ∂xj ∂xj ∂xj
And it follows that (at x c) ∂λ ∂F u u ∂xj ∂xj
(15.2)
(j 1, . . . , m). As a formula for the j th partial derivative of u, we have that (at x c) ∂u ∂F −H+ u, ∂xj ∂xj
(15.3)
where H F − λI. To verify formula (15.3), rewrite equality (15.1) as H
∂u ∂λ ∂F u− u. ∂xj ∂xj ∂xj
(15.4)
566
21. Eigenvalues and Eigenvectors
Premultiplying both sides of equality (15.4) by H+ , we obtain H+ H
∂u ∂λ + ∂F H u − H+ u. ∂xj ∂xj ∂xj
(15.5)
Since H+ H (H+ H) H(H+ ) HH+ and since [observing that Hu 0 and recalling (from Theorem 20.5.1) that N (H+ ) N (H)] H+ u 0, equality (15.5) can be rewritten as ∂u ∂F HH+ −H+ u. ∂xj ∂xj To complete the verification of formula (15.3), we need to show that (at x c) HH+ For this purpose, observe that
∂u ∂xj
∂u ∂u . ∂xj ∂xj
u + u
(15.6)
∂u 0 ∂xj
(as is clear upon differentiating both sides of the equality u u 1) and hence {since (∂u/∂xj ) u [(∂u/∂xj ) u] u (∂u/∂xj )} that u Thus,
∂u 0. ∂xj
∂u u H, 0 , ∂xj
implying that the p rows of the matrix (H, ∂u/∂xj ) are linearly dependent and hence that ∂u rank H, ≤p−1. (15.7) ∂xj Moreover, at x c,
∂u p − 1 rank(H) ≤ rank H, ∂xj
.
(15.8)
Together, results (15.7) and (15.8) imply that (at x c) ∂u rank H, rank(H) . ∂xj It follows (in light of Corollary 4.5.2) that ∂u/∂xj ∈ C(H), which (upon applying Corollary 9.3.6) gives result (15.6). Let us now consider formulas (15.2) and (15.3) in the special case where x is an [m(m + 1)/2]-dimensional column vector whose elements consist of those
21.16 An Equivalence (Involving Determinants and Polynomials)
567
elements of an m×m symmetric matrix X {xij } that lie on or below the diagonal and where F(x) X. Assume that S Rm(m+1)/2 (i.e., that there are no restrictions on X other than symmetry), observe that (in this special case) the interior points of S at which F is continuously differentiable consist of all of S, and let ej represent the j th column of Im . Then, upon substituting from result (15.5.6) or (15.5.7) into equality (15.2), we find that ∂λ u ei ei u u2i ∂xii and, for j < i, ∂λ u (ei ej + ej ei )u ui uj + uj ui 2ui uj . ∂xij Thus, % 2 ∂λ ui , 2ui uj , ∂xij
if j i , if j < i .
(15.9a) (15.9b)
Or, equivalently,
∂λ 2uu − diag(u21 , . . . , u2m ) . (15.10) ∂X Further, let gj represent the j th column of H+ and gij the ij th element of H+ . Then, upon substituting from result (15.5.6) or (15.5.7) into equality (15.3), we find that % ∂u if j i , (15.11a) −ui gi , −(u g + u g ) , if j < i . (15.11b) ∂xij j i i j And the sth element of the (m-dimensional) vector ∂u/∂xij is expressible as % ∂us −ui gsi , if j i , (15.12a) if j < i . (15.12b) −(uj gsi + ui gsj ) , ∂xij Further, letting xj (xj 1 , . . . , xj,j −1 , xjj , xj +1,j , . . . , xmj ) , ∂u −uj H+ − gj u + uj gj ej . ∂xj
21.16
(15.13)
An Equivalence (Involving Determinants and Polynomials)
The following theorem is of considerable importance in statistics (where it is used in establishing a fundamental result on the statistical independence of quadratic forms) — refer, for example, to Driscoll and Gundberg (1986) and Reid and Driscoll (1988).
568
21. Eigenvalues and Eigenvectors
Theorem 21.16.1. Let A and B represent n × n symmetric matrices, and let c and d represent (strictly) positive scalars. Then a necessary and sufficient condition for |I − tA − uB| |I − tA| |I − uB| (16.1) for all (scalars) t and u satisfying |t| < c and |u| < d (or, equivalently, for all t and u) is that AB 0. Proof. The sufficiency of the condition AB 0 is evident upon observing that |I − tA| |I − uB| |(I − tA)(I − uB)| |I − tA − uB + tuAB| . Now, for purposes of establishing the necessity of this condition, suppose that equality (16.1) holds for all t and u satisfying |t| < c and |u| < d. And let c∗ (≤ c) represent a positive scalar such that I − tA is positive definite whenever |t| < c∗ — the existence of such a scalar is guaranteed by Corollary 18.3.2 — and (for t satisfying |t| < c∗ ) let H (I − tA)−1 . If |t| < c∗ , then |I − uB| |I − uBH| and |I − (−u)B| |I − (−u)BH|, implying that |I − u2 B2 | |I − u2 (BH)2 | . (16.2) Since each side of equality (16.2) is a polynomial in u2 , we have that |I − rB2 | |I − r(BH)2 | for all r (and for t such that |t| < c∗ ) — refer to Theorem 21.A.5 (in the Appendix). Applying result (15.8.5), we find that (if |t| < c∗ ) −∂|I − rB2 | −∂|I − r(BH)2 | 2 tr(B ) tr[(BH)2 ] . ∂r ∂r r0 r0
Thus,
∂ 2 tr[(BH)2 ] ∂ 2 tr(B2 ) 0 (16.3) ∂t 2 ∂t 2 (for t such that |t| < c∗ ). And, using results (15.8.15), (15.9.2), (15.6.1), (15.4.8), and (5.2.3), we find that ∂H ∂ 2H HAH , 2HAHAH , ∂t ∂t 2
∂tr[(BH)2 ] ∂(BH)2 ∂H ∂H ∂H tr tr B BH + BHB 2tr BHB , ∂t ∂t ∂t ∂t ∂t and ∂ 2 tr[(BH)2 ] ∂t 2
∂H ∂H ∂ 2H 2tr B B + BHB 2 ∂t ∂t ∂t 2tr[BHAHBHAH + 2BHBHAHAH] .
(16.4)
21.16 An Equivalence (Involving Determinants and Polynomials)
569
Combining results (16.4) and (16.3) and setting t 0 gives 0
tr[(BA)2 ] + 2tr(B2 A2 ) tr[(BA)2 + B2 A2 ] + tr(B2 A2 ) tr[B(AB + BA)A] + tr(B2 A2 ) (1/2)tr[B(AB + BA)A] + (1/2)tr{[B(AB + BA)A] } + tr(BA2 B) (1/2)tr[(AB + BA)AB] + (1/2)tr[A(AB + BA) B] + tr(BA2 B) (1/2)tr[(AB + BA) AB] + (1/2)tr[(AB + BA) BA] + tr(BA2 B)
(1/2)tr[(AB + BA) (AB + BA)] + tr[(AB) AB] .
(16.5)
Both terms of expression (16.5) are nonnegative and hence equal to 0. Moreover, tr[(AB) AB] 0 implies that AB 0 — refer to Lemma 5.3.1. Q.E.D. In light of Theorem 18.3.1, we have the following variation on Theorem 21.16.1. Corollary 21.16.2. Let A and B represent n × n symmetric matrices. Then there exist (strictly) positive scalars c and d such that I − tA, I − uB, and I − tA − uB are positive definite for all (scalars) t and u satisfying |t| < c and |u| < d. And a necessary and sufficient condition for
|I − tA − uB| 0 log |I − tA| |I − uB| for all t and u satisfying |t| < c and |u| < d is that AB 0. The following theorem (which, like Theorem 21.16.1, can be useful in establishing results on the statistical independence of quadratic forms) generalizes Corollary 21.16.2. Theorem 21.16.3. Let A and B represent n × n symmetric matrices. Then there exist (strictly) positive scalars c and d such that I − tA, I − uB, and I − tA − uB are positive definite for all (scalars) t and u satisfying |t| < c and |u| < d. And letting h(t, u) represent a polynomial (in t and u), necessary and sufficient conditions for
h(t, u) |I − tA − uB| (16.6) log |I − tA| |I − uB| |I − tA| |I − uB| |I − tA − uB| for all t and u satisfying |t| < c and |u| < d are that AB 0 and that, for all t and u satisfying |t| < c and |u| < d (or, equivalently, for all t and u), h(t, u) 0. As a preliminary to proving Theorem 21.16.3, it is convenient to establish the following result on polynomials. Theorem 21.16.4. Let r1 (x), s1 (x), and s2 (x) represent polynomials in a real variable x. And, let r2 (x) γ (x − λ1 )m1 (x − λ2 )m2 · · · (x − λk )mk , where k is a nonnegative integer; m1 , m2 , . . . , mk are (strictly) positive integers; γ is a nonzero real number; and λ1 , λ2 , . . . , λk are real numbers. [When k 0, r2 (x) γ .] Suppose that
s1 (x) r1 (x) log (16.7) s2 (x) r2 (x)
570
21. Eigenvalues and Eigenvectors
for all x in some nondegenerate interval I [that does not include λ1 , λ2 , . . . , λk or any roots of s2 (x)]. Then there exists a real number α such that r1 (x) αr2 (x) for all x. Further, s1 (x) eα s2 (x) for all x. Proof (of Theorem 21.16.4). The proof makes considerable use of various basic properties of polynomials — refer to the Appendix for a review of the relevant properties. Assume (without loss of generality) that λ1 , λ2 , . . . , λk are distinct and that λ1 , λ2 , . . . , λk are not roots of r1 (x). [To see that the latter assumption can be made without loss of generality, suppose that λ1 were a root of r1 (x). Then, in light of Theorem 21.A.3, there would exist a polynomial p1 (x) such that r1 (x) (x − λ1 )p1 (x), so that, for x ∈ I , r1 (x)/r2 (x) p1 (x)/p2 (x), with p2 (x) γ (x − λ1 )m1 −1 (x − λ2 )m2 · · · (x − λk )mk . Moreover, to show that r1 (x) αr2 (x) for some α, it would suffice to show that p1 (x) αp2 (x) for some α. This process of canceling common factors could be continued until the right side of equality (16.7) were expressed as a ratio of two polynomials that have no common roots.] Assume also (again without loss of generality) that λi is not a root of both s1 (x) and s2 (x) (i 1, 2, . . . , k). Making frequent use of an abbreviated notation for polynomials (discussed in the Appendix) and letting r1∗ (x), r2∗ (x), s1∗ (x), and s2∗ (x) represent the derivatives of r1 (x), r2 (x), s1 (x), and s2 (x), respectively, we find [upon differentiating both sides of equality (16.7)] that r1∗ r2 − r1 r2∗ s ∗ s2 − s1 s2∗ 1 2 s1 s2 r2 for x ∈ I . And, in light of Theorem 21.A.5, it follows that (r1∗ r2 − r1 r2∗ )s1 s2 r22 (s1∗ s2 − s1 s2∗ )
(16.8)
for all x. We now come to the heart of the proof, which consists of showing that equality (16.8) implies that k 0 (i.e., that r2 ≡ γ ). Letting i represent an arbitrary one of the first m positive integers, we can rewrite r2 (x) as r2 (x) (x − λi )mi t(x) ,
$ where t(x) γ j i (x − λj )mj . Then, letting t ∗ (x) represent the derivative of t(x), we can rewrite equality (16.8) as [(x − λi )(r1∗ t − r1 t ∗ ) − mi r1 t](x − λi )mi −1 s1 s2 (x − λi )2mi t 2 (s1∗ s2 − s1 s2∗ ) , so that (for all x) [(x − λi )(r1∗ t − r1 t ∗ ) − mi r1 t]s1 s2 (x − λi )mi +1 t 2 (s1∗ s2 − s1 s2∗ ) .
(16.9)
Neither r1 nor t has λi as a root, implying that r1 t does not have λi as a root and hence that (x − λi )(r1∗ t − r1 t ∗ ) − mi r1 t
21.16 An Equivalence (Involving Determinants and Polynomials)
571
does not have λi as a root. Thus, in light of Theorem 21.A.4, s1 s2 (x − λi )mi +1 b for some polynomial b(x). By assumption, λi is not a root of both s1 and s2 , so that (x − λi )mi +1 is a factor of either s1 or s2 . Suppose that it is s1 that has λi as a root, so that s1 (x) (x − λi )mi +1 d(x) for some polynomial d(x). Then, letting d ∗ (x) represent the derivative of d(x), the right side of equality (16.9) can be rewritten as the polynomial (x − λi )mi +1 t 2 {[(mi + 1)(x − λi )mi d + (x − λi )mi +1 d ∗ ]s2 − (x − λi )mi +1 ds2∗ } , which has (x − λi )2mi +1 as a factor. It follows that (x − λi )2mi +1 is a factor of s1 s2 and hence of s1 . This argument can be repeated to establish that (x − λi )3mi +1 is a factor of s1 . Further repetition reveals that, for an arbitrarily large integer n, (x − λi )nmi +1 is a factor of s1 . Alternatively, if it is s2 (rather than s1 ) that has λi as a root, then we find that, for arbitrarily large n, (x − λi )nmi +1 is a factor of s2 . Thus, k 0, that is, r2 ≡ γ (since otherwise we arrive at a contradiction of the fact that s1 and s2 are polynomials of fixed degree). And, upon substituting γ for r2 in equality (16.8), we find that (for all x) γ r1∗ s1 s2 γ 2 (s1∗ s2 − s1 s2∗ ) .
(16.10)
Now, if r1 were not a constant and if (for x ∈ I ) s1 /s2 were of constant value, then (for x ∈ I ) the left side of equality (16.7) would be of constant value but the right side would not be of constant value. If r1 were not a constant and if (for x ∈ I ) s1 /s2 were not of constant value (in which case s1 or s2 is not a constant), then the degree of the polynomial that forms the left side of equality (16.10) would exceed the degree of the polynomial that forms the right side. In either case, we arrive at a contradiction. Thus, r1 is a constant; that is, r1 (x) τ for some real number τ , and hence r1 ≡ (τ/γ )r2 . Further, s1 ≡ exp(τ/γ )s2 [since, for x ∈ I , s1 /s2 exp(r1 /r2 ) exp(τ/γ )]. Q.E.D. Proof (of Theorem 21.16.3). The sufficiency of these conditions is an immediate consequence of Corollary 21.16.2 [as is the existence of positive scalars c and d such that I − tA, I − uB, and I − tA − uB are positive definite for all t and u satisfying |t| < c and |u| < d]. For purposes of establishing their necessity, take u to be an arbitrary scalar satisfying |u| < d, and observe (in light of Corollaries 14.2.11 and 14.3.13) that there exists an n × n nonsingular matrix S such that (I − uB)−1 S S. And let d1 , . . . , dr represent the nonzero (not necessarily distinct) eigenvalues of A and f1 , . . . , fr the nonzero (not necessarily distinct) eigenvalues of SAS . Then, according to Corollary 21.5.9, there exist n×n orthogonal matrices P and Q such that
572
21. Eigenvalues and Eigenvectors
P AP diag(d1 , . . . , dr , 0, . . . , 0) and Q SAS Q diag(f1 , . . . , fr , 0, . . . , 0). Thus, in light of result (13.3.9), we have that |I − tA| |P(I − tP AP)P |
|P| |diag(1 − td1 , . . . , 1 − tdr , 1, . . . , 1)| |P | r (1 − tdi ) i1
r i1
(−di )(t − di−1 )
and that |I − tA − uB|
|S−1 (S )−1 − tA|
|S−1 (I − tSAS )(S )−1 |
|S|−2 |I − tSAS |
|S|−2 |Q(I − tQ SAS Q)Q | |S|−2 |Q| |diag(1 − tf1 , . . . , 1 − tfr , 1, . . . , 1)| |Q | r r |S|−2 (1 − tfi ) |S|−2 (−fi )(t − fi−1 ) , i1
i1
so that (for fixed u) |I − tA − uB| and |I − tA| |I − uB| are polynomials in t. Further, |I − tA| |I − uB| |I − tA − uB| r |I − uB| |S|−2 di fi (t − di−1 )(t − fi−1 ) ,
(16.11)
i1
which (for fixed u) is a polynomial in t of degree 2r with roots d1−1 , . . . , dr−1 , f1−1 , . . . , fr−1 . Now, regarding u as fixed, suppose that equality (16.6) holds for all t satisfying |t| < c. Then, in light of equality (16.11), it follows from Theorem 21.16.4 that there exists a real number α such that, for all t, h(t, u) α|I − tA| |I − uB| |I − tA − uB| and
|I − tA − uB| eα |I − tA| |I − uB| .
(16.12)
[In applying Theorem 21.16.4, take x t, s1 (t) |I − tA − uB|, s2 (t) |I − tA| |I − uB|, r1 (t) h(t, u), and r2 (t) |I − tA| |I − uB| |I − tA − uB|.] Moreover, upon setting t 0 in equality (16.12), we find that |I − uB| eα |I − uB| , implying that eα 1 or, equivalently, that α 0. Thus, for all t, h(t, u) 0 and |I − tA − uB| |I − tA| |I − uB|.
Appendix
573
We conclude that if equality (16.6) holds for all t and u satisfying |t| < c and |u| < d, then h(t, u) 0 and |I − tA − uB| |I − tA| |I − uB| for all t and u satisfying |u| < d, implying (in light of Theorem 21.A.5) that h(t, u) 0 for all t and u and (in light of Theorem 21.16.1) that AB 0. Q.E.D.
Appendix: Some Properties of Polynomials (in a Single Variable) An expression of the form p(x) a0 + a1 x + a2 x 2 + · · · + an x n , where x is a real variable, n is a nonnegative integer, and the coefficients a0 , a1 , a2 , . . . , an are real numbers is referred to as a polynomial in x. The polynomial p(x) is said to be nonzero if one or more of the coefficients a0 , a1 , a2 , . . . , an is nonzero, in which case the largest nonnegative integer k such that ak 0 is referred to as the degree of p(x) and is denoted by the symbol deg[p(x)]. When it causes no confusion, p(x) may be abbreviated to p {and deg[p(x)] to deg(p)}. A polynomial q is said to be a factor of a polynomial p if there exists a polynomial r such that p ≡ qr. And, a real number c is said to be a root (or a zero) of a polynomial p if p(c) 0. The following three theorems give some basic properties of polynomials — refer, for example, to Beaumont and Pierce (1963) for proofs of these theorems, which are equivalent to their Theorems 9-3.3, 9-3.5, and 9-7.5. Theorem 21.A.1 (the division algorithm). Let p and q represent polynomials. Suppose that q is nonzero. Then, there exist unique polynomials b and r such that p ≡ bq + r, where either r ≡ 0 or else deg(r) < deg(q). Theorem 21.A.2. Let p(x) represent a nonzero polynomial (in x) of degree n. Then, for any real number c, p(x) has a unique representation of the form p(x) b0 + b1 (x − c) + b2 (x − c)2 + · · · + bn (x − c)n , where b0 , b1 , b2 , . . . , bn are real numbers. Theorem 21.A.3. A real number c is a root of a polynomial p(x) (in x) if and only if the polynomial x − c is a factor of p(x). The following two theorems give some additional properties of polynomials. Theorem 21.A.4. Let p(x), q(x), and r(x) represent polynomials (in x). And suppose that p(x)q(x) (x − c)m r(x) , (A.1) where m is a positive integer and where c is a real number that is not a root of p(x). Then, (x − c)m is a factor of q(x); that is, there exists a polynomial s(x) such that q(x) (x − c)m s(x) .
574
21. Eigenvalues and Eigenvectors
Proof. The proof consists of using mathematical induction to show that, for k 1, . . . , m, there exists a polynomial sk (x) such that q(x) (x − c)k sk (x). Clearly, c is a root of q(x). Thus, it follows from Theorem 21.A.3 that there exists a polynomial s1 (x) such that q(x) (x − c)1 s1 (x). Suppose now that there exists a polynomial sk−1 (x) (where 2 ≤ k ≤ m) such that q(x) (x − c)k−1 sk−1 (x) . (A.2) Then, substituting expression (A.2) into expression (A.1), we find that (x − c)k−1 p(x)sk−1 (x) (x − c)m r(x) , implying that
(A.3)
p(x)sk−1 (x) (x − c)m−k+1 r(x)
for x c and hence that p(c)sk−1 (c) lim p(x)sk−1 (x) lim (x − c)m−k+1 r(x) x→c
x→c
(c − c)m−k+1 r(c) 0 .
(A.4)
Equality (A.4) implies that c is a root of sk−1 (x). Thus, there exists a polynomial sk (x) such that (A.5) sk−1 (x) (x − c)sk (x) . And, substituting expression (A.5) into expression (A.2), we find that q(x) (x − c)k sk (x) , thereby completing the induction argument. Q.E.D. Theorem 21.A.5. Let p(x) and q(x) represent polynomials (in x). And suppose that p(x) q(x) for all x in some nondegenerate interval I . Then, p(x) q(x) for all x. Proof. Let c represent an interior point of I , and observe (in light of Theorem 21.A.2) that p(x) and q(x) are expressible as
a0 + a1 (x − c) + a2 (x − c)2 + · · · + an (x − c)n ,
q(x)
b0 + b1 (x − c) + b2 (x − c)2 + · · · + bn (x − c)n ,
p(x)
respectively, where n is a nonnegative integer [with n ≥ deg(p) and n ≥ deg(q)] and a0 , a1 , a2 , . . . , an and b0 , b1 , b2 , . . . bn are real numbers. And we find that for k 1, . . . , n, ∂ k p(x) ∂x k
∂ k q(x) ∂x k
n mk n mk
m(m − 1) · · · (m − k + 1)am (x − c)m−k , m(m − 1) · · · (m − k + 1)bm (x − c)m−k .
Exercises
575
Thus, b0 q(c) p(c) a0 , and, for k 1, . . . , n,
∂ k q(x) ∂ k p(x) k!ak . k!bk ∂x k xc ∂x k xc
We conclude that bk ak for k 0, 1, . . . , n and that p(x) q(x) for all x. Q.E.D.
Exercises Section 21.1 1. Show that an n × n skew-symmetric matrix A has no nonzero eigenvalues. 2. Let A represent an n × n matrix, B a k × k matrix, and X an n × k matrix such that AX XB. (a) Show that C(X) is an invariant subspace (of Rn×1 ) relative to A. (b) Show that if X is of full column rank, then every eigenvalue of B is an eigenvalue of A. 3. Let p(λ) represent the characteristic polynomial of an n × n matrix A, and let c0 , c1 , c2 , . . ., cn represent the respective coefficients of the characteristic polynomial, so that p(λ) c0 λ0 + c1 λ + c2 λ2 + · · · + cn λn
n
cs λ s
s0
(for λ ∈ R). Further, let P represent the n × n matrix obtained from p(λ) by formally replacing the scalar λ with the n × n matrix A (and by setting A0 In ). That is, let P c0 I + c1 A + c2 A2 + · · · + cn An
n
c s As .
s0
Show that P 0 (a result that is known as the Cayley-Hamilton theorem) by carrying out the following four steps. (a) Letting B(λ) A − λI and letting H(λ) represent the adjoint matrix of B(λ), show that (for λ ∈ R) H(λ) K0 + λK1 + λ2 K2 + · · · + λn−1 Kn−1 , where K0 , K1 , K2 , . . . , Kn−1 are n × n matrices (that do not vary with λ).
576
21. Eigenvalues and Eigenvectors
(b) Letting T0 AK0 , Tn −Kn−1 , and (for s 1, . . . , n − 1) Ts AKs − Ks−1 , show that (for λ ∈ R) T0 + λT1 + λ2 T2 + · · · + λn Tn p(λ)In . [Hint. It follows from Theorem 13.5.3 that (for λ ∈ R) B(λ)H(λ) |B(λ)|In p(λ)In .] (c) Show that, for s 0, 1, . . . , n, Ts cs I. (d) Show that P T0 + AT1 + A2 T2 + · · · + An Tn 0 . 4. Let c0 , c1 , . . . , cn−1 , cn represent the respective coefficients of the characteristic polynomial p(λ) of an n × n matrix A [so that p(λ) c0 + c1 λ + · · · + cn−1 λn−1 + cn λn (for λ ∈ R)]. Using the result of Exercise 3 (the CayleyHamilton theorem), show that if A is nonsingular, then c0 0, and A−1 −(1/c0 )(c1 I + c2 A + · · · + cn An−1 ) . Section 21.3 5. Show that if an n × n matrix B is similar to an n × n matrix A, then (1) Bk is similar to Ak (k 2, 3, . . .) and (2) B is similar to A . 6. Show that if an n × n matrix B is similar to an (n × n) idempotent matrix, then B is idempotent. 1 0 1 1 7. Let A and B . Show that B has the same rank, deter0 1 0 1 minant, trace, and characteristic polynomial as A, but that, nevertheless, B is not similar to A. 8. Expand on the result of Exercise 7 by showing (for an arbitrary positive integer n) that for an n×n matrix B to be similar to an n×n matrix A it is not sufficient for B to have the same rank, determinant, trace, and characteristic polynomial as A. 9. Let A represent an n × n matrix, B a k × k matrix, and X an n × k matrix such that AX XB. Show that if X is of full column rank, then there exists T11 T12 an orthogonal matrix Q such that Q AQ , where T11 is a k × k 0 T22 matrix that is similar to B. 10. Show that if 0 is an eigenvalue of an n × n matrix A, then its algebraic multiplicity is greater than or equal to n − rank(A). 11. Let A represent an n × n matrix. Show that if a scalar λ is an eigenvalue of A of algebraic multiplicity γ , then rank(A − λI) ≥ n − γ .
Exercises
577
12. Let γ1 represent the algebraic multiplicity and ν1 the geometric multiplicity of 0 when 0 is regarded as an eigenvalue of an n × n (singular) matrix A. And let γ2 represent the algebraic multiplicity and ν2 the geometric multiplicity of 0 when 0 is regarded as an eigenvalue of A2 . Show that if ν1 γ1 , then ν2 γ2 ν1 . Section 21.4 13. Let x1 and x2 represent eigenvectors of an n × n matrix A, and let c1 and c2 represent nonzero scalars. Under what circumstances is the vector x c1 x1 + c2 x2 an eigenvector of A? Section 21.5 14. Let A represent an n × n matrix, and suppose that there exists an n × n nonsingular matrix Q such that Q−1 AQ D for some diagonal matrix D {di }. Further, for i 1, . . . , n, let ri represent the ith row of Q−1 . Show (a) that A is diagonalized by (Q−1 ) , (b) that the diagonal elements of D are the (not necessarily distinct) eigenvalues of A , and (c) that r1 , . . . , rn are eigenvectors of A (with ri corresponding to the eigenvalue di ). 15. Show that if an n × n nonsingular matrix A is diagonalized by an n × n nonsingular matrix Q, then A−1 is also diagonalized by Q. 16. Let A represent an n × n matrix whose spectrum comprises k eigenvalues λ1 , . . . , λk with algebraic multiplicities γ1 , . . . , γk , respectively, that sum to n. Show that A is diagonalizable if and only if, for i 1, . . . , k, rank(A − λi I) n − γi . 17. Let A represent an n×n symmetric matrix with not-necessarily-distinct eigenvalues d1 , . . . , dn that have been ordered so that d1 ≤ d2 ≤ · · · ≤ dn . And let Q represent an n × n orthogonal matrix such that Q AQ diag(d1 , . . . , dn ) — the existence of which is guaranteed by Corollary 21.5.9. Further, for m 2, . . . , n − 1, define Sm {x ∈ Rn×1 : x 0, Qm x 0} and Tm {x ∈ Rn×1 : x 0, Pm x 0}, where Qm (q1 , . . . , qm−1 ) and Pm (qm+1 , . . . , qn ). Show that, for m 2, . . . , n − 1, dm min x∈Sm
x Ax x Ax max . x∈Tm x x x x
18. Let A represent an n × n symmetric matrix, and adopt the same notation as in Section 5f. (a) Show that the matrices E1 , . . . , Ek , which appear in the spectral decomposition (5.5) of A, have the following properties: (1) E1 + · · · + Ek I; (2) E1 , . . . , Ek are nonnull, symmetric, and idempotent; (3) for t j 1, . . . , k, Et Ej 0; and
578
21. Eigenvalues and Eigenvectors
(4) rank(E1 ) + · · · + rank(Ek ) n. (b) Take F1 , . . . , Fr to be n × n nonnull idempotent matrices such that F1 + · · · + Fr I. And suppose that, for some distinct scalars τ1 , . . . , τr , A τ1 F1 + · · · + τr Fr . Show that r k and that there exists a permutation t1 , . . . , tr of the first r positive integers such that (for j 1, . . . , r) τj λtj and Fj Etj . 19. Let A represent an n × n symmetric matrix, and let d1 , . . . , dn represent the (not necessarily distinct) eigenvalues of A. Show that limk→∞ Ak 0 if and only if, for i 1, . . . , k, |di | < 1. Section 21.7 20. (a) Show that if 0 is an eigenvalue of an n×n not-necessarily-symmetric matrix A, then it is also an eigenvalue of A+ and that the geometric multiplicity of 0 is the same when it is regarded as an eigenvalue of A+ as when it is regarded as an eigenvalue of A. (b) Show (via an example) that the reciprocals of the nonzero eigenvalues of a square nonsymmetric matrix A are not necessarily eigenvalues of A+ . Section 21.8 21. Show that, for any positive integer n that is divisible by 2, there exists an n × n orthogonal matrix that has no eigenvalues. [Hint. Find a 2 × 2 orthogonal matrix Q that has no eigenvalues, and then consider the block-diagonal matrix diag(Q, Q, . . . , Q).] 22. Let Q represent an n × n orthogonal matrix, and let p(λ) represent the characteristic polynomial of Q. Show that (for λ 0) p(λ) ±λn p(1/λ) . 23. Let A represent an n×n matrix, and suppose that the scalar 1 is an eigenvalue of A of geometric multiplicity ν. Show that ν ≤ rank(A) and that if ν rank(A), then A is idempotent. Section 21.10 24. Let A represent an n×n nonsingular matrix. And let λ represent an eigenvalue of A, and x represent an eigenvector of A corresponding to λ. Show that |A|/λ is an eigenvalue of adj(A) and that x is an eigenvector of adj(A) corresponding to |A|/λ.
Exercises
579
25. Let A represent an n × n matrix, and let p(λ) represent the characteristic polynomial of A. And let λ1 , . . . , λk represent the distinct eigenvalues of A, and γ1 , . . . , γk represent their respective algebraic multiplicities, so that (for all λ) k p(λ) (−1)n q(λ) (λ − λj )γj j 1
for some polynomial q(λ) (of degree n − kj 1 γj ) that has no real roots. Further, define B A − λ1 UV , where U (u1 , . . . , uγ1 ) is an n × γ1 matrix whose columns u1 , . . . , uγ1 are (not necessarily linearly independent) eigenvectors of A corresponding to λ1 and where V (v1 , . . . , vγ1 ) is an n × γ1 matrix such that V U is diagonal. (a) Show that the characteristic polynomial, say r(λ), of B is such that (for all λ)
r(λ) (−1)n q(λ)
γ1 i1
[λ − (1 − vi ui )λ1 ]
k
(λ − λj )γj .
(E.1)
j 2
[Hint. Since the left and right sides of equality (E.1) are polynomials (in λ), it suffices to show that they are equal for all λ other than λ1 , . . . , λk .]
(b) Show that in the special case where U V cI for some nonzero scalar c, the distinct eigenvalues of B are either λ2 , . . . , λs−1 , λs , λs+1 , . . . , λk with algebraic multiplicities γ2 , . . . , γs−1 , γs + γ1 , γs+1 , . . . , γk , respectively, or (1 − c)λ1 , λ2 , . . . , λk with algebraic multiplicities γ1 , γ2 , . . . , γk , respectively [depending on whether or not (1 − c)λ1 λs for some s (2 ≤ s ≤ k)].
(c) Show that, in the special case where γ1 1, (a) u1 is an eigenvector of B corresponding to the eigenvalue (1 − v1 u1 )λ1 and (b) for any eigenvector x of B corresponding to an eigenvalue λ [other than (1 − v1 u1 )λ1 ], the vector x − λ1 (λ1 − λ)−1 (v1 x)u1 is an eigenvector of A corresponding to λ.
580
21. Eigenvalues and Eigenvectors
Section 21.12 26. Let A represent an m × n matrix of rank r. And, take P to be any m × m orthogonal matrix and D1 to be any r × r nonsingular diagonal matrix such that 2 D1 0 P AA P . 0 0 Further, partition P as P (P1 , P2 ), where P1 has r columns, and let Q (Q1 , Q2 ), where Q1 A P1 D−1 1 and where Q2 is any n × (n − r) matrix such that Q1 Q2 0. Show that D1 0 P AQ . 0 0 27. Show that the matrices U1 , . . . , Uk , which appear in decomposition (12.7), are such that Uj Uj Uj Uj (for j 1, . . . , k) and Ut Uj 0 and Ut Uj 0 (for t j 1, . . . , k). 28. Let A represent an m × n matrix. And, as in Theorem 21.12.3, take P to be an m × m orthogonal matrix, Q an n × n orthogonal matrix, and D1 an r × r nonsingular diagonal matrix such that D1 0 P AQ . 0 0 Further, partition P and Q as P (P1 , P2 ) and Q (Q1 , Q2 ), where each of the matrices P1 and Q1 has r columns. Show that C(A) C(P1 ) and that N (A) C(Q2 ). Section 21.13 29. Let A1 , . . . , Ak represent n × n not-necessarily-symmetric matrices, each of which is diagonalizable. Show that if A1 , . . . , Ak commute in pairs, then A1 , . . . , Ak are simultaneously diagonalizable. 30. Let V represent an n × n symmetric nonnegative definite matrix, X an n × p matrix of rank r, and d a p × 1 vector. Using the results of Exercise 19.11 (or otherwise), show that each of the following three conditions is necessary and sufficient for the vector X(X X)− d to be a solution, for every d ∈ C(X ), to the problem of minimizing the quadratic form a Va (in a) subject to X a d: (a) there exists an orthogonal matrix that simultaneously diagonalizes V and PX ; (b) there exists a subset of r orthonormal eigenvectors of V that is a basis for C(X); (c) there exists a subset of r eigenvectors of V that is a basis for C(X).
Bibliographic and Supplementary Notes
581
Section 21.14 31. Let A represent an n × n symmetric matrix, and let B represent an n × n symmetric positive definite matrix. And let λmax and λmin represent, respectively, the largest and smallest roots of |A − λB|. Show that λmin ≤
x Ax ≤ λmax x Bx
for every nonnull vector x in Rn . 32. Let A represent an n × n symmetric matrix, and let B represent an n × n symmetric positive definite matrix. Show that A − B is nonnegative definite if and only if all n (not necessarily distinct) roots of |A − λB| are greater than or equal to 1 and is positive definite if and only if all n roots are (strictly) greater than 1.
Bibliographic and Supplementary Notes §15. The presentation in Section 15 was heavily influenced by that of Magnus and Neudecker (1988, sec. 8.8). For a more extensive discussion of the differentiation of eigenvalues and eigenvectors, reb r, for example, to Sections 8.7 – 8.12 of Magnus and Neudecker (and to the sources cited by them). Their coverage includes some results on the second-order differentiation of eigenvalues, on the differentiation of multiple eigenvalues, and on the differentiation of eigenvalues and eigenvectors of nonsymmetric matrices. §16. The proof of the result on polynomials given by Theorem 21.16.4 is that of Harville and Kempthorne (1997).
This page intentionally left blank
22 Linear Transformations
In more advanced presentations of the topics of Chapters 1 – 21, matrices typically play a subordinate role. In such presentations, the main results are in terms of something called a linear transformation, which is regarded as a more fundamental concept than that of a matrix. The emphasis on linear transformations results in an approach that is more abstract, more “elegant,” and more conducive to geometrical interpretation. It results in more generality in one sense, although not in another sense. It tends to appeal to the “mathematically more sophisticated,” who typically prefer “geometrical reasoning” to “algebraic arguments.” In the first part of the present (and final) chapter of the book, the concept of a linear transformation is formally introduced, and a number of results on linear transformations are derived from first principles (i.e., “independently” of matrices). And, in the latter parts of the chapter, it is shown that linear transformations can be put into 1–1 correspondence with matrices, and then, based on this correspondence, various results and terminology pertaining to matrices are extended to linear transformations.
22.1
Some Definitions, Terminology, and Basic Results
A transformation (also known as a function, operator, map, or mapping) T from a set V (consisting of scalars, row or column vectors, matrices, or other “objects”) into a set W is a correspondence that assigns to each member X of V a unique member of W. This unique member of W is denoted by the symbol T (X) and is referred to as the image of X. The use of the term “into” (in the definition of T ) alludes to the possibility that some members of W may not appear as the image
584
22. Linear Transformations
of any member of V. The set V is called the domain of T . And the set {Y ∈ W : Y T (X) for some X ∈ V}, consisting of every member of W that appears as the image of one or more members of V, is called the range of T . In the event that the range of T consists of all of W, T is said to be onto and may be referred to as a transformation from V onto W. If each member of the range of T appears as the image of only one member of V, T is referred to as a 1–1 (one to one) transformation. Corresponding to any m × n matrix A is the transformation T from Rn×1 into m×1 that assigns to each n × 1 vector x the m × 1 vector Ax. Clearly, the range of R T equals C(A). Further, T is onto if and only if A is of full row rank, that is, if and only if rank(A) m. And, T is 1–1 if and only if the columns of A are linearly independent, that is, if and only if rank(A) n. In what follows, the emphasis is on linear transformations. Let T represent a transformation from a linear space V (of m × n matrices) into a linear space W (of p × q matrices). Then, T is said to be linear if it satisfies the following two conditions: (1) for all X and Z in V, T (X + Z) T (X) + T (Z); and (2) for every scalar c and for all X in V, T (cX) cT (X). It is easy to verify that T is linear if and only if, for all scalars c and k and for all X and Z in V, T (cX + kZ) cT (X) + kT (Z) . More generally, letting r represent a positive integer (greater than 1), T is linear if and only if, for all scalars c1 , . . . , cr and for all X1 , . . . Xr in V, r r c i Xi ci T (Xi ) . (1.1) T i1
i1
Clearly, for any m × n matrix A, the transformation from the linear space Rn×1 into the linear space Rm×1 that assigns to each n × 1 vector x the m × 1 vector Ax is a linear transformation. More generally, for any r × p matrix A and any q × s matrix B, the transformation from the linear space Rp×q into the linear space Rr×s that assigns to each p × q matrix X the r × s matrix AXB is a linear transformation (as is easily verified). Let T represent a transformation from a set V into a set W. Then corresponding to any subset U of Vis the subset {Y ∈ W : Y T (X) for some X ∈ U}, consisting of every member of W that appears as the image of one or more members of U. This subset is denoted by the symbol T (U) and is referred to as the image of the set U. Note that, by definition, the image T (V) of the domain V of T is the range of T . Now, suppose that T is a linear transformation from a linear space V into a linear space W and that U is a subspace of V. Then, for any matrices X1 , . . . , Xr that span U, T (U) sp[T (X1 ), . . . , T (Xr )],
22.1 Some Definitions, Terminology, and Basic Results
585
as is evident from result (1.1). Thus, T (U) is a linear space; it is a subspace of W. In particular, the range T (V) of T is a subspace of W and, accordingly, may be referred to as the range space of T . A linear transformation T from a linear space V of m × n matrices into a linear space W of p × q matrices has the property that T (0) T (00) 0T (0) 0. Thus, T assigns the (p × q) null matrix in W to the (m × n) null matrix in V. The linear transformation T may also assign the null matrix in W to various nonnull matrices in V. The set {X ∈ V : T (X) 0} , (1.2) comprising all matrices in V to which T assigns the null matrix, is nonempty. Moreover, for any matrices X and Z in the set (1.2) and for any scalar c, T (X+Z) T (X) + T (Z) 0 + 0 0 and T (cX) cT (X) c0 0, so that X + Z and cX are in the set (1.2). Thus, the set (1.2) is a linear space; it is a subspace of V. This subspace is called the null space (or the kernel) of the linear transformation T and is denoted by the symbol N (T ). There is a simple and fundamental relationship between the range and null spaces of a linear transformation. This relationship is described in the following theorem. Theorem 22.1.1. Let T represent a linear transformation from a linear space V into a linear space W. Then, dim(V) dim(M) + dim(N ) ,
(1.3)
where M and N are, respectively, the range and null spaces of T . Proof. Let k dim(V) and s dim(N ). Further, let r k −s. And assume that r > 0 — if r 0, then (in light of Theorem 4.3.10) V N , in which case M {0} and equality (1.3) is clearly valid — and take {Z1 , . . . Zs } to be a basis for N — if s 0, interpret {Z1 , . . . , Zs } as the empty set. Then, it follows from Theorem 4.3.12 that there exist matrices X1 , . . . , Xr in V such that {X1 , . . . , Xr , Z1 , . . . , Zs } is a basis for V — if s 0, interpret {X1 , . . . , Xr , Z1 , . . . Zs } as {X1 , . . . , Xr }. Now, for i 1, . . . , r, let Yi T (Xi ) (and observe that Yi ∈ M). To prove Theorem 22.1.1, it suffices to show that {Y1 , . . . , Yr } is a basis for M. Let us begin by showing that this set spans M. Let Y represent an arbitrary matrix in M. Then there exists a matrix X in V such that Y T (X). Further, if s > 0, there exist scalars a1 , . . . , ar , b1 , . . . , bs such that r s a i Xi + b j Zj , X i1
j 1
in which case Y T (X)
r i1
ai T (Xi ) +
s j 1
bj T (Zj )
r i1
ai T (Xi )
r i1
a i Yi .
586
22. Linear Transformations
Alternatively, if s 0, there exist scalars a1 , . . . , ar such that X which case r r Y T (X) ai T (Xi ) a i Yi . i1
r
i1
ai Xi , in
i1
Thus, whether s > 0 or s 0, M ⊂ sp(Y1 , . . . , Yr ), and, consequently, {Y1 , . . . , Yr } spans M. It remains to show that {Y1
, . . . , Yr } is linearly independent.
Let c1 , . . . , cr represent any scalars such that ri1 ci Yi 0. And define Z ri1 ci Xi . Then, we have that T (Z) T (
r i1
c i Xi )
r i1
ci T (Xi )
r
c i Yi 0 ,
i1
implying
that Z belongs to N . Thus, if s > 0, there exist scalars d1 , . . . , ds such that Z sj 1 dj Zj , in which case c 1 X 1 + · · · + c r X r − d 1 Z1 − · · · − d s Zs Z − Z 0 , and (since {X1 , . . . , Xr , Z1 , . . . , Zs } is a basis for V and hence is linearly independent) it follows that c1 · · · cr 0 (and that d1 · · · ds 0). Alternatively, if s 0, then Z 0, and (since {X1 , . . . , Xr } is linearly independent), it follows that c1 · · · cr 0. In either case, we conclude that {Y1 , . . . , Yr } is linearly independent (and hence is a basis for M). Q.E.D. In connection with Theorem 22.1.1, equality (1.3) can be rewritten to give the following expressions for dim(M) and dim(N ): dim(M) dim(V) − dim(N ) ,
(1.4)
dim(N ) dim(V) − dim(M) .
(1.5)
Moreover, as an immediate consequence of Theorem 22.1.1, we have the following corollary. Corollary 22.1.2. For any linear transformation T from a linear space V into a linear space W, the dimension of the range space of T is less than or equal to dim(V), that is, less than or equal to the dimension of the domain of T . One very basic transformation is the transformation from a linear space V into a linear space W that assigns to every matrix in V the null matrix (in W). This transformation is called the zero transformation and is denoted by the symbol 0. Clearly, the zero transformation is linear. Further, its range space is the set whose only member is the null matrix, and its null space equals its domain V. Another very basic transformation is the identity transformation. The identity transformation is the transformation from a linear space V into (the same linear space) V defined by T (X) X; it is denoted by the symbol I . The identity transformation is linear (as is readily apparent). Further, it is onto; that is, its range space equals V. And, clearly, it is 1–1, implying in particular that its null space is the set whose only member is the null matrix.
22.1 Some Definitions, Terminology, and Basic Results
587
Let T represent a linear transformation from a linear space V into a linear space W, and let U represent any subspace of V. Then, the transformation, say R, from U into W defined by R(X) T (X) (which assigns to each matrix in U the same matrix in W assigned by T ) is called the restriction of T to U. Clearly, the restriction of T to U is a linear transformation. Further, its range space equals T (U), and its null space equals U ∩ N (T ). And if T is 1–1, then so is the restriction of T to U. The following four lemmas give some basic results on linear transformations. Lemma 22.1.3. Let T represent a linear transformation from a linear space V into a linear space W. Then T is 1–1 if and only if N (T ) {0} [i.e., if and only if N (T ) contains no nonnull matrices]. Proof. Suppose that T is 1–1. Then, since the image of the null matrix (in V) is the null matrix (in W), V cannot contain any other matrix (i.e., any nonnull matrix) whose image is the null matrix. Thus, N (T ) contains no nonnull matrices. Conversely, suppose that N (T ) contains no nonnull matrices. Then, for any matrices Z and X in V for which T (Z) T (X), we have that T (Z − X) T (Z) − T (X) 0, implying that Z − X ∈ N (T) and hence that Z − X 0 or, equivalently, Z X. Thus, T is 1–1. Q.E.D. Lemma 22.1.4. Let T represent a linear transformation from a linear space V into a linear space W. And let X1 , . . . , Xk represent matrices in V. If X1 , . . . , Xk are linearly dependent, then their images T (X1 ), . . . ,T(Xk ) are also linearly dependent. Proof. Suppose that X1 , . . . , Xk are linearly dependent.
Then there exist scalars c1 , . . . , ck , one or more of which is nonzero, such that ki1 ci Xi 0. And, k k ci T (Xi ) T ci Xi T (0) 0 . i1
i1
Q.E.D. Thus, T (X1 ), . . . , T (Xk ) are linearly dependent. Lemma 22.1.5. Let T represent a 1–1 linear transformation from a linear space V into a linear space W. And let X1 , . . . , Xk represent matrices in V. Then T (X1 ), . . . , T (Xk ) are linearly independent if and only if X1 , . . . , Xk are linearly independent. Proof. It suffices to show that T (X1 ), . . . , T (Xk ) are linearly dependent if and only if X1 , . . . , Xk are linearly dependent. That T (X1 ), . . . , T (Xk ) are linearly dependent if X1 , . . . , Xk are linearly dependent is an immediate consequence of Lemma 22.1.4. Now, suppose that T (X1 ), . . . , T (Xk ) are linearly dependent.
Then there exist scalars c1 , . . . , ck , one or more of which is nonzero, such that ki1 ci T (Xi ) 0.
Further, T ( ki1 ci Xi ) ki1 ci T (Xi ) 0. And, it follows from Lemma 22.1.3
k Q.E.D. that i1 ci Xi 0. Thus, X1 , . . . , Xk are linearly dependent. Lemma 22.1.6. Let T represent a linear transformation from V into W, where V and W are linear spaces of the same dimension. Then, T is 1–1 if and only if T (V) W (i.e., if and only if T is onto). Proof. According to Lemma 22.1.3, T is 1–1 if and only if N (T ) {0} or,
588
22. Linear Transformations
equivalently, if and only if dim[N (T )] 0. Moreover, according to Theorem 22.1.1, dim[N (T )] dim(V) − dim[T (V)] . Thus, T is 1–1 if and only if dim(V) − dim[T (V)] 0 or, equivalently, if and only if dim[T (V)] dim(V). And, since dim(V) dim(W), T is 1–1 if and only if dim[T (V)] dim(W). It is now clear that if T (V) W, then T is 1–1. And, conversely, if T is 1–1, then [since T (V) ⊂ W] we have [in light of Theorem 4.3.10] that T (V) W. Q.E.D. As a special case of Lemma 22.1.6, we have the following corollary. Corollary 22.1.7. Let T represent a linear transformation from V into V. Then T is 1–1 if and only if T (V) V (i.e., if and only if T is onto). The following lemma is sometimes useful. Lemma 22.1.8. Let V and W represent linear spaces. And, denoting dim(V) by r (and supposing that r > 0), let {X1 , . . . , Xr } represent a basis for V, and Y1 , . . . , Yr represent any r (not necessarily distinct) matrices in W. Then the transformation T (from V into W) defined by T (X)
r
ci Yi ,
i1
where c1 , . . . , cr are the (unique) scalars that satisfy X ri1 ci Xi , is linear. And, T (V) sp(Y1 , . . . , Yr ). Moreover, T is 1–1 if and only if Y1 , . . . , Yr are linearly independent. Proof. Letting k represent an arbitrary scalar, letting X and Z represent arbitrary matrices in V, taking c1 , . . . ,
cr and d1 , . . . , dr to be the (unique)
and
r scalars that r r satisfy X c X and Z d X , we find that kX i1 i i i1 (kci )Xi and
i1 i i X + Z ri1 (ci + di )Xi and hence that T (kX)
r
(kci )Yi k
i1
r
ci Yi kT (X)
i1
and T (X + Z)
r i1
(ci + di )Yi
r i1
c i Y+
r
di Yi T (X) + T (Z) .
i1
Thus, T is linear. To verify that T (V) sp(Y1 , . . . , Yr ), let Y represent any
matrix in r sp(Y1 , . .
. , Yr ). Then, there exist scalars c , . . . , c such that Y 1 r i1 ci Yi .
r r Clearly, i1 ci Xi ∈ V and T ( i1 ci Xi ) Y, implying that Y ∈ T (V). Thus, sp(Y1 , . . . , Yr ) ⊂ T (V), and [since obviously T (V) ⊂ sp(Y1 , . . . Yr )] it follows that T (V) sp(Y1 , . . . , Yr ). To prove the final part of the lemma, observe
(in light of Lemma 22.1.3) that T is 1–1 if and only if N (T ) {0} and (since ri1 ci Xi 0 ⇔ c1
· · · cr 0) that N (T ) {0} if and only if the only scalars c1 , . . . , cr for which ri1 ci Yi 0
22.2 Scalar Multiples, Sums, and Products of Linear Transformations
589
are c1 · · · cr 0. Thus, T is 1–1 if and only if Y1 , . . . , Yr are linearly independent. Q.E.D. Let S and T represent transformations from a set V into a set W. If S(X) T (X) for every member X of V, S and T are said to be equal (or identical), and we may write S T . The following lemma gives a necessary and sufficient condition for two linear transformations to be equal. Lemma 22.1.9. Let S and T represent linear transformations from a linear space V into a linear space W. And let X1 , . . . , Xr represent any matrices (in V) that form a basis for V or, more generally, any matrices such that sp(X1 , . . . , Xr ) V. Then (supposing that r > 0) S T if and only if, for i 1, . . . , r, S(Xi ) T (Xi ). Proof. That S(Xi ) T (Xi ) (for i 1, . . . , r) if S T is obvious. Now, suppose that, for i 1, . . . , r, S(Xi ) T (Xi ). And let X represent an
arbitrary matrix in V. Then there exist scalars c1 , . . . , cr such that X ri1 ci Xi . Further, r r r r S(X) S ci X i ci S(Xi ) ci T (Xi ) T ( ci Xi ) T (X) . i1
i1
i1
Thus, S T .
22.2
i1
Q.E.D.
Scalar Multiples, Sums, and Products of Linear Transformations
a. Scalar multiples Let T represent a transformation from a linear space V into a linear space W, and let k represent an arbitrary scalar. Then the transformation from V into W that assigns to each matrix X in V the matrix kT (X) (in W) is referred to as a scalar multiple of T and is denoted by the symbol (kT ) or (in the absence of ambiguity) kT . Thus, (kT )(X) kT (X). If the transformation T is linear, then the scalar multiple kT is also linear, as is easily verified. Clearly, 1T T , (2.1) and, letting c (like k) represent a scalar, we find that c(kT ) (ck)T (kc)T k(cT ) .
(2.2)
In the special case where k 0 or T 0, the scalar multiple kT reduces to the zero transformation (from V into W). That is, 0T 0, and k0 0. Further, it is customary to refer to the scalar multiple (−1)T as the negative of T and to abbreviate (−1)T to (−T ) or −T .
590
22. Linear Transformations
b. Sums Let T and S represent transformations from a linear space V into a linear space W. Then, the transformation from V into W that assigns to each matrix X in V the matrix T (X)+S(X) (in W) is referred to as the sum of T and S and is denoted by the symbol (T + S) or T + S. Thus, (T + S)(X) T (X) + S(X). If the transformations T and S are both linear, then their sum T + S is also linear, as is easily verified. The addition of transformations is commutative, that is, T +S S+T .
(2.3)
The addition of transformations is also associative, that is, taking R to be a third transformation from V into W, T + (S + R) (T + S) + R .
(2.4)
The symbol (T + S + R) or T + S + R is used to represent the (common) transformation given by the left and right sides of equality (2.4), and this transformation is referred to as the sum of T , S, and R. This notation and terminology extend in an obvious way to any finite number of transformations from V into W. We find (via a straightforward exercise) that, for any scalar c, c(T + S) (cT ) + (cS)
(2.5)
and that, for any scalars c and k, (c + k)T (cT ) + (kT ) .
(2.6)
Let us write (T − S) or T − S for the sum T + (−S) or, equivalently, for the transformation (from V into W) that assigns to each matrix X in V the matrix T (X) − S(X) (in W). And, let us refer to this transformation as the difference between T and S. Clearly, T −T 0. (2.7) Further, T +00+T T .
(2.8)
c. Products Let S represent a transformation from a linear space U into a linear space V, and let T represent a transformation from V into a linear space W. Consider the transformation from U into W that assigns to each matrix X in U the matrix T [S(X)] (in W) obtained by applying S to X and then applying T to S(X). This transformation is called the product (or the composition) of T and S and is denoted by the symbol (T S) or T S. Thus, (T S)(X) T [S(X)]. If the transformations T and S are both linear, then their product T S is also linear, as is easily verified.
22.2 Scalar Multiples, Sums, and Products of Linear Transformations
591
Let R represent a transformation from a linear space M into a linear space U, S a transformation from U into a linear space V, and T a transformation from V into a linear space W. Then, for any matrix X in M, (T (SR))(X) T [(SR)(X)] T {S[R(X)]} (T S)[R(X)] ((T S)R)(X) . Thus, T (SR) (T S)R .
(2.9)
The symbol (T SR) or T SR is used to represent the (common) transformation given by the left and right sides of equality (2.9), and this transformation is referred to as the product of T , S, and R — if the transformations R, S, and T are all linear, then clearly the transformation T SR is also linear. This terminology and notation extend in an obvious way to an arbitrary number of transformations. Now, let R and S represent linear transformations from a linear space U into a linear space V, and let T represent a linear transformation from V into a linear space W. Then, for any matrix X in U, (T (S + R))(X) T [(S + R)(X)] T [S(X) + R(X)] T [S(X)] + T [R(X)]
(T S)(X) + (T R)(X) .
Thus, T (S + R) (T S) + (T R) .
(2.10)
[And, the transformation T (S + R) (like R, S, and T ) is linear.] Alternatively, suppose that R is a linear transformation from a linear space U into a linear space V and that S and T are linear transformations from V into a linear space W. Then, employing an argument similar to that used to establish equality (2.10), we find that (T + S)R (T R) + (SR) .
(2.11)
[And, the transformation (T + S)R is linear.] Result (2.10) extends in an obvious way to the product of the linear transformation T (from V into W) and the sum of an arbitrary number of linear transformations (from U into V). Similarly, result (2.11) extends in an obvious way to the product of the sum of an arbitrary number of linear transformations (from V into W) and the linear transformation R (from U into V). For any transformation S from a linear space U into a linear space V and any transformation T from V into a linear space W, and for any scalar k, k(T S) (kT )S T (kS) ,
(2.12)
as is easily verified. The symbol kT S may be used to represent transformation (2.12). (Further, if the transformations S and T are linear, then so is the transformation kT S.)
592
22. Linear Transformations
For any transformation T from a linear space V into a linear space W, T I IT T , T 0 0,
0T 0
(2.13) (2.14)
(where, depending on the context, I is the identity transformation from V onto V or from W onto W, and 0 is the zero transformation from a linear space U into V or W or from W or V into U). The following theorem gives a basic result on the product of two linear transformations. Theorem 22.2.1. Let S represent a linear transformation from a linear space U into a linear space V, and let T represent a linear transformation from V into a linear space W. Then, dim(MT S ) dim(MS ) − dim(MS ∩ NT ) ,
(2.15)
where MS and MT S are the range spaces of S and T S, respectively, and NT is the null space of T . Proof. Let R represent the restriction of T to MS . And denote the range space and the null space of R by MR and NR , respectively. According to Theorem 22.1.1, dim(MR ) dim(MS ) − dim(NR ) . Moreover, it follows from the discussion (of restrictions) in Section 22.1 that MR T (MS ) T [S(U)] T S(U) MT S and NR MS ∩ NT . Thus, dim(MT S ) dim(MS ) − dim(MS ∩ NT ) . Q.E.D. As an immediate consequence of Theorem 22.2.1, we have the following corollary. Corollary 22.2.2. Let S represent a linear transformation from a linear space U into a linear space V, and let T represent a linear transformation from V into a linear space W. Then, dim(MT S ) ≤ dim(MS ) , (2.16) where MT S and MS are the range spaces of T S and S, respectively.
22.3
Inverse Transformations and Isomorphic Linear Spaces
Let T represent a transformation from a linear space V into a linear space W. Suppose that T is 1–1 and onto. Then T is said to be invertible. And there exists
22.3 Inverse Transformations and Isomorphic Linear Spaces
593
a (unique) transformation from W into V that assigns to each matrix Y in W the (unique) matrix X (in V) such that T (X) Y. This transformation is called the inverse of T and is denoted by the symbol T −1 . Thus, T −1 (Y) X [where X is such that T (X) Y]. The inverse transformation T −1 is 1–1 and onto, as can be easily verified. Moreover, if T is linear, then so is T −1 . To see this, suppose that T is linear. Then, letting c represent an arbitrary scalar, letting Y and Z represent arbitrary matrices in W, and letting X and U represent the (unique) matrices (in V) such that T (X) Y and T (U) Z, we find that T (cX) cT (X) cY and T (X + U) T (X) + T (U) Y + Z, so that T −1 (cY) cX cT −1 (Y) and
T −1 (Y + Z) X + U T −1 (Y) + T −1 (Z) .
And it follows that T −1 is linear. For any matrix X in V, we have that (T −1 T )(X) T −1 [T (X)] X I (X) (where the identity transformation I is that from V onto V). Thus, T −1 T I .
(3.1)
The inverse transformation T −1 is itself invertible (since it is 1–1 and onto). Moreover, upon applying result (3.1) (with T −1 in place of T ), we find that (T −1 )−1 T −1 I
(3.2)
(where the identity transformation I is that from W onto W). It follows that (T −1 )−1 (T −1 )−1 I (T −1 )−1 (T −1 T ) ((T −1 )−1 T −1 )T I T T . Thus, T is the inverse of T −1 . Result (3.2) can be restated as T T −1 I .
(3.3)
Let V and W represent linear spaces. If there exists a 1–1 linear transformation, say T , from V onto W, then V and W are said to be isomorphic, and T is said to be an isomorphism of V onto W. Note that the identity transformation I from a linear space V onto V is an isomorphism (from V onto V) and hence that any linear space is isomorphic to itself. Note also that I is invertible and that I −1 I . The following theorem gives a necessary and sufficient condition for two linear spaces to be isomorphic.
594
22. Linear Transformations
Theorem 22.3.1. Two linear spaces V and W are isomorphic if and only if dim(V) dim(W). Proof. Suppose that dim(V) dim(W) r for some integer r. And suppose that r > 0 — if r 0, we have that V {0} and W {0}, and these two linear spaces are clearly isomorphic. Then, there exist r linearly independent matrices Y1 , . . . , Yr in W (consisting of any r matrices that form a basis for W), and it follows from Lemma 22.1.8 that there exists a 1–1 linear transformation from V onto W. Thus, V and W are isomorphic. Conversely, suppose that V and W are isomorphic. Then, by definition, there exists an isomorphism, say T , of V onto W. And, since (according to Lemma 22.1.3) N (T ) {0}, it follows from Theorem 22.1.1 that dim(V) dim[T (V)] + dim[N (T )] dim(W) + 0 dim(W) . Q.E.D. As an immediate consequence of Theorem 22.3.1, we have the following corollary. Corollary 22.3.2. Every n-dimensional linear space is isomorphic to Rn . Let W represent an n-dimensional linear space, and let B represent a set of matrices Y1 , . . . , Yn (in W) that form a basis for W. Subsequently, the symbol LB is used to represent the transformation from Rn×1 into W that assigns to each vector x (x1 , . . . , xn ) in Rn×1 the matrix x1 Y1 + · · · + xn Yn in W. Clearly, LB is 1–1 and onto (and hence invertible) and is linear, so that LB is an isomorphism of Rn onto W. Note that the inverse L−1 B of LB is the (linear) transformation that assigns to each matrix Y in W the column vector x in Rn whose elements (x1 , . . . , xn , respectively) are (uniquely) determined by the condition Y x1 Y1 + · · · + xn Yn ; that is, whose elements are the coefficients of the basis matrices Y1 , . . . , Yn when Y is expressed as a linear combination of those matrices. For i 1, . . . , m and j 1, . . . , n, let Uij represent that m × n matrix whose ij th element equals 1 and whose remaining mn − 1 elements equal 0. Then, the set, say B, whose members are, respectively, the mn matrices U11 , U21 , . . . , Um1 , . . . , U1n , U2n , . . . , Umn , is a basis for Rm×n . It is easy to see that, for any m × n matrix A, L−1 B (A) vec(A) .
(3.4)
Similarly, for i 1, . . . , n, let U∗ii represent the n×n matrix whose ith diagonal element equals 1 and whose remaining n2 − 1 elements equal 0. And, for j < i 1, . . . , n, let U∗ij represent the n × n matrix whose ij th and j ith elements equal 1 and whose remaining n2 − 2 elements equal 0. Then, the set, say B ∗ , whose members are, respectively, the n(n + 1)/2 matrices U∗11 , U∗21 , . . . , U∗n1 , . . . , U∗ii , U∗i+1,i , . . . , U∗ni , . . . , U∗nn is a basis for the linear space of all n × n symmetric matrices. Clearly, for any n × n symmetric matrix A, L−1 B ∗ (A) vech(A) .
(3.5)
22.4 Matrix Representation of a Linear Transformation
22.4
595
Matrix Representation of a Linear Transformation
a. Background, definition, and some basic properties Any linear transformation T from an n-dimensional linear space V into an mdimensional linear space W can be replaced by a linear transformation from Rn×1 into Rm×1 . Let B represent a set of matrices V1 , . . . , Vn (in V) that form a basis for V, and let C represent a set of matrices W1 , . . . , Wm (in W) that form a basis for W. And, adopting the notation introduced in Section 3, consider the product −1 L−1 C T LB of the three linear transformations LC , T , and LB . For any n × 1 vector x and any m × 1 vector y, (L−1 C T LB )(x) y ⇔ T [LB (x)] LC (y) ,
(4.1)
as is evident upon observing that −1 −1 (L−1 C T LB )(x) (LC (T LB ))(x) LC [(T LB )(x)]
and T [LB (x)] (T LB )(x) and hence that result (4.1) can be reexpressed as L−1 C [(T LB )(x)] y ⇔ (T LB )(x) LC (y). And, for any matrix Z in V and any matrix Y in W, −1 −1 T (Z) Y ⇔ (L−1 C T LB )[LB (Z)] LC (Y) ,
(4.2)
−1 as is evident from result (4.1) upon setting x L−1 B (Z) and y LC (Y). It is now clear that the linear transformation T from V into W can be replaced n×1 by the transformation L−1 into C T LB , which is a linear transformation from R m×1 R . While T transforms each matrix Z in V into a matrix T (Z) in W, L−1 C T LB transforms the n-dimensional column vector x (x1 , . . . , xn ) , whose elements are the coefficients of the basis matrices V1 , . . . , Vn in the representation Z x1 V1 +· · ·+xn Vn , into the m-dimensional column vector y (y1 , . . . , ym ) , whose elements are the coefficients of the basis matrices W1 , . . . Wm in the representation T (Z) y1 W1 + · · · + ym Wm . The image (L−1 C T LB )(x) of an arbitrary n × 1 vector x (x1 , . . . , xn ) under −1 the transformation LC T LB can be obtained by premultiplying x by a certain matrix. To see this, observe that (for j 1, . . . , n) the image T (Vj ) of the j th basis matrix Vj for V (under the transformation T ) can be uniquely expressed as a linear combination of the basis matrices for W; that is, there exist unique scalars a1j , a2j , . . . , amj such that
T (Vj ) a1j W1 + a2j W2 + · · · + amj Wm .
(4.3)
And, let A represent the m × n matrix whose j th column is (a1j , a2j , . . . , amj ) or, equivalently, whose ij th element is aij . This matrix, which is dependent on the choice of the bases B and C, is referred to as the matrix representation of the transformation T (or simply as the matrix of T ).
596
22. Linear Transformations
Now, let Z nj1 xj Vj [where x (x1 , . . . , xn ) is an arbitrary n × 1 vector]. Then Z is in V, and there exists a unique vector y (y1 , . . . , ym ) in Rm×1 such that m T (Z) yi Wi . (4.4) i1
Moreover, it follows from the definition of a linear transformation that n n n m n m T (Z) T x j Vj xj T (Vj ) xj aij Wi xj aij Wi . j 1
j 1
j 1
i1
i1
j 1
And, in light of the uniqueness of the coefficients y1 , . . . , ym in representation (4.4), we have that yi
n
xj aij
(i 1, . . . , m) .
(4.5)
j 1
The m equalities (4.5) can be rewritten as the matrix equality y Ax .
(4.6)
Moreover, since clearly T [LB (x)] T (Z) LC (y), it follows from result (4.1) that y (L−1 C T LB )(x). Thus, (L−1 C T LB )(x) Ax ;
(4.7)
that is, the image of x under the transformation L−1 C T LB equals Ax. Let S represent a linear transformation from V into W such that S T . Further, define F {fij } to be the matrix representation of S (with respect to the bases B and C), and observe that, as a consequence of Lemma 22.1.9, there exists an integer j (between 1
and n, inclusive) such that S(Vj ) T (Vj ). Then, since (by definition) S(Vj ) m i1 fij Wi , it follows that fij aij for some integer i and hence that F A. Thus, distinct transformations from V into W have distinct matrix representations (with respect to the same bases).
b. Some special cases It is instructive to consider the matrix representation of a linear transformation in the following special cases. 1. Let T represent a linear transformation from an n-dimensional linear space V into Rm×1 . Further, let B represent a set of matrices V1 , . . . , Vn that form a basis for V, and let C represent a set of (n-dimensional) column vectors w1 , . . . , wm that form a basis for Rm×1 . Then, letting W represent the m × m (nonsingular) matrix whose first, . . ., mth columns are w1 , . . . , wm , respectively, the matrix representation of T with respect to B and C is (by definition) the unique m × n matrix A such that WA [T (V1 ), . . . , T (Vn )] , (4.8)
22.4 Matrix Representation of a Linear Transformation
597
that is, the matrix W−1 [T (V1 ), . . . , T (Vn )] .
(4.9)
Note that when C is taken to be the natural basis for Rm×1 , W I, and the matrix (4.9) simplifies to [T (V1 ), . . . , T (Vn )]. 2. Let A represent an m × n matrix. Then, as discussed in Section 22.1, the transformation T from Rn×1 into Rm×1 defined by T (x) Ax is a linear transformation. The matrix representation of T with respect to the natural bases for Rn×1 and Rm×1 (which consist of the columns of In and Im , respectively) is the matrix A. However, except for special cases, the matrix representation of T with respect to other bases differs from A. 3. Let V represent an n-dimensional linear space. And let B {V1 , . . . , Vn } and C {W1 , . . . , Wn } represent arbitrary bases for V. Then the matrix representation (with respect to B and C) of the identity transformation I from V onto V is the unique n × n matrix A {aij } such that (for j 1, . . . , n) Vj a1j W1 + a2j W2 + · · · + anj Wn .
(4.10)
Moreover, the columns of A are linearly independent and hence A is nonsingular (since if the columns of A were linearly dependent, then, in light of the linear independence of V1 , . . . , Vn , we would arrive at a contradiction of Lemma 3.2.4). Note that if x (x1 , . . . , xn ) is the n-dimensional column vector whose elements are the coefficients of the basis matrices V1 , . . . , Vn when a matrix Z (in V) is expressed as Z x1 V1 + · · · + xn Vn , then the first, . . . , nth elements y1 , . . . , yn of the n-dimensional column vector y Ax are the coefficients of the basis matrices W1 , . . . , Wn when Z is expressed as Z y1 W1 + · · · + yn Wn . Note also that A In if (and only if) B C. Further, for any n × n nonsingular matrix A {aij } and for any choice of the basis C, the basis B can be chosen so that A is the matrix representation of the identity transformation I (from V onto V) with respect to B and C. This can be done by choosing (for j 1, . . . , n) Vj a1j W1 + a2j W2 + · · · + anj Wn ; that V1 , . . . , Vn are linearly independent (and hence form a basis for V) is evident from Lemma 3.2.4. Now, suppose that V Rn×1 . Then, B comprises n column vectors v1 , . . . , vn , and similarly C comprises n column vectors w1 , . . . , wn . Defining V (v1 , . . . , vn ) and W (w1 , . . . , wn ) (both of which are n × n nonsingular matrices), the matrix representation of the identity transformation I from Rn×1 onto Rn×1 with respect to B and C is the (unique) n × n (nonsingular) matrix A such that WA V [as is evident from equality (4.10)], that is, the matrix W−1 V. 4. Let B represent a set of matrices Y1 , . . . , Yn that form a basis for an ndimensional linear space W, and let C represent the set comprising the first, . . . , nth columns, say e1 , . . . , en , of In (which is the natural basis for Rn×1 ). Further, let A {aij } denote the matrix representation of the linear transformation LB (with
598
22. Linear Transformations
respect to C and B). For j 1, . . . , n, we have that Yj LB (ej )
n
aij Yi ,
i1
implying that ajj 1 and that, for i j , aij 0. Thus, A In . 5. Let T represent a linear transformation from Rm×n into Rp×q . Further, let C represent the natural basis for Rm×n , comprising the mn matrices U11 , U21 , . . . , Um1 , . . . , U1n , U2n , . . . , Umn , where (for i 1, . . . , m and j 1, . . . , n) Uij is the m × n matrix whose ij th element equals 1 and whose remaining mn − 1 elements equal 0; and, similarly, let D represent the natural basis for Rp×q . Then, making use of result (3.4), we find that, for any mn × 1 vector x, −1 −1 (L−1 D T LC )(x) (LD (T LC ))(x) LD [(T LC )(x)] vec[(T LC )(x)] vec{T [LC (x)]} .
Further, for any m × n matrix X {xij }, (L−1 D T LC )(vec X) vec{T [LC (vec X)]} vec(T {LC [L−1 C (X)]}) vec[T (X)] ,
(4.11)
implying in particular that (L−1 D T LC )(vec
X)
vec T xij Uij
vec
i,j
xij T Uij
i,j
xij vec[T (Uij )]
i,j
[vec T (U11 ), . . . , vec T (Um1 ), . . . , vec T (U1n ), . . . , vec T (Umn )]vec(X) .
And, in light of result (4.7), it follows that the matrix representation of T (with respect to the natural bases C and D) equals the pq × mn matrix [vec T (U11 ), . . . , vec T (Um1 ), . . . , vec T (U1n ), . . . , vec T (Umn )] .
(4.12)
Suppose, for instance, that (for every m × n matrix X) T (X) AXB , where A is a p × m matrix and B an n × q matrix. Then the matrix representation of T (with respect to the natural bases C and D) is B ⊗ A. To see this, observe [in light of result (4.11) and Theorem 16.2.1] that (L−1 D T LC )(vec X) vec[T (X)] (B ⊗ A)vec X ,
22.4 Matrix Representation of a Linear Transformation
599
and apply result (4.7). Or, alternatively, letting ai represent the ith column of a and bj the j th row of B, observe [in light of result (16.2.3)] that vec T (Uij ) vec(ai bj ) bj ⊗ ai (i 1, . . . , m ; j 1, . . . , n) and hence [in light of results (16.1.28) and (16.1.27)] that expression (4.12) simplifies to (b1 ⊗ a1 , . . . , b1 ⊗ am , . . . , bn ⊗ a1 , . . . , bn ⊗ am ) (b1 ⊗ A, . . . bn ⊗ A) (b1 , . . . , bn ) ⊗ A B ⊗ A . 6. Let V represent the linear space of all n × n symmetric matrices and W the linear space of all p × p symmetric matrices, and let T represent a linear transformation from V into W. Further, let B represent the usual basis for V, comprising the n(n + 1)/2 matrices U∗11 , U∗21 , . . ., U∗n1 , . . . , U∗ii , . . . , U∗i+1,i , . . . , U∗ni , . . ., U∗nn , where (for i 1, . . . , n) U∗ii is the n × n matrix whose ith diagonal element equals 1 and whose remaining n2 − 1 elements equal 0 and where (for j < i 1, . . . , n) U∗ij is the n × n matrix whose ij th and j ith elements equal 1 and whose remaining n2 − 2 elements equal 0. And let C represent the usual basis for W. Then, making use of result (3.5), we find that, for any n(n + 1)/2 × 1 vector x, −1 −1 (L−1 C T LB )(x) (LC (T LB ))(x) LC [(T LB )(x)] vech[(T LB )(x)] vech{T [LB (x)]} .
Further, for any n × n symmetric matrix X {xij }, (L−1 C T LB )(vech X) vech{T [LB (vech X)]} vech(T {LB [L−1 B (X)]}) vech[T (X)] , implying in particular that (L−1 C T LB )(vech
X)
vech T
vech
i,j
i,j
i,j
(4.13)
xij U∗ij
xij T
U∗ij
xij vech[T (U∗ij )]
[vech T (U∗11 ), . . . , vech T (U∗n1 ), . . . , vech T (U∗ii ), . . . , vech T (U∗ni ), . . . , vech T (U∗nn )]vech(X) .
And, in light or result (4.7), it follows that the matrix representation of T (with respect to the usual bases B and C) equals the p(p + 1)/2 × n(n + 1)/2 matrix [vech T (U∗11 ), . . . , vech T (U∗n1 ), . . . , vech T (U∗ii ),
. . . vech T (U∗ni ), . . . , vech T (U∗nn )] .
(4.14)
600
22. Linear Transformations
Suppose, for instance, that p n (implying that W V and C B) and that (for every n × n symmetric matrix X) T (X) AXA , where A is an n × n matrix. Then, the matrix representation of T (with respect to the usual bases) is Hn (A ⊗ A)Gn (where Gn and Hn are as defined in Section 16.4b), as can be verified by, for example, observing [in light of results (4.13) and (16.4.25)] that (L−1 C T LB )(vech X) vech[T (X)] [Hn (A ⊗ A)Gn ]vech X and applying result (4.7).
c. Matrix representations of scalar multiples, sums, and products of linear transformations The following two theorems give some basic results on the matrix representations of scalar multiples, sums, and products of linear transformations. Theorem 22.4.1. Let k represent a scalar, and let T and S represent linear transformations from an n-dimensional linear space V into an m-dimensional linear space W. And let C and D represent bases for V and W, respectively. Further, let A {aij } represent the matrix representation of T with respect to C and D, and B {bij } the matrix representation of S with respect to C and D. Then, kA is the matrix representation of kT (with respect to C and D) and A + B is the matrix representation of T + S (with respect to C and D). Proof. Let V1 , . . . , Vn represent the matrices that form the basis C, and W1 , . . . , Wm the matrices that form the basis D. Then, for j 1, . . . , n, (kT )(Vj ) kT (Vj ) k
m
aij Wi
i1
m
(kaij )Wi ,
i1
and (T + S)(Vj ) T (Vj ) + S(Vj )
m i1
aij Wi +
m i1
bij Wi
m
(aij + bij )Wi .
i1
Thus, the matrix representation of kT (with respect to C and D) is the m×n matrix whose ij th element is kaij , that is, the matrix kA; and the matrix representation of T + S (with respect to C and D) is the m × n matrix whose ij th element is aij + bij , that is, the matrix A + B. Q.E.D. Theorem 22.4.2. Let S represent a linear transformation from a p-dimensional linear space U into an n-dimensional linear space V, and let T represent a linear transformation from V into an m-dimensional linear space W. And let C, D, and E represent bases for U, V, and W, respectively. Further, let A {aij } represent
22.4 Matrix Representation of a Linear Transformation
601
the matrix representation of S with respect to C and D, and B {bij } the matrix representation of T with respect to D and E. Then BA is the matrix representation of T S (with respect to C and E). Proof. Let U1 , . . . , Up represent the matrices that form the basis C, V1 , . . . , Vn the matrices that form the basis D, and W1 , . . . , Wm the matrices that form the basis E. Then, for j 1, . . . , p, (T S)(Uj ) T [S(Uj )]
T n
m
akj Vk
k1
akj T (Vk )
k1
n k1
akj
m i1
bik Wi
m n i1
bik akj Wi .
k1
Thus, the matrix representation
of T S (with respect to C and E) is the m × p matrix whose ij th element is nk1 bik akj , that is, the matrix BA. Q.E.D. The results given by Theorems 22.4.1 and 22.4.2 on the matrix representations of a sum and a product of two linear transformations can be extended (by repeated application) to a sum and a product of any finite number of linear transformations. If T1 , T2 , . . . , Tk are linear transformations from a linear space V into a linear space W, and if A1 , A2 , . . . , Ak are their respective matrix representations (with respect to the same bases C and D), then A1 + A2 + · · · + Ak is the matrix representation of T1 + T2 + · · · + Tk (with respect to C and D). Similarly, if B0 , B1 , . . . , Bk are bases for linear spaces V0 , V1 , . . . , Vk , respectively, and if (for i 1, . . . , k) Ti is a linear transformation from Vi−1 into Vi , and Ai is the matrix representation of Ti with respect to Bi−1 and Bi , then Ak · · · A2 A1 is the matrix representation of Tk · · · T2 T1 with respect to B0 and Bk . As a corollary of Theorem 22.4.2, we have the following result. Corollary 22.4.3. Let T represent an invertible linear transformation from a linear space V onto a linear space W (in which case V and W are of the same dimension). And, let B and C represent bases for V and W, respectively. Further, let A represent the matrix representation of T with respect to B and C. Then A is nonsingular, and A−1 is the matrix representation of T −1 (which is a linear transformation from W onto V) with respect to C and B. Proof. Let H represent the matrix representation of T −1 (with respect to C and B). Then, since [according to result (3.1)] T −1 T I and since (as discussed in Part 3 of Subsection b) the matrix representation of the identity transformation from V onto V (with respect to B and B) is I, it follows from Theorem 22.4.2 that HA I. And, based on Lemma 8.1.3, we conclude that A is nonsingular and that H A−1 . Q.E.D.
602
22. Linear Transformations
d. Change of bases The effect of a change of bases on the matrix representation of a linear transformation is described in the following theorem. Theorem 22.4.4. Let T represent a linear transformation from a linear space V into a linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). Then the matrix representation of T with respect to alternative bases E and F (for V and W, respectively) equals S−1 AR, where R is the matrix representation of the identity transformation from V onto V with respect to E and B and S is the matrix representation of the identity transformation from W onto W with respect to F and C. Proof. To avoid confusion, let us write I1 for the identity transformation from V onto V and I2 for the identity transformation from W onto W. Then, since I −1 I , we have that T I2−1 T I1 . And, upon observing (in light of Corollary 22.4.3) that S−1 is the matrix representation of I2−1 with respect to C and F , and upon applying Theorem 22.4.2, we find that the matrix representation of T with respect to E and F equals S−1 AR. Q.E.D. As special cases of Theorem 22.4.4, we have the following two corollaries. Corollary 22.4.5. Let T represent a linear transformation from a linear space V into a linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). Then, the matrix representation of T with respect to an alternative basis E (for V) and the basis C equals AR, where R is the matrix representation of the identity transformation from V onto V with respect to E and B. And the matrix representation of T with respect to B and an alternative basis F (for W) equals S−1 A, where S is the matrix representation of the identity transformation from W onto W with respect to F and C. Corollary 22.4.6. Let V represent a linear space, and let C and F represent bases for V. Further, let T represent a linear transformation from V into V, and let A represent the matrix representation of T with respect to C and C. Then the matrix representation of T with respect to F and F equals S−1 AS, where S is the matrix representation of the identity transformation (from V onto V) with respect to F and C. Let V represent an n-dimensional linear space and W an m-dimensional linear space. Further, let B represent a basis for V and C a basis for W. And let R represent an n × n nonsingular matrix and S an m × m nonsingular matrix. Then, in light of the discussion in Part 3 of Subsection b, there exists a basis E for V such that R is the matrix representation of the identity transformation (from V onto V) with respect to E and B, and similarly there exists a basis F for W such that S is the matrix representation of the identity transformation (from W onto W) with respect to F and C. Thus, as a consequence of Theorem 22.4.4 and Corollary 22.4.6, we have the following two results. Theorem 22.4.7. Let V represent an n-dimensional linear space and W an mdimensional linear space. Further, let B represent a basis for V and C a basis for W. And let T represent a linear transformation from V into W, and A represent the matrix representation of T with respect to B and C. Then an m × n matrix H
22.5 Terminology and Properties Shared by a Linear Transformation
603
is a matrix representation of T with respect to some bases E and F if and only if H S−1 AR for some n×n (nonsingular) matrix R and some m×m (nonsingular) matrix S. Theorem 22.4.8. Let V represent an n-dimensional linear space, and let C represent any basis for V. Further, let T represent a linear transformation from V into V, and let A represent the matrix representation of T with respect to C and C. And let H represent an n × n matrix. Then there exists a basis F for V such that H is the matrix representation of T with respect to F and F if and only if H S−1 AS for some n × n (nonsingular) matrix S, that is, if and only if H is similar to A.
22.5
Terminology and Properties Shared by a Linear Transformation and Its Matrix Representation
Let V represent an n-dimensional linear space and W an m-dimensional linear space. And let B represent a set of matrices V1 , . . . , Vn (in V) that form a basis for V, and C represent a set of matrices W1 , . . . , Wm (in W) that form a basis for W. Then, corresponding to each linear transformation T from V into W is its matrix representation A {aij } (with respect to B and C), which is the m × n matrix whose j th column is uniquely defined (for j 1, . . . , n) by equation (4.3). Conversely, corresponding to any m × n matrix A, there is a unique linear transformation from V into W that has A as its matrix representation (with respect to B and C), namely, the transformation LC SL−1 B , where S is the (linear) transformation from Rn into Rm defined by S(x) Ax. To see this, observe (in light of Part 4 of Section 22.4b) that the matrix representation of LB (with respect to the natural basis for Rn×1 and the basis B) is In , and that the matrix representation of LC (with respect to the natural basis for Rm×1 and the basis C) is Im . Then, making use of Theorem 22.4.2 and Corollary 22.4.3, we find (in light of Part 2 of Section 22.4b) that the matrix representation of LC SL−1 B (with respect to B and C) is Im AI−1 A. [Moreover, it follows from the discussion in Section 22.4a that n LC SL−1 is the only linear transformation from V into W that has A as its matrix B representation (with respect to B and C).] Thus, by associating every linear transformation (from V into W) with its matrix representation (with respect to B and C), we obtain a 1–1 correspondence between transformations (from V into W) and m×n matrices. It is customary to use the same or similar terminology in speaking of various kinds of linear transformations as in speaking of their matrix counterparts (and vice versa). For example, in the special case where W V and C B, the identity matrix is the matrix representation of the identity transformation from V onto V. Results on linear transformations can be translated into results on matrices (and conversely). As discussed in Section 22.4a, a linear transformation T from V into W can n×1 be replaced by L−1 into Rm×1 C T LB , which is a linear transformation from R −1 LC T LB transforms an n × 1 vector x (x1 , . . . , xn ) , whose elements can be
604
22. Linear Transformations
regarded as the coefficients or “coordinates” of a matrix Z in V (when Z is expressed as a linear combination Z x1 V1 + · · · + xn Vn of the basis matrices V1 , . . . , Vn ) into the m × 1 vector y (y1 , . . . , ym ) , whose elements are the coefficients or “coordinates” of the matrix T(Z) in W [when T(Z) is expressed as a linear combination T (Z) y1 W1 + · · · + ym Wm of the basis matrices W1 , . . . , Wm ]. Further, the image (L−1 C T LB )(x) of x can be obtained by matrix multiplication, using the formula L−1 C T LB (x) Ax, where A is the matrix representation of T (with respect to B and C). Accordingly, one approach to the subject of linear transformations is to restrict attention to linear transformations defined, in terms of an m × n matrix A, by specifying that Ax is the image of an arbitrary n × 1 vector x. In a certain sense, there is no loss of generality in this approach. Its appeal is that it allows results on linear transformations to be developed as results on matrices and to be expressed in the language of matrices. An alternative approach is to derive results on linear transformations from first principles (starting with the definition of a linear transformation), with matrices playing a subordinate role. This approach, which was followed to a considerable extent in Sections 22.1 – 22.3, is sometimes referred to as the coordinate-free approach. Let us now consider a few of the more important relationships between linear transformations and their matrix representations, beginning with the following result on null spaces and on range or column spaces. Theorem 22.5.1. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). (1) An m × 1 vector y is in C(A) if and only if the corresponding matrix LC (y) is in the range space T (V) of T , or, equivalently, a matrix Y (in W) is in T (V) if and only if the corresponding vector L−1 C (Y) is in C(A). (2) An n × 1 vector x is in N (A) if and only if the corresponding matrix LB (x) is in N (T ), or, equivalently, a matrix X (in V) is in N (T ) if and only if the corresponding vector L−1 B (X) is in N (A). Proof. (1) Making use of results (4.7) and (4.1), we find that y ∈ C(A)
⇔
y Ax for some vector x
⇔
y (L−1 C T LB )(x) for some vector x
⇔
LC (y) T [LB (x)] for some vector x
⇔ LC (y) ∈ T (V) . (2) Again making use of results (4.7) and (4.1), we find that x ∈ N (A) ⇔ Ax 0 ⇔
(L−1 C T LB )(x) 0
⇔
T [LB (x)] LC (0)
22.5 Terminology and Properties Shared by a Linear Transformation
⇔
605
T [LB (x)] 0 ⇔ LB (x) ∈ N (T ) .
Q.E.D. The dimension dim[T (V)] of the range space of a linear transformation T from a linear space V into a linear space W is referred to as the rank of T and is denoted by the symbol rank T or rank(T ). This use of the term rank is consistent with its use in connection with matrices, as described in the following theorem. Theorem 22.5.2. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). Then, rank T rank A . (5.1) Proof. Part (1) of Theorem 22.5.1 implies that LC [C(A)] T (V) (as can be easily verified). Thus, there exists a 1–1 linear transformation from C(A) onto T (V), namely, the linear transformation R defined [for y ∈ C(A)] by R(y) LC (y). And, it follows that C(A) and T (V) are isomorphic. Based on Theorem 22.3.1, we conclude that dim[T (V)] dim[C(A)] or, equivalently, that rank T rank A. Q.E.D. In connection with Theorem 22.5.2, note that result (5.1) does not depend on the choice of the bases B and C. Note also that, as a consequence of Theorem 22.1.1 and Lemma 11.3.1, we have the following corollary. Corollary 22.5.3. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). Then, dim[N (T )] n − rank(T ) n − rank(A) dim[N (A)] . (5.2) Now, let T represent a linear transformation from a linear space V into V. Then, a scalar (real number) λ is said to be an eigenvalue of T if there exists a nonnull matrix X (in V) such that T (X) λX , in which case X may be referred to as an eigenmatrix (or, in the special case where V is a linear space of vectors, as an eigenvector) corresponding to λ. As might be suspected, the eigenvalues and eigenmatrices of a linear transformation T are related to the eigenvalues and eigenvectors of the matrix representation of T . This relationship is described in the following theorem. Theorem 22.5.4. Let T represent a linear transformation from an n-dimensional linear space V into V, let B represent any basis for V, and let A represent the matrix representation of T (with respect to B and B). Then a scalar λ is an eigenvalue of A and an n × 1 vector x is an eigenvector of A corresponding to λ if and only if λ is an eigenvalue of T and LB (x) is an eigenmatrix of T corresponding to λ. Proof. In light of results (4.7) and (4.1), Ax λx ⇔ (L−1 B T LB )(x) λx ⇔ T [LB (x)] LB (λx) ⇔ T [LB (x)] λLB (x) . Moreover, x is nonnull if and only if LB (x) is nonnull.
Q.E.D.
606
22. Linear Transformations
A subspace U of an n-dimensional linear space V is said to be invariant relative to a linear transformation T from V into V if T (U) ⊂ U, that is, if for every matrix Z in U, the image T (Z) of Z is also in U. As described in the following theorem, the invariance of a subspace of an n-dimensional linear space V relative to a linear transformation T (from V into V) is related to the invariance of a subspace of Rn×1 relative to the matrix representation of T . Theorem 22.5.5. Let T represent a linear transformation from an n-dimensional linear space V into V, let B represent any basis for V, and let A represent the matrix representation of T (with respect to B and B). Then a subspace U of Rn×1 is invariant relative to A if and only if the corresponding subspace LB (U) of matrices in V is invariant relative to T . Proof. In light of result (4.7), U is invariant relative to A if and only if U is n×1 invariant relative to L−1 into B T LB (which is a linear transformation from R −1 n×1 R ). Thus, it suffices to show that U is invariant relative to LB T LB if and only if LB (U) is invariant relative to T . Suppose that LB (U) is invariant relative to T . And let x represent an arbitrary vector in U [so that LB (x) ∈ LB (U)]. Then T [LB (x)] Y for some matrix Y in LB (U), or, equivalently, T [LB (x)] LB (y) for some vector y in U. And it follows from result (4.1) that (L−1 B T LB )(x) y for some y in U and hence that −1 (L−1 B T LB )(x) ∈ U. Thus, U is invariant relative to LB T LB . Conversely, suppose that U is invariant relative to L−1 B T LB . And let Z represent an arbitrary matrix in LB (U). Then there exists a vector x in U such that Z LB (x). Moreover, (L−1 B T LB )(x) y for some vector y in U. Thus, making use of result (4.1), we find that T (Z) T [LB (x)] LB (y) ∈ LB (U) . And it follows that LB (U) is invariant relative to T .
22.6
Q.E.D.
Linear Functionals and Dual Transformations
In the special case where W R1 , it is customary to refer to a linear transformation from a linear space V into a linear space W as a linear functional on V. Thus, a linear functional f on a linear space V transforms each matrix
X in V into a scalar f (X) and does so in such a way that f ( ri1 ci Xi ) ri1 ci f (Xi ) for any r matrices X1 , . . . , Xr (in V) and any r scalars c1 , . . . , cr (where r is an arbitrary positive integer). Note that if the linear functional f is the zero functional [i.e., if f (X) 0 for every matrix X in the domain V of f ], then the range of f is {0} and that otherwise the range of f is R1 . It follows from the discussion in Section 14.1 that, corresponding to any linear functional f on Rn×1 , there exists a unique vector a in Rn×1 such that f (x) a x for every vector x in Rn×1 , that is, such that f (x) equals the usual inner product of a and x. And, for any vector a in Rn×1 , the function with domain Rn×1 that
22.6 Linear Functionals and Dual Transformations
607
transforms each vector x in Rn×1 into the usual inner product a x of a and x is a linear functional on Rn×1 . These results are generalized (to inner products other than the usual inner product and to linear spaces other than Rn×1 ) in the following lemma. Lemma 22.6.1. (1) Corresponding to any linear functional f on a linear space V (and to any inner product for V), there exists a matrix A in V such that f (X) A • X for every matrix X in V. Moreover, this matrix is unique and is expressible as A f (X1 )X1 + · · · + f (Xr )Xr , where X1 , . . . , Xr are any matrices that form an orthonormal basis for V. (2) For any matrix A in V, the function f (with domain V) that transforms each matrix X in V into the inner product A • X of A and X is a linear functional on V. Proof. (1) Let X represent an arbitrary matrix in V. Then, according to Theorem 6.4.4, X ri1 (X • Xi )Xi . And we find that r r r f (X) (X • Xi )f (Xi ) f (Xi )(Xi • X) f (Xi )Xi • X A • X , i1
i1
i1
r
where A i1 f (Xi )Xi . Now, let B represent any matrix in V such that f (X) B • X for every X in V. Then, to complete the proof of Part (1), it suffices to show that B A. For every X in V, we have that B • X f (X) A • X and hence that (B − A) • X (B • X) − (A • X) 0 . In particular, (B − A) • X 0 for X B − A; that is, (B − A) • (B − A) 0, implying that B − A 0 or, equivalently, that B A. (2) That the function f is a linear functional on V is an immediate consequence of the properties of inner products. Q.E.D. Let A represent an m × n matrix. Take x • z to be the usual inner product x z of arbitrary vectors x and z in Rn×1 , and write u ∗ y for the usual inner product u y of arbitrary vectors u and y in Rm×1 . Then there exists a unique n × m matrix B such that (6.1) x • (By) (Ax) ∗ y for every x in Rn×1 and every y in Rm×1 , and B A (as can be easily verified). The following theorem extends this result to transformations. Theorem 22.6.2. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W. And write X • Z for the inner product of arbitrary matrices X and Z in V, and U ∗ Y for the inner product of arbitrary matrices U and Y in W. Then there exists a linear transformation S from W into V such that X • S(Y) T (X) ∗ Y
608
22. Linear Transformations
for every matrix X in V and every matrix Y in W. Moreover, this linear transformation is unique, and (for every Y in W) S(Y) [Y ∗ T (X1 )]X1 + [Y ∗ T (X2 )]X2 + · · · + [Y ∗ T (Xn )]Xn , where X1 , X2 , . . . , Xn are any matrices that form an orthonormal basis for V. Proof. Let X represent an arbitrary matrix in V, and
Y an arbitrary matrix in W. And observe (in light of Theorem 6.4.4) that X nj1 (X • Xj )Xj and that
(for j 1, . . . , n) Xj ni1 (Xj • Xi )Xi . Then, n T (X) ∗ Y T (X • Xj )Xj ∗ Y
j 1 n
(X Xj )T (Xj ) ∗ Y •
j 1
n j 1
n
(X • Xj )[T (Xj ) ∗ Y] ) ( n • (X Xj ) T (Xi Xj )Xi ∗ Y •
j 1
n
i1
(X • Xj )
( n
j 1
n
(X • Xj )
i1 n
(X • Xj )
n
•
(Xi • Xj )[T (Xi ) ∗ Y] [Y ∗ T (Xi )](Xi • Xj )
(X Xj )
( n (
n
[Y ∗ T (Xi )]Xi
n
Xj )
[Y ∗ T (Xi )]Xi
i1
(X • Xj )Xj
•
j 1
) •
i1
(X • Xj ) Xj •
j 1
(Xi • Xj )T (Xi ) ∗ Y
i1
j 1
n
j 1
j 1
)
i1
n
n
n
[Y ∗ T (Xi )]Xi
i1
X • S(Y) ,
where S is the transformation from W into V that transforms each matrix Y in
W into the matrix ni1 [Y ∗ T (Xi )]Xi . Moreover, S is linear, as is evident upon observing that (for any scalar k and for any matrices Y and U in W) S(kY)
n i1
[(kY) ∗ T (Xi )]Xi k
n i1
[Y ∗ T (Xi )]Xi kS(Y)
Exercises
609
and S(U + Y)
n i1 n i1
[(U + Y) ∗ T (Xi )]Xi [U ∗ T (Xi )]Xi +
n
[Y ∗ T (Xi )]Xi S(U) + S(Y) .
i1
Now, let R represent any linear transformation from W into V such that X • R(Y) T (X) ∗ Y for every X ∈ V and every Y ∈ W. Then, to complete the proof, it suffices to show that R S. For every X ∈ V and every Y ∈ W, we have that X • R(Y) X • S(Y) and hence that X • [R(Y) − S(Y)] X • R(Y) − X • S(Y) 0 . And, upon setting X R(Y)−S(Y), we find that [R(Y)−S(Y)] • [R(Y)−S(Y)] 0 for every Y and hence that R(Y) − S(Y) 0 or, equivalently, R(Y) S(Y) (for every Y). Thus, R S. Q.E.D. The linear transformation S in Theorem 22.6.2 is referred to as the dual transformation of T or the adjoint transformation of T (or simply as the adjoint of T ) — referring to this transformation as the adjoint transformation risks confusion with the adjoint matrix (which was introduced in Section 13.5 and is unrelated to the dual or adjoint transformation). Note that the dual transformation of T depends on the choice of inner products for V and W. Now, let A represent an m × n matrix. And consider the dual transformation S of the linear transformation T from Rn×1 into Rm×1 defined by T (x) Ax (where x is an arbitrary n × 1 vector), taking the inner products for Rn×1 and Rm×1 to be the usual inner products. Then, for every x in Rn×1 and every y in Rm×1 , x S(y) (Ax) y x A y . And, in light of the uniqueness of S, it follows that (for all y in Rm×1 ) S(y) A y
(6.2)
[which is consistent with the earlier observation that the unique matrix B that satisfies condition (6.1) (for all x ∈ Rn×1 and all y ∈ Rm×1 ) equals A ].
Exercises Section 22.1 1. Let U represent a subspace of a linear space V, and let S represent a linear transformation from U into a linear space W. Show that there exists a linear transformation T from V into W such that S is the restriction of T to U.
610
22. Linear Transformations
2. Let T represent a 1–1 linear transformation from a linear space V into a linear space W. And write U · Y for the inner product of arbitrary matrices U and Y in W. Further, define X ∗ Z T (X) · T (Z) for all matrices X and Z in V. Show that the “∗-operation” satisfies the four properties required of an inner product for V. 3. Let T represent a linear transformation from a linear space V into a linear space W, and let U represent any subspace of V such that U and N (T ) are essentially disjoint. Further, let {X1 , . . . , Xr } represent a linearly independent set of r matrices in U. (a) Show that T (X1 ), . . . , T (Xr ) are linearly independent. (b) Show that if r dim(U) (or, equivalently, if X1 , . . . , Xr form a basis for U) and if U ⊕ N (T ) V, then T (X1 ), . . . , T (Xr ) form a basis for T (V). Section 22.2 4. Let T and S represent linear transformations from a linear space V into a linear space W, and let k represent an arbitrary scalar. (a) Verify that the transformation kT is linear. (b) Verify that the transformation T + S is linear. 5. Let S represent a linear transformation from a linear space U into a linear space V, and let T represent a linear transformation from V into a linear space W. Show that the transformation T S is linear. 6. Let T represent a linear transformation from a linear space V into a linear space W, and let R represent a linear transformation from a linear space U into W. Show that if T (V) ⊂ R(U), then there exists a linear transformation S from V into U such that T RS. Section 22.3 7. Let T represent a transformation from a linear space V into a linear space W, and let S and R represent transformations from W into V. And suppose that RT I (where the identity transformation I is from V onto V) and that T S I (where the identity transformation I is from W onto W). (a) Show that T is invertible. (b) Show that R S T −1 .
Exercises
611
8. Let T represent an invertible transformation from a linear space V into a linear space W, let S represent an invertible transformation from a linear space U into V, and let k represent an arbitrary scalar. Using the results of Exercise 7 (or otherwise), show that (a) kT is invertible and (kT )−1 (1/k)T −1 , and that (b) T S is invertible and (T S)−1 S −1 T −1 . Section 22.4 9. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W. And write U · Y for the inner product of arbitrary matrices U and Y in W. Further, let B represent a set of matrices V1 , . . . , Vn (in V) that form a basis for V, and let C represent a set of matrices W1 , . . . , Wm (in W) that form an orthonormal basis for W. Show that the matrix representation for T with respect to B and C is the m × n matrix whose ij th element is T (Vj ) · Wi . 10. Let T represent the linear transformation from Rm×n into Rn×m defined by T (X) X . And, let C represent the natural basis for Rm×n , comprising the mn matrices U11 , U21 , . . ., Um1 , . . . , U1n , U2n , . . . , Umn , where (for i 1, . . . , m and j 1, . . . , n) Uij is the m × n matrix whose ij th element equals 1 and whose remaining mn − 1 elements equal 0; and, similarly, let D represent the natural basis for Rn×m . Show that the matrix representation for T with respect to the bases C and D is the vec-permutation matrix Kmn . 11. Let W represent the linear space of all p × p symmetric matrices, and let T represent a linear transformation from Rm×n into W. Further, let B represent the natural basis for Rm×n , comprising the mn matrices U11 , . . . , U21 , . . . , Um1 , . . . , U1n , U2n , . . . , Umn , where (for i 1, . . . , m and j 1, . . . , n) Uij is the m × n matrix whose ij th element equals 1 and whose remaining mn − 1 elements equal 0. And let C represent the usual basis for W. (a) Show that, for any m × n matrix X, (L−1 C T LB )(vec X) vech[T (X)] . (b) Show that the matrix representation for T (with respect to B and C) equals the p(p + 1)/2 × mn matrix [vech T (U11 ), . . . , vech T (Um1 ), . . . , vech T (U1n ), . . . , vech T (Umn )] . (c) Suppose that p m n and that (for every n × n matrix X) T (X) (1/2)(X + X ) . Show that the matrix representation of T (with respect to B and C) equals (Gn Gn )−1 Gn (where Gn is the duplication matrix).
612
22. Linear Transformations
12. Let V represent an n-dimensional linear space. Further, let B {V1 , V2 , . . . , Vn } represent a basis for V, and let A represent an n × n nonsingular matrix. And, for j 1, . . . , n, let Wj f1j V1 + f2j V2 + · · · + fnj Vn , where (for i 1, . . . , n) fij is the ij th element of A−1 . Show that the set C comprising the matrices W1 , W2 , . . . Wn is a basis for V and that A is the matrix representation of the identity transformation I (from V onto V) with respect to B and C. Section 22.5 13. Let T represent the linear transformation from R4×1 into R3×1 defined by T (x) (x1 + x2 , x2 + x3 − x4 , x1 − x3 + x4 ) , where x (x1 , x2 , x3 , x4 ) . Further, let B represent the natural basis for R4×1 (comprising the columns of I4 ), and let E represent the basis (for R4×1 ) comprising the four vectors (1, −1, 0, −1) , (0, 0, 1, 1) , (0, 0, 0, 1) , and (1, 1, 0, 0) . And, let C represent the natural basis for R3×1 (comprising the columns of I3 ), and F represent the basis (for R3×1 ) comprising the three vectors (1, 0, 1) , (1, 1, 0) , and (−1, 0, 0) . (a) Find the matrix representation of T with respect to B and C. (b) Find (1) the matrix representation of the identity transformation from R4×1 onto R4×1 with respect to E and B and (2) the matrix representation of the identity transformation from R3×1 onto R3×1 with respect to C and F . (c) Find the matrix representation of T with respect to E and F via each of two approaches: (1) a direct approach, using equality (4.8); and (2) an indirect approach, using Theorem 22.4.4 together with the results of Parts (a) and (b). (d) Using Theorem 22.5.2 and Corollary 22.5.3 (or otherwise), find rank T and dim[N (T )]. 14. Let T represent a linear transformation of rank k (where k > 0) from an n-dimensional linear space V into an m-dimensional linear space W. Show that there exist a basis E for V and a basis F for W such the matrix that Ik 0 representation of T with respect to E and F is of the form . 0 0 15. Let T represent a linear transformation from an n-dimensional linear space V into an m-dimensional linear space W, and let A represent the matrix representation of T with respect to bases B and C (for V and W, respectively). Use Part (2) of Theorem 22.5.1 to devise a “direct” proof that dim[N (T )] dim[N (A)] (as opposed to deriving this equality as a corollary of Theorem 22.5.2).
Exercises
613
16. Let T represent a linear transformation from an n-dimensional linear space V into V. (a) Let U represent an r-dimensional subspace of V, and suppose that U is invariant relative to T . Show that there exists a basis for V such that the matrix representation T with respect to B and B is of the (upper block of E F triangular) form (where E is of dimensions r × r). 0 H (b) Let U and W represent subspaces of V such that U ⊕ W V (i.e., essentially disjoint subspaces of V whose sum is V). Suppose that both U and W are invariant relative to T . Show that there exists a basis B for V such that the matrix representation of T with respect to B and B is of the (block-diagonal) form diag(E, H) [where the dimensions of E equal dim(U)]. Section 22.6 17. Let V, W, and U represent linear spaces. (a) Show that the dual transformation of the identity transformation I from V onto V is I . (b) Show that the dual transformation of the zero transformation 01 from V into W is the zero transformation 02 from W into V. (c) Let S represent the dual transformation of a linear transformation T from V into W. Show that T is the dual transformation of S. (d) Let k represent a scalar, and let S represent the dual transformation of a linear transformation T from V into W. Show that kS is the dual transformation of kT . (e) Let T1 and T2 represent linear transformations from V into W, and let S1 and S2 represent the dual transformations of T1 and T2 , respectively. Show that S1 + S2 is the dual transformation of T1 + T2 . (f) Let P represent the dual transformation of a linear transformation S from U into V, and let Q represent the dual transformation of a linear transformation T from V into W. Show that P Q is the dual transformation of T S. 18. Let S represent the dual transformation of a linear transformation T from an n-dimensional linear space V into an m-dimensional linear space W. And let A {aij } represent the matrix representation of T with respect to orthonormal bases C and D, and B {bij } represent the matrix representation of S with respect to D and C. Using the result of Exercise 9 (or otherwise), show that B A .
614
22. Linear Transformations
19. Let A represent an m × n matrix, let V represent an n × n symmetric positive definite matrix, and let W represent an m × m symmetric positive definite matrix. And let S represent the dual transformation of the linear transformation T from Rn×1 into Rm×1 defined by T (x) Ax (where x is an arbitrary n × 1 vector). Taking the inner product of arbitrary vectors x and z in Rn×1 to be x Vz and taking the inner product of arbitrary vectors u and y in Rm×1 to be u Wy, generalize result (6.2) by obtaining a formula for S(y). 20. Let S represent the dual transformation of a linear transformation T from a linear space V into a linear space W. (a) Show that [S(W)]⊥ N (T ) (i.e., that the orthogonal complement of the range space of S equals the null space of T ). (b) Using the result of Part (c) of Exercise 17 (or otherwise), show that [N (S)]⊥ T (V) (i.e., that the orthogonal complement of the null space of S equals the range space of T ). (c) Show that rank S rank T .
References
Aitken, A. C. (1935), “On Least Squares and Linear Combination of Observations,” Proceedings of the Royal Society of Edinburgh, 55, 42–48. Aitken, A. C. (1949), “On the Wishart Distribution in Statistics,” Biometrika, 36, 59– 62. Albert, A. (1972), Regression and the Moore-Penrose Pseudoinverse, New York: Academic Press. Baksalary, J. K., and Puntanen, S. (1989), “Weighted-Least-Squares Estimation in the General Gauss-Markov Model,” in Statistical Data Analysis and Inference, ed. Y. Dodge, Amsterdam: North-Holland, pp. 355–368. Bartle, R. G. (1976), The Elements of Real Analysis (2nd ed.), New York: John Wiley. Bartlett, M. S. (1951), “An Inverse Matrix Adjustment Arising in Discriminant Analysis,” Annals of Mathematical Statistics, 22, 107–111. Basilevsky, A. (1983), Applied Matrix Algebra in the Statistical Sciences, New York: North-Holland. Beaumont, R. A., and Pierce, R. S. (1963), The Algebraic Foundations of Mathematics, Reading, MA: Addison-Wesley. Christensen, R. (1996), Plane Answers to Complex Questions: The Theory of Linear Models (2nd ed.), New York: Springer-Verlag. Cochran, W. G. (1934), “The Distribution of Quadratic Forms in a Normal System, With Applications to the Analysis of Covariance,” Proceedings of the Cambridge Philosophical Society, 30, 178–191.
616
22. Linear Transformations
Driscoll, M. F., and Gundberg, W. R., Jr. (1986), “A History of the Development of Craig’s Theorem,” The American Statistician, 40, 65–70. Duncan, W. J. (1944), “Some Devices for the Solution of Large Sets of Simultaneous Linear Equations (With an Appendix on the Reciprocation of Patterned Matrices),” The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, Seventh Series, 35, 660–670. Dwyer, P. S. (1967), “Some Applications of Matrix Derivatives in Multivariate Analysis,” Journal of the American Statistical Association, 62, 607–625. Faddeeva, V. N. (1959), Computational Methods of Linear Algebra, New York: Dover. Fedorov, V. V. (1972), Theory of Optimal Experiments, New York: Academic Press. Golub, G. H., and Pereyra, V. (1973), “The Differentiation of Pseudo-Inverses and Nonlinear Least Squares Problems Whose Variables Separate,” SIAM Journal on Numerical Analysis, 10, 413–432. Golub, G. H., and Van Loan, C. F. (1989), Matrix Computations (2nd ed.), Baltimore: Johns Hopkins University Press. Goodnight, J. H. (1979), “A Tutorial on the SWEEP Operator,” The American Statistician, 33, 149–158. Graybill, F. A. (1983), Matrices With Applications in Statistics (2nd ed.), Belmont, CA: Wadsworth. Guttman, L. (1946), “Enlargement Methods for Computing the Inverse Matrix,” Annals of Mathematical Statistics, 17, 336–343. Halmos, P. R. (1958), Finite-Dimensional Vector Spaces (2nd ed.), Princeton, NJ: Van Nostrand. Harville, D. A. (1996–97), “Generalized Inverses and Ranks of Modified Matrices,” Journal of the Indian Society of Agricultural Statistics, 49 (Golden Jubilee Number), 67–78. Harville, D. A., and Fenech, A. P. (1985), “Confidence Intervals for a Variance Ratio, or for Heritability, in an Unbalanced Mixed Linear Model,” Biometrics, 41, 137–152. Harville, D. A., and Kempthorne, O. (1997) “An Alternative Way to Establish the Necessity Part of the Classical Result on the Statistical Independence of Quadratic Forms”, Linear Algebra and Its Applications, Sixth Special Issue on Linear Algebra and Statistics. Hearon, J. Z., and Evans, J. W. (1968), “Differentiable Generalized Inverses,” Journal of Research of the National Bureau of Standards, 72B, 109–113. Henderson, H. V., and Searle, S. R. (1979), “Vec and Vech Operators for Matrices, With Some Uses in Jacobians and Multivariate Statistics,” The Canadian Journal of Statistics, 7, 65–81.
Exercises
617
Henderson, H. V., and Searle, S. R. (1981a), “On Deriving the Inverse of a Sum of Matrices,” SIAM Review, 23, 53–60. Henderson, H. V., and Searle, S. R. (1981b), “The Vec-Permutation Matrix, the Vec Operator and Kronecker Products: A Review,” Linear and Multilinear Algebra, 9, 271–288. Lancaster, P., and Tismenetsky, M. (1985), The Theory of Matrices (2nd ed.), New York: Academic Press. Loynes, R. M. (1966), “On Idempotent Matrices,” Annals of Mathematical Statistics, 37, 295–296. Magnus, J. R., and Neudecker, H. (1979), “The Commutation Matrix: Some Properties and Applications,” The Annals of Statistics, 7, 381–394. Magnus, J. R., and Neudecker, H. (1980), “The Elimination Matrix: Some Lemmas and Applications,” SIAM Journal on Algebra and Discrete Mathematics, 1, 422– 449. Magnus, J. R., and Neudecker, H. (1986), “Symmetry, 0–1 Matrices and Jacobians: A Review,” Econometric Theory, 2, 157–190. Magnus, J. R., and Neudecker, H. (1988), Matrix Differential Calculus With Applications in Statistics and Econometrics, New York: John Wiley. Marsaglia, G., and Styan, G. P. H. (1974), “Equalities and Inequalities for Ranks of Matrices,” Linear and Multilinear Algebra, 2, 269–292. Meyer, C. D. (1973), “Generalized Inverses and Ranks of Block Matrices,” SIAM Journal on Applied Mathematics, 25, 597–602. Miller, K. S. (1987), Some Eclectic Matrix Theory, Malabar, FL: Robert E. Krieger Publishing Company. Milliken, G. A., and Akdeniz, F. (1977), “A Theorem on the Difference of the Generalized Inverses of Two Nonnegative Matrices,” Communications in Statistics, Part A —Theory and Methods, 6, 73–79. Moore, E. H. (1920), “On the Reciprocal of the General Algebraic Matrix,” Bulletin of the American Mathematical Society, 26, 394–395. Penrose, R. (1955), ”A Generalized Inverse for Matrices,” Proceedings of the Cambridge Philosophical Society, 51, 406–413. Puntanen, S., and Styan, G. P. H. (1989), ”The Equality of the Ordinary Least Squares Estimator and the Best Linear Unbiased Estimator” (with discussion), The American Statistician, 43, 153–164. Rao, C. R. (1989), “A Lemma on Optimization of a Matrix Function and a Review of the Unified Theory of Linear Estimation,” in Statistical Data Analysis and Inference, ed. Y. Dodge, Amsterdam: North-Holland, pp. 397–417.
618
22. Linear Transformations
Rao, C. R., and Mitra, S. K. (1971), Generalized Inverse of Matrices and Its Applications, New York: John Wiley. Reid, J. G., and Driscoll, M. F. (1988), “An Accessible Proof of Craig’s Theorem in the Noncentral Case,” The American Statistician, 42, 139–142. Rogers, G. S. (1980), Matrix Derivatives, New York: Marcel Dekker. Scheff´e, H. (1959), The Analysis of Variance, New York: John Wiley. Searle, S. R. (1971), Linear Models, New York: John Wiley. Searle, S. R. (1982), Matrix Algebra Useful for Statistics, New York: John Wiley. Sherman, J., and Morrison, W. J. (1949), “Adjustment of an Inverse Matrix Corresponding to Changes in the Elements of a Given Column or a Given Row of the Original Matrix” (abstract), Annals of Mathematical Statistics, 20, 621. Sherman, J., and Morrison, W. J. (1950), “Adjustment of an Inverse Matrix Corresponding to a Change in One Element of a Given Matrix,” Annals of Mathematical Statistics, 21, 124–127. Stewart, G. W. (1973), Introduction to Matrix Computations, New York: Academic Press. ´ Sylvester, J. (1884), “Sur la Solution du Cas le Plus G´en´eral des Equations Lin´eares en Quantit´es Binares, C’est-´a-dire en Quaternions ou en Matrices du Second Ordre,” Comptes Rendus des S´eances de l’Acad´emie des Sciences, 99, 117–118. Woodbury, M. A. (1950), “Inverting Modified Matrices,” Memorandum Report 42, Princeton University, Statistical Research Group.
ii
iii
iv
v
vi
vii
viii
ix
x
xi
xii