Linear Algebra Lecture Notes - Comprehensive Lecture Notes Semester Lecture Notes
Systems of Linear Equations and Row Operations
Definition of Linear Equation: A linear equation in variables, , is an equation of the form , where the coefficients and the constant term are constants.
Definition of Linear System: A finite collection of linear equations in the variables is called a system of linear equations or a linear system.
Example:
Homogeneous Linear System: A system is called homogeneous if all the constants on the right-hand side are zero ( for all equations).
Solution of a System: A set of values for the variables that satisfies every equation in the system.
Matrix Representations of Linear Systems
Matrix: A rectangular array of numbers. An matrix has rows and columns.
Coefficient Matrix: Formed from the coefficients of the variables in the equations.
Augmented Matrix: Formed from the coefficients and the constant terms, typically separated by a vertical line: .
Elementary Row Operations: Operations that simplify the augmented matrix without changing the solution set:
Interchanging two rows ().
Multiplying a row by a non-zero constant (, where ).
Adding a multiple of one row to another row ().
Equivalence: Matrices produced after row operations are equivalent, denoted by , meaning they share the same solution set.
Row-Echelon Form and Elimination
Leading Entry: The first non-zero entry in each row of a matrix.
Row-Echelon Form (REF): A matrix is in REF if:
The leading entry of a lower row is further to the right than the leading entry in the higher row.
Zero rows are grouped at the bottom.
Reduced Row-Echelon Form (RREF): A matrix is in RREF if:
It is in REF.
Each leading entry is exactly .
In each column containing a leading , all other entries are zero.
Gaussian Elimination: A systematic way to reduce a matrix to REF. It involves creating zeros below leading entries. The solution is then found via back substitution.
Gauss-Jordan Elimination: Reduces a matrix to RREF uniquely. It involves creating leading ones and zeros above each leading one.
Consistency and Solutions
Existence of Solutions: A system has zero solutions (inconsistent), one solution (consistent), or infinitely many solutions (consistent).
Inconsistency Condition: A system is inconsistent if and only if the REF of its augmented matrix has a row with all zero entries except for a non-zero final constant term ( where ).
Homogeneous System Consistency: Every homogeneous system is consistent because it always has the trivial solution ().
Parameters for Infinite Solutions: If a consistent system has variables and non-zero rows in the REF, then parameters are needed to specify the solution set. Columns without leading entries correspond to free variables.
Superposition of Solutions: If is consistent, the general solution is , where is a particular solution to and is the general solution to the homogeneous system .
Matrix Operations and Properties
Special Matrices:
Square Matrix: Number of rows equals number of columns.
Diagonal Matrix: for .
Upper Triangular: for .
Lower Triangular: for .
Zero Matrix (): All entries are zero.
Identity Matrix (): if and if .
Matrix Multiplication: The product is defined if columns in equals rows in . Entry .
Properties:
Note: Generally, .
Trace: .
Transpose (): Interchanging rows and columns ().
.
Matrix Inverses
Definition: An matrix is invertible if there exists a matrix such that . is denoted .
2x2 Inverse Formula: If , then , provided .
Invertibility Condition: is invertible if and only if its RREF is or its determinant is non-zero.
Properties:
.
.
Elementary Matrices: Matrices obtained by performing a single row operation on . Multiplying on the left by an elementary matrix is equivalent to performing the row operation on .
Rank and Determinants
Rank: The number of non-zero rows in the REF of a matrix.
and .
Determinant (n x n): A function mapping square matrices to scalars.
Rules: Swapping two rows multiplies determinant by . Multiplying a row by multiplies it by . Adding a multiple of one row to another doesn't change it. .
For triangular matrices, is the product of diagonal entries.
Properties:
.
.
.
Cofactor Expansion:
Cofactor: where is without row and column .
(expansion along -th row).
Euclidean Vector Spaces
Vectors in : Ordered n-tuples of real numbers .
Norm (Length): .
Dot Product: .
Cauchy-Schwarz Inequality: .
Orthogonality: Two vectors are orthogonal if .
Vector Projection: .
Cross Product ( only): Result is a vector perpendicular to both and . Magnitude equals area of the parallelogram spanned by and .
Scalar Triple Product: is the volume of the parallelepiped spanned by them (absolute value).
Lines and Planes
Lines: Vector equation . Parametric: .
Planes: Vector equation . Point-normal form: . Cartesian: , where .
Geometric Intersection: Linear algebra methods (Gaussian elimination) are used to find intersection points of multiple planes or lines/planes.
General Vector Spaces
Definition: A set with vector addition and scalar multiplication satisfying 10 axioms (closure, associativity, commutativity, existence of zero, additive inverse, distributivity, etc.).
Examples: , , (polynomials of degree at most ), and function spaces .
Complex Vector Spaces: Use complex scalars .
Integers Modulo 2 (): Field containing , used in coding theory (e.g., Hamming code).
Subspaces, Spans, and Independence
Subspace: A subset that is itself a vector space. Must contain and be closed under addition and scalar multiplication.
Span: The set of all linear combinations of vectors in a set.
Linear Independence: A set of vectors is independent if implies all .
In , if number of vectors , they are linearly dependent.
Basis: A linearly independent set that spans the space.
Dimension (): The number of vectors in a basis.
, , .
Rank-Nullity and Matrix Spaces
Column Space: Subspace of spanned by columns of .
Row Space: Subspace of spanned by rows of .
Solution Space (Nullspace): Subspace formed by solutions to .
Rank-Nullity Theorem: For an matrix, (total columns).
Coordinates: If is an ordered basis, any has unique coordinates .
Linear Transformations
Definition: Function such that and .
Standard Matrix Representation:
Kernel (ker(T)): Set of vectors such that .
Image (im(T)): Set of vectors such that .
Composition: Matrix representation of is the product .
Change of Basis: Transition matrix such that .
.
Eigenvalues and Eigenvectors
Definitions: for non-zero . is the eigenvalue, is the eigenvector.
Characterisic Equation: .
Multiplicity: Algebraic (multiplicity of root in poly) vs. Geometric (dimension of eigenspace).
Diagonalization: where is diagonal () and contains eigenvectors as columns.
Requires linearly independent eigenvectors.
Matrix Powers: .
Genetics Application: Transition matrices can predict genotype frequencies over generations (Markov chains).
Inner Product Spaces
Inner Product (Real): Generalizes dot product. Requisite properties: symmetry, linearity, and positivity.
Complex (Hermitian) Inner Product: . Requires complex conjugates: .
Orthonormal Sets: Orthogonal set where each vector has unit length.
Gram-Schmidt Procedure: Converts any basis into an orthonormal basis step-by-step.
Least Squares: Solving to find the line of best fit by minimizing .
Orthogonal Matrices (): . Preserves distances and angles.
Symmetric Matrices: Real symmetric matrices are always orthogonally diagonalizable ().
Singular Value Decomposition (SVD): , where are orthogonal and contains singular values (square roots of eigenvalues of ).
Hermitian Matrices: . All eigenvalues are real and they are unitary diagonalizable ().