Linear Algebra and Matrix Theory Foundations
Linear Equations and Systems
Reduction and Elementary Row Operations: The fundamental process for solving systems involves three types of row operations to reach a solution set: * Scaling: Multiplying a row by a non-zero scalar (e.g., outside to 6). * Interchanging: Swapping the positions of two rows in a matrix or system. * Replacement/Addition: Adding a multiple of one row to another row ().
Variables and Unknowns: In a system such as , the terms are unknowns, while the values multiplied by them are coefficients.
System Dimensions: * 2 Dimensions: Represents lines in a plane (e.g., ). * 3 Dimensions: Represents planes in space (e.g., ).
The Solution Set: The set containing all possible values that satisfy every equation in the system. * Guessing Solutions: While one might guess a solution like , it is not systematic. * Possible Outcomes: A linear system has either no solution, exactly one solution, or infinitely many solutions.
Visualizing Solutions: * One Solution: The intersection of lines or planes at a single point. * Infinitely Many Solutions: Occurs when equations represent the same line/plane or intersect along a line. For example, a linear equation in 3 variables defines a plane. * No Solution (Inconsistent): Occurs when lines or planes are parallel and do not intersect.
Row Reduction and Echelon Forms
Echelon Form (REF): A matrix is in echelon form if: * All nonzero rows are above any rows of all zeros. * Each leading entry (the leftmost non-zero entry) of a row is in a column to the right of the leading entry of the row above it. * All entries in a column below a leading entry are zeros.
Reduced Row Echelon Form (RREF): A matrix is in RREF if it satisfies REF conditions plus: * The leading entry in each nonzero row is 1. * Each leading 1 is the only nonzero entry in its column.
Pivot Position and Column: * Pivot Position: A location in matrix that corresponds to a leading 1 in the RREF of . * Pivot Column: A column of that contains a pivot position.
Consistency Test: A system is consistent if and only if the rightmost column of the augmented matrix is not a pivot column (i.e., no row of the form where ).
Vector Equations and Span
Vectors in : The set of all ordered n-tuples of real numbers ().
Operations: * Scalar Multiple: Multiplying a vector by a real number such that . * Vector Addition: Adding components such that . Addition follows the Parallelogram Rule.
Linear Combinations: Given vectors and weights , the vector is a linear combination.
Span: is the set of all linear combinations of the vectors. Geometrically, in , the span of two non-parallel vectors is a plane through the origin.
Matrix Equations
Matrix-Vector Product: If is an matrix with columns and , then is the linear combination of the columns of using the entries in as weights: .
Equivalent Descriptions: The following have the same solution set: * The matrix equation . * The vector equation . * The linear system with augmented matrix .
Solution Sets of Linear Systems
Homogeneous Systems: A system is homogeneous. It always has the trivial solution . * It has a non-trivial solution if and only if there is at least one free variable (a column without a pivot).
Inhomogeneous Systems: Systems of the form where .
Parametric Vector Form: Solutions can be expressed as , where is a particular solution and represents the solution to the corresponding homogeneous system.
Linear Independence
Linearly Independent: A set of vectors is independent if the equation has only the trivial solution ( for all ). * This occurs if the matrix has a pivot in every column.
Linearly Dependent: At least one vector can be written as a linear combination of the others. * Any set containing the zero vector is linearly dependent. * If a set contains more vectors than there are entries in each vector (p > n in ), it must be linearly dependent.
Linear Transformations
Definition: A transformation is linear if: * *
Terminology: * Domain: (input space). * Codomain: (target space). * Range: The set of all images .
Standard Matrix: Every linear transformation can be represented by a matrix , where are columns of the identity matrix .
Geometric Transformations in : * Rotation: Rotates vectors counterclockwise by angle . Standard matrix: . * Reflection: Across (-axis): ; across : ; across : . * Contraction/Expansion: Horizontal () or Vertical (). * Shear: Horizontal () or Vertical (). * Projection: Onto -axis: .
Properties: * Onto: is onto if the range equals the codomain (A has a pivot in every row). * One-to-one: is one-to-one if each image is the result of at most one input (A has a pivot in every column).
Matrix Operations and Inverses
Matrix Algebra: * Addition: Defined for matrices of the same dimension. * Multiplication: For and , the product is . Note: Generally, . * Transpose (): Columns become rows.
Inverses: A square matrix is invertible if there exists such that . * Matrix Inverse: If , then , provided the determinant . * Algorithm for Inverse: Row reduce the augmented matrix . If it reduces to , then .
Invertible Matrix Theorem (IMT): For a square matrix , the following are equivalent: * is invertible. * is row equivalent to . * has only the trivial solution. * The columns of are linearly independent and span . * .
LU Factorization
Definition: Writing a matrix as the product of a lower triangular matrix (with 1s on diagonal) and an upper triangular matrix (echelon form): .
Solving Systems with LU: To solve , let . 1. Solve (Forward substitution). 2. Solve (Backward substitution).
Subspaces, Dimension, and Rank
Subspace: A subset of that contains the zero vector and is closed under addition and scalar multiplication.
Fundamental Subspaces: * Column Space (): Span of the columns of . * Null Space (): Set of all solutions to .
Basis: A linearly independent set in a subspace that spans it. * Basis for : Use the pivot columns of the original matrix. * Basis for : Use the vectors from the parametric solution of .
Dimension (): The number of vectors in a basis.
Rank: .
Rank Theorem: (number of columns).
Determinants
Determinant (): Computed via cofactor expansion along any row or column. * . * Triangular matrices: Determinant is the product of diagonal entries.
Properties and Operations: * Row swap: Changes sign (). * Row scaling by : Scales determinant by . * Row addition: Does not change the determinant. * . * .
Geometric interpretation: In , is the area of a parallelogram. In , is the volume of a parallelepiped.
Markov Chains
Stochastic Matrix: A square matrix whose columns are probability vectors (entries are and sum to 1).
Steady-State Vector: A probability vector such that .
Regular Stochastic Matrix: There exists some power where all entries are strictly positive. * Convergence Theorem: If is regular, there is a unique steady-state vector , and for any initial , the sequence converges to .
Google PageRank: Uses a Google Matrix , where is a damping factor (typically ) and has every entry equal to .
Eigenvalues and Eigenvectors
Definitions: If for , is an eigenvector and is an eigenvalue.
Characteristic Equation: . The roots are the eigenvalues.
Multiplicity: * Algebraic Multiplicity: The count of an eigenvalue as a root of the characteristic polynomial. * Geometric Multiplicity: The dimension of the eigenspace ().
Diagonalization: where is a diagonal matrix of eigenvalues and is a matrix of corresponding eigenvectors. A matrix is diagonalizable if and only if it has linearly independent eigenvectors.
Complex Eigenvalues: Occur in conjugate pairs. For a rotation-dilation matrix , eigenvalues are , corresponding to a scaling of factor and rotation by .
Orthogonality and Least Squares
Dot Product: . If , they are orthogonal.
Length (Magnitude): .
Orthogonal Projection: The projection of onto a subspace is . * Best Approximation Theorem: is the unique closest vector in to .
Gram-Schmidt Process: An algorithm to produce an orthogonal basis from any basis .
QR Decomposition: Factoring where has orthonormal columns and is upper triangular.
Least-Squares Solution: Finding that minimizes . Solutions must satisfy the Normal Equations: .
Singular Value Decomposition (SVD)
Definition: Writing any matrix as , where and are orthogonal matrices and contains the singular values (square roots of eigenvalues of ).
Fundamental Subspaces and SVD: * Columns of span . * Columns of span .
Spectral Decomposition: . This allows for rank-j approximations, used extensively in image compression and data analysis.
Questions & Discussion
Course Organization: Worksheet solutions are not provided intentionally to prepare students for upper-level courses that lack studios and provided answers. Students should use Piazza, office hours, and software like MATLAB or Octave to check work.
True/False Strategies: TAs recommend looking at simple examples or counter-examples. For instance, if a system has more unknowns than equations, it cannot have a unique solution (True, as there will be free variables).
Optimization: How to find the max value of a quadratic form subject to ? The maximum value is the largest eigenvalue of the symmetric matrix .
A symmetric matrix has the property that it can be diagonalized, meaning that it can be expressed in the form , where:
is a diagonal matrix containing the eigenvalues of the symmetric matrix.
is a matrix whose columns are the corresponding normalized (orthonormal) eigenvectors of the symmetric matrix.
Properties of Symmetric Matrices and Diagonalization:
Real Eigenvalues: All eigenvalues of a symmetric matrix are real numbers.
Orthogonal Eigenvectors: Eigenvectors corresponding to distinct eigenvalues are orthogonal to each other.
Diagonalization: A symmetric matrix is diagonalizable if and only if it has enough linearly independent eigenvectors (which it always does).
Implication: For a symmetric matrix, the process of diagonalization can simplify many matrix operations, particularly in applications involving quadratic forms or solving differential equations.