Math for economyMM1005

How to find your way

  1. 1Search for the word that confuses you — the box at the top searches the whole course.
  2. 2Look it up in Concepts. Every concept links to the section that explains it. Concepts →
  3. 3Read the Watch out and Common error boxes: they show the mistakes that are actually made.
  4. 4Still stuck? Bring the question to the exercise session or send an email.

Lecturer: Eric Ahlqvist, [email protected] · Put “MM1005” in the subject line.

← 12
Lecture 13 Rules, the transpose, and solving the system
14 →
13 Matrices

Rules, the transpose, and solving the system

$\mathbf{A}\mathbf{x}=\mathbf{b}$ looks exactly like $ax=b.$ How much of ordinary algebra comes with it — and can we solve it without dividing by $\mathbf{A}$?

Lecture 12 compressed a system of $m$ equations in $n$ unknowns into the single equation $\mathbf{A}\mathbf{x}=\mathbf{b},$ which looks exactly like $ax=b.$ Two questions follow, and this lecture answers both.

First: how far does the resemblance go? Which rules of ordinary algebra survive the move to matrices? The answer is that most do, and the three that do not are worth knowing by name.

Second, and more useful: can we solve $\mathbf{A}\mathbf{x}=\mathbf{b}$? For numbers one divides by $a.$ Division by a matrix is Lecture 14, and it will turn out to be available only sometimes. The remarkable fact — the last section of this lecture — is that we do not need it: there is a procedure that solves any linear system whatsoever, without dividing by anything.

⏱ 70 min read§ 6 sections

After this lecture you can

  • expand and simplify matrix expressions with the rules that survive, keeping $\mathbf{A}\mathbf{B}$ and $\mathbf{B}\mathbf{A}$ apart
  • give a counterexample to each of the three rules of ordinary algebra that fail for matrices
  • transpose a matrix and a product, with the factors in the right order and the right orders of the matrices
  • solve a linear system by Gaussian elimination, naming every row operation, and check the answer by substitution
  • decide from the finished staircase whether a system has no solution, exactly one, or infinitely many, and write all solutions with a parameter $t$ for each free unknown
  • write a solution set as one particular solution plus all solutions of the homogeneous system
1

Rules for matrix multiplication, and the identity

For numbers $(a+b)^{2}=a^{2}+2ab+b^{2}.$ What is $(\mathbf{A}+\mathbf{B})^{2}$ for square matrices?

Addition of matrices behaves exactly like addition of numbers, and Lecture 12 said so. Multiplication does not, so its rules have to be checked rather than assumed.

Recap From Lecture 12: when a product exists, and what it is

If $\mathbf{A}$ is $m\times n$ and $\mathbf{B}$ is $n\times p,$ the product $\mathbf{A}\mathbf{B}$ is the $m\times p$ matrix whose $(i,k)$ entry is row $i$ of $\mathbf{A}$ times column $k$ of $\mathbf{B}{:}$ $$ \begin{aligned} c_{ik}&=a_{i1}b_{1k}+\cdots+a_{in}b_{nk}\\ &=\sum_{j=1}^{n}a_{ij}b_{jk} \end{aligned} $$ (Definition 12.17). The orders must meet in the middle, and the ends give the answer: $(m\times n)(n\times p)$ is $m\times p,$ and the product does not exist when the inner numbers differ (Watch out 12.18). So the order of the factors matters before a single entry is computed.

Fact 13.1Rules for matrix multiplication#

Let $\mathbf{A},\mathbf{B},\mathbf{C}$ be matrices and $\alpha$ a scalar. Whenever the orders are such that the products written down exist, $$ \begin{array}{l} (\mathbf{A}\mathbf{B})\mathbf{C} = \mathbf{A}(\mathbf{B}\mathbf{C})\,,\\ \quad\text{(associative law)}\\[4pt] \mathbf{A}(\mathbf{B}+\mathbf{C}) = \mathbf{A}\mathbf{B}+\mathbf{A}\mathbf{C}\,,\\ \quad\text{(left distributive law)}\\[4pt] (\mathbf{A}+\mathbf{B})\mathbf{C} = \mathbf{A}\mathbf{C}+\mathbf{B}\mathbf{C}\,,\\ \quad\text{(right distributive law)}\\[4pt] (\alpha\mathbf{A})\mathbf{B} = \mathbf{A}(\alpha\mathbf{B}) = \alpha(\mathbf{A}\mathbf{B})\,. \end{array} $$

Two distributive laws are stated where numbers need only one, because $\mathbf{A}(\mathbf{B}+\mathbf{C})$ and $(\mathbf{B}+\mathbf{C})\mathbf{A}$ are different expressions.

Associativity is what makes $\mathbf{A}\mathbf{B}\mathbf{C}$ unambiguous, so brackets may be dropped; and for a square $\mathbf{A}$ it makes the powers $\mathbf{A}^{2}=\mathbf{A}\mathbf{A},$ $\mathbf{A}^{3}=\mathbf{A}\mathbf{A}\mathbf{A},$ …, $\mathbf{A}^{n}$ well defined without brackets either.

The practical value of Fact 13.1 is that identities can be established by manipulating whole matrices rather than by inspecting $mn$ entries.

Guess first. The example below expands a square with these rules. Answer the question before you read it.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

$\mathbf{A}$ and $\mathbf{B}$ are square, of the same order.

What is $(\mathbf{A}+\mathbf{B})^2$?

Example 13.2

Expanding a square

For square $\mathbf{A},\mathbf{B}$ of the same order, expand $(\mathbf{A}+\mathbf{B})^{2}.$

Try it yourself first. Then open one step at a time.

The identity matrix

Among the rules that survive, one number has a matrix partner.

Fact 13.4#

If $\mathbf{A}$ is $m\times n$ then $\mathbf{A}\mathbf{I}_{n}=\mathbf{A}$ and $\mathbf{I}_{m}\mathbf{A}=\mathbf{A}$. In particular $\mathbf{A}\mathbf{I}=\mathbf{I}\mathbf{A}=\mathbf{A}$ for every square $\mathbf{A}$, and $\mathbf{I}$ is the only matrix with this property.

So $\mathbf{I}$ plays the part of the number $1.$ Note that it must be square, and that the two identities in $\mathbf{A}\mathbf{I}_{n}=\mathbf{I}_{m}\mathbf{A}$ have different orders unless $\mathbf{A}$ is square: shape first, here as elsewhere.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

$\mathbf{A}$ is a $2\times3$ matrix. Which products exist and equal $\mathbf{A}$?

2

Three rules that do not survive

For numbers $ab=0$ forces $a=0$ or $b=0.$ Can two matrices, neither of them zero, multiply to the zero matrix?

The rules above are the ones that survive. Three rules of ordinary algebra do not, and each is worth knowing by name.

Example 13.6

A product that vanishes

Take $$ \mathbf{A}=\begin{pmatrix} 3 & 1\\ 6 & 2\end{pmatrix}\,, \qquad \mathbf{B}=\begin{pmatrix} 1 & 2\\ -3 & -6\end{pmatrix}\,. $$ Then $\mathbf{A}\mathbf{B}=\mathbf{0},$ although neither factor is the zero matrix.

Try it yourself first. Then open one step at a time.

Failure (2) is not a curiosity. For numbers, $ab=0$ forces a factor to vanish because every non-zero number can be divided by; the matrix statement fails precisely because some non-zero matrices cannot be divided by. Which ones they are is the subject of Lecture 14, and $\mathbf{A}$ above is one of them.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

$$ \begin{aligned} \mathbf{A} &= \begin{pmatrix} 3 & 1 \\ 6 & 2 \end{pmatrix},\\ \mathbf{B} &= \begin{pmatrix} 1 & 2 \\ -3 & -6 \end{pmatrix},\\ \mathbf{AB} &= \mathbf{0} \end{aligned} $$

What follows?

3

The transpose

$\mathbf{A}$ is $2\times5$ and $\mathbf{B}$ is $5\times3.$ What order does $(\mathbf{A}\mathbf{B})^{\top}$ have, and which product of transposes is it?

One genuinely new operation, and it is an operation on shape.

Reflecting the array in its main diagonal, in other words. The order is reversed: $m\times n$ becomes $n\times m.$

The matrix of Example 13.8 and its transpose: the first row of $\mathbf{A}$ (shaded) becomes the first column of $\mathbf{A}^{\top}.$ Under the line, the rule for a product and the orders that force it. (The labels are small on a phone; turn it sideways or zoom.)
Example 13.8

A matrix, a column, and their transposes

Transpose $$ \mathbf{A}=\begin{pmatrix} 2 & -1 & 3\\ 0 & 4 & 1\end{pmatrix} \quad\text{and}\quad \mathbf{a}=\begin{pmatrix} a_{1}\\ a_{2}\\ a_{3}\end{pmatrix}. $$

Try it yourself first. Then open one step at a time.

In economics a quantity vector $\mathbf{x}$ is normally a column and a price vector is written $\mathbf{p}^{\top},$ a row, so that $\mathbf{p}^{\top}\mathbf{x}$ is the bill.

Fact 13.9Rules for transposition#

For matrices $\mathbf{A},\mathbf{B}$ and a scalar $\alpha$, whenever the operations written down are defined, $$ \begin{aligned} (\mathbf{A}^{\top})^{\top}&=\mathbf{A}\,,\\ (\mathbf{A}+\mathbf{B})^{\top}&=\mathbf{A}^{\top}+\mathbf{B}^{\top}\,,\\ (\alpha\mathbf{A})^{\top}&=\alpha\mathbf{A}^{\top}\,,\\ (\mathbf{A}\mathbf{B})^{\top}&=\mathbf{B}^{\top}\mathbf{A}^{\top}\,. \end{aligned} $$

Guess first. The last rule has a reason in the orders alone. Try the question before you read the Watch out that gives it.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

$\mathbf{A}$ is $2 \times 5$ and $\mathbf{B}$ is $5 \times 3$.

What is $(\mathbf{AB})^{\top}$?

Example 13.12

Two symmetric products

For any $m\times n$ matrix $\mathbf{X},$ show that both $\mathbf{X}\mathbf{X}^{\top}$ (of order $m\times m$) and $\mathbf{X}^{\top}\mathbf{X}$ (of order $n\times n$) are symmetric.

Try it yourself first. Then open one step at a time.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

$\mathbf{X}$ is a $3\times2$ matrix with entries that are not all zero. Which of these is certainly a symmetric matrix?

4

Gaussian elimination

For numbers one solves $ax=b$ by dividing by $a.$ Can $\mathbf{A}\mathbf{x}=\mathbf{b}$ be solved without dividing by $\mathbf{A}$?

We now solve $\mathbf{A}\mathbf{x}=\mathbf{b}.$ The method is the one from school — eliminate the unknowns one at a time — made systematic, and it is what a computer does.

Two equation systems are equivalent if they have exactly the same solutions. Three operations turn a system into an equivalent one, and they are the only ones we shall need.

The three elementary row operations, each with its reverse: swap back, multiply by $1/\alpha,$ subtract what was added. Because each can be undone, none of them changes the solutions.
Fact 13.14#

An elementary row operation produces an equivalent system: the set of solutions is unchanged.

Only the coefficients change under these operations; the symbols $x_{1},x_{2},\dots$ do nothing but mark columns. So we drop them.

Try it yourself

Elimination, one row operation at a time

The augmented matrix of a system of three equations, and the row operations of the method below, one press at a time.

  1. Press Next operation until the end, and name each operation before you press: which row changes, and by what? Count them: seven, each one of the three kinds above.
  2. Watch the leading $1$s become solid as they are fixed: first a staircase going down, then zeros cleared going up.
  3. Press the button with the system's name to switch to infinitely many and then no solution. The left-hand sides and the operations are the same; one number of $\mathbf{b}$ differs. Compare the last rows. (The next section explains them.)

Step (3) is optional labour: one may stop at the staircase and substitute upwards instead (back substitution). It is the same arithmetic either way. An unknown whose column has no leading entry is a free unknown, and the number of them is the number of degrees of freedom.

Example 13.17

One solution

Solve $$ \begin{aligned} x_{1}+ x_{2}+3x_{3} &= 2\\ 2x_{1}+3x_{2}+ x_{3} &= -4\\ 3x_{1}- x_{2}+2x_{3} &= 11\,. \end{aligned} $$

Try it yourself first. Then open one step at a time.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

Which of these is not an elementary row operation on a system of three equations?

5

No solution, one, or infinitely many

Two systems have the same left-hand sides and differ in one constant. Can one of them have infinitely many solutions and the other none at all?

Example 13.17 ended with a leading entry in every column. That need not happen, and the same three left-hand sides show both ways it can fail.

Example 13.18

Infinitely many solutions

Solve $$ \begin{aligned} x_{1}+2x_{2}- x_{3} &= 3\\ 2x_{1}+5x_{2}+ x_{3} &= 7\\ x_{1}+ x_{2}-4x_{3} &= 2\,. \end{aligned} $$

Try it yourself first. Then open one step at a time.

Guess first. Now change one constant on the right. Answer the question before you read the Watch out below; its second array is exactly that change.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

Two systems with the same coefficient matrix eliminate to $$ \text{(i)}\;\left(\begin{array}{ccc|c} 1 & 2 & -1 & 3\\ 0 & 1 & 3 & 1\\ 0 & 0 & 0 & 0 \end{array}\right) $$ $$ \text{(ii)}\;\left(\begin{array}{ccc|c} 1 & 2 & -1 & 3\\ 0 & 1 & 3 & 1\\ 0 & 0 & 0 & 3 \end{array}\right) $$

How many solutions has each?

Example 13.18 and Watch out 13.19 side by side: the same left-hand side, and one number in the last column decides between infinitely many solutions and none.
Fact 13.20The three outcomes#

A system of linear equations has either no solution, exactly one solution, or infinitely many. There is no fourth possibility, and Gaussian elimination decides which occurs:

  • a row $(0\;\cdots\;0\mid c)$ with $c\ne0$ — no solution;
  • otherwise, a leading entry in every one of the $n$ unknown columns — exactly one solution;
  • otherwise — infinitely many, with one degree of freedom for each column without a leading entry.

For two equations in two unknowns this is the picture of two lines in Lecture 1 (Fact 1.7); it holds for any size.

Two consequences are worth stating. A system with fewer equations than unknowns can never have exactly one solution: at most $m$ columns can carry a leading entry, so if $m<n$ some column does not, and the system has either none or infinitely many. And whether a square system has exactly one solution is a property of $\mathbf{A}$ alone, not of $\mathbf{b}$ — which is what a determinant will measure in Lecture 14.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

A system has $2$ equations in $3$ unknowns. What can be said about the number of solutions without solving it?

6

The shape of the solution set

A finished staircase has four unknowns and only three leading entries. How many solutions — and what do they look like?

When there are infinitely many solutions, they are not a shapeless heap: they have a very definite structure, and it is the same structure every time. We look at one system carefully and then say what is true in general.

Guess first. The question below is the next example. Answer it before you read on.

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

A system in four unknowns eliminates to $$\left(\begin{array}{cccc|c} 1 & 0 & 2 & 0 & 3\\ 0 & 1 & -1 & 0 & 5\\ 0 & 0 & 0 & 1 & 2 \end{array}\right)$$

How many solutions?

Example 13.21

Reading off every solution

A system in the four unknowns $x_{1},x_{2},x_{3},x_{4}$ has augmented matrix $$ \left(\begin{array}{cccc|c} 1 & 0 & 2 & 0 & 3\\ 0 & 1 & -1 & 0 & 5\\ 0 & 0 & 0 & 1 & 2 \end{array}\right)\,, $$ that is, $$ \mathbf{A}= \begin{pmatrix} 1 & 0 & 2 & 0\\ 0 & 1 & -1 & 0\\ 0 & 0 & 0 & 1 \end{pmatrix}\,, \quad \mathbf{b}= \begin{pmatrix} 3\\ 5\\ 2 \end{pmatrix}\,. $$ Find all solutions of $\mathbf{A}\mathbf{x}=\mathbf{b}.$

Try it yourself first. Then open one step at a time.

Example 13.21 in one picture: three leading entries, one free column, and the solution read off with $x_{3}=t.$ (The labels are small on a phone; turn it sideways or zoom.)

The recipe has done its job, but it hides why the answer looks as it does. Let us take it apart into two pieces.

Piece one: a single solution. The quickest way to get some solution is to give the free unknown the simplest possible value, $x_{3}=0.$ Then the rows give $x_{1}=3,$ $x_{2}=5,$ $x_{4}=2,$ and $$ \begin{aligned} &\mathbf{s}=\begin{pmatrix} 3\\ 5\\ 0\\ 2 \end{pmatrix} \qquad\text{satisfies}\\ &\mathbf{A}\mathbf{s} =\begin{pmatrix} 3+2\cdot0\\ 5-0\\ 2 \end{pmatrix} =\begin{pmatrix} 3\\ 5\\ 2 \end{pmatrix} =\mathbf{b}\,. \end{aligned} $$ So $\mathbf{s}$ is a solution — one of infinitely many, and not the solution. Such an $\mathbf{s}$ is often called a particular solution.

A homogeneous system always has at least one solution, namely $\mathbf{x}=\mathbf{0},$ the trivial solution. It can never be inconsistent.

Piece two: the homogeneous system. Now forget $\mathbf{b}$ and solve $\mathbf{A}\mathbf{x}=\mathbf{0}.$ No new elimination is needed: row operations applied to a column of zeros leave it a column of zeros, so we simply replace the right-hand column $3,5,2$ by $0,0,0.$ The rows now say $$ \begin{aligned} x_{1}+2x_{3}&=0\,,\\ x_{2}-x_{3}&=0\,,\\ x_{4}&=0\,, \end{aligned} $$ and $x_{3}$ is again free. Any non-zero choice of $x_{3}$ gives a solution other than $\mathbf{0};$ with $x_{3}=-1$ we get $x_{1}=2,$ $x_{2}=-1,$ $x_{4}=0,$ so $$ \begin{aligned} &\mathbf{r}=\begin{pmatrix} 2\\ -1\\ -1\\ 0 \end{pmatrix} \qquad\text{satisfies}\\ &\mathbf{A}\mathbf{r} =\begin{pmatrix} 2+2\cdot(-1)\\ -1-(-1)\\ 0 \end{pmatrix} =\begin{pmatrix} 0\\ 0\\ 0 \end{pmatrix} =\mathbf{0}\,. \end{aligned} $$

Putting the pieces together. Here is the point. For every number $\alpha,$ the rules of Fact 13.1 — a matrix distributes over a sum, and a scalar moves freely through a product — give $$ \begin{aligned} \mathbf{A}(\mathbf{s}+\alpha\mathbf{r}) &= \mathbf{A}\mathbf{s}+\alpha\,\mathbf{A}\mathbf{r}\\ &= \mathbf{b}+\alpha\,\mathbf{0} = \mathbf{b}\,. \end{aligned} $$ So every vector $\mathbf{s}+\alpha\mathbf{r}$ is again a solution of $\mathbf{A}\mathbf{x}=\mathbf{b}.$ Adding a solution of the homogeneous system to a solution does not disturb it, because $\mathbf{A}$ turns what was added into $\mathbf{0}.$ This property of $\mathbf{A}$ — that $\mathbf{A}(\mathbf{u}+\alpha\mathbf{v})=\mathbf{A}\mathbf{u}+\alpha\mathbf{A}\mathbf{v}$ — is what is meant by calling the system linear.

And there are no others. Conversely, let $\mathbf{x}$ be any solution of $\mathbf{A}\mathbf{x}=\mathbf{b}.$ Then $\mathbf{A}(\mathbf{x}-\mathbf{s})=\mathbf{A}\mathbf{x}-\mathbf{A}\mathbf{s} =\mathbf{b}-\mathbf{b}=\mathbf{0},$ so $\mathbf{x}-\mathbf{s}$ solves the homogeneous system. Those solutions we know: with $x_{3}=c$ free they are $(-2c,\,c,\,c,\,0)=-c\,\mathbf{r},$ that is, exactly the multiples of $\mathbf{r}.$ Hence $\mathbf{x}-\mathbf{s}=\alpha\mathbf{r}$ for some $\alpha,$ and $$ \begin{aligned} &\bigl\{\text{solutions of } \mathbf{A}\mathbf{x}=\mathbf{b}\bigr\}\\ &=\bigl\{\,\mathbf{s}+\alpha\mathbf{r} \;:\; \alpha\in{\mathbb R}\,\bigr\}\\ &=\left\{\, \begin{pmatrix} 3\\ 5\\ 0\\ 2 \end{pmatrix} +\alpha\begin{pmatrix} 2\\ -1\\ -1\\ 0 \end{pmatrix} \;:\; \alpha\in{\mathbb R} \right\}\,. \end{aligned} $$ This is the answer of Example 13.21 again, now with $\alpha=-t.$ Nothing depended on the choice $x_{3}=-1{:}$ choosing $x_{3}=1$ gives $-\mathbf{r}$ instead, and the set of all multiples is the same.

Geometrically, the multiples $\alpha\mathbf{r}$ form a line through the origin in ${\mathbb R}^{4},$ and the solutions of $\mathbf{A}\mathbf{x}=\mathbf{b}$ form the parallel line through $\mathbf{s}{:}$ the first line, moved off the origin by one particular solution. Nothing in the argument used the particular numbers.

Fact 13.23Structure of the solution set#

Suppose $\mathbf{s}$ is one solution of $\mathbf{A}\mathbf{x}=\mathbf{b}$. Then the solutions of $\mathbf{A}\mathbf{x}=\mathbf{b}$ are exactly the vectors $\mathbf{s}+\mathbf{h}$, where $\mathbf{h}$ is a solution of the corresponding homogeneous system $\mathbf{A}\mathbf{x}=\mathbf{0}$. In words: $$ \begin{aligned} &\text{all solutions}\\ &=\text{one particular solution}\\ &\quad+\text{all homogeneous solutions}\,. \end{aligned} $$

This explains two things we met above. The degrees of freedom belong to the homogeneous system and so to $\mathbf{A}$ alone; $\mathbf{b}$ only decides whether there is a particular solution $\mathbf{s}$ to start from. And a consistent system has exactly one solution precisely when $\mathbf{A}\mathbf{x}=\mathbf{0}$ has only the trivial solution $\mathbf{0}$ — which is again a property of $\mathbf{A},$ not of $\mathbf{b}.$

Check yourself

Pick an answer before reading on. Getting it wrong is fine — that is how you find out what you believe.

$\mathbf{s}=(3,1,0)$ is a solution of $\mathbf{A}\mathbf{x}=\mathbf{b},$ with $\mathbf{b}\ne\mathbf{0},$ and $\mathbf{h}=(1,-2,1)$ is a solution of $\mathbf{A}\mathbf{x}=\mathbf{0}.$ Nothing else is known about $\mathbf{A}.$ Which of these is certainly a solution of $\mathbf{A}\mathbf{x}=\mathbf{b}$?

What you should take away

  • Matrix multiplication is associative and distributive on both sides, and scalars move freely through a product. Brackets in $\mathbf{A}\mathbf{B}\mathbf{C}$ and in powers $\mathbf{A}^{n}$ are therefore unnecessary.
  • Three rules of ordinary algebra fail: $\mathbf{A}\mathbf{B}\ne \mathbf{B}\mathbf{A}$; $\mathbf{A}\mathbf{B}=\mathbf{0}$ with neither factor zero; and no cancellation. Consequently $(\mathbf{A}+\mathbf{B})^{2}=\mathbf{A}^{2}+\mathbf{A}\mathbf{B} +\mathbf{B}\mathbf{A}+\mathbf{B}^{2}$, with the middle terms uncollected.
  • $\mathbf{I}_{n}$ has ones on the main diagonal and zeros elsewhere, and $\mathbf{A}\mathbf{I}=\mathbf{I}\mathbf{A}=\mathbf{A}$. It is the matrix equivalent of the number $1$, and it is the only one.
  • The transpose $\mathbf{A}^{\top}$ turns rows into columns: $\bigl(\mathbf{A}^{\top}\bigr)_{rs}=a_{sr}$, and $m\times n$ becomes $n\times m$. It satisfies $(\mathbf{A}^{\top})^{\top}=\mathbf{A}$, $(\mathbf{A}+\mathbf{B})^{\top}=\mathbf{A}^{\top}+\mathbf{B}^{\top}$ and — with the order reversed — $(\mathbf{A}\mathbf{B})^{\top}=\mathbf{B}^{\top}\mathbf{A}^{\top}$. The shapes force the reversal. A square matrix is symmetric if $\mathbf{A}^{\top}=\mathbf{A}$.
  • The three elementary row operations do not change the solution set of a system, and act only on the augmented matrix $(\mathbf{A}\mid\mathbf{b})$.
  • Gaussian elimination: make a staircase with leading entries $1$, clear above them, and read off the answer, treating the unknowns without a leading entry as free.
  • Every linear system has no solution, one solution, or infinitely many. A row $(0\;\cdots\;0\mid c)$ with $c\ne0$ means none; a leading entry in every unknown's column means one; anything else means infinitely many, one degree of freedom per free column.
  • Structure of the solution set: if $\mathbf{s}$ is one solution of $\mathbf{A}\mathbf{x}=\mathbf{b}$, then all solutions are $\mathbf{s}+\mathbf{h}$ with $\mathbf{A}\mathbf{h}=\mathbf{0}$. With one degree of freedom this is a line $\mathbf{s}+\alpha\mathbf{r}$, $\alpha\in{\mathbb R}$.

Think further

Questions without computation. Think on your own or with a classmate before opening the thought.

  1. Discussion question 1 — four orders, one product that does not exist

    $\mathbf{A}$ is $2\times3$ and $\mathbf{B}$ is $3\times4.$ What are the orders of $\mathbf{A}\mathbf{B},$ $(\mathbf{A}\mathbf{B})^{\top},$ $\mathbf{B}^{\top}\mathbf{A}^{\top}$ and $\mathbf{A}^{\top}\mathbf{B}^{\top}$?

    One way to think about it

    $\mathbf{A}\mathbf{B}$ is a $(2\times3)(3\times4)$ product, so it is $2\times4,$ and $(\mathbf{A}\mathbf{B})^{\top}$ is $4\times2.$ $\mathbf{B}^{\top}\mathbf{A}^{\top}$ is $(4\times3)(3\times2),$ that is $4\times2$ — the same order, as Fact 13.9 requires. $\mathbf{A}^{\top}\mathbf{B}^{\top}$ is $(3\times2)(4\times3){:}$ the inner numbers $2$ and $4$ differ, so it does not exist at all (Watch out 13.10).

  2. Discussion question 2 — the difference of two squares

    Expand $(\mathbf{A}+\mathbf{B})(\mathbf{A}-\mathbf{B})$ for square $\mathbf{A},\mathbf{B}.$ When does it equal $\mathbf{A}^{2}-\mathbf{B}^{2}$?

    One way to think about it

    By the two distributive laws, $$ \begin{aligned} &(\mathbf{A}+\mathbf{B})(\mathbf{A}-\mathbf{B})\\ &=\mathbf{A}^{2}-\mathbf{A}\mathbf{B}+\mathbf{B}\mathbf{A}-\mathbf{B}^{2}\,. \end{aligned} $$ This equals $\mathbf{A}^{2}-\mathbf{B}^{2}$ exactly when $\mathbf{B}\mathbf{A}-\mathbf{A}\mathbf{B}=\mathbf{0},$ that is, when $\mathbf{A}\mathbf{B}=\mathbf{B}\mathbf{A}{:}$ precisely when $\mathbf{A}$ and $\mathbf{B}$ commute. For the pair of the first Common-error box it fails.

  3. Discussion question 3 — counting free columns

    After elimination a system of $4$ equations in $6$ unknowns has two rows of zeros and no inconsistency. How many degrees of freedom does it have?

    One way to think about it

    Four. The two rows of zeros are $0=0$ (there is no inconsistency), so two non-zero rows are left, with one leading entry each. Two of the six columns carry a leading entry and $6-2=4$ do not, and each of those is a degree of freedom (Fact 13.20).

  4. Discussion question 4 — which rule holds for all square matrices

    Which of the following is true for all square $\mathbf{A}$ and $\mathbf{B}$ of the same order?

    (A) $\mathbf{A}\mathbf{B}=\mathbf{0}\Rightarrow \mathbf{A}=\mathbf{0}$ or $\mathbf{B}=\mathbf{0}$;

    (B) $\mathbf{A}\mathbf{B}=\mathbf{A}\mathbf{C}$ and $\mathbf{A}\ne\mathbf{0}$ $\Rightarrow \mathbf{B}=\mathbf{C};$

    (C) $(\mathbf{A}\mathbf{B})^{\top}=\mathbf{B}^{\top}\mathbf{A}^{\top};$

    (D) $(\mathbf{A}+\mathbf{B})^{2} =\mathbf{A}^{2}+2\mathbf{A}\mathbf{B}+\mathbf{B}^{2}.$

    One way to think about it

    (C) only; it is Fact 13.9. The pair of Example 13.6 refutes (A), since $\mathbf{A}\mathbf{B}=\mathbf{0}$ with neither factor zero, and also (B), with $\mathbf{C}=\mathbf{0}.$ (D) needs $\mathbf{A}\mathbf{B}=\mathbf{B}\mathbf{A}$ (Example 13.2), which fails for the same pair: there $\mathbf{B}\mathbf{A}\ne\mathbf{0}.$