Section MM  Matrix Multiplication

From A First Course in Linear Algebra
Version 2.90
© 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 {A}_{1},\kern 1.95872pt {A}_{2},\kern 1.95872pt {A}_{3},\kern 1.95872pt \mathop{\mathop{…}},\kern 1.95872pt {A}_{n} and u is a vector of size n. Then the matrix-vector product of A with u is the linear combination

Au ={ \left [u\right ]}_{1}{A}_{1} +{ \left [u\right ]}_{2}{A}_{2} +{ \left [u\right ]}_{3}{A}_{3} + \mathrel{⋯} +{ \left [u\right ]}_{n}{A}_{n}

(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

\eqalignno{ A = \left [\array{ 1 &4& 2 & 3 & 4\cr −3 &2 & 0 & 1 &−2 \cr 1 &6&−3&−1& 5 } \right ] & &u = \left [\array{ 2\cr 1 \cr −2\cr 3 \cr −1 } \right ] & & & & }

Then

Au = 2\left [\array{ 1\cr −3 \cr 1 } \right ]+1\left [\array{ 4\cr 2 \cr 6 } \right ]+(−2)\left [\array{ 2\cr 0 \cr −3 } \right ]+3\left [\array{ 3\cr 1 \cr −1 } \right ]+(−1)\left [\array{ 4\cr −2 \cr 5 } \right ] = \left [\array{ 7\cr 1 \cr 6 } \right ].

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 ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ) notation.

Theorem SLEMM
Systems of Linear Equations as Matrix Multiplication
The set of solutions to the linear system ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ) 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 {A}_{1},\kern 1.95872pt {A}_{2},\kern 1.95872pt {A}_{3},\kern 1.95872pt \mathop{\mathop{…}},\kern 1.95872pt {A}_{n} be the columns of A. Both of these set inclusions then follow from the following chain of equivalences (Technique E),

\eqalignno{ &x\text{ is a solution to }ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ) & & & & \cr &\kern 3.26288pt \mathrel{⇔}\kern 3.26288pt {\left [x\right ]}_{1}{A}_{1} +{ \left [x\right ]}_{2}{A}_{2} +{ \left [x\right ]}_{3}{A}_{3} + \mathrel{⋯} +{ \left [x\right ]}_{n}{A}_{n} = b & &\text{@(a href="fcla-jsmath-2.90li24.html#theorem.SLSLC")Theorem SLSLC@(/a)} & & & & \cr &\kern 3.26288pt \mathrel{⇔}\kern 3.26288pt x\text{ is a solution to }Ax = b & &\text{@(a href="#definition.MVP")Definition MVP@(/a)} & & & & }

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

\eqalignno{ 2{x}_{1} + 4{x}_{2} − 3{x}_{3} + 5{x}_{4} + {x}_{5} & = 9 & & \cr 3{x}_{1} + {x}_{2} + {x}_{4} − 3{x}_{5} & = 0 & & \cr − 2{x}_{1} + 7{x}_{2} − 5{x}_{3} + 2{x}_{4} + 2{x}_{5} & = −3 & & }

has coefficient matrix

A = \left [\array{ 2 &4&−3&5& 1\cr 3 &1 & 0 &1 &−3 \cr −2&7&−5&2& 2 } \right ]

and vector of constants

b = \left [\array{ 9\cr 0 \cr −3 } \right ]

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 array 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 = \left [\array{ 77&28&93&254\cr 84 &38 &85 &363 \cr 84&99& 1 &193 } \right ]

and the weights as a vector

w = \left [\array{ 0.23\cr 0.46 \cr −0.05\cr −0.20 } \right ]

then the matrix-vector product (Definition MVP) yields

Tw = (0.23)\left [\array{ 77\cr 84 \cr 84 } \right ]+(0.46)\left [\array{ 28\cr 38 \cr 99 } \right ]+(−0.05)\left [\array{ 93\cr 85 \cr 1 } \right ]+(−0.20)\left [\array{ 254\cr 363 \cr 193} \right ] = \left [\array{ −24.86\cr −40.05 \cr 26.21 } \right ]

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, {e}_{j}, 1 ≤ j ≤ n (Definition SUV). For all 1 ≤ j ≤ n, 1 ≤ i ≤ m,

\eqalignno{ {\left [A\right ]}_{ij}& = 0{\left [A\right ]}_{i1} + \mathrel{⋯} + 0{\left [A\right ]}_{i,j−1} + 1{\left [A\right ]}_{ij} + 0{\left [A\right ]}_{i,j+1} + \mathrel{⋯} + 0{\left [A\right ]}_{in} && && \cr & ={ \left [A\right ]}_{i1}{\left [{e}_{j}\right ]}_{1} +{ \left [A\right ]}_{i2}{\left [{e}_{j}\right ]}_{2} +{ \left [A\right ]}_{i3}{\left [{e}_{j}\right ]}_{3} + \mathrel{⋯} +{ \left [A\right ]}_{in}{\left [{e}_{j}\right ]}_{n} &&\text{@(a href="fcla-jsmath-2.90li28.html#definition.SUV")Definition SUV@(/a)} &&&& \cr & ={ \left [A{e}_{j}\right ]}_{i} &&\text{@(a href="#definition.MVP")Definition MVP@(/a)}&&&& \cr & ={ \left [B{e}_{j}\right ]}_{i} &&\text{@(a href="fcla-jsmath-2.90li23.html#definition.CVE")Definition CVE@(/a)} &&&& \cr & ={ \left [B\right ]}_{i1}{\left [{e}_{j}\right ]}_{1} +{ \left [B\right ]}_{i2}{\left [{e}_{j}\right ]}_{2} +{ \left [B\right ]}_{i3}{\left [{e}_{j}\right ]}_{3} + \mathrel{⋯} +{ \left [B\right ]}_{in}{\left [{e}_{j}\right ]}_{n} &&\text{@(a href="#definition.MVP")Definition MVP@(/a)}&&&& \cr & = 0{\left [B\right ]}_{i1} + \mathrel{⋯} + 0{\left [B\right ]}_{i,j−1} + 1{\left [B\right ]}_{ij} + 0{\left [B\right ]}_{i,j+1} + \mathrel{⋯} + 0{\left [B\right ]}_{in}&&\text{@(a href="fcla-jsmath-2.90li28.html#definition.SUV")Definition SUV@(/a)} &&&& \cr & ={ \left [B\right ]}_{ij} && && }

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

You might notice from studying the proof that the hypotheses of this theorem could be “weakened” (i.e. made less restrictive). We need only 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 the stronger hypothesis will be in effect so this version of the theorem will suffice for our purposes. (If we changed the statement of the theorem to have the less restrictive hypothesis, then 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 {B}_{1},\kern 1.95872pt {B}_{2},\kern 1.95872pt {B}_{3},\kern 1.95872pt \mathop{\mathop{…}},\kern 1.95872pt {B}_{p}. Then the matrix product of A with B is the m × p matrix where column i is the matrix-vector product A{B}_{i}. Symbolically,

AB = A\left [{B}_{1}|{B}_{2}|{B}_{3}|\mathop{\mathop{…}}|{B}_{p}\right ] = \left [A{B}_{1}|A{B}_{2}|A{B}_{3}|\mathop{\mathop{…}}|A{B}_{p}\right ].

Example PTM
Product of two matrices
Set

\eqalignno{ A = \left [\array{ 1 & 2 &−1& 4 &6\cr 0 &−4 & 1 & 2 &3 \cr −5& 1 & 2 &−3&4 } \right ] & &B = \left [\array{ 1 & 6 & 2 &1\cr −1 & 4 & 3 &2 \cr 1 & 1 & 2 &3\cr 6 & 4 &−1 &2 \cr 1 &−2& 3 &0 } \right ] & & & & & }

Then

AB = \left [A\left [\array{ 1\cr −1 \cr 1\cr 6 \cr 1 } \right ]\left \vert A\left [\array{ 6\cr 4 \cr 1\cr 4 \cr −2 } \right ]\right .\left \vert A\left [\array{ 2\cr 3 \cr 2\cr −1 \cr 3 } \right ]\right .\left \vert A\left [\array{ 1\cr 2 \cr 3\cr 2 \cr 0 } \right ]\right .\right ] = \left [\array{ 28 & 17 &20&10\cr 20 &−13 &−3 &−1 \cr −18&−44&12&−3 } \right ].

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

\eqalignno{ A = \left [\array{ 1 &3\cr −1 &2 } \right ] & &B = \left [\array{ 4&0\cr 5&1 } \right ]. & & & & }

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

\eqalignno{ AB = \left [\array{ 19&3\cr 6 &2} \right ] & &BA = \left [\array{ 4&12\cr 4&17} \right ] & & & & }

and AB\mathrel{≠}BA. 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

\eqalignno{ {\left [AB\right ]}_{ij} & ={ \left [A\right ]}_{i1}{\left [B\right ]}_{1j} +{ \left [A\right ]}_{i2}{\left [B\right ]}_{2j} +{ \left [A\right ]}_{i3}{\left [B\right ]}_{3j} + \mathrel{⋯} +{ \left [A\right ]}_{in}{\left [B\right ]}_{nj} & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [B\right ]}_{kj} & & }

Proof   Denote the columns of A as the vectors {A}_{1},\kern 1.95872pt {A}_{2},\kern 1.95872pt {A}_{3},\kern 1.95872pt \mathop{\mathop{…}},\kern 1.95872pt {A}_{n} and the columns of B as the vectors {B}_{1},\kern 1.95872pt {B}_{2},\kern 1.95872pt {B}_{3},\kern 1.95872pt \mathop{\mathop{…}},\kern 1.95872pt {B}_{p}. Then for 1 ≤ i ≤ m, 1 ≤ j ≤ p,

\eqalignno{ {\left [AB\right ]}_{ij}& ={ \left [A{B}_{j}\right ]}_{i} &&\text{@(a href="#definition.MM")Definition MM@(/a)} &&&& \cr & ={ \left [{\left [{B}_{j}\right ]}_{1}{A}_{1} +{ \left [{B}_{j}\right ]}_{2}{A}_{2} +{ \left [{B}_{j}\right ]}_{3}{A}_{3} + \mathrel{⋯} +{ \left [{B}_{j}\right ]}_{n}{A}_{n}\right ]}_{i} &&\text{@(a href="#definition.MVP")Definition MVP@(/a)} &&&& \cr & ={ \left [{\left [{B}_{j}\right ]}_{1}{A}_{1}\right ]}_{i} +{ \left [{\left [{B}_{j}\right ]}_{2}{A}_{2}\right ]}_{i} +{ \left [{\left [{B}_{j}\right ]}_{3}{A}_{3}\right ]}_{i} + \mathrel{⋯} +{ \left [{\left [{B}_{j}\right ]}_{n}{A}_{n}\right ]}_{i}&&\text{@(a href="fcla-jsmath-2.90li23.html#definition.CVA")Definition CVA@(/a)} &&&& \cr & ={ \left [{B}_{j}\right ]}_{1}{\left [{A}_{1}\right ]}_{i} +{ \left [{B}_{j}\right ]}_{2}{\left [{A}_{2}\right ]}_{i} +{ \left [{B}_{j}\right ]}_{3}{\left [{A}_{3}\right ]}_{i} + \mathrel{⋯} +{ \left [{B}_{j}\right ]}_{n}{\left [{A}_{n}\right ]}_{i}&&\text{@(a href="fcla-jsmath-2.90li23.html#definition.CVSM")Definition CVSM@(/a)}&&&& \cr & ={ \left [B\right ]}_{1j}{\left [A\right ]}_{i1} +{ \left [B\right ]}_{2j}{\left [A\right ]}_{i2} +{ \left [B\right ]}_{3j}{\left [A\right ]}_{i3} + \mathrel{⋯} +{ \left [B\right ]}_{nj}{\left [A\right ]}_{in} &&\text{@(a href="fcla-jsmath-2.90li30.html#notation.ME")Notation ME@(/a)} &&&& \cr & ={ \left [A\right ]}_{i1}{\left [B\right ]}_{1j} +{ \left [A\right ]}_{i2}{\left [B\right ]}_{2j} +{ \left [A\right ]}_{i3}{\left [B\right ]}_{3j} + \mathrel{⋯} +{ \left [A\right ]}_{in}{\left [B\right ]}_{nj} &&\text{@(a href="fcla-jsmath-2.90li69.html#property.CMCN")Property CMCN@(/a)} &&&& \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [B\right ]}_{kj} && && }

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

\eqalignno{ A = \left [\array{ 1 & 2 &−1& 4 &6\cr 0 &−4 & 1 & 2 &3 \cr −5& 1 & 2 &−3&4 } \right ] & &B = \left [\array{ 1 & 6 & 2 &1\cr −1 & 4 & 3 &2 \cr 1 & 1 & 2 &3\cr 6 & 4 &−1 &2 \cr 1 &−2& 3 &0 } \right ] & & & & & }

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

\eqalignno{ {\left [AB\right ]}_{23} = &{\left [A\right ]}_{21}{\left [B\right ]}_{13} +{ \left [A\right ]}_{22}{\left [B\right ]}_{23} +{ \left [A\right ]}_{23}{\left [B\right ]}_{33} +{ \left [A\right ]}_{24}{\left [B\right ]}_{43} +{ \left [A\right ]}_{25}{\left [B\right ]}_{53} & & \cr = &(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:

\eqalignno{ {\left [AB\right ]}_{31} = &{\left [A\right ]}_{31}{\left [B\right ]}_{11} +{ \left [A\right ]}_{32}{\left [B\right ]}_{21} +{ \left [A\right ]}_{33}{\left [B\right ]}_{31} +{ \left [A\right ]}_{34}{\left [B\right ]}_{41} +{ \left [A\right ]}_{35}{\left [B\right ]}_{51} & & \cr = &(−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. A{O}_{n×p} = {O}_{m×p}
2. {O}_{p×m}A = {O}_{p×n}

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

\eqalignno{ {\left [A{O}_{n×p}\right ]}_{ij} & ={ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [{O}_{n×p}\right ]}_{kj} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}0 & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.ZM")Definition ZM@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}0 & & & & \cr & = 0 & &\text{@(a href="fcla-jsmath-2.90li69.html#property.ZCN")Property ZCN@(/a)} & & & & \cr & ={ \left [{O}_{m×p}\right ]}_{ij} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.ZM")Definition ZM@(/a)} & & & & }

So by the definition of matrix equality (Definition ME), the matrices A{O}_{n×p} and {O}_{m×p} are equal.

Theorem MMIM
Matrix Multiplication and Identity Matrix
Suppose A is an m × n matrix. Then
1. A{I}_{n} = A
2. {I}_{m}A = A

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

\eqalignno{ {\left [A{I}_{n}\right ]}_{ij} = &{ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [{I}_{n}\right ]}_{kj} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr & ={ \left [A\right ]}_{ij}{\left [{I}_{n}\right ]}_{jj} +{ \mathop{∑ }}_{\begin{array}{c}k=1 \\ k\mathrel{≠}j \end{array}}^{n}{\left [A\right ]}_{ ik}{\left [{I}_{n}\right ]}_{kj} & &\text{@(a href="fcla-jsmath-2.90li69.html#property.CACN")Property CACN@(/a)} & & & & \cr & ={ \left [A\right ]}_{ij}(1) +{ \mathop{∑ }}_{k=1,k\mathrel{≠}j}^{n}{\left [A\right ]}_{ ik}(0) & &\text{@(a href="fcla-jsmath-2.90li21.html#definition.IM")Definition IM@(/a)} & & & & \cr & ={ \left [A\right ]}_{ij} +{ \mathop{∑ }}_{k=1,k\mathrel{≠}j}^{n}0 & & & & \cr & ={ \left [A\right ]}_{ij} & & & & }

So the matrices A and A{I}_{n} 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,

\eqalignno{ {\left [A(B + C)\right ]}_{ij} & ={ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [B + C\right ]}_{kj} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}({\left [B\right ]}_{kj} +{ \left [C\right ]}_{kj}) & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.MA")Definition MA@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [B\right ]}_{kj} +{ \left [A\right ]}_{ik}{\left [C\right ]}_{kj} & &\text{@(a href="fcla-jsmath-2.90li69.html#property.DCN")Property DCN@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [B\right ]}_{kj} +{ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [C\right ]}_{kj} & &\text{@(a href="fcla-jsmath-2.90li69.html#property.CACN")Property CACN@(/a)} & & & & \cr & ={ \left [AB\right ]}_{ij} +{ \left [AC\right ]}_{ij} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr & ={ \left [AB + AC\right ]}_{ij} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.MA")Definition MA@(/a)} & & & & }

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,

\eqalignno{ {\left [α(AB)\right ]}_{ij} & = α{\left [AB\right ]}_{ij} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.MSM")Definition MSM@(/a)} & & & & \cr & = α{\mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [B\right ]}_{kj} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}α{\left [A\right ]}_{ ik}{\left [B\right ]}_{kj} & &\text{@(a href="fcla-jsmath-2.90li69.html#property.DCN")Property DCN@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [αA\right ]}_{ ik}{\left [B\right ]}_{kj} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.MSM")Definition MSM@(/a)} & & & & \cr & ={ \left [(αA)B\right ]}_{ij} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & }

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,

\eqalignno{ {\left [A(BD)\right ]}_{ij} & ={ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [BD\right ]}_{kj} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}\left ({\mathop{∑ }}_{ℓ=1}^{p}{\left [B\right ]}_{ kℓ}{\left [D\right ]}_{ℓj}\right ) & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{ \mathop{∑ }}_{ℓ=1}^{p}{\left [A\right ]}_{ ik}{\left [B\right ]}_{kℓ}{\left [D\right ]}_{ℓj} & &\text{@(a href="fcla-jsmath-2.90li69.html#property.DCN")Property DCN@(/a)} & & & & \text{We can switch the order of the summation since these are finite sums,} \cr & ={ \mathop{∑ }}_{ℓ=1}^{p}{ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [B\right ]}_{kℓ}{\left [D\right ]}_{ℓj} & &\text{@(a href="fcla-jsmath-2.90li69.html#property.CACN")Property CACN@(/a)} & & & & \text{As ${\left [D\right ]}_{ℓj}$ does not depend on the index $k$, we can use distributivity to move it outside of the inner sum,} \cr & ={ \mathop{∑ }}_{ℓ=1}^{p}{\left [D\right ]}_{ ℓj}\left ({\mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [B\right ]}_{kℓ}\right ) & &\text{@(a href="fcla-jsmath-2.90li69.html#property.DCN")Property DCN@(/a)} & & & & \cr & ={ \mathop{∑ }}_{ℓ=1}^{p}{\left [D\right ]}_{ ℓj}{\left [AB\right ]}_{iℓ} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr & ={ \mathop{∑ }}_{ℓ=1}^{p}{\left [AB\right ]}_{ iℓ}{\left [D\right ]}_{ℓj} & &\text{@(a href="fcla-jsmath-2.90li69.html#property.CMCN")Property CMCN@(/a)} & & & & \cr & ={ \left [(AB)D\right ]}_{ij} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & &

}

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,\kern 1.95872pt v to matrices with a single column, then the expression {u}^{t}\overline{v} 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. Notice that if we treat a column vector as a matrix with a single column, then we can also construct the adjoint of a vector, though will we will not make this a common practice.

Theorem MMIP
Matrix Multiplication and Inner Products
If we consider the vectors u,\kern 1.95872pt v ∈ {ℂ}^{m} as m × 1 matrices then

\eqalignno{ \left \langle u,\kern 1.95872pt v\right \rangle & ={ \overline{u}}^{t}v & = {u}^{∗}v & & & & }

Proof  

\eqalignno{ \left \langle u,\kern 1.95872pt v\right \rangle & ={ \mathop{∑ }}_{k=1}^{m}\overline{{\left [u\right ]}_{ k}}{\left [v\right ]}_{k} & &\text{@(a href="fcla-jsmath-2.90li28.html#definition.IP")Definition IP@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{m}\overline{{\left [u\right ]}_{ k1}}{\left [v\right ]}_{k1} & &\text{Column vectors as matrices} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{m}{\left [\overline{u}\right ]}_{ k1}{\left [v\right ]}_{k1} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.CCM")Definition CCM@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{m}{\left [{\overline{u}}^{t}\right ]}_{ 1k}{\left [v\right ]}_{k1} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.TM")Definition TM@(/a)} & & & & \cr & ={ \left [{\overline{u}}^{t}v\right ]}_{ 11} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr & & & & }

To finish we just blur the distinction between a 1 × 1 matrix ({\overline{u}}^{t}v) 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 \overline{AB} = \overline{A}\kern 1.95872pt \overline{B}.

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

\eqalignno{ {\left [\overline{AB}\right ]}_{ij} & = \overline{{\left [AB\right ]}_{ij}} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.CCM")Definition CCM@(/a)} & & & & \cr & = \overline{{ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [B\right ]}_{kj}} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}\overline{{\left [A\right ]}_{ ik}{\left [B\right ]}_{kj}} & &\text{@(a href="fcla-jsmath-2.90li69.html#theorem.CCRA")Theorem CCRA@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}\overline{{\left [A\right ]}_{ ik}}\kern 1.95872pt \kern 1.95872pt \overline{{\left [B\right ]}_{kj}} & &\text{@(a href="fcla-jsmath-2.90li69.html#theorem.CCRM")Theorem CCRM@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [\overline{A}\right ]}_{ ik}{\left [\overline{B}\right ]}_{kj} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.CCM")Definition CCM@(/a)} & & & & \cr & ={ \left [\overline{A}\kern 1.95872pt \overline{B}\right ]}_{ij} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & }

So the matrices \overline{AB} and \overline{A}\kern 1.95872pt \overline{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} = {B}^{t}{A}^{t}.

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 {B}^{t} with {A}^{t} 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,

\eqalignno{ {\left [{(AB)}^{t}\right ]}_{ ji} = &{\left [AB\right ]}_{ij} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.TM")Definition TM@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [B\right ]}_{kj} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [B\right ]}_{ kj}{\left [A\right ]}_{ik} & &\text{@(a href="fcla-jsmath-2.90li69.html#property.CMCN")Property CMCN@(/a)} & & & & \cr & ={ \mathop{∑ }}_{k=1}^{n}{\left [{B}^{t}\right ]}_{ jk}{\left [{A}^{t}\right ]}_{ ki} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.TM")Definition TM@(/a)} & & & & \cr & ={ \left [{B}^{t}{A}^{t}\right ]}_{ ji} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & }

So the matrices {(AB)}^{t} and {B}^{t}{A}^{t} 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)}^{∗} = {B}^{∗}{A}^{∗}.

Proof  

\eqalignno{ {(AB)}^{∗} & ={ \left (\overline{AB}\right )}^{t} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.A")Definition A@(/a)} & & & & \cr & ={ \left (\overline{A}\kern 1.95872pt \overline{B}\right )}^{t} & &\text{@(a href="#theorem.MMCC")Theorem MMCC@(/a)} & & & & \cr & ={ \left (\overline{B}\right )}^{t}{\left (\overline{A}\right )}^{t} & &\text{@(a href="#theorem.MMT")Theorem MMT@(/a)} & & & & \cr & = {B}^{∗}{A}^{∗} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.A")Definition A@(/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 \left \langle Ax,\kern 1.95872pt y\right \rangle = \left \langle x,\kern 1.95872pt {A}^{∗}y\right \rangle .

Proof  

\eqalignno{ \left \langle Ax,\kern 1.95872pt y\right \rangle & ={ \left (\overline{Ax}\right )}^{t}y & &\text{@(a href="#theorem.MMIP")Theorem MMIP@(/a)} & & & & \cr & ={ \left (\overline{A}\kern 1.95872pt \overline{x}\right )}^{t}y & &\text{@(a href="#theorem.MMCC")Theorem MMCC@(/a)} & & & & \cr & ={ \overline{x}}^{t}{\overline{A}}^{t}y & &\text{@(a href="#theorem.MMT")Theorem MMT@(/a)} & & & & \cr & ={ \overline{x}}^{t}\left ({A}^{∗}y\right ) & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.A")Definition A@(/a)} & & & & \cr & = \left \langle x,\kern 1.95872pt {A}^{∗}y\right \rangle & &\text{@(a href="#theorem.MMIP")Theorem MMIP@(/a)} & & & & }

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 \left \langle Ax,\kern 1.95872pt y\right \rangle = \left \langle x,\kern 1.95872pt Ay\right \rangle for all x,\kern 1.95872pt 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,

\eqalignno{ \left \langle Ax,\kern 1.95872pt y\right \rangle & = \left \langle x,\kern 1.95872pt {A}^{∗}y\right \rangle & &\text{@(a href="#theorem.AIP")Theorem AIP@(/a)} & & & & \cr & = \left \langle x,\kern 1.95872pt Ay\right \rangle & &\text{@(a href="#definition.HM")Definition HM@(/a)} & & & & \cr & & & & }

() This “half” will take a bit more work. Assume that \left \langle Ax,\kern 1.95872pt y\right \rangle = \left \langle x,\kern 1.95872pt Ay\right \rangle for all x,\kern 1.95872pt y ∈ {ℂ}^{n}. Choose any x ∈ {ℂ}^{n}. We want to show that A = {A}^{∗} by establishing that Ax = {A}^{∗}x. With only this much motivation, consider the inner product,

\eqalignno{ \left \langle Ax − {A}^{∗}x,\kern 1.95872pt Ax − {A}^{∗}x\right \rangle & = \left \langle Ax − {A}^{∗}x,\kern 1.95872pt Ax\right \rangle −\left \langle Ax − {A}^{∗}x,\kern 1.95872pt {A}^{∗}x\right \rangle &&\text{@(a href="fcla-jsmath-2.90li28.html#theorem.IPVA")Theorem IPVA@(/a)}&&&& \cr & = \left \langle Ax − {A}^{∗}x,\kern 1.95872pt Ax\right \rangle −\left \langle A\left (Ax − {A}^{∗}x\right ),\kern 1.95872pt x\right \rangle &&\text{@(a href="#theorem.AIP")Theorem AIP@(/a)} &&&& \cr & = \left \langle Ax − {A}^{∗}x,\kern 1.95872pt Ax\right \rangle −\left \langle Ax − {A}^{∗}x,\kern 1.95872pt Ax\right \rangle &&\text{Hypothesis} &&&& \cr & = 0 &&\text{@(a href="fcla-jsmath-2.90li69.html#property.AICN")Property AICN@(/a)}&&&& }

Because this first inner product equals zero, and has the same vector in each argument (Ax − {A}^{∗}x), Theorem PIP gives the conclusion that Ax − {A}^{∗}x = 0. With Ax = {A}^{∗}x 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
    \eqalignno{ \left [\array{ 2& 3 &−1&0\cr 1&−2 & 7 &3 \cr 1& 5 & 3 &2\cr } \right ] & &\text{with} & &\left [\array{ 2\cr −3 \cr 0\cr 5 } \right ] & & & & & & }
  2. Multiply together the two matrices below (in the order given).
    \eqalignno{ \left [\array{ 2& 3 &−1&0\cr 1&−2 & 7 &3 \cr 1& 5 & 3 &2\cr } \right ] & &\left [\array{ 2 & 6\cr −3 &−4 \cr 0 & 2\cr 3 &−1\cr } \right ] & & & & }
  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.)
    \eqalignno{ 2{x}_{1} + 3{x}_{2} − {x}_{3} & = 0 & & \cr {x}_{1} + 2{x}_{2} + {x}_{3} & = 3 & & \cr {x}_{1} + 3{x}_{2} + 3{x}_{3} & = 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).

\eqalignno{ A = \left [\array{ 2 & 5\cr −1 & 3 \cr 2 &−2 } \right ] & &B = \left [\array{ 1&5&−3& 4\cr 2&0 & 2 &−3 } \right ] & & & & }

 
Contributed by Robert Beezer Solution [637]

C21 Compute the product AB of the two matrices below using both the definition of the matrix-vector product (Definition MVP) and the definition of matrix multiplication (Definition MM).

\eqalignno{ A & = \left [\array{ 1 &3&2\cr −1 &2 &1 \cr 0 &1&0 } \right ] &B & = \left [\array{ 4&1&2\cr 1&0 &1 \cr 3&1&5} \right ] & & & & }

 
Contributed by Chris Black Solution [637]

C22 Compute the product AB of the two matrices below using both the definition of the matrix-vector product (Definition MVP) and the definition of matrix multiplication (Definition MM).

\eqalignno{ A & = \left [\array{ 1 &0\cr −2 &1 } \right ] &B & = \left [\array{ 2&3\cr 4&6 } \right ] & & & & }

 
Contributed by Chris Black Solution [637]

C23 Compute the product AB of the two matrices below using both the definition of the matrix-vector product (Definition MVP) and the definition of matrix multiplication (Definition MM).

\eqalignno{ A & = \left [\array{ 3&1\cr 2&4 \cr 6&5\cr 1&2 } \right ] &B & = \left [\array{ −3&1\cr 4 &2 } \right ] & & & & }

 
Contributed by Chris Black Solution [637]

C24 Compute the product AB of the two matrices below.

\eqalignno{ A & = \left [\array{ 1&2& 3 &−2\cr 0&1 &−2 &−1 \cr 1&1& 3 & 1 } \right ] &B & = \left [\array{ 3\cr 4 \cr 0\cr 2 } \right ] & & & & }

 
Contributed by Chris Black Solution [638]

C25 Compute the product AB of the two matrices below.

\eqalignno{ A & = \left [\array{ 1&2& 3 &−2\cr 0&1 &−2 &−1 \cr 1&1& 3 & 1 } \right ] &B & = \left [\array{ −7\cr 3 \cr 1\cr 1 } \right ] & & & & }

 
Contributed by Chris Black Solution [638]

C26 Compute the product AB of the two matrices below using both the definition of the matrix-vector product (Definition MVP) and the definition of matrix multiplication (Definition MM).

\eqalignno{ A & = \left [\array{ 1&3&1\cr 0&1 &0 \cr 1&1&2} \right ] &B & = \left [\array{ 2 &−5&−1\cr 0 & 1 & 0 \cr −1& 2 & 1 } \right ] & & & & }

 
Contributed by Chris Black Solution [638]

C30 For the matrix A = \left [\array{ 1&2\cr 0&1 } \right ], find {A}^{2}, {A}^{3}, {A}^{4}. Find a general formula for {A}^{n} for any positive integer n.  
Contributed by Chris Black Solution [638]

C31 For the matrix A = \left [\array{ 1&−1\cr 0& 1 } \right ], find {A}^{2}, {A}^{3}, {A}^{4}. Find a general formula for {A}^{n} for any positive integer n.  
Contributed by Chris Black Solution [638]

C32 For the matrix A = \left [\array{ 1&0&0\cr 0&2 &0 \cr 0&0&3} \right ], find {A}^{2}, {A}^{3}, {A}^{4}. Find a general formula for {A}^{n} for any positive integer n.  
Contributed by Chris Black Solution [638]

C33 For the matrix A = \left [\array{ 0&1&2\cr 0&0 &1 \cr 0&0&0} \right ], find {A}^{2}, {A}^{3}, {A}^{4}. Find a general formula for {A}^{n} for any positive integer n.  
Contributed by Chris Black Solution [638]

T10 Suppose that A is a square matrix and there is a vector, b, such that ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ) 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 [639]

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 [639]

T31 Suppose that A is an m × n matrix and x,\kern 1.95872pt y ∈N\kern -1.95872pt \left (A\right ). Prove that x + y ∈N\kern -1.95872pt \left (A\right ).  
Contributed by Robert Beezer

T32 Suppose that A is an m × n matrix, α ∈ {ℂ}^{}, and x ∈N\kern -1.95872pt \left (A\right ). Prove that αx ∈N\kern -1.95872pt \left (A\right ).  
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 N\kern -1.95872pt \left (B\right ) ⊆N\kern -1.95872pt \left (AB\right ). Provide an example where the opposite is false, in other words give an example where N\kern -1.95872pt \left (AB\right )⊈N\kern -1.95872pt \left (B\right ).  
Contributed by Robert Beezer Solution [640]

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 N\kern -1.95872pt \left (B\right ) = N\kern -1.95872pt \left (AB\right ). (Compare with Exercise MM.T40.)  
Contributed by Robert Beezer Solution [641]

T50 Suppose u and v are any two solutions of the linear system ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ). Prove that u − v is an element of the null space of A, that is, u − v ∈N\kern -1.95872pt \left (A\right ).  
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 [641]

T52 Suppose that x,\kern 1.95872pt 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 ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ), 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 ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ) as the conclusion, and then give a proof.  
Contributed by Robert Beezer Solution [643]

Subsection SOL: Solutions

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

\eqalignno{ AB & = \left [\left .\left [\array{ 2 & 5\cr −1 & 3 \cr 2 &−2 } \right ]\left [\array{ 1\cr 2 } \right ]\right \vert \ \left .\left [\array{ 2 & 5\cr −1 & 3 \cr 2 &−2 } \right ]\left [\array{ 5\cr 0 } \right ]\right \vert \ \left .\left [\array{ 2 & 5\cr −1 & 3 \cr 2 &−2 } \right ]\left [\array{ −3\cr 2 } \right ]\right \vert \ \left .\left [\array{ 2 & 5\cr −1 & 3 \cr 2 &−2 } \right ]\left [\array{ 4\cr −2 } \right ]\right .\right ] & & \text{Repeated applications of @(a href="#definition.MVP")Definition MVP@(/a) give} \cr & = \left [\left .1\left [\array{ 2\cr −1 \cr 2 } \right ] + 2\left [\array{ 5\cr 3 \cr −2 } \right ]\right \vert \ \left .5\left [\array{ 2\cr −1 \cr 2 } \right ] + 0\left [\array{ 5\cr 3 \cr −2 } \right ]\right \vert \ \left .−3\left [\array{ 2\cr −1 \cr 2 } \right ] + 2\left [\array{ 5\cr 3 \cr −2 } \right ]\right \vert \ \left .4\left [\array{ 2\cr −1 \cr 2 } \right ] + (−3)\left [\array{ 5\cr 3 \cr −2 } \right ]\right .\right ] & & \cr & = \left [\array{ 12&10& 4 & −7\cr 5 &−5 & 9 &−13 \cr −2&10&−10& 14 } \right ] & & }

C21 Contributed by Chris Black Statement [629]
AB = \left [\array{ 13&3&15\cr 1 &0 & 5 \cr 1 &0& 1 } \right ].

C22 Contributed by Chris Black Statement [630]
AB = \left [\array{ 2&3\cr 0&0 } \right ].

C23 Contributed by Chris Black Statement [630]
AB = \left [\array{ −5& 5\cr 10 &10 \cr 2 &16\cr 5 & 5 } \right ].

C24 Contributed by Chris Black Statement [631]
AB = \left [\array{ 7\cr 2 \cr 9 } \right ].

C25 Contributed by Chris Black Statement [631]
AB = \left [\array{ 0\cr 0 \cr 0 } \right ].

C26 Contributed by Chris Black Statement [632]
AB = \left [\array{ 1&0&0\cr 0&1 &0 \cr 0&0&1} \right ].

C30 Contributed by Chris Black Statement [633]
{A}^{2} = \left [\array{ 1&4 \cr 0&1 } \right ], {A}^{3} = \left [\array{ 1&6 \cr 0&1 } \right ], {A}^{4} = \left [\array{ 1&8 \cr 0&1 } \right ]. From this pattern, we see that {A}^{n} = \left [\array{ 1&2n \cr 0& 1 } \right ].

C31 Contributed by Chris Black Statement [633]
{A}^{2} = \left [\array{ 1&−2 \cr 0& 1} \right ], {A}^{3} = \left [\array{ 1&−3 \cr 0& 1} \right ], {A}^{4} = \left [\array{ 1&−4 \cr 0& 1} \right ]. From this pattern, we see that {A}^{n} = \left [\array{ 1&−n \cr 0& 1} \right ].

C32 Contributed by Chris Black Statement [633]
{A}^{2} = \left [\array{ 1&0&0\cr 0&4 &0 \cr 0&0&9} \right ], {A}^{3} = \left [\array{ 1&0& 0\cr 0&8 & 0 \cr 0&0&27 } \right ], and {A}^{4} = \left [\array{ 1& 0 & 0\cr 0&16 & 0 \cr 0& 0 &81 } \right ]. The pattern emerges, and we see that {A}^{n} = \left [\array{ 1& 0 & 0\cr 0&{2}^{n } & 0 \cr 0& 0 &{3}^{n} } \right ].

C33 Contributed by Chris Black Statement [633]
We quickly compute {A}^{2} = \left [\array{ 0&0&1\cr 0&0 &0 \cr 0&0&0} \right ], and we then see that {A}^{3} and all subsequent powers of A are the 3 × 3 zero matrix; that is, {A}^{n} = {O}_{ 3,3} for n ≥ 3.

T10 Contributed by Robert Beezer Statement [633]
Since ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ) 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 ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ) has a unique solution.”

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

\eqalignno{ {\left [α(AB)\right ]}_{ij} = &α{\left [AB\right ]}_{ij} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.MSM")Definition MSM@(/a)} & & & & \cr = &α{\mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [B\right ]}_{kj} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & \cr = &{ \mathop{∑ }}_{k=1}^{n}α{\left [A\right ]}_{ ik}{\left [B\right ]}_{kj} & &\text{Distributivity in ${ℂ}^{}$} & & & & \cr = &{ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}α{\left [B\right ]}_{kj} & &\text{Commutativity in ${ℂ}^{}$} & & & & \cr = &{ \mathop{∑ }}_{k=1}^{n}{\left [A\right ]}_{ ik}{\left [αB\right ]}_{kj} & &\text{@(a href="fcla-jsmath-2.90li30.html#definition.MSM")Definition MSM@(/a)} & & & & \cr = &{\left [A(αB)\right ]}_{ij} & &\text{@(a href="#theorem.EMP")Theorem EMP@(/a)} & & & & }

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 [634]
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 ∈N\kern -1.95872pt \left (B\right ). Then we know that Bx = 0 by Definition NSM. Consider

\eqalignno{ (AB)x & = A(Bx) & &\text{@(a href="#theorem.MMA")Theorem MMA@(/a)} & & & & \cr & = A0 & &\text{Hypothesis} & & & & \cr & = 0 & &\text{@(a href="#theorem.MMZM")Theorem MMZM@(/a)} & & & & \cr & & & & }

This establishes that x ∈N\kern -1.95872pt \left (AB\right ), so N\kern -1.95872pt \left (B\right ) ⊆N\kern -1.95872pt \left (AB\right ).

To show that the inclusion does not hold in the opposite direction, choose B to be any nonsingular matrix of size n. Then N\kern -1.95872pt \left (B\right ) = \left \{0\right \} by Theorem NMTNS. Let A be the square zero matrix, O, of the same size. Then AB = OB = O by Theorem MMZM and therefore N\kern -1.95872pt \left (AB\right ) = {ℂ}^{n}, and is not a subset of N\kern -1.95872pt \left (B\right ) = \left \{0\right \}.

T41 Contributed by David Braithwaite Statement [635]
From the solution to Exercise MM.T40 we know that N\kern -1.95872pt \left (B\right ) ⊆N\kern -1.95872pt \left (AB\right ). So to establish the set equality (Definition SE) we need to show that N\kern -1.95872pt \left (AB\right ) ⊆N\kern -1.95872pt \left (B\right ).

Suppose x ∈N\kern -1.95872pt \left (AB\right ). Then we know that ABx = 0 by Definition NSM. Consider

\eqalignno{ 0 & = \left (AB\right )x & &\text{@(a href="fcla-jsmath-2.90li20.html#definition.NSM")Definition NSM@(/a)} & & & & \cr & = A\left (Bx\right ) & &\text{@(a href="#theorem.MMA")Theorem MMA@(/a)} & & & & }

So, Bx ∈N\kern -1.95872pt \left (A\right ). Because A is nonsingular, it has a trivial null space (Theorem NMTNS) and we conclude that Bx = 0. This establishes that x ∈N\kern -1.95872pt \left (B\right ), so N\kern -1.95872pt \left (AB\right ) ⊆N\kern -1.95872pt \left (B\right ) and combined with the solution to Exercise MM.T40 we have N\kern -1.95872pt \left (B\right ) = N\kern -1.95872pt \left (AB\right ) when A is nonsingular.

T51 Contributed by Robert Beezer Statement [635]
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 ∈N\kern -1.95872pt \left (A\right ). Then

\eqalignno{ Ay & = A(w + z) & &\text{Substitution} & & & & \cr & = Aw + Az & &\text{@(a href="#theorem.MMDAA")Theorem MMDAA@(/a)} & & & & \cr & = b + 0 & &z ∈N\kern -1.95872pt \left (A\right ) & & & & \cr & = b & &\text{@(a href="fcla-jsmath-2.90li23.html#property.ZC")Property ZC@(/a)} & & & & \cr & & & & }

demonstrating that y is a solution.

() Suppose y is a solution to ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ). Then

\eqalignno{ A(y − w) & = Ay − Aw & &\text{@(a href="#theorem.MMDAA")Theorem MMDAA@(/a)} & & & & \cr & = b − b & &\text{$y,\kern 1.95872pt w$ solutions to $Ax = b$} & & & & \cr & = 0 & &\text{@(a href="fcla-jsmath-2.90li23.html#property.AIC")Property AIC@(/a)} & & & & \cr & & & & }

which says that y − w ∈N\kern -1.95872pt \left (A\right ). In other words, y − w = z for some vector z ∈N\kern -1.95872pt \left (A\right ). Rewritten, this is y = w + z, as desired.

T52 Contributed by Robert Beezer Statement [635]
ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ) must be homogeneous. To see this consider that

\eqalignno{ b & = Ax & &\text{@(a href="#theorem.SLEMM")Theorem SLEMM@(/a)} & & & & \cr & = Ax + 0 & &\text{@(a href="fcla-jsmath-2.90li23.html#property.ZC")Property ZC@(/a)} & & & & \cr & = Ax + Ay − Ay & &\text{@(a href="fcla-jsmath-2.90li23.html#property.AIC")Property AIC@(/a)} & & & & \cr & = A\left (x + y\right ) − Ay & &\text{@(a href="#theorem.MMDAA")Theorem MMDAA@(/a)} & & & & \cr & = b − b & &\text{@(a href="#theorem.SLEMM")Theorem SLEMM@(/a)} & & & & \cr & = 0 & &\text{@(a href="fcla-jsmath-2.90li23.html#property.AIC")Property AIC@(/a)} & & & & }

By Definition HS we see that ℒS\kern -1.95872pt \left (A,\kern 1.95872pt b\right ) is homogeneous.