Module A - Complete - Small file

Table of contents

  1. Introduction to Matrices

  2. Matrix Multiplication

  3. Systems of Linear Equations

  4. Reduced Row Echelon Form

  5. Elementary Row Operations

  6. RREF of an Augmented Matrix

  7. Gaussian Elimination and Gauss-Jordan Elimination

  8. Rank and Nullity

  9. Checking if No Solutions Exist

  10. Properties of Rank and Nullity

  11. Examples

  12. Matrix Inverses 13.1 When is a matrix invertible?

  13. How to Compute the Inverse of a Matrix

  14. Invertible Matrix Theorem

  15. Properties of matrix inverses

  16. Matrix Transpose

  17. Properties of Matrix Transposes

  18. Triangular Matrices

  19. Using LU Decomposition to Solve Linear Systems

  20. Elementary Row Matrices

  21. Computing LU Decomposition

  22. PLU Decomposition

  23. Explanation of Method for Finding the LU Decomposition

1. Introduction to Matrices

1.1 Matrix definition, notation, and terminology

A matrix is a rectangular array of numbers, defined by its dimensions and the values of its entries. These entries are typically real numbers, and the matrix itself can be denoted in various ways to specify its size and individual elements.

  • Matrix definition: A matrix is a rectangular array of numbers.

  • Matrix size: A matrix with 𝑚 rows and 𝑛 columns is described as an 𝑚× 𝑛 matrix.

  • Matrix notation: A matrix can be represented as [ai,j]m,n[a_{i,j}]_{m,n} or simply [ai,j][a_{i,j}], where ai,ja_{i,j} is the entry in the ii-th row and jj-th column.

  • Matrix entry: The element ai,ja_{i,j} is called the (i,j)(i,j)-entry of the matrix.

  • Index: The pair (i,j)(i, j) is referred to as the index of the entry ai,ja_{i,j} 4.

  • Index notation: Commas in indices are typically omitted when ii and jj are single digits less than 10 (e.g., a14=a1,4a_{14} = a_{1,4}). A comma is necessary if a matrix has ten or more rows or columns.

  • Explicit matrix: The matrix A:=[i−j2]2,3A:= [i-j^2]_{2,3} can be written out explicitly as [0−3−81−2−7]\begin{bmatrix} 0 & -3 & -8 \\ 1 & -2 & -7 \end{bmatrix}.

  • Set of matrices: The set of all m×nm \times n matrices with real entries is denoted by Rm×n\mathbb{R}^{m \times n} 5.

1.2 Row and column vectors

Vectors are special types of matrices that have only one row or one column. These are fundamental building blocks in linear algebra, with scalars representing single numerical values.

  • Row vector: A matrix with only one row is called a row vector; it has dimensions 1×n1 \times n.

  • Column vector: A matrix with only one column is called a column vector; it has dimensions m×1m \times 1.

  • Scalar: A single real number is called a scalar.

  • Scalar as matrix: A scalar can be considered a 1×11 \times 1 matrix 6.

📝 [1004]+[0230]=[1234]\begin{bmatrix} 1 & 0 \\ 0 & 4 \end{bmatrix} + \begin{bmatrix} 0 & 2 \\ 3 & 0 \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} 7

1.3 Matrix addition

Matrix addition involves combining two matrices of the same dimensions by adding their corresponding elements. This operation is element-wise.

  • Matrix addition definition: For two m×nm \times n matrices A=[aij]A = [a_{ij}] and B=[bij]B = [b_{ij}], their sum is A+B=[aij+bij]A+B = [a_{ij} + b_{ij}].

  • Example of matrix addition: [1004]+[0230]=[1+00+20+34+0]=[1234]\begin{bmatrix} 1 & 0 \\ 0 & 4 \end{bmatrix} + \begin{bmatrix} 0 & 2 \\ 3 & 0 \end{bmatrix} = \begin{bmatrix} 1+0 & 0+2 \\ 0+3 & 4+0 \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} 7.

1.4 Scalar multiplication

Scalar multiplication involves multiplying every element of a matrix by a single scalar value. This operation scales the entire matrix.

  • Scalar multiplication definition: Given a matrix A=[aij]A = [a_{ij}] and a scalar r∈Rr \in \mathbb{R}, the scalar product is rA=[raij]rA = [ra_{ij}].

  • Example of scalar multiplication: For A=[1234]A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}, 5A=5[1234]=[5×15×25×35×4]=[5101520]5A = 5 \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 5 \times 1 & 5 \times 2 \\ 5 \times 3 & 5 \times 4 \end{bmatrix} = \begin{bmatrix} 5 & 10 \\ 15 & 20 \end{bmatrix}.

  • Activity 1 calculation: 2[15]−[37]=[210]+[−3−7]=[−13]2 \begin{bmatrix} 1 & 5 \end{bmatrix} - \begin{bmatrix} 3 & 7 \end{bmatrix} = \begin{bmatrix} 2 & 10 \end{bmatrix} + \begin{bmatrix} -3 & -7 \end{bmatrix} = \begin{bmatrix} -1 & 3 \end{bmatrix} 8.

1.5 Properties of matrix operations 9

Matrix addition and scalar multiplication follow several fundamental properties that are analogous to those of real numbers. These properties are crucial for simplifying matrix expressions.

Property

Description

Commutative (Addition)

A + B = B + A

Associative (Addition)

A + (B + C) = (A + B) + C

Distributive (Scalar)

r(A + B) = rA + rB

2. Matrix Multiplication

2.1 Row vector-column vector multiplication

Matrix multiplication is built upon the operation of multiplying a row vector by a column vector. This operation requires both vectors to have the same number of entries.

The result of this multiplication is a scalar value 10.

  • Row vector-column vector multiplication: A row vector [x1 x2 … xn][x_1 \ x_2 \ \dots \ x_n] multiplied by a column vector [y1y2⋮yn]\begin{bmatrix} y_1 \\ y_2 \\ \vdots \\ y_n \end{bmatrix} results in the sum of the products of their corresponding entries: ∑i=1nxiyi\sum_{i=1}^{n} x_i y_i 10.

📝 Compute the following vector multiplication: [1 2 3][−270]=1(−2)+2(7)+3(0)=−2+14=12[1 \ 2 \ 3] \begin{bmatrix} -2 \\ 7 \\ 0 \end{bmatrix} = 1(-2) + 2(7) + 3(0) = -2 + 14 = 12 11.

2.2 Matrix-vector multiplication

When the left matrix in a multiplication is not a row vector, the multiplication proceeds by multiplying each row of the matrix by the column vector. This extends the concept of row vector-column vector multiplication to a matrix context 13.

  • To compute matrix-vector multiplication, each row of the matrix is treated as a row vector and multiplied by the column vector 13.

📝 Compute the following matrix-vector multiplication: [4−85021][11/210]=[4(1)+(−8)(1/2)+5(10)0(1)+2(1/2)+1(10)]=[5011]\begin{bmatrix} 4 & -8 & 5 \\ 0 & 2 & 1 \end{bmatrix} \begin{bmatrix} 1 \\ 1/2 \\ 10 \end{bmatrix} = \begin{bmatrix} 4(1) + (-8)(1/2) + 5(10) \\ 0(1) + 2(1/2) + 1(10) \end{bmatrix} = \begin{bmatrix} 50 \\ 11 \end{bmatrix} 13.

2.3 Matrix-matrix multiplication

Matrix-matrix multiplication involves multiplying matrices where the right operand is not a column vector. This process can be understood by considering the multiplication of each row of the first matrix with each column of the second matrix 14.

  • The multiplication of two matrices, AA and BB, is performed by computing the dot product of each row of AA with each column of BB.

  • The resulting matrix will have dimensions determined by the number of rows in the first matrix and the number of columns in the second matrix 14.

📝 Let A=[01−1]A = \begin{bmatrix} 0 & 1 & -1 \end{bmatrix} and B=[3106−1]B = \begin{bmatrix} 3 & 10 \\ 6 & -1 \end{bmatrix}. Calculate ABAB. AB=[01−1][3106−1]=[(0)(3)+(1)(6)+(−1)(?)(0)(10)+(1)(−1)+(−1)(?)(1)(3)+(−1)(6)(1)(10)+(−1)(−1)]AB = \begin{bmatrix} 0 & 1 & -1 \end{bmatrix} \begin{bmatrix} 3 & 10 \\ 6 & -1 \end{bmatrix} = \begin{bmatrix} (0)(3) + (1)(6) + (-1)(?) & (0)(10) + (1)(-1) + (-1)(?) \\ (1)(3) + (-1)(6) & (1)(10) + (-1)(-1) \end{bmatrix} Let A=[5−10−236]A = \begin{bmatrix} 5 & -1 & 0 \\ -2 & 3 & 6 \end{bmatrix} and B=[1−30140]B = \begin{bmatrix} 1 & -3 \\ 0 & 1 \\ 4 & 0 \end{bmatrix}. AB=[5(1)+(−1)(0)+0(4)5(−3)+(−1)(1)+0(0)−2(1)+3(0)+6(4)−2(−3)+3(1)+6(0)]=[5−16229]AB = \begin{bmatrix} 5(1) + (-1)(0) + 0(4) & 5(-3) + (-1)(1) + 0(0) \\ -2(1) + 3(0) + 6(4) & -2(-3) + 3(1) + 6(0) \end{bmatrix} = \begin{bmatrix} 5 & -16 \\ 22 & 9 \end{bmatrix} 16.

  • Matrix multiplication is not commutative, meaning that ABAB is generally not equal to BABA 15.

2.4 Conditions for matrix multiplication

The possibility of multiplying two matrices, AA and BB, depends on their dimensions. Specifically, the number of columns in the first matrix (AA) must equal the number of rows in the second matrix (BB) 17.

Matrix A

Matrix B

Result C

Defined?

m x n

n x p

m x p

Yes

m x n

p x q

—

No (if n!= p)

  • Matrix dimensions: For the product ABAB to be defined, if AA is an m×nm \times n matrix and BB is a p×qp \times q matrix, then nn must equal pp.

  • The resulting matrix C=ABC = AB will have dimensions m×qm \times q 17.

Activity 4. Consider AA (3x3) and BB (3x2).

  • (a) Is the product ABAB defined? Yes, because the inner dimensions (3 and 3) match.

  • (b) If ABAB is defined, what is the dimension of the output? The output dimension is 3x2.

  • (c) Is the product BABA defined? No, because the inner dimensions (2 and 3) do not match.

  • (d) If BABA is defined, what is its dimension? Not applicable 17.

2.5 Properties of matrix multiplication

Matrix multiplication, when defined for matrices AA, BB, and CC of appropriate sizes, and for a scalar rr, follows specific algebraic properties 18.

Property

Description

Associative

A(BC) = (AB)C

Distributive over addition

A(B + C) = AB + AC

Not commutative

AB ≠ BA

3. Systems of Linear Equations

3.1 Identifying linear systems

A linear system of equations is a set of equations where each equation is linear. A linear equation involves variables raised only to the first power, with no products of variables.

The general form of a linear system with mm equations and nn variables is: {a11x1+a12x2+⋯+a1nxn=b1a21x1+a22x2+⋯+a2nxn=b2⋮am1x1+am2x2+⋯+amnxn=bm\begin{cases} a_{11}x_1 + a_{12}x_2 + \dots + a_{1n}x_n = b_1 \\ a_{21}x_1 + a_{22}x_2 + \dots + a_{2n}x_n = b_2 \\ \vdots \\ a_{m1}x_1 + a_{m2}x_2 + \dots + a_{mn}x_n = b_m \end{cases} where aija_{ij} and bjb_j are constants, and xjx_j are variables 19.

  • Linear system example: The system {2x1+x2=5−3x2=9}\{ \begin{smallmatrix} 2x_1 + x_2 = 5 \\ -3x_2 = 9 \end{smallmatrix} \} is linear 19.

  • Non-linear examples: Equations like x2+y=5x^2 + \sqrt{y} = 5 or xy=5xy = 5 are not linear because they involve variables raised to powers other than one or products of variables.

  • Linear system with non-integer coefficients: The system {sin⁡(2)x+4y=53x+2y=−6}\{ \begin{smallmatrix} \sin(2)x + 4y = 5 \\ 3x + \sqrt{2}y = -6 \end{smallmatrix} \} is linear, with coefficients a11=sin⁡(2)a_{11} = \sin(2), a12=4a_{12} = 4, a21=3a_{21} = 3, and a22=2a_{22} = \sqrt{2} 20.

3.2 Solution sets and equivalent systems

A solution to a linear system is a specific set of values for the variables (x1,x2,…,xnx_1, x_2, \dots, x_n) that satisfies all equations in the system simultaneously 21.

  • Number of solutions: A linear system can have zero solutions, exactly one solution, or infinitely many solutions.

  • Solution set: The collection of all possible solutions to a system is called its solution set.

  • Equivalent systems: Two systems of equations are considered equivalent if they share the exact same solution set 21.

📝 The system {x−y=12x−2y=2}\{ \begin{smallmatrix} x - y = 1 \\ 2x - 2y = 2 \end{smallmatrix} \} is equivalent to x−y=1x - y = 1, with the solution set S={(x,y)∣y=x−1}\mathcal{S} = \{(x, y) \mid y = x - 1\} 22.

3.3 Example: Infinitely many solutions

Consider the system: {x−y=12x−2y=2\begin{cases} x - y = 1 \\ 2x - 2y = 2 \end{cases} Subtracting twice the first equation from the second yields 0=00 = 0, indicating the second equation is redundant. This system is equivalent to x−y=1x - y = 1, or y=x−1y = x - 1.

Therefore, there are infinitely many solutions. The solution set is S={(x,y)∣y=x−1}\mathcal{S} = \{(x, y) \mid y = x - 1\} 22.

3.4 Example: No solutions

Consider the system: {x+y=1x+y=2\begin{cases} x + y = 1 \\ x + y = 2 \end{cases} This system leads to the contradiction 1=21 = 2, meaning there are no values for xx and yy that can satisfy both equations simultaneously. The solution set is the empty set, S=∅={}\mathcal{S} = \emptyset = \{\} 23.

3.5 Matrix representations of linear systems

A system of mm linear equations in nn unknowns can be compactly represented using matrices 24.

The system: {a11x1+a12x2+⋯+a1nxn=b1a21x1+a22x2+⋯+a2nxn=b2⋮am1x1+am2x2+⋯+amnxn=bm\begin{cases} a_{11}x_1 + a_{12}x_2 + \dots + a_{1n}x_n = b_1 \\ a_{21}x_1 + a_{22}x_2 + \dots + a_{2n}x_n = b_2 \\ \vdots \\ a_{m1}x_1 + a_{m2}x_2 + \dots + a_{mn}x_n = b_m \end{cases} can be rewritten as a matrix equation Ax⃗=b⃗A\vec{x} = \vec{b}, where:

  • AA is the m×nm \times n coefficient matrix: A=[aij]A = [a_{ij}].

  • x⃗\vec{x} is the n×1n \times 1 variable vector: x⃗=[x1x2⋮xn]\vec{x} = \begin{bmatrix} x_1 \\ x_2 \\ \vdots \\ x_n \end{bmatrix}.

  • b⃗\vec{b} is the m×1m \times 1 constant vector: b⃗=[b1b2⋮bm]\vec{b} = \begin{bmatrix} b_1 \\ b_2 \\ \vdots \\ b_m \end{bmatrix} 24.

A vector x⃗∗\vec{x}^\ast is a solution to Ax⃗=b⃗A\vec{x} = \vec{b} if Ax⃗∗=b⃗A\vec{x}^\ast = \vec{b}. The set of all solutions is S={x⃗∈Rn∣Ax⃗=b⃗}\mathcal{S} = \{\vec{x} \in \mathbb{R}^n \mid A\vec{x} = \vec{b}\} 25.

3.6 Example: Matrix equation and solution verification

Consider the system: {2x1+x2=5−3x2=9\begin{cases} 2x_1 + x_2 = 5 \\ -3x_2 = 9 \end{cases} (a) As a matrix equation: [210−3][x1x2]=[59]\begin{bmatrix} 2 & 1 \\ 0 & -3 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 5 \\ 9 \end{bmatrix} (b) To show (4,−3)(4, -3) is a solution, substitute x1=4x_1=4 and x2=−3x_2=-3 into the original equations: 2(4)+(−3)=8−3=52(4) + (-3) = 8 - 3 = 5 and −3(−3)=9-3(-3) = 9. Both are satisfied. (c) To show x⃗=[4−3]\vec{x} = \begin{bmatrix} 4 \\ -3 \end{bmatrix} is a solution to the matrix equation, substitute it: [210−3][4−3]=[2(4)+1(−3)0(4)+(−3)(−3)]=[8−30+9]=[59]\begin{bmatrix} 2 & 1 \\ 0 & -3 \end{bmatrix} \begin{bmatrix} 4 \\ -3 \end{bmatrix} = \begin{bmatrix} 2(4) + 1(-3) \\ 0(4) + (-3)(-3) \end{bmatrix} = \begin{bmatrix} 8 - 3 \\ 0 + 9 \end{bmatrix} = \begin{bmatrix} 5 \\ 9 \end{bmatrix} This equals b⃗\vec{b}, confirming it is a solution 26.

📝 To show x⃗=[4−3]\vec{x} = \begin{bmatrix} 4 \\ -3 \end{bmatrix} is a solution to [210−3][x1x2]=[59]\begin{bmatrix} 2 & 1 \\ 0 & -3 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 5 \\ 9 \end{bmatrix}, we compute [210−3][4−3]=[59]\begin{bmatrix} 2 & 1 \\ 0 & -3 \end{bmatrix} \begin{bmatrix} 4 \\ -3 \end{bmatrix} = \begin{bmatrix} 5 \\ 9 \end{bmatrix} 26.

3.7 The augmented matrix

The augmented matrix of a linear system consolidates the coefficient matrix AA and the constant vector b⃗\vec{b} into a single matrix [A∣b⃗][A | \vec{b}] 27.

Example: For the system: {3x1+4x2=5−x1=−7\begin{cases} 3x_1 + 4x_2 = 5 \\ -x_1 = -7 \end{cases} (a) As a matrix equation: A=[34−10]A = \begin{bmatrix} 3 & 4 \\ -1 & 0 \end{bmatrix}, b⃗=[5−7]\vec{b} = \begin{bmatrix} 5 \\ -7 \end{bmatrix}, so Ax⃗=b⃗A\vec{x} = \vec{b}. (b) The augmented matrix is: [A∣b⃗]=[34∣5−10∣−7][A | \vec{b}] = \begin{bmatrix} 3 & 4 & | & 5 \\ -1 & 0 & | & -7 \end{bmatrix} 27.

3.8 Homogeneous systems and trivial solutions29

A linear system Ax⃗=b⃗A\vec{x} = \vec{b} is classified based on its constant vector b⃗\vec{b} 28.

System Type

Condition

Example

Homogeneous

b = 0

{ x - y = 0 \ 2x + 6y = 0 }

Non-homogeneous

b ≠ 0

{ x - y = -3 \ 2x + 6y = 4 }

  • Trivial solution: For any homogeneous system (Ax⃗=0⃗A\vec{x} = \vec{0}), the vector 0⃗\vec{0} (where all variables are zero) is always a solution. This is called the trivial solution because A0⃗=0⃗A\vec{0} = \vec{0} holds true 28.

3.9 Example: Identifying homogeneous systems

Determine which of the following systems are homogeneous 29:

  • {x−y=02x+6y=0}\{ \begin{smallmatrix} x - y = 0 \\ 2x + 6y = 0 \end{smallmatrix} \}: Homogeneous, as the right-hand side is all zeros.

  • {x−y=−32x+6y=4}\{ \begin{smallmatrix} x - y = -3 \\ 2x + 6y = 4 \end{smallmatrix} \}: Not homogeneous, as −3≠0-3 \neq 0.

  • [35−3−5][x1x2]=[00]\begin{bmatrix} 3 & 5 \\ -3 & -5 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}: Homogeneous, as the right-hand side vector is 0⃗\vec{0}.

  • [−3421][x1x2]=[10]\begin{bmatrix} -3 & 4 \\ \sqrt{2} & 1 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 1 \\ 0 \end{bmatrix}: Not homogeneous, as the first component of b⃗\vec{b} is 1≠01 \neq 0 29.

4. Reduced Row Echelon Form

4.1 Reduced Row Echelon Form (RREF) 33

Matrices in Reduced Row Echelon Form (RREF) provide a simplified representation of linear systems, making it straightforward to identify solutions. The structure of RREF allows for direct reading of variable values 31.

The leading entry of a row is its first nonzero element from the left. A zero row contains only zeros and has no leading entry 32.

A matrix is in Reduced Row Echelon Form (RREF) if it meets the following criteria:

  • All zero rows are at the bottom of the matrix.

  • The leading entry of each nonzero row is to the right of the leading entry in the row above it.

  • Every leading entry is 1.

  • Every entry above a leading entry is 0 33.

If only the first two conditions are met, the matrix is in Row Echelon Form (REF) 33.

Matrix Property

RREF Condition

REF Condition

Zero rows

Must be at the bottom

Must be at the bottom

Leading entries

To the right of the row above, and must be 1

To the right of the row above

Entries above leading entries

Must be 0

Can be any value

Leading entry value

Must be 1

Can be any nonzero value

4.2 Classifying Matrices

Matrices can be classified as REF, RREF, or neither, based on the established criteria. Understanding these distinctions is crucial for correctly interpreting the solutions to linear systems 34.

  • A matrix is neither REF nor RREF if it violates any of the conditions for REF, such as having a zero row above a nonzero row, or leading entries not being to the right of the one above.

  • A matrix is REF if it satisfies the conditions for REF but not all conditions for RREF (e.g., leading entries are not all 1, or entries above leading entries are not all 0) 34.

  • A matrix is RREF if it satisfies all four conditions. A matrix in RREF is also considered to be in REF 35.

4.3 Activity 5: Classify Matrices

Classify the following augmented matrices as REF, RREF, or neither.

(a)

Column 1

Column 2

Column 3

Column 4

1

0

-1

4

0

1

2

1

This matrix is neither REF nor RREF because two leading entries are in the same column, and the leading entry in the second row is not 1. Additionally, there is a nonzero entry above the leading entry in the second row 36.

(b)

Column 1

Column 2

Column 3

Column 4

1

0

3

5

0

1

-2

4

This matrix is RREF because all conditions are met: zero rows are at the bottom (none exist), leading entries are to the right of the one above, all leading entries are 1, and all entries above leading entries are 0 36.

(c)

Column 1

Column 2

Column 3

1

0

4

0

1

0

This matrix is REF. It satisfies the conditions for REF (zero rows at the bottom, leading entries to the right of the one above).

However, it is not RREF because the entry above the leading entry in the second column is not 0 37.

4.4 Solving Linear Systems Using RREF

Matrices in RREF simplify the process of solving linear systems. The structure directly reveals the values of the variables 30.

Consider an augmented matrix in RREF. The system of equations derived from this matrix will have each leading variable isolated in its own equation 31.

📝 Given the augmented matrix:

{"header": ["Column 1", "Column 2", "Column 3", "Column 4", "rows": [["1", "0", "0", "5", ["0", "1", "0", "-2", ["0", "0", "1", "4.3"]]}

This matrix represents the system:

  • 1x+0y+0z=5  ⟹  x=51x + 0y + 0z = 5 \implies x = 5

  • 0x+1y+0z=−2  ⟹  y=−20x + 1y + 0z = -2 \implies y = -2

  • 0x+0y+1z=4.3  ⟹  z=4.30x + 0y + 1z = 4.3 \implies z = 4.3 The solution set is S={(5,−2,4.3)}S = \{(5, -2, 4.3)\} 30.

5. Elementary Row Operations

5.1 Introduction to Elementary Row Operations

Elementary row operations are transformations applied to the equations of a linear system or its augmented matrix. These operations are crucial because they allow us to simplify the system into an equivalent form without altering its solution set.

The goal is to modify the equations into a simpler form that retains the same solutions 38.

The three fundamental elementary row operations are:

  • Changing the order of the equations.

  • Multiplying both sides of an equation by the same nonzero value.

  • Adding the same value to both sides of an equation 38.

These operations are applied to augmented matrices, where each row represents an equation. The symbol "∼" is used to indicate that two matrices are equivalent, meaning one can be transformed into the other through a series of elementary row operations 41.

5.2 Switching Rows

Switching rows involves interchanging the positions of two equations in a system or two rows in its augmented matrix. This operation does not change the solution set of the system because the order of equations does not affect the overall solution 39.

To indicate the switching of row ii and row jj, the notation Ri↔RjR_i \leftrightarrow R_j is used.

📝 Consider the system: {x−6y=72x+3y=1}\{ \begin{aligned} x - 6y &= 7 \\ 2x + 3y &= 1 \end{aligned} \} Switching the order of the equations results in: {2x+3y=1x−6y=7}\{ \begin{aligned} 2x + 3y &= 1 \\ x - 6y &= 7 \end{aligned} \} In augmented matrix form, this is: [1−6∣723∣1]→R1↔R2[23∣11−6∣7]\begin{bmatrix} 1 & -6 & | & 7 \\ 2 & 3 & | & 1 \end{bmatrix} \xrightarrow{R1 \leftrightarrow R2} \begin{bmatrix} 2 & 3 & | & 1 \\ 1 & -6 & | & 7 \end{bmatrix} 39.

5.3 Row Multiplication

Row multiplication involves multiplying all elements in a specific row of an augmented matrix by a nonzero constant. This operation is equivalent to multiplying both sides of the corresponding equation by that constant, which preserves the solution set of the system 40.

It is critical that the multiplier is nonzero. Multiplying a row by zero can introduce extraneous solutions, meaning the resulting system will not be equivalent to the original 42.

To indicate the multiplication of row ii by a factor of cc, the notation cRicR_i is used.

📝 For the system: {x−6y=72x+3y=1}\{ \begin{aligned} x - 6y &= 7 \\ 2x + 3y &= 1 \end{aligned} \} Multiplying the first row by 5 yields: {5(x−6y)=5(7)2x+3y=1}\{ \begin{aligned} 5(x - 6y) &= 5(7) \\ 2x + 3y &= 1 \end{aligned} \} Which simplifies to: {5x−30y=352x+3y=1}\{ \begin{aligned} 5x - 30y &= 35 \\ 2x + 3y &= 1 \end{aligned} \} In augmented matrix form: [1−6∣723∣1]→5R1[5−30∣3523∣1]\begin{bmatrix} 1 & -6 & | & 7 \\ 2 & 3 & | & 1 \end{bmatrix} \xrightarrow{5R1} \begin{bmatrix} 5 & -30 & | & 35 \\ 2 & 3 & | & 1 \end{bmatrix} 40.

5.4 Row Addition

Row addition involves adding a multiple of one row to another row in the augmented matrix. This operation corresponds to adding a multiple of one equation to another equation in the system.

This process does not change the solution set because it is equivalent to adding equal quantities to both sides of an equation 43.

To indicate adding cc times row jj to row ii, the notation Ri+=cRjR_i += cR_j is used.

📝 Consider the system: {x−6y=72x+3y=1}\{ \begin{aligned} x - 6y &= 7 \\ 2x + 3y &= 1 \end{aligned} \} We can add −2-2 times the first equation to the second equation. This is represented as R2+=−2R1R2 += -2R1. The first equation remains: x−6y=7x - 6y = 7. The second equation becomes: (2x+3y)−2(x−6y)=1−2(7)(2x + 3y) - 2(x - 6y) = 1 - 2(7). Simplifying the second equation: 2x+3y−2x+12y=1−142x + 3y - 2x + 12y = 1 - 14, which results in 15y=−1315y = -13. The new system is: {x−6y=715y=−13}\{ \begin{aligned} x - 6y &= 7 \\ 15y &= -13 \end{aligned} \} In augmented matrix form: [1−6∣723∣1]→R2+=−2R1[1−6∣7015∣−13]\begin{bmatrix} 1 & -6 & | & 7 \\ 2 & 3 & | & 1 \end{bmatrix} \xrightarrow{R2 += -2R1} \begin{bmatrix} 1 & -6 & | & 7 \\ 0 & 15 & | & -13 \end{bmatrix} 43.

5.5 Summary of Elementary Row Operations

Elementary row operations are a set of transformations that can be applied to the rows of an augmented matrix. These operations are fundamental in solving systems of linear equations because they produce equivalent systems, meaning they have the same solution set 44.

Operation

Notation

Description

Switch Rows

$R_i \leftrightarrow R_j$

Interchanges row $i$ and row $j$.

Row Multiplication

$cR_i$

Multiplies row $i$ by a nonzero scalar $c$.

Row Addition

$R_i += cR_j$

Adds $c$ times row $j$ to row $i$.

5.6 Equivalence of Matrices

Two augmented matrices are considered equivalent if one can be transformed into the other through a finite sequence of elementary row operations. This equivalence is key to the process of Gaussian elimination and other matrix-based methods for solving linear systems 45.

5.7 Activity 6: Performing Row Operations

This activity demonstrates the application of elementary row operations in sequence to transform a given matrix. Careful alignment of rows and columns is essential for accurate calculations 46.

The initial matrix is: [−4−8∣−122−3∣−6]\begin{bmatrix} -4 & -8 & | & -12 \\ 2 & -3 & | & -6 \end{bmatrix}

(a) Add 4 times row 2 to row 1 (R1+=4R2R1 += 4R2): [−4−8∣−122−3∣−6]→R1+=4R2[0−20∣−362−3∣−6]\begin{bmatrix} -4 & -8 & | & -12 \\ 2 & -3 & | & -6 \end{bmatrix} \xrightarrow{R1 += 4R2} \begin{bmatrix} 0 & -20 & | & -36 \\ 2 & -3 & | & -6 \end{bmatrix} 46.

(b) Switch row 1 and row 2 (R1↔R2R1 \leftrightarrow R2): [0−20∣−362−3∣−6]→R1↔R2[2−3∣−60−20∣−36]\begin{bmatrix} 0 & -20 & | & -36 \\ 2 & -3 & | & -6 \end{bmatrix} \xrightarrow{R1 \leftrightarrow R2} \begin{bmatrix} 2 & -3 & | & -6 \\ 0 & -20 & | & -36 \end{bmatrix} 46.

(c) Multiply row 2 by (−1/12)(-1/12) ((−1/12)R2(-1/12)R2): [2−3∣−60−20∣−36]→(−1/12)R2[2−3∣−6020/12∣36/12]∼[2−3∣−605/3∣3]\begin{bmatrix} 2 & -3 & | & -6 \\ 0 & -20 & | & -36 \end{bmatrix} \xrightarrow{(-1/12)R2} \begin{bmatrix} 2 & -3 & | & -6 \\ 0 & 20/12 & | & 36/12 \end{bmatrix} \sim \begin{bmatrix} 2 & -3 & | & -6 \\ 0 & 5/3 & | & 3 \end{bmatrix} 46.

The final matrix after these operations is: [2−3∣−605/3∣3]\begin{bmatrix} 2 & -3 & | & -6 \\ 0 & 5/3 & | & 3 \end{bmatrix} 46.

6. RREF of an Augmented Matrix

6.1 Definition of RREF

An augmented matrix [C∣d⃗][C| \vec{d}] is the reduced row echelon form (RREF) of an augmented matrix [A∣b⃗][A| \vec{b}] if [C∣d⃗][C| \vec{d}] is in row echelon form (REF) and represents a linear system equivalent to the one represented by [A∣b⃗][A| \vec{b}]. This means both matrices have the same solution set 47.

  • The REF of a matrix is not unique.

  • The RREF of a matrix is unique 47.

6.2 Example of RREF 47 48

The augmented matrices [A∣b⃗][A| \vec{b}] and [C∣d⃗][C| \vec{d}] are equivalent, with [C∣d⃗][C| \vec{d}] being the RREF of [A∣b⃗][A| \vec{b}].

Matrix A

Matrix C

\begin{bmatrix} 9 & -15 & 3 \ 2 & -6 & 9 \ -1 & -15 & 3 \end{bmatrix}

\begin{bmatrix} 1 & 0 & 0 \ 0 & 1 & 0 \ 0 & 0 & 1 \end{bmatrix}

6.3 Finding the Solution Set from RREF

Once an augmented matrix is in RREF, its solution set can be directly determined. For example, the RREF matrix:

x

y

z

Constant

1

0

0

3

0

1

0

-2

0

0

1

0

represents the system:

  • x+0+0=3x + 0 + 0 = 3

  • 0+y+0=−20 + y + 0 = -2

  • 0+0+z=00 + 0 + z = 0

This directly yields the solution x=3x=3, y=−2y=-2, and z=0z=0. The solution set is S={(3,−2,0)}\mathcal{S} = \{(3, -2, 0)\} 48.

📝 The RREF of an augmented matrix [A∣b⃗][A| \vec{b}] is [C∣d⃗][C| \vec{d}]. If [C∣d⃗][C| \vec{d}] is

{"header": ["x", "y", "z", "Constant", "rows": [["1", "0", "0", "3", ["0", "1", "0", "-2", ["0", "0", "1", "0"]]}

then the solution set for the linear system represented by [A∣b⃗][A| \vec{b}] is S={(3,−2,0)}\mathcal{S} = \{(3, -2, 0)\} 48.

7. Gaussian Elimination and Gauss-Jordan Elimination

7.1 Gaussian elimination and Gauss-Jordan elimination

Gaussian elimination and Gauss-Jordan elimination are methods used to solve systems of linear equations by transforming their augmented matrices into Row Echelon Form (REF) or Reduced Row Echelon Form (RREF). These forms simplify the system, allowing for straightforward determination of the solution set 49 51 53.

  • Gaussian elimination involves two main steps:

    • Forward solving: Use row operations to transform the augmented matrix into REF.

    • Back solving: Convert the REF matrix back into a linear system and solve for variables starting from the last equation 53.

  • Gauss-Jordan elimination uses row operations to transform the augmented matrix directly into RREF. This form directly reveals the values of the variables 51.

7.2 Row operations

Row operations are elementary transformations applied to the rows of an augmented matrix to simplify the linear system. These operations include:

  • Multiplying a row by a non-zero scalar.

  • Adding a multiple of one row to another row.

  • Swapping two rows 49 51.

7.3 Row Echelon Form (REF)

A matrix is in REF if:

  • All non-zero rows are above any rows of all zeros.

  • The leading entry (pivot) of each non-zero row is strictly to the right of the leading entry of the row above it.

  • All entries in a column below a leading entry are zeros 53.

7.4 Reduced Row Echelon Form (RREF)

A matrix is in RREF if it is in REF and additionally:

  • Every leading entry is 1.

  • Each leading 1 is the only non-zero entry in its column 49 51.

7.5 Solving a linear system using RREF

To solve a linear system using Gauss-Jordan elimination:

  1. Write the augmented matrix for the system.

  2. Apply row operations to transform the matrix into RREF.

  3. Rewrite the RREF matrix as a linear system.

  4. The solution set can be directly read from the RREF system 49 51.

The solution set can be expressed as S={(x1,x2,… )∈Rn∣equations from RREF}S = \{(x_1, x_2, \dots) \in \mathbb{R}^n \mid \text{equations from RREF}\} 50 52.

7.6 Solving a linear system using REF

To solve a linear system using Gaussian elimination:

  1. Write the augmented matrix for the system.

  2. Apply row operations to transform the matrix into REF.

  3. Rewrite the REF matrix as a linear system.

  4. Solve for the variables using back-substitution, starting from the last equation 53 54.

7.7 Example: Solving a 2x2 system with Gauss-Jordan elimination

Consider the system: −2x1−7x2=−5-2x_1 - 7x_2 = -5 x1+5x2=7x_1 + 5x_2 = 7

  1. Augmented matrix: [−2−7−5157]\begin{bmatrix} -2 & -7 & -5 \\ 1 & 5 & 7 \end{bmatrix}

  2. Transform to RREF: [−2−7−5157]→R1↔R2[157−2−7−5]→R2+=2R1[157039]→13R2[157013]→R1+=−5R2[10−8013]\begin{bmatrix} -2 & -7 & -5 \\ 1 & 5 & 7 \end{bmatrix} \xrightarrow{R_1 \leftrightarrow R_2} \begin{bmatrix} 1 & 5 & 7 \\ -2 & -7 & -5 \end{bmatrix} \xrightarrow{R_2 += 2R_1} \begin{bmatrix} 1 & 5 & 7 \\ 0 & 3 & 9 \end{bmatrix} \xrightarrow{\frac{1}{3}R_2} \begin{bmatrix} 1 & 5 & 7 \\ 0 & 1 & 3 \end{bmatrix} \xrightarrow{R_1 += -5R_2} \begin{bmatrix} 1 & 0 & -8 \\ 0 & 1 & 3 \end{bmatrix}

  3. Rewrite as a system: x1=−8x_1 = -8 x2=3x_2 = 3

  4. The unique solution is (−8,3)(-8, 3) 51 52.

📝 The solution set is S={(−8,3)}S = \{(-8, 3)\} 52.

7.8 Example: Solving a 2x2 system with Gaussian elimination

Consider the system: −2x1−7x2=−5-2x_1 - 7x_2 = -5 x1+5x2=7x_1 + 5x_2 = 7

  1. Augmented matrix: [−2−7−5157]\begin{bmatrix} -2 & -7 & -5 \\ 1 & 5 & 7 \end{bmatrix}

  2. Transform to REF: [−2−7−5157]→R1↔R2[157−2−7−5]→R2+=2R1[157039]\begin{bmatrix} -2 & -7 & -5 \\ 1 & 5 & 7 \end{bmatrix} \xrightarrow{R_1 \leftrightarrow R_2} \begin{bmatrix} 1 & 5 & 7 \\ -2 & -7 & -5 \end{bmatrix} \xrightarrow{R_2 += 2R_1} \begin{bmatrix} 1 & 5 & 7 \\ 0 & 3 & 9 \end{bmatrix}

  3. Rewrite as a system: x1+5x2=7x_1 + 5x_2 = 7 3x2=93x_2 = 9

  4. Solve using back-substitution: From the second equation, x2=9/3=3x_2 = 9/3 = 3. Substitute x2=3x_2=3 into the first equation: x1+5(3)=7  ⟹  x1+15=7  ⟹  x1=−8x_1 + 5(3) = 7 \implies x_1 + 15 = 7 \implies x_1 = -8.

  5. The solution is (−8,3)(-8, 3) 53 54.

📝 The solution is (x1,x2)=(−8,3)(x_1, x_2) = (-8, 3) 54.

7.9 Remark on RREF of A and [A|b 55

When an augmented matrix [A∣b⃗][A|\vec{b}] is transformed into its RREF, [C∣d⃗][C|\vec{d}], the matrix CC is the RREF of AA. However, the vector d⃗\vec{d} is not necessarily the RREF of b⃗\vec{b} 55.

RREF([A

b])

RREF(A)

[C

d

C

For example, if RREF([Ab⃗])=[103601−24]\text{RREF}\left(\begin{bmatrix} A & \vec{b} \end{bmatrix}\right) = \begin{bmatrix} 1 & 0 & 3 & 6 \\ 0 & 1 & -2 & 4 \end{bmatrix} then RREF(A)=[10301−2]\text{RREF}(A) = \begin{bmatrix} 1 & 0 & 3 \\ 0 & 1 & -2 \end{bmatrix} 55.

8. Rank and Nullity

8.1 Introduction to Rank and Nullity

The concepts of rank and nullity are crucial for understanding the structure of solutions to linear systems. Rank quantifies the number of independent constraints in a matrix, while nullity describes the number of free variables, directly impacting the number of solutions 56.

The number of solutions to a linear system Ax=bAx = b can be zero, one, or infinitely many. Identifying the number of solutions with minimal effort is a key objective 56.

8.2 Infinitely Many Solutions

When a linear system has infinitely many solutions, some variables can be chosen freely, while others are determined by these free variables. These are termed free and bound variables, respectively 57.

  • Free variable: A variable that can take any real value, influencing the values of other variables.

  • Bound variable: A variable whose value is determined by the free variables 57.

The solution set can be expressed in a parametric form, where each solution is a linear combination of vectors determined by the free variables, plus a particular solution 57.

📝 For the system with RREF of the augmented matrix (103∣601−2∣4)\begin{pmatrix} 1 & 0 & 3 & | & 6 \\ 0 & 1 & -2 & | & 4 \end{pmatrix}, the equations are x1+3x3=6x_1 + 3x_3 = 6 and x2−2x3=4x_2 - 2x_3 = 4. Thus, x1=6−3x3x_1 = 6 - 3x_3 and x2=4+2x3x_2 = 4 + 2x_3. The solution set is S={(x1x2x3)∈R3∣x1=6−3x3,x2=4+2x3}\mathcal{S} = \left\{ \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} \in \mathbb{R}^3 \mid x_1 = 6 - 3x_3, x_2 = 4 + 2x_3 \right\}. Here, x3x_3 is a free variable, and x1,x2x_1, x_2 are bound variables 56.

8.3 Converting RREF to Solution Sets

The process of finding the solution set from the Reduced Row Echelon Form (RREF) of an augmented matrix involves several steps 59.

  1. Convert the RREF augmented matrix back into a system of linear equations.

  2. Rearrange each equation to isolate the leading entry variables on the left side.

  3. Write a generic column vector for the solution (x1,x2,…,xn)(x_1, x_2, \dots, x_n).

  4. Substitute the expressions for bound variables, ensuring only free variables remain on the right-hand side.

  5. Express the solution set in parametric vector form, indicating the free variables and their domain.

  6. Rewrite the column vector in its final parametric form 59.

📝 For the system with RREF of the augmented matrix (1−206∣30010∣4)\begin{pmatrix} 1 & -2 & 0 & 6 & | & 3 \\ 0 & 0 & 1 & 0 & | & 4 \end{pmatrix}, the equations are x1−2x2+6x4=3x_1 - 2x_2 + 6x_4 = 3 and x3=4x_3 = 4. Thus, x1=2x2−6x4+3x_1 = 2x_2 - 6x_4 + 3 and x3=4x_3 = 4. The solution set is S={(x1x2x3x4)∈R4∣x1=2x2−6x4+3,x3=4}\mathcal{S} = \left\{ \begin{pmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \end{pmatrix} \in \mathbb{R}^4 \mid x_1 = 2x_2 - 6x_4 + 3, x_3 = 4 \right\}. This can be written as (2100)s+(−6001)t+(3040)\begin{pmatrix} 2 \\ 1 \\ 0 \\ 0 \end{pmatrix}s + \begin{pmatrix} -6 \\ 0 \\ 0 \\ 1 \end{pmatrix}t + \begin{pmatrix} 3 \\ 0 \\ 4 \\ 0 \end{pmatrix}, where s,t∈Rs, t \in \mathbb{R}. Here, x2x_2 and x4x_4 are free variables 60.

8.4 Definitions of Rank and Nullity 63

The rank and nullity of a matrix are fundamental properties that describe its linear structure. These concepts are directly related to the number of leading entries and non-leading entry columns in any Row Echelon Form (REF) of the matrix 62.

  • Rank: The number of leading entries in any Row Echelon Form (REF) of a matrix.

  • Nullity: The number of columns in the REF of a matrix that do not contain a leading entry 62.

The rank of matrix AA is denoted as rank(A)\text{rank}(A), and its nullity is denoted as null(A)\text{null}(A). It is important to note that the definition uses REF, which can be easier to find than RREF for determining rank and nullity 62.

The nullity of a matrix corresponds to the number of free variables in the solution set of Ax=bAx = b, while the rank corresponds to the number of bound variables 63.

Matrix Property

Relation to Solution Set

Nullity of A

Number of free variables in Ax = b

Rank of A

Number of bound variables in Ax = b

8.5 Calculating Rank and Nullity

The rank and nullity of a matrix can be determined by examining its Row Echelon Form (REF). The number of leading entries directly gives the rank, and the number of columns without leading entries gives the nullity 64.

  • Example (a): For matrix A=(2−3−42−10)A = \begin{pmatrix} 2 & -3 & -4 \\ 2 & -1 & 0 \end{pmatrix}, which is in REF, there are 3 leading entries. Thus, rank(A)=3\text{rank}(A) = 3. There are 0 columns without leading entries, so null(A)=0\text{null}(A) = 0.

  • Example (b): For matrix B=(4−102)B = \begin{pmatrix} 4 & -1 \\ 0 & 2 \end{pmatrix}, which is in REF, there are 2 leading entries. Thus, rank(B)=2\text{rank}(B) = 2. There is 1 column without a leading entry, so null(B)=1\text{null}(B) = 1 64.

8.6 Activity: Finding Rank and Nullity

This activity provides practice in calculating the rank and nullity of various matrices 65.

  • Matrix A: A=(1−3−4340)A = \begin{pmatrix} 1 & -3 \\ -4 & 3 \\ 4 & 0 \end{pmatrix}. This matrix is already in REF. It has 2 leading entries, so rank(A)=2\text{rank}(A) = 2. It has 2 columns without leading entries, so null(A)=2\text{null}(A) = 2.

  • Matrix B: B=(1400)B = \begin{pmatrix} 1 & 4 \\ 0 & 0 \end{pmatrix}. This matrix is already in REF. It has 1 leading entry, so rank(B)=1\text{rank}(B) = 1. It has 2 columns without leading entries, so null(B)=2\text{null}(B) = 2.

  • Matrix C: C=(9−423−10)C = \begin{pmatrix} 9 & -4 & 2 \\ 3 & -1 & 0 \end{pmatrix}. To find the rank and nullity, we first put CC into REF. (9−423−10)→R1←R1−3R3(0−123−10)→R2←R2+2R1(0−123−10)∼(3−100−12)\begin{pmatrix} 9 & -4 & 2 \\ 3 & -1 & 0 \end{pmatrix} \xrightarrow{R_1 \leftarrow R_1 - 3R_3} \begin{pmatrix} 0 & -1 & 2 \\ 3 & -1 & 0 \end{pmatrix} \xrightarrow{R_2 \leftarrow R_2 + 2R_1} \begin{pmatrix} 0 & -1 & 2 \\ 3 & -1 & 0 \end{pmatrix} \sim \begin{pmatrix} 3 & -1 & 0 \\ 0 & -1 & 2 \end{pmatrix}. The REF is (3−100−12)\begin{pmatrix} 3 & -1 & 0 \\ 0 & -1 & 2 \end{pmatrix}.

This REF has 2 leading entries, so rank(C)=2\text{rank}(C) = 2. It has 0 columns without leading entries, so null(C)=0\text{null}(C) = 0 65.

9. Checking if No Solutions Exist

9.1 Consistent and Inconsistent Systems

A linear system is considered consistent if it has at least one solution. Conversely, a linear system is inconsistent if it has no solutions.

The consistency of a system can be determined by comparing the ranks of the coefficient matrix and the augmented matrix 66.

9.2 Theorem on System Consistency

Shores' Theorem 1.5 establishes a condition for the consistency of a linear system Ax⃗=b⃗A\vec{x} = \vec{b}. The system is consistent if and only if the rank of the augmented matrix [A∣b⃗][A|\vec{b}] is equal to the rank of the coefficient matrix AA 67.

  • Proof of consistency: If rank([A∣b⃗])=rank(A)\text{rank}([A|\vec{b}]) = \text{rank}(A), it implies that the last column of the reduced row echelon form (RREF) of [A∣b⃗][A|\vec{b}] does not contain a leading entry. This prevents the formation of a contradictory equation, such as 0=10=1, thus ensuring the system is consistent.

  • Proof of inconsistency: If rank(A)<rank([A∣b⃗])\text{rank}(A) < \text{rank}([A|\vec{b}]), it means there must be a leading entry in the last column of the RREF of [A∣b⃗][A|\vec{b}]. This results in a row of the form [0 0 … 0 ∣ 1][0 \ 0 \ \dots \ 0 \ | \ 1], which corresponds to an equation 0x1+0x2+⋯+0xn=10x_1 + 0x_2 + \dots + 0x_n = 1. This equation is impossible to satisfy, making the system inconsistent 67.

9.3 Determining System Consistency Using Rank 66

The ranks of the coefficient matrix (AA) and the augmented matrix ([A∣b⃗][A|\vec{b}]) are used to determine if a linear system is consistent or inconsistent. If the ranks are equal, the system is consistent; if they are not equal, the system is inconsistent 68.

Augmented Matrix [A

b

Rank [A

b

Matrix A

Rank A

Consistency

[1 3

6; [0 0

1

2

3;

1

Inconsistent

[1 0

1; [0 1

2

2

;

2

Consistent

[1 0

1; [1 0

2

2

; 1

1

Inconsistent

📝 Consider the augmented matrix [13∣600∣1]\begin{bmatrix} 1 & 3 & | & 6 \\ 0 & 0 & | & 1 \end{bmatrix}. The rank of the augmented matrix [A∣b⃗][A|\vec{b}] is 2, as there are two non-zero rows in its RREF. The rank of the coefficient matrix A=[1300]A = \begin{bmatrix} 1 & 3 \\ 0 & 0 \end{bmatrix} is 1. Since rank([A∣b⃗])≠rank(A)\text{rank}([A|\vec{b}]) \neq \text{rank}(A), the system is inconsistent and has no solutions 66.

10. Properties of Rank and Nullity

10.1 Rank-nullity theorem

The Rank-nullity Theorem states that for any m×nm \times n matrix AA, the sum of its rank and nullity equals the number of columns (nn). This theorem is fundamental in linear algebra, relating the dimensions of the column space and the null space of a matrix.

The proof relies on the fact that the number of columns without leading entries in the row-echelon form of a matrix is equal to its nullity.

  • Rank-nullity Theorem: For any m×nm \times n matrix AA, rank(A)+null(A)=n\text{rank}(A) + \text{null}(A) = n, where nn is the number of columns.

  • Nullity: The nullity of a matrix is the dimension of its null space, which is the number of columns without leading entries in its row-echelon form 69.

📝 Suppose AA is a 3×123 \times 12 matrix with a rank of 2. To find its nullity, we use the Rank-nullity Theorem. Here, n=12n=12 (the number of columns). Therefore, null(A)=n−rank(A)=12−2=10\text{null}(A) = n - \text{rank}(A) = 12 - 2 = 10 70.

10.2 Maximum rank of a matrix

The rank of a matrix is bounded by the minimum of its number of rows and columns. This means the rank cannot exceed the number of rows (mm) and cannot exceed the number of columns (nn).

A matrix is considered "full rank" if its rank is equal to this minimum value.

  • Maximum rank: For an m×nm \times n matrix AA, rank(A)≤min⁡{m,n}\text{rank}(A) \le \min\{m, n\}.

  • Full rank: An m×nm \times n matrix AA is full rank if rank(A)=min⁡{m,n}\text{rank}(A) = \min\{m, n\} 71.

10.3 Solutions to linear systems 72

The rank of a matrix plays a crucial role in determining the nature of solutions for a consistent linear system Ax=bAx = b. If the rank of matrix AA equals the number of its columns (nn), the system has a unique solution.

Conversely, if the rank is less than the number of columns, the system has infinitely many solutions.

Condition on rank(A)

Number of solutions for Ax=b (if consistent)

rank(A) = n

Unique solution

rank(A) < n

Infinitely many solutions

11. Examples

11.1 Example: Rank and consistency of an augmented matrix

This section demonstrates how to determine the rank of an augmented matrix and the coefficient matrix, and subsequently assess the consistency and number of solutions for a system of linear equations. The process involves analyzing the Reduced Row Echelon Form (RREF) of the augmented matrix 73 74 75.

  • Rank of an augmented matrix: The rank of an augmented matrix is found by counting the number of leading entries (pivots) in its RREF.

  • Rank of a coefficient matrix: The rank of the coefficient matrix (AA) is the same as the rank of the augmented matrix if the augmented matrix is in RREF.

  • Consistency: A system of linear equations represented by an augmented matrix is consistent if the rank of the coefficient matrix (AA) is equal to the rank of the augmented matrix ([A∣b⃗][A|\vec{b}]).

  • Number of solutions:

    • If rank(AA) = rank([A∣b⃗][A|\vec{b}]) = nn (where nn is the number of variables), the system has exactly one solution.

    • If rank(AA) = rank([A∣b⃗][A|\vec{b}]) < nn, the system has infinitely many solutions.

    • If rank(AA) < rank([A∣b⃗][A|\vec{b}]), the system is inconsistent and has no solutions 73 74 75.

📝 Find the rank of AA and [A∣b⃗][A|\vec{b}], and determine if the system is consistent and how many solutions exist for the augmented matrix: $$ \begin{bmatrix} 1 & 2 & | & 3 \ 0 & 0 & | & 0 \end{bmatrix}

- rank($A$) = rank($[A|\vec{b}]$) = 1. - Since rank($A$) = rank($[A|\vec{b}]$), the system is consistent. - The number of variables $n=2$. Since rank($A$) = 1 < $n=2$, there are infinitely many solutions [75](#page=75).

12. Matrix Inverses

12.1 Inverses for multiplication of real numbers

The concept of a matrix inverse is analogous to the multiplicative inverse of real numbers. For real numbers, the identity element for multiplication is 1, meaning that multiplying any number by 1 does not change its value.

An invertible real number is a non-zero number that has a reciprocal, such that when multiplied together, they result in the multiplicative identity, 1. The number 0 is non-invertible because its reciprocal is undefined 76.

12.2 Identity matrix

The equivalent of the real number 1 for matrices is the identity matrix, denoted as InI_n. This is a square matrix where all the diagonal elements are 1 and all off-diagonal elements are 0. For any n×nn \times n matrix AA, multiplying it by the identity matrix InI_n (either from the left or the right) results in the original matrix AA 77 78.

  • Identity matrix (InI_n): A square matrix with 1s on the main diagonal and 0s elsewhere.

    • I1=[1]I_1 = [1]

    • I2=[1001]I_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}

    • I3=[100010001]I_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} 77.

  • Property: For any n×nn \times n matrix AA, AIn=InA=AAI_n = I_nA = A 78.

📝 For A=[1234]A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}, AI=[1234][1001]=[1234]AI = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} and IA=[1001][1234]=[1234]IA = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} 78.

12.3 Exercise 1

For A=[1234]A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}, calculate AIAI and IAIA 78.

  • Concept tested: The property of the identity matrix in matrix multiplication.

  • Solution:

    • AI=[1234][1001]=[1(1)+2(0)1(0)+2(1)3(1)+4(0)3(0)+4(1)]=[1234]=AAI = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 1(1) + 2(0) & 1(0) + 2(1) \\ 3(1) + 4(0) & 3(0) + 4(1) \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = A.

    • IA=[1001][1234]=[1(1)+0(3)1(2)+0(4)0(1)+1(3)0(2)+1(4)]=[1234]=AIA = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 1(1) + 0(3) & 1(2) + 0(4) \\ 0(1) + 1(3) & 0(2) + 1(4) \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = A 78.

12.4 Invertible and singular matrices

The inverse of an n×nn \times n matrix AA, denoted as A−1A^{-1}, is a matrix such that when multiplied by AA (from either the left or right), it results in the identity matrix InI_n. A matrix is considered invertible if its inverse A−1A^{-1} exists.

If an inverse does not exist, the matrix is called non-invertible or singular. Only square matrices can be invertible 79 80.

  • Definition of matrix inverse: For an n×nn \times n matrix AA, its inverse A−1A^{-1} satisfies A−1A=InA^{-1}A = I_n and AA−1=InAA^{-1} = I_n.

  • Invertible matrix: A matrix for which an inverse exists.

  • Singular matrix: A matrix that is not invertible 79.

12.5 Example

Let A=[3410]A = \begin{bmatrix} 3 & 4 \\ 1 & 0 \end{bmatrix}. Verify that A−1=14[041−3]A^{-1} = \frac{1}{4} \begin{bmatrix} 0 & 4 \\ 1 & -3 \end{bmatrix} 79.

  • Concept tested: Verification of a matrix inverse.

  • Solution:

    • Check AA−1=IAA^{-1} = I: AA−1=[3410](14[041−3])=14[3(0)+4(1)3(4)+4(−3)1(0)+0(1)1(4)+0(−3)]=14[4004]=[1001]=IAA^{-1} = \begin{bmatrix} 3 & 4 \\ 1 & 0 \end{bmatrix} \left( \frac{1}{4} \begin{bmatrix} 0 & 4 \\ 1 & -3 \end{bmatrix} \right) = \frac{1}{4} \begin{bmatrix} 3(0) + 4(1) & 3(4) + 4(-3) \\ 1(0) + 0(1) & 1(4) + 0(-3) \end{bmatrix} = \frac{1}{4} \begin{bmatrix} 4 & 0 \\ 0 & 4 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I.

    • It is not necessary to check A−1A=IA^{-1}A = I separately, as one condition implies the other for square matrices 79.

📝 Let A=[3410]A = \begin{bmatrix} 3 & 4 \\ 1 & 0 \end{bmatrix}. To verify that A−1=14[041−3]A^{-1} = \frac{1}{4} \begin{bmatrix} 0 & 4 \\ 1 & -3 \end{bmatrix}, we check AA−1=[3410](14[041−3])=[1001]=IAA^{-1} = \begin{bmatrix} 3 & 4 \\ 1 & 0 \end{bmatrix} \left( \frac{1}{4} \begin{bmatrix} 0 & 4 \\ 1 & -3 \end{bmatrix} \right) = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I 79.

12.6 When is a matrix invertible?

Not all square matrices are invertible. For instance, the zero matrix is not invertible.

If we assume a zero matrix A=[0000]A = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} has an inverse A−1=[abcd]A^{-1} = \begin{bmatrix} a & b \\ c & d \end{bmatrix}, then AA−1=IAA^{-1} = I would imply [0000][abcd]=[1001]\begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} a & b \\ c & d \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}, which simplifies to [0000]=[1001]\begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}. This leads to the contradiction 0=10=1, proving that the zero matrix is singular 81.

The equation AX=IAX = I, where XX is the unknown inverse matrix, can be viewed as a system of linear equations. When AA is not invertible, the system AX=IAX = I is inconsistent, meaning no matrix XX can satisfy the equation.

This inconsistency can be detected by comparing the rank of matrix AA with the rank of the augmented matrix [A∣I][A|I] 82 83.

  • Condition for invertibility: Only square matrices can be invertible 80.

  • Singular matrix example: The zero matrix is not invertible because assuming an inverse exists leads to a contradiction (0=10=1) 81.

  • Solving for the inverse: The equation AX=IAX = I can be solved using augmented matrices, similar to solving Ax⃗=b⃗A\vec{x} = \vec{b}. The augmented matrix is [A∣I][A|I] 82.

  • Invertible if: rank(A)=rank([A∣I])\text{rank}(A) = \text{rank}([A|I]).

  • Singular if: rank(A)<rank([A∣I])\text{rank}(A) < \text{rank}([A|I]) 83.

13.1 When is a matrix invertible?

13.1 Determining invertibility using augmented matrices

A square matrix is invertible if and only if the equation AX=IAX = I has a solution, where XX is the inverse matrix A−1A^{-1} and II is the identity matrix. This condition can be tested by forming an augmented matrix [A∣I][A|I] and performing row reduction.

If the row reduction results in an inconsistent system, the matrix AA is not invertible 84.

  • To check if a matrix AA is invertible, we seek a matrix XX such that AX=IAX = I.

  • This is equivalent to solving a system of linear equations 85.

  • The system can be represented by augmenting the matrix AA with the identity matrix II, forming [A∣I][A|I] 84.

  • Row reduction is applied to [A∣I][A|I] to determine if a solution exists 86.

13.2 Example: Non-invertible matrix

The matrix A=(1236)A = \begin{pmatrix} 1 & 2 \\ 3 & 6 \end{pmatrix} is not invertible. Row reduction of the augmented matrix [A∣I][A|I] leads to an inconsistent system, specifically 0=−30 = -3 86.

  • The augmented matrix is (12∣1036∣01)\begin{pmatrix} 1 & 2 & | & 1 & 0 \\ 3 & 6 & | & 0 & 1 \end{pmatrix} 84.

  • Applying row operations (R2←R2−3R1R_2 \leftarrow R_2 - 3R_1) yields (12∣1000∣−31)\begin{pmatrix} 1 & 2 & | & 1 & 0 \\ 0 & 0 & | & -3 & 1 \end{pmatrix}.

  • The second row of the reduced matrix represents the equation 0a+0c=−30a + 0c = -3, which is 0=−30 = -3.

  • This inconsistency indicates that the system AX=IAX=I has no solution, meaning AA is singular (non-invertible) 86.

📝 The matrix A=(1236)A = \begin{pmatrix} 1 & 2 \\ 3 & 6 \end{pmatrix} is not invertible because row reduction of its augmented matrix [A∣I][A|I] leads to the inconsistent equation 0=−30 = -3 86.

13.3 Invertible Matrix Theorem (Version I) 87

The Invertible Matrix Theorem (IMT) provides several equivalent conditions for a square matrix to be invertible. If any one of these statements is true, all are true 87.

Statement

Condition

A is invertible

A has an inverse $A^{-1}$ such that $AX=I$

$AX=I$ has a solution

The system $AX=I$ is consistent

RREF(A) = I

The reduced row echelon form of A is the identity matrix

A is full rank

rank(A) = n, where n is the number of columns (or rows) in A

14. How to Compute the Inverse of a Matrix

14.1 Computing the inverse of a square matrix

To compute the inverse of a square matrix AA, denoted as A−1A^{-1}, we need to solve the matrix equation AX=IAX = I, where II is the identity matrix and XX represents the unknown inverse matrix. This process is analogous to solving systems of linear equations 88.

The method involves augmenting the matrix AA with the identity matrix II, forming [A∣I][A|I]. Then, Gauss-Jordan elimination is applied to transform the left side of the augmented matrix into the identity matrix.

If successful, the right side of the augmented matrix will then be the inverse matrix A−1A^{-1} 89.

The steps are as follows:

  • Rewrite the problem as an augmented matrix [A∣I][A|I].

  • Use Gauss-Jordan elimination to transform [A∣I][A|I] into its Reduced Row Echelon Form (RREF).

  • If the RREF of AA is the identity matrix II, then the RREF of the augmented matrix will be [I∣X∗][I|X^\ast], where X∗X^\ast is the inverse matrix A−1A^{-1}.

  • If the RREF of AA is not the identity matrix, then AA is not invertible 89.

📝 Compute the inverse of A=[20−41]A = \begin{bmatrix} 2 & 0 \\ -4 & 1 \end{bmatrix}.

We set up the augmented matrix [A∣I][A|I]: [20∣10−41∣01]\begin{bmatrix} 2 & 0 & | & 1 & 0 \\ -4 & 1 & | & 0 & 1 \end{bmatrix}

Apply row operations: R2+=2R1∼[20∣1001∣21]R2 += 2R1 \sim \begin{bmatrix} 2 & 0 & | & 1 & 0 \\ 0 & 1 & | & 2 & 1 \end{bmatrix}

(1/2)R1∼[10∣1/2001∣21](1/2)R1 \sim \begin{bmatrix} 1 & 0 & | & 1/2 & 0 \\ 0 & 1 & | & 2 & 1 \end{bmatrix}

The left side is now the identity matrix. Thus, the inverse is: A−1=[1/2021]A^{-1} = \begin{bmatrix} 1/2 & 0 \\ 2 & 1 \end{bmatrix} 90.

14.2 Activity 8

Let A=[5110]A = \begin{bmatrix} 5 & 1 \\ 1 & 0 \end{bmatrix}.

(a) Compute A−1A^{-1}. (b) Check by computing A−1AA^{-1}A.

(a) To solve AX=IAX = I, we set up the augmented matrix: [A∣I]=[51∣1010∣01][A|I] = \begin{bmatrix} 5 & 1 & | & 1 & 0 \\ 1 & 0 & | & 0 & 1 \end{bmatrix}

Apply row operations: R1+=−5R2∼[01∣1−510∣01]R1 += -5R2 \sim \begin{bmatrix} 0 & 1 & | & 1 & -5 \\ 1 & 0 & | & 0 & 1 \end{bmatrix} R1↔R2∼[10∣0101∣1−5]R1 \leftrightarrow R2 \sim \begin{bmatrix} 1 & 0 & | & 0 & 1 \\ 0 & 1 & | & 1 & -5 \end{bmatrix}

So, A−1=[011−5]A^{-1} = \begin{bmatrix} 0 & 1 \\ 1 & -5 \end{bmatrix} 91.

(b) Check by computing A−1AA^{-1}A: A−1A=[011−5][5110]=[0(5)+1(1)0(1)+1(0)1(5)+(−5)(1)1(1)+(−5)(0)]=[1001]=IA^{-1}A = \begin{bmatrix} 0 & 1 \\ 1 & -5 \end{bmatrix} \begin{bmatrix} 5 & 1 \\ 1 & 0 \end{bmatrix} = \begin{bmatrix} 0(5)+1(1) & 0(1)+1(0) \\ 1(5)+(-5)(1) & 1(1)+(-5)(0) \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I 91.

15. Invertible Matrix Theorem

15.1 Invertible matrix theorem

A square matrix AA is invertible if and only if its reduced row echelon form (RREF) is the identity matrix (InI_n), which implies it has full rank (nn). This condition is equivalent to the existence of a matrix XX such that AX=IAX = I, and also means that the equation Ax=bAx = b has a unique solution for every vector b∈Rnb \in \mathbb{R}^n 93.

The proof demonstrates the equivalences:

  • If AA is invertible, then X=A−1X = A^{-1} satisfies AX=IAX = I.

  • If AX=IAX = I has a solution, then AA and [A∣I][A|I] have the same rank. Since rank([A∣I])=rank(I)=n\text{rank}([A|I]) = \text{rank}(I) = n, it follows that rank(A)=n\text{rank}(A) = n, and RREF(A)=In\text{RREF}(A) = I_n.

  • If RREF(A)=In\text{RREF}(A) = I_n, then AA can be row-reduced to InI_n. This implies [A∣I][A|I] can be row-reduced to [I∣B][I|B] for some matrix BB. Thus, AB=IAB = I, meaning BB is the inverse of AA, and AA is invertible 94.

  • If AA is invertible, then for any b∈Rnb \in \mathbb{R}^n, multiplying Ax=bAx = b by A−1A^{-1} yields x=A−1bx = A^{-1}b, which is the unique solution 95.

The rank of an n×nn \times n matrix AA is nn if and only if its RREF is the n×nn \times n identity matrix 92.

📝 If AA is an n×nn \times n invertible matrix, then null(A)=0\text{null}(A) = 0. This is because rank(A)=n\text{rank}(A) = n, and the nullity is n−rank(A)=n−n=0n - \text{rank}(A) = n - n = 0 96.

15.2 Properties of invertible matrices

Several properties hold true for invertible matrices:

  • If AA is an invertible n×nn \times n matrix, then null(A)=0\text{null}(A) = 0.

  • The equation Ax=0Ax = 0 has only the trivial solution x=0x = 0 if AA is invertible.

  • The product of two n×nn \times n invertible matrices, ABAB, is also invertible 96.

📝 For A=I2A = I_2, the equation Ax=0Ax = 0 becomes I2x=0I_2x = 0, which simplifies to x=0x = 0. This is the trivial solution, confirming the property for this case 96.

15.3 Negation of the invertible matrix theorem 93 97

For an n×nn \times n matrix AA, the following statements are equivalent:

  • AA is singular (not invertible).

  • For every n×nn \times n matrix XX, AX≠IAX \neq I.

  • RREF(A)≠In\text{RREF}(A) \neq I_n and rank(A)<n\text{rank}(A) < n (i.e., AA is not full rank).

  • For each b∈Rnb \in \mathbb{R}^n, the equation Ax=bAx = b either has no solutions or infinitely many solutions 97.

Condition

Equivalent Statements for A ∈ Rⁿˣⁿ

A is invertible

AX = I has a solution; RREF(A) = I; rank(A) = n; Ax = b has a unique solution for every b.

A is singular

AX ≠ I for any X; RREF(A) ≠ I and rank(A) < n; Ax = b has no solution or infinitely many solutions for b.

📝 Let A=[110000001]A = \begin{bmatrix} 1 & 1 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix}. This matrix is in RREF. Its rank is 2, which is less than n=3n=3. Therefore, by the negation of the invertible matrix theorem, AA is singular 98.

16. Properties of matrix inverses

16.1 Properties of invertible matrices

If AA and BB are n×nn \times n invertible matrices, several key properties hold regarding their inverses. These properties are fundamental for manipulating matrix equations and understanding matrix algebra 99.

The properties of invertible matrices include:

  • Uniqueness of the inverse: For any invertible matrix AA, its inverse A−1A^{-1} is unique.

  • Inverse of an inverse: The inverse of the inverse of a matrix is the original matrix itself, i.e., (A−1)−1=A(A^{-1})^{-1} = A.

  • Inverse of a product: The inverse of the product of two invertible matrices AA and BB is the product of their inverses in reverse order, i.e., (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1} 99.

The proof for (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1} demonstrates this property by showing that when (B−1A−1)(B^{-1}A^{-1}) is multiplied by (AB)(AB), the result is the identity matrix II. (B−1A−1)(AB)=B−1(A−1A)B=B−1IB=B−1B=I(B^{-1}A^{-1})(AB) = B^{-1}(A^{-1}A)B = B^{-1}IB = B^{-1}B = I. This confirms that B−1A−1B^{-1}A^{-1} is indeed the inverse of ABAB 99.

Property

Statement

Uniqueness of inverse

$A^{-1}$ is unique

Inverse of an inverse

$(A^{-1})^{-1} = A$

Inverse of a product

$(AB)^{-1} = B^{-1}A^{-1}$

17. Matrix Transpose

17.1 Definition of matrix transpose

The transpose of an m×nm \times n matrix AA, denoted as A⊤A^\top, is an n×mn \times m matrix where each row of AA becomes a column in A⊤A^\top, and each column of AA becomes a row in A⊤A^\top 100.

17.2 Examples of matrix and vector transposes

The transpose operation can be applied to matrices and vectors. For a column vector, its transpose is a row vector, and vice versa 101.

Original Matrix/Vector

Transpose

$A:=\n\begin{bmatrix}\n-1 & -2 & -3 \\ 3 & -3 & 0 \\ \end{bmatrix}$

$A^\top = \begin{bmatrix}\n-1 & 3 \\ -2 & -3 \\ -3 & 0 \\ \end{bmatrix}$

$B:=\n\begin{bmatrix}\n10 & 5 & 2 \\ 20 & 3 & 30 \\ \end{bmatrix}$

$B^\top = \begin{bmatrix}\n10 & 20 \\ 5 & 3 \\ 2 & 30 \\ \end{bmatrix}$

$x:= \begin{bmatrix} 3 \\ 8 \\ 5 \\ -1 \end{bmatrix}$

$x^\top = \begin{bmatrix} 3 & 8 & 5 & -1 \end{bmatrix}$

$y:= \begin{bmatrix} 8 \\ 2 \\ -1 \end{bmatrix}$

$y^\top = \begin{bmatrix} 8 & 2 & -1 \end{bmatrix}$

17.3 Symmetric matrices

A matrix AA is defined as symmetric if it is equal to its transpose, i.e., A=A⊤A = A^\top. This property implies that the matrix must be square 102.

Example. Fill in the missing entries such that the matrix is symmetric. ⎣ −2 5 6 9 ⎦ ⎣ 5 −2 5 ⋆ 6 −2 6 9 ⎦ (where ⋆can be anything) 102.

17.4 Inner product

The inner product of two vectors x⃗\vec{x} and y⃗\vec{y} in Rn\mathbb{R}^n is calculated as x⃗⊤y⃗\vec{x}^\top\vec{y}. This operation results in a scalar value obtained by summing the products of corresponding elements of the two vectors 103.

Properties of the inner product:

  • x⃗⊤y⃗\vec{x}^\top\vec{y} is a scalar.

  • The inner product is a symmetric operator: x⃗⊤y⃗=y⃗⊤x⃗\vec{x}^\top\vec{y} = \vec{y}^\top\vec{x} 103.

Example. Compute the inner product of x⃗=[123]\vec{x} = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix} and y⃗=[−250]\vec{y} = \begin{bmatrix} -2 \\ 5 \\ 0 \end{bmatrix}. x⃗⊤y⃗=[123][−250]=(1)(−2)+(2)(5)+(3)(0)=−2+10+0=8\vec{x}^\top\vec{y} = \begin{bmatrix} 1 & 2 & 3 \end{bmatrix} \begin{bmatrix} -2 \\ 5 \\ 0 \end{bmatrix} = (1)(-2) + (2)(5) + (3)(0) = -2 + 10 + 0 = 8 104.

📝 The inner product of x⃗=[123]\vec{x} = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix} and y⃗=[−250]\vec{y} = \begin{bmatrix} -2 \\ 5 \\ 0 \end{bmatrix} is x⃗⊤y⃗=(1)(−2)+(2)(5)+(3)(0)=8\vec{x}^\top\vec{y} = (1)(-2) + (2)(5) + (3)(0) = 8 104.

17.5 Outer product

The outer product of two vectors x⃗\vec{x} and y⃗\vec{y} in Rn\mathbb{R}^n is denoted as x⃗y⃗⊤\vec{x}\vec{y}^\top. This operation results in an n×nn \times n matrix where each element (i,j)(i, j) is the product of the ii-th element of x⃗\vec{x} and the jj-th element of y⃗\vec{y} 105.

Properties of outer products:

  • The outer product x⃗y⃗⊤\vec{x}\vec{y}^\top results in an n×nn \times n matrix.

  • The outer product is not symmetric: x⃗y⃗⊤≠y⃗x⃗⊤\vec{x}\vec{y}^\top \neq \vec{y}\vec{x}^\top 105.

Example. Let x⃗=[30−1]\vec{x} = \begin{bmatrix} 3 \\ 0 \\ -1 \end{bmatrix} and y⃗=[134]\vec{y} = \begin{bmatrix} 1 \\ 3 \\ 4 \end{bmatrix}.

Find the outer product of x⃗\vec{x} and y⃗\vec{y}. x⃗y⃗⊤=[30−1][134]=[3(1)3(3)3(4)0(1)0(3)0(4)−1(1)−1(3)−1(4)]=[3912000−1−3−4]\vec{x}\vec{y}^\top = \begin{bmatrix} 3 \\ 0 \\ -1 \end{bmatrix} \begin{bmatrix} 1 & 3 & 4 \end{bmatrix} = \begin{bmatrix} 3(1) & 3(3) & 3(4) \\ 0(1) & 0(3) & 0(4) \\ -1(1) & -1(3) & -1(4) \end{bmatrix} = \begin{bmatrix} 3 & 9 & 12 \\ 0 & 0 & 0 \\ -1 & -3 & -4 \end{bmatrix} 106.

17.6 Comparison of inner and outer products

The key differences between inner and outer products lie in the placement of the transpose operator and the resulting dimensions of the output 106.

Feature

Inner Product

Outer Product

Transpose Placement

Inside: $x^\top y$

Outside: $xy^\top$

Resulting Size

Scalar (smaller/more inward)

$n \times n$ matrix (large/more outward)

18. Properties of Matrix Transposes

18.1 Properties of matrix transposes

The transpose of a matrix is a fundamental operation with several key properties that govern its interaction with other matrix operations. These properties are essential for simplifying matrix expressions and solving linear algebra problems 107.

The properties of matrix transposes are as follows:

  • Addition: The transpose of a sum of matrices is the sum of their transposes.

  • Multiplication: The transpose of a product of matrices is the product of their transposes in reverse order.

  • Scalar Multiplication: The transpose of a scalar multiplied by a matrix is the scalar multiplied by the transpose of the matrix.

  • Double Transposition: Transposing a matrix twice returns the original matrix 107.

Property

Description

(𝐴+ 𝐵)⊤= 𝐴⊤+ 𝐵⊤

The transpose of the sum of two matrices is equal to the sum of their transposes.

(𝐴𝐵)⊤= 𝐵⊤𝐴⊤

The transpose of the product of two matrices is equal to the product of their transposes in reverse order.

(𝑐𝐴)⊤= 𝑐𝐴⊤

The transpose of a scalar multiple of a matrix is the scalar multiple of the transpose of the matrix.

(𝐴⊤)⊤= 𝐴

Transposing a matrix twice results in the original matrix.

19. Triangular Matrices

19.1 Diagonal entries

The diagonal entries of a matrix are those where the row number equals the column number. For a matrix A=[aij]A = [a_{ij}], these are the entries a11,a22,…,anna_{11}, a_{22}, \dots, a_{nn}.

The collection of these entries forms the diagonal of the matrix 108.

19.2 Upper and lower triangular matrices

A matrix is classified as upper triangular if all entries below the main diagonal are zero. Conversely, a matrix is lower triangular if all entries above the main diagonal are zero.

Upper triangular matrices are also known as right triangular, and lower triangular matrices are known as left triangular 109.

Type

Condition

Upper triangular

a_ij = 0 for i > j

Lower triangular

a_ij = 0 for i < j

19.3 Properties of triangular matrices

The product of two lower triangular matrices is also a lower triangular matrix. Similarly, the product of two upper triangular matrices results in an upper triangular matrix.

If a lower triangular matrix is invertible, its inverse is also lower triangular. The same property holds for invertible upper triangular matrices 111.

19.4 Example: Product and inverse of upper triangular matrices

Consider the upper triangular matrices AA and BB. Their product ABAB is also an upper triangular matrix.

Furthermore, the inverse of an upper triangular matrix, B−1B^{-1}, is also upper triangular 112 113.

📝 Let A=(123056009)A = \begin{pmatrix} 1 & 2 & 3 \\ 0 & 5 & 6 \\ 0 & 0 & 9 \end{pmatrix} and B=(111011001)B = \begin{pmatrix} 1 & 1 & 1 \\ 0 & 1 & 1 \\ 0 & 0 & 1 \end{pmatrix}.

(a) Compute ABAB. AB=(11+21+2+3055+6009)=(1360511009)AB = \begin{pmatrix} 1 & 1+2 & 1+2+3 \\ 0 & 5 & 5+6 \\ 0 & 0 & 9 \end{pmatrix} = \begin{pmatrix} 1 & 3 & 6 \\ 0 & 5 & 11 \\ 0 & 0 & 9 \end{pmatrix}. The result is upper triangular.

(b) Compute B−1B^{-1}. Augmenting BB with the identity matrix [B∣I][B|I] and performing row operations yields: (111∣100011∣010001∣001)∼(110∣10−1010∣01−1001∣001)∼(100∣1−10010∣01−1001∣001)\begin{pmatrix} 1 & 1 & 1 & | & 1 & 0 & 0 \\ 0 & 1 & 1 & | & 0 & 1 & 0 \\ 0 & 0 & 1 & | & 0 & 0 & 1 \end{pmatrix} \sim \begin{pmatrix} 1 & 1 & 0 & | & 1 & 0 & -1 \\ 0 & 1 & 0 & | & 0 & 1 & -1 \\ 0 & 0 & 1 & | & 0 & 0 & 1 \end{pmatrix} \sim \begin{pmatrix} 1 & 0 & 0 & | & 1 & -1 & 0 \\ 0 & 1 & 0 & | & 0 & 1 & -1 \\ 0 & 0 & 1 & | & 0 & 0 & 1 \end{pmatrix}. Thus, B−1=(1−1001−1001)B^{-1} = \begin{pmatrix} 1 & -1 & 0 \\ 0 & 1 & -1 \\ 0 & 0 & 1 \end{pmatrix}. 112 113.

20. Using LU Decomposition to Solve Linear Systems

20.1 LU decomposition definition

LU decomposition is a method for factoring an n×nn \times n matrix AA into the product of two n×nn \times n matrices, LL and UU, where LL is a lower triangular matrix and UU is an upper triangular matrix, such that A=LUA = LU. This decomposition is particularly useful for efficiently solving systems of linear equations of the form Ax=bAx = b for multiple right-hand side vectors bb 114.

The process involves rewriting the equation Ax=bAx = b as (LU)x=b(LU)x = b, which can be rearranged to L(Ux)=bL(Ux) = b. By defining a new vector y:=Uxy:= Ux, the problem is split into two simpler triangular systems: Ly=bLy = b and Ux=yUx = y.

The first system, Ly=bLy = b, is solved for yy using forward substitution, and then the second system, Ux=yUx = y, is solved for xx using backward substitution 114.

20.2 Solving linear systems with LU decomposition

Solving a system of linear equations using LU decomposition offers a significant computational advantage once the decomposition is performed. While the initial LU factorization of an n×nn \times n matrix typically requires approximately n3n^3 arithmetic operations (similar to Gaussian elimination), solving for a new right-hand side vector bb requires only about n2n^2 operations.

This makes it highly efficient when multiple systems with the same coefficient matrix AA but different bb vectors need to be solved 115.

The process involves two main steps after the A=LUA=LU factorization is known:

  1. Solve for yy: Solve the lower triangular system Ly=bLy = b for the vector yy. This is done using forward substitution.

  2. Solve for xx: Solve the upper triangular system Ux=yUx = y for the vector xx, using the previously found vector yy. This is done using backward substitution 115.

20.3 Example of solving Ax = b

Consider the matrix AA and its LU decomposition: A=[238411−6−1−10−11]A = \begin{bmatrix} 2 & 3 & 8 \\ 4 & 11 & -6 \\ -1 & -10 & -11 \end{bmatrix}, L=[100210−121]L = \begin{bmatrix} 1 & 0 & 0 \\ 2 & 1 & 0 \\ -1 & 2 & 1 \end{bmatrix}, U=[23805−2200−1]U = \begin{bmatrix} 2 & 3 & 8 \\ 0 & 5 & -22 \\ 0 & 0 & -1 \end{bmatrix}.

We want to solve Ax=bAx = b for b=[123]b = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix} 115.

First, we define y:=Uxy:= Ux and solve the system Ly=bLy = b: [100210−121][y1y2y3]=[123]\begin{bmatrix} 1 & 0 & 0 \\ 2 & 1 & 0 \\ -1 & 2 & 1 \end{bmatrix} \begin{bmatrix} y_1 \\ y_2 \\ y_3 \end{bmatrix} = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix} 115.

Using forward substitution:

  • From the first equation: y1=1y_1 = 1.

  • From the second equation: 2y1+y2=2  ⟹  2(1)+y2=2  ⟹  y2=02y_1 + y_2 = 2 \implies 2(1) + y_2 = 2 \implies y_2 = 0.

  • From the third equation: −y1+2y2+y3=3  ⟹  −(1)+2(0)+y3=3  ⟹  y3=4-y_1 + 2y_2 + y_3 = 3 \implies -(1) + 2(0) + y_3 = 3 \implies y_3 = 4 116.

So, y=[104]y = \begin{bmatrix} 1 \\ 0 \\ 4 \end{bmatrix} 116.

Next, we solve the system Ux=yUx = y for xx: [23805−2200−1][x1x2x3]=[104]\begin{bmatrix} 2 & 3 & 8 \\ 0 & 5 & -22 \\ 0 & 0 & -1 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} 1 \\ 0 \\ 4 \end{bmatrix} 117.

Using backward substitution:

  • From the third equation: −x3=4  ⟹  x3=−4-x_3 = 4 \implies x_3 = -4.

  • From the second equation: 5x2−22x3=0  ⟹  5x2−22(−4)=0  ⟹  5x2+88=0  ⟹  x2=−88/55x_2 - 22x_3 = 0 \implies 5x_2 - 22(-4) = 0 \implies 5x_2 + 88 = 0 \implies x_2 = -88/5.

  • From the first equation: 2x1+3x2+8x3=1  ⟹  2x1+3(−88/5)+8(−4)=1  ⟹  2x1−264/5−32=1  ⟹  2x1=1+32+264/5=33+264/5=(165+264)/5=429/5  ⟹  x1=429/102x_1 + 3x_2 + 8x_3 = 1 \implies 2x_1 + 3(-88/5) + 8(-4) = 1 \implies 2x_1 - 264/5 - 32 = 1 \implies 2x_1 = 1 + 32 + 264/5 = 33 + 264/5 = (165 + 264)/5 = 429/5 \implies x_1 = 429/10 117.

Therefore, x=[429/10−88/5−4]x = \begin{bmatrix} 429/10 \\ -88/5 \\ -4 \end{bmatrix} 117.

21. Elementary Row Matrices

21.1 Elementary Row Operations and Matrices

Elementary row operations are fundamental transformations applied to matrices. Each of these operations can be represented by multiplying the original matrix by a specific matrix called an elementary row matrix.

These matrices are crucial for understanding matrix transformations and decompositions 118.

There are three types of elementary row operations, each corresponding to a unique elementary row matrix:

  • Row switching: Multiplying by E(Ri↔Rj)E(R_i \leftrightarrow R_j) switches rows ii and jj.

  • Scalar multiplication: Multiplying by E(cRi)E(cR_i) multiplies row ii by a scalar cc.

  • Row addition: Multiplying by E(Ri+=cRj)E(R_i += cR_j) adds cc times row jj to row ii 118.

Operation

Elementary Row Matrix

Switch rows $i$ and $j$ ($R_i \leftrightarrow R_j$)

Multiply by $E(R_i \leftrightarrow R_j)$

Multiply row $i$ by scalar $c$ ($cR_i$)

Multiply by $E(cR_i)$

Add $c$ times row $j$ to row $i$ ($R_i += cR_j$)

Multiply by $E(R_i += cR_j)$

21.2 Example of applying elementary row matrices

To illustrate, consider matrix A=[34−27]A = \begin{bmatrix} 3 \\ 4 \\ -2 \\ 7 \end{bmatrix}.

  • Applying E(5R3)E(5R_3) to AA results in multiplying the third row of AA by 5: E(5R3)A=[100010005][34−27]=[34355]E(5R_3)A = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 5 \end{bmatrix} \begin{bmatrix} 3 \\ 4 \\ -2 \\ 7 \end{bmatrix} = \begin{bmatrix} 3 \\ 4 \\ 35 \\ 5 \end{bmatrix} 119.

  • Applying E(R1↔R2)E(R_1 \leftrightarrow R_2) to AA switches the first and second rows: E(R1↔R2)A=[010100001][34−27]=[−237]E(R_1 \leftrightarrow R_2)A = \begin{bmatrix} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} 3 \\ 4 \\ -2 \\ 7 \end{bmatrix} = \begin{bmatrix} -2 \\ 3 \\ 7 \end{bmatrix} 120.

📝 Applying E(5R3)E(5R_3) to matrix A=[34−27]A = \begin{bmatrix} 3 \\ 4 \\ -2 \\ 7 \end{bmatrix} results in [34355]\begin{bmatrix} 3 \\ 4 \\ 35 \\ 5 \end{bmatrix} 119.

21.3 Generating Elementary Row Matrices from the Identity Matrix

An elementary row matrix E(⋆)E(\star) is generated by performing the corresponding elementary row operation ⋆\star on the identity matrix II. This means that I∼⋆E(⋆)I \stackrel{\star}{\sim} E(\star) 121.

21.4 Examples of generating elementary row matrices

Let's generate 4x4 elementary row matrices for specific operations:

  • For the operation R1↔R4R_1 \leftrightarrow R_4, we swap the first and fourth rows of I4I_4: I4=[1000010000100001]∼R1↔R4[0001010000101000]=E(R1↔R4)I_4 = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} \stackrel{R_1 \leftrightarrow R_4}{\sim} \begin{bmatrix} 0 & 0 & 0 & 1 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 1 & 0 & 0 & 0 \end{bmatrix} = E(R_1 \leftrightarrow R_4).

  • For the operation −3R4-3R_4, we multiply the fourth row of I4I_4 by -3: I4=[1000010000100001]∼−3R4[100001000010000−3]=E(−3R4)I_4 = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} \stackrel{-3R_4}{\sim} \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & -3 \end{bmatrix} = E(-3R_4).

  • For the operation R1+=−2R2R_1 += -2R_2, we add -2 times the second row to the first row of I4I_4: I4=[1000010000100001]∼R1+=−2R2[1−200010000100001]=E(R1+=−2R2)I_4 = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} \stackrel{R_1 += -2R_2}{\sim} \begin{bmatrix} 1 & -2 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} = E(R_1 += -2R_2) 121.

📝 For the operation R1+=−2R2R_1 += -2R_2 on a 4x4 identity matrix, the resulting elementary row matrix is E(R1+=−2R2)=[1−200010000100001]E(R_1 += -2R_2) = \begin{bmatrix} 1 & -2 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} 121.

21.5 Activity: Creating 3x3 elementary row matrices

Let's create 3x3 elementary row matrices for the following operations:

  • 4R24R_2: I3=[100010001]∼4R2[100040001]=E(4R2)I_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} \stackrel{4R_2}{\sim} \begin{bmatrix} 1 & 0 & 0 \\ 0 & 4 & 0 \\ 0 & 0 & 1 \end{bmatrix} = E(4R_2).

  • R2↔R3R_2 \leftrightarrow R_3: I3=[100010001]∼R2↔R3[100001010]=E(R2↔R3)I_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} \stackrel{R_2 \leftrightarrow R_3}{\sim} \begin{bmatrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & 1 & 0 \end{bmatrix} = E(R_2 \leftrightarrow R_3).

  • R3+=5R1R_3 += 5R_1: I3=[100010001]∼R3+=5R1[100010501]=E(R3+=5R1)I_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} \stackrel{R_3 += 5R_1}{\sim} \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 5 & 0 & 1 \end{bmatrix} = E(R_3 += 5R_1) 122.

21.6 Example: Applying row addition and finding the matrix

Consider matrix A=[1−12052]A = \begin{bmatrix} 1 & -1 \\ 2 & 0 \\ 5 & 2 \end{bmatrix}.

  • Applying R2+=3R1R_2 += 3R_1 to AA: A=[1−12052]∼R2+=3R1[1−12+3(1)0+3(−1)52]=[1−15−352]A = \begin{bmatrix} 1 & -1 \\ 2 & 0 \\ 5 & 2 \end{bmatrix} \stackrel{R_2 += 3R_1}{\sim} \begin{bmatrix} 1 & -1 \\ 2+3(1) & 0+3(-1) \\ 5 & 2 \end{bmatrix} = \begin{bmatrix} 1 & -1 \\ 5 & -3 \\ 5 & 2 \end{bmatrix}.

  • The elementary row matrix for R2+=3R1R_2 += 3R_1 is found by applying the operation to I2I_2: I2=[1001]∼R2+=3R1[1031]=E(R2+=3R1)I_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \stackrel{R_2 += 3R_1}{\sim} \begin{bmatrix} 1 & 0 \\ 3 & 1 \end{bmatrix} = E(R_2 += 3R_1).

  • Multiplying E(R2+=3R1)E(R_2 += 3R_1) by AA: E(R2+=3R1)A=[1031][1−12052]=[1−13(1)+1(2)3(−1)+1(0)3(5)+1(2)]=[1−15−3172]E(R_2 += 3R_1)A = \begin{bmatrix} 1 & 0 \\ 3 & 1 \end{bmatrix} \begin{bmatrix} 1 & -1 \\ 2 & 0 \\ 5 & 2 \end{bmatrix} = \begin{bmatrix} 1 & -1 \\ 3(1)+1(2) & 3(-1)+1(0) \\ 3(5)+1(2) \end{bmatrix} = \begin{bmatrix} 1 & -1 \\ 5 & -3 \\ 17 & 2 \end{bmatrix} 123.

21.7 Inverse Elementary Row Matrices

Every elementary row operation has a corresponding inverse operation that undoes the change. If an operation transforms matrix AA to BB (A∼⋆BA \stackrel{\star}{\sim} B), then the inverse operation ⋆−1\star^{-1} transforms BB back to AA (B∼⋆−1AB \stackrel{\star^{-1}}{\sim} A) 124.

21.8 Identifying inverse operations

  • The inverse of multiplying row ii by cc (cRicR_i) is multiplying row ii by 1/c1/c ((1/c)Ri(1/c)R_i).

  • The inverse of switching rows ii and jj (Ri↔RjR_i \leftrightarrow R_j) is switching rows ii and jj again (Ri↔RjR_i \leftrightarrow R_j).

  • The inverse of adding cc times row jj to row ii (Ri+=cRjR_i += cR_j) is subtracting cc times row jj from row ii (Ri+=−cRjR_i += -cR_j) 124.

21.9 Relationship between inverse operations and matrices

For any elementary row operation ⋆\star, the elementary row matrix corresponding to its inverse operation is the inverse of the elementary row matrix for ⋆\star: E(⋆−1)=E(⋆)−1E(\star^{-1}) = E(\star)^{-1}. This implies that every elementary row matrix is invertible 125.

However, an elementary row matrix like E(0R2)E(0R_2) is not invertible because it is singular. Multiplying a row by zero results in a matrix with rank 1, which is less than the number of columns indicating it's not invertible 2 125.

21.10 Example: Inverse elementary row matrices and their product

Consider the operation R2+=cR1R_2 += cR_1 for 2x2 matrices.

  • The elementary row matrix is E(R2+=cR1)=[10c1]E(R_2 += cR_1) = \begin{bmatrix} 1 & 0 \\ c & 1 \end{bmatrix}.

  • The inverse operation is R2+=−cR1R_2 += -cR_1, and its corresponding matrix is E((R2+=cR1)−1)=[10−c1]E((R_2 += cR_1)^{-1}) = \begin{bmatrix} 1 & 0 \\ -c & 1 \end{bmatrix}.

  • The product of these two matrices yields the identity matrix: E(R2+=cR1)E(R2+=−cR1)=[10c1][10−c1]=[1001]=I2E(R_2 += cR_1) E(R_2 += -cR_1) = \begin{bmatrix} 1 & 0 \\ c & 1 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ -c & 1 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I_2 126.

21.11 Example: Undoing an operation with the inverse matrix

Consider matrix A=[4−868]A = \begin{bmatrix} 4 & -8 \\ 6 & 8 \end{bmatrix}.

  • Applying R2+=2R1R_2 += 2R_1 to AA: A=[4−868]∼R2+=2R1[4−86+2(4)8+2(−8)]=[4−814−8]=E1AA = \begin{bmatrix} 4 & -8 \\ 6 & 8 \end{bmatrix} \stackrel{R_2 += 2R_1}{\sim} \begin{bmatrix} 4 & -8 \\ 6+2(4) & 8+2(-8) \end{bmatrix} = \begin{bmatrix} 4 & -8 \\ 14 & -8 \end{bmatrix} = E_1A, where E1=E(R2+=2R1)E_1 = E(R_2 += 2R_1).

  • The inverse operation is R2+=−2R1R_2 += -2R_1, and its matrix is E1−1=E(R2+=−2R1)=[10−21]E_1^{-1} = E(R_2 += -2R_1) = \begin{bmatrix} 1 & 0 \\ -2 & 1 \end{bmatrix}.

  • Left-multiplying the result by E1−1E_1^{-1} restores the original matrix AA: E1−1(E1A)=[10−21][4−814−8]=[4−8−2(4)+1(14)−2(−8)+1(−8)]=[4−868]=AE_1^{-1} (E_1A) = \begin{bmatrix} 1 & 0 \\ -2 & 1 \end{bmatrix} \begin{bmatrix} 4 & -8 \\ 14 & -8 \end{bmatrix} = \begin{bmatrix} 4 & -8 \\ -2(4)+1(14) & -2(-8)+1(-8) \end{bmatrix} = \begin{bmatrix} 4 & -8 \\ 6 & 8 \end{bmatrix} = A 127.

📝 To undo the operation R2+=2R1R_2 += 2R_1 on matrix A=[4−868]A = \begin{bmatrix} 4 & -8 \\ 6 & 8 \end{bmatrix}, we left-multiply the result by the inverse elementary row matrix E(R2+=−2R1)=[10−21]E(R_2 += -2R_1) = \begin{bmatrix} 1 & 0 \\ -2 & 1 \end{bmatrix}, restoring the original matrix AA 127.

21.12 Invertible Matrix Theorem (Version III)

A key consequence of elementary row matrices is their connection to matrix invertibility. For a square matrix A∈Rn×nA \in \mathbb{R}^{n \times n}, the following statements are equivalent 128:

  • AA is invertible.

  • AA can be written as a product of elementary row matrices.

This equivalence arises because AA is invertible if and only if its Reduced Row Echelon Form (RREF) is the identity matrix (II). If A∼IA \sim I, it means a sequence of elementary row operations can transform AA into II.

Each operation corresponds to multiplication by an elementary row matrix. Therefore, A=En⋯E3E2E1I=En⋯E3E2E1A = E_n \cdots E_3 E_2 E_1 I = E_n \cdots E_3 E_2 E_1, where EiE_i are elementary row matrices 128.

Condition for $A \in \mathbb{R}^{n \times n}$

Equivalent Statements

$A$ is invertible

$A$ can be written as a product of elementary row matrices

$A$ is invertible

RREF($A$) = $I$

$A$ is invertible

$A \sim I$

$A$ is invertible

There exists a sequence of elementary row operations transforming $A$ into $I$

22. Computing LU Decomposition

22.1 Overview of LU Decomposition

LU decomposition is a method to factorize an invertible matrix AA into the product of a lower triangular matrix LL and an upper triangular matrix UU. This process is achieved by applying a sequence of elementary row operations to transform AA into its row echelon form (REF), which becomes UU.

The corresponding lower triangular matrix LL is constructed from the inverses of the elementary row matrices used in the transformation. This decomposition is particularly useful in solving systems of linear equations and inverting matrices 129.

22.2 Constructing L and U

The LU decomposition of an n×nn \times n invertible matrix AA is found by applying elementary row operations to transform AA into its row echelon form (REF), denoted as UU. This transformation uses lower triangular elementary row matrices E1,E2,…,ENE_1, E_2, \dots, E_N such that U=ENEN−1…E2E1AU = E_N E_{N-1} \dots E_2 E_1 A.

The lower triangular matrix LL is then formed by the inverses of these elementary matrices: L=E1−1E2−1…EN−1L = E_1^{-1} E_2^{-1} \dots E_N^{-1}. The product LULU reconstructs the original matrix AA 129.

22.3 Properties of L and U

  • U is upper triangular: The matrix UU is in row echelon form, which by definition is upper triangular.

  • L is lower triangular: Each elementary row matrix EkE_k used in the transformation is lower triangular. The inverse of a lower triangular matrix (Ek−1E_k^{-1}) is also lower triangular. Therefore, the product of these inverse matrices, LL, is also lower triangular.

  • A = LU: The product of LL and UU yields the original matrix AA. This is shown by substituting the definitions of LL and UU: LU=(E1−1E2−1…EN−1)(ENEN−1…E1A)=ALU = (E_1^{-1} E_2^{-1} \dots E_N^{-1})(E_N E_{N-1} \dots E_1 A) = A, as the intermediate terms cancel out due to the property (Ek−1Ek)=I(E_k^{-1} E_k) = I (identity matrix) 130.

22.4 Permitted Elementary Row Operations

To ensure that the resulting matrix LL is lower triangular, specific elementary row operations are permitted during the transformation of AA to UU. These operations must maintain the lower triangular property of the elementary matrices used 131.

  • Allowed operations:

    • Adding a multiple of a higher row to a lower row (e.g., R3+=−5R1R_3 \mathrel{+}= -5R_1). The corresponding elementary matrix is lower triangular.

    • Scaling a row (e.g., 8R28R_2). The corresponding elementary matrix is lower triangular.

  • Forbidden operations:

    • Adding a multiple of a lower row to a higher row.

    • Switching rows 131.

22.5 Example: 2x2 Matrix LU Decomposition

To compute the LU decomposition of matrix A=[21−63]A = \begin{bmatrix} 2 & 1 \\ -6 & 3 \end{bmatrix}, we apply row operations to transform it into an upper triangular matrix UU 132.

  1. Start with A=IAA = IA: [21−63]=[1001][21−63]\begin{bmatrix} 2 & 1 \\ -6 & 3 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 2 & 1 \\ -6 & 3 \end{bmatrix}

  2. Apply the operation R2+=3R1R_2 \mathrel{+}= 3R_1 to the right side. This operation corresponds to multiplying by the elementary matrix E1=[1031]E_1 = \begin{bmatrix} 1 & 0 \\ 3 & 1 \end{bmatrix}. [21−63]=[1031][2106]\begin{bmatrix} 2 & 1 \\ -6 & 3 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 3 & 1 \end{bmatrix} \begin{bmatrix} 2 & 1 \\ 0 & 6 \end{bmatrix}

  3. The resulting matrix UU is [2106]\begin{bmatrix} 2 & 1 \\ 0 & 6 \end{bmatrix}. The matrix LL is the inverse of E1E_1, which is L=E1−1=[10−31]L = E_1^{-1} = \begin{bmatrix} 1 & 0 \\ -3 & 1 \end{bmatrix}. Thus, A=LU=[10−31][2106]A = LU = \begin{bmatrix} 1 & 0 \\ -3 & 1 \end{bmatrix} \begin{bmatrix} 2 & 1 \\ 0 & 6 \end{bmatrix} 132.

22.6 Example: 4x4 Matrix LU Decomposition

To compute the LU decomposition of the matrix A=[24354−7−6−832295−8−214]A = \begin{bmatrix} 2 & 4 & 3 & 5 \\ 4 & -7 & -6 & -8 \\ 3 & 2 & 2 & 9 \\ 5 & -8 & -2 & 14 \end{bmatrix}, we perform row operations to obtain an upper triangular matrix UU 133.

  1. Start with A=IAA = IA: A=[24354−7−6−832295−8−214]A = \begin{bmatrix} 2 & 4 & 3 & 5 \\ 4 & -7 & -6 & -8 \\ 3 & 2 & 2 & 9 \\ 5 & -8 & -2 & 14 \end{bmatrix}

  2. Apply R2+=−2R1R_2 \mathrel{+}= -2R_1, R3+=−32R1R_3 \mathrel{+}= -\frac{3}{2}R_1, and R4+=−52R1R_4 \mathrel{+}= -\frac{5}{2}R_1. The pivot is 2. The matrix becomes: [24350−15−12−180−4−5/23/20−18−19/213/2]\begin{bmatrix} 2 & 4 & 3 & 5 \\ 0 & -15 & -12 & -18 \\ 0 & -4 & -5/2 & 3/2 \\ 0 & -18 & -19/2 & 13/2 \end{bmatrix}

  3. Apply R3+=415R2R_3 \mathrel{+}= \frac{4}{15}R_2 and R4+=1815R2R_4 \mathrel{+}= \frac{18}{15}R_2. The pivot is -15. The matrix becomes: [24350−15−12−1800−3/5−3/500−3/5−7/5]\begin{bmatrix} 2 & 4 & 3 & 5 \\ 0 & -15 & -12 & -18 \\ 0 & 0 & -3/5 & -3/5 \\ 0 & 0 & -3/5 & -7/5 \end{bmatrix}

  4. Apply R4+=R3R_4 \mathrel{+}= R_3. The pivot is -3/5. The matrix becomes: [24350−15−12−1800−3/5−3/5000−4/5]\begin{bmatrix} 2 & 4 & 3 & 5 \\ 0 & -15 & -12 & -18 \\ 0 & 0 & -3/5 & -3/5 \\ 0 & 0 & 0 & -4/5 \end{bmatrix} This is the upper triangular matrix UU 133 134.

The corresponding lower triangular matrix LL is constructed from the multipliers used in the row operations: L=[100021003/24/15105/218/1511]L = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 2 & 1 & 0 & 0 \\ 3/2 & 4/15 & 1 & 0 \\ 5/2 & 18/15 & 1 & 1 \end{bmatrix} 134.

The decomposition is A=LUA = LU 134.

📝 The LU decomposition of A=[24354−7−6−832295−8−214]A = \begin{bmatrix} 2 & 4 & 3 & 5 \\ 4 & -7 & -6 & -8 \\ 3 & 2 & 2 & 9 \\ 5 & -8 & -2 & 14 \end{bmatrix} results in L=[100021003/24/15105/218/1511]L = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 2 & 1 & 0 & 0 \\ 3/2 & 4/15 & 1 & 0 \\ 5/2 & 18/15 & 1 & 1 \end{bmatrix} and U=[24350−15−12−1800−3/5−3/5000−4/5]U = \begin{bmatrix} 2 & 4 & 3 & 5 \\ 0 & -15 & -12 & -18 \\ 0 & 0 & -3/5 & -3/5 \\ 0 & 0 & 0 & -4/5 \end{bmatrix} 134.

23. PLU Decomposition

23.1 Permutation matrices

A permutation matrix PP is a square matrix that results from interchanging rows of an identity matrix. It has exactly one 1 in each row and each column, with all other entries being zero.

Left-multiplying a matrix by a permutation matrix PP effectively reorders the rows of that matrix according to the permutation defined by PP 136.

A permutation matrix PP is used to reorder rows.

  • It has exactly one 1 in each row.

  • It has exactly one 1 in each column.

  • All other entries are zero 136.

23.2 PLU decomposition definition

A PLU decomposition of a matrix AA is a factorization into three matrices: PP, LL, and UU, such that PA=LUPA = LU.

  • PP is a permutation matrix.

  • LL is a lower triangular matrix.

  • UU is an upper triangular matrix.

Every matrix has a PLU factorization. This decomposition is particularly useful when a standard LU decomposition is not possible due to zero entries on the diagonal that prevent row reduction without row swaps 138.

23.3 Computing a PLU decomposition

To compute the PLU decomposition of a matrix AA, one first identifies if row swaps are necessary to proceed with Gaussian elimination. If a zero is encountered on the diagonal that prevents elimination, a permutation matrix PP is constructed to perform the necessary row swap.

The matrix PAPA is then subjected to LU decomposition. The resulting LL and UU matrices, along with the initial permutation matrix PP, form the PLU decomposition 139.

Example: Compute the PLU decomposition of A=[311−20−223−3]A = \begin{bmatrix} 3 & 1 & 1 \\ -2 & 0 & -2 \\ 2 & 3 & -3 \end{bmatrix}

  1. Identify the need for permutation: The (1,1) entry is 3, but if we were to proceed with standard LU decomposition, we might encounter issues. The example indicates a need for row swapping.

  2. Apply permutation: Let P=E(R1↔R2)=[010100001]P = E(R1 \leftrightarrow R2) = \begin{bmatrix} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix}. PA=[010100001][311−20−223−3]=[−20−231123−3]PA = \begin{bmatrix} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} 3 & 1 & 1 \\ -2 & 0 & -2 \\ 2 & 3 & -3 \end{bmatrix} = \begin{bmatrix} -2 & 0 & -2 \\ 3 & 1 & 1 \\ 2 & 3 & -3 \end{bmatrix}.

  3. Perform LU decomposition on PA: Start with PAPA and apply row operations to get an upper triangular matrix UU. [−20−231123−3]\begin{bmatrix} -2 & 0 & -2 \\ 3 & 1 & 1 \\ 2 & 3 & -3 \end{bmatrix} R2←R2+32R1R2 \leftarrow R2 + \frac{3}{2}R1: [−20−201−223−3]\begin{bmatrix} -2 & 0 & -2 \\ 0 & 1 & -2 \\ 2 & 3 & -3 \end{bmatrix} R3←R3+1R1R3 \leftarrow R3 + 1R1: [−20−201−203−5]\begin{bmatrix} -2 & 0 & -2 \\ 0 & 1 & -2 \\ 0 & 3 & -5 \end{bmatrix} R3←R3−3R2R3 \leftarrow R3 - 3R2: [−20−201−200−5]\begin{bmatrix} -2 & 0 & -2 \\ 0 & 1 & -2 \\ 0 & 0 & -5 \end{bmatrix} So, U=[−20−201−200−5]U = \begin{bmatrix} -2 & 0 & -2 \\ 0 & 1 & -2 \\ 0 & 0 & -5 \end{bmatrix}.

  4. Construct L: The elementary row operations used to transform PAPA into UU can be inverted to form LL. The operations were: R2←R2+32R1R2 \leftarrow R2 + \frac{3}{2}R1, R3←R3+1R1R3 \leftarrow R3 + 1R1, R3←R3−3R2R3 \leftarrow R3 - 3R2. The inverse operations, applied to the identity matrix, yield LL. E1=[1003/210001]E_1 = \begin{bmatrix} 1 & 0 & 0 \\ 3/2 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}, E2=[100010101]E_2 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 1 & 0 & 1 \end{bmatrix}, E3=[1000100−31]E_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & -3 & 1 \end{bmatrix}. U=E3E2E1PAU = E_3 E_2 E_1 PA. L=E1−1E2−1E3−1=[100−3/210001][100010−101][100010031]=[100−3/210−131]L = E_1^{-1} E_2^{-1} E_3^{-1} = \begin{bmatrix} 1 & 0 & 0 \\ -3/2 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ -1 & 0 & 1 \end{bmatrix} \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 3 & 1 \end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 \\ -3/2 & 1 & 0 \\ -1 & 3 & 1 \end{bmatrix}.

Thus, PA=LUPA = LU 139 140.

📝 To compute the PLU decomposition of A=[311−20−223−3]A = \begin{bmatrix} 3 & 1 & 1 \\ -2 & 0 & -2 \\ 2 & 3 & -3 \end{bmatrix}, we first swap rows 1 and 2 using P=[010100001]P = \begin{bmatrix} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix} to get PA=[−20−231123−3]PA = \begin{bmatrix} -2 & 0 & -2 \\ 3 & 1 & 1 \\ 2 & 3 & -3 \end{bmatrix}. Then, we perform LU decomposition on PAPA to find L=[100−3/210−131]L = \begin{bmatrix} 1 & 0 & 0 \\ -3/2 & 1 & 0 \\ -1 & 3 & 1 \end{bmatrix} and U=[−20−201−200−5]U = \begin{bmatrix} -2 & 0 & -2 \\ 0 & 1 & -2 \\ 0 & 0 & -5 \end{bmatrix} 139.

23.4 Solving linear systems with PLU decomposition 136 138

PLU decomposition can be used to solve linear systems of the form Ax=bAx = b. The process involves left-multiplying both sides of the equation by the permutation matrix PP to get PAx=PbPAx = Pb.

Since PA=LUPA = LU, the equation becomes LUx=PbLUx = Pb. This can be solved in two steps:

  1. Solve Ly=PbLy = Pb for yy using forward substitution.

  2. Solve Ux=yUx = y for xx using backward substitution 141.

Example: Solve Ax=bAx = b given AA from the previous example, with PP, LL, and UU as computed, and b=[3−23]b = \begin{bmatrix} 3 \\ -2 \\ 3 \end{bmatrix}. P=[010100001]P = \begin{bmatrix} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix}, L=[100−3/210−131]L = \begin{bmatrix} 1 & 0 & 0 \\ -3/2 & 1 & 0 \\ -1 & 3 & 1 \end{bmatrix}, U=[−20−201−200−5]U = \begin{bmatrix} -2 & 0 & -2 \\ 0 & 1 & -2 \\ 0 & 0 & -5 \end{bmatrix}.

  1. Compute PbPb:Pb=[010100001][3−23]=[−233]Pb = \begin{bmatrix} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix} 3 \\ -2 \\ 3 \end{bmatrix} = \begin{bmatrix} -2 \\ 3 \\ 3 \end{bmatrix}. Let this be b~\tilde{b}.

  2. Solve Ly=b~Ly = \tilde{b}:[100−3/210−131][y1y2y3]=[−233]\begin{bmatrix} 1 & 0 & 0 \\ -3/2 & 1 & 0 \\ -1 & 3 & 1 \end{bmatrix} \begin{bmatrix} y_1 \\ y_2 \\ y_3 \end{bmatrix} = \begin{bmatrix} -2 \\ 3 \\ 3 \end{bmatrix} From the first row: y1=−2y_1 = -2. From the second row: −32y1+y2=3  ⟹  −32(−2)+y2=3  ⟹  3+y2=3  ⟹  y2=0-\frac{3}{2}y_1 + y_2 = 3 \implies -\frac{3}{2}(-2) + y_2 = 3 \implies 3 + y_2 = 3 \implies y_2 = 0.

From the third row: −y1+3y2+y3=3  ⟹  −(−2)+3(0)+y3=3  ⟹  2+y3=3  ⟹  y3=1-y_1 + 3y_2 + y_3 = 3 \implies -(-2) + 3(0) + y_3 = 3 \implies 2 + y_3 = 3 \implies y_3 = 1. So, y=[−201]y = \begin{bmatrix} -2 \\ 0 \\ 1 \end{bmatrix}. 3. Solve Ux=yUx = y:[−20−201−200−5][x1x2x3]=[−201]\begin{bmatrix} -2 & 0 & -2 \\ 0 & 1 & -2 \\ 0 & 0 & -5 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} -2 \\ 0 \\ 1 \end{bmatrix} From the third row: −5x3=1  ⟹  x3=−15-5x_3 = 1 \implies x_3 = -\frac{1}{5}. From the second row: x2−2x3=0  ⟹  x2−2(−15)=0  ⟹  x2+25=0  ⟹  x2=−25x_2 - 2x_3 = 0 \implies x_2 - 2(-\frac{1}{5}) = 0 \implies x_2 + \frac{2}{5} = 0 \implies x_2 = -\frac{2}{5}.

From the first row: −2x1−2x3=−2  ⟹  −2x1−2(−15)=−2  ⟹  −2x1+25=−2  ⟹  −2x1=−2−25=−125  ⟹  x1=65-2x_1 - 2x_3 = -2 \implies -2x_1 - 2(-\frac{1}{5}) = -2 \implies -2x_1 + \frac{2}{5} = -2 \implies -2x_1 = -2 - \frac{2}{5} = -\frac{12}{5} \implies x_1 = \frac{6}{5}. So, x=[6/5−2/5−1/5]x = \begin{bmatrix} 6/5 \\ -2/5 \\ -1/5 \end{bmatrix} 142 143.

Matrix Type

Properties

Permutation Matrix (P)

Exactly one 1 in each row and column; others are zero. Used to reorder rows.

Lower Triangular Matrix (L)

All entries above the main diagonal are zero. Used in forward substitution.

Upper Triangular Matrix (U)

All entries below the main diagonal are zero. Used in backward substitution.

Step

System to Solve

Step 1

Solve $Ly = Pb$ for $y$ (forward substitution)

Step 2

Solve $Ux = y$ for $x$ (backward substitution)

24. Explanation of Method for Finding the LU Decomposition

24.1 LU Decomposition using Elementary Row Matrices

The LU decomposition of a matrix AA expresses it as the product of a lower triangular matrix LL and an upper triangular matrix UU, such that A=LUA = LU. This decomposition is achieved by applying a sequence of elementary row operations to transform AA into an upper triangular matrix UU.

These operations are represented by elementary row matrices. The product of these elementary row matrices, denoted as EE, is also a lower triangular matrix.

Since EE is invertible, its inverse E−1E^{-1} is also lower triangular, and it is set as LL. Thus, A=E−1U=LUA = E^{-1}U = LU.

The matrix LL can be found more efficiently by directly recording the inverse operations 144.

  • The process begins by transforming matrix AA into its row echelon form (REF), denoted as UU.

  • This transformation is accomplished using a product of lower triangular elementary row matrices, E=En⋅…⋅E2E1E = E_n \cdot \ldots \cdot E_2 E_1.

  • The relationship is expressed as U=EAU = EA.

  • Since EE is a product of invertible elementary row matrices, it is itself invertible.

  • The inverse matrix E−1E^{-1} is also lower triangular.

  • By setting L=E−1L = E^{-1}, the LU decomposition A=LUA = LU is obtained, as LU=E−1(EA)=(E−1E)A=IA=ALU = E^{-1}(EA) = (E^{-1}E)A = IA = A 144.

24.2 Constructing the Lower Triangular Matrix L 144

The lower triangular matrix LL can be constructed more rapidly by directly recording the inverse operations performed during Gaussian elimination. When performing forward elimination on a matrix AA, operations are typically applied from the leftmost column downwards and to the right.

The inverse operations then have a straightforward representation 144.

Consider a 4x4 matrix AA. Gaussian elimination, avoiding row swaps and row multiplications, involves a sequence of operations.

For example, operations like R2+=bR1R_2 += bR_1, R3+=dR2R_3 += dR_2, and R4+=fR3R_4 += fR_3 are performed 144.

The corresponding inverse operations to recover AA from UU are:

  • R2−=aR1R_2 -= aR_1

  • R3−=bR1R_3 -= bR_1

  • R4−=cR1R_4 -= cR_1

  • R3−=dR2R_3 -= dR_2

  • R4−=eR2R_4 -= eR_2

  • R4−=fR3R_4 -= fR_3 144.

Applying these inverse operations to the identity matrix, starting from the rightmost operation, yields the matrix LL 144.

Operation on A

Inverse Operation on Identity Matrix

$R_2 += aR_1$

$R_2 -= aR_1$

$R_3 += bR_1$

$R_3 -= bR_1$

$R_4 += cR_1$

$R_4 -= cR_1$

$R_3 += dR_2$

$R_3 -= dR_2$

$R_4 += eR_2$

$R_4 -= eR_2$

$R_4 += fR_3$

$R_4 -= fR_3$

The resulting matrix LL is: L=(1000a100bd10cef1)L = \begin{pmatrix} 1 & 0 & 0 & 0 \\ a & 1 & 0 & 0 \\ b & d & 1 & 0 \\ c & e & f & 1 \end{pmatrix} 144.

📝 For a 4x4 matrix AA, if the forward elimination steps are E(R2+aR1)E(R_2 + aR_1), E(R3+bR1)E(R_3 + bR_1), E(R4+cR1)E(R_4 + cR_1), E(R3+dR2)E(R_3 + dR_2), E(R4+eR2)E(R_4 + eR_2), and E(R4+fR3)E(R_4 + fR_3), the corresponding inverse operations applied to the identity matrix to form LL are E(R2−aR1)E(R_2 - aR_1), E(R3−bR1)E(R_3 - bR_1), E(R4−cR1)E(R_4 - cR_1), E(R3−dR2)E(R_3 - dR_2), E(R4−eR2)E(R_4 - eR_2), and E(R4−fR3)E(R_4 - fR_3). The resulting LL matrix will have the coefficients a,b,c,d,e,fa, b, c, d, e, f in the appropriate positions below the main diagonal 144.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also