Section MM  Matrix Multiplication

From A First Course in Linear Algebra
Version 2.00
© 2004.
Licensed under the GNU Free Documentation License.
http://linear.ups.edu/

We know how to add vectors and how to multiply them by scalars. Together, these operations give us the possibility of making linear combinations. Similarly, we know how to add matrices and how to multiply matrices by scalars. In this section we mix all these ideas together and produce an operation known as “matrix multiplication.” This will lead to some results that are both surprising and central. We begin with a definition of how to multiply a vector by a matrix.

Subsection MVP: Matrix-Vector Product

We have repeatedly seen the importance of forming linear combinations of the columns of a matrix. As one example of this, the oft-used Theorem SLSLC, said that every solution to a system of linear equations gives rise to a linear combination of the column vectors of the coefficient matrix that equals the vector of constants. This theorem, and others, motivate the following central definition.

Definition MVP
Matrix-Vector Product
Suppose A is an m × n matrix with columns A1,A2,A3,,An and u is a vector of size n. Then the matrix-vector product of A with u is the linear combination

Au = u1A1 + u2A2 + u3A3 + + unAn

(This definition contains Notation MVP.)

So, the matrix-vector product is yet another version of “multiplication,” at least in the sense that we have yet again overloaded juxtaposition of two symbols as our notation. Remember your objects, an m × n matrix times a vector of size n will create a vector of size m. So if A is rectangular, then the size of the vector changes. With all the linear combinations we have performed so far, this computation should now seem second nature.

Example MTV
A matrix times a vector
Consider

A = 1 4 2 3 4 32 0 1 2 1 631 5 u = 2 1 2 3 1

Then

Au = 2 1 3 1 +1 4 2 6 +(2) 2 0 3 +3 3 1 1 +(1) 4 2 5 = 7 1 6 .

We can now represent systems of linear equations compactly with a matrix-vector product (Definition MVP) and column vector equality (Definition CVE). This finally yields a very popular alternative to our unconventional SA,b notation.

Theorem SLEMM
Systems of Linear Equations as Matrix Multiplication
The set of solutions to the linear system SA,b equals the set of solutions for x in the vector equation Ax = b.

Proof   This theorem says that two sets (of solutions) are equal. So we need to show that one set of solutions is a subset of the other, and vice versa (Definition SE). Let A1,A2,A3,,An be the columns of A. Both of these set inclusions then follow from the following chain of equivalences (Technique E),

x  is a solution to SA,b x1A1 + x2A2 + x3A3 + + xnAn = b  Theorem SLSLC x  is a solution to Ax = b  Definition MVP

Example MNSLE
Matrix notation for systems of linear equations
Consider the system of linear equations from Example NSLE.

2x1 + 4x2 3x3 + 5x4 + x5 = 9 3x1 + x2 + x4 3x5 = 0 2x1 + 7x2 5x3 + 2x4 + 2x5 = 3

has coefficient matrix

A = 2 435 1 3 1 0 13 2752 2

and vector of constants

b = 9 0 3

and so will be described compactly by the vector equation Ax = b.

The matrix-vector product is a very natural computation. We have motivated it by its connections with systems of equations, but here is a another example.

Example MBC
Money’s best cities
Every year Money magazine selects several cities in the United States as the “best” cities to live in, based on a wide arrary of statistics about each city. This is an example of how the editors of Money might arrive at a single number that consolidates the statistics about a city. We will analyze Los Angeles, Chicago and New York City, based on four criteria: average high temperature in July (Farenheit), number of colleges and universities in a 30-mile radius, number of toxic waste sites in the Superfund environmental clean-up program and a personal crime index based on FBI statistics (average = 100, smaller is safer). It should be apparent how to generalize the example to a greater number of cities and a greater number of statistics.

We begin by building a table of statistics. The rows will be labeled with the cities, and the columns with statistical categories. These values are from Money’s website in early 2005.






City TempCollegesSuperfundCrime










Los Angeles 77 28 93 254





Chicago 84 38 85 363





New York 84 99 1 193










Conceivably these data might reside in a spreadsheet. Now we must combine the statistics for each city. We could accomplish this by weighting each category, scaling the values and summing them. The sizes of the weights would depend upon the numerical size of each statistic generally, but more importantly, they would reflect the editors opinions or beliefs about which statistics were most important to their readers. Is the crime index more important than the number of colleges and universities? Of course, there is no right answer to this question.

Suppose the editors finally decide on the following weights to employ: temperature, 0.23; colleges, 0.46; Superfund, 0.05; crime, 0.20. Notice how negative weights are used for undesirable statistics. Then, for example, the editors would compute for Los Angeles,

(0.23)(77) + (0.46)(28) + (0.05)(93) + (0.20)(254) = 24.86

This computation might remind you of an inner product, but we will produce the computations for all of the cities as a matrix-vector product. Write the table of raw statistics as a matrix

T = 772893254 84 3885363 84 99 1 193

and the weights as a vector

w = 0.23 0.46 0.05 0.20

then the matrix-vector product (Definition MVP) yields

Tw = (0.23) 77 84 84 +(0.46) 28 38 99 +(0.05) 93 85 1 +(0.20) 254 363 193 = 24.86 40.05 26.21

This vector contains a single number for each of the cities being studied, so the editors would rank New York best (26.21), Los Angeles next ( 24.86), and Chicago third ( 40.05). Of course, the mayor’s offices in Chicago and Los Angeles are free to counter with a different set of weights that cause their city to be ranked best. These alternative weights would be chosen to play to each cities’ strengths, and minimize their problem areas.

If a speadsheet were used to make these computations, a row of weights would be entered somewhere near the table of data and the formulas in the spreadsheet would effect a matrix-vector product. This example is meant to illustrate how “linear” computations (addition, multiplication) can be organized as a matrix-vector product.

Another example would be the matrix of numerical scores on examinations and exercises for students in a class. The rows would correspond to students and the columns to exams and assignments. The instructor could then assign weights to the different exams and assignments, and via a matrix-vector product, compute a single score for each student.

Later (much later) we will need the following theorem, which is really a technical lemma (see Technique LC). Since we are in a position to prove it now, we will. But you can safely skip it for the moment, if you promise to come back later to study the proof when the theorem is employed. At that point you will also be able to understand the comments in the paragraph following the proof.

Theorem EMMVP
Equal Matrices and Matrix-Vector Products
Suppose that A and B are m × n matrices such that Ax = Bx for every x n. Then A = B.

Proof   We are assuming Ax = Bx for all x n, so we can employ this equality for any choice of the vector x. However, we’ll limit our use of this equality to the standard unit vectors, ej, 1 j n (Definition SUV). For all 1 j n, 1 i m,

Aij = 0 Ai1 + + 0 Ai,j1 + 1 Aij + 0 Ai,j+1 + + 0 Ain = Ai1 ej 1 + Ai2 ej 2 + Ai3 ej 3 + + Ain ej n  Definition SUV = Aej i  Definition MVP = Bej i  Definition CVE = Bi1 ej 1 + Bi2 ej 2 + Bi3 ej 3 + + Bin ej n  Definition MVP = 0 Bi1 + + 0 Bi,j1 + 1 Bij + 0 Bi,j+1 + + 0 Bin Definition SUV = Bij

So by Definition ME the matrices A and B are equal, as desired.

You might notice that the hypotheses of this theorem could be “weakened” (i.e. made less restrictive). We could suppose the equality of the matrix-vector products for just the standard unit vectors (Definition SUV) or any other spanning set (Definition TSVS) of n (Exercise LISS.T40). However, in practice, when we apply this theorem we will only need this weaker form. (If we made the hypothesis less restrictive, we would call the theorem “stronger.”)

Subsection MM: Matrix Multiplication

We now define how to multiply two matrices together. Stop for a minute and think about how you might define this new operation.

Many books would present this definition much earlier in the course. However, we have taken great care to delay it as long as possible and to present as many ideas as practical based mostly on the notion of linear combinations. Towards the conclusion of the course, or when you perhaps take a second course in linear algebra, you may be in a position to appreciate the reasons for this. For now, understand that matrix multiplication is a central definition and perhaps you will appreciate its importance more by having saved it for later.

Definition MM
Matrix Multiplication
Suppose A is an m × n matrix and B is an n × p matrix with columns B1,B2,B3,,Bp. Then the matrix product of A with B is the m × p matrix where column i is the matrix-vector product ABi. Symbolically,

AB = A B1|B2|B3||Bp = AB1|AB2|AB3||ABp .

Example PTM
Product of two matrices
Set

A = 1 2 1 4 6 0 4 1 2 3 5 1 2 34 B = 1 6 2 1 1 4 3 2 1 1 2 3 6 4 12 1 2 3 0

Then

AB = A 1 1 1 6 1 A 6 4 1 4 2 A 2 3 2 1 3 A 1 2 3 2 0 = 28 17 2010 20 1331 1844123 .

Is this the definition of matrix multiplication you expected? Perhaps our previous operations for matrices caused you to think that we might multiply two matrices of the same size, entry-by-entry? Notice that our current definition uses matrices of different sizes (though the number of columns in the first must equal the number of rows in the second), and the result is of a third size. Notice too in the previous example that we cannot even consider the product BA, since the sizes of the two matrices in this order aren’t right.

But it gets weirder than that. Many of your old ideas about “multiplication” won’t apply to matrix multiplication, but some still will. So make no assumptions, and don’t do anything until you have a theorem that says you can. Even if the sizes are right, matrix multiplication is not commutative — order matters.

Example MMNC
Matrix multiplication is not commutative
Set

A = 1 3 12 B = 40 5 1 .

Then we have two square, 2 × 2 matrices, so Definition MM allows us to multiply them in either order. We find

AB = 193 6 2 BA = 412 4 17

and ABBA. Not even close. It should not be hard for you to construct other pairs of matrices that do not commute (try a couple of 3 × 3’s). Can you find a pair of non-identical matrices that do commute?

Matrix multiplication is fundamental, so it is a natural procedure for any computational device.See: Computation MM.MMA.

Subsection MMEE: Matrix Multiplication, Entry-by-Entry

While certain “natural” properties of multiplication don’t hold, many more do. In the next subsection, we’ll state and prove the relevant theorems. But first, we need a theorem that provides an alternate means of multiplying two matrices. In many texts, this would be given as the definition of matrix multiplication. We prefer to turn it around and have the following formula as a consequence of our definition. It will prove useful for proofs of matrix equality, where we need to examine products of matrices, entry-by-entry.

Theorem EMP
Entries of Matrix Products
Suppose A is an m × n matrix and B is an n × p matrix. Then for 1 i m, 1 j p, the individual entries of AB are given by

ABij = Ai1 B1j + Ai2 B2j + Ai3 B3j + + Ain Bnj = k=1n A ik Bkj

Proof   Denote the columns of A as the vectors A1,A2,A3,,An and the columns of B as the vectors B1,B2,B3,,Bp. Then for 1 i m, 1 j p,

ABij = ABj i  Definition MM = Bj 1A1 + Bj 2A2 + Bj 3A3 + + Bj nAn i  Definition MVP = Bj 1A1 i + Bj 2A2 i + Bj 3A3 i + + Bj nAn i  Definition CVA = Bj 1 A1 i + Bj 2 A2 i + Bj 3 A3 i + + Bj n An i Definition CVSM = B1j Ai1 + B2j Ai2 + B3j Ai3 + + Bnj Ain  Notation ME = Ai1 B1j + Ai2 B2j + Ai3 B3j + + Ain Bnj  Property CMCN = k=1n A ik Bkj

Example PTMEE
Product of two matrices, entry-by-entry
Consider again the two matrices from Example PTM

A = 1 2 1 4 6 0 4 1 2 3 5 1 2 34 B = 1 6 2 1 1 4 3 2 1 1 2 3 6 4 12 1 2 3 0

Then suppose we just wanted the entry of AB in the second row, third column:

AB23 = A21 B13 + A22 B23 + A23 B33 + A24 B43 + A25 B53 = (0)(2) + (4)(3) + (1)(2) + (2)(1) + (3)(3) = 3

Notice how there are 5 terms in the sum, since 5 is the common dimension of the two matrices (column count for A, row count for B). In the conclusion of Theorem EMP, it would be the index k that would run from 1 to 5 in this computation. Here’s a bit more practice.

The entry of third row, first column:

AB31 = A31 B11 + A32 B21 + A33 B31 + A34 B41 + A35 B51 = (5)(1) + (1)(1) + (2)(1) + (3)(6) + (4)(1) = 18

To get some more practice on your own, complete the computation of the other 10 entries of this product. Construct some other pairs of matrices (of compatible sizes) and compute their product two ways. First use Definition MM. Since linear combinations are straightforward for you now, this should be easy to do and to do correctly. Then do it again, using Theorem EMP. Since this process may take some practice, use your first computation to check your work.

Theorem EMP is the way many people compute matrix products by hand. It will also be very useful for the theorems we are going to prove shortly. However, the definition (Definition MM) is frequently the most useful for its connections with deeper ideas like the null space and the upcoming column space.

Subsection PMM: Properties of Matrix Multiplication

In this subsection, we collect properties of matrix multiplication and its interaction with the zero matrix (Definition ZM), the identity matrix (Definition IM), matrix addition (Definition MA), scalar matrix multiplication (Definition MSM), the inner product (Definition IP), conjugation (Theorem MMCC), and the transpose (Definition TM). Whew! Here we go. These are great proofs to practice with, so try to concoct the proofs before reading them, they’ll get progressively more complicated as we go.

Theorem MMZM
Matrix Multiplication and the Zero Matrix
Suppose A is an m × n matrix. Then
1. AOn×p = Om×p
2. Op×mA = Op×n

Proof   We’ll prove (1) and leave (2) to you. Entry-by-entry, for 1 i m, 1 j p,

AOn×p ij = k=1n A ik On×p kj  Theorem EMP = k=1n A ik0  Definition ZM = k=1n0 = 0  Property ZCN = Om×p ij  Definition ZM

So by the definition of matrix equality (Definition ME), the matrices AOn×p and Om×p are equal.

Theorem MMIM
Matrix Multiplication and Identity Matrix
Suppose A is an m × n matrix. Then
1. AIn = A
2. ImA = A

Proof   Again, we’ll prove (1) and leave (2) to you. Entry-by-entry, For 1 i m, 1 j n,

AIn ij = k=1n A ik In kj  Theorem EMP = Aij In jj + k=1 kj n A ik In kj  Property CACN = Aij(1) + k=1,kjn A ik(0)  Definition IM = Aij + k=1,kjn0 = Aij

So the matrices A and AIn are equal, entry-by-entry, and by the definition of matrix equality (Definition ME) we can say they are equal matrices.

It is this theorem that gives the identity matrix its name. It is a matrix that behaves with matrix multiplication like the scalar 1 does with scalar multiplication. To multiply by the identity matrix is to have no effect on the other matrix.

Theorem MMDAA
Matrix Multiplication Distributes Across Addition
Suppose A is an m × n matrix and B and C are n × p matrices and D is a p × s matrix. Then
1. A(B + C) = AB + AC
2. (B + C)D = BD + CD

Proof   We’ll do (1), you do (2). Entry-by-entry, for 1 i m, 1 j p,

A(B + C) ij = k=1n A ik B + Ckj  Theorem EMP = k=1n A ik(Bkj + Ckj)  Definition MA = k=1n A ik Bkj + Aik Ckj  Property DCN = k=1n A ik Bkj + k=1n A ik Ckj  Property CACN = ABij + ACij  Theorem EMP = AB + ACij  Definition MA

So the matrices A(B + C) and AB + AC are equal, entry-by-entry, and by the definition of matrix equality (Definition ME) we can say they are equal matrices.

Theorem MMSMM
Matrix Multiplication and Scalar Matrix Multiplication
Suppose A is an m × n matrix and B is an n × p matrix. Let α be a scalar. Then α(AB) = (αA)B = A(αB).

Proof   These are equalities of matrices. We’ll do the first one, the second is similar and will be good practice for you. For 1 i m, 1 j p,

α(AB) ij = α ABij  Definition MSM = α k=1n A ik Bkj  Theorem EMP = k=1nα A ik Bkj  Property DCN = k=1n αA ik Bkj  Definition MSM = (αA)Bij  Theorem EMP

So the matrices α(AB) and (αA)B are equal, entry-by-entry, and by the definition of matrix equality (Definition ME) we can say they are equal matrices.

Theorem MMA
Matrix Multiplication is Associative
Suppose A is an m × n matrix, B is an n × p matrix and D is a p × s matrix. Then A(BD) = (AB)D.

Proof   A matrix equality, so we’ll go entry-by-entry, no surprise there. For 1 i m, 1 j s,

A(BD) ij = k=1n A ik BDkj  Theorem EMP = k=1n A ik =1p B k Dj  Theorem EMP = k=1n =1p A ik Bk Dj  Property DCN  We can switch the order of the summation since these are finite sums, = =1p k=1n A ik Bk Dj  Property CACN  As  Dj does not depend on the index k, we can use distributivity to move it outside of the inner sum, = =1p D j k=1n A ik Bk  Property DCN = =1p D j ABi  Theorem EMP = =1p AB i Dj  Property CMCN = (AB)Dij  Theorem EMP

So the matrices (AB)D and A(BD) are equal, entry-by-entry, and by the definition of matrix equality (Definition ME) we can say they are equal matrices.

The statement of our next theorem is technically inaccurate. If we upgrade the vectors u,v to matrices with a single column, then the expression utv¯ is a 1 × 1 matrix, though we will treat this small matrix as if it was simply the scalar quantity in its lone entry. When we apply Theorem MMIP there should not be any confusion.

Theorem MMIP
Matrix Multiplication and Inner Products
If we consider the vectors u,v m as m × 1 matrices then

u,v = utv¯

Proof  

u,v = k=1m u k vk¯  Definition IP = k=1m u k1 vk1¯  Column vectors as matrices = k=1m ut 1k vk1¯  Definition TM = k=1m ut 1k v¯k1  Definition CCCV = utv¯ 11  Theorem EMP

To finish we just blur the distinction between a 1 × 1 matrix (utv¯) and its lone entry.

Theorem MMCC
Matrix Multiplication and Complex Conjugation
Suppose A is an m × n matrix and B is an n × p matrix. Then AB¯ = A¯B¯.

Proof   To obtain this matrix equality, we will work entry-by-entry. For 1 i m, 1 j p,

AB¯ij = ABij¯  Definition CM = k=1n A ik Bkj¯  Theorem EMP = k=1n A ik Bkj¯  Theorem CCRA = k=1n A ik¯ Bkj¯  Theorem CCRM = k=1n A¯ ik B¯kj  Definition CCM = A¯B¯ij  Theorem EMP

So the matrices AB¯ and A¯B¯ are equal, entry-by-entry, and by the definition of matrix equality (Definition ME) we can say they are equal matrices.

Another theorem in this style, and its a good one. If you’ve been practicing with the previous proofs you should be able to do this one yourself.

Theorem MMT
Matrix Multiplication and Transposes
Suppose A is an m × n matrix and B is an n × p matrix. Then (AB)t = BtAt.

Proof   This theorem may be surprising but if we check the sizes of the matrices involved, then maybe it will not seem so far-fetched. First, AB has size m × p, so its transpose has size p × m. The product of Bt with At is a p × n matrix times an n × m matrix, also resulting in a p × m matrix. So at least our objects are compatible for equality (and would not be, in general, if we didn’t reverse the order of the matrix multiplication).

Here we go again, entry-by-entry. For 1 i m, 1 j p,

(AB)t ji = ABij  Definition TM = k=1n A ik Bkj  Theorem EMP = k=1n B kj Aik  Property CMCN = k=1n Bt jk At ki  Definition TM = BtAt ji  Theorem EMP

So the matrices (AB)t and BtAt are equal, entry-by-entry, and by the definition of matrix equality (Definition ME) we can say they are equal matrices.

This theorem seems odd at first glance, since we have to switch the order of A and B. But if we simply consider the sizes of the matrices involved, we can see that the switch is necessary for this reason alone. That the individual entries of the products then come along to be equal is a bonus.

As the adjoint of a matrix is a composition of a conjugate and a transpose, its interaction with matrix multiplication is similar to that of a transpose. Here’s the last of our long list of basic properties of matrix multiplication.

Theorem MMAD
Matrix Multiplication and Adjoints
Suppose A is an m × n matrix and B is an n × p matrix. Then (AB) = BA.

Proof  

(AB) = AB¯t  Definition A = A¯B¯t  Theorem MMCC = B¯t A¯t  Theorem MMT = BA  Definition A

Notice how none of these proofs above relied on writing out huge general matrices with lots of ellipses (“…”) and trying to formulate the equalities a whole matrix at a time. This messy business is a “proof technique” to be avoided at all costs. Notice too how the proof of Theorem MMAD does not use an entry-by-entry approach, but simply builds on previous results about matrix multiplication’s interaction with conjugation and transposes.

These theorems, along with Theorem VSPM and the other results in Section MO, give you the “rules” for how matrices interact with the various operations we have defined on matrices (addition, scalar multiplication, matrix multiplication, conjugation, transposes and adjoints). Use them and use them often. But don’t try to do anything with a matrix that you don’t have a rule for. Together, we would informally call all these operations, and the attendant theorems, “the algebra of matrices.” Notice, too, that every column vector is just a n × 1 matrix, so these theorems apply to column vectors also. Finally, these results, taken as a whole, may make us feel that the definition of matrix multiplication is not so unnatural.

Subsection HM: Hermitian Matrices

The adjoint of a matrix has a basic property when employed in a matrix-vector product as part of an inner product. At this point, you could even use the following result as a motivation for the definition of an adjoint.

Theorem AIP
Adjoint and Inner Product
Suppose that A is an m × n matrix and x n, y m. Then Ax,y = x,Ay.

Proof  

Ax,y = Axty¯  Theorem MMIP = xtAty¯  Theorem MMT = xt A¯¯ty¯  Theorem CCM = xt A¯t¯y¯  Theorem MCT = xt A¯y¯  Definition A = xt Ay¯  Theorem MMCC = x,Ay  Theorem MMIP

Sometimes a matrix is equal to its adjoint (Definition A), and these matrices have interesting properties. One of the most common situations where this occurs is when a matrix has only real number entries. Then we are simply talking about symmetric matrices (Definition SYM), so you can view this as a generalization of a symmetric matrix.

Definition HM
Hermitian Matrix
The square matrix A is Hermitian (or self-adjoint) if A = A.

Again, the set of real matrices that are Hermitian is exactly the set of symmetric matrices. In Section PEE we will uncover some amazing properties of Hermitian matrices, so when you get there, run back here to remind yourself of this definition. Further properties will also appear in various sections of the Topics (Part T). Right now we prove a fundamental result about Hermitian matrices, matrix vector products and inner products. As a characterization, this could be employed as a definition of a Hermitian matrix and some authors take this approach.

Theorem HMIP
Hermitian Matrices and Inner Products
Suppose that A is a square matrix of size n. Then A is Hermitian if and only if Ax,y = x,Ay for all x,y n.

Proof   ( ) This is the “easy half” of the proof, and makes the rationale for a definition of Hermitian matrices most obvious. Assume A is Hermitian,

Ax,y = x,Ay  Theorem AIP = x,Ay  Definition HM

( ) This “half” will take a bit more work. Assume that Ax,y = x,Ay for all x,y n. Choose any x n. We want to show that A = A by establishing that Ax = Ax. With only this much motivation, consider the inner product,

Ax Ax,Ax Ax = Ax Ax,Ax Ax Ax,Ax  Theorem IPVA = Ax Ax,Ax A Ax Ax,x  Theorem AIP = A Ax Ax,x A Ax Ax,x Hypothesis = 0  Property AICN

Because this inner product equals zero, and has the same vector in each argument (Ax Ax), Theorem PIP gives the conclusion that Ax Ax = 0. With Ax = Ax for all x n, Theorem EMMVP says A = A, which is the defining property of a Hermitian matrix (Definition HM).

So, informally, Hermitian matrices are those that can be tossed around from one side of an inner product to the other with reckless abandon. We’ll see later what this buys us.

Subsection READ: Reading Questions

  1. Form the matrix vector product of 2 3 10 1 2 7 3 1 5 3 2  with 2 3 0 5
  2. Multiply together the two matrices below (in the order given). 2 3 10 1 2 7 3 1 5 3 2 2 6 34 0 2 3 1
  3. Rewrite the system of linear equations below as a vector equality and using a matrix-vector product. (This question does not ask for a solution to the system. But it does ask you to express the system of equations in a new form using tools from this section.) 2x1 + 3x2 x3 = 0 x1 + 2x2 + x3 = 3 x1 + 3x2 + 3x3 = 7

Subsection EXC: Exercises

C20 Compute the product of the two matrices below, AB. Do this using the definitions of the matrix-vector product (Definition MVP) and the definition of matrix multiplication (Definition MM).

A = 2 5 1 3 2 2 B = 153 4 2 0 2 3

 
Contributed by Robert Beezer Solution [596]

T10 Suppose that A is a square matrix and there is a vector, b, such that SA,b has a unique solution. Prove that A is nonsingular. Give a direct proof (perhaps appealing to Theorem PSPHS) rather than just negating a sentence from the text discussing a similar situation.  
Contributed by Robert Beezer Solution [596]

T20 Prove the second part of Theorem MMZM.  
Contributed by Robert Beezer

T21 Prove the second part of Theorem MMIM.  
Contributed by Robert Beezer

T22 Prove the second part of Theorem MMDAA.  
Contributed by Robert Beezer

T23 Prove the second part of Theorem MMSMM.  
Contributed by Robert Beezer Solution [597]

T31 Suppose that A is an m × n matrix and x,y NA. Prove that x + y NA.  
Contributed by Robert Beezer

T32 Suppose that A is an m × n matrix, α , and x NA. Prove that αx NA.  
Contributed by Robert Beezer

T40 Suppose that A is an m × n matrix and B is an n × p matrix. Prove that the null space of B is a subset of the null space of AB, that is NB NAB. Provide an example where the opposite is false, in other words give an example where NABNB.  
Contributed by Robert Beezer Solution [597]

T41 Suppose that A is an n × n nonsingular matrix and B is an n × p matrix. Prove that the null space of B is equal to the null space of AB, that is NB = NAB. (Compare with Exercise MM.T40.)  
Contributed by Robert Beezer Solution [598]

T50 Suppose u and v are any two solutions of the linear system SA,b. Prove that u v is an element of the null space of A, that is, u v NA.  
Contributed by Robert Beezer

T51 Give a new proof of Theorem PSPHS replacing applications of Theorem SLSLC with matrix-vector products (Theorem SLEMM).  
Contributed by Robert Beezer Solution [599]

T52 Suppose that x,y n, b m and A is an m × n matrix. If x, y and x + y are each a solution to the linear system SA,b, what interesting can you say about b? Form an implication with the existence of the three solutions as the hypothesis and an interesting statement about SA,b as the conclusion, and then give a proof.  
Contributed by Robert Beezer Solution [601]

Subsection SOL: Solutions

C20 Contributed by Robert Beezer Statement [593]
By Definition MM,

AB = 2 5 1 3 2 2 1 2 2 5 1 3 2 2 5 0 2 5 1 3 2 2 3 2 2 5 1 3 2 2 4 2  Repeated applications of Definition MVP give = 1 2 1 2 + 2 5 3 2 5 2 1 2 + 0 5 3 2 3 2 1 2 + 2 5 3 2 4 2 1 2 + (3) 5 3 2 = 1210 4 7 5 5 9 13 21010 14

T10 Contributed by Robert Beezer Statement [593]
Since SA,b has at least one solution, we can apply Theorem PSPHS. Because the solution is assumed to be unique, the null space of A must be trivial. Then Theorem NMTNS implies that A is nonsingular.

The converse of this statement is a trivial application of Theorem NMUS. That said, we could extend our NSMxx series of theorems with an added equivalence for nonsingularity, “Given a single vector of constants, b, the system SA,b has a unique solution.”

T23 Contributed by Robert Beezer Statement [594]
We’ll run the proof entry-by-entry.

α(AB) ij = α ABij  Definition MSM = α k=1n A ik Bkj  Theorem EMP = k=1nα A ik Bkj  Distributivity in  = k=1n A ikα Bkj  Commutativity in  = k=1n A ik αBkj  Definition MSM = A(αB) ij  Theorem EMP

So the matrices α(AB) and A(αB) are equal, entry-by-entry, and by the definition of matrix equality (Definition ME) we can say they are equal matrices.

T40 Contributed by Robert Beezer Statement [594]
To prove that one set is a subset of another, we start with an element of the smaller set and see if we can determine that it is a member of the larger set (Definition SSET). Suppose x NB. Then we know that Bx = 0 by Definition NSM. Consider

(AB)x = A(Bx)  Theorem MMA = A0  Hypothesis = 0  Theorem MMZM

This establishes that x NAB, so NB NAB.

To show that the inclusion does not hold in the opposite direction, choose B to be any nonsingular matrix of size n. Then NB = 0 by Theorem NMTNS. Let A be the square zero matrix, O, of the same size. Then AB = OB = O by Theorem MMZM and therefore NAB = n, and is not a subset of NB = 0.

T41 Contributed by Robert Beezer Statement [594]
From the solution to Exercise MM.T40 we know that NB NAB. So to establish the set equality (Definition SE) we need to show that NAB NB.

Suppose x NAB. Then we know that ABx = 0 by Definition NSM. Consider

Bx = InBx  Theorem MMIM = A1ABx  Theorem NI = A1 ABx = 0  Theorem MMZM

This establishes that x NB, so NAB NB and combined with the solution to Exercise MM.T40 we have NB = NAB when A is nonsingular.

T51 Contributed by Robert Beezer Statement [595]
We will work with the vector equality representations of the relevant systems of equations, as described by Theorem SLEMM.

( ) Suppose y = w + z and z NA. Then

Ay = A(w + z)  Subsitution = Aw + Az  Theorem MMDAA = b + 0 z NA = b  Property ZC

demonstrating that y is a solution.

( ) Suppose y is a solution to SA,b. Then

A(y w) = Ay Aw  Theorem MMDAA = b b  y,w solutions to Ax = b = 0  Property AIC

which says that y w NA. In other words, y w = z for some vector z NA. Rewritten, this is y = w + z, as desired.

T52 Contributed by Robert Beezer Statement [595]
SA,b must be homogeneous. To see this consider that

b = Ax  Theorem SLEMM = Ax + 0  Property ZC = Ax + Ay Ay  Property AIC = A x + y Ay  Theorem MMDAA = b b  Theorem SLEMM = 0  Property AIC

By Definition HS we see that SA,b is homogeneous.