SlidesGroepA 2526
Introduction to linear algebra concepts and course organization
This section outlines the organizational structure of the course, including instructional methods, required materials, examination details, and introduces the foundational concepts of linear equations and systems of linear equations 1 3 4.
1.1 Course organization and study materials
The course employs various teaching and learning formats to cover the material 1.
1.1.1 Contact moments
Contact moments include lectures (Hoorcollege), exercise sessions (Oefenzittingen), and homework via MyMathLab 1 2.
- Lectures (Hoorcollege): Used for presenting theory, working through examples, answering questions, and discussing homework assignments. Students are permitted to ask questions during lectures 1 2.
- Exercise Sessions (Oefenzittingen): These sessions are supervised by an assistant and cover material that is typically more challenging than the homework assignments. Preparation is crucial; students must review the relevant theory beforehand 2.
- Homework (MyMathLab): Required assignments managed through MyMathLab 1.
1.1.2 Required materials
The primary resources for the course include the textbook by Lay, supplementary materials (VTK), an exercise bundle (VTK), and lecture slides (VTK) 1.
- Textbook (Lay): Contains more detailed information, examples, and exercises. The numbering in course materials corresponds to Lay and supplements 2.
- Slides: Intended to prevent wasting time and mental effort transcribing notes, but students must still take notes as not everything is included on the slides 2.
- TOLEDO: Serves as a repository for the lecture slides, instructional videos (for examples and MATLAB preparation), guidance on required knowledge ("What to know/not know"), and sample exam questions 1.
- Exercise Bundle: Includes 8 pen-and-paper exercises and 3 MATLAB sessions to be completed on a PC 2.
- SPOC: Specialized sessions concerning complex numbers 1.
Tip: Focus on understanding the theory during lectures and study sessions, as knowing the theory helps save valuable time during the exam when solving problems 3.
1.2 Examination structure and rules
Assessment involves a midterm test and a final examination 3.
1.2.1 Midterm test (Tussentijdse toets)
- The midterm test takes place during a non-lecture week (lesluwe week) 3.
- The score from the midterm test will be considered only if the student passes it AND the score on the midterm test is greater than the score achieved on the final exam (score(TTT) > score(ex)) 3.
1.2.2 Final Examination rules
- The exam is closed book 3.
- Allowed materials: Students may use a formula sheet (formularium) and a calculator approved by the faculty, as specified on TOLEDO 3.
- Question types: Exams include theoretical questions, insight-based questions, and proofs taken from the lectures or textbook 3.
1.3 Introduction to linear equations
The course begins by studying linear equations and their solution sets, referencing Section 1.1 of Lay 4 6.
1.3.1 Definition of a linear equation
A linear equation is defined as an expression having the form: a1x1+a2x2+⋯+anxn=b 4.
- Variables (xi): The unknowns in the equation, which belong to the set of real numbers (R) or complex numbers (C) 4.
- Coefficients (ai): The constants multiplying the variables, belonging to R or C 4.
- b: Referred to as the independent term or the right-hand side (rechter lid) 4.
Example: A specific linear equation in three variables is 3x1−2x2+x3=1 4.
1.3.2 Solution sets of a linear equation
A solution is an ordered set of n numbers (s1,…,sn) for the variables (x1,…,xn) that makes the equation a true statement 4.
The solution set is the collection of all such solutions 4.
Example: For the equation 3x1−2x2+x3=1, specific solutions include (1,1,0) and (−1,1,6) when solving over R. The general solution set V can be expressed parametrically: V={(r,s,1−3r+2s) with r,s∈R} 4 5.
1.4 Systems of linear equations
A system of linear equations consists of m linear equations involving n variables 5.
The general form is: a11x1+⋯+a1nxn⋮am1x1+⋯+amnxn=b1=⋮=bm 5.
1.4.1 Properties of system solutions
- A solution (s1,…,sn) must satisfy all m equations simultaneously 6.
- The solution set is determined by this requirement 6.
- If the solution set is non-empty, the system is called consistent. A consistent system can have either a unique solution or infinitely many solutions 6.
- If the solution set is empty, the system is called inconsistent or inconsistent (strijdig) 6.
- Equivalent systems: Two systems are equivalent if and only if they possess the exact same solution set 6.
Example: A specific 3×3 system: 3x1−2x2+x3−5x1+x2x1−x3=1=2=2 5.
1.5 Matrix notation
Systems of linear equations are efficiently represented using matrices 6.
1.5.1 Coefficient matrix
The coefficient matrix (A) comprises only the coefficients of the variables: A=a11⋮am1…⋱…a1n⋮amn 6.
This matrix A is an element of Rm×n or Cm×n, indicating m rows and n columns. Each horizontal arrangement of numbers is a row (rij), and each vertical arrangement is a column (kolom) 7.
1.5.2 Augmented coefficient matrix
The augmented coefficient matrix ([A∣b]) includes the coefficient matrix A along with the constants vector b (the right-hand side values) appended as an additional column 6 7: [A∣b=a11⋮am1…⋱…a1n⋮amnb1⋮bm 6.
Example: For the system 3x1−2x2+x3=1, −5x1+x2=2, and x1−x3=2: The Coefficient Matrix is 3−51−21010−1 7. The Augmented Coefficient Matrix is 3−51−21010−1122 7.
Solving linear systems using matrices and echelon forms
This section details the systematic process of solving systems of linear equations by transforming their augmented matrices into Echelon Form (EV) or Reduced Echelon Form (GEV) using elementary row operations 8.
2.1 Elementary row operations (ER) and row equivalence
The methods for solving linear systems rely on applying elementary row operations (ER) to an augmented matrix to obtain an equivalent, but simpler, system 8.
The three elementary row operations are:
- Row replacement: Replacing a row by the sum of itself and a multiple of another row: (row i) ← (row i) +c⋅ (row j) 8.
- Row swap: Interchanging two rows 8.
- Row scaling: Multiplying a row by a non-zero scalar c: (row i) ←c⋅ (row i), where c=0 8.
Key Properties of ER:
Row Equivalence: Two matrices, A and B, are row equivalent (denoted A∼B) if there exists a sequence of ER that transforms A into B 8.
Tip: Elementary row operations are the matrix equivalent of the algebraic operations used in Gaussian elimination to solve systems of equations, such as swapping equations, adding a multiple of one equation to another, or multiplying an equation by a non-zero constant 8 9.
2.2 Gaussian elimination process illustration
The process eliminates variables systematically using ER. For a system like 9:
3x1−2x2+x3−5x1+x2−x3x1+0x2−x3=1=2=2The augmented matrix starts as:
3−51−2101−1−1∣∣∣122- Row Swap (R1↔R3) yields an equivalent matrix 9:
- Row Replacement (R2+5R1→R2, R3−3R1→R3) introduces zeros below the leading element of the first row (the pivot) 9:
- Row Replacement (R3+2R2→R3) eliminates the next variable from the third row 9:
- Row Scaling (R3←−61R3) normalizes the pivot in the third row to 1 10:
This matrix is in Echelon Form (EV). Back-substitution using this form yields the solution x3=−19/6, x2=−23/6, and x1=−7/6 10.
2.3 Echelon Form (EV)
A matrix is in Echelon Form (EV) if it satisfies the following conditions 11:
- Any non-zero row has its leading entry (pivot) to the right of the leading entry of the row above it 11.
- All zero rows are at the bottom 11.
- All entries in a column below a leading entry are zero 11.
Note: EV is not unique 11.
Technique for achieving EV (Forward Elimination):
- Consider the entire matrix 13.
- Identify the leftmost non-zero column; this is the pivot column 13.
- Use row swaps to move a non-zero element (the pivot) to the top of this column 13.
- Use row replacement operations to make all entries below the pivot zero 13.
- Cover the top row and return to step 2 (consider the submatrix) 13.
2.4 Reduced Echelon Form (GEV)
A matrix in echelon form is in Reduced Echelon Form (GEV) if, in addition to the EV properties, it satisfies two further conditions 11:
Theorem: GEV is unique 11.
Technique for achieving GEV (Backward Substitution):
- First, transform the matrix into EV 13.
- Use row scaling to make all pivots equal to 1 13.
- Starting with the last non-zero row, use row replacement to make all entries above the pivot zero 13.
- Repeat step 3 for all preceding rows 13.
Example: Continuing from the EV matrix on page 10, further row operations (row replacement) lead to the GEV 10:
100010001∣∣∣−7/6−23/6−19/6
2.5 Pivots, pivot columns, and free variables
In the EV or GEV of a matrix A:
- Pivot position: The (i,j) entry where the pivot (leading 1) is located in the (G)EV 12.
- Pivot column (PK): A column in the original matrix A that contains a pivot in its (G)EV 12.
- Non-pivot column (NPK): A column without a pivot in the (G)EV 12.
- Pivot variables (Basic variables): Variables corresponding to pivot columns 14.
- Free variables: Variables corresponding to non-pivot columns; these can be chosen freely 14.
Tip: A row in EV or GEV either contains exactly one pivot (the leading element) or is a zero row (containing no pivot) 12.
2.6 Solving systems using GEV
Once the augmented matrix is in GEV, the system can be solved 14:
- Identify pivot and free variables: Variables corresponding to columns with pivots are basic; others are free 14.
- Write the parametric form: Express the basic variables as a function of the free variables and the right-hand side entries 14.
Example: If the GEV yields equations where x1 and x3 are basic, and x4 is free:
x1+T1/3x4x2+T1/3x4x3−T5/3x4=T1/3=−T2/3=T1/3The solution structure is parametric 15:
x1x2x3=T1/3−T1/3x4=−T2/3−T1/3x4=T1/3+T5/3x4The solution set V is expressed using the free variable r (where x4=r) 16:
V={(T1/3−T1/3r,−T2/3−T1/3r,T1/3+T5/3r,r) with r∈R}
If there is one free variable, the solution set forms a line (a straight line in R4 in this case) 16.
2.7 Consistency and Uniqueness of Solutions
The nature of the solution set (existence and uniqueness) is determined by the GEV of the augmented matrix [A∣b] 16.
Theorem 2 (Consistency): A linear system is consistent (has at least one solution) if and only if the rightmost column (the augmented part b) of the (G)EV of the augmented matrix is not a pivot column 16.
| Condition on GEV | Consistency | Number of Solutions |
|---|---|---|
| Right column is a pivot column | Inconsistent | Zero |
| No free variables | Consistent | Unique solution |
| Free variables exist | Consistent | Infinitely many solutions (∞ # sols.) |
Example of Inconsistent System: If the GEV leads to a row like (000∣1), which corresponds to 0=1, the system is inconsistent. The last column is a pivot column 16 17.
If the system is consistent:
- It has a unique solution if there are no free variables (i.e., every variable is a pivot variable) 16.
- It has infinitely many solutions if there is at least one free variable 16.
Vector spaces, linear combinations, and matrix representations
This section introduces the fundamental algebraic structure of vectors in Rn, the operation of forming linear combinations, the concept of the span of a set of vectors, and the powerful connection between these concepts and the representation and solution of systems of linear equations via matrix-vector products 18 20 23.
3.1 Vectors and basic operations
A vector x belonging to Rn is defined as an ordered list of n real numbers, x1,x2,…,xn 18. This is typically represented as a column vector: x=x1x2⋮xn∈Rn. A row vector is represented as x=[x1 x2 … xn]. Vectors are equal if and only if all their corresponding elements are equal 18.
Vectors in Rn are subject to element-wise operations 19:
- Vector Addition: For vectors u,v∈Rn, their sum u+v∈Rn is calculated such that (u+v)i=ui+vi 19.
- Scalar Multiplication: For a vector u∈Rn and a scalar c∈R, the product cu∈Rn is calculated such that (cu)i=cui 19.
The arithmetic rules for vector addition and scalar multiplication mirror those for real numbers 19:
- u+v=v+u
- (u+v)+w=u+(v+w)
- c(u+v)=cu+cv
- (c+d)u=cu+du
- (cd)u=c(du)
The zero vector, denoted 0, has all zero elements, and the negative of a vector is −u=(−1)u. The identities are u+0=0+u=u and u+(−u)=0 19.
Tip: Vector properties are often proven by writing the vector equations component-wise, as these component relationships reduce to the familiar arithmetic rules for real numbers 19.
3.2 Linear combinations and span
A key concept linking vectors is the linear combination 20.
Definition: A vector y∈Rn is a linear combination of vectors v1,v2,…,vp in Rn with weights c1,c2,…,cp∈R if it can be written as: y=c1v1+c2v2+…+cpvp 20.
The Span of a set of vectors {v1,v2,…,vp} is the set of all possible linear combinations of these vectors, which is a subset of Rn 21: Span{v1,v2,…,vp}={y∈Rn:y=c1v1+c2v2+…+cpvp} 21.
3.3 Connection to systems of linear equations
A system of m linear equations in n variables:
\begin{aligned} a_{11}x_1 + \ldots + a_{1n}x_n &= b_1 \\ \vdots \\ a_{m1}x_1 + \ldots + a_{mn}x_n &= b_m \end{aligned} $$ can be reinterpreted in several equivalent ways [21](#page=21) [22](#page=22) [25](#page=25). Let $\mathbf{a}_1, \mathbf{a}_2, \ldots, \mathbf{a}_n$ and $\mathbf{b}$ be vectors in $\mathbb{R}^m$, where the components of these vectors are the columns of the coefficient matrix and the constants, respectively [21](#page=21). 1. **Vector Equation:** The system is equivalent to the vector equation: $$x_1 \mathbf{a}_1 + x_2 \mathbf{a}_2 + \ldots + x_n \mathbf{a}_n = \mathbf{b}$$ [21](#page=21) [25](#page=25). This equation asks if $\mathbf{b}$ can be written as a linear combination of the vectors $\mathbf{a}_1, \ldots, \mathbf{a}_n$ [22](#page=22). 2. **Span Interpretation:** The system has a solution if and only if $\mathbf{b}$ lies in the span of the columns of the coefficient matrix, i.e., $\mathbf{b} \in \text{Span}\{\mathbf{a}_1, \mathbf{a}_2, \ldots, \mathbf{a}_n\}$ [22](#page=22) [23](#page=23). 3. **Augmented Matrix:** A solution exists if and only if the rightmost column of the augmented matrix $[\mathbf{a}_1 \ \mathbf{a}_2 \ \ldots \ \mathbf{a}_n \ \mathbf{b}]$ is not a pivot column (related to Theorem 2, consistency condition) [22](#page=22). > **Example:** The system > $$ > \begin{aligned} x_1 + 2x_2 &= 1 \\ 2x_1 - x_2 &= 0 \\ -x_1 + x_2 &= 1 \end{aligned} > $$ is equivalent to the vector equation [26](#page=26): > $$x_1 \begin{bmatrix} 1 \\ 2 \\ -1 \end{bmatrix} + x_2 \begin{bmatrix} 2 \\ -1 \\ 1 \end{bmatrix} = \begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix}$$ [26](#page=26). ### 3.4 Matrix-vector product $A\mathbf{x}$ If $A$ is an $m \times n$ matrix, $A = [\mathbf{a}_1 \ \mathbf{a}_2 \ \ldots \ \mathbf{a}_n]$, where $\mathbf{a}_i \in \mathbb{R}^m$, and $\mathbf{x} \in \mathbb{R}^n$, the **matrix-vector product** $A\mathbf{x}$ is defined as a linear combination of the columns of $A$ using the entries of $\mathbf{x}$ as weights [24](#page=24): $$A\mathbf{x} = x_1 \mathbf{a}_1 + x_2 \mathbf{a}_2 + \ldots + x_n \mathbf{a}_n \in \mathbb{R}^m$$ [24](#page=24) [25](#page=25). The matrix equation $A\mathbf{x} = \mathbf{b}$ is mathematically equivalent to the vector equation and the original system of linear equations [25](#page=25). The calculation of $A\mathbf{x}$ can also be done using the row-column rule, where the $i$-th entry of the resulting vector is the dot product of the $i$-th row of $A$ and the vector $\mathbf{x}$ [24](#page=24). **Properties of Matrix Multiplication (Theorem 5):** For $A \in \mathbb{R}^{m \times n}$ and $\mathbf{u}, \mathbf{v} \in \mathbb{R}^n$, $c \in \mathbb{R}$ [25](#page=25): * $A(\mathbf{u} + \mathbf{v}) = A\mathbf{u} + A\mathbf{v}$ * $A(c\mathbf{u}) = c(A\mathbf{u})$ ### 3.5 Span and the existence of solutions **Theorem 4 (Relationship to Echelon Form):** Let $A = [\mathbf{a}_1 \ \mathbf{a}_2 \ \ldots \ \mathbf{a}_n]$ be an $m \times n$ matrix. The following statements are equivalent [26](#page=26): a) The equation $A\mathbf{x} = \mathbf{b}$ has a solution for every $\mathbf{b} \in \mathbb{R}^m$. b) Every $\mathbf{b} \in \mathbb{R}^m$ is a linear combination of $\mathbf{a}_1, \mathbf{a}_2, \ldots, \mathbf{a}_n$. c) $\text{Span}\{\mathbf{a}_1, \mathbf{a}_2, \ldots, \mathbf{a}_n\} = \mathbb{R}^m$. d) The matrix $A$ has a pivot position in every row (not just in the augmented matrix $[\mathbf{A} \ \mathbf{b}]$) [26](#page=26) [27](#page=27). ### 3.6 Homogeneous and Non-homogeneous Systems #### 3.6.1 Homogeneous Systems ($A\mathbf{x} = \mathbf{0}$) The homogeneous equation $A\mathbf{x} = \mathbf{0}$ always has the **trivial solution** $\mathbf{x} = \mathbf{0}$ and is never inconsistent [28](#page=28). Non-trivial solutions exist if and only if there is at least one free variable, which corresponds to at least one non-pivot column in $A$ [28](#page=28). The solution set for a homogeneous system $A\mathbf{x} = \mathbf{0}$ is spanned by a specific set of vectors in $\mathbb{R}^n$. The number of vectors spanning this set equals the number of free variables (Non-Pivot Columns, NPK). These solutions are found by writing basic variables as functions of the free variables after reducing $A$ to reduced echelon form [28](#page=28) [29](#page=29). > **Example:** If the solution set for $A\mathbf{x} = \mathbf{0}$ is $V$, it can be written as $V = \text{Span}\{\mathbf{v}_1, \mathbf{v}_2, \ldots\}$ [29](#page=29). #### 3.6.2 Non-homogeneous Systems ($A\mathbf{x} = \mathbf{b}$) **Theorem 6:** If a non-homogeneous system $A\mathbf{x} = \mathbf{b}$ is consistent (has at least one solution), let $\mathbf{p}$ be one particular solution such that $A\mathbf{p} = \mathbf{b}$. The entire solution set for $A\mathbf{x} = \mathbf{b}$ is given by vectors of the form $\mathbf{p} + \mathbf{v}_h$, where $\mathbf{v}_h$ is any solution to the corresponding homogeneous equation $A\mathbf{x} = \mathbf{0}$ [30](#page=30). Geometrically, the solution set $\{ \mathbf{x}: A\mathbf{x}=\mathbf{b} \}$ is a translation (or parallel shift) of the solution space of the homogeneous system $\{ \mathbf{x}: A\mathbf{x}=\mathbf{0} \}$ by the vector $\mathbf{p}$ [30](#page=30). --- # Linear transformations and diagonalization This topic introduces the mathematical framework of linear transformations between Euclidean spaces, their matrix representations, key properties like injectivity and surjectivity, and the crucial process of diagonalization using eigenvectors to simplify these transformations. ### 4.1 Linear transformations and matrix representation A linear transformation $T$ from $\mathbb{R}^n$ to $\mathbb{R}^m$ maps vectors from the domain $\mathbb{R}^n$ to the range (or image) within the codomain $\mathbb{R}^m$ [36](#page=36): $$T: \mathbb{R}^n \rightarrow \mathbb{R}^m : \mathbf{x} \rightarrow T(\mathbf{x}) = \mathbf{b}$$ The **kernel (null space)** of a transformation $T: \mathbb{R}^n \rightarrow \mathbb{R}^m$ is defined as the set of vectors in the domain that map to the zero vector in the codomain [37](#page=37): $$\text{Kernel}(T) = \{\mathbf{x} \in \mathbb{R}^n : T(\mathbf{x}) = \mathbf{0}\}$$ A **matrix transformation** is a transformation defined by $T: \mathbb{R}^n \rightarrow \mathbb{R}^m$ where $T(\mathbf{x}) = A\mathbf{x}$, with $A$ being an $m \times n$ matrix. Every matrix transformation is a linear transformation [37](#page=37) [38](#page=38). #### 4.1.1 Definition of a linear transformation A transformation $T: \mathbb{R}^n \rightarrow \mathbb{R}^m$ is **linear** if it satisfies two fundamental properties for all scalars $c$ and all vectors $\mathbf{u}, \mathbf{v}$ in the domain [38](#page=38): 1. $T(\mathbf{u} + \mathbf{v}) = T(\mathbf{u}) + T(\mathbf{v})$ 2. $T(c\mathbf{u}) = c T(\mathbf{u})$ A consequence of this definition is that $T(\mathbf{0}) = \mathbf{0}$ and that linearity extends to linear combinations: $T(c_1\mathbf{v}_1 + \dots + c_p\mathbf{v}_p) = c_1T(\mathbf{v}_1) + \dots + c_pT(\mathbf{v}_p)$ [38](#page=38). #### 4.1.2 Standard matrix of a linear transformation The standard basis vectors in $\mathbb{R}^n$ are denoted $\mathbf{e}_i$, where $\mathbf{e}_i$ is the vector with 1 in the $i$-th component and 0 elsewhere [39](#page=39): $$\mathbf{e}_i = \begin{pmatrix} 0 \\ \vdots \\ 1 \\ \vdots \\ 0 \end{pmatrix} \text{ (1 in } i\text{-th component)}$$ Any vector $\mathbf{x} \in \mathbb{R}^n$ can be written as a linear combination of these basis vectors: $$\mathbf{x} = x_1 \mathbf{e}_1 + x_2 \mathbf{e}_2 + \dots + x_n \mathbf{e}_n$$ [39](#page=39). **Theorem:** Every linear transformation $T: \mathbb{R}^n \rightarrow \mathbb{R}^m$ is a matrix transformation. If $T$ is linear, then [39](#page=39): $$T(\mathbf{x}) = T(x_1 \mathbf{e}_1 + \dots + x_n \mathbf{e}_n) = x_1 T(\mathbf{e}_1) + \dots + x_n T(\mathbf{e}_n) = [T(\mathbf{e}_1) \ T(\mathbf{e}_2) \ \dots \ T(\mathbf{e}_n)] \begin{pmatrix} x_1 \\ \vdots \\ x_n \end{pmatrix} = A\mathbf{x}$$ [39](#page=39). The **standard matrix** $A$ of the transformation $T$ is formed by using the images of the standard basis vectors as its columns: $$A = [T(\mathbf{e}_1) \ T(\mathbf{e}_2) \ \dots \ T(\mathbf{e}_n)]$$ [38](#page=38) [39](#page=39). This establishes the equivalence between $y = T(\mathbf{x})$ and $y = A\mathbf{x}$ [39](#page=39). > **Tip:** Examples of standard matrices for transformations in $\mathbb{R}^2$ include reflections (e.g., across the $x$-axis: $\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}$), projections (e.g., onto the $x$-axis: $\begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}$), and rotations (not explicitly listed but implied by the geometric examples) [40](#page=40) [41](#page=41). ### 4.2 Injectivity and surjectivity of linear transformations For a linear transformation $T: \mathbb{R}^n \rightarrow \mathbb{R}^m$ with standard matrix $A$: #### 4.2.1 Surjectivity (Onto) $T$ is **surjective** if every vector $\mathbf{b}$ in $\mathbb{R}^m$ is the image of at least one vector $\mathbf{x}$ in $\mathbb{R}^n$. This means the range equals the codomain [42](#page=42). **Theorem 12a:** $T$ is surjective if and only if [42](#page=42): * For all $\mathbf{b} \in \mathbb{R}^m$, there exists $\mathbf{x} \in \mathbb{R}^n$ such that $\mathbf{b} = T(\mathbf{x}) = A\mathbf{x}$. * The column space of $A$, $\text{Span}\{\mathbf{a}_1, \mathbf{a}_2, \dots, \mathbf{a}_n\}$, equals $\mathbb{R}^m$. * The matrix $A$ has a pivot in every row [42](#page=42). #### 4.2.2 Injectivity (One-to-one) $T$ is **injective** if every vector $\mathbf{b}$ in $\mathbb{R}^m$ is the image of at most one vector $\mathbf{x}$ in $\mathbb{R}^n$ [43](#page=43). **Theorem 11:** A linear transformation $T: \mathbb{R}^n \rightarrow \mathbb{R}^m$ is injective if and only if $T(\mathbf{x}) = \mathbf{0}$ has only the trivial solution $\mathbf{x}=\mathbf{0}$ [43](#page=43). **Theorem 12b:** $T$ is injective if and only if [44](#page=44): * $A\mathbf{x}=\mathbf{0}$ has only $\mathbf{x}=\mathbf{0}$ as a solution. * The equation $x_1 \mathbf{a}_1 + x_2 \mathbf{a}_2 + \dots + x_n \mathbf{a}_n = \mathbf{0}$ has only the trivial solution $\mathbf{x}=\mathbf{0}$. * The columns of $A$ are linearly independent (l.i.). * The matrix $A$ has a pivot in every column [44](#page=44). > **Note:** Injectivity and surjectivity are not direct opposites of each other [45](#page=45). > **Summary of Views for $A \in \mathbb{R}^{m \times n}, \mathbf{b} \in \mathbb{R}^m$:** > 1. By row: A system of $m$ equations in $n$ variables ($a_{i1}x_1 + \dots + a_{in}x_n = b_i$) [45](#page=45). > 2. By column: A vector equation ($x_1 \mathbf{a}_1 + x_2 \mathbf{a}_2 + \dots + x_n \mathbf{a}_n = \mathbf{b}$) [45](#page=45). > 3. As a linear transformation ($T: \mathbb{R}^n \rightarrow \mathbb{R}^m: \mathbf{x} \rightarrow A\mathbf{x}$) [45](#page=45). ### 4.3 Eigenvalues and eigenvectors For an $n \times n$ matrix $A$ [98](#page=98): * **Eigenvector:** A non-zero vector $\mathbf{x} \neq \mathbf{0}$ is an eigenvector of $A$ if there exists a scalar $\lambda$ such that $A\mathbf{x} = \lambda \mathbf{x}$ [98](#page=98). * **Eigenvalue:** A scalar $\lambda$ is an eigenvalue of $A$ if there exists a non-trivial solution $\mathbf{x} \neq \mathbf{0}$ to $A\mathbf{x} = \lambda \mathbf{x}$ [98](#page=98). Geometrically, an eigenvector is mapped onto a scalar multiple of itself by the transformation $T(\mathbf{x}) = A\mathbf{x}$ [98](#page=98). #### 4.3.1 Eigenvectors and the null space Finding eigenvectors $\mathbf{x}$ corresponding to a known eigenvalue $\lambda$ involves solving the homogeneous system [99](#page=99): $$A\mathbf{x} = \lambda \mathbf{x} \iff (A - \lambda I)\mathbf{x} = \mathbf{0}$$ where $I$ is the identity matrix [99](#page=99). The **eigenspace** associated with $\lambda$ is the null space of the matrix $(A - \lambda I)$: $$\text{Eigenspace}(\lambda) = \text{Nul}(A - \lambda I), \quad \text{with } 1 \le \dim(\text{Nul}(A - \lambda I)) \le n$$ [99](#page=99). **Theorem 2:** A set of eigenvectors $\mathbf{v}_1, \dots, \mathbf{v}_r$ corresponding to distinct eigenvalues $\lambda_1, \dots, \lambda_r$ is a linearly independent set [100](#page=100). #### 4.3.2 Characteristic equation The equation $(A - \lambda I)\mathbf{x} = \mathbf{0}$ has a non-trivial solution $\mathbf{x} \neq \mathbf{0}$ if and only if the matrix $(A - \lambda I)$ is non-invertible, meaning its determinant is zero : $$\det(A - \lambda I) = 0$$ This is the **characteristic equation** . The expression $\det(A - \lambda I)$ is an $n$-degree polynomial in $\lambda$, called the **characteristic polynomial (KP)** : $$\det(A - \lambda I) = (-1)^n (\lambda^n + a_{n-1}\lambda^{n-1} + \dots + a_1\lambda + a_0)$$ . There are always exactly $n$ solutions (eigenvalues), which may be complex or repeated. If $\lambda_i$ has algebraic multiplicity $m_i$, the KP factors as $\det(A - \lambda I) = (\lambda_1 - \lambda)^{m_1} \dots (\lambda_k - \lambda)^{m_k}$, where $\sum m_i = n$ . > **Note:** The eigenvalues of a triangular matrix (upper or lower) are the entries on its main diagonal . **Eigenvalue Zero:** A matrix $A$ has an eigenvalue of zero if and only if $\det(A) = 0$, meaning $A$ is singular (non-invertible) . **Procedure for calculating eigenvalues/eigenvectors (Eig/Ev):** 1. Factor the characteristic equation: $\det(A - \lambda I) = (\lambda_1 - \lambda)^{m_1} \dots (\lambda_k - \lambda)^{m_k}$, where $\sum_{j=1}^{k} m_j = n$ . 2. For each $j=1 \dots k$, solve the system $(A - \lambda_j I) \mathbf{x} = \mathbf{0}$. This yields $d_j$ linearly independent eigenvectors that span the eigenspace corresponding to $\lambda_j$. Here, $d_j$ is the **geometric multiplicity** of $\lambda_j$ . * **Property:** $1 \le d_j \le m_j$ . ### 4.4 Similarity and Diagonalization #### 4.4.1 Similarity transformations Two $n \times n$ matrices $A$ and $C$ are **similar** if there exists an invertible $n \times n$ matrix $P$ such that $C = P^{-1} A P$ (or $A = P C P^{-1}$) . **Theorem 4:** Similar matrices share the same characteristic polynomial and thus have the same eigenvalues . Similarity relates to changing the basis of a linear transformation $T(\mathbf{x}) = A\mathbf{x}$. If $P = [\mathbf{b}_1 \ \dots \ \mathbf{b}_n]$ is the change of basis matrix where $\{\mathbf{b}_i\}$ is the new basis $B$, the matrix representation of $T$ in basis $B$ is $[A]_B = P^{-1} A P$ . If the basis $B$ consists of eigenvectors $\{\mathbf{v}_1, \dots, \mathbf{v}_n\}$, the transformation in this eigenbasis becomes extremely simple: $T(\mathbf{v}_j) = \lambda_j \mathbf{v}_j$, and the matrix $[A]_B = D$ is a diagonal matrix containing the eigenvalues . #### 4.4.2 Diagonalization **Definition:** A matrix $A$ is **diagonalizable** if it is similar to a diagonal matrix $D$, meaning $A = P D P^{-1}$ where $D = P^{-1} A P$ . **Theorem 5:** An $n \times n$ matrix $A$ is diagonalizable if and only if $A$ possesses $n$ linearly independent eigenvectors. In this case, $P = [\mathbf{v}_1 \ \dots \ \mathbf{v}_n]$ (matrix of eigenvectors) and $D$ is the diagonal matrix : $$D = \begin{pmatrix} \lambda_1 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & \lambda_n \end{pmatrix}$$ . > **Interpretation:** If $A$ is diagonalizable, there exists a basis (the eigenvectors) in which the linear transformation is represented by a diagonal matrix. In this basis, the transformation simply scales the coordinates by the respective eigenvalues . **Theorem 6:** If an $n \times n$ matrix $A$ has $n$ distinct eigenvalues, it is diagonalizable . **Theorem 7 (abbreviated):** $A$ is diagonalizable if and only if the geometric multiplicity ($d_i$) equals the algebraic multiplicity ($m_i$) for every eigenvalue $\lambda_i$, i.e., $d_1 + \dots + d_k = n$ . #### 4.4.3 Calculating powers and properties using diagonalization If $A$ is diagonalizable, $A^k = P D^k P^{-1}$ . For a diagonalizable matrix $A$ with eigenvalues $\lambda_i$ : * Determinant: $\det(A) = \prod_{i=1}^{n} \lambda_i$ * Trace: $\text{trace}(A) = \sum_{i=1}^{n} a_{ii} = \sum_{i=1}^{n} \lambda_i$ > **Example:** If $A = \begin{pmatrix} 3 & -1 \\ -0.5 & 2.5 \end{pmatrix}$ has eigenvalues $\lambda_1 = 2$ and $\lambda_2 = 3.5$, then $\det(A) = 7 = 2 \cdot 3.5$, and $\text{trace}(A) = 5.5 = 2 + 3.5$ . #### 4.4.4 Diagonalizability vs. Invertibility Diagonalizability and invertibility are distinct concepts . * $A$ is **diagonalizable** $\iff$ it has $n$ linearly independent eigenvectors . * $A$ is **invertible** $\iff$ it has $n$ linearly independent columns . > **Caveat:** A matrix can be invertible but not diagonalizable (e.g., $\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$), or diagonalizable but not invertible (e.g., $\begin{pmatrix} 1 & 1 \\ 1 & 1 \end{pmatrix}$) . > **Study Technique:** When calculating eigenvalues and eigenvectors, remember that elementary row/column operations change eigenvalues and eigenvectors . --- # Matrix algebra and factorization This topic details the fundamental operations on matrices, their algebraic properties, the concept of matrix transposition, and the utility of factorization methods like LU decomposition for solving linear systems. ### 5.1 Basic matrix operations Matrix operations are defined for matrices $A$ and $B$ of size $m \times n$ (denoted $A, B \in \mathbb{R}^{m \times n}$) and a scalar $c \in \mathbb{R}$ [47](#page=47). #### 5.1.1 Matrix addition and scalar multiplication The sum of two matrices $A$ and $B$ is defined element-wise, provided they have the same dimensions [47](#page=47): $$(A+B)_{ij} = (A)_{ij} + (B)_{ij}$$ [47](#page=47). Scalar multiplication of a matrix $A$ by a scalar $c$ is also defined element-wise [47](#page=47): $$(cA)_{ij} = c(A)_{ij}$$ [47](#page=47). #### 5.1.2 Matrix-vector product For a matrix $A \in \mathbb{R}^{m \times n}$ and a vector $u \in \mathbb{R}^n$, the matrix-vector product $Au$ results in a vector in $\mathbb{R}^m$ [47](#page=47): $$Au = u_1 a_1 + u_2 a_2 + \dots + u_n a_n \in \mathbb{R}^m$$ where $a_i$ are the columns of $A$ [47](#page=47). #### 5.1.3 Matrix product AB If $A \in \mathbb{R}^{m \times n}$ and $B \in \mathbb{R}^{n \times p}$, the product $AB$ results in a matrix in $\mathbb{R}^{m \times p}$ [48](#page=48): $$AB = [A b_1 \ A b_2 \ \dots \ A b_p \in \mathbb{R}^{m \times p}$$ where $b_j$ are the columns of $B$. The $j$-th column of $AB$ is the matrix $A$ multiplied by the $j$-th column of $B$ [48](#page=48). > **Tip:** The dimensions must align such that the number of columns in the first matrix ($n$) equals the number of rows in the second matrix ($n$) [48](#page=48). #### 5.1.4 Row-column rule for AB The element $(AB)_{ij}$ is calculated using the dot product of the $i$-th row of $A$ and the $j$-th column of $B$ [49](#page=49): $$(AB)_{ij} = a_{i1} b_{1j} + a_{i2} b_{2j} + \dots + a_{in} b_{nj} = \sum_{k=1}^{n} a_{ik} b_{kj}$$ [49](#page=49). > **Example:** To find $(AB)_{12}$, one multiplies the first row of $A$ by the second column of $B$ and sums the products [49](#page=49). #### 5.1.5 Properties of matrix multiplication (Theorem 1 & 2) The fundamental rules governing matrix addition and scalar multiplication (Theorem 1) include commutativity of addition and associativity [47](#page=47): * $A + B = B + A$ [47](#page=47). * $(A+B)+C = A+(B+C)$ [47](#page=47). * $A + 0 = A$ [47](#page=47). * $r(A+B) = rA + rB$, where $r, s \in \mathbb{R}$ [47](#page=47). Properties related to matrix multiplication (Theorem 2) highlight its non-commutative nature, but the crucial role of associativity [50](#page=50): * **Associativity:** $(AB)C = A(BC)$ [50](#page=50). * **Distributivity:** $A(B+C) = AB + AC$ and $(B+C)A = BA + CA$ [50](#page=50). * **Scalar multiplication:** $r(AB) = (rA)B = A(rB)$ for any scalar $r$ [50](#page=50). * **Matrix power:** $A^k = A \dots A$ ($k$ factors), where $A \in \mathbb{R}^{n \times n}$ and $k \geq 1$ [50](#page=50). * **Important Caveat:** Matrix multiplication is generally **not commutative** ($AB \neq BA$) [50](#page=50) [51](#page=51). > **Tip:** Matrix multiplication represents the composition of linear transformations; if $T$ is represented by $A$ and $S$ by $B$, then $T(S(x)) = (AB)x$ [50](#page=50) [51](#page=51). ### 5.2 Matrix Transpose The transpose of a matrix $A$, denoted $A^T$, is obtained by swapping rows and columns [51](#page=51). The definition is: $$(A^T)_{ij} = (A)_{ji}$$ [51](#page=51). **Properties of the Transpose (Theorem 3)** [51](#page=51): * $(A^T)^T = A$ [51](#page=51). * $(A + B)^T = A^T + B^T$ [51](#page=51). * $(rA)^T = rA^T$ [51](#page=51). * **Order reversal for product:** $(AB)^T = B^T A^T$ [51](#page=51). ### 5.3 Diagonal and Identity Matrices A square $n \times n$ matrix $A$ is **diagonal** if all off-diagonal elements are zero ($a_{ij} = 0$ for $i \neq j$). The elements $a_{ii}$ are the diagonal elements [52](#page=52). The **Identity Matrix** $I_n \in \mathbb{R}^{n \times n}$ is a diagonal matrix where all diagonal elements are 1 [52](#page=52). **Property:** For any matrix $B$ of compatible size ($m \times n$): $$B I_n = B = I_m B$$ [52](#page=52). ### 5.4 Inverse Matrix For an $n \times n$ matrix $A$, the **inverse** $A^{-1}$ exists if and only if there is an $n \times n$ matrix $C$ such that [53](#page=53): $$CA = I_n \quad \text{and} \quad AC = I_n$$ [53](#page=53). If it exists, $C$ is unique and denoted $A^{-1}$. A matrix without an inverse is called **singular** [53](#page=53). #### 5.4.1 Solving $Ax=b$ using the inverse If $A$ is invertible, the unique solution to $Ax=b$ for any $b \in \mathbb{R}^n$ is given by: $$x = A^{-1}b$$ [53](#page=53). If $A$ is invertible, the linear transformation $T: \mathbb{R}^n \to \mathbb{R}^n$ defined by $T(x) = Ax$ is both **injective** (one-to-one) and **surjective** (onto) [53](#page=53). #### 5.4.2 Properties of the inverse (Theorem 6) If $A$ and $B$ are invertible $n \times n$ matrices [54](#page=54): * $(A^{-1})^{-1} = A$ [54](#page=54). * $(AB)^{-1} = B^{-1} A^{-1}$ (order reverses) [54](#page=54). * $(A^T)^{-1} = (A^{-1})^T$ [54](#page=54). * For square matrices, if $AB = I_n$, then $BA = I_n$ [54](#page=54). #### 5.4.3 Calculating the inverse via row reduction (Theorem 7) A matrix $A$ is invertible if and only if it is row equivalent to the identity matrix $I_n$ ($A \sim I_n$) [56](#page=56) [57](#page=57). If $A$ is invertible, performing elementary row operations (EROs) to transform $[A \ | \ I_n]$ results in $[I_n \ | \ A^{-1}]$ [56](#page=56) [57](#page=57). If $E_p \dots E_1 A = U$, and $U = I_n$, then $A = (E_p \dots E_1)^{-1} = E_1^{-1} \dots E_p^{-1}$ [57](#page=57). > **Tip:** Calculating the inverse involves applying a sequence of elementary matrices $E_i$ such that $E_p \dots E_1 A = I_n$, which implies $A^{-1} = E_p \dots E_1$ applied to $I_n$ [57](#page=57). ### 5.5 Elementary Matrices and Inverses Multiplying a matrix on the left by an **elementary matrix** $E$ performs the corresponding elementary row operation (ERO) [55](#page=55). The three types of EROs and their corresponding elementary matrices $E$ are [55](#page=55): 1. **Row Scaling:** Scaling a row by $k \neq 0$. $E^{-1}$ scales the same row by $1/k$ [55](#page=55). 2. **Row Swap:** Swapping two rows. $E^{-1} = E$ (the operation is its own inverse) [55](#page=55). 3. **Row Replacement:** Adding a multiple $k$ of one row to another. $E^{-1}$ subtracts the multiple $k$ of that row (i.e., adds $-k$) [55](#page=55). All elementary matrices are invertible [55](#page=55). ### 5.6 Partitioned Matrices A matrix can be divided into smaller rectangular matrices called **blocks** [59](#page=59). $$\mathbf{A} = \begin{pmatrix} \mathbf{A}_{11} & \mathbf{A}_{12} & \mathbf{A}_{13} \\ \mathbf{A}_{21} & \mathbf{A}_{22} & \mathbf{A}_{23} \end{pmatrix}$$ [59](#page=59). #### 5.6.1 Operations on partitioned matrices * **Addition:** Blocks must have identical dimensions and are added element-wise [60](#page=60): $$\begin{pmatrix} \mathbf{A}_{11} & \mathbf{A}_{12} \\ \mathbf{A}_{21} & \mathbf{A}_{22} \end{pmatrix} + \begin{pmatrix} \mathbf{B}_{11} & \mathbf{B}_{12} \\ \mathbf{B}_{21} & \mathbf{B}_{22} \end{pmatrix} = \begin{pmatrix} \mathbf{A}_{11} + \mathbf{B}_{11} & \mathbf{A}_{12} + \mathbf{B}_{12} \\ \mathbf{A}_{21} + \mathbf{B}_{21} & \mathbf{A}_{22} + \mathbf{B}_{22} \end{pmatrix}$$ [60](#page=60). * **Multiplication:** Performed as if blocks were scalar elements, provided block dimensions are conforming. **Note:** Multiplication is not commutative [60](#page=60). $$\begin{pmatrix} \mathbf{A}_{11} & \mathbf{A}_{12} \\ \mathbf{A}_{21} & \mathbf{A}_{22} \end{pmatrix} \begin{pmatrix} \mathbf{B}_{1} \\ \mathbf{B}_{2} \end{pmatrix} = \begin{pmatrix} \mathbf{A}_{11}\mathbf{B}_{1} + \mathbf{A}_{12}\mathbf{B}_{2} \\ \mathbf{A}_{21}\mathbf{B}_{1} + \mathbf{A}_{22}\mathbf{B}_{2} \end{pmatrix}$$ [60](#page=60). #### 5.6.2 Inverse of a block matrix For a block upper triangular matrix $\mathbf{A} = \begin{pmatrix} \mathbf{A}_{11} & \mathbf{A}_{12} \\ \mathbf{0} & \mathbf{A}_{22} \end{pmatrix}$, where $\mathbf{A}_{11}$ is $p \times p$ and $\mathbf{A}_{22}$ is $q \times q$, if $A$ is invertible, its inverse $\mathbf{B} = \mathbf{A}^{-1}$ is given by [61](#page=61): $$\mathbf{A}^{-1} = \begin{pmatrix} \mathbf{A}_{11}^{-1} & -\mathbf{A}_{11}^{-1}\mathbf{A}_{12} \mathbf{A}_{22}^{-1} \\ \mathbf{0} & \mathbf{A}_{22}^{-1} \end{pmatrix}$$ [61](#page=61). ### 5.7 Matrix factorization: LU decomposition Matrix factorization involves decomposing a matrix into a product of matrices with specific properties. A primary example is the LU decomposition, $A = LU$ [62](#page=62). This factorization applies when an $m \times n$ matrix $A$ can be reduced to echelon form ($U$) using only elementary row replacement operations (no row swaps or scaling) [62](#page=62). * $L$ is an $m \times m$ **lower triangular matrix** with ones on the diagonal [62](#page=62). * $U$ is an $m \times n$ matrix in **echelon form** [62](#page=62). #### 5.7.1 Utility of LU decomposition The main application is solving linear systems $Ax=b$ efficiently for many different vectors $b$ [62](#page=62): $$LUx = b \quad \iff \quad L(Ux) = b$$ This decouples the problem into two simpler steps [62](#page=62): 1. Solve $Ly = b$ for $y$ (Forward substitution, as $L$ is triangular) [62](#page=62). 2. Solve $Ux = y$ for $x$ (Backward substitution) [62](#page=62). #### 5.7.2 Construction of L and U The factorization is derived from the row reduction process: $E_p \dots E_1 A = U$ [63](#page=63). Then $A = (E_p \dots E_1)^{-1} U = L U$ where [63](#page=63): $$L = (E_p \dots E_1)^{-1} = E_1^{-1} \dots E_p^{-1}$$ [63](#page=63). Since only row replacements are used, each $E_i$ is a unit lower triangular matrix. The product of unit lower triangular matrices is also unit lower triangular, confirming the structure of $L$ [63](#page=63). The entries of $L$ are determined by the factors used in the row replacements applied to reduce $A$ to $U$ [64](#page=64): $$L_{ij} = \frac{x}{a}$$ where $x$ is the element in row $i$ below the pivot, and $a$ is the pivot element in row $j$ (for $i > j$). The matrix $U$ is the resulting echelon form [64](#page=64). > **Example:** If $R_2 - \frac{1}{3} R_1$ is performed, the corresponding factor in $L$ ($L_{21}$) is $1/3$ [63](#page=63). --- # Determinants and applications to volume This section summarizes the definition of the determinant, its properties concerning elementary row operations, its use in Cramer's rule for solving linear systems, and its geometric interpretation related to scaling volumes under linear transformations. ### 3.1 Definition of the determinant The determinant, denoted $\det(A)$ or $|A|$, is a scalar value associated with a square matrix $A \in \mathbb{R}^{n \times n}$ [65](#page=65). #### 3.1.1 Determinant for small matrices For an $n=1$ matrix, $A = [a_{11}]$, the determinant is simply: $$ \det A = a_{11} $$ For $n=2$: $$ \det A = a_{11} a_{22} – a_{12} a_{21} $$ For $n=3$, the determinant can be calculated using the Sarrus rule generalization: $$ \det A = a_{11} a_{22} a_{33} + a_{21} a_{32} a_{13} + a_{12} a_{23} a_{31} – a_{31} a_{22} a_{13} – a_{21} a_{12} a_{33} – a_{32} a_{23} a_{11} $$ #### 3.1.2 Cofactor expansion For a general $n \times n$ matrix, the determinant can be computed recursively using cofactor expansion along any row $i$ or column $j$ [66](#page=66): $$ \det A = \sum_{j=1}^{n} (-1)^{1+j} a_{1j} \det A_{1j} $$ This general expansion along row $i$ is: $$ \det A = \sum_{j=1}^{n} (-1)^{i+j} a_{ij} \det A_{ij} $$ And along column $j$ is: $$ \det A = \sum_{i=1}^{n} (-1)^{i+j} a_{ij} \det A_{ij} $$ Here, $A_{ij}$ is the submatrix formed by deleting row $i$ and column $j$ from $A$ [66](#page=66). The term $C_{ij} = (-1)^{i+j} \det A_{ij}$ is defined as the **cofactor** of the entry $a_{ij}$ [66](#page=66). > **Tip:** The sign pattern for cofactors alternates, starting with a plus sign in the top-left corner, as shown by the pattern: > $$ > \begin{pmatrix} > + & - & + & \cdots \\ > - & + & - & \cdots \\ > + & - & + & \cdots \\ > \vdots & \vdots & \vdots & \ddots > \end{pmatrix} > $$ > [65](#page=65) [66](#page=66). #### 3.1.3 Determinant of triangular matrices If $A$ is an upper or lower triangular matrix ($A \in \mathbb{R}^{n \times n}$), its determinant is the product of its diagonal entries [66](#page=66): $$ \det A = \prod_{j=1}^{n} a_{jj} $$ ### 3.2 Determinant properties Properties related to elementary row operations (ER) are crucial for computation and theoretical understanding. Let $B = EA$ where $E$ is an elementary matrix performing an operation on $A$ [67](#page=67): 1. **Row scaling:** If $E$ scales one row by a factor $k$, then $\det(B) = k \det(A)$ [67](#page=67). 2. **Row swap:** If $E$ swaps two rows, then $\det(B) = - \det(A)$ [67](#page=67). 3. **Row replacement:** If $E$ replaces Row $i$ with $k(\text{Row } p) + (\text{Row } i)$, then $\det(B) = \det(A)$ [67](#page=67). Combining these, we have $\det(B) = \det(E) \det(A)$ [67](#page=67). #### 3.2.1 Invertibility and the determinant **Theorem 4:** A square matrix $A$ is invertible if and only if $\det(A) \neq 0$ [68](#page=68). This is related to the Row Echelon Form (REF), $U$: $E_p \cdots E_1 A = U$. Since the determinant of elementary matrices used for row operations is non-zero, we have $c \det(A) = \det(U)$, where $c \neq 0$ [68](#page=68). * If $A$ is invertible, $U$ has $n$ pivot positions, resulting in $\det(U) \neq 0$, thus $\det(A) \neq 0$ [68](#page=68). * If $A$ is not invertible, $U$ has at least one row of zeros, so $\det(U) = 0$, thus $\det(A) = 0$ [68](#page=68). #### 3.2.2 Other key properties * **Transpose property:** $\det(A) = \det(A^T)$ [68](#page=68). * **Multiplicative property:** $\det(AB) = \det(A) \det(B)$ [68](#page=68). > **Caveat:** The determinant is generally **not** linear: $\det(A+B) \neq \det(A) + \det(B)$ and $\det(kA) \neq k \det(A)$ (unless $k=1$ or $A$ is $1\times 1$) [68](#page=68). **Linearity in a Column/Row:** The function $x \mapsto \det([a_1 \ldots a_{i-1} \ x \ a_{i+1} \ldots a_n])$ is linear in the vector $x$ [68](#page=68). ### 3.3 Cramer's rule and the inverse matrix Cramer's rule provides a method to solve $A\mathbf{x}=\mathbf{b}$ when $\det(A) \neq 0$ [69](#page=69). #### 3.3.1 Cramer's rule for solutions Let $A = [\mathbf{a}_1 \ldots \mathbf{a}_n]$ be the columns of $A$. Let $A_i(\mathbf{x})$ be the matrix formed by replacing the $i$-th column of $A$ with the vector $\mathbf{x}$. For the system $A\mathbf{x}=\mathbf{b}$ [69](#page=69): $$ (\det A) x_i = \det A_i(\mathbf{b}) $$ If $\det(A) \neq 0$, the unique solution for $x_i$ is: $$ x_i = \frac{\det A_i(\mathbf{b})}{\det A} $$ #### 3.3.2 Cramer's rule for the inverse matrix The columns $\mathbf{d}_j$ of $A^{-1}$ satisfy the $n$ systems $A\mathbf{d}_j = \mathbf{e}_j$, where $\mathbf{e}_j$ is the $j$-th standard basis vector. Applying Cramer's rule to find the $i$-th entry of $\mathbf{d}_j$, denoted $d_{ji}$ [70](#page=70): $$ d_{ji} = \frac{\det A_i(\mathbf{e}_j)}{\det A} $$ Since $\det A_i(\mathbf{e}_j) = (-1)^{i+j} \det A_{ji}$, where $A_{ji}$ is the minor matrix, we have: $$ d_{ji} = \frac{(-1)^{i+j} \det A_{ji}}{\det A} = \frac{C_{ji}}{\det A} $$ The entry $(A^{-1})_{ij}$ is $d_{ji}$. Therefore, the inverse matrix is given by: $$ A^{-1}_{ij} = \frac{1}{\det A} C_{ji} $$ This leads to the adjugate formula for the inverse: $$ A^{-1} = \frac{1}{\det A} \text{adj}(A) $$ where $\text{adj}(A)$ is the adjugate matrix whose $(i, j)$-th entry is the cofactor $C_{ji}$ [70](#page=70). ### 3.4 Application to volume The determinant measures how a linear transformation scales area or volume [70](#page=70) [72](#page=72). #### 3.4.1 Area in $\mathbb{R}^2$ The area of the parallelogram spanned by vectors $\mathbf{s}_1 = \begin{pmatrix} a \\ b \end{pmatrix}$ and $\mathbf{s}_2 = \begin{pmatrix} c \\ d \end{pmatrix}$ is given by the absolute value of the determinant of the matrix formed by these vectors as columns [70](#page=70) [71](#page=71): $$ \text{Area} = |\det [\mathbf{s}_1 \ \mathbf{s}_2]| = \left| \det \begin{pmatrix} a & c \\ b & d \end{pmatrix} \right| = |ad - bc| $$ Row operations that preserve area (like adding a multiple of one row to another) do not change the absolute value of the determinant [71](#page=71). #### 3.4.2 Volume in $\mathbb{R}^n$ For a parallelepiped $S$ in $\mathbb{R}^n$ spanned by vectors $\mathbf{s}_1, \mathbf{s}_2, \ldots, \mathbf{s}_n$: $$ S = \{ y = x_1 \mathbf{s}_1 + x_2 \mathbf{s}_2 + \ldots + x_n \mathbf{s}_n; \quad x_i \in \} $$ [1](#page=1). The volume of $S$ is given by the absolute value of the determinant of the matrix whose columns are the spanning vectors [71](#page=71) [72](#page=72): $$ \text{Volume}(S) = |\det [\mathbf{s}_1 \ \mathbf{s}_2 \ \ldots \ \mathbf{s}_n]| $$ #### 3.4.3 Volume scaling under linear transformations If $T(\mathbf{y}) = A\mathbf{y}$ is a linear transformation, and $S$ is a parallelepiped in $\mathbb{R}^n$ spanned by $\{\mathbf{s}_1, \ldots, \mathbf{s}_n\}$, then $T(S)$ is also a parallelepiped spanned by $\{T(\mathbf{s}_1), \ldots, T(\mathbf{s}_n)\} = \{A\mathbf{s}_1, \ldots, A\mathbf{s}_n\}$ [72](#page=72). The volume of the transformed figure $T(S)$ relates to the original volume by the absolute value of the determinant of $A$ [72](#page=72): $$ \text{Volume}(T(S)) = |\det [A\mathbf{s}_1 \ \ldots \ A\mathbf{s}_n]| $$ Using the property $\det(AB) = \det(A)\det(B)$: $$ \text{Volume}(T(S)) = |\det(A[\mathbf{s}_1 \ \ldots \ \mathbf{s}_n])| = |\det A| \cdot |\det [\mathbf{s}_1 \ \ldots \ \mathbf{s}_n]| $$ $$ \text{Volume}(T(S)) = |\det A| \cdot \text{Volume}(S) $$ This multiplicative factor $|\det A|$ applies to the volume of any measurable region $R$ under the transformation $T$: $\text{Volume}(T(R)) = |\det A| \text{Volume}(R)$ [72](#page=72). --- # Advanced topics in vector spaces and matrix analysis This section covers the generalization of concepts from $\mathbb{R}^n$ to abstract vector spaces, focusing on subspaces, bases, dimension, coordinate transformations, and the fundamental theorems relating the null space and column space of a matrix. ### 4.1 Vector spaces and subspaces #### 4.1.1 Definition of a vector space A **vector space** $V$ is a non-empty set of objects, called vectors, equipped with two operations: vector addition and scalar multiplication, satisfying ten specific axioms for all vectors $u, v, w \in V$ and scalars $c, d$ [73](#page=73): 1. $u+v \in V$ (Closure under addition) [73](#page=73). 2. $u+v = v+u$ (Commutativity of addition) [73](#page=73). 3. $(u+v)+w = u+(v+w)$ (Associativity of addition) [73](#page=73). 4. There exists a zero vector $0 \in V$ such that $u+0 = u$ [73](#page=73). 5. For every $u \in V$, there exists an inverse vector $-u \in V$ such that $u+(-u)=0$ [73](#page=73). 6. $cu \in V$ (Closure under scalar multiplication) [73](#page=73). 7. $c(u+v) = cu+cv$ (Distributivity) [73](#page=73). 8. $(c+d)u = cu+du$ (Distributivity) [73](#page=73). 9. $c(du) = (cd)u$ (Associativity of scalar multiplication) [73](#page=73). 10. $1u = u$ (Identity element for scalar multiplication) [73](#page=73). > **Tip:** Common examples of vector spaces include $\mathbb{R}^n$, the set of $m \times n$ matrices ($\mathbb{R}^{m \times n}$), the set of infinite sequences of numbers, and the space of polynomials of degree $n$ or less, $\mathbb{P}_n$ [74](#page=74). #### 4.1.2 Subspaces A subset $H$ of a vector space $V$ is a **subspace** of $V$ if it satisfies three conditions for all $u, v \in H$ and any scalar $c$ [74](#page=74): 1. The zero vector is in $H$: $0 \in H$ [74](#page=74). 2. $H$ is closed under addition: $u+v \in H$ [74](#page=74). 3. $H$ is closed under scalar multiplication: $cu \in H$ [74](#page=74). The set $\{0\}$ and $V$ itself are always subspaces of $V$. The set of invertible matrices in $\mathbb{R}^{n \times n}$ is **not** a subspace [74](#page=74). #### 4.1.3 Linear combinations, Span, and Subspaces Concepts such as **linear combination (l.c.)** and **span** are defined identically to their definitions in $\mathbb{R}^n$ [75](#page=75). **Theorem 1:** If $v_1, \ldots, v_p$ are vectors in $V$, then $\text{Span}\{v_1, \ldots, v_p\}$ is a subspace of $V$ [75](#page=75). > **Example:** The set of $3 \times 3$ diagonal matrices is a subspace of $\mathbb{R}^{3 \times 3}$, formed by the span of matrices with a single '1' on the diagonal [75](#page=75). **Theorem 5a (Spanning Set Reduction):** If $v_1, \ldots, v_p \in V$ and $\text{Span}\{v_1, \ldots, v_p\} = H$, and if $v_k$ is a linear combination of the other vectors in the set, then $H = \text{Span}\{v_1, \ldots, v_{k-1}, v_{k+1}, \ldots, v_p\}$ [77](#page=77). **Theorem 5b (Basis Existence):** If $S = \{v_1, \ldots, v_p\}$ and $\text{Span}\{v_1, \ldots, v_p\} = H$ and $H \neq \{0\}$, then there exists a subset $\beta \subseteq S$ that forms a basis for $H$ [77](#page=77). ### 4.2 Linear Independence, Basis, and Dimension #### 4.2.1 Linear Independence (L.I.) A set $\{v_1, \ldots, v_p\} \subset V$ is **linearly independent (l.i.)** if the equation $c_1 v_1 + \cdots + c_p v_p = 0$ has only the trivial solution ($c_1 = c_2 = \cdots = c_p = 0$) [76](#page=76). **Theorem 4:** For $\{v_1, \ldots, v_p\}$ with $p \ge 2$ and $v_1 \neq 0$, the set is linearly dependent if and only if there exists an index $j > 1$ such that $v_j$ is a linear combination of the preceding vectors [76](#page=76). #### 4.2.2 Basis **Definition:** A set $\beta = \{b_1, \ldots, b_p\} \subset V$ is a **basis** for a subspace $H$ of $V$ if [76](#page=76): 1. $\beta$ is a linearly independent set [76](#page=76). 2. $\text{Span} \beta = H$ [76](#page=76). > **Example:** The set $\{1, t, t^2, \ldots, t^n\}$ is the **standard basis** for $\mathbb{P}_n$ [76](#page=76). #### 4.2.3 Coordinates and Coordinate Transformation **Theorem 8 (Coordinates):** If $\beta = \{b_1, \ldots, b_p\}$ is a basis for $V$, then for every $x \in V$, there exist unique scalars $c_1, \ldots, c_p$ such that $x = c_1 b_1 + \cdots + c_p b_p$ [78](#page=78). The unique scalars $c_1, \ldots, c_p$ are called the **coordinates** of $x$ relative to basis $\beta$. Notation: $[x]_\beta = \begin{bmatrix} c_1 \\ \vdots \\ c_p \end{bmatrix}$ [79](#page=79). **Definition:** The mapping $T: V \to \mathbb{R}^p$ defined by $x \to [x]_\beta$ is called the **coordinate transformation** [79](#page=79). **Theorem 9:** The coordinate transformation $T$ is linear, injective (one-to-one), and surjective (onto) from $V$ to $\mathbb{R}^p$ [79](#page=79). **Isomorphism:** Since $[ \cdot ]_\beta$ is linear and bijective, it is called an **isomorphism**, meaning the algebraic structure (operations) in $V$ is equivalent to those in $\mathbb{R}^n$ (assuming $\dim(V)=n$) [79](#page=79). **Theorem 10 (Maximum number of L.I. vectors):** If $\beta = \{b_1, \ldots, b_n\}$ is a basis for $V$, then any set of $p > n$ vectors $\{u_1, \ldots, u_p\} \subset V$ must be linearly dependent [80](#page=80). #### 4.2.4 Dimension **Theorem 11:** If $\beta_1 = \{b_1, \ldots, b_n\}$ is a basis for $V$, then any other basis $\beta_2$ must have size $n$ [81](#page=81). **Definition:** The **dimension** of $V$, denoted $\dim(V)$, is the number of vectors in any basis for $V$ [81](#page=81). * A vector space is **finite-dimensional** if it has a finite basis [81](#page=81). * $\dim(\{0\}) = 0$ [81](#page=81). **Properties of Finite-Dimensional Vector Spaces (Theorem 12):** If $H$ is a subspace of $V$: a) Every linearly independent set in $H$ can be extended to a basis for $H$ [81](#page=81). b) $\dim H \le \dim V$ [81](#page=81). **Properties Relating Set Size to Basis/Span (Theorem 13):** If $V$ is a $p$-dimensional vector space ($p \ge 1$) and $S = \{b_1, \ldots, b_p\}$ with $b_i \in V$: a) If $S$ is linearly independent, then $\text{Span} S = V$ [81](#page=81). b) If $\text{Span} S = V$, then $S$ is linearly independent [81](#page=81). ### 4.3 Null space, Column space, and Rank For an $m \times n$ matrix $A$: #### 4.3.1 Null Space (Nul A) **Definition:** The **null space** of $A$ is $Nul A = \{ x \in \mathbb{R}^n: Ax = 0\}$ [82](#page=82). * $Nul A$ is the solution set to the homogeneous system $Ax=0$ [82](#page=82). * **Theorem 2:** $Nul A$ is a subspace of $\mathbb{R}^n$ [82](#page=82). To find a basis for $Nul A$: 1. Solve $Ax=0$ [83](#page=83). 2. Write the solution set as a span of vectors using free variables as parameters [83](#page=83). The resulting vectors form a basis for $Nul A$ [85](#page=85). * The dimension of $Nul A$ equals the number of free variables, which is the number of non-pivot columns in the row echelon form of $A$ [85](#page=85). #### 4.3.2 Column Space (Col A) **Definition:** The **column space** of $A$ is $Col A = \text{Span}\{a_1, a_2, \ldots, a_n\}$, where $a_i$ are the columns of $A$ [85](#page=85). * $Col A = \{ b \in \mathbb{R}^m: Ax = b \text{ for some } x \in \mathbb{R}^n \}$ [85](#page=85). * **Theorem 3:** $Col A$ is a subspace of $\mathbb{R}^m$ [85](#page=85). **Basis for Col A (Theorem 6):** The **pivot columns** of the original matrix $A$ form a basis for $Col A$ [87](#page=87). * This is because row operations preserve the linear dependence relations among the columns, meaning pivot columns of $A$ are linearly independent and span $Col A$ [87](#page=87). * **Crucial Note:** The pivot columns of the Row Echelon Form (REF or GEV) $B$ do **not** necessarily form a basis for $Col A$, although $Col B = \text{Span}\{\text{Pivot Columns of } B\}$ [86](#page=86). #### 4.3.3 Rank and the Rank Theorem **Definition:** The **rank of a matrix** $A$, denoted $\text{rank } A$, is defined as the dimension of its column space: $\dim(Col A) = \text{rank } A$ [87](#page=87). **Row Space (Row A):** * **Definition:** $Row A = \text{Span}\{\text{rows of } A\} = Col A^T$. It is a subspace of $\mathbb{R}^n$ [88](#page=88). * **Theorem 7a:** If $A \sim B$ (row equivalent), then $Row A = Row B$ [88](#page=88). * **Theorem 7b:** The non-zero rows of the Reduced Row Echelon Form ($U$) of $A$ form a basis for $Row A = Row U$ [89](#page=89). * Thus, $\dim(Row A) = \#\text{non-zero rows of } U = \#\text{Pivot Columns (PK)} = \text{rank } A$ [90](#page=90). * Consequently, $\text{rank } A = \dim(Col A) = \dim(Row A)$ [90](#page=90). * Also, $\text{rank } A = \text{rank } A^T$ [90](#page=90). **Rank Theorem (Dimension Theorem for Matrices) (Theorem 14):** For an $m \times n$ matrix $A$ [88](#page=88) [90](#page=90): $$\text{rank } A + \dim(Nul A) = n \quad (\#\text{PK} + \#\text{NPK} = n)$$ This theorem connects the dimension of the row space/column space (rank) to the dimension of the null space (nullity) with the total number of columns $n$ [88](#page=88). Related relations derived from the Rank Theorem: * $\dim(Col A^T) + \dim(Nul A^T) = m$ [90](#page=90). * $\text{rank } A + \dim(Nul A^T) = m$ [90](#page=90). > **Tip:** The number of pivot columns ($\text{rank } A$) and the number of non-pivot columns ($\dim(Nul A)$) must sum to the total number of columns $n$ [88](#page=88). ### 4.4 Basis Change in General Vector Spaces For a vector space $V$ with $\dim(V)=n$, let $\mathcal{B} = \{b_1, \ldots, b_n\}$ and $\mathcal{C} = \{c_1, \ldots, c_n\}$ be two bases. Any vector $x \in V$ can be expressed uniquely in terms of either basis [92](#page=92): $$x = a_1 b_1 + a_2 b_2 + \cdots + a_n b_n \quad \implies [x]_\mathcal{B} = \begin{bmatrix} a_1 \\ \vdots \\ a_n \end{bmatrix}$$ **Theorem 15 (Change of Basis Matrix):** The relationship between the coordinate vectors in bases $\mathcal{B}$ and $\mathcal{C}$ is given by: $$[x]_\mathcal{C} = \left[ b_1 \right]_\mathcal{C} \left[ b_2 \right]_\mathcal{C} \cdots \left[ b_n \right]_\mathcal{C} [x]_\mathcal{B} = P_{\mathcal{C} \leftarrow \mathcal{B}} [x]_\mathcal{B}$$ where $P_{\mathcal{C} \leftarrow \mathcal{B}} = \left[ b_1 \right]_\mathcal{C} \left[ b_2 \right]_\mathcal{C} \cdots \left[ b_n \right]_\mathcal{C}$ [92](#page=92). The change-of-basis matrix $P_{\mathcal{C} \leftarrow \mathcal{B}}$ is invertible. The inverse relationship is [92](#page=92): $$[x]_\mathcal{B} = P_{\mathcal{B} \leftarrow \mathcal{C}} [x]_\mathcal{C}, \quad \text{where } P_{\mathcal{B} \leftarrow \mathcal{C}} = (P_{\mathcal{C} \leftarrow \mathcal{B}})^{-1}$$ [92](#page=92). #### 4.4.1 Change of Basis in $\mathbb{R}^n$ If $\mathcal{C} = \{e_1, \ldots, e_n\}$ is the **standard basis** in $\mathbb{R}^n$ [93](#page=93): $$P_{\mathcal{C} \leftarrow \mathcal{B}} = \left[ b_1 \quad b_2 \quad \cdots \quad b_n \right]$$ In this special case, the matrix $P_{\mathcal{C} \leftarrow \mathcal{B}}$ is simply the matrix formed by the basis vectors in the columns. Consequently, $[x]_\mathcal{B} = P_{\mathcal{C} \leftarrow \mathcal{B}}^{-1} x$ [93](#page=93). To find $P_{\mathcal{C} \leftarrow \mathcal{B}}$ in general (where $\mathcal{C}=\{c_1, \ldots, c_n\}$): Solve the $n$ systems of equations $c_1 \ldots c_n | b_j$ simultaneously using row reduction: $$\left[ c_1 \quad c_2 \quad \cdots \quad c_n \mid b_1 \quad b_2 \quad \cdots \quad b_n \right \sim \left[ I \mid P_{\mathcal{C} \leftarrow \mathcal{B}} \right]$$ [93](#page=93). ### 4.5 Invertible Matrix Theorem Supplement For an $n \times n$ matrix $A$, being invertible is equivalent to several conditions related to column space and null space [91](#page=91): * The columns $\{a_1, \ldots, a_n\}$ span $\mathbb{R}^n$ [91](#page=91). * The columns $\{a_1, \ldots, a_n\}$ form a basis for $\mathbb{R}^n$ [91](#page=91). * $Col A = \mathbb{R}^n$ [91](#page=91). * $\dim(Col A) = n$ [91](#page=91). * $\text{rank } A = n$ [91](#page=91). * $\dim(Nul A) = n - \text{rank } A = 0$ [91](#page=91). * $Nul A = \{0\}$ [91](#page=91). --- # Analysis of Discrete-Time Linear Time-Invariant (DTLTI) Systems This topic details the analysis of Discrete-Time Linear Time-Invariant (DTLTI) systems modeled using state-space representation, focusing on determining system responses, coordinate transformations via matrix diagonalization, and assessing internal stability. ### 8.1 State-space representation review A system is mathematically described as a physical process that converts input signals $u \in \mathbb{S}^m$ into output signals $y \in \mathbb{S}^l$, represented by $y = T(u)$. For DTLTI systems, the description is given by the state-space equations for $k \in \mathbb{N}$ :\begin{aligned} \mathbf{x}[k+1 &= \mathbf{A} \mathbf{x}[k + \mathbf{B} \mathbf{u}[k \ \mathbf{y}[k &= \mathbf{C} \mathbf{x}[k + \mathbf{D} \mathbf{u}[k \end{aligned}
Here, $\mathbf{x}[k \in \mathbb{R}^n$ is the state vector, $n$ is the order of the system (number of state variables or memory elements). The matrices have dimensions: $\mathbf{A} \in \mathbb{R}^{n \times n}$, $\mathbf{B} \in \mathbb{R}^{n \times m}$, $\mathbf{C} \in \mathbb{R}^{l \times n}$, and $\mathbf{D} \in \mathbb{R}^{l \times m}$. $\mathbf{x} $ is the initial state. For Single-Input Single-Output (SISO) systems, $m=l=1$, and the notation simplifies to $\mathbf{x}[k+1 = \mathbf{A} \mathbf{x}[k + \mathbf{b} u[k]$ and $y[k = \mathbf{c} \mathbf{x}[k + d u[k]$ . > **Tip:** The state-space representation is generally not unique; different choices of state vectors $\mathbf{x}[k]$ can describe the same input-output behavior . ### 8.2 Analyzing system response The system response analysis involves finding $\mathbf{x}[k]$ and $\mathbf{y}[k]$ given $\mathbf{A}, \mathbf{B}, \mathbf{C}, \mathbf{D}$, the input $\mathbf{u}[k]$, and the initial state $\mathbf{x} $. This can be done numerically or by analytically solving the state equation . #### 8.2.1 Analytical solution of the state equation By recursively substituting the state equation, the general solution for $k > 0$ is derived :\mathbf{x}[k = \mathbf{A}^k \mathbf{x} + \sum_{j=0}^{k-1} \mathbf{A}^{k-1-j} \mathbf{B} \mathbf{u}[j .
Theoutputsignalisthengivenby:\mathbf{y}[k = \mathbf{C} \mathbf{x}[k + \mathbf{D} \mathbf{u}[k
#### 8.2.2 Zero-input and zero-state response The total response $\mathbf{y}[k]$ is the sum of the zero-input response (when $\mathbf{u}[k = 0$ for all $k$) and the zero-state response (when $\mathbf{x} = 0$) . * **Zero-input response:** $\mathbf{y}_{\text{zi}}[k = \mathbf{C} \mathbf{A}^k \mathbf{x} $ . * **Zero-state response (Impulse Response):** This is related to the system's impulse response, $h[k]$. For SISO systems, $\mathbf{A}^k \mathbf{x} $ is a weighted sum of terms involving the eigenvalues $\lambda_i$ raised to the power $k$, weighted by the initial coordinates $w_i $ in the eigenvector basis . > **Example:** If $0 < |\lambda_i| < 1$, the component of the zero-input response contributed by $\lambda_i$ decays exponentially to zero as $k \to \infty$ . ### 8.3 Equivalent descriptions and similarity transformations A change of coordinates $\mathbf{x}[k = \mathbf{P} \mathbf{w}[k]$, where $\mathbf{P}$ is an invertible $n \times n$ matrix, leads to an equivalent state-space description $\mathbf{w}[k]$ :\begin{aligned} \mathbf{w}[k+1 &= \mathbf{\bar{A}} \mathbf{w}[k + \mathbf{\bar{B}} \mathbf{u}[k \ \mathbf{y}[k &= \mathbf{\bar{C}} \mathbf{w}[k + \mathbf{\bar{D}} \mathbf{u}[k \end{aligned}
wherethesimilaritytransformationmatricesare:\mathbf{\bar{A}} = \mathbf{P}^{-1} \mathbf{A} \mathbf{P}, \quad \mathbf{\bar{B}} = \mathbf{P}^{-1} \mathbf{B}, \quad \mathbf{\bar{C}} = \mathbf{C} \mathbf{P}, \quad \mathbf{\bar{D}} = \mathbf{D}
$\mathbf{A}$ and $\mathbf{\bar{A}}$ are similar matrices. The initial condition relationship is $\mathbf{x} = \mathbf{P} \mathbf{w} $ . #### 8.3.1 Matrix diagonalization If $\mathbf{A}$ has $n$ distinct eigenvalues ($\lambda_1, \ldots, \lambda_n$), it is diagonalizable. We choose $\mathbf{P} = [\mathbf{v}_1, \ldots, \mathbf{v}_n]$, where $\mathbf{v}_i$ are the eigenvectors corresponding to $\lambda_i$. The transformed system matrix becomes diagonal ($\mathbf{\Lambda}$) :\mathbf{\bar{A}} = \mathbf{\Lambda} = \begin{pmatrix} \lambda_1 & \cdots & 0 \ \vdots & \ddots & \vdots \ 0 & \cdots & \lambda_n \end{pmatrix}
The state equation decouples into $n$ independent first-order equations in the new coordinates $\mathbf{w}[k]$ :w_i[k+1 = \lambda_i w_i[k + \mathbf{\bar{B}}_{i} \mathbf{u}[k
For SISO systems, this results in $w_i[k+1 = \lambda_i w_i[k + \mathbf{\bar{b}}_i u[k]$ . **Technique to convert (A, b, c, d) to diagonal form ($\mathbf{\Lambda}, \mathbf{\bar{b}}, \mathbf{\bar{c}}, \mathbf{\bar{d}}$):** . 1. Find eigenvalues ($\lambda_i$) and eigenvectors ($\mathbf{v}_i$) of $\mathbf{A}$. Set $\mathbf{P} = [\mathbf{v}_1, \ldots, \mathbf{v}_n]$ and $\mathbf{\Lambda} = \mathbf{P}^{-1} \mathbf{A} \mathbf{P}$ . 2. Solve $\mathbf{P} \mathbf{\bar{b}} = \mathbf{b}$ for $\mathbf{\bar{b}}$ . 3. Calculate $\mathbf{\bar{c}} = \mathbf{c} \mathbf{P}$ . 4. $\mathbf{\bar{d}} = d$ . ### 8.4 Minimality and Stability #### 8.4.1 Minimality (Controllability and Observability) In the diagonalized form, if $\mathbf{\bar{b}}_i = 0$ for some $i$, the state variable $w_i[k]$ cannot be influenced by the input (not controllable). If $\mathbf{\bar{c}}_i = 0$ for some $i$, $w_i[k]$ cannot influence the output (not observable). A system that is not observable and/or not controllable is called **non-minimal**, as the same I/O behavior can be achieved with fewer memory elements . > **Tip:** A SISO system in diagonal form ($\mathbf{\Lambda}, \mathbf{\bar{b}}, \mathbf{\bar{c}}, \mathbf{\bar{d}}$) is minimal if and only if all $\mathbf{\bar{b}}_i \neq 0$ and all $\mathbf{\bar{c}}_i \neq 0$ . #### 8.4.2 Internal Stability **Definition 2.1:** A system is **internally stable** if $\mathbf{x}[k \to \mathbf{0}$ as $k \to \infty$ when $\mathbf{u}[k = 0$ for all $k$, regardless of $\mathbf{x} $ . The zero-input response is $\mathbf{x}[k = \mathbf{A}^k \mathbf{x} $. In the diagonal basis, $\mathbf{x}[k]$ is a linear combination of terms $\lambda_i^k \mathbf{v}_i$ . The system is internally stable if and only if all eigenvalues satisfy $|\lambda_i| < 1$ for $i = 1, \ldots, n$. If any $|\lambda_i| \geq 1$, the system is internally unstable . **Stability Analysis in Diagonal Form:** . * **Stable** $\iff$ all $|\lambda_i| < 1$. * **Controllable** $\iff$ all $\mathbf{\bar{b}}_i \neq 0$. * **Observable** $\iff$ all $\mathbf{\bar{c}}_i \neq 0$. ### 8.5 Impulse Response and Convolution The **nultoestandsimpulsrespons (impulse response)** $h[k]$ of a SISO DTLTI system is the output $\mathbf{y}[k]$ when the input is the unit impulse $\delta[k]$ ($\delta =1$, $\delta[k]=0$ otherwise) and $\mathbf{x} = \mathbf{0}$ . The linearity and time-invariance properties imply that the output $\mathbf{y}$ is the convolution of the input $\mathbf{u}$ and the impulse response $\mathbf{h}$ :\mathbf{y} = \mathbf{u} * \mathbf{h} \quad \in \mathbb{S}
For $k \in \mathbb{N}$:y[k = \sum_{j=-\infty}^{\infty} u[j h[k-j
For causal signals ($a[k]=b[k]=0$ for $k<0$) :c[k = \sum_{j=0}^{k} a[j b[k-j
For a causal system ($h[k]=0$ for $k<0$), the output depends only on present and past inputs . #### 8.5.1 Calculating the impulse response $h[k]$ For a SISO DTLTI system starting from the zero state ($\mathbf{x} = \mathbf{0}$) :h[k = \begin{cases} d & \text{for } k=0 \ \mathbf{c} \mathbf{A}^{k-1} \mathbf{b} & \text{for } k>0 \end{cases}
This formula can be verified using the transformed coordinates, where $\mathbf{\bar{h}}[k = \mathbf{\bar{c}} \mathbf{\Lambda}^{k-1} \mathbf{\bar{b}}$ for $k>0$ . > **Example:** For the system analyzed in previous examples where $\mathbf{D}=d=0$, the impulse response is $h =0$ and for $k>0$ : > $$h[k = \frac{1}{2} \left( \frac{1}{2} \right)^{k-1} - \frac{1}{2} \left( -\frac{1}{2} \right)^{k-1} \quad \text{for } k>0$$ . ### 8.6 Canonical Forms and Differential Equations The **canonical form** (or companion form) transformation $\mathbf{\bar{A}} = \mathbf{Q}^{-1}\mathbf{A}\mathbf{Q}$ and $\mathbf{\bar{B}} = \mathbf{Q}^{-1}\mathbf{b}$ is useful for deriving the input-output difference equation directly from the state-space matrices. The characteristic polynomial coefficients $\tilde{a}_i$ of $\mathbf{A}$ define the structure of the transformed matrix $\mathbf{\tilde{A}}$ . The resulting state equations in this form lead to a single differential equation relating the output $y[k]$ to the input $u[k]$ :y[k+n + \tilde{a}_{n-1} y[k+n-1 + \ldots + \tilde{a}0 y[k = f_n u[k+n + f{n-1} u[k+n-1 + \ldots + f_0 u[k
where $\tilde{a}_i$ are the coefficients from the characteristic polynomial of $\mathbf{A}$, and $f_j$ depend on the transformed output vector $\mathbf{\tilde{c}}$ and $\tilde{d}$. This difference equation is an alternative, non-minimal representation of the system dynamics . --- # Orthogonality, Projections, and Least Squares This topic explores the fundamental concepts of inner products, defining orthogonality, constructing orthogonal bases via the Gram-Schmidt process, calculating orthogonal projections onto subspaces, and applying these principles to find least-squares solutions for inconsistent linear systems. ### 9.1 Inner products and norms in $\mathbb{R}^n$ The inner product (or dot product) for two vectors $\mathbf{u}, \mathbf{v} \in \mathbb{R}^n$ is defined as: $$\mathbf{u} \cdot \mathbf{v} = \mathbf{u}^T \mathbf{v} = u_1 v_1 + \dots + u_n v_n \in \mathbb{R}$$ [ ](#page=153) . **Properties of the Inner Product:** For all $\mathbf{u}, \mathbf{v}, \mathbf{w} \in \mathbb{R}^n$ and $c \in \mathbb{R}$ [ ](#page=153) : 1. $\mathbf{u} \cdot \mathbf{v} = \mathbf{v} \cdot \mathbf{u}$ 2. $(\mathbf{u}+\mathbf{v}) \cdot \mathbf{w} = \mathbf{u} \cdot \mathbf{w} + \mathbf{v} \cdot \mathbf{w}$ 3. $(c\mathbf{u}) \cdot \mathbf{v} = c(\mathbf{u} \cdot \mathbf{v}) = \mathbf{u} \cdot (c\mathbf{v})$ 4. $\mathbf{u} \cdot \mathbf{u} \geq 0$; and $\mathbf{u} \cdot \mathbf{u} = 0$ if and only if $\mathbf{u} = \mathbf{0}$ [ ](#page=153) . The **norm** (or length) of a vector $\mathbf{u}$ is defined as: $$\|\mathbf{u}\| = \sqrt{\mathbf{u} \cdot \mathbf{u}}$$ [ ](#page=153) . Scaling a vector by $c$ changes its norm by $|c|$: $\|\mathbf{c}\mathbf{u}\| = |c| \|\mathbf{u}\|$ [ ](#page=153). Normalizing a vector means dividing it by its norm [ ](#page=153) . The distance between two vectors $\mathbf{u}$ and $\mathbf{v}$ is $d(\mathbf{u},\mathbf{v}) = \|\mathbf{u}-\mathbf{v}\| = \|\mathbf{v}-\mathbf{u}\|$ [ ](#page=153) . ### 9.2 Orthogonal vectors and complements Two vectors $\mathbf{u}$ and $\mathbf{v}$ are **orthogonal** ($\mathbf{u} \perp \mathbf{v}$) if their inner product is zero: $$\mathbf{u} \perp \mathbf{v} \iff \mathbf{u} \cdot \mathbf{v} = 0$$ [ ](#page=153) . **Pythagorean Theorem for Vectors:** $\mathbf{u} \perp \mathbf{v} \iff \|\mathbf{u}+\mathbf{v}\|^2 = \|\mathbf{u}\|^2 + \|\mathbf{v}\|^2$ [ ](#page=153) . #### 9.2.1 Orthogonal complement For a subspace $W$ of $\mathbb{R}^n$, a vector $\mathbf{z} \in \mathbb{R}^n$ is **orthogonal to $W$** if $\mathbf{z} \cdot \mathbf{w} = 0$ for all $\mathbf{w} \in W$ [ ](#page=154) . The **orthogonal complement of $W$**, denoted $W^\perp$, is the set of all vectors orthogonal to $W$. $W^\perp$ is a subspace of $\mathbb{R}^n$ [ ](#page=154) . If $W = \text{Span}\{\mathbf{v}_1, \ldots, \mathbf{v}_p\}$, then $\mathbf{z} \in W^\perp$ if and only if $\mathbf{z} \cdot \mathbf{v}_i = 0$ for $i=1, \ldots, p$ [ ](#page=154) . **Fundamental Subspace Relationships (for $A \in \mathbb{R}^{m \times n}$):** 1. $(\text{Row } A)^\perp = \text{Nul } A$ [ ](#page=154) . 2. $(\text{Col } A)^\perp = \text{Nul } A^T$ [ ](#page=154) . A vector $\mathbf{x} \in \mathbb{R}^n$ is in the null space of $A$ ($\mathbf{x} \in \text{Nul } A$) if and only if it is orthogonal to every row of $A$, meaning $\mathbf{x} \perp \text{Row } A$ [ ](#page=154) . ### 9.3 Orthogonal and orthonormal sets A set $S = \{\mathbf{u}_1, \ldots, \mathbf{u}_p\}$ is **orthogonal** if $\mathbf{u}_i \cdot \mathbf{u}_j = 0$ for $i \neq j$ [ ](#page=156) . A set $S = \{\mathbf{u}_1, \ldots, \mathbf{u}_p\}$ is **orthonormal** if it is orthogonal and $\|\mathbf{u}_i\| = 1$ for all $i=1, \ldots, p$ [ ](#page=156) . **Theorem:** If $S = \{\mathbf{u}_1, \ldots, \mathbf{u}_p\}$ is an orthogonal set with $\mathbf{u}_i \neq \mathbf{0}$, then $S$ is linearly independent and forms a basis for $\text{Span}\{\mathbf{u}_1, \ldots, \mathbf{u}_p\}$ [ ](#page=156) . An **orthogonal basis** for a subspace $W$ is a basis that is also an orthogonal set [ ](#page=156) . #### 9.3.1 Coordinates in an orthogonal basis If $S = \{\mathbf{u}_1, \ldots, \mathbf{u}_p\}$ is an orthogonal basis for $W$, any vector $\mathbf{y} \in W$ can be written as $\mathbf{y} = c_1 \mathbf{u}_1 + \cdots + c_p \mathbf{u}_p$. The coordinates $c_j$ are calculated as: $$c_j = \frac{\mathbf{y} \cdot \mathbf{u}_j}{\mathbf{u}_j \cdot \mathbf{u}_j} \quad \text{for } j = 1, \ldots, p$$ [ ](#page=157) . In matrix form, solving for the coordinate vector $\mathbf{c}$ by inverting $[\mathbf{u}_1 \ldots \mathbf{u}_p]$ is avoided; instead, the calculation uses inner products [ ](#page=157) . ### 9.4 Orthogonal projection The orthogonal projection of $\mathbf{y}$ onto a subspace $W$ spanned by the orthogonal basis $\{\mathbf{u}_1, \ldots, \mathbf{u}_p\}$ is: $$\text{Proj}_W(\mathbf{y}) = \frac{\mathbf{y} \cdot \mathbf{u}_1}{\mathbf{u}_1 \cdot \mathbf{u}_1} \mathbf{u}_1 + \cdots + \frac{\mathbf{y} \cdot \mathbf{u}_p}{\mathbf{u}_p \cdot \mathbf{u}_p} \mathbf{u}_p$$ [ ](#page=158) . **Orthogonal Decomposition Theorem:** For any $\mathbf{y} \in \mathbb{R}^n$, there exists a unique decomposition $\mathbf{y} = \hat{\mathbf{y}} + \mathbf{z}$, where $\hat{\mathbf{y}} \in W$ and $\mathbf{z} \in W^\perp$. Here, $\hat{\mathbf{y}} = \text{Proj}_W(\mathbf{y})$ [ ](#page=158). The vector $\mathbf{z}$ is unique and $\mathbf{z} = \text{Proj}_{W^\perp}(\mathbf{y})$ [ ](#page=158) . **Best Approximation Theorem:** If $W$ is a subspace of $\mathbb{R}^n$ and $\hat{\mathbf{y}} = \text{Proj}_W(\mathbf{y})$, then for any $\mathbf{v} \neq \hat{\mathbf{y}}$ in $W$: $$\|\mathbf{y} - \hat{\mathbf{y}}\| < \|\mathbf{y} - \mathbf{v}\|$$ $\hat{\mathbf{y}}$ is the vector in $W$ closest to $\mathbf{y}$ [ ](#page=159). The inequality holds because $\mathbf{y} - \mathbf{v} = (\mathbf{y} - \hat{\mathbf{y}}) + (\hat{\mathbf{y}} - \mathbf{v})$, where $(\mathbf{y} - \hat{\mathbf{y}}) \in W^\perp$ and $(\hat{\mathbf{y}} - \mathbf{v}) \in W$, resulting in $\|\mathbf{y} - \mathbf{v}\|^2 = \|\mathbf{y} - \hat{\mathbf{y}}\|^2 + \|\hat{\mathbf{y}} - \mathbf{v}\|^2$ [ ](#page=159) . **Projection using an Orthonormal Basis:** If $\{\mathbf{u}_1, \ldots, \mathbf{u}_p\}$ is an orthonormal basis for $W$, the projection is simpler: $$\hat{\mathbf{y}} = (\mathbf{y} \cdot \mathbf{u}_1)\mathbf{u}_1 + \cdots + (\mathbf{y} \cdot \mathbf{u}_p)\mathbf{u}_p = \text{Proj}_W(\mathbf{y})$$ [ ](#page=159) . If $U = [\mathbf{u}_1 \ \mathbf{u}_2 \ \ldots \ \mathbf{u}_p]$ is the matrix whose columns are the orthonormal basis vectors, then $\text{Proj}_W(\mathbf{y}) = U U^T \mathbf{y}$ [ ](#page=159). $U U^T$ is the standard matrix for orthogonal projection onto $W$ [ ](#page=159). For a matrix $U$ with orthonormal columns, $U^T U = I_p$ [ ](#page=159) . > **Tip:** Matrices with orthonormal columns, $U \in \mathbb{R}^{m \times n}$ where $n \leq m$, satisfy $U^T U = I_n$ [ ](#page=160). If $m=n$, $U$ is an orthogonal matrix, and $U^T = U^{-1}$ [ ](#page=160) . ### 9.5 The Gram-Schmidt Process The Gram-Schmidt process constructs an orthogonal (and then orthonormal) basis $\{\mathbf{v}_1, \ldots, \mathbf{v}_p\}$ for a subspace $W = \text{Span}\{\mathbf{x}_1, \ldots, \mathbf{x}_p\}$ from a basis $\{\mathbf{x}_1, \ldots, \mathbf{x}_p\}$ [ ](#page=161) [ ](#page=162) . **Gram-Schmidt Algorithm (Theorem 11):** 1. $\mathbf{v}_1 = \mathbf{x}_1$ [ ](#page=163) . 2. $\mathbf{v}_2 = \mathbf{x}_2 - \text{Proj}_{W_1} \mathbf{x}_2 = \mathbf{x}_2 - \frac{\mathbf{x}_2 \cdot \mathbf{v}_1}{\mathbf{v}_1 \cdot \mathbf{v}_1} \mathbf{v}_1$ [ ](#page=163) . 3. $\mathbf{v}_k = \mathbf{x}_k - \text{Proj}_{W_{k-1}} \mathbf{x}_k = \mathbf{x}_k - \sum_{i=1}^{k-1} \frac{\mathbf{x}_k \cdot \mathbf{v}_i}{\mathbf{v}_i \cdot \mathbf{v}_i} \mathbf{v}_i$ [ ](#page=163) . The resulting set $\{\mathbf{v}_1, \ldots, \mathbf{v}_p\}$ is an orthogonal basis for $W$ [ ](#page=163). Normalizing each $\mathbf{v}_i$ yields an orthonormal basis [ ](#page=163) . #### 9.5.1 QR factorization If $A = [\mathbf{x}_1 \ \ldots \ \mathbf{x}_n]$ is an $m \times n$ matrix with linearly independent columns, the Gram-Schmidt process leads to the **QR factorization** $A=QR$ [ ](#page=163) : * $Q$ is an $m \times n$ matrix whose columns $\{\mathbf{q}_1, \ldots, \mathbf{q}_n\}$ form an orthonormal basis for $\text{Col } A$ (where $\mathbf{q}_i = \mathbf{v}_i / \|\mathbf{v}_i\|$) [ ](#page=163) . * $R$ is an $n \times n$ upper triangular matrix with strictly positive diagonal elements, and $Q^T Q = I_n$ [ ](#page=163) [ ](#page=164) . The elements of $R$ are derived from the relation $\mathbf{x}_k = \sum_{i=1}^k r_{ik} \mathbf{q}_i$: $$r_{ik} = \mathbf{x}_k \cdot \mathbf{q}_i \quad \text{for } i < k$$ $$r_{kk} = \|\mathbf{v}_k\|$$ [ ](#page=164) . ### 9.6 Least squares problems For the equation $A\mathbf{x} = \mathbf{b}$, if the system is inconsistent ($\mathbf{b} \notin \text{Col } A$), no exact solution exists [ ](#page=166) . The **least squares solution** ($\hat{\mathbf{x}}$) minimizes the distance between $A\mathbf{x}$ and $\mathbf{b}$, meaning it minimizes the squared error $\|\mathbf{b} - A\mathbf{x}\|^2$ for all $\mathbf{x} \in \mathbb{R}^n$ [ ](#page=166) . The vector $\hat{\mathbf{b}} = A\hat{\mathbf{x}}$ is the unique vector in $\text{Col } A$ that is closest to $\mathbf{b}$, which means $\hat{\mathbf{b}} = \text{Proj}_{\text{Col } A}(\mathbf{b})$ [ ](#page=167). The resulting error vector $\mathbf{b} - A\hat{\mathbf{x}}$ is orthogonal to $\text{Col } A$, meaning $\mathbf{b} - A\hat{\mathbf{x}} \in (\text{Col } A)^\perp$ [ ](#page=166) [ ](#page=167) . #### 9.6.1 Normal Equations The least-squares solution $\hat{\mathbf{x}}$ is found by solving the **normal equations**: $$A^T A \hat{\mathbf{x}} = A^T \mathbf{b}$$ [ ](#page=167) . The normal equations always result in an $n \times n$ system that has at least one solution [ ](#page=167) . **Uniqueness of the Least Squares Solution (Theorem 14):** $A\mathbf{x} = \mathbf{b}$ has a unique least squares solution for every $\mathbf{b} \in \mathbb{R}^m$ if and only if the columns of $A$ are linearly independent [ ](#page=167) . If the columns of $A$ are linearly independent, $A^T A$ is invertible, and the unique solution is: $$\hat{\mathbf{x}} = (A^T A)^{-1} A^T \mathbf{b}$$ [ ](#page=167) . **Using QR Factorization for kko (Theorem 15):** If $A$ has linearly independent columns, $A=QR$ where $R$ is invertible. The normal equations simplify to solving the upper triangular system: $$R \hat{\mathbf{x}} = Q^T \mathbf{b}$$ [ ](#page=168) . > **Tip:** The rank of $A$ is equal to the rank of $A^T A$. The columns of $A$ are linearly dependent if and only if $A^T A$ has linearly dependent columns [ ](#page=168) . ### 9.7 General Inner Products (Vector Spaces $V$) The concepts extend to general vector spaces $V$ (like polynomial spaces $\mathbb{P}_4$) equipped with an inner product (a function mapping pairs of vectors to $\mathbb{R}$ satisfying four axioms, including symmetry, additivity, scalar multiplication homogeneity, and positive-definiteness) [ ](#page=171) [ ](#page=172) . For $V=\mathbb{P}_4$, an example inner product can be defined based on discrete points: $\mathbf{u} \cdot \mathbf{v} = \sum_{i=0}^{4} u(t_i) v(t_i)$, where $t_i$ are distinct points [ ](#page=171) [ ](#page=172). Another example uses integration: $\mathbf{u} \cdot \mathbf{v} = \int_{-1}^{1} u(t) v(t) dt$ [ ](#page=172) . **Length and Orthogonality in $V$:** * Length: $\|\mathbf{v}\| = \sqrt{\mathbf{v} \cdot \mathbf{v}}$ [ ](#page=172) . * Orthogonal: $\mathbf{u}, \mathbf{v}$ are orthogonal if $\mathbf{u} \cdot \mathbf{v} = 0$ [ ](#page=172) . The orthogonal projection $\text{Proj}_W(\mathbf{y})$ is calculated identically to $\mathbb{R}^n$ if an orthogonal basis $\{\mathbf{u}_1, \ldots, \mathbf{u}_p\}$ for $W$ is known [ ](#page=173) . **Pythagoras in $V$:** If $\mathbf{u} \perp \mathbf{v}$, then $\|\mathbf{u}+\mathbf{v}\|^2 = \|\mathbf{u}\|^2 + \|\mathbf{v}\|^2$ [ ](#page=174). This confirms that $\text{Proj}_W(\mathbf{y})$ is the closest point in $W$ to $\mathbf{y}$, since $\|\mathbf{y}\|^2 = \|\text{Proj}_W(\mathbf{y})\|^2 + \|\mathbf{z}\|^2 \geq \|\text{Proj}_W(\mathbf{y})\|^2$ [ ](#page=174) . #### 9.7.1 Inequalities **Cauchy–Schwarz Inequality (Theorem 16):** $$|\mathbf{u} \cdot \mathbf{v}| \leq \|\mathbf{u}\| \|\mathbf{v}\| \quad \forall \mathbf{u}, \mathbf{v} \in V$$ [ ](#page=175) . **Triangle Inequality (Theorem 17):** $$\|\mathbf{u} + \mathbf{v}\| \leq \|\mathbf{u}\| + \|\mathbf{v}\| \quad \forall \mathbf{u}, \mathbf{v} \in V$$ [ ](#page=176) . This is proven by showing $\|\mathbf{u} + \mathbf{v}\|^2 \leq (\|\mathbf{u}\| + \|\mathbf{v}\|)^2$, utilizing the Cauchy-Schwarz inequality [ ](#page=176) . --- # Applications of SVD and related matrix decompositions This topic summarizes the spectral decomposition of symmetric matrices and introduces the Singular Value Decomposition (SVD) as a powerful tool for matrix representation, best rank approximation, and data analysis in contexts like text similarity. ### 10.1 Diagonalization of symmetric matrices and spectral decomposition (Pages 178-182) The diagonalization of symmetric matrices is closely related to the SVD and provides fundamental insights into linear transformations . #### 10.1.1 Properties of symmetric matrices A matrix $A \in \mathbb{R}^{n \times n}$ is symmetric if and only if $A = A^T$ . **Key Theorems for Symmetric Matrices:** 1. **Orthogonality of Eigenvectors:** If $A = A^T$, and $Av_1 = \lambda_1 v_1$ and $Av_2 = \lambda_2 v_2$ with $\lambda_1 \neq \lambda_2$, then $v_1$ is orthogonal to $v_2$ ($v_1^T v_2 = 0$). This means the eigenspaces of a symmetric matrix are orthogonal . 2. **Real Eigenvalues:** The eigenvalues of a symmetric matrix are always real . #### 10.1.2 Orthogonal diagonalization A matrix $A$ is **orthogonally diagonalizable** if $A = P D P^{-1}$, where $P$ is an orthogonal matrix ($P^T P = P P^T = I$) . * **Theorem:** $A$ is orthogonally diagonalizable if and only if $A = A^T$ . * **Construction:** If $A$ is symmetric, we can always choose the eigenvectors to form an orthonormal basis $P$, leading to $A = P D P^T$ . * The diagonal matrix $D$ contains the eigenvalues, where $d_i = m_i$ (algebraic multiplicity equals geometric multiplicity) for a symmetric matrix . > **Tip:** The process of orthogonal diagonalization is often achieved by finding the eigenvectors, ensuring they are orthogonal (which is guaranteed for distinct eigenvalues of symmetric matrices), and then normalizing them to form the columns of $P$ . #### 10.1.3 The spectral decomposition The spectral decomposition expresses a symmetric matrix $A$ as a sum of rank-one matrices weighted by its eigenvalues . If $A = P D P^T$, where $P = [u_1 \dots u_n]$ contains orthonormal eigenvectors, the spectral decomposition is: $$A = \lambda_1 u_1 u_1^T + \lambda_2 u_2 u_2^T + \dots + \lambda_n u_n u_n^T$$ . The set of eigenvalues $\{\lambda_i\}$ is called the **spectrum** of the matrix . > **Example:** If $A$ is singular (e.g., $\lambda_1 = 0$), its rank is reduced by the number of zero eigenvalues, and $A$ can be written as a sum of fewer than $n$ rank-one matrices . ### 10.2 Singular Value Decomposition (SVD) (Pages 194-202) The SVD is a generalization of the spectral decomposition applicable to any matrix $A \in \mathbb{R}^{m \times n}$. SVD decomposes $A$ into the product of three matrices . #### 10.2.1 Definition of SVD For any matrix $A \in \mathbb{R}^{m \times n}$ of rank $r$, there exists a decomposition: $$A = U \Sigma V^T$$ . **Components of the SVD:** 1. **$U \in \mathbb{R}^{m \times m}$:** An orthogonal matrix, $U^T U = I$. Its columns $\{u_1, \dots, u_m\}$ are the **left singular vectors** . 2. **$V \in \mathbb{R}^{n \times n}$:** An orthogonal matrix, $V^T V = I$. Its columns $\{v_1, \dots, v_n\}$ are the **right singular vectors** . 3. **$\Sigma \in \mathbb{R}^{m \times n}$:** A matrix with non-negative entries on the diagonal and zeros elsewhere, structured as: $$\Sigma = \begin{pmatrix} \Sigma_r & 0 \\ 0 & 0 \end{pmatrix} \in \mathbb{R}^{m \times n}, \quad \text{where} \quad \Sigma_r = \begin{pmatrix} \sigma_1 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & \sigma_r \end{pmatrix}$$ . The values $\sigma_1 \geq \sigma_2 \geq \dots \geq \sigma_r > 0$ are the **singular values** of $A$ . #### 10.2.2 Alternative forms and interpretations **Reduced SVD:** If we only retain the non-zero singular values and their corresponding singular vectors: $$A = U_r \Sigma_r V_r^T$$ . This can also be expressed as the sum of rank-one matrices: $$A = \sigma_1 u_1 v_1^T + \dots + \sigma_r u_r v_r^T$$ . **Interpretations:** 1. **Transformation:** The SVD shows that any linear transformation $T: \mathbb{R}^n \to \mathbb{R}^m$ defined by $x \mapsto Ax$ is a composition of: rotation/reflection ($V^T$ in $\mathbb{R}^n$), scaling along axes ($\Sigma$ from $\mathbb{R}^n$ to $\mathbb{R}^m$), and rotation/reflection ($U$ in $\mathbb{R}^m$) . 2. **Action on Right Singular Vectors:** Applying $A$ to a right singular vector $v_i$ yields the corresponding left singular vector scaled by the singular value $\sigma_i$ (for $i \le r$): $A v_i = \sigma_i u_i$ . #### 10.2.3 SVD relationship to Eigenvalue Decomposition (EVD) For a symmetric matrix $A$, the singular values $\sigma_i$ are the absolute values of the eigenvalues $|\lambda_i|$, and the singular vectors are related to the eigenvectors $p_i$ by sign factors $s_i = \text{sgn}(\lambda_i)$: $$U_r = [p_1 \dots p_r, \quad V_r = [s_1 p_1 \dots s_r p_r, \quad \Sigma_r = \text{diag}(s_1 \lambda_1, \dots, s_r \lambda_r)$$ . **Construction of U and V:** 1. Calculate $A^T A$, which is symmetric and positive semi-definite . 2. Diagonalize $A^T A = V D V^T$, where $V$ contains the eigenvectors $\{v_i\}$ and $D$ contains the eigenvalues $\{\lambda_i\}$ ordered such that $\lambda_1 \geq \lambda_2 \geq \dots \geq \lambda_n \geq 0$ . 3. The singular values are $\sigma_i = \sqrt{\lambda_i}$. The right singular vectors are $v_i$ from $V$ . 4. The left singular vectors $u_i$ for $i \le r$ are obtained by normalization: $u_i = \frac{A v_i}{\sigma_i}$ . 5. The remaining $m-r$ vectors $\{u_{r+1}, \dots, u_m\}$ form an orthonormal basis for the left null space, $(\text{Col } A)^\perp = \text{Nul } A^T$ . #### 10.2.4 Fundamental subspaces and SVD The SVD provides orthonormal bases for the four fundamental subspaces of $A$ : * $\{\boldsymbol{u_1, \dots, u_r}\}$: Orthonormal basis for the **Column Space** ($\text{Col } A$) . * $\{\boldsymbol{u_{r+1}, \dots, u_m}\}$: Orthonormal basis for the **Left Null Space** ($\text{Nul } A^T$) . * $\{\boldsymbol{v_{r+1}, \dots, v_n}\}$: Orthonormal basis for the **Null Space** ($\text{Nul } A$) . * $\{\boldsymbol{v_1, \dots, v_r}\}$: Orthonormal basis for the **Row Space** ($\text{Row } A$) . #### 10.2.5 Invertibility and the pseudo-inverse If $A$ is square ($m=n$) and invertible ($r=n$), then all singular values are strictly positive, and $A$ is invertible. In this case, $A^\dagger = A^{-1}$ . The **Moore-Penrose pseudo-inverse** ($A^\dagger$) always exists for any $A \in \mathbb{R}^{m \times n}$ using the reduced SVD $A = U_r \Sigma_r V_r^T$: $$A^\dagger = V_r \Sigma_r^{-1} U_r^T$$ . **Properties of the Pseudo-Inverse:** * $A A^\dagger$ is the projection matrix onto $\text{Col } A$ . * $A^\dagger A$ is the projection matrix onto $\text{Row } A$ . **Application to Least Squares:** The vector $\hat{\boldsymbol{x}} = A^\dagger \boldsymbol{b}$ provides a least-squares solution ($\text{k.k.o.}$) to $A\boldsymbol{x} = \boldsymbol{b}$ . * All least-squares solutions are given by $\hat{\boldsymbol{x}} + \boldsymbol{v}$, where $\boldsymbol{v} \in \text{Nul } A$ . * $\hat{\boldsymbol{x}}$ is unique because it lies in the Row Space of $A$ and is orthogonal to the null space (i.e., $\boldsymbol{v}=0$), making $\hat{\boldsymbol{x}}$ the least-squares solution with the **smallest length** . ### 10.3 Best Rank-k Approximation . SVD enables finding the best approximation of a matrix using a lower rank, measured by minimizing the sum of squared errors (Frobenius norm squared) . **The Problem:** Given $A$ of rank $r$, find the matrix $B$ of rank $k \le r$ that minimizes: $$\sum_{i=1}^{m} \sum_{j=1}^{n} (a_{ij} - b_{ij})^2$$ . **Solution using SVD:** If $A = U \Sigma V^T$, the best rank-$k$ approximation $B$ is constructed using only the top $k$ singular values and corresponding singular vectors: $$B = U \Sigma'_k V^T$$ . Where $\Sigma'_k$ is constructed by keeping the top $k$ singular values $\sigma_1, \dots, \sigma_k$ and setting the rest to zero: $$\Sigma'_k = \begin{pmatrix} \Sigma_k & 0 \\ 0 & 0 \end{pmatrix}$$ . This approximation $B$ is equivalent to the sum of the first $k$ rank-one matrices from the SVD expansion: $B = \sigma_1 u_1 v_1^T + \dots + \sigma_k u_k v_k^T$ . ### 10.4 Application in Data Mining: Text Similarity (Pages 204-206) SVD, often employed via Latent Semantic Analysis (LSA) after initial data representation, is used to uncover underlying semantic relationships between words and documents . #### 10.4.1 Document-Term Matrix A corpus of documents is represented by a matrix $A \in \mathbb{R}^{W \times D}$, where $W$ is the number of unique words and $D$ is the number of documents. The entry $a_{wd}$ is the frequency count of word $w$ in document $d$ . **Similarity Measures:** 1. **Document Similarity:** Measured by the cosine of the angle between document vectors (columns of $A$, $d_i \in \mathbb{R}^W$): $\cos \theta_{ij} = \frac{d_i^T d_j}{\|d_i\| \|d_j\|}$ . 2. **Word Similarity:** Measured by the cosine of the angle between word vectors (rows of $A$, $w_i \in \mathbb{R}^D$): $\cos \varphi_{ij} = \frac{w_i^T w_j}{\|w_i\| \|w_j\|}$ . #### 10.4.2 Latent Semantic Indexing via SVD By applying SVD and the best rank-$k$ approximation, dimensionality reduction is achieved, filtering out noise and revealing latent concepts . Let $A \approx U_k \Sigma_k V_k^T$ be the rank-$k$ approximation, where $U_k$ ($W \times k$) and $V_k$ ($D \times k$) have orthonormal columns, and $\Sigma_k$ ($k \times k$) contains the $k$ largest singular values . The similarity measure between two word vectors $w_i$ and $w_j$ is approximated in the lower dimensional space ($k$-dimensions): $$\cos \varphi_{ij} \approx \frac{(w_i^T)_k (w_j)_k}{\|(w_i)_k\| \|(w_j)_k\|}$$ where the $k$-dimensional word embedding $(w_i)_k$ is derived from the rows of $U_k \Sigma_k$. This means the dot product of the $k$-dimensional word vectors corresponds to the similarity in the reduced space . > **Example Application Context:** Analyzing 90,000 documents with 95,000 unique words (after removing stop words) results in a massive matrix $A$. By calculating $k=100$ singular values, the required calculation for word similarity drops from comparing 90,000-dimensional vectors to 100-dimensional vectors. This leads to identifying semantically close words, such as 'wapen' (weapon) being close to 'munitie' (ammunition) and 'defense' . > **Note on Normalization:** Before applying SVD, text data is often normalized (e.g., multiplying rows by $\log(D/N_i)$, where $N_i$ is the document frequency of word $i$) to better reflect term importance . --- # Quadratic Forms and Optimization A quadratic form on $\mathbb{R}^n$ is defined as a function $Q(\mathbf{x}) = \mathbf{x}^T A \mathbf{x}$, where $A$ is a symmetric $n \times n$ matrix. For $n=3$, if $A$ is given by : $$A = \begin{pmatrix} a & b & c \\ b & d & e \\ c & e & f \end{pmatrix}$$ The quadratic form is $Q(\mathbf{x}) = ax_1^2 + dx_2^2 + fx_3^2 + 2bx_1x_2 + 2cx_1x_3 + 2ex_2x_3$ . ### 7.2.1 Simplifying the quadratic form via diagonalization The quadratic form can be simplified by diagonalizing the symmetric matrix $A$ as $A = PD P^T$. Here, $P=[\mathbf{u}_1 \ \dots \ \mathbf{u}_n]$ is an orthogonal matrix whose columns are the orthonormal eigenvectors ($\mathbf{u}_i$) of $A$, and $D$ is the diagonal matrix containing the corresponding eigenvalues ($\lambda_i$) . By introducing a change of basis such that $\mathbf{x} = P\mathbf{y}$, where $\mathbf{y} = P^{-1}\mathbf{x} = P^T\mathbf{x}$ (since $P$ is orthogonal), the quadratic form transforms to : $$Q(\mathbf{x}) = \mathbf{x}^T A \mathbf{x} = \mathbf{x}^T (P D P^T) \mathbf{x} = (P\mathbf{y})^T D (P\mathbf{y}) = \mathbf{y}^T P^T P D \mathbf{y} = \mathbf{y}^T D \mathbf{y}$$ The resulting form in the new coordinates $\mathbf{y}$ is : $$Q(\mathbf{y}) = \mathbf{y}^T D \mathbf{y} = \lambda_1 y_1^2 + \lambda_2 y_2^2 + \dots + \lambda_n y_n^2$$ This diagonalized form lacks cross-product terms. The eigenvectors $\mathbf{u}_i$ correspond to the **principal axes** of the quadratic form . > **Tip:** Diagonalization transforms the quadratic form into a sum of squared variables weighted by the eigenvalues, which reveals the geometric nature of the function $Q(\mathbf{x})=c$ . **Example 1: Ellipse** For $Q(\mathbf{x}) = \mathbf{x}^T \begin{pmatrix} 5 & -2 \\ -2 & 5 \end{pmatrix} \mathbf{x}$, the eigenvalues are $\lambda_1=3$ and $\lambda_2=7$, with corresponding eigenvectors (principal axes) $\mathbf{u}_1 = \frac{1}{\sqrt{2}}\begin{pmatrix} 1 \\ 1 \end{pmatrix}$ and $\mathbf{u}_2 = \frac{1}{\sqrt{2}}\begin{pmatrix} -1 \\ 1 \end{pmatrix}$. The simplified form is $Q(\mathbf{y}) = 3y_1^2 + 7y_2^2$. The level set $Q(\mathbf{x})=c$ defines an **ELLIPSE** . **Example 2: Hyperbola** For $Q(\mathbf{x}) = \mathbf{x}^T \begin{pmatrix} 1 & -4 \\ -4 & -5 \end{pmatrix} \mathbf{x}$, the eigenvalues are $\lambda_1=3$ and $\lambda_2=-7$. The simplified form is $Q(\mathbf{y}) = 3y_1^2 - 7y_2^2$. The level set $Q(\mathbf{x})=c$ defines a **HYPERBOOL** . ### 7.2.2 Classification of quadratic forms (Nomenclature/Theorem 5) The classification of the quadratic form $Q(\mathbf{x}) = \lambda_1 y_1^2 + \dots + \lambda_n y_n^2$ (or equivalently, the symmetric matrix $A$) depends on the signs of its eigenvalues ($\lambda_i$) : 1. **Positive definite:** $Q(\mathbf{x}) > 0$ for all $\mathbf{x} \neq \mathbf{0}$ if and only if all $\lambda_i > 0$ . 2. **Negative definite:** $Q(\mathbf{x}) < 0$ for all $\mathbf{x} \neq \mathbf{0}$ if and only if all $\lambda_i < 0$ . 3. **Positive semi-definite:** $Q(\mathbf{x}) \geq 0$ for all $\mathbf{x}$ if and only if all $\lambda_i \geq 0$ . 4. **Negative semi-definite:** $Q(\mathbf{x}) \leq 0$ for all $\mathbf{x}$ if and only if all $\lambda_i \leq 0$ . 5. **Indefinite:** Otherwise, meaning there are both positive and negative eigenvalues $\lambda_i$ . The same classification terminology applies to the symmetric matrix $A$ . > **Example:** A quadratic form for which $Q(\mathbf{x}) \geq 0$ for all $\mathbf{x}$ is **positive semi-definite**. The document shows examples corresponding to positive definite, positive semi-definite, indefinite, and negative definite forms . ## 7.3 Optimization with constraints Optimization involves finding the vector $\mathbf{x}$ in a given domain that maximizes or minimizes the quadratic form $Q(\mathbf{x}) = \mathbf{x}^T A \mathbf{x}$. The specific constraint considered here is the unit sphere constraint: $\|\mathbf{x}\| = 1$, or $\mathbf{x}^T \mathbf{x} = 1$ . We seek $m = \min_{\|\mathbf{x}\|=1} \mathbf{x}^T A \mathbf{x}$ and $M = \max_{\|\mathbf{x}\|=1} \mathbf{x}^T A \mathbf{x}$ . If $Q(\mathbf{x})$ is positive definite, its minimum value on the unit circle $\|\mathbf{x}\|=1$ is strictly positive. If $Q(\mathbf{x})$ is indefinite, the minimum value will be negative, and the maximum value will be positive when constrained to $\|\mathbf{x}\|=1$ . ### 7.3.1 Solution using basis transformation Using the diagonalization $Q(\mathbf{x}) = \mathbf{x}^T A \mathbf{x} = \mathbf{y}^T D \mathbf{y}$, where $\mathbf{y} = P^T \mathbf{x}$ . The constraint $\|\mathbf{x}\|=1$ transforms identically in the $\mathbf{y}$ basis because $\|\mathbf{y}\|^2 = \mathbf{y}^T\mathbf{y} = (P^T\mathbf{x})^T(P^T\mathbf{x}) = \mathbf{x}^T P P^T \mathbf{x} = \mathbf{x}^T I \mathbf{x} = \mathbf{x}^T\mathbf{x} = 1$. Thus, $\|\mathbf{y}\|=1$ . The optimization problem becomes equivalent in the new basis: $$m = \min_{\|\mathbf{x}\|=1} \mathbf{x}^T A \mathbf{x} = \min_{\|\mathbf{y}\|=1} \mathbf{y}^T D \mathbf{y}$$ $$M = \max_{\|\mathbf{x}\|=1} \mathbf{x}^T A \mathbf{x} = \max_{\|\mathbf{y}\|=1} \mathbf{y}^T D \mathbf{y}$$ . ### 7.3.2 Finding the maximum value (Theorem 6a) Let the eigenvalues be ordered such that $\lambda_1 \geq \lambda_2 \geq \dots \geq \lambda_n$ . The constrained form is $Q(\mathbf{y}) = \lambda_1 y_1^2 + \dots + \lambda_n y_n^2$ subject to $\|\mathbf{y}\|^2 = y_1^2 + \dots + y_n^2 = 1$ . Since $\lambda_i \leq \lambda_1$ for all $i$, we have: $$Q(\mathbf{y}) = \lambda_1 y_1^2 + \dots + \lambda_n y_n^2 \leq \lambda_1 y_1^2 + \dots + \lambda_1 y_n^2 = \lambda_1 (y_1^2 + \dots + y_n^2) = \lambda_1 = \lambda_1$$ [1](#page=1). The maximum value $M = \lambda_1$ is attained when $\mathbf{y} = \pm \mathbf{e}_1 = (\pm 1, 0, \dots, 0)^T$. The corresponding vector $\mathbf{x}$ in the original basis is $\mathbf{x} = P\mathbf{e}_1 = \mathbf{u}_1$, the normalized eigenvector belonging to the largest eigenvalue $\lambda_1$ . **Theorem 6a:** $$M = \max_{\|\mathbf{x}\|=1} \mathbf{x}^T A \mathbf{x} = \lambda_1 = \lambda_{\text{max}}(A)$$ . ### 7.3.3 Finding the minimum value (Theorem 6b) Since $\lambda_i \geq \lambda_n$ for all $i$, we have: $$Q(\mathbf{y}) = \lambda_1 y_1^2 + \dots + \lambda_n y_n^2 \geq \lambda_n y_1^2 + \dots + \lambda_n y_n^2 = \lambda_n (y_1^2 + \dots + y_n^2) = \lambda_n = \lambda_n$$ [1](#page=1). The minimum value $m = \lambda_n$ is attained when $\mathbf{y} = \pm \mathbf{e}_n = (0, \dots, 0, \pm 1)^T$. The corresponding vector $\mathbf{x}$ is $\mathbf{x} = P\mathbf{e}_n = \mathbf{u}_n$, the normalized eigenvector belonging to the smallest eigenvalue $\lambda_n$ . **Theorem 6b:** $$m = \min_{\|\mathbf{x}\|=1} \mathbf{x}^T A \mathbf{x} = \lambda_n = \lambda_{\text{min}}(A)$$ . ### 7.3.4 Optimization with additional constraints If additional orthogonal constraints are imposed, the resulting maximum eigenvalue used for the optimization changes . Consider the constraint $\|\mathbf{x}\|=1$ and an additional constraint $\mathbf{x}^T \mathbf{u}_1 = 0$, meaning $\mathbf{x}$ must be orthogonal to the principal axis $\mathbf{u}_1$ corresponding to $\lambda_1$ . The coordinate $y_1$ in the transformed basis is $y_1 = \mathbf{u}_1^T \mathbf{x}$. The constraint $\mathbf{x}^T \mathbf{u}_1 = 0$ implies $y_1 = 0$ . The optimization becomes: $$\max_{\|\mathbf{x}\|=1, \mathbf{x} \perp \mathbf{u}_1} Q(\mathbf{x}) = \max_{\|\mathbf{y}\|=1, y_1=0} (\lambda_1 y_1^2 + \lambda_2 y_2^2 + \dots + \lambda_n y_n^2)$$ Since $y_1=0$, the maximum value is determined by the remaining terms, subject to $y_2^2 + \dots + y_n^2 = 1$ . **Theorem 7:** $$\max_{\|\mathbf{x}\|=1, \mathbf{x} \perp \mathbf{u}_1} \mathbf{x}^T A \mathbf{x} = \max_{\|\mathbf{y}\|=1, y_1=0} \mathbf{y}^T D \mathbf{y} = \lambda_2$$ . Generalizing this concept: **Theorem 8:** If $\mathbf{x}$ is constrained to be orthogonal to the first $k-1$ principal axes ($\mathbf{u}_1, \dots, \mathbf{u}_{k-1}$), then the maximum value of $Q(\mathbf{x})$ under the unit norm constraint is $\lambda_k$ . $$\max_{\|\mathbf{x}\|=1, \mathbf{x} \perp \mathbf{u}_i, i=1\dots k-1} \mathbf{x}^T A \mathbf{x} = \lambda_k$$ . --- ## Common mistakes to avoid - Review all topics thoroughly before exams - Pay attention to formulas and key definitions - Practice with examples provided in each section - Don't memorize without understanding the underlying concepts© 2026 Maeve. All rights reserved. This content is protected by copyright.