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.

← 13
Lecture 14 Determinants and the inverse
15 →
14 Matrices

Determinants and the inverse

Some square systems have exactly one solution and some do not. Can we tell which, from the coefficients alone, without solving? And is there, after all, a matrix that plays the part of $1/a$?

Lecture 13 left two things unfinished. Gaussian elimination solves $\mathbf{A}\mathbf{x}=\mathbf{b}$ without ever dividing by $\mathbf{A}$, and along the way it reveals that whether a square system has exactly one solution depends on $\mathbf{A}$ and not on $\mathbf{b}$. And the three rules of ordinary algebra that failed all failed for the same reason: some non-zero matrices cannot be divided by.

Both loose ends are tied by a single number computed from $\mathbf{A}$, its determinant. It decides whether the square system has a unique solution, and it decides whether $\mathbf{A}$ has an inverse — a matrix that plays the part of $1/a$. Determinants are defined only for square matrices, and only square matrices have inverses: shape first, as throughout this block.

⏱ 60 min read§ 6 sections

After this lecture you can

  • compute a determinant of order 2 and of order 3, expanding along the row or column with the most zeros and giving each term its sign $(-1)^{i+j}$
  • find every value of a parameter for which a square matrix is singular, factoring the polynomial that its determinant gives — all of its roots, not one
  • solve a square system by Cramer's rule, and say what $|\mathbf{A}|=0$ does and does not tell you about the number of solutions
  • decide whether a matrix has an inverse — square first, then $|\mathbf{A}|\ne0$ — invert one of order 2, and check it with one product
  • use $|\mathbf{A}\mathbf{B}|=|\mathbf{A}||\mathbf{B}|$ and the rules for the inverse, and solve $\mathbf{A}\mathbf{X}=\mathbf{B}$ and $\mathbf{Y}\mathbf{A}=\mathbf{B}$ by multiplying on the correct side
1

Determinants of order 2

For which values of $t$ do the equations $tx+2y=1$ and $2x+ty=3$ fail to have exactly one solution — and can one number tell, without solving?

Solve two equations in two unknowns by elimination, $$ \begin{aligned} a_{11}x_{1}+a_{12}x_{2} &= b_{1}\\ a_{21}x_{1}+a_{22}x_{2} &= b_{2}\,, \end{aligned} $$ and both unknowns come out over the same denominator $a_{11}a_{22}-a_{21}a_{12}.$ That denominator is worth a name.

The product down the main diagonal, minus the product up the other one. (Order is the word of Lecture 12: a square matrix with $2$ rows and $2$ columns has order $2.$)

Example 14.2

Three determinants of order 2

Compute $\begin{vmatrix} 3 & 0\\ 2 & 6\end{vmatrix},$ $\begin{vmatrix} a & b\\ b & a\end{vmatrix}$ and $\begin{vmatrix} 3 & 1\\ 6 & 2\end{vmatrix}.$

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

The question below is the one in the hook. Write $|\mathbf{A}|$ as a function of $t$ before you choose; you do not need to solve the system.

Check yourself

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

For which values of $t$ does $$\begin{aligned} t\,x + 2y &= 1\\ 2x + t\,y &= 3\end{aligned}$$ fail to have exactly one solution?

Both unknowns came out over the denominator $|\mathbf{A}|.$ The numerators are determinants too, and when $|\mathbf{A}|\ne0$ they give the solution as a formula — Cramer's rule.

Fact 14.4Cramer's rule, order 2#

Write $\mathbf{A}_{j}$ for the matrix $\mathbf{A}$ with its $j$th column replaced by $\mathbf{b}$. If $|\mathbf{A}|\ne0$, the system $\mathbf{A}\mathbf{x}=\mathbf{b}$ has exactly one solution, namely $$ \begin{aligned} x_{1}&=\frac{|\mathbf{A}_{1}|}{|\mathbf{A}|} =\frac{\begin{vmatrix} b_{1} & a_{12}\\ b_{2} & a_{22}\end{vmatrix}} {|\mathbf{A}|}\,, \\ x_{2}&=\frac{|\mathbf{A}_{2}|}{|\mathbf{A}|} =\frac{\begin{vmatrix} a_{11} & b_{1}\\ a_{21} & b_{2}\end{vmatrix}} {|\mathbf{A}|}\,. \end{aligned} $$

Example 14.5

Cramer's rule on two equations

Solve $2x_{1}+3x_{2}=8$, $x_{1}-x_{2}=-1$.

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

If $|\mathbf{A}|=0$ the two expressions are meaningless, and correctly so: the two equations then describe parallel lines, which either never meet (no solution) or coincide (infinitely many). This is Fact 13.20 again, now decided by a single number.

Left, the rows $(3,1)$ and $(1,2)$ span a parallelogram of area $|\mathbf{A}|=3\cdot2-1\cdot1=5.$ Right, the rows $(2,1)$ and $(4,2)$ lie on one line: the parallelogram is flat and $|\mathbf{A}|=2\cdot2-4\cdot1=0.$

What the number measures. Draw the two rows of $\mathbf{A}$ as vectors in the plane. They span a parallelogram, and its area is $\bigl||\mathbf{A}|\bigr|;$ interchanging the rows reverses the sign. So $|\mathbf{A}|=0$ says the parallelogram is flat — the two rows lie along one line, and the second equation adds nothing independent of the first. That is the geometric content of degeneracy, and it is why one number can detect it.

Try it yourself

|A| as an area — and the moment it vanishes

The two rows of $\mathbf{A}$ as arrows, the parallelogram they span, and $|\mathbf{A}|$ computed as you move them.

  1. Drag the arrowhead of row 2 slowly towards row 1. The number shrinks with the parallelogram, and it reads $0$ at the moment the two arrows line up.
  2. Press Swap the rows. The parallelogram does not move and its area does not change, but $|\mathbf{A}|$ changes sign. That is what "signed area" means.
  3. Press Sweep row 2 round and watch the read-out: the determinant passes through $0$ twice per turn, once in each direction. Nothing dramatic happens to the arithmetic at $0;$ what becomes impossible is a division.
Check yourself

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

Solve $2x_{1}+x_{2}=4,$ $3x_{1}+4x_{2}=11$ by Cramer's rule. What is $x_{2}?$

2

Determinants of order 3

Three equations, three unknowns, one common denominator of six terms. Who remembers six terms? Nobody — so how is it computed?

The same elimination performed on three equations in three unknowns again produces one common denominator, of six terms.

Nobody remembers that. Grouping the three terms containing each entry of the first row turns it into three determinants of order $2,$ and that is how it is computed.

Method 14.7 on the matrix of Example 14.8: each entry of the first row times what is left when its own row and column are struck out, with the signs $+,-,+.$

The same value is obtained by expanding along any row or any column, with the sign of the $(i,j)$ term equal to $(-1)^{i+j}.$ Expanding along a row or column containing zeros is therefore much the cheapest route, and is worth looking for before starting.

The signs make a chequerboard, starting with $+$ in the top left corner: $$ \begin{matrix} + & - & + \\ - & + & - \\ + & - & + \end{matrix} $$

Example 14.8

Expanding along the first row

Compute $\begin{vmatrix} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 10\end{vmatrix}$ by Method 14.7.

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.

$$\begin{vmatrix} 2 & 5 & 3\\ 1 & 0 & 4\\ -1 & 0 & 2\end{vmatrix}$$

Expand along the second column. What is the determinant?

The question above, worked: column $2$ is $(5,0,0),$ so only the $5$ survives, and it sits on a minus square of the chequerboard. Two zeros in a column are a saving, not a verdict.
Check yourself

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

$$ \begin{vmatrix} 1 & 0 & 2\\ 3 & 0 & 1\\ 4 & 5 & 6\end{vmatrix}=\;? $$
3

Cramer's rule of order 3, and the determinant of a product

Does Cramer's rule survive one dimension up — and is the determinant of a product the product of the determinants? Of a sum the sum?

Fact 14.11Cramer's rule, order 3#

With $\mathbf{A}_{j}$ again denoting $\mathbf{A}$ with column $j$ replaced by $\mathbf{b}$: if $|\mathbf{A}|\ne0$ then $\mathbf{A}\mathbf{x}=\mathbf{b}$ has exactly one solution, and $$ x_{j}=\frac{|\mathbf{A}_{j}|}{|\mathbf{A}|}\,,\qquad j=1,2,3\,. $$

Example 14.12

Cramer's rule on three equations

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

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

Geometrically the story repeats one dimension up: the three rows of $\mathbf{A}$ span a parallelepiped, and $\bigl||\mathbf{A}|\bigr|$ is its volume. A zero determinant means the solid is flat, i.e. the three rows lie in a common plane.

Fact 14.13The determinant of a product#

For square matrices $\mathbf{A},\mathbf{B}$ of the same order, $$ \begin{aligned} |\mathbf{A}\mathbf{B}| &= |\mathbf{A}|\cdot|\mathbf{B}|\,, \\ |\mathbf{A}^{\top}| &= |\mathbf{A}|\,, \\ |\mathbf{I}_{n}| &= 1\,. \end{aligned} $$

Here $\mathbf{A}^{\top}$ is the transpose and $\mathbf{I}_{n}$ the identity matrix of order $n,$ both from Lecture 13. The Fact is stated without proof; it is the one property of determinants beyond the definition that the rest of the lecture uses.

Determinants have further properties, but they are not part of this course, and nothing below depends on them.

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 matrix of order $3$ with $|\mathbf{A}|=2.$ What is $|3\mathbf{A}|?$

4

The inverse, and when it exists

A $3\times4$ matrix: does it have an inverse if its determinant is not zero?

For a non-zero number $a$ there is a unique $a^{-1}$ with $aa^{-1}=a^{-1}a=1.$ Lecture 13 produced the matrix standing for $1$ — the identity matrix $\mathbf{I}_{n}$ — and we now ask for the reciprocal.

Guess first. Before reading on, answer the question below. Check the orders of the products $\mathbf{A}\mathbf{X}$ and $\mathbf{X}\mathbf{A}$ — that is all it takes.

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 $3 \times 4$ matrix.

Which of these is true?

The two products $\mathbf{A}\mathbf{X}$ and $\mathbf{X}\mathbf{A}$ are both defined and both equal to $\mathbf{I}$ only if $\mathbf{A}$ and $\mathbf{X}$ are square of the same order. Only square matrices can have inverses, and the definition is symmetric: $\mathbf{A}$ and $\mathbf{X}$ are inverses of each other.

Fact 14.16#

A matrix has at most one inverse.

The inverse of $\mathbf{A},$ when it exists, is written $\mathbf{A}^{-1}.$

Fact 14.18The criterion#

A square matrix $\mathbf{A}$ has an inverse if and only if $|\mathbf{A}|\ne0$. A square matrix is called singular when $|\mathbf{A}|=0$ and non-singular when $|\mathbf{A}|\ne0$; so invertible and non-singular mean the same thing.

Example 14.19

The matrix that could not be divided by

$\mathbf{A}=\begin{pmatrix} 3 & 1\\ 6 & 2\end{pmatrix}$ has $|\mathbf{A}|=0$ and therefore no inverse.

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

Example

Which values of a make the matrix singular?

This example is the app's. For which values of $a$ is $$ \mathbf{A}=\begin{pmatrix} a & 1 & 1\\ 3 & a & 1\\ 3 & 1 & a\end{pmatrix} $$ not invertible?

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

5

The inverse of order 2, and its rules

Swap, negate, divide — and to undo $\mathbf{A}\mathbf{B},$ which do you undo first?

Fact 14.20The inverse of order 2#

If $|\mathbf{A}|=ad-bc\ne0$, then $$ \begin{aligned} &\mathbf{A}=\begin{pmatrix} a & b\\ c & d\end{pmatrix} \quad\Longrightarrow\quad \\ &\mathbf{A}^{-1}=\frac{1}{ad-bc} \begin{pmatrix} d & -b\\ -c & a\end{pmatrix}\,. \end{aligned} $$ Swap the diagonal entries, change the sign of the other two, divide by the determinant.

Example

Inverting a matrix of order 2, and the check

This example is the app's. Find the inverse of $\mathbf{A}=\begin{pmatrix} 5 & 2\\ 4 & 2\end{pmatrix}.$

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.

What is the inverse of $\mathbf{A}=\begin{pmatrix} 2 & 3\\ 4 & 5\end{pmatrix}?$

Fact 14.21One side is enough#

For square $\mathbf{A}$ and $\mathbf{X}$ of the same order, $$ \begin{aligned} &\mathbf{A}\mathbf{X}=\mathbf{I} \;\Longleftrightarrow\; \mathbf{X}=\mathbf{A}^{-1}\\ &\;\Longleftrightarrow\; \mathbf{X}\mathbf{A}=\mathbf{I}\,. \end{aligned} $$

So to verify a proposed inverse one product suffices — but only for square matrices of the same order, which is where the hypothesis does its work.

Guess first. The rules for the inverse come next. Before reading them, answer the question below; write the product out if you are unsure.

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 invertible, of the same order.

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

Fact 14.22Properties of the inverse#

Let $\mathbf{A},\mathbf{B}$ be invertible of order $n$ and $c\ne0$ a scalar. Then $\mathbf{A}^{-1}$, $\mathbf{A}\mathbf{B}$, $\mathbf{A}^{\top}$ and $c\mathbf{A}$ are all invertible, and $$ \begin{aligned} (\mathbf{A}^{-1})^{-1}&=\mathbf{A}\,,\\ (\mathbf{A}\mathbf{B})^{-1}&=\mathbf{B}^{-1}\mathbf{A}^{-1}\,,\\ (\mathbf{A}^{\top})^{-1}&=(\mathbf{A}^{-1})^{\top}\,,\\ (c\mathbf{A})^{-1}&=c^{-1}\mathbf{A}^{-1}\,. \end{aligned} $$

A symmetric invertible matrix has a symmetric inverse: if $\mathbf{A}^{\top}=\mathbf{A}$ then $(\mathbf{A}^{-1})^{\top}=(\mathbf{A}^{\top})^{-1}=\mathbf{A}^{-1}.$

6

Solving the system with the inverse

With $\mathbf{A}^{-1}$ in hand, what does a second, third or hundredth right-hand side cost?

Fact 14.24#

Let $\mathbf{A}$ be of order $n$ with $|\mathbf{A}|\ne0$. Then $$ \begin{aligned} &\mathbf{A}\mathbf{X}=\mathbf{B} \iff \mathbf{X}=\mathbf{A}^{-1}\mathbf{B} \\ &\quad(\mathbf{B}\text{ with }n\text{ rows})\,, \\ &\mathbf{Y}\mathbf{A}=\mathbf{B} \iff \mathbf{Y}=\mathbf{B}\mathbf{A}^{-1} \\ &\quad(\mathbf{B}\text{ with }n\text{ columns})\,. \end{aligned} $$ In particular $\mathbf{A}\mathbf{x}=\mathbf{b}$ has the unique solution $\mathbf{x}=\mathbf{A}^{-1}\mathbf{b}$, for every right-hand side $\mathbf{b}$.

Example 14.25

Solving with the inverse

Solve $3x+2y=7$, $x+y=3$.

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{A}$ is invertible of order $n,$ and $\mathbf{B}$ has $n$ columns. Which $\mathbf{Y}$ solves $\mathbf{Y}\mathbf{A}=\mathbf{B}?$

For order $3$ and above, solutions are computed by elimination (Lecture 13) or by Cramer's rule rather than by inverting. The inverse itself, for any order, is found by row operations in Lecture 15; a closed formula for it exists, but it is not part of the course.

Four things met separately in this block now turn out to be one thing.

Fact 14.26What it all comes to#

For a square matrix $\mathbf{A}$ of order $n$, the following say the same thing:

  1. $|\mathbf{A}|\ne0$;
  2. $\mathbf{A}$ has an inverse;
  3. $\mathbf{A}\mathbf{x}=\mathbf{b}$ has exactly one solution for every $\mathbf{b}\in{\mathbb R}^{n}$;
  4. Gaussian elimination on $\mathbf{A}$ produces a leading entry in every column.

Guess first. Statement (1) fails exactly when $|\mathbf{A}|=0.$ Before reading the Watch out below, decide what that says about the number of solutions.

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 square and $|\mathbf{A}| = 0$.

What follows about $\mathbf{Ax} = \mathbf{b}$?

Example 13.18 and Watch out 13.19 side by side: the same singular $\mathbf{A},$ two right-hand sides. Left, the last row is $0=0$ and there are infinitely many solutions; right, it is $0=3$ and there are none.
Fact 14.26 as a picture: four ways of saying one thing about a square $\mathbf{A}.$ Negate them and you get “not exactly one”, not “none”.

What you should take away

  • Only square matrices have determinants. For order $2$, $|\mathbf{A}|=a_{11}a_{22}-a_{21}a_{12}$; for order $3$, expand along the first row into three determinants of order $2$, with signs $+,-,+$. Sarrus' rule is an alternative for order $3$ only.
  • Expansion works along any row or column, with sign $(-1)^{i+j}$; choose one with zeros in it.
  • Cramer's rule: if $|\mathbf{A}|\ne0$ then $x_{j}=|\mathbf{A}_{j}|/ |\mathbf{A}|$, where $\mathbf{A}_{j}$ is $\mathbf{A}$ with column $j$ replaced by $\mathbf{b}$. Useful as a formula, not as a method.
  • $|\mathbf{A}\mathbf{B}|=|\mathbf{A}||\mathbf{B}|$, $|\mathbf{A}^{\top}|= |\mathbf{A}|$, $|\mathbf{I}|=1$ and $|\alpha\mathbf{A}|=\alpha^{n}|\mathbf{A}|$; but $|\mathbf{A}+\mathbf{B}|\ne|\mathbf{A}|+|\mathbf{B}|$.
  • $\mathbf{X}$ is the inverse of $\mathbf{A}$ if $\mathbf{A}\mathbf{X}=\mathbf{X}\mathbf{A}=\mathbf{I}$. It is unique, only square matrices have one, and $\mathbf{A}$ has one if and only if $|\mathbf{A}|\ne0$.
  • For order $2$, $\mathbf{A}^{-1}=\frac{1}{ad-bc} \left(\begin{smallmatrix} d & -b\\ -c & a\end{smallmatrix}\right)$.
  • $(\mathbf{A}^{-1})^{-1}=\mathbf{A}$, $(\mathbf{A}\mathbf{B})^{-1}= \mathbf{B}^{-1}\mathbf{A}^{-1}$ — the order reverses — $(\mathbf{A}^{\top})^{-1}=(\mathbf{A}^{-1})^{\top}$, $(c\mathbf{A})^{-1}=c^{-1} \mathbf{A}^{-1}$.
  • If $|\mathbf{A}|\ne0$ then $\mathbf{A}\mathbf{x}=\mathbf{b}$ has the unique solution $\mathbf{x}=\mathbf{A}^{-1}\mathbf{b}$. There is no division by a matrix: multiply by the inverse, and say on which side.

Think further

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

  1. Discussion question 1 — the determinant of a 2 × 3 matrix

    $\mathbf{A}$ is $2\times3$. What is $|\mathbf{A}|$?

    One way to think about it

    There is none. A determinant is defined only for a square matrix (Watch out 14.3); for a $2\times3$ matrix $|\mathbf{A}|$ is not a number that happens to be $0,$ it is meaningless. For the same reason $\mathbf{A}$ has no inverse: $\mathbf{A}\mathbf{X}$ would be $2\times2$ and $\mathbf{X}\mathbf{A}$ would be $3\times3,$ so they cannot both be the same identity matrix. Shape first.

  2. Discussion question 2 — four determinants, three of them known

    $|\mathbf{A}|=3$ and $|\mathbf{B}|=-4$, both of order $3$. Which of $|\mathbf{A}\mathbf{B}|$, $|2\mathbf{A}|$, $|\mathbf{A}+\mathbf{B}|$, $|\mathbf{A}^{-1}|$ can you determine?

    One way to think about it

    Three of the four. By Fact 14.13 $|\mathbf{A}\mathbf{B}|=3\cdot(-4)=-12.$ By Watch out 14.14 $|2\mathbf{A}|=2^{3}\cdot3=24.$ And $\mathbf{A}\mathbf{A}^{-1}=\mathbf{I}$ gives $|\mathbf{A}|\cdot|\mathbf{A}^{-1}|=1,$ so $|\mathbf{A}^{-1}|=\tfrac13.$

    $|\mathbf{A}+\mathbf{B}|$ cannot be determined: the determinant does not respect sums. For instance $\mathbf{A}=\operatorname{diag}(3,1,1)$ with $\mathbf{B}=\operatorname{diag}(-4,1,1)$ gives $|\mathbf{A}+\mathbf{B}|=-1\cdot2\cdot2=-4,$ while $\mathbf{B}=\operatorname{diag}(1,-4,1)$ gives $|\mathbf{A}+\mathbf{B}|=4\cdot(-3)\cdot2=-24;$ both have $|\mathbf{B}|=-4.$ (Here $\operatorname{diag}(p,q,r)$ is the matrix with $p,$ $q,$ $r$ on the diagonal and zeros elsewhere.)

  3. Discussion question 3 — a zero determinant and the number of solutions

    A square system has $|\mathbf{A}|=0$. What can be said about the number of its solutions?

    One way to think about it

    Only that it is not exactly one: there are either none or infinitely many (Fact 14.26 and Fact 13.20). Which of the two depends on $\mathbf{b},$ and elimination decides it: a last row $0=c$ with $c\ne0$ means none, $0=0$ means infinitely many (Watch out 14.27). One case is certain in advance: if $\mathbf{b}=\mathbf{0},$ then $\mathbf{x}=\mathbf{0}$ is a solution, so there are infinitely many.

  4. Discussion question 4 — which rule for the inverse is true

    Which of the following holds for all invertible square $\mathbf{A}$, $\mathbf{B}$ of the same order?

    (A) $(\mathbf{A}\mathbf{B})^{-1}=\mathbf{A}^{-1}\mathbf{B}^{-1}$;

    (B) $(\mathbf{A}+\mathbf{B})^{-1}=\mathbf{A}^{-1}+\mathbf{B}^{-1}$;

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

    (D) $|\mathbf{A}^{-1}|=-|\mathbf{A}|$.

    One way to think about it

    (C) only; it is part of Fact 14.22.

    (A) keeps the order; the inverse of a product reverses it, $\mathbf{B}^{-1}\mathbf{A}^{-1}$ (Watch out 14.23).

    (B) fails already for $\mathbf{A}=\mathbf{B}=\mathbf{I}_{2}{:}$ $(2\mathbf{I}_{2})^{-1}=\tfrac12\mathbf{I}_{2},$ while $\mathbf{I}_{2}+\mathbf{I}_{2}=2\mathbf{I}_{2}.$ And $\mathbf{A}+\mathbf{B}$ need not be invertible at all: take $\mathbf{B}=-\mathbf{A}.$

    (D) confuses the inverse with a negative. From $|\mathbf{A}|\cdot|\mathbf{A}^{-1}|=|\mathbf{I}|=1$ we get $|\mathbf{A}^{-1}|=1/|\mathbf{A}|.$