Comprehensive Notes on Matrix Algebra and Calculus: Module 01 - Matrices
Foundations and Scope of Linear Algebra
Linear algebra is the branch of mathematics devoted to the study of vector spaces and linear mappings between them, providing analytical and algorithmic tools to formulate, analyze, and resolve complex mathematical problems across science, engineering, and data disciplines.
Core algebraic constructs include:
Vectors: Ordered lists of numbers representing quantities defined by magnitude and spatial direction. For example, a three-dimensional column vector is expressed as:
Matrices: Rectangular arrays of numerical elements or algebraic expressions organized along horizontal rows and vertical columns. A general matrix is written as:
Linear Equations: Mathematical statements wherein every variable appears exclusively to the first power without products, roots, or non-linear functional compositions. A representative system of linear equations is:
Linear Combinations: The synthesis of a new vector through the scalar weighting and sequential addition of a set of existing vectors: For example, with scalars , , and : .
Matrix Operations: Algebraic processes including entry-wise matrix addition, scalar multiplication, matrix multiplication (), transposition (), and matrix inversion (, when is non-singular).
Linear Transformations: Vector mappings between vector spaces preserving the operations of vector addition and scalar multiplication:
Foundational significance of linear algebra:
Transforms intricate multidimensional physical and computational challenges into structured, computationally solvable matrix equations.
Provides a universal mathematical language across diverse branches of physical science, computational science, and quantitative economics.
Serves as the mathematical bedrock for advanced analytical methods, including spectral decomposition, singular value decomposition, convex optimization, and machine learning pipelines.
Gilbert Strang characterizes the discipline: "Linear algebra is concerned with questions of line and continuity, of equivalence and similarity, of stretching and compressions."
The progressive linear algebra learning sequence moves through seven interconnected milestones:
Start with Vectors.
Organize vectors into structured Matrices.
Solve systems of Linear Equations.
Execute foundational Matrix Operations.
Discover Eigenvalues & Eigenvectors.
Apply geometric Linear Transformations.
Solve complex Real-World Problems.

Primary interdisciplinary applications:
Computer Graphics & Visualization: Renders, scales, shears, rotates, and projects geometric models in two- and three-dimensional spaces for animation, virtual reality, and computational geometry ().
Machine Learning & Artificial Intelligence: Underpins high-dimensional feature representation, weight optimization in deep neural networks, and covariance matrix manipulations (, ).
Electrical Engineering: Determines node voltages and branch loop currents in complex networks via matrix formulations of Ohm's Law and Kirchhoff's Laws ().
Structural Engineering: Analyzes equilibrium states, deflections, and load distributions across civil infrastructures, bridges, and airframes using stiffness matrices (, governed locally by Hooke's Law ).
Signal Processing: Formulates transforms, frequency filters, and data compression schemes across audio, imagery, and communications via Discrete Fourier Transforms ().
Robotics & Automated Control: Models kinematic chains, joint coordinate frames, and multi-link robotic trajectories via sequential transformation matrices ().
Physics & Quantum Mechanics: Represents physical observables through Hermitian matrices, where quantum states are state vectors and physical measurement outcomes correspond to eigenvalues.
Economics & Quantitative Data Science: Implements multivariate regression, economic input-output forecasting, and linear programming optimizations.

Historical Evolution of Matrix Theory
Matrix concepts developed over centuries from spatial problem-solving into a formal branch of modern mathematics.
Contributions from ancient India:
Vedic Roots and Geometry (): The Śulba Sūtras (authored by Baudhāyana, Āpastamba, and others) introduced grid-based spatial arrays and geometric algebra to plan, construct, and align complex sacrificial altars according to exact geometrical constraints.
The Bakhshali Manuscript (): Documented early multi-variable linear equation representations using systematic rectangular tabular layouts termed Sthāpanā or Nyāsa, employing dot notation (śūnya-bindu) to mark unknowns within structured arrays.
Classical Innovations & Tabular Methods ():
Āryabhaṭa I () formulated foundational algorithmic rules for linear indeterminate equations.
Mahāvīra () developed elimination algorithms for -variable systems using array reduction principles analogous to Gaussian elimination.
Systematic Algebra & Indeterminate Systems ():
Bhāskara II () advanced coefficient elimination methods by aligning unknown variables within column matrices.
Nārāyaṇa Paṇḍita () investigated combinatorial matrix layouts, higher-order coefficient reductions, and the construction of magic squares.

Broader historical timeline:
Ancient Chinese Tabular Methods (): The historical treatise Jiuzhang Suanshu (The Nine Chapters on the Mathematical Art) utilized bamboo rod arrays on counting boards to solve systems of linear equations via column operations equivalent to matrix transformations.
Gottfried Wilhelm Leibniz (): Introduced systematic two-dimensional indexing schemes in the late century to record coefficients of linear systems, pioneering determinant theory.
Carl Friedrich Gauss (): Established algorithmic row reduction (Gaussian elimination) while studying celestial mechanics and geodesic surveys, formalizing early concepts of matrix multiplication and matrix inversion.
James Joseph Sylvester (): Coined the term "matrix" in (derived from the Latin word for "womb"), defining it as an oblong arrangement of terms out of which determinants can be born:
"A matrix is a womb in which we may generate determinants."
Arthur Cayley (): Published the definitive Memoir on the Theory of Matrices (), establishing matrices as an independent abstract mathematical discipline by defining matrix addition, scalar multiplication, matrix multiplication, inverses, and the Cayley-Hamilton theorem.

Elementary Transformations of a Matrix
Elementary transformations are row or column operations that modify a matrix without altering its fundamental algebraic rank or linear solution space.
Three elementary row transformations:
Interchange of any two rows: Denoted .
Multiplication of any row by a non-zero scalar: Denoted or where .
Addition of a scalar multiple of one row to another row: Denoted .
Corresponding column operations (, , ) are termed elementary column transformations.
Demonstration of elementary row operations on a general matrix:
Row Interchange ():
Scalar Multiplication ():
Row Addition of a Multiple ():
Invariance properties under elementary transformations:
Elementary row and column transformations do not alter the order (dimensions ) of a matrix.
Elementary row and column transformations do not change the rank of a matrix.
Row Echelon Form and Rank of a Matrix
Definition of Row Echelon Form:
A non-zero matrix is in row echelon form if it satisfies two conditions:
All zero rows (rows whose entries are entirely zero) are positioned below every non-zero row.
The leading entry (the first non-zero entry from the left) in each non-zero row is , and all entries directly beneath this leading entry in the same column are zero.
Canonical examples:
Algorithmic rules for echelon reduction:
Prefer a leading non-zero entry (ideally ) at position . If the leading entry is zero, perform an interchange () with a lower row having a non-zero leading entry.
Use the leading pivot element of a given row to systematically eliminate all entries below it within the same column via elementary row operations of the type .
Row transformations must be applied to every entry across the entire row.
Fractions should be avoided during hand computation wherever possible to prevent arithmetic errors.
Definition of Rank of a Matrix:
The rank of a matrix , denoted by , is the total number of non-zero rows present in its row echelon form.
Fundamental properties of rank:
Rank Equivalence: For any matrix , , where row rank equals the maximum number of linearly independent row vectors, and column rank equals the maximum number of linearly independent column vectors.
Dimension Bounds: For any real matrix :
Null Matrix: if and only if is the zero matrix ().
Transpose Invariance: The rank of a matrix equals the rank of its transpose:
Linear Independence: If for an matrix, exactly rows (and columns) of are linearly independent.

Engineering and computational utility of rank:
Linear Systems Analysis: Determines whether a system of linear equations admits a unique solution, infinitely many solutions, or no solution.
Linear Dependence Detection: Identifies whether data channels, database attributes, or structural variables are redundant combinations of other features (e.g., in database normalization).
Dimensionality Reduction: Serves as the operating foundation for Principal Component Analysis (PCA) to extract truly informative dimensions from high-dimensional datasets.
Low-Rank Approximations via SVD: Powers Singular Value Decomposition (SVD), utilized in image compression, streaming recommender engines (e.g., Netflix, Spotify), audio noise reduction, and signal feature extraction.
Worked Problems: Matrix Rank via Echelon Reduction
Problem 1 (a): Determine the rank of .
Perform row operation :
The row echelon form contains non-zero row.
Therefore, .
Problem 1 (b): Determine the rank of .
Step 1: Interchange row 1 and row 2 () to place a non-zero entry at the top-left pivot:
Step 2: Eliminate the first entry of row 3 via :
Step 3: Eliminate row 3 using row 2 via :
Step 4: Normalize pivot elements to via and :
The number of non-zero rows is .
Therefore, .
Problem 2: Determine the rank of .
Step 1: Eliminate the first column entries in rows 2 and 3 via and :
Step 2: Eliminate row 3 via :
The matrix has non-zero rows.
Therefore, .
Problem 3: Determine the rank of .
Step 1: Clear the first column beneath the leading pivot via , , and :
Step 2: Multiply by (), then perform and :
The reduced matrix displays exactly non-zero rows.
Therefore, .
Problem 4: Determine the rank of .
Step 1: Interchange row 1 and row 4 ():
Step 2: Eliminate the leading element in row 3 via :
Step 3: Interchange row 2 with row 4 () to bring non-zero rows up:
Step 4: Eliminate the second element of row 3 via :
The number of non-zero rows is .
Therefore, .
Problem 5: Determine the rank of .
Step 1: Interchange row 1 and row 2 ():
Step 2: Eliminate entries in column 1 via and :
Step 3: Interchange row 2 and row 4 () for simpler pivot arithmetic:
Step 4: Eliminate column 2 entries via and :
Step 5: Eliminate row 4 via and normalize row 3 via :
The number of non-zero rows is .
Therefore, .
Applied Case Studies in Matrix Rank
Case Study 1: Packet Loss Analysis in a Data Center:
Problem context: A network administrator tracks average packet loss percentages between four critical servers (Server A, B, C, D) and four routers (Router 1, 2, 3, 4) in a data center over one month. The packet loss data matrix is:
Mathematical reduction of matrix :
Apply :
Apply :
Eliminate row 4 via :
Rearranging non-zero rows yields non-zero rows, so .
MATLAB Code:
matlab % Packet Loss Matrix P = [5 10 15 20; 10 20 30 40; 5 12 18 25; 0 5 7 10]; % Find the rank r = rank(P); disp(['Rank of matrix P = ', num2str(r)]);
Operational Insights:
Independent Contribution: Because , only out of routers contribute uniquely and independently to packet loss variation across the servers.
Redundancy/Correlation: Because , at least one router's behavior is a linear combination of the other three. Packet loss patterns among routers contain redundancy.
Maintenance & Upgrade Prioritization: Maintenance, testing, and hardware upgrades should be prioritized on the independent, critical routers. The redundant router can serve as a secondary backup, optimizing operational budgets while preserving network reliability.

Case Study 2: Detecting Redundant Features in Smart City Traffic Monitoring:
Problem context: Three sensors monitor a busy municipal intersection:
Sensor A counts cars per minute.
Sensor B counts buses per minute.
Sensor C counts total vehicles per minute.
Data matrix collected over minutes: where Column 1 = Cars (A), Column 2 = Buses (B), Column 3 = Total Vehicles (C).
Analytical reduction:
The underlying relationship across columns is:
Applying elementary row reduction transforms to:
The row echelon form yields .
Architectural conclusions:
Independent Features: There are exactly independent features in the dataset.
Sensor Removal: Sensor C provides entirely redundant information because its values can be reconstructed at any instant via . Sensor C can be removed.
Optimization Utility: Rank analysis identifies feature dependency ( columns), enabling engineers to eliminate redundant sensing hardware, streamline data storage, and lower bandwidth costs without information loss.

Systems of Linear Equations and Consistency Analysis
Formulation of an linear system:
Matrix representation: where:
is the coefficient matrix ().
is the column vector of unknowns ().
is the column vector of constants ().
The augmented matrix is denoted by :
Homogeneous vs. Non-Homogeneous Systems:
If (), the system is homogeneous ().
If at least one , the system is non-homogeneous ().
For homogeneous systems, is always a solution, termed the trivial solution.
A solution containing at least one non-zero component () is a non-trivial solution.
Consistency criteria (Rouché–Capelli Theorem):
A linear system is consistent if and only if the rank of the coefficient matrix equals the rank of the augmented matrix:
Let , and let denote the total number of unknowns:
Unique Solution: . The system is consistent and possesses a unique solution vector.
Infinitely Many Solutions: . The system is consistent and possesses infinitely many solutions. Exactly variables can be assigned arbitrary parameter values.
Inconsistent (No Solution): If , the system is inconsistent and admits no solution.
Systematic procedure for solving linear systems:
Assemble the augmented matrix .
Reduce into row echelon form via elementary row operations.
Read off and to evaluate consistency.
Re-express the reduced echelon matrix as a system of algebraic equations and solve for the unknowns using back substitution.
Problem 6: Unique Solution Verification:
System: , , .
Augmented matrix:
Apply :
Apply and :
Apply :
Evaluation: , , and . Since , the system has a unique solution.
Back substitution:
From equation 3: .
From equation 2: .
From equation 1: .
Final solution: , , .
Problem 7: Infinitely Many Solutions:
System: , , .
Augmented matrix:
Apply :
Apply and :
Apply :
Normalize row 2 via :
Evaluation: , , and . Because , the system has infinitely many solutions with arbitrary parameter.
Algebraic parameterization:
Set (arbitrary parameter).
From equation 2: .
From equation 1: .
Solution set: , , .
Problem 10: Inconsistent System (No Solution):
System: , , .
Augmented matrix:
Apply and :
Apply :
Evaluation: , but .
Because , the system is inconsistent and admits no solution.
Problem 11: Parametric Investigation with and :
System: , , .
Augmented matrix reduction:
Apply and :
Apply :
Comprehensive parameter analysis:
Unique Solution: Requires . This occurs when , for any real value of .
No Solution (Inconsistent): Requires . This occurs when and and , giving and .
Infinite Solutions: Requires . This occurs when and and .
Problem 12: Parametric Investigation with and :
System: , , .
Augmented matrix reduction:
Apply and :
Consistency cases:
Unique Solution: , requiring for any value of .
No Solution: , requiring (so ) and (so ).
Infinite Solutions: , requiring and .
Problem 13: Homogeneous System Analysis:
System: , , .
Augmented matrix reduction:
Apply :
Apply and :
Apply :
Rank analysis: . Because the rank is strictly less than the number of unknowns, non-trivial solutions exist.
Back substitution:
From equation 2: .
Let (arbitrary constant), then .
From equation 1: .
Complete solution: , , .
Problem 14: Homogeneous System with Trivial Solution:
System: , , .
Augmented matrix reduction:
Apply and :
Apply :
Back substitution:
Equation 3 yields .
Equation 2 yields .
Equation 1 yields .
The system admits only the trivial solution: , , .
Direct Solution Methods: Gauss Elimination
Operational framework:
Gauss elimination is a direct algorithm that converts a linear system into an upper triangular system using elementary row operations, followed by backward substitution to extract exact values for all unknowns.
The method is well-adapted for programmatic implementation and computer computation.
Reduction of a general system:
Form the augmented matrix :
Step 1: Using pivot element , eliminate and via row operations:
Step 2: Using pivot element , eliminate via row operations:
Step 3 (Back Substitution):
Problem 8: Detailed Gauss Elimination:
System: , , .
Augmented matrix:
Apply and :
Apply :
Rank analysis: , , and . The system is consistent and admits a unique solution.
Back substitution:
.
.
.
Final solution: , , .
Problem 9: Overdetermined System via Gauss Elimination:
System: , , , .
Augmented matrix:
Apply and :
Apply :
Apply and :
Rank analysis: , , and . The system is consistent with arbitrary parameter.
Parameterization:
Set .
From row 2: .
From row 1: .
Final solution: , , .
Iterative Solution Methods: Gauss-Seidel Method
Foundational concept:
The Gauss-Seidel method is an iterative numerical technique that starts from an initial trial approximation and repeatedly updates unknowns by using the newest available values immediately within the same iteration cycle.
It converges if the system of equations is diagonally dominant.
Definition of Strict Diagonal Dominance:
A square coefficient matrix is strictly diagonally dominant if the absolute value of the diagonal entry in each row is strictly greater than the sum of the absolute values of all other entries in that row:
For a system:
General iterative update algorithm:
Rearrange the system to isolate each diagonal variable:
Select an initial approximation vector, typically .
Compute successive iterations using the latest computed values:
Problem 15: Gauss-Seidel Iteration:
System: , , .
Diagonal dominance check: across all rows.
Iterative formulas:
Start with trial approximation: , , .
Iteration 1:
Iteration 2:
Iteration 3:
Converged solution: , , .
Problem 16: Gauss-Seidel Iteration:
System: , , .
Diagonal dominance verification: ; ; .
Iterative formulas:
Start with trial approximation: , , .
Iteration 1:
Iteration 2:
Iteration 3:
Converged solution: , , .
Problem 17: Row Rearrangement for Diagonal Dominance:
Given system: , , .
This configuration is not diagonally dominant because .
Rearrange the equations into diagonally dominant order:
(Dominant in : )
(Dominant in : )
(Dominant in : )
Iterative formulas:
Start with trial approximation: , , .
Iteration 1:
Iteration 2:
Iteration 3:
Iteration 4:
Solution correct to three decimal places: , , .
Problem 18: Custom Initial Approximation:
System: , , .
Initial approximation: .
Iterative formulas:
Iteration 1:
Iteration 2:
Iteration 3:
Iteration 4:
Solution after 4 iterations: , , .
Comparison of linear system solution methods:
Feature | Gauss Elimination Method | Gauss-Seidel Method |
|---|---|---|
Type of Method | Direct (step-by-step, exact answer) | Iterative (successive corrections to trial guesses) |
How It Works | Row operations reduce matrix to triangular form; solves via back substitution | Begins with trial values and updates each unknown repeatedly until convergence |
Best For | Small or medium systems (few unknowns, dense equations) | Large, sparse systems with thousands of equations |
Example Problem | Calculating three branch currents in an electrical circuit | Calculating temperature distribution over a continuous plate |
Accuracy | Exact answers (subject only to machine roundoff) | Approximate; accuracy depends on user-specified tolerance |
Memory Requirement | High memory footprint; fills in zeros in sparse matrices | Low memory requirement; highly efficient for sparse matrices |
Computing Speed | Fast for small systems; computationally expensive () for large systems | Extremely fast per iteration for large, diagonally dominant systems |
Convergence | Always yields a solution for regular non-singular systems | Converges only if the system is strictly diagonally dominant |
When NOT to Use | Very large systems where factorizations exceed memory | Ill-conditioned systems or non-diagonally dominant systems |
Common Use | Structural trusses, hand calculations, circuit checks | Finite Element Analysis (FEA), computational fluid dynamics, large-scale simulations |

Applied Case Studies in Linear Systems
Case Study 3: Sarah's Investment Portfolio Optimization:
Problem context: An investor inherits and allocates the total across three investment funds:
Money Market Fund: annual interest ().
Municipal Bonds: annual interest ().
Mutual Funds: annual interest ().
Investment constraints:
Total capital invested across all three funds: .
Capital in Mutual Funds exceeds Municipal Bonds by exactly .
Total target annual interest income at year-end: .
Variable formulation:
Let = amount invested in Money Market Fund.
Let = amount invested in Municipal Bonds.
Let = amount invested in Mutual Funds.
Governing system of linear equations:
Augmented matrix reduction:
Apply :
Apply :
Back substitution:
MATLAB Implementation:
matlab % Coefficient matrix A A = [1 1 1; 0 -1 1; 0.03 0.04 0.07]; % Constants vector b b = [12000; 4000; 670]; % Solve the system Ax = b x = A\b; % Display the results fprintf('Investment in Money Market Fund (x): $%.2f ', x(1)); fprintf('Investment in Municipal Bonds (y): $%.2f ', x(2)); fprintf('Investment in Mutual Funds (z): $%.2f ', x(3));
Final portfolio distribution:
Money Market Fund: at interest.
Municipal Bonds: at interest.
Mutual Funds: at interest.
Total invested: ; Total annual interest: .
Extended critical scenario evaluations:
Fluctuating Interest Rates: If the Mutual Fund yield drops from to , earned interest changes from to , reducing income by to .
Risk Mitigation Allocation: If risk is reduced by distributing capital equally (, , ), earned interest is , falling short of the target.
Target Adjustment to : Preserving and : . Total capital required would be , exceeding the principal. The goal is unattainable without raising initial capital.
Tax Impact: Imposing a tax on yields net income of , lowering realized returns.
Safety Constraint (): Satisfied directly by the base solution ().
Ethical Exclusions (): Excluding mutual funds yields and . A negative allocation is physically impossible; hence no mathematical solution exists under this ethical constraint without altering yield goals.

Case Study 4: DC Power Distribution Network in a Testing Laboratory:
System specifications: A DC power source powers three interconnected loop meshes:
Loop 1 contains a control panel wire (), a ground path (), and a shared measuring device ().
Loop 2 contains the shared measuring device (), an additional instrument (), and a shared loop connector ().
Loop 3 contains the shared connector () and two lab sensor loads ( and ).

Kirchhoff's Voltage Law (KVL) mesh equations (clockwise currents ):
Mesh 1 (Left Loop):
Mesh 2 (Middle Loop):
Mesh 3 (Right Loop):
Matrix equation :
Solving via Gaussian elimination yields:
Current through the measuring resistor: (flowing left to right from Mesh 1 into Mesh 2).
Circuit behavior under operational variations:
Removal of the Resistor: Decouples Mesh 1 from Meshes 2 and 3. Current in Mesh 1 becomes . Loops 2 and 3 receive no energy, so .
Voltage Scaling: Increasing source voltage to scales current linearly: . Every increase raises the branch current by .
Experimental Verification: Measured branch currents on a breadboard match theoretical values: Loop 1 = , branch = , middle vertical resistor = , right vertical load = .
Eigenvalues and Eigenvectors: Theory and Computation
Theoretical definition:
Let be a square matrix of order . If there exists a non-zero column vector () and a scalar such that: then is an eigenvalue (latent root or characteristic root) of matrix , and is the corresponding eigenvector (characteristic vector).
Derivation of the characteristic equation:
Re-express with the identity matrix :
This represents a homogeneous linear system. Non-trivial solutions () exist if and only if the coefficient matrix is singular:
Characteristic equation shortcut for a matrix: where:
(sum of principal diagonal elements).
(sum of minors of principal diagonal elements).
is the determinant of matrix .
Problem 19: Matrix Eigenvalues and Eigenvectors:
Matrix: .
Characteristic equation:
Case 1 ():
Case 2 ():
Problem 20: Matrix Eigenvalues and Eigenvectors:
Matrix: .
Expanding the characteristic determinant yields:
Case 1 (): Apply cross-multiplication on equations 1 and 2:
Case 2 (): Cross-multiplication on equations 1 and 2:
Case 3 (): Cross-multiplication on equations 1 and 2:
Problem 21: Repeated Eigenvalue Evaluation:
Matrix: .
Characteristic polynomial components:
Characteristic equation:
Factoring: .
Problem 22: Repeated Roots with Multiple Independent Eigenvectors:
Matrix: .
Characteristic polynomial expansion:
Case 1 (): All three rows are scalar multiples of a single independent equation: . Choose two variables arbitrarily: set and , then : This yields two linearly independent eigenvectors for :
Case 2 (): Cross-multiplication on equations 1 and 2:
Problem 24: Matrix Eigenvalues and Eigenvectors:
Matrix: .
Expanding gives:
For : Solving gives .
For : Solving gives .
For : Solving gives .

Real-world engineering applications of spectral theory:
Mechanical & Civil Infrastructure: Structural vibration modes and resonance frequencies (). Eigenvalues represent squared natural frequencies (), and eigenvectors define structural deformation mode shapes.
Aerospace Engineering: Aeroelastic flutter analysis of airframes and aerodynamic lifting surfaces.
Solid Mechanics: Stress and strain tensors, where principal stresses correspond to tensor eigenvalues, and principal stress orientations correspond to eigenvectors.
Control Systems Engineering: System stability analyzed via state-space matrices (). System poles are the eigenvalues of ; asymptotic stability requires .
Electrical Power Grids: Interconnected transmission grid stability and rotor angle oscillation damping.
Quantum Computing: Quantum state vectors evolve under Hermitian Hamiltonian operators whose measurable energy levels correspond to real eigenvalues.
Matrix Diagonalization and Decomposition
Matrix decomposition factors a complex matrix into canonical components to simplify analysis and numerical computation.
Eigenvalue Decomposition (Spectral Decomposition): Applicable to diagonalizable square matrices ().
Singular Value Decomposition (SVD): Applicable to any general rectangular matrix ().
Procedure for Eigenvalue Decomposition:
Given an matrix , determine all eigenvalues by solving .
For each eigenvalue , compute its corresponding non-zero eigenvector via .
Construct the modal matrix by placing the eigenvectors as columns:
Form the diagonal matrix using the corresponding eigenvalues along its main diagonal:
If is non-singular (), then is diagonalizable:
Power evaluation via diagonalization:
Problem 25: Diagonalization:
Matrix: .
Characteristic equation:
Eigenvectors:
For :
For :
Modal matrix and its inverse :
Diagonal matrix :
Reconstruction check:
Problem 28: Non-Diagonalizable (Defective) Matrix:
Matrix: .
When the geometric multiplicity (number of linearly independent eigenvectors) corresponding to a repeated eigenvalue is strictly less than its algebraic multiplicity (multiplicity as a root of the characteristic equation), an invertible modal matrix cannot be constructed. The matrix cannot be diagonalized.
Problem 29: Orthogonal Diagonalization of a Real Symmetric Matrix:
Matrix: .
Real symmetric matrices () possess two fundamental properties:
All eigenvalues are real.
Eigenvectors corresponding to distinct eigenvalues are mutually orthogonal.
Characteristic equation: Factoring yields eigenvalues: , , .
Compute unnormalized eigenvectors:
For :
For :
For :
Orthogonality check:
Orthonormalization (normalizing to unit vectors):
Orthonormal modal matrix and diagonal matrix :
Because is orthogonal, , yielding the symmetric decomposition:
Applied Graph Analysis: Google PageRank Algorithm
Theoretical foundation:
PageRank, developed by Larry Page and Sergey Brin, models the World Wide Web as a directed graph where web pages are nodes and hyperlinks are directed edges.
Hyperlinks act as endorsements ("votes") of relative importance. A link originating from a highly authoritative page transfers greater weight than one originating from an obscure page.
Links are diluted by out-degree: if a page links to external targets, each outbound target receives an equal fraction () of its importance.
The Random Surfer Model:
A web user navigates by clicking hyperlinks with probability (the damping factor, typically ), or jumps to an arbitrary page at random with probability .
The continuous governing PageRank equation for page is: where is the total number of pages in the graph, is the set of all pages linking into page , and is the number of outbound links leaving page .

Transition Matrix formulation:
A transition matrix (or column-stochastic matrix) has entries representing probabilities of moving from column page to row page :
Every entry satisfies , and every column sums to :
By the Perron-Frobenius theorem, every column-stochastic transition matrix possesses a dominant eigenvalue equal to (), with all remaining eigenvalues satisfying .
The steady-state importance vector satisfies: The stationary PageRank vector is the normalized eigenvector of associated with .
Detailed Four-Page Web Graph Example:
Network topology with interconnected pages ():

Outbound link inventory:
Page 1: Links to Page 2, Page 3, and Page 4 ( outbound links). Each link receives weight .
Page 2: Links to Page 3 and Page 4 ( outbound links). Each link receives weight .
Page 3: Links to Page 1 ( outbound link). This link receives weight .
Page 4: Links to Page 1 and Page 3 ( outbound links). Each link receives weight .
Page-by-page importance formulas:
Formulating matrix equation : Column sum checks:
Column 1:
Column 2:
Column 3:
Column 4:
MATLAB Implementation: ```matlab % Transition matrix A A = [0 0 1 1/2; 1/3 0 0 0; 1/3 1/2 0 1/2; 1/3 1/2 0 0 ];
% Extract eigenvectors and eigenvalues [V, D] = eigs(A);
% Extract eigenvector corresponding to eigenvalue 1 u = V(:, 1);
% Normalize eigenvector such that sum(x) = 1 X = u / sum(u); ```
Normalized output vector:
Ranking and authority hierarchy:
Page 1: Score = () — Rank 1 (Highest authority).
Page 3: Score = () — Rank 2.
Page 4: Score = () — Rank 3.
Page 2: Score = () — Rank 4 (Lowest authority).
Page 1 is the most authoritative node because it receives endorsements from Page 3 (which routes its entire weight to Page 1) and Page 4, whereas Page 2 receives links only from Page 1 and has no other incoming endorsements.