Module A - Complete - Small file
Table of contents
-
Introduction to Matrices
-
Matrix Multiplication
-
Systems of Linear Equations
-
Reduced Row Echelon Form
-
Elementary Row Operations
-
RREF of an Augmented Matrix
-
Gaussian Elimination and Gauss-Jordan Elimination
-
Rank and Nullity
-
Checking if No Solutions Exist
-
Properties of Rank and Nullity
-
Examples
-
Matrix Inverses 13.1 When is a matrix invertible?
-
How to Compute the Inverse of a Matrix
-
Invertible Matrix Theorem
-
Properties of matrix inverses
-
Matrix Transpose
-
Properties of Matrix Transposes
-
Triangular Matrices
-
Using LU Decomposition to Solve Linear Systems
-
Elementary Row Matrices
-
Computing LU Decomposition
-
PLU Decomposition
-
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 or simply [ai,j], where ai,j is the entry in the i-th row and j-th column.
-
Matrix entry: The element ai,j is called the (i,j)-entry of the matrix.
-
Index: The pair (i,j) is referred to as the index of the entry ai,j 4.
-
Index notation: Commas in indices are typically omitted when i and j are single digits less than 10 (e.g., a14=a1,4). A comma is necessary if a matrix has ten or more rows or columns.
-
Explicit matrix: The matrix A:=[i−j2]2,3 can be written out explicitly as [01−3−2−8−7].
-
Set of matrices: The set of all m×n matrices with real entries is denoted by Rm×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×n.
-
Column vector: A matrix with only one column is called a column vector; it has dimensions m×1.
-
Scalar: A single real number is called a scalar.
-
Scalar as matrix: A scalar can be considered a 1×1 matrix 6.
📝 [1004]+[0320]=[1324] 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×n matrices A=[aij] and B=[bij], their sum is A+B=[aij+bij].
-
Example of matrix addition: [1004]+[0320]=[1+00+30+24+0]=[1324] 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] and a scalar r∈R, the scalar product is rA=[raij].
-
Example of scalar multiplication: For A=[1324], 5A=5[1324]=[5×15×35×25×4]=[5151020].
-
Activity 1 calculation: 2[15]−[37]=[210]+[−3−7]=[−13] 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] multiplied by a column vector y1y2⋮yn results in the sum of the products of their corresponding entries: ∑i=1nxiyi 10.
📝 Compute the following vector multiplication: [1 2 3]−270=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: [40−8251]11/210=[4(1)+(−8)(1/2)+5(10)0(1)+2(1/2)+1(10)]=[5011] 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, A and B, is performed by computing the dot product of each row of A with each column of B.
-
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] and B=[3610−1]. Calculate AB. AB=[01−1][3610−1]=[(0)(3)+(1)(6)+(−1)(?)(1)(3)+(−1)(6)(0)(10)+(1)(−1)+(−1)(?)(1)(10)+(−1)(−1)] Let A=[5−2−1306] and B=104−310. AB=[5(1)+(−1)(0)+0(4)−2(1)+3(0)+6(4)5(−3)+(−1)(1)+0(0)−2(−3)+3(1)+6(0)]=[522−169] 16.
- Matrix multiplication is not commutative, meaning that AB is generally not equal to BA 15.
2.4 Conditions for matrix multiplication
The possibility of multiplying two matrices, A and B, depends on their dimensions. Specifically, the number of columns in the first matrix (A) must equal the number of rows in the second matrix (B) 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 AB to be defined, if A is an m×n matrix and B is a p×q matrix, then n must equal p.
-
The resulting matrix C=AB will have dimensions m×q 17.
Activity 4. Consider A (3x3) and B (3x2).
-
(a) Is the product AB defined? Yes, because the inner dimensions (3 and 3) match.
-
(b) If AB is defined, what is the dimension of the output? The output dimension is 3x2.
-
(c) Is the product BA defined? No, because the inner dimensions (2 and 3) do not match.
-
(d) If BA is defined, what is its dimension? Not applicable 17.
2.5 Properties of matrix multiplication
Matrix multiplication, when defined for matrices A, B, and C of appropriate sizes, and for a scalar r, 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 m equations and n variables is: ⎩⎨⎧a11x1+a12x2+⋯+a1nxn=b1a21x1+a22x2+⋯+a2nxn=b2⋮am1x1+am2x2+⋯+amnxn=bm where aij and bj are constants, and xj are variables 19.
-
Linear system example: The system {2x1+x2=5−3x2=9} is linear 19.
-
Non-linear examples: Equations like x2+y=5 or xy=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} is linear, with coefficients a11=sin(2), a12=4, a21=3, and a22=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,…,xn) 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} is equivalent to x−y=1, with the solution set S={(x,y)∣y=x−1} 22.
3.3 Example: Infinitely many solutions
Consider the system: {x−y=12x−2y=2 Subtracting twice the first equation from the second yields 0=0, indicating the second equation is redundant. This system is equivalent to x−y=1, or y=x−1.
Therefore, there are infinitely many solutions. The solution set is S={(x,y)∣y=x−1} 22.
3.4 Example: No solutions
Consider the system: {x+y=1x+y=2 This system leads to the contradiction 1=2, meaning there are no values for x and y that can satisfy both equations simultaneously. The solution set is the empty set, S=∅={} 23.
3.5 Matrix representations of linear systems
A system of m linear equations in n unknowns can be compactly represented using matrices 24.
The system: ⎩⎨⎧a11x1+a12x2+⋯+a1nxn=b1a21x1+a22x2+⋯+a2nxn=b2⋮am1x1+am2x2+⋯+amnxn=bm can be rewritten as a matrix equation Ax=b, where:
-
A is the m×n coefficient matrix: A=[aij].
-
x is the n×1 variable vector: x=x1x2⋮xn.
-
b is the m×1 constant vector: b=b1b2⋮bm 24.
A vector x∗ is a solution to Ax=b if Ax∗=b. The set of all solutions is S={x∈Rn∣Ax=b} 25.
3.6 Example: Matrix equation and solution verification
Consider the system: {2x1+x2=5−3x2=9 (a) As a matrix equation: [201−3][x1x2]=[59] (b) To show (4,−3) is a solution, substitute x1=4 and x2=−3 into the original equations: 2(4)+(−3)=8−3=5 and −3(−3)=9. Both are satisfied. (c) To show x=[4−3] is a solution to the matrix equation, substitute it: [201−3][4−3]=[2(4)+1(−3)0(4)+(−3)(−3)]=[8−30+9]=[59] This equals b, confirming it is a solution 26.
📝 To show x=[4−3] is a solution to [201−3][x1x2]=[59], we compute [201−3][4−3]=[59] 26.
3.7 The augmented matrix
The augmented matrix of a linear system consolidates the coefficient matrix A and the constant vector b into a single matrix [A∣b] 27.
Example: For the system: {3x1+4x2=5−x1=−7 (a) As a matrix equation: A=[3−140], b=[5−7], so Ax=b. (b) The augmented matrix is: [A∣b]=[3−140∣∣5−7] 27.
3.8 Homogeneous systems and trivial solutions29
A linear system Ax=b is classified based on its constant vector 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), the vector 0 (where all variables are zero) is always a solution. This is called the trivial solution because A0=0 holds true 28.
3.9 Example: Identifying homogeneous systems
Determine which of the following systems are homogeneous 29:
-
{x−y=02x+6y=0}: Homogeneous, as the right-hand side is all zeros.
-
{x−y=−32x+6y=4}: Not homogeneous, as −3=0.
-
[3−35−5][x1x2]=[00]: Homogeneous, as the right-hand side vector is 0.
-
[−3241][x1x2]=[10]: Not homogeneous, as the first component of b is 1=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=5
0x+1y+0z=−2⟹y=−2
0x+0y+1z=4.3⟹z=4.3 The solution set is 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 i and row j, the notation Ri↔Rj is used.
📝 Consider the system: {x−6y2x+3y=7=1} Switching the order of the equations results in: {2x+3yx−6y=1=7} In augmented matrix form, this is: [12−63∣∣71]R1↔R2[213−6∣∣17] 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 i by a factor of c, the notation cRi is used.
📝 For the system: {x−6y2x+3y=7=1} Multiplying the first row by 5 yields: {5(x−6y)2x+3y=5(7)=1} Which simplifies to: {5x−30y2x+3y=35=1} In augmented matrix form: [12−63∣∣71]5R1[52−303∣∣351] 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 c times row j to row i, the notation Ri+=cRj is used.
📝 Consider the system: {x−6y2x+3y=7=1} We can add −2 times the first equation to the second equation. This is represented as R2+=−2R1. The first equation remains: x−6y=7. The second equation becomes: (2x+3y)−2(x−6y)=1−2(7). Simplifying the second equation: 2x+3y−2x+12y=1−14, which results in 15y=−13. The new system is: {x−6y15y=7=−13} In augmented matrix form: [12−63∣∣71]R2+=−2R1[10−615∣∣7−13] 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: [−42−8−3∣∣−12−6]
(a) Add 4 times row 2 to row 1 (R1+=4R2): [−42−8−3∣∣−12−6]R1+=4R2[02−20−3∣∣−36−6] 46.
(b) Switch row 1 and row 2 (R1↔R2): [02−20−3∣∣−36−6]R1↔R2[20−3−20∣∣−6−36] 46.
(c) Multiply row 2 by (−1/12) ((−1/12)R2): [20−3−20∣∣−6−36](−1/12)R2[20−320/12∣∣−636/12]∼[20−35/3∣∣−63] 46.
The final matrix after these operations is: [20−35/3∣∣−63] 46.
6. RREF of an Augmented Matrix
6.1 Definition of RREF
An augmented matrix [C∣d] is the reduced row echelon form (RREF) of an augmented matrix [A∣b] if [C∣d] is in row echelon form (REF) and represents a linear system equivalent to the one represented by [A∣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] and [C∣d] are equivalent, with [C∣d] being the RREF of [A∣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=3
-
0+y+0=−2
-
0+0+z=0
This directly yields the solution x=3, y=−2, and z=0. The solution set is S={(3,−2,0)} 48.
📝 The RREF of an augmented matrix [A∣b] is [C∣d]. If [C∣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] is 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.
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:
7.5 Solving a linear system using RREF
To solve a linear system using Gauss-Jordan elimination:
-
Write the augmented matrix for the system.
-
Apply row operations to transform the matrix into RREF.
-
Rewrite the RREF matrix as a linear system.
-
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} 50 52.
7.6 Solving a linear system using REF
To solve a linear system using Gaussian elimination:
-
Write the augmented matrix for the system.
-
Apply row operations to transform the matrix into REF.
-
Rewrite the REF matrix as a linear system.
-
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 x1+5x2=7
-
Augmented matrix: [−21−75−57]
-
Transform to RREF: [−21−75−57]R1↔R2[1−25−77−5]R2+=2R1[105379]31R2[105173]R1+=−5R2[1001−83]
-
Rewrite as a system: x1=−8 x2=3
📝 The solution set is S={(−8,3)} 52.
7.8 Example: Solving a 2x2 system with Gaussian elimination
Consider the system: −2x1−7x2=−5 x1+5x2=7
-
Augmented matrix: [−21−75−57]
-
Transform to REF: [−21−75−57]R1↔R2[1−25−77−5]R2+=2R1[105379]
-
Rewrite as a system: x1+5x2=7 3x2=9
-
Solve using back-substitution: From the second equation, x2=9/3=3. Substitute x2=3 into the first equation: x1+5(3)=7⟹x1+15=7⟹x1=−8.
📝 The solution is (x1,x2)=(−8,3) 54.
7.9 Remark on RREF of A and [A|b 55
When an augmented matrix [A∣b] is transformed into its RREF, [C∣d], the matrix C is the RREF of A. However, the vector d is not necessarily the RREF of b 55.
RREF([A | b]) | RREF(A) |
|---|---|---|
[C | d | C |
For example, if RREF([Ab])=[10013−264] then RREF(A)=[10013−2] 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=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 (10013−2∣∣64), the equations are x1+3x3=6 and x2−2x3=4. Thus, x1=6−3x3 and x2=4+2x3. The solution set is S=⎩⎨⎧x1x2x3∈R3∣x1=6−3x3,x2=4+2x3⎭⎬⎫. Here, x3 is a free variable, and x1,x2 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.
-
Convert the RREF augmented matrix back into a system of linear equations.
-
Rearrange each equation to isolate the leading entry variables on the left side.
-
Write a generic column vector for the solution (x1,x2,…,xn).
-
Substitute the expressions for bound variables, ensuring only free variables remain on the right-hand side.
-
Express the solution set in parametric vector form, indicating the free variables and their domain.
-
Rewrite the column vector in its final parametric form 59.
📝 For the system with RREF of the augmented matrix (10−200160∣∣34), the equations are x1−2x2+6x4=3 and x3=4. Thus, x1=2x2−6x4+3 and x3=4. The solution set is S=⎩⎨⎧x1x2x3x4∈R4∣x1=2x2−6x4+3,x3=4⎭⎬⎫. This can be written as 2100s+−6001t+3040, where s,t∈R. Here, x2 and x4 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 A is denoted as rank(A), and its nullity is denoted as 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=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=(22−3−1−40), which is in REF, there are 3 leading entries. Thus, rank(A)=3. There are 0 columns without leading entries, so null(A)=0.
-
Example (b): For matrix B=(40−12), which is in REF, there are 2 leading entries. Thus, rank(B)=2. There is 1 column without a leading entry, so 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−44−330. This matrix is already in REF. It has 2 leading entries, so rank(A)=2. It has 2 columns without leading entries, so null(A)=2.
-
Matrix B: B=(1040). This matrix is already in REF. It has 1 leading entry, so rank(B)=1. It has 2 columns without leading entries, so null(B)=2.
-
Matrix C: C=(93−4−120). To find the rank and nullity, we first put C into REF. (93−4−120)R1←R1−3R3(03−1−120)R2←R2+2R1(03−1−120)∼(30−1−102). The REF is (30−1−102).
This REF has 2 leading entries, so rank(C)=2. It has 0 columns without leading entries, so 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. The system is consistent if and only if the rank of the augmented matrix [A∣b] is equal to the rank of the coefficient matrix A 67.
-
Proof of consistency: If rank([A∣b])=rank(A), it implies that the last column of the reduced row echelon form (RREF) of [A∣b] does not contain a leading entry. This prevents the formation of a contradictory equation, such as 0=1, thus ensuring the system is consistent.
-
Proof of inconsistency: If rank(A)<rank([A∣b]), it means there must be a leading entry in the last column of the RREF of [A∣b]. This results in a row of the form [0 0 … 0 ∣ 1], which corresponds to an equation 0x1+0x2+⋯+0xn=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 (A) and the augmented matrix ([A∣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 [1030∣∣61]. The rank of the augmented matrix [A∣b] is 2, as there are two non-zero rows in its RREF. The rank of the coefficient matrix A=[1030] is 1. Since rank([A∣b])=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×n matrix A, the sum of its rank and nullity equals the number of columns (n). 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×n matrix A, rank(A)+null(A)=n, where n 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 A is a 3×12 matrix with a rank of 2. To find its nullity, we use the Rank-nullity Theorem. Here, n=12 (the number of columns). Therefore, null(A)=n−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 (m) and cannot exceed the number of columns (n).
A matrix is considered "full rank" if its rank is equal to this minimum value.
-
Maximum rank: For an m×n matrix A, rank(A)≤min{m,n}.
-
Full rank: An m×n matrix A is full rank if 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=b. If the rank of matrix A equals the number of its columns (n), 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 (A) 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 (A) is equal to the rank of the augmented matrix ([A∣b]).
-
Number of solutions:
📝 Find the rank of A and [A∣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 In. This is a square matrix where all the diagonal elements are 1 and all off-diagonal elements are 0. For any n×n matrix A, multiplying it by the identity matrix In (either from the left or the right) results in the original matrix A 77 78.
-
Identity matrix (In): A square matrix with 1s on the main diagonal and 0s elsewhere.
-
I1=[1]
-
I2=[1001]
-
I3=100010001 77.
-
-
Property: For any n×n matrix A, AIn=InA=A 78.
📝 For A=[1324], AI=[1324][1001]=[1324] and IA=[1001][1324]=[1324] 78.
12.3 Exercise 1
For A=[1324], calculate AI and IA 78.
-
Concept tested: The property of the identity matrix in matrix multiplication.
-
Solution:
-
AI=[1324][1001]=[1(1)+2(0)3(1)+4(0)1(0)+2(1)3(0)+4(1)]=[1324]=A.
-
IA=[1001][1324]=[1(1)+0(3)0(1)+1(3)1(2)+0(4)0(2)+1(4)]=[1324]=A 78.
-
12.4 Invertible and singular matrices
The inverse of an n×n matrix A, denoted as A−1, is a matrix such that when multiplied by A (from either the left or right), it results in the identity matrix In. A matrix is considered invertible if its inverse A−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×n matrix A, its inverse A−1 satisfies A−1A=In and AA−1=In.
-
Invertible matrix: A matrix for which an inverse exists.
-
Singular matrix: A matrix that is not invertible 79.
12.5 Example
Let A=[3140]. Verify that A−1=41[014−3] 79.
-
Concept tested: Verification of a matrix inverse.
-
Solution:
-
Check AA−1=I: AA−1=[3140](41[014−3])=41[3(0)+4(1)1(0)+0(1)3(4)+4(−3)1(4)+0(−3)]=41[4004]=[1001]=I.
-
It is not necessary to check A−1A=I separately, as one condition implies the other for square matrices 79.
-
📝 Let A=[3140]. To verify that A−1=41[014−3], we check AA−1=[3140](41[014−3])=[1001]=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] has an inverse A−1=[acbd], then AA−1=I would imply [0000][acbd]=[1001], which simplifies to [0000]=[1001]. This leads to the contradiction 0=1, proving that the zero matrix is singular 81.
The equation AX=I, where X is the unknown inverse matrix, can be viewed as a system of linear equations. When A is not invertible, the system AX=I is inconsistent, meaning no matrix X can satisfy the equation.
This inconsistency can be detected by comparing the rank of matrix A with the rank of the augmented matrix [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=1) 81.
-
Solving for the inverse: The equation AX=I can be solved using augmented matrices, similar to solving Ax=b. The augmented matrix is [A∣I] 82.
-
Invertible if: rank(A)=rank([A∣I]).
-
Singular if: rank(A)<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=I has a solution, where X is the inverse matrix A−1 and I is the identity matrix. This condition can be tested by forming an augmented matrix [A∣I] and performing row reduction.
If the row reduction results in an inconsistent system, the matrix A is not invertible 84.
-
To check if a matrix A is invertible, we seek a matrix X such that AX=I.
-
This is equivalent to solving a system of linear equations 85.
-
The system can be represented by augmenting the matrix A with the identity matrix I, forming [A∣I] 84.
-
Row reduction is applied to [A∣I] to determine if a solution exists 86.
13.2 Example: Non-invertible matrix
The matrix A=(1326) is not invertible. Row reduction of the augmented matrix [A∣I] leads to an inconsistent system, specifically 0=−3 86.
-
The augmented matrix is (1326∣∣1001) 84.
-
Applying row operations (R2←R2−3R1) yields (1020∣∣1−301).
-
The second row of the reduced matrix represents the equation 0a+0c=−3, which is 0=−3.
-
This inconsistency indicates that the system AX=I has no solution, meaning A is singular (non-invertible) 86.
📝 The matrix A=(1326) is not invertible because row reduction of its augmented matrix [A∣I] leads to the inconsistent equation 0=−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 A, denoted as A−1, we need to solve the matrix equation AX=I, where I is the identity matrix and X represents the unknown inverse matrix. This process is analogous to solving systems of linear equations 88.
The method involves augmenting the matrix A with the identity matrix I, forming [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−1 89.
The steps are as follows:
-
Rewrite the problem as an augmented matrix [A∣I].
-
Use Gauss-Jordan elimination to transform [A∣I] into its Reduced Row Echelon Form (RREF).
-
If the RREF of A is the identity matrix I, then the RREF of the augmented matrix will be [I∣X∗], where X∗ is the inverse matrix A−1.
-
If the RREF of A is not the identity matrix, then A is not invertible 89.
📝 Compute the inverse of A=[2−401].
We set up the augmented matrix [A∣I]: [2−401∣∣1001]
Apply row operations: R2+=2R1∼[2001∣∣1201]
(1/2)R1∼[1001∣∣1/2201]
The left side is now the identity matrix. Thus, the inverse is: A−1=[1/2201] 90.
14.2 Activity 8
Let A=[5110].
(a) Compute A−1. (b) Check by computing A−1A.
(a) To solve AX=I, we set up the augmented matrix: [A∣I]=[5110∣∣1001]
Apply row operations: R1+=−5R2∼[0110∣∣10−51] R1↔R2∼[1001∣∣011−5]
So, A−1=[011−5] 91.
(b) Check by computing A−1A: A−1A=[011−5][5110]=[0(5)+1(1)1(5)+(−5)(1)0(1)+1(0)1(1)+(−5)(0)]=[1001]=I 91.
15. Invertible Matrix Theorem
15.1 Invertible matrix theorem
A square matrix A is invertible if and only if its reduced row echelon form (RREF) is the identity matrix (In), which implies it has full rank (n). This condition is equivalent to the existence of a matrix X such that AX=I, and also means that the equation Ax=b has a unique solution for every vector b∈Rn 93.
The proof demonstrates the equivalences:
-
If A is invertible, then X=A−1 satisfies AX=I.
-
If AX=I has a solution, then A and [A∣I] have the same rank. Since rank([A∣I])=rank(I)=n, it follows that rank(A)=n, and RREF(A)=In.
-
If RREF(A)=In, then A can be row-reduced to In. This implies [A∣I] can be row-reduced to [I∣B] for some matrix B. Thus, AB=I, meaning B is the inverse of A, and A is invertible 94.
-
If A is invertible, then for any b∈Rn, multiplying Ax=b by A−1 yields x=A−1b, which is the unique solution 95.
The rank of an n×n matrix A is n if and only if its RREF is the n×n identity matrix 92.
📝 If A is an n×n invertible matrix, then null(A)=0. This is because rank(A)=n, and the nullity is n−rank(A)=n−n=0 96.
15.2 Properties of invertible matrices
Several properties hold true for invertible matrices:
-
If A is an invertible n×n matrix, then null(A)=0.
-
The equation Ax=0 has only the trivial solution x=0 if A is invertible.
-
The product of two n×n invertible matrices, AB, is also invertible 96.
📝 For A=I2, the equation Ax=0 becomes I2x=0, which simplifies to x=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×n matrix A, the following statements are equivalent:
-
A is singular (not invertible).
-
For every n×n matrix X, AX=I.
-
RREF(A)=In and rank(A)<n (i.e., A is not full rank).
-
For each b∈Rn, the equation Ax=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=100100001. This matrix is in RREF. Its rank is 2, which is less than n=3. Therefore, by the negation of the invertible matrix theorem, A is singular 98.
16. Properties of matrix inverses
16.1 Properties of invertible matrices
If A and B are n×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 A, its inverse A−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.
-
Inverse of a product: The inverse of the product of two invertible matrices A and B is the product of their inverses in reverse order, i.e., (AB)−1=B−1A−1 99.
The proof for (AB)−1=B−1A−1 demonstrates this property by showing that when (B−1A−1) is multiplied by (AB), the result is the identity matrix I. (B−1A−1)(AB)=B−1(A−1A)B=B−1IB=B−1B=I. This confirms that B−1A−1 is indeed the inverse of AB 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×n matrix A, denoted as A⊤, is an n×m matrix where each row of A becomes a column in A⊤, and each column of A becomes a row in A⊤ 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 A is defined as symmetric if it is equal to its transpose, i.e., A=A⊤. 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 and y in Rn is calculated as x⊤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 is a scalar.
-
The inner product is a symmetric operator: x⊤y=y⊤x 103.
Example. Compute the inner product of x=123 and y=−250. x⊤y=[123]−250=(1)(−2)+(2)(5)+(3)(0)=−2+10+0=8 104.
📝 The inner product of x=123 and y=−250 is x⊤y=(1)(−2)+(2)(5)+(3)(0)=8 104.
17.5 Outer product
The outer product of two vectors x and y in Rn is denoted as xy⊤. This operation results in an n×n matrix where each element (i,j) is the product of the i-th element of x and the j-th element of y 105.
Properties of outer products:
-
The outer product xy⊤ results in an n×n matrix.
-
The outer product is not symmetric: xy⊤=yx⊤ 105.
Example. Let x=30−1 and y=134.
Find the outer product of x and y. xy⊤=30−1[134]=3(1)0(1)−1(1)3(3)0(3)−1(3)3(4)0(4)−1(4)=30−190−3120−4 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], these are the entries a11,a22,…,ann.
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 A and B. Their product AB is also an upper triangular matrix.
Furthermore, the inverse of an upper triangular matrix, B−1, is also upper triangular 112 113.
📝 Let A=100250369 and B=100110111.
(a) Compute AB. AB=1001+2501+2+35+69=1003506119. The result is upper triangular.
(b) Compute B−1. Augmenting B with the identity matrix [B∣I] and performing row operations yields: 100110111∣∣∣100010001∼100110001∣∣∣100010−1−11∼100010001∣∣∣100−1100−11. Thus, B−1=100−1100−11. 112 113.
20. Using LU Decomposition to Solve Linear Systems
20.1 LU decomposition definition
LU decomposition is a method for factoring an n×n matrix A into the product of two n×n matrices, L and U, where L is a lower triangular matrix and U is an upper triangular matrix, such that A=LU. This decomposition is particularly useful for efficiently solving systems of linear equations of the form Ax=b for multiple right-hand side vectors b 114.
The process involves rewriting the equation Ax=b as (LU)x=b, which can be rearranged to L(Ux)=b. By defining a new vector y:=Ux, the problem is split into two simpler triangular systems: Ly=b and Ux=y.
The first system, Ly=b, is solved for y using forward substitution, and then the second system, Ux=y, is solved for x 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×n matrix typically requires approximately n3 arithmetic operations (similar to Gaussian elimination), solving for a new right-hand side vector b requires only about n2 operations.
This makes it highly efficient when multiple systems with the same coefficient matrix A but different b vectors need to be solved 115.
The process involves two main steps after the A=LU factorization is known:
-
Solve for y: Solve the lower triangular system Ly=b for the vector y. This is done using forward substitution.
-
Solve for x: Solve the upper triangular system Ux=y for the vector x, using the previously found vector y. This is done using backward substitution 115.
20.3 Example of solving Ax = b
Consider the matrix A and its LU decomposition: A=24−1311−108−6−11, L=12−1012001, U=2003508−22−1.
We want to solve Ax=b for b=123 115.
First, we define y:=Ux and solve the system Ly=b: 12−1012001y1y2y3=123 115.
Using forward substitution:
-
From the first equation: y1=1.
-
From the second equation: 2y1+y2=2⟹2(1)+y2=2⟹y2=0.
-
From the third equation: −y1+2y2+y3=3⟹−(1)+2(0)+y3=3⟹y3=4 116.
So, y=104 116.
Next, we solve the system Ux=y for x: 2003508−22−1x1x2x3=104 117.
Using backward substitution:
-
From the third equation: −x3=4⟹x3=−4.
-
From the second equation: 5x2−22x3=0⟹5x2−22(−4)=0⟹5x2+88=0⟹x2=−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/10 117.
Therefore, x=429/10−88/5−4 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) switches rows i and j.
-
Scalar multiplication: Multiplying by E(cRi) multiplies row i by a scalar c.
-
Row addition: Multiplying by E(Ri+=cRj) adds c times row j to row i 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.
-
Applying E(5R3) to A results in multiplying the third row of A by 5: E(5R3)A=10001000534−27=34355 119.
-
Applying E(R1↔R2) to A switches the first and second rows: E(R1↔R2)A=01010000134−27=−237 120.
📝 Applying E(5R3) to matrix A=34−27 results in 34355 119.
21.3 Generating Elementary Row Matrices from the Identity Matrix
An elementary row matrix E(⋆) is generated by performing the corresponding elementary row operation ⋆ on the identity matrix I. This means that I∼⋆E(⋆) 121.
21.4 Examples of generating elementary row matrices
Let's generate 4x4 elementary row matrices for specific operations:
-
For the operation R1↔R4, we swap the first and fourth rows of I4: I4=1000010000100001∼R1↔R40001010000101000=E(R1↔R4).
-
For the operation −3R4, we multiply the fourth row of I4 by -3: I4=1000010000100001∼−3R4100001000010000−3=E(−3R4).
-
For the operation R1+=−2R2, we add -2 times the second row to the first row of I4: I4=1000010000100001∼R1+=−2R21000−210000100001=E(R1+=−2R2) 121.
📝 For the operation R1+=−2R2 on a 4x4 identity matrix, the resulting elementary row matrix is E(R1+=−2R2)=1000−210000100001 121.
21.5 Activity: Creating 3x3 elementary row matrices
Let's create 3x3 elementary row matrices for the following operations:
-
4R2: I3=100010001∼4R2100040001=E(4R2).
-
R2↔R3: I3=100010001∼R2↔R3100001010=E(R2↔R3).
-
R3+=5R1: I3=100010001∼R3+=5R1105010001=E(R3+=5R1) 122.
21.6 Example: Applying row addition and finding the matrix
Consider matrix A=125−102.
-
Applying R2+=3R1 to A: A=125−102∼R2+=3R112+3(1)5−10+3(−1)2=155−1−32.
-
The elementary row matrix for R2+=3R1 is found by applying the operation to I2: I2=[1001]∼R2+=3R1[1301]=E(R2+=3R1).
-
Multiplying E(R2+=3R1) by A: E(R2+=3R1)A=[1301]125−102=13(1)+1(2)3(5)+1(2)−13(−1)+1(0)=1517−1−32 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 A to B (A∼⋆B), then the inverse operation ⋆−1 transforms B back to A (B∼⋆−1A) 124.
21.8 Identifying inverse operations
-
The inverse of multiplying row i by c (cRi) is multiplying row i by 1/c ((1/c)Ri).
-
The inverse of switching rows i and j (Ri↔Rj) is switching rows i and j again (Ri↔Rj).
-
The inverse of adding c times row j to row i (Ri+=cRj) is subtracting c times row j from row i (Ri+=−cRj) 124.
21.9 Relationship between inverse operations and matrices
For any elementary row operation ⋆, the elementary row matrix corresponding to its inverse operation is the inverse of the elementary row matrix for ⋆: E(⋆−1)=E(⋆)−1. This implies that every elementary row matrix is invertible 125.
However, an elementary row matrix like E(0R2) 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+=cR1 for 2x2 matrices.
-
The elementary row matrix is E(R2+=cR1)=[1c01].
-
The inverse operation is R2+=−cR1, and its corresponding matrix is E((R2+=cR1)−1)=[1−c01].
-
The product of these two matrices yields the identity matrix: E(R2+=cR1)E(R2+=−cR1)=[1c01][1−c01]=[1001]=I2 126.
21.11 Example: Undoing an operation with the inverse matrix
Consider matrix A=[46−88].
-
Applying R2+=2R1 to A: A=[46−88]∼R2+=2R1[46+2(4)−88+2(−8)]=[414−8−8]=E1A, where E1=E(R2+=2R1).
-
The inverse operation is R2+=−2R1, and its matrix is E1−1=E(R2+=−2R1)=[1−201].
-
Left-multiplying the result by E1−1 restores the original matrix A: E1−1(E1A)=[1−201][414−8−8]=[4−2(4)+1(14)−8−2(−8)+1(−8)]=[46−88]=A 127.
📝 To undo the operation R2+=2R1 on matrix A=[46−88], we left-multiply the result by the inverse elementary row matrix E(R2+=−2R1)=[1−201], restoring the original matrix A 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×n, the following statements are equivalent 128:
-
A is invertible.
-
A can be written as a product of elementary row matrices.
This equivalence arises because A is invertible if and only if its Reduced Row Echelon Form (RREF) is the identity matrix (I). If A∼I, it means a sequence of elementary row operations can transform A into I.
Each operation corresponds to multiplication by an elementary row matrix. Therefore, A=En⋯E3E2E1I=En⋯E3E2E1, where Ei 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 A into the product of a lower triangular matrix L and an upper triangular matrix U. This process is achieved by applying a sequence of elementary row operations to transform A into its row echelon form (REF), which becomes U.
The corresponding lower triangular matrix L 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×n invertible matrix A is found by applying elementary row operations to transform A into its row echelon form (REF), denoted as U. This transformation uses lower triangular elementary row matrices E1,E2,…,EN such that U=ENEN−1…E2E1A.
The lower triangular matrix L is then formed by the inverses of these elementary matrices: L=E1−1E2−1…EN−1. The product LU reconstructs the original matrix A 129.
22.3 Properties of L and U
-
U is upper triangular: The matrix U is in row echelon form, which by definition is upper triangular.
-
L is lower triangular: Each elementary row matrix Ek used in the transformation is lower triangular. The inverse of a lower triangular matrix (Ek−1) is also lower triangular. Therefore, the product of these inverse matrices, L, is also lower triangular.
-
A = LU: The product of L and U yields the original matrix A. This is shown by substituting the definitions of L and U: LU=(E1−1E2−1…EN−1)(ENEN−1…E1A)=A, as the intermediate terms cancel out due to the property (Ek−1Ek)=I (identity matrix) 130.
22.4 Permitted Elementary Row Operations
To ensure that the resulting matrix L is lower triangular, specific elementary row operations are permitted during the transformation of A to U. 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+=−5R1). The corresponding elementary matrix is lower triangular.
-
Scaling a row (e.g., 8R2). 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=[2−613], we apply row operations to transform it into an upper triangular matrix U 132.
-
Start with A=IA: [2−613]=[1001][2−613]
-
Apply the operation R2+=3R1 to the right side. This operation corresponds to multiplying by the elementary matrix E1=[1301]. [2−613]=[1301][2016]
-
The resulting matrix U is [2016]. The matrix L is the inverse of E1, which is L=E1−1=[1−301]. Thus, A=LU=[1−301][2016] 132.
22.6 Example: 4x4 Matrix LU Decomposition
To compute the LU decomposition of the matrix A=24354−72−83−62−25−8914, we perform row operations to obtain an upper triangular matrix U 133.
-
Start with A=IA: A=24354−72−83−62−25−8914
-
Apply R2+=−2R1, R3+=−23R1, and R4+=−25R1. The pivot is 2. The matrix becomes: 20004−15−4−183−12−5/2−19/25−183/213/2
-
Apply R3+=154R2 and R4+=1518R2. The pivot is -15. The matrix becomes: 20004−15003−12−3/5−3/55−18−3/5−7/5
-
Apply R4+=R3. The pivot is -3/5. The matrix becomes: 20004−15003−12−3/505−18−3/5−4/5 This is the upper triangular matrix U 133 134.
The corresponding lower triangular matrix L is constructed from the multipliers used in the row operations: L=123/25/2014/1518/1500110001 134.
The decomposition is A=LU 134.
📝 The LU decomposition of A=24354−72−83−62−25−8914 results in L=123/25/2014/1518/1500110001 and U=20004−15003−12−3/505−18−3/5−4/5 134.
23. PLU Decomposition
23.1 Permutation matrices
A permutation matrix P 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 P effectively reorders the rows of that matrix according to the permutation defined by P 136.
A permutation matrix P 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 A is a factorization into three matrices: P, L, and U, such that PA=LU.
-
P is a permutation matrix.
-
L is a lower triangular matrix.
-
U 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 A, 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 P is constructed to perform the necessary row swap.
The matrix PA is then subjected to LU decomposition. The resulting L and U matrices, along with the initial permutation matrix P, form the PLU decomposition 139.
Example: Compute the PLU decomposition of A=3−221031−2−3
-
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.
-
Apply permutation: Let P=E(R1↔R2)=010100001. PA=0101000013−221031−2−3=−232013−21−3.
-
Perform LU decomposition on PA: Start with PA and apply row operations to get an upper triangular matrix U. −232013−21−3 R2←R2+23R1: −202013−2−2−3 R3←R3+1R1: −200013−2−2−5 R3←R3−3R2: −200010−2−2−5 So, U=−200010−2−2−5.
-
Construct L: The elementary row operations used to transform PA into U can be inverted to form L. The operations were: R2←R2+23R1, R3←R3+1R1, R3←R3−3R2. The inverse operations, applied to the identity matrix, yield L. E1=13/20010001, E2=101010001, E3=10001−3001. U=E3E2E1PA. L=E1−1E2−1E3−1=1−3/2001000110−1010001100013001=1−3/2−1013001.
📝 To compute the PLU decomposition of A=3−221031−2−3, we first swap rows 1 and 2 using P=010100001 to get PA=−232013−21−3. Then, we perform LU decomposition on PA to find L=1−3/2−1013001 and U=−200010−2−2−5 139.
23.4 Solving linear systems with PLU decomposition 136 138
PLU decomposition can be used to solve linear systems of the form Ax=b. The process involves left-multiplying both sides of the equation by the permutation matrix P to get PAx=Pb.
Since PA=LU, the equation becomes LUx=Pb. This can be solved in two steps:
-
Solve Ly=Pb for y using forward substitution.
-
Solve Ux=y for x using backward substitution 141.
Example: Solve Ax=b given A from the previous example, with P, L, and U as computed, and b=3−23. P=010100001, L=1−3/2−1013001, U=−200010−2−2−5.
-
Compute Pb:Pb=0101000013−23=−233. Let this be b~.
-
Solve Ly=b~:1−3/2−1013001y1y2y3=−233 From the first row: y1=−2. From the second row: −23y1+y2=3⟹−23(−2)+y2=3⟹3+y2=3⟹y2=0.
From the third row: −y1+3y2+y3=3⟹−(−2)+3(0)+y3=3⟹2+y3=3⟹y3=1. So, y=−201. 3. Solve Ux=y:−200010−2−2−5x1x2x3=−201 From the third row: −5x3=1⟹x3=−51. From the second row: x2−2x3=0⟹x2−2(−51)=0⟹x2+52=0⟹x2=−52.
From the first row: −2x1−2x3=−2⟹−2x1−2(−51)=−2⟹−2x1+52=−2⟹−2x1=−2−52=−512⟹x1=56. So, x=6/5−2/5−1/5 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 A expresses it as the product of a lower triangular matrix L and an upper triangular matrix U, such that A=LU. This decomposition is achieved by applying a sequence of elementary row operations to transform A into an upper triangular matrix U.
These operations are represented by elementary row matrices. The product of these elementary row matrices, denoted as E, is also a lower triangular matrix.
Since E is invertible, its inverse E−1 is also lower triangular, and it is set as L. Thus, A=E−1U=LU.
The matrix L can be found more efficiently by directly recording the inverse operations 144.
-
The process begins by transforming matrix A into its row echelon form (REF), denoted as U.
-
This transformation is accomplished using a product of lower triangular elementary row matrices, E=En⋅…⋅E2E1.
-
The relationship is expressed as U=EA.
-
Since E is a product of invertible elementary row matrices, it is itself invertible.
-
The inverse matrix E−1 is also lower triangular.
-
By setting L=E−1, the LU decomposition A=LU is obtained, as LU=E−1(EA)=(E−1E)A=IA=A 144.
24.2 Constructing the Lower Triangular Matrix L 144
The lower triangular matrix L can be constructed more rapidly by directly recording the inverse operations performed during Gaussian elimination. When performing forward elimination on a matrix A, 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 A. Gaussian elimination, avoiding row swaps and row multiplications, involves a sequence of operations.
For example, operations like R2+=bR1, R3+=dR2, and R4+=fR3 are performed 144.
The corresponding inverse operations to recover A from U are:
-
R2−=aR1
-
R3−=bR1
-
R4−=cR1
-
R3−=dR2
-
R4−=eR2
-
R4−=fR3 144.
Applying these inverse operations to the identity matrix, starting from the rightmost operation, yields the matrix L 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 L is: L=1abc01de001f0001 144.
📝 For a 4x4 matrix A, if the forward elimination steps are E(R2+aR1), E(R3+bR1), E(R4+cR1), E(R3+dR2), E(R4+eR2), and E(R4+fR3), the corresponding inverse operations applied to the identity matrix to form L are E(R2−aR1), E(R3−bR1), E(R4−cR1), E(R3−dR2), E(R4−eR2), and E(R4−fR3). The resulting L matrix will have the coefficients a,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.