Mathematics II · Unit 3 · 5 hrs
Matrix Algebra
Exam-focused notes for Matrix Algebra (Mathematics II, MTH168): what the TU syllabus asks and how it has actually been tested, with 10 solved past questions from this unit.
Matrix Algebra in short
This chapter develops the algebra of matrices themselves, addition, multiplication, inverses, block structure, and factorization, and connects that algebra to two structural ideas, subspaces of $\mathbb{R}^n$ and rank, that measure the "size" of a solution set.
What this unit covers
- Matrix operations
- The inverse of a matrix
- Characterizations of invertible matrices
- Partitioned matrices
- Matrix factorization
- The Leontief input output model
- Subspace of Rn
- Dimension and rank
Partitioned matrices
2080 · 10 marks
Find AB by block multiplication of the matrices.
$$A = \begin{bmatrix} 2 & -3 & -1 & 0 & -4 \ 1 & -5 & -2 & 3 & -1\ 0 & -4 & -2 & 7 & -1 \end{bmatrix}, \quad B = \begin{bmatrix} 6 & 4 \ 2 & -1 \ -3 & 7 \ 1 & 3 \ 5 & -3 \end{bmatrix}$$
[10]
Matrix operations
2080 · 5 marks
Let $A = \begin{bmatrix} 1 & 5 \ -3 & 1 \end{bmatrix}$, $B = \begin{bmatrix} 4 & -5 \ 3 & k \end{bmatrix}$
What value(s) of k, if any, will make AB = BA? [5]
2076 · 5 marks
Let A and B be matrices. Determine the value(s) of k if any will make AB = BA.
$$A = \begin{bmatrix} 2 & 5 \ -3 & 1 \end{bmatrix}, \quad B = \begin{bmatrix} 4 & -5 \ 3 & k \end{bmatrix}$$
[5]
2075 · 5 marks
Let A and B be matrices. What value(s) of k if any will make AB = BA?
$$A = \begin{bmatrix} -1 & -2 \ 5 & 9 \end{bmatrix}, \quad B = \begin{bmatrix} 9 & 2 \ k & -1 \end{bmatrix}$$
[5]
The Leontief input output model
2079 · 10 marks
The economy whose consumption matrix C is and the final demand is 50 units for manufacturing, 30 units for agriculture and 20 units for service. Find the production level x that will satisfy this demand.
$$C = \begin{bmatrix} 0.5 & 0.4 & 0.2 \ 0.2 & 0.3 & 0.1 \ 0.1 & 0.1 & 0.3 \end{bmatrix}$$
[10]
Matrix factorization
2078 · 10 marks
Find the LU factorization of $$\begin{bmatrix} 2 & 4 & -1 & 5 & -2 \ -4 & -5 & 3 & -8 & 1 \ 2 & -5 & -4 & 1 & 8 \ -6 & 0 & 7 & -3 & 1 \end{bmatrix}$$ [10]
2075 · 5 marks
Find LU factorization of the matrix $\begin{bmatrix} 2 & 5 \ 6 & -7 \end{bmatrix}$ [5]
Show solved answerHide answer
LU Factorization
Given
$$A = \begin{bmatrix} 2 & 5 \ 6 & -7 \end{bmatrix}$$
Goal: find $L$ (lower triangular, unit diagonal) and $U$ (upper triangular) such that $A = LU$.
Step 2 - Row Reduction to Get U
Pivot (1,1) = 2. Eliminate entry $a_{21} = 6$.
Multiplier: $$\ell_{21} = \frac{6}{2} = 3$$
Row operation: $R_2 \rightarrow R_2 - 3R_1$
$$\begin{bmatrix} 2 & 5 \ 6 - 3(2) & -7 - 3(5) \end{bmatrix} = \begin{bmatrix} 2 & 5 \ 0 & -22 \end{bmatrix}$$
So: $$U = \begin{bmatrix} 2 & 5 \ 0 & -22 \end{bmatrix}$$
Step 3 - Construct L
Unit diagonal, with the multiplier $\ell_{21} = 3$ below:
$$L = \begin{bmatrix} 1 & 0 \ 3 & 1 \end{bmatrix}$$
Step 4 - Verify $LU = A$
$$ LU = \begin{bmatrix} 1 & 0 \ 3 & 1 \end{bmatrix}\begin{bmatrix} 2 & 5 \ 0 & -22 \end{bmatrix} = \begin{bmatrix} 2 & 5 \ 6 & 15-22 \end{bmatrix} = \begin{bmatrix} 2 & 5 \ 6 & -7 \end{bmatrix} = A \checkmark $$
Result
$$\boxed{A = \begin{bmatrix} 1 & 0 \ 3 & 1 \end{bmatrix}\begin{bmatrix} 2 & 5 \ 0 & -22 \end{bmatrix}}$$
2080.1 · 5 marks
Find LU Factorization. Given the matrix: $$\begin{bmatrix} 2 & 3 & 4 \ 4 & 5 & 10 \ 4 & 8 & 2 \end{bmatrix}$$ [5]
Show solved answerHide answer
LU Factorization
Given Data
$$A = \begin{bmatrix} 2 & 3 & 4 \ 4 & 5 & 10 \ 4 & 8 & 2 \end{bmatrix}$$
Goal: find $L$ (unit lower triangular) and $U$ (upper triangular) with $A = LU$ using Doolittle's method.
Step 1: Eliminate Column 1
Pivot $= 2$.
Multiplier $m_{21} = \frac{4}{2} = 2$: $$R2 \to R2 - 2R1 = [0,\ 5-6,\ 10-8] = [0,\ -1,\ 2]$$
Multiplier $m_{31} = \frac{4}{2} = 2$: $$R3 \to R3 - 2R1 = [0,\ 8-6,\ 2-8] = [0,\ 2,\ -6]$$
$$\begin{bmatrix} 2 & 3 & 4 \ 0 & -1 & 2 \ 0 & 2 & -6 \end{bmatrix}$$
Step 2: Eliminate Column 2
Pivot $= -1$.
Multiplier $m_{32} = \frac{2}{-1} = -2$: $$R3 \to R3 - (-2)R2 = R3 + 2R2 = [0,\ 2-2,\ -6+4] = [0,\ 0,\ -2]$$
$$\begin{bmatrix} 2 & 3 & 4 \ 0 & -1 & 2 \ 0 & 0 & -2 \end{bmatrix}$$
Result
$$U = \begin{bmatrix} 2 & 3 & 4 \ 0 & -1 & 2 \ 0 & 0 & -2 \end{bmatrix}, \qquad L = \begin{bmatrix} 1 & 0 & 0 \ 2 & 1 & 0 \ 2 & -2 & 1 \end{bmatrix}$$
Verification $LU = A$
- Row 1: $[2,\ 3,\ 4]$ ✓
- Row 2: $[2(2),\ 2(3)+(-1),\ 2(4)+2] = [4,\ 5,\ 10]$ ✓
- Row 3: $[2(2),\ 2(3)+(-2)(-1),\ 2(4)+(-2)(2)+(-2)] = [4,\ 8,\ 2]$ ✓
Final Answer
$$\boxed{A = \begin{bmatrix} 1 & 0 & 0 \ 2 & 1 & 0 \ 2 & -2 & 1 \end{bmatrix} \begin{bmatrix} 2 & 3 & 4 \ 0 & -1 & 2 \ 0 & 0 & -2 \end{bmatrix}}$$
The inverse of a matrix
2076 · 10 marks
What is the condition of a matrix to have an inverse? Find the inverse of the matrix if it exists.
$$A = \begin{bmatrix} 5 & 1 & 2 \ 1 & 0 & 3 \ 4 & -3 & 8 \end{bmatrix}$$
[10]
Show solved answerHide answer
Inverse of a Matrix
Given Data
$$A = \begin{bmatrix} 5 & 1 & 2 \ 1 & 0 & 3 \ 4 & -3 & 8 \end{bmatrix}$$
Condition for Invertibility
A square matrix $A$ has an inverse if and only if it is non-singular, i.e. $\det(A) \neq 0$. Then:
$$A^{-1} = \frac{1}{\det(A)},\text{adj}(A)$$
where $\text{adj}(A)$ is the transpose of the cofactor matrix.
Step 1: Determinant
Expanding along the first row:
$$\det(A) = 5\begin{vmatrix}0&3\-3&8\end{vmatrix} - 1\begin{vmatrix}1&3\4&8\end{vmatrix} + 2\begin{vmatrix}1&0\4&-3\end{vmatrix}$$
$$= 5(0+9) - 1(8-12) + 2(-3-0) = 45 + 4 - 6 = 43$$
Since $\det(A) = 43 \neq 0$, the inverse exists.
Step 2: Cofactors
$$C_{11} = +(0\cdot8 - 3\cdot(-3)) = 9$$ $$C_{12} = -(1\cdot8 - 3\cdot4) = -(-4) = 4$$ $$C_{13} = +(1\cdot(-3) - 0\cdot4) = -3$$ $$C_{21} = -(1\cdot8 - 2\cdot(-3)) = -(14) = -14$$ $$C_{22} = +(5\cdot8 - 2\cdot4) = 32$$ $$C_{23} = -(5\cdot(-3) - 1\cdot4) = -(-19) = 19$$ $$C_{31} = +(1\cdot3 - 2\cdot0) = 3$$ $$C_{32} = -(5\cdot3 - 2\cdot1) = -13$$ $$C_{33} = +(5\cdot0 - 1\cdot1) = -1$$
Step 3: Cofactor Matrix
$$C = \begin{bmatrix} 9 & 4 & -3 \ -14 & 32 & 19 \ 3 & -13 & -1 \end{bmatrix}$$
Step 4: Adjugate (transpose of C)
$$\text{adj}(A) = C^T = \begin{bmatrix} 9 & -14 & 3 \ 4 & 32 & -13 \ -3 & 19 & -1 \end{bmatrix}$$
Step 5: Inverse
$$A^{-1} = \frac{1}{43}\begin{bmatrix} 9 & -14 & 3 \ 4 & 32 & -13 \ -3 & 19 & -1 \end{bmatrix}$$
$$\boxed{A^{-1} = \begin{bmatrix} \dfrac{9}{43} & \dfrac{-14}{43} & \dfrac{3}{43} \[6pt] \dfrac{4}{43} & \dfrac{32}{43} & \dfrac{-13}{43} \[6pt] \dfrac{-3}{43} & \dfrac{19}{43} & \dfrac{-1}{43} \end{bmatrix}}$$
Verification (spot check)
Row 1 of $A$ times column 1 of $A^{-1}$: $$5\cdot\tfrac{9}{43} + 1\cdot\tfrac{4}{43} + 2\cdot\tfrac{-3}{43} = \tfrac{45+4-6}{43} = \tfrac{43}{43} = 1 \checkmark$$
Row 2 times column 2: $$1\cdot\tfrac{-14}{43} + 0\cdot\tfrac{32}{43} + 3\cdot\tfrac{19}{43} = \tfrac{-14+57}{43} = \tfrac{43}{43} = 1 \checkmark$$
The result is confirmed.
2075 · 10 marks
What is the condition of a matrix to have an inverse? Find the inverse of the matrix $A = \begin{bmatrix} 5 & 1 & 2 \ 1 & 0 & 3 \ 4 & -3 & 8 \end{bmatrix}$ [10]
Show solved answerHide answer
Inverse of a Matrix
Given
$$A = \begin{bmatrix} 5 & 1 & 2 \ 1 & 0 & 3 \ 4 & -3 & 8 \end{bmatrix}$$
Required: (a) condition for existence of inverse, (b) find $A^{-1}$.
Solution
Condition for a Matrix to Have an Inverse
A square matrix $A$ of order $n \times n$ has an inverse if and only if it is non-singular, that is:
$$\det(A) \neq 0$$
If $\det(A) = 0$, $A$ is singular and $A^{-1}$ does not exist. The inverse is given by:
$$A^{-1} = \frac{1}{\det(A)} , \text{adj}(A)$$
Step 1: Determinant
Expanding along the first row:
$$\det(A) = 5\begin{vmatrix} 0 & 3 \ -3 & 8 \end{vmatrix} - 1\begin{vmatrix} 1 & 3 \ 4 & 8 \end{vmatrix} + 2\begin{vmatrix} 1 & 0 \ 4 & -3 \end{vmatrix}$$
$$= 5(0 + 9) - 1(8 - 12) + 2(-3 - 0)$$
$$= 45 + 4 - 6 = 43$$
$$\det(A) = 43 \neq 0 \implies A^{-1} \text{ exists.}$$
Step 2: Cofactors
$$C_{11} = +\begin{vmatrix} 0 & 3 \ -3 & 8 \end{vmatrix} = 9$$ $$C_{12} = -\begin{vmatrix} 1 & 3 \ 4 & 8 \end{vmatrix} = -(8-12) = 4$$ $$C_{13} = +\begin{vmatrix} 1 & 0 \ 4 & -3 \end{vmatrix} = -3$$
$$C_{21} = -\begin{vmatrix} 1 & 2 \ -3 & 8 \end{vmatrix} = -(8+6) = -14$$ $$C_{22} = +\begin{vmatrix} 5 & 2 \ 4 & 8 \end{vmatrix} = 40-8 = 32$$ $$C_{23} = -\begin{vmatrix} 5 & 1 \ 4 & -3 \end{vmatrix} = -(-15-4) = 19$$
$$C_{31} = +\begin{vmatrix} 1 & 2 \ 0 & 3 \end{vmatrix} = 3$$ $$C_{32} = -\begin{vmatrix} 5 & 2 \ 1 & 3 \end{vmatrix} = -(15-2) = -13$$ $$C_{33} = +\begin{vmatrix} 5 & 1 \ 1 & 0 \end{vmatrix} = -1$$
Step 3: Cofactor Matrix
$$C = \begin{bmatrix} 9 & 4 & -3 \ -14 & 32 & 19 \ 3 & -13 & -1 \end{bmatrix}$$
Step 4: Adjoint (transpose of C)
$$\text{adj}(A) = \begin{bmatrix} 9 & -14 & 3 \ 4 & 32 & -13 \ -3 & 19 & -1 \end{bmatrix}$$
Step 5: Inverse
$$A^{-1} = \frac{1}{43}\begin{bmatrix} 9 & -14 & 3 \ 4 & 32 & -13 \ -3 & 19 & -1 \end{bmatrix}$$
$$A^{-1} = \begin{bmatrix} \dfrac{9}{43} & \dfrac{-14}{43} & \dfrac{3}{43} \[6pt] \dfrac{4}{43} & \dfrac{32}{43} & \dfrac{-13}{43} \[6pt] \dfrac{-3}{43} & \dfrac{19}{43} & \dfrac{-1}{43} \end{bmatrix}$$
Verification (first entry of $A A^{-1}$)
Row 1 of $A$ times column 1 of $\text{adj}(A)$: $$5(9) + 1(4) + 2(-3) = 45 + 4 - 6 = 43 = \det(A) ;\checkmark$$
Dividing by 43 gives $1$, confirming the diagonal entry. The inverse is correct.
Make Unit 3 stick
Practice MTH168 with flashcards & quizzes