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:     v=[2−13]\mathbf{v} = \begin{bmatrix} 2 \\ -1 \\ 3 \end{bmatrix}

    • Matrices: Rectangular arrays of numerical elements or algebraic expressions organized along horizontal rows and vertical columns. A general 3×33 \times 3 matrix is written as:     A=[123456789]A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}

    • 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:     {2x+y−z=3x−2y+3z=1\begin{cases} 2x + y - z = 3 \\ x - 2y + 3z = 1 \end{cases}

    • Linear Combinations: The synthesis of a new vector through the scalar weighting and sequential addition of a set of existing vectors:     u=c1v1+c2v2+⋯+ckvk\mathbf{u} = c_1\mathbf{v}_1 + c_2\mathbf{v}_2 + \dots + c_k\mathbf{v}_k     For example, with scalars 33, −2-2, and 11: u=3v1−2v2+v3\mathbf{u} = 3\mathbf{v}_1 - 2\mathbf{v}_2 + \mathbf{v}_3.

    • Matrix Operations: Algebraic processes including entry-wise matrix addition, scalar multiplication, matrix multiplication (A×B=CA \times B = C), transposition (ATA^T), and matrix inversion (A−1A^{-1}, when AA is non-singular).

    • Linear Transformations: Vector mappings T:V→WT: V \rightarrow W between vector spaces preserving the operations of vector addition and scalar multiplication:     T(v+w)=T(v)+T(w)T(\mathbf{v} + \mathbf{w}) = T(\mathbf{v}) + T(\mathbf{w})     T(cv)=cT(v)T(c\mathbf{v}) = cT(\mathbf{v})

  • 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:

    1. Start with Vectors.

    2. Organize vectors into structured Matrices.

    3. Solve systems of Linear Equations.

    4. Execute foundational Matrix Operations.

    5. Discover Eigenvalues & Eigenvectors.

    6. Apply geometric Linear Transformations.

    7. Solve complex Real-World Problems.

Linear Algebra Key Concepts and Journey
  • 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 ([T][v]→[T][vsky][T][\mathbf{v}] \rightarrow [T][\mathbf{v}_{\text{sky}}]).

    • Machine Learning & Artificial Intelligence: Underpins high-dimensional feature representation, weight optimization in deep neural networks, and covariance matrix manipulations ([X]T[X][X]^T[X], [W][x][W][\mathbf{x}]).

    • Electrical Engineering: Determines node voltages and branch loop currents in complex networks via matrix formulations of Ohm's Law and Kirchhoff's Laws ([A][I]=[V][A][I] = [V]).

    • Structural Engineering: Analyzes equilibrium states, deflections, and load distributions across civil infrastructures, bridges, and airframes using stiffness matrices ([K]{d}={F}[K]\{\mathbf{d}\} = \{\mathbf{F}\}, governed locally by Hooke's Law F=kΔxF = k\Delta x).

    • Signal Processing: Formulates transforms, frequency filters, and data compression schemes across audio, imagery, and communications via Discrete Fourier Transforms ([W]→Filter[W] \rightarrow \text{Filter}).

    • Robotics & Automated Control: Models kinematic chains, joint coordinate frames, and multi-link robotic trajectories via sequential transformation matrices ([Te]=[A1][A2]…[An][T_e] = [A_1][A_2]\dots[A_n]).

    • 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.

Engineering and Computational Applications of Linear Algebra

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 (800 BC−500 BC800\text{ BC} - 500\text{ BC}): 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 (3rd−4th Century CE3^{\text{rd}} - 4^{\text{th}}\text{ Century CE}): 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 (5th−9th Century CE5^{\text{th}} - 9^{\text{th}}\text{ Century CE}):

    • Āryabhaṭa I (499 CE499\text{ CE}) formulated foundational algorithmic rules for linear indeterminate equations.

    • Mahāvīra (850 CE850\text{ CE}) developed elimination algorithms for nn-variable systems using array reduction principles analogous to Gaussian elimination.

    • Systematic Algebra & Indeterminate Systems (12th−14th Century CE12^{\text{th}} - 14^{\text{th}}\text{ Century CE}):

    • Bhāskara II (1150 CE1150\text{ CE}) advanced coefficient elimination methods by aligning unknown variables within column matrices.

    • Nārāyaṇa Paṇḍita (1356 CE1356\text{ CE}) investigated combinatorial matrix layouts, higher-order coefficient reductions, and the construction of magic squares.

History of Matrix Concepts in Ancient India
  • Broader historical timeline:

    • Ancient Chinese Tabular Methods (300 BC−200 CE300\text{ BC} - 200\text{ CE}): 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 (1646−17161646 - 1716): Introduced systematic two-dimensional indexing schemes in the late 17th17^{\text{th}} century to record coefficients of linear systems, pioneering determinant theory.

    • Carl Friedrich Gauss (1777−18551777 - 1855): 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 (1814−18971814 - 1897): Coined the term "matrix" in 18501850 (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 (1821−18951821 - 1895): Published the definitive Memoir on the Theory of Matrices (18581858), establishing matrices as an independent abstract mathematical discipline by defining matrix addition, scalar multiplication, matrix multiplication, inverses, and the Cayley-Hamilton theorem.

Chronological Evolution of Matrix Theory

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:

    1. Interchange of any two rows: Denoted Ri↔RjR_i \leftrightarrow R_j.

    2. Multiplication of any row by a non-zero scalar: Denoted Ri→kRiR_i \rightarrow kR_i or kRikR_i where k≠0k \neq 0.

    3. Addition of a scalar multiple of one row to another row: Denoted Rj→Rj+kRiR_j \rightarrow R_j + kR_i.

  • Corresponding column operations (Ci↔CjC_i \leftrightarrow C_j, Ci→kCiC_i \rightarrow kC_i, Cj→Cj+kCiC_j \rightarrow C_j + kC_i) are termed elementary column transformations.

  • Demonstration of elementary row operations on a general 3×33 \times 3 matrix:   A=[a1a2a3b1b2b3c1c2c3]A = \begin{bmatrix} a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \\ c_1 & c_2 & c_3 \end{bmatrix}

    • Row Interchange (R1↔R2R_1 \leftrightarrow R_2):     A∼[b1b2b3a1a2a3c1c2c3]A \sim \begin{bmatrix} b_1 & b_2 & b_3 \\ a_1 & a_2 & a_3 \\ c_1 & c_2 & c_3 \end{bmatrix}

    • Scalar Multiplication (R3→kR3R_3 \rightarrow kR_3):     A∼[a1a2a3b1b2b3kc1kc2kc3]A \sim \begin{bmatrix} a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \\ kc_1 & kc_2 & kc_3 \end{bmatrix}

    • Row Addition of a Multiple (R2→R2+kR1R_2 \rightarrow R_2 + kR_1):     A∼[a1a2a3ka1+b1ka2+b2ka3+b3c1c2c3]A \sim \begin{bmatrix} a_1 & a_2 & a_3 \\ ka_1 + b_1 & ka_2 + b_2 & ka_3 + b_3 \\ c_1 & c_2 & c_3 \end{bmatrix}

  • Invariance properties under elementary transformations:

    • Elementary row and column transformations do not alter the order (dimensions m×nm \times n) 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 AA is in row echelon form if it satisfies two conditions:

    1. All zero rows (rows whose entries are entirely zero) are positioned below every non-zero row.

    2. The leading entry (the first non-zero entry from the left) in each non-zero row is 11, and all entries directly beneath this leading entry in the same column are zero.

    • Canonical examples:     A=[123400120001],B=[123401120000]A = \begin{bmatrix} 1 & 2 & 3 & 4 \\ 0 & 0 & 1 & 2 \\ 0 & 0 & 0 & 1 \end{bmatrix}, \quad B = \begin{bmatrix} 1 & 2 & 3 & 4 \\ 0 & 1 & 1 & 2 \\ 0 & 0 & 0 & 0 \end{bmatrix}

  • Algorithmic rules for echelon reduction:

    • Prefer a leading non-zero entry (ideally 11) at position (1,1)(1,1). If the leading entry is zero, perform an interchange (R1↔RiR_1 \leftrightarrow R_i) 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 Rj→Rj−cRiR_j \rightarrow R_j - cR_i.

    • 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 AA, denoted by ρ(A)\rho(A), is the total number of non-zero rows present in its row echelon form.

  • Fundamental properties of rank:

    • Rank Equivalence: For any matrix AA, Rank(A)=Row Rank=Column Rank\text{Rank}(A) = \text{Row Rank} = \text{Column Rank}, 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 A∈Rm×nA \in \mathbb{R}^{m \times n}:     0≤ρ(A)≤min⁡(m,n)0 \le \rho(A) \le \min(m, n)

    • Null Matrix: ρ(A)=0\rho(A) = 0 if and only if AA is the zero matrix (A=0A = 0).

    • Transpose Invariance: The rank of a matrix equals the rank of its transpose:     ρ(A)=ρ(AT)\rho(A) = \rho(A^T)

    • Linear Independence: If ρ(A)=r\rho(A) = r for an m×nm \times n matrix, exactly rr rows (and rr columns) of AA are linearly independent.

Dimensionality and Practical Utility of Matrix Rank
  • Engineering and computational utility of rank:

    • Linear Systems Analysis: Determines whether a system of linear equations Ax=bA\mathbf{x} = \mathbf{b} 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 A=[1236]A = \begin{bmatrix} 1 & 2 \\ 3 & 6 \end{bmatrix}.

    • Perform row operation R2→R2−3R1R_2 \rightarrow R_2 - 3R_1:     A∼[123−3(1)6−3(2)]=[1200]A \sim \begin{bmatrix} 1 & 2 \\ 3 - 3(1) & 6 - 3(2) \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ 0 & 0 \end{bmatrix}

    • The row echelon form contains 11 non-zero row.

    • Therefore, ρ(A)=1\rho(A) = 1.

  • Problem 1 (b): Determine the rank of A=[02342354481312]A = \begin{bmatrix} 0 & 2 & 3 & 4 \\ 2 & 3 & 5 & 4 \\ 4 & 8 & 13 & 12 \end{bmatrix}.

    • Step 1: Interchange row 1 and row 2 (R1↔R2R_1 \leftrightarrow R_2) to place a non-zero entry at the top-left pivot:     A∼[23540234481312]A \sim \begin{bmatrix} 2 & 3 & 5 & 4 \\ 0 & 2 & 3 & 4 \\ 4 & 8 & 13 & 12 \end{bmatrix}

    • Step 2: Eliminate the first entry of row 3 via R3→R3−2R1R_3 \rightarrow R_3 - 2R_1:     R3=[4−2(2)8−2(3)13−2(5)12−2(4)]=[0234]R_3 = \begin{bmatrix} 4 - 2(2) & 8 - 2(3) & 13 - 2(5) & 12 - 2(4) \end{bmatrix} = \begin{bmatrix} 0 & 2 & 3 & 4 \end{bmatrix}     A∼[235402340234]A \sim \begin{bmatrix} 2 & 3 & 5 & 4 \\ 0 & 2 & 3 & 4 \\ 0 & 2 & 3 & 4 \end{bmatrix}

    • Step 3: Eliminate row 3 using row 2 via R3→R3−R2R_3 \rightarrow R_3 - R_2:     A∼[235402340000]A \sim \begin{bmatrix} 2 & 3 & 5 & 4 \\ 0 & 2 & 3 & 4 \\ 0 & 0 & 0 & 0 \end{bmatrix}

    • Step 4: Normalize pivot elements to 11 via R1→12R1R_1 \rightarrow \frac{1}{2}R_1 and R2→12R2R_2 \rightarrow \frac{1}{2}R_2:     A∼[13/25/22013/220000]A \sim \begin{bmatrix} 1 & 3/2 & 5/2 & 2 \\ 0 & 1 & 3/2 & 2 \\ 0 & 0 & 0 & 0 \end{bmatrix}

    • The number of non-zero rows is 22.

    • Therefore, ρ(A)=2\rho(A) = 2.

  • Problem 2: Determine the rank of A=[13−22−141−1114]A = \begin{bmatrix} 1 & 3 & -2 \\ 2 & -1 & 4 \\ 1 & -11 & 14 \end{bmatrix}.

    • Step 1: Eliminate the first column entries in rows 2 and 3 via R2→R2−2R1R_2 \rightarrow R_2 - 2R_1 and R3→R3−R1R_3 \rightarrow R_3 - R_1:     R2=[2−2(1)−1−2(3)4−2(−2)]=[0−78]R_2 = \begin{bmatrix} 2 - 2(1) & -1 - 2(3) & 4 - 2(-2) \end{bmatrix} = \begin{bmatrix} 0 & -7 & 8 \end{bmatrix}     R3=[1−1−11−314−(−2)]=[0−1416]R_3 = \begin{bmatrix} 1 - 1 & -11 - 3 & 14 - (-2) \end{bmatrix} = \begin{bmatrix} 0 & -14 & 16 \end{bmatrix}     A∼[13−20−780−1416]A \sim \begin{bmatrix} 1 & 3 & -2 \\ 0 & -7 & 8 \\ 0 & -14 & 16 \end{bmatrix}

    • Step 2: Eliminate row 3 via R3→R3−2R2R_3 \rightarrow R_3 - 2R_2:     R3=[0−0−14−2(−7)16−2(8)]=[000]R_3 = \begin{bmatrix} 0 - 0 & -14 - 2(-7) & 16 - 2(8) \end{bmatrix} = \begin{bmatrix} 0 & 0 & 0 \end{bmatrix}     A∼[13−20−78000]A \sim \begin{bmatrix} 1 & 3 & -2 \\ 0 & -7 & 8 \\ 0 & 0 & 0 \end{bmatrix}

    • The matrix has 22 non-zero rows.

    • Therefore, ρ(A)=2\rho(A) = 2.

  • Problem 3: Determine the rank of A=[1234234534564567]A = \begin{bmatrix} 1 & 2 & 3 & 4 \\ 2 & 3 & 4 & 5 \\ 3 & 4 & 5 & 6 \\ 4 & 5 & 6 & 7 \end{bmatrix}.

    • Step 1: Clear the first column beneath the leading pivot via R2→R2−2R1R_2 \rightarrow R_2 - 2R_1, R3→R3−3R1R_3 \rightarrow R_3 - 3R_1, and R4→R4−4R1R_4 \rightarrow R_4 - 4R_1:     R2=[0−1−2−3]R_2 = \begin{bmatrix} 0 & -1 & -2 & -3 \end{bmatrix}     R3=[0−2−4−6]R_3 = \begin{bmatrix} 0 & -2 & -4 & -6 \end{bmatrix}     R4=[0−3−6−9]R_4 = \begin{bmatrix} 0 & -3 & -6 & -9 \end{bmatrix}     A∼[12340−1−2−30−2−4−60−3−6−9]A \sim \begin{bmatrix} 1 & 2 & 3 & 4 \\ 0 & -1 & -2 & -3 \\ 0 & -2 & -4 & -6 \\ 0 & -3 & -6 & -9 \end{bmatrix}

    • Step 2: Multiply R2R_2 by −1-1 (R2→−R2R_2 \rightarrow -R_2), then perform R3→R3+2R2R_3 \rightarrow R_3 + 2R_2 and R4→R4+3R2R_4 \rightarrow R_4 + 3R_2:     A∼[1234012300000000]A \sim \begin{bmatrix} 1 & 2 & 3 & 4 \\ 0 & 1 & 2 & 3 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{bmatrix}

    • The reduced matrix displays exactly 22 non-zero rows.

    • Therefore, ρ(A)=2\rho(A) = 2.

  • Problem 4: Determine the rank of A=[0100000045123425]A = \begin{bmatrix} 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 \\ 4 & 5 & 1 & 2 \\ 3 & 4 & 2 & 5 \end{bmatrix}.

    • Step 1: Interchange row 1 and row 4 (R1↔R4R_1 \leftrightarrow R_4):     A∼[3425000045120100]A \sim \begin{bmatrix} 3 & 4 & 2 & 5 \\ 0 & 0 & 0 & 0 \\ 4 & 5 & 1 & 2 \\ 0 & 1 & 0 & 0 \end{bmatrix}

    • Step 2: Eliminate the leading element in row 3 via R3→3R3−4R1R_3 \rightarrow 3R_3 - 4R_1:     3R3−4R1=3[4512]−4[3425]=[0−1−5−14]3R_3 - 4R_1 = 3\begin{bmatrix} 4 & 5 & 1 & 2 \end{bmatrix} - 4\begin{bmatrix} 3 & 4 & 2 & 5 \end{bmatrix} = \begin{bmatrix} 0 & -1 & -5 & -14 \end{bmatrix}     A∼[342500000−1−5−140100]A \sim \begin{bmatrix} 3 & 4 & 2 & 5 \\ 0 & 0 & 0 & 0 \\ 0 & -1 & -5 & -14 \\ 0 & 1 & 0 & 0 \end{bmatrix}

    • Step 3: Interchange row 2 with row 4 (R2↔R4R_2 \leftrightarrow R_4) to bring non-zero rows up:     A∼[342501000−1−5−140000]A \sim \begin{bmatrix} 3 & 4 & 2 & 5 \\ 0 & 1 & 0 & 0 \\ 0 & -1 & -5 & -14 \\ 0 & 0 & 0 & 0 \end{bmatrix}

    • Step 4: Eliminate the second element of row 3 via R3→R3+R2R_3 \rightarrow R_3 + R_2:     R3=[00−5−14]R_3 = \begin{bmatrix} 0 & 0 & -5 & -14 \end{bmatrix}     A∼[3425010000−5−140000]A \sim \begin{bmatrix} 3 & 4 & 2 & 5 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & -5 & -14 \\ 0 & 0 & 0 & 0 \end{bmatrix}

    • The number of non-zero rows is 33.

    • Therefore, ρ(A)=3\rho(A) = 3.

  • Problem 5: Determine the rank of A=[−2−1−3−1123110110111]A = \begin{bmatrix} -2 & -1 & -3 & -1 \\ 1 & 2 & 3 & 1 \\ 1 & 0 & 1 & 1 \\ 0 & 1 & 1 & 1 \end{bmatrix}.

    • Step 1: Interchange row 1 and row 2 (R1↔R2R_1 \leftrightarrow R_2):     A∼[1231−2−1−3−110110111]A \sim \begin{bmatrix} 1 & 2 & 3 & 1 \\ -2 & -1 & -3 & -1 \\ 1 & 0 & 1 & 1 \\ 0 & 1 & 1 & 1 \end{bmatrix}

    • Step 2: Eliminate entries in column 1 via R2→R2+2R1R_2 \rightarrow R_2 + 2R_1 and R3→R3−R1R_3 \rightarrow R_3 - R_1:     R2=[0331]R_2 = \begin{bmatrix} 0 & 3 & 3 & 1 \end{bmatrix}     R3=[0−2−20]R_3 = \begin{bmatrix} 0 & -2 & -2 & 0 \end{bmatrix}     A∼[123103310−2−200111]A \sim \begin{bmatrix} 1 & 2 & 3 & 1 \\ 0 & 3 & 3 & 1 \\ 0 & -2 & -2 & 0 \\ 0 & 1 & 1 & 1 \end{bmatrix}

    • Step 3: Interchange row 2 and row 4 (R2↔R4R_2 \leftrightarrow R_4) for simpler pivot arithmetic:     A∼[123101110−2−200331]A \sim \begin{bmatrix} 1 & 2 & 3 & 1 \\ 0 & 1 & 1 & 1 \\ 0 & -2 & -2 & 0 \\ 0 & 3 & 3 & 1 \end{bmatrix}

    • Step 4: Eliminate column 2 entries via R3→R3+2R2R_3 \rightarrow R_3 + 2R_2 and R4→R4−3R2R_4 \rightarrow R_4 - 3R_2:     R3=[0002]R_3 = \begin{bmatrix} 0 & 0 & 0 & 2 \end{bmatrix}     R4=[000−2]R_4 = \begin{bmatrix} 0 & 0 & 0 & -2 \end{bmatrix}     A∼[123101110002000−2]A \sim \begin{bmatrix} 1 & 2 & 3 & 1 \\ 0 & 1 & 1 & 1 \\ 0 & 0 & 0 & 2 \\ 0 & 0 & 0 & -2 \end{bmatrix}

    • Step 5: Eliminate row 4 via R4→R4+R3R_4 \rightarrow R_4 + R_3 and normalize row 3 via R3→12R3R_3 \rightarrow \frac{1}{2}R_3:     A∼[1231011100010000]A \sim \begin{bmatrix} 1 & 2 & 3 & 1 \\ 0 & 1 & 1 & 1 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 0 \end{bmatrix}

    • The number of non-zero rows is 33.

    • Therefore, ρ(A)=3\rho(A) = 3.

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 PP is:     P=[510152010203040512182505710]P = \begin{bmatrix} 5 & 10 & 15 & 20 \\ 10 & 20 & 30 & 40 \\ 5 & 12 & 18 & 25 \\ 0 & 5 & 7 & 10 \end{bmatrix}

    • Mathematical reduction of matrix PP:

    • Apply R2→R2−2R1R_2 \rightarrow R_2 - 2R_1:       P∼[51015200000512182505710]P \sim \begin{bmatrix} 5 & 10 & 15 & 20 \\ 0 & 0 & 0 & 0 \\ 5 & 12 & 18 & 25 \\ 0 & 5 & 7 & 10 \end{bmatrix}

    • Apply R3→R3−R1R_3 \rightarrow R_3 - R_1:       P∼[51015200000023505710]P \sim \begin{bmatrix} 5 & 10 & 15 & 20 \\ 0 & 0 & 0 & 0 \\ 0 & 2 & 3 & 5 \\ 0 & 5 & 7 & 10 \end{bmatrix}

    • Eliminate row 4 via R4→2R4−5R3R_4 \rightarrow 2R_4 - 5R_3:       2R4−5R3=2[05710]−5[0235]=[00−1−5]2R_4 - 5R_3 = 2\begin{bmatrix} 0 & 5 & 7 & 10 \end{bmatrix} - 5\begin{bmatrix} 0 & 2 & 3 & 5 \end{bmatrix} = \begin{bmatrix} 0 & 0 & -1 & -5 \end{bmatrix}       P∼[51015200000023500−1−5]P \sim \begin{bmatrix} 5 & 10 & 15 & 20 \\ 0 & 0 & 0 & 0 \\ 0 & 2 & 3 & 5 \\ 0 & 0 & -1 & -5 \end{bmatrix}

    • Rearranging non-zero rows yields 33 non-zero rows, so ρ(P)=3\rho(P) = 3.

    • 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 ρ(P)=3\rho(P) = 3, only 33 out of 44 routers contribute uniquely and independently to packet loss variation across the servers.

    • Redundancy/Correlation: Because ρ(P)<4\rho(P) < 4, 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 33 independent, critical routers. The redundant router can serve as a secondary backup, optimizing operational budgets while preserving network reliability.

Packet Loss Analysis in Data Center Routers
  • 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 AA collected over 33 minutes:     A=[213426314]A = \begin{bmatrix} 2 & 1 & 3 \\ 4 & 2 & 6 \\ 3 & 1 & 4 \end{bmatrix}     where Column 1 = Cars (A), Column 2 = Buses (B), Column 3 = Total Vehicles (C).

    • Analytical reduction:

    • The underlying relationship across columns is:       Column 3=Column 1+Column 2\text{Column 3} = \text{Column 1} + \text{Column 2}       (Sensor C=Sensor A+Sensor B)(\text{Sensor C} = \text{Sensor A} + \text{Sensor B})

    • Applying elementary row reduction transforms AA to:       A∼[11/23/2011000]A \sim \begin{bmatrix} 1 & 1/2 & 3/2 \\ 0 & 1 & 1 \\ 0 & 0 & 0 \end{bmatrix}

    • The row echelon form yields ρ(A)=2\rho(A) = 2.

    • Architectural conclusions:

    • Independent Features: There are exactly 22 independent features in the dataset.

    • Sensor Removal: Sensor C provides entirely redundant information because its values can be reconstructed at any instant via Sensor A+Sensor B\text{Sensor A} + \text{Sensor B}. Sensor C can be removed.

    • Optimization Utility: Rank analysis identifies feature dependency (ρ(A)=2<3\rho(A) = 2 < 3 columns), enabling engineers to eliminate redundant sensing hardware, streamline data storage, and lower bandwidth costs without information loss.

Redundant Feature Detection in Traffic Monitoring

Systems of Linear Equations and Consistency Analysis

  • Formulation of an m×nm \times n linear system:   {a11x1+a12x2+⋯+a1nxn=b1a21x1+a22x2+⋯+a2nxn=b2⋮am1x1+am2x2+⋯+amnxn=bm\begin{cases} a_{11}x_1 + a_{12}x_2 + \dots + a_{1n}x_n = b_1 \\ a_{21}x_1 + a_{22}x_2 + \dots + a_{2n}x_n = b_2 \\ \quad \vdots \\ a_{m1}x_1 + a_{m2}x_2 + \dots + a_{mn}x_n = b_m \end{cases}

  • Matrix representation:   AX=BAX = B   where:   A=[a11a12…a1na21a22…a2n⋮⋮⋱⋮am1am2…amn],X=[x1x2⋮xn],B=[b1b2⋮bm]A = \begin{bmatrix} a_{11} & a_{12} & \dots & a_{1n} \\ a_{21} & a_{22} & \dots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \dots & a_{mn} \end{bmatrix}, \quad X = \begin{bmatrix} x_1 \\ x_2 \\ \vdots \\ x_n \end{bmatrix}, \quad B = \begin{bmatrix} b_1 \\ b_2 \\ \vdots \\ b_m \end{bmatrix}

    • AA is the coefficient matrix (m×nm \times n).

    • XX is the column vector of unknowns (n×1n \times 1).

    • BB is the column vector of constants (m×1m \times 1).

    • The augmented matrix is denoted by [A:B][A : B]:     [A:B]=[a11a12…a1n:b1a21a22…a2n:b2⋮⋮⋱⋮:⋮am1am2…amn:bm][A : B] = \begin{bmatrix} a_{11} & a_{12} & \dots & a_{1n} & : & b_1 \\ a_{21} & a_{22} & \dots & a_{2n} & : & b_2 \\ \vdots & \vdots & \ddots & \vdots & : & \vdots \\ a_{m1} & a_{m2} & \dots & a_{mn} & : & b_m \end{bmatrix}

  • Homogeneous vs. Non-Homogeneous Systems:

    • If b1=b2=⋯=bm=0b_1 = b_2 = \dots = b_m = 0 (B=0B = \mathbf{0}), the system is homogeneous (AX=0AX = \mathbf{0}).

    • If at least one bi≠0b_i \neq 0, the system is non-homogeneous (AX=BAX = B).

  • For homogeneous systems, x1=x2=⋯=xn=0x_1 = x_2 = \dots = x_n = 0 is always a solution, termed the trivial solution.

  • A solution containing at least one non-zero component (xi≠0x_i \neq 0) 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:     ρ(A)=ρ([A:B])\rho(A) = \rho([A : B])

    • Let ρ(A)=ρ([A:B])=r\rho(A) = \rho([A : B]) = r, and let nn denote the total number of unknowns:

    1. Unique Solution: r=nr = n. The system is consistent and possesses a unique solution vector.

    2. Infinitely Many Solutions: r<nr < n. The system is consistent and possesses infinitely many solutions. Exactly n−rn - r variables can be assigned arbitrary parameter values.

    • Inconsistent (No Solution): If ρ(A)≠ρ([A:B])\rho(A) \neq \rho([A : B]), the system is inconsistent and admits no solution.

  • Systematic procedure for solving linear systems:

    1. Assemble the augmented matrix [A:B][A : B].

    2. Reduce [A:B][A : B] into row echelon form via elementary row operations.

    3. Read off ρ(A)\rho(A) and ρ([A:B])\rho([A : B]) to evaluate consistency.

    4. 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: 2x+y+z=52x + y + z = 5, x+y+z=4x + y + z = 4, x−y+2z=1x - y + 2z = 1.

    • Augmented matrix:     [A:B]=[211:5111:41−12:1][A : B] = \begin{bmatrix} 2 & 1 & 1 & : & 5 \\ 1 & 1 & 1 & : & 4 \\ 1 & -1 & 2 & : & 1 \end{bmatrix}

    • Apply R1↔R2R_1 \leftrightarrow R_2:     [A:B]∼[111:4211:51−12:1][A : B] \sim \begin{bmatrix} 1 & 1 & 1 & : & 4 \\ 2 & 1 & 1 & : & 5 \\ 1 & -1 & 2 & : & 1 \end{bmatrix}

    • Apply R2→R2−2R1R_2 \rightarrow R_2 - 2R_1 and R3→R3−R1R_3 \rightarrow R_3 - R_1:     [A:B]∼[111:40−1−1:−30−21:−3][A : B] \sim \begin{bmatrix} 1 & 1 & 1 & : & 4 \\ 0 & -1 & -1 & : & -3 \\ 0 & -2 & 1 & : & -3 \end{bmatrix}

    • Apply R3→R3−2R2R_3 \rightarrow R_3 - 2R_2:     [A:B]∼[111:40−1−1:−3003:3][A : B] \sim \begin{bmatrix} 1 & 1 & 1 & : & 4 \\ 0 & -1 & -1 & : & -3 \\ 0 & 0 & 3 & : & 3 \end{bmatrix}

    • Evaluation: ρ(A)=3\rho(A) = 3, ρ([A:B])=3\rho([A : B]) = 3, and n=3n = 3. Since ρ(A)=ρ([A:B])=3=n\rho(A) = \rho([A : B]) = 3 = n, the system has a unique solution.

    • Back substitution:

    • From equation 3: 3z=3  ⟹  z=13z = 3 \implies z = 1.

    • From equation 2: −y−(1)=−3  ⟹  y=2-y - (1) = -3 \implies y = 2.

    • From equation 1: x+2+1=4  ⟹  x=1x + 2 + 1 = 4 \implies x = 1.

    • Final solution: x=1x = 1, y=2y = 2, z=1z = 1.

  • Problem 7: Infinitely Many Solutions:

    • System: 4x−2y+6z=84x - 2y + 6z = 8, x+y−3z=−1x + y - 3z = -1, 15x−3y+9z=2115x - 3y + 9z = 21.

    • Augmented matrix:     [A:B]=[4−26:811−3:−115−39:21][A : B] = \begin{bmatrix} 4 & -2 & 6 & : & 8 \\ 1 & 1 & -3 & : & -1 \\ 15 & -3 & 9 & : & 21 \end{bmatrix}

    • Apply R1↔R2R_1 \leftrightarrow R_2:     [A:B]∼[11−3:−14−26:815−39:21][A : B] \sim \begin{bmatrix} 1 & 1 & -3 & : & -1 \\ 4 & -2 & 6 & : & 8 \\ 15 & -3 & 9 & : & 21 \end{bmatrix}

    • Apply R2→R2−4R1R_2 \rightarrow R_2 - 4R_1 and R3→R3−15R1R_3 \rightarrow R_3 - 15R_1:     [A:B]∼[11−3:−10−618:120−1854:36][A : B] \sim \begin{bmatrix} 1 & 1 & -3 & : & -1 \\ 0 & -6 & 18 & : & 12 \\ 0 & -18 & 54 & : & 36 \end{bmatrix}

    • Apply R3→R3−3R2R_3 \rightarrow R_3 - 3R_2:     [A:B]∼[11−3:−10−618:12000:0][A : B] \sim \begin{bmatrix} 1 & 1 & -3 & : & -1 \\ 0 & -6 & 18 & : & 12 \\ 0 & 0 & 0 & : & 0 \end{bmatrix}

    • Normalize row 2 via R2→−16R2R_2 \rightarrow -\frac{1}{6}R_2:     [A:B]∼[11−3:−101−3:−2000:0][A : B] \sim \begin{bmatrix} 1 & 1 & -3 & : & -1 \\ 0 & 1 & -3 & : & -2 \\ 0 & 0 & 0 & : & 0 \end{bmatrix}

    • Evaluation: ρ(A)=2\rho(A) = 2, ρ([A:B])=2\rho([A : B]) = 2, and n=3n = 3. Because r=2<3r = 2 < 3, the system has infinitely many solutions with n−r=3−2=1n - r = 3 - 2 = 1 arbitrary parameter.

    • Algebraic parameterization:

    • Set z=kz = k (arbitrary parameter).

    • From equation 2: y−3k=−2  ⟹  y=3k−2y - 3k = -2 \implies y = 3k - 2.

    • From equation 1: x+(3k−2)−3k=−1  ⟹  x−2=−1  ⟹  x=1x + (3k - 2) - 3k = -1 \implies x - 2 = -1 \implies x = 1.

    • Solution set: x=1x = 1, y=3k−2y = 3k - 2, z=kz = k.

  • Problem 10: Inconsistent System (No Solution):

    • System: 5x+3y+7z=55x + 3y + 7z = 5, 3x+26y+2z=93x + 26y + 2z = 9, 7x+2y+10z=57x + 2y + 10z = 5.

    • Augmented matrix:     [A:B]=[537:53262:97210:5][A : B] = \begin{bmatrix} 5 & 3 & 7 & : & 5 \\ 3 & 26 & 2 & : & 9 \\ 7 & 2 & 10 & : & 5 \end{bmatrix}

    • Apply R2→5R2−3R1R_2 \rightarrow 5R_2 - 3R_1 and R3→5R3−7R1R_3 \rightarrow 5R_3 - 7R_1:     5R2−3R1=[0130−910−21:45−15]=[0121−11:30]5R_2 - 3R_1 = \begin{bmatrix} 0 & 130 - 9 & 10 - 21 & : & 45 - 15 \end{bmatrix} = \begin{bmatrix} 0 & 121 & -11 & : & 30 \end{bmatrix}     5R3−7R1=[010−2150−49:25−35]=[0−111:−10]5R_3 - 7R_1 = \begin{bmatrix} 0 & 10 - 21 & 50 - 49 & : & 25 - 35 \end{bmatrix} = \begin{bmatrix} 0 & -11 & 1 & : & -10 \end{bmatrix}     [A:B]∼[537:50121−11:300−111:−10][A : B] \sim \begin{bmatrix} 5 & 3 & 7 & : & 5 \\ 0 & 121 & -11 & : & 30 \\ 0 & -11 & 1 & : & -10 \end{bmatrix}

    • Apply R3→R2+11R3R_3 \rightarrow R_2 + 11R_3:     R2+11R3=[0121−121−11+11:30+11(−10)]=[000:−80]R_2 + 11R_3 = \begin{bmatrix} 0 & 121 - 121 & -11 + 11 & : & 30 + 11(-10) \end{bmatrix} = \begin{bmatrix} 0 & 0 & 0 & : & -80 \end{bmatrix}     [A:B]∼[537:50121−11:30000:−80][A : B] \sim \begin{bmatrix} 5 & 3 & 7 & : & 5 \\ 0 & 121 & -11 & : & 30 \\ 0 & 0 & 0 & : & -80 \end{bmatrix}

    • Evaluation: ρ(A)=2\rho(A) = 2, but ρ([A:B])=3\rho([A : B]) = 3.

    • Because ρ(A)≠ρ([A:B])\rho(A) \neq \rho([A : B]), the system is inconsistent and admits no solution.

  • Problem 11: Parametric Investigation with λ\lambda and μ\mu:

    • System: x+y+z=6x + y + z = 6, x+2y+3z=10x + 2y + 3z = 10, x+2y+λz=μx + 2y + \lambda z = \mu.

    • Augmented matrix reduction:     [A:B]=[111:6123:1012λ:μ][A : B] = \begin{bmatrix} 1 & 1 & 1 & : & 6 \\ 1 & 2 & 3 & : & 10 \\ 1 & 2 & \lambda & : & \mu \end{bmatrix}

    • Apply R2→R2−R1R_2 \rightarrow R_2 - R_1 and R3→R3−R1R_3 \rightarrow R_3 - R_1:       [A:B]∼[111:6012:401λ−1:μ−6][A : B] \sim \begin{bmatrix} 1 & 1 & 1 & : & 6 \\ 0 & 1 & 2 & : & 4 \\ 0 & 1 & \lambda - 1 & : & \mu - 6 \end{bmatrix}

    • Apply R3→R3−R2R_3 \rightarrow R_3 - R_2:       [A:B]∼[111:6012:400λ−3:μ−10][A : B] \sim \begin{bmatrix} 1 & 1 & 1 & : & 6 \\ 0 & 1 & 2 & : & 4 \\ 0 & 0 & \lambda - 3 & : & \mu - 10 \end{bmatrix}

    • Comprehensive parameter analysis:

    • Unique Solution: Requires ρ(A)=ρ([A:B])=3\rho(A) = \rho([A : B]) = 3. This occurs when λ−3≠0  ⟹  λ≠3\lambda - 3 \neq 0 \implies \lambda \neq 3, for any real value of μ\mu.

  • No Solution (Inconsistent): Requires ρ(A)≠ρ([A:B])\rho(A) \neq \rho([A : B]). This occurs when λ−3=0\lambda - 3 = 0 and μ−10≠0  ⟹  λ=3\mu - 10 \neq 0 \implies \lambda = 3 and μ≠10\mu \neq 10, giving ρ(A)=2\rho(A) = 2 and ρ([A:B])=3\rho([A : B]) = 3.

    • Infinite Solutions: Requires ρ(A)=ρ([A:B])=2<3\rho(A) = \rho([A : B]) = 2 < 3. This occurs when λ−3=0\lambda - 3 = 0 and μ−10=0  ⟹  λ=3\mu - 10 = 0 \implies \lambda = 3 and μ=10\mu = 10.

  • Problem 12: Parametric Investigation with λ\lambda and μ\mu:

    • System: 2x+3y+5z=92x + 3y + 5z = 9, 7x+3y−2z=87x + 3y - 2z = 8, 2x+3y+λz=μ2x + 3y + \lambda z = \mu.

    • Augmented matrix reduction:     [A:B]=[235:973−2:823λ:μ][A : B] = \begin{bmatrix} 2 & 3 & 5 & : & 9 \\ 7 & 3 & -2 & : & 8 \\ 2 & 3 & \lambda & : & \mu \end{bmatrix}

    • Apply R2→2R2−7R1R_2 \rightarrow 2R_2 - 7R_1 and R3→R3−R1R_3 \rightarrow R_3 - R_1:       2R2−7R1=[14−146−21−4−35:16−63]=[0−15−39:−47]2R_2 - 7R_1 = \begin{bmatrix} 14 - 14 & 6 - 21 & -4 - 35 & : & 16 - 63 \end{bmatrix} = \begin{bmatrix} 0 & -15 & -39 & : & -47 \end{bmatrix}       R3−R1=[00λ−5:μ−9]R_3 - R_1 = \begin{bmatrix} 0 & 0 & \lambda - 5 & : & \mu - 9 \end{bmatrix}       [A:B]∼[235:90−15−39:−4700λ−5:μ−9][A : B] \sim \begin{bmatrix} 2 & 3 & 5 & : & 9 \\ 0 & -15 & -39 & : & -47 \\ 0 & 0 & \lambda - 5 & : & \mu - 9 \end{bmatrix}

    • Consistency cases:

    • Unique Solution: ρ(A)=ρ([A:B])=3\rho(A) = \rho([A : B]) = 3, requiring λ−5≠0  ⟹  λ≠5\lambda - 5 \neq 0 \implies \lambda \neq 5 for any value of μ\mu.

  • No Solution: ρ(A)≠ρ([A:B])\rho(A) \neq \rho([A : B]), requiring λ=5\lambda = 5 (so ρ(A)=2\rho(A) = 2) and μ≠9\mu \neq 9 (so ρ([A:B])=3\rho([A : B]) = 3).

    • Infinite Solutions: ρ(A)=ρ([A:B])=2<3\rho(A) = \rho([A : B]) = 2 < 3, requiring λ=5\lambda = 5 and μ=9\mu = 9.

  • Problem 13: Homogeneous System Analysis:

    • System: 2x−y+3z=02x - y + 3z = 0, 3x+2y+z=03x + 2y + z = 0, x−4y+5z=0x - 4y + 5z = 0.

    • Augmented matrix reduction:     [A:0]=[2−13:0321:01−45:0][A : 0] = \begin{bmatrix} 2 & -1 & 3 & : & 0 \\ 3 & 2 & 1 & : & 0 \\ 1 & -4 & 5 & : & 0 \end{bmatrix}

    • Apply R1↔R3R_1 \leftrightarrow R_3:       [A:0]∼[1−45:0321:02−13:0][A : 0] \sim \begin{bmatrix} 1 & -4 & 5 & : & 0 \\ 3 & 2 & 1 & : & 0 \\ 2 & -1 & 3 & : & 0 \end{bmatrix}

    • Apply R2→R2−3R1R_2 \rightarrow R_2 - 3R_1 and R3→R3−2R1R_3 \rightarrow R_3 - 2R_1:       R2=[02−3(−4)1−3(5):0]=[014−14:0]R_2 = \begin{bmatrix} 0 & 2 - 3(-4) & 1 - 3(5) & : & 0 \end{bmatrix} = \begin{bmatrix} 0 & 14 & -14 & : & 0 \end{bmatrix}       R3=[0−1−2(−4)3−2(5):0]=[07−7:0]R_3 = \begin{bmatrix} 0 & -1 - 2(-4) & 3 - 2(5) & : & 0 \end{bmatrix} = \begin{bmatrix} 0 & 7 & -7 & : & 0 \end{bmatrix}       [A:0]∼[1−45:0014−14:007−7:0][A : 0] \sim \begin{bmatrix} 1 & -4 & 5 & : & 0 \\ 0 & 14 & -14 & : & 0 \\ 0 & 7 & -7 & : & 0 \end{bmatrix}

    • Apply R3→2R3−R2R_3 \rightarrow 2R_3 - R_2:       [A:0]∼[1−45:0014−14:0000:0][A : 0] \sim \begin{bmatrix} 1 & -4 & 5 & : & 0 \\ 0 & 14 & -14 & : & 0 \\ 0 & 0 & 0 & : & 0 \end{bmatrix}

    • Rank analysis: ρ(A)=2<n=3\rho(A) = 2 < n = 3. Because the rank is strictly less than the number of unknowns, non-trivial solutions exist.

    • Back substitution:

    • From equation 2: 14y−14z=0  ⟹  y=z14y - 14z = 0 \implies y = z.

    • Let z=kz = k (arbitrary constant), then y=ky = k.

    • From equation 1: x−4k+5k=0  ⟹  x+k=0  ⟹  x=−kx - 4k + 5k = 0 \implies x + k = 0 \implies x = -k.

    • Complete solution: x=−kx = -k, y=ky = k, z=kz = k.

  • Problem 14: Homogeneous System with Trivial Solution:

    • System: x+2y+3z=0x + 2y + 3z = 0, 3x+4y+4z=03x + 4y + 4z = 0, 7x+10y+12z=07x + 10y + 12z = 0.

    • Augmented matrix reduction:     [A:0]=[123:0344:071012:0][A : 0] = \begin{bmatrix} 1 & 2 & 3 & : & 0 \\ 3 & 4 & 4 & : & 0 \\ 7 & 10 & 12 & : & 0 \end{bmatrix}

    • Apply R2→R2−3R1R_2 \rightarrow R_2 - 3R_1 and R3→R3−7R1R_3 \rightarrow R_3 - 7R_1:       R2=[04−64−9:0]=[0−2−5:0]R_2 = \begin{bmatrix} 0 & 4 - 6 & 4 - 9 & : & 0 \end{bmatrix} = \begin{bmatrix} 0 & -2 & -5 & : & 0 \end{bmatrix}       R3=[010−1412−21:0]=[0−4−9:0]R_3 = \begin{bmatrix} 0 & 10 - 14 & 12 - 21 & : & 0 \end{bmatrix} = \begin{bmatrix} 0 & -4 & -9 & : & 0 \end{bmatrix}       [A:0]∼[123:00−2−5:00−4−9:0][A : 0] \sim \begin{bmatrix} 1 & 2 & 3 & : & 0 \\ 0 & -2 & -5 & : & 0 \\ 0 & -4 & -9 & : & 0 \end{bmatrix}

    • Apply R3→R3−2R2R_3 \rightarrow R_3 - 2R_2:       R3=[0−4−2(−2)−9−2(−5):0]=[001:0]R_3 = \begin{bmatrix} 0 & -4 - 2(-2) & -9 - 2(-5) & : & 0 \end{bmatrix} = \begin{bmatrix} 0 & 0 & 1 & : & 0 \end{bmatrix}       [A:0]∼[123:00−2−5:0001:0][A : 0] \sim \begin{bmatrix} 1 & 2 & 3 & : & 0 \\ 0 & -2 & -5 & : & 0 \\ 0 & 0 & 1 & : & 0 \end{bmatrix}

    • Back substitution:

    • Equation 3 yields z=0z = 0.

    • Equation 2 yields −2y−5(0)=0  ⟹  y=0-2y - 5(0) = 0 \implies y = 0.

    • Equation 1 yields x+2(0)+3(0)=0  ⟹  x=0x + 2(0) + 3(0) = 0 \implies x = 0.

    • The system admits only the trivial solution: x=0x = 0, y=0y = 0, z=0z = 0.

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 3×33 \times 3 system:   {a11x+a12y+a13z=b1a21x+a22y+a23z=b2a31x+a32y+a33z=b3\begin{cases} a_{11}x + a_{12}y + a_{13}z = b_1 \\ a_{21}x + a_{22}y + a_{23}z = b_2 \\ a_{31}x + a_{32}y + a_{33}z = b_3 \end{cases}

    • Form the augmented matrix [A:B][A : B]:     [A:B]=[a11a12a13:b1a21a22a23:b2a31a32a33:b3][A : B] = \begin{bmatrix} a_{11} & a_{12} & a_{13} & : & b_1 \\ a_{21} & a_{22} & a_{23} & : & b_2 \\ a_{31} & a_{32} & a_{33} & : & b_3 \end{bmatrix}

    • Step 1: Using pivot element a11≠0a_{11} \neq 0, eliminate a21a_{21} and a31a_{31} via row operations:     [A:B]∼[a11a12a13:b10a22′a23′:b2′0a32′a33′:b3′][A : B] \sim \begin{bmatrix} a_{11} & a_{12} & a_{13} & : & b_1 \\ 0 & a'_{22} & a'_{23} & : & b'_2 \\ 0 & a'_{32} & a'_{33} & : & b'_3 \end{bmatrix}

  • Step 2: Using pivot element a22′≠0a'_{22} \neq 0, eliminate a32′a'_{32} via row operations:     [A:B]∼[a11a12a13:b10a22′a23′:b2′00a33′′:b3′′][A : B] \sim \begin{bmatrix} a_{11} & a_{12} & a_{13} & : & b_1 \\ 0 & a'_{22} & a'_{23} & : & b'_2 \\ 0 & 0 & a''_{33} & : & b''_3 \end{bmatrix}

    • Step 3 (Back Substitution):     a33′′z=b3′′  ⟹  z=b3′′a33′′a''_{33}z = b''_3 \implies z = \frac{b''_3}{a''_{33}}     a22′y+a23′z=b2′  ⟹  y=b2′−a23′za22′a'_{22}y + a'_{23}z = b'_2 \implies y = \frac{b'_2 - a'_{23}z}{a'_{22}}     a11x+a12y+a13z=b1  ⟹  x=b1−a12y−a13za11a_{11}x + a_{12}y + a_{13}z = b_1 \implies x = \frac{b_1 - a_{12}y - a_{13}z}{a_{11}}

  • Problem 8: Detailed Gauss Elimination:

    • System: 5x1+x2+3x3=205x_1 + x_2 + 3x_3 = 20, 2x1+5x2+2x3=182x_1 + 5x_2 + 2x_3 = 18, 3x1+2x2+x3=143x_1 + 2x_2 + x_3 = 14.

    • Augmented matrix:     [A:B]=[513:20252:18321:14][A : B] = \begin{bmatrix} 5 & 1 & 3 & : & 20 \\ 2 & 5 & 2 & : & 18 \\ 3 & 2 & 1 & : & 14 \end{bmatrix}

    • Apply R2→5R2−2R1R_2 \rightarrow 5R_2 - 2R_1 and R3→5R3−3R1R_3 \rightarrow 5R_3 - 3R_1:     5R2−2R1=[025−210−6:90−40]=[0234:50]5R_2 - 2R_1 = \begin{bmatrix} 0 & 25 - 2 & 10 - 6 & : & 90 - 40 \end{bmatrix} = \begin{bmatrix} 0 & 23 & 4 & : & 50 \end{bmatrix}     5R3−3R1=[010−35−9:70−60]=[07−4:10]5R_3 - 3R_1 = \begin{bmatrix} 0 & 10 - 3 & 5 - 9 & : & 70 - 60 \end{bmatrix} = \begin{bmatrix} 0 & 7 & -4 & : & 10 \end{bmatrix}     [A:B]∼[513:200234:5007−4:10][A : B] \sim \begin{bmatrix} 5 & 1 & 3 & : & 20 \\ 0 & 23 & 4 & : & 50 \\ 0 & 7 & -4 & : & 10 \end{bmatrix}

    • Apply R3→23R3−7R2R_3 \rightarrow 23R_3 - 7R_2:     23R3−7R2=[0161−161−92−28:230−350]=[00−120:−120]23R_3 - 7R_2 = \begin{bmatrix} 0 & 161 - 161 & -92 - 28 & : & 230 - 350 \end{bmatrix} = \begin{bmatrix} 0 & 0 & -120 & : & -120 \end{bmatrix}     [A:B]∼[513:200234:5000−120:−120][A : B] \sim \begin{bmatrix} 5 & 1 & 3 & : & 20 \\ 0 & 23 & 4 & : & 50 \\ 0 & 0 & -120 & : & -120 \end{bmatrix}

    • Rank analysis: ρ(A)=3\rho(A) = 3, ρ([A:B])=3\rho([A : B]) = 3, and n=3n = 3. The system is consistent and admits a unique solution.

    • Back substitution:

    • −120x3=−120  ⟹  x3=1-120x_3 = -120 \implies x_3 = 1.

    • 23x2+4(1)=50  ⟹  23x2=46  ⟹  x2=223x_2 + 4(1) = 50 \implies 23x_2 = 46 \implies x_2 = 2.

    • 5x1+(2)+3(1)=20  ⟹  5x1+5=20  ⟹  5x1=15  ⟹  x1=35x_1 + (2) + 3(1) = 20 \implies 5x_1 + 5 = 20 \implies 5x_1 = 15 \implies x_1 = 3.

    • Final solution: x1=3x_1 = 3, x2=2x_2 = 2, x3=1x_3 = 1.

  • Problem 9: Overdetermined System via Gauss Elimination:

    • System: x+2y+2z=1x + 2y + 2z = 1, 2x+y+z=22x + y + z = 2, 3x+2y+2z=33x + 2y + 2z = 3, y+z=0y + z = 0.

    • Augmented matrix:     [A:B]=[122:1211:2322:3011:0][A : B] = \begin{bmatrix} 1 & 2 & 2 & : & 1 \\ 2 & 1 & 1 & : & 2 \\ 3 & 2 & 2 & : & 3 \\ 0 & 1 & 1 & : & 0 \end{bmatrix}

    • Apply R2→R2−2R1R_2 \rightarrow R_2 - 2R_1 and R3→R3−3R1R_3 \rightarrow R_3 - 3R_1:     [A:B]∼[122:10−3−3:00−4−4:0011:0][A : B] \sim \begin{bmatrix} 1 & 2 & 2 & : & 1 \\ 0 & -3 & -3 & : & 0 \\ 0 & -4 & -4 & : & 0 \\ 0 & 1 & 1 & : & 0 \end{bmatrix}

    • Apply R2↔R4R_2 \leftrightarrow R_4:     [A:B]∼[122:1011:00−4−4:00−3−3:0][A : B] \sim \begin{bmatrix} 1 & 2 & 2 & : & 1 \\ 0 & 1 & 1 & : & 0 \\ 0 & -4 & -4 & : & 0 \\ 0 & -3 & -3 & : & 0 \end{bmatrix}

    • Apply R3→R3+4R2R_3 \rightarrow R_3 + 4R_2 and R4→R4+3R2R_4 \rightarrow R_4 + 3R_2:     [A:B]∼[122:1011:0000:0000:0][A : B] \sim \begin{bmatrix} 1 & 2 & 2 & : & 1 \\ 0 & 1 & 1 & : & 0 \\ 0 & 0 & 0 & : & 0 \\ 0 & 0 & 0 & : & 0 \end{bmatrix}

    • Rank analysis: ρ(A)=2\rho(A) = 2, ρ([A:B])=2\rho([A : B]) = 2, and n=3n = 3. The system is consistent with n−r=3−2=1n - r = 3 - 2 = 1 arbitrary parameter.

    • Parameterization:

    • Set z=kz = k.

    • From row 2: y+k=0  ⟹  y=−ky + k = 0 \implies y = -k.

    • From row 1: x+2(−k)+2k=1  ⟹  x=1x + 2(-k) + 2k = 1 \implies x = 1.

    • Final solution: x=1x = 1, y=−ky = -k, z=kz = k.

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:     ∣aii∣>∑j≠i∣aij∣|a_{ii}| > \sum_{j \neq i} |a_{ij}|

    • For a 3×33 \times 3 system:     ∣a11∣≥∣a12∣+∣a13∣|a_{11}| \ge |a_{12}| + |a_{13}|     ∣a22∣≥∣a21∣+∣a23∣|a_{22}| \ge |a_{21}| + |a_{23}|     ∣a33∣≥∣a31∣+∣a32∣|a_{33}| \ge |a_{31}| + |a_{32}|

  • General iterative update algorithm:

    • Rearrange the system to isolate each diagonal variable:     x=1a11(b1−a12y−a13z)x = \frac{1}{a_{11}}(b_1 - a_{12}y - a_{13}z)     y=1a22(b2−a21x−a23z)y = \frac{1}{a_{22}}(b_2 - a_{21}x - a_{23}z)     z=1a33(b3−a31x−a32y)z = \frac{1}{a_{33}}(b_3 - a_{31}x - a_{32}y)

    • Select an initial approximation vector, typically (x(0),y(0),z(0))=(0,0,0)(x^{(0)}, y^{(0)}, z^{(0)}) = (0, 0, 0).

    • Compute successive iterations k=1,2,3,…k = 1, 2, 3, \dots using the latest computed values:     x(k)=1a11(b1−a12y(k−1)−a13z(k−1))x^{(k)} = \frac{1}{a_{11}}\left(b_1 - a_{12}y^{(k-1)} - a_{13}z^{(k-1)}\right)     y(k)=1a22(b2−a21x(k)−a23z(k−1))y^{(k)} = \frac{1}{a_{22}}\left(b_2 - a_{21}x^{(k)} - a_{23}z^{(k-1)}\right)     z(k)=1a33(b3−a31x(k)−a32y(k))z^{(k)} = \frac{1}{a_{33}}\left(b_3 - a_{31}x^{(k)} - a_{32}y^{(k)}\right)

  • Problem 15: Gauss-Seidel Iteration:

    • System: 10x+y+z=1210x + y + z = 12, x+10y+z=12x + 10y + z = 12, x+y+10z=12x + y + 10z = 12.

    • Diagonal dominance check: ∣10∣>∣1∣+∣1∣=2|10| > |1| + |1| = 2 across all rows.

    • Iterative formulas:     x=110(12−y−z)x = \frac{1}{10}(12 - y - z)     y=110(12−x−z)y = \frac{1}{10}(12 - x - z)     z=110(12−x−y)z = \frac{1}{10}(12 - x - y)

    • Start with trial approximation: x(0)=0x^{(0)} = 0, y(0)=0y^{(0)} = 0, z(0)=0z^{(0)} = 0.

    • Iteration 1:     x(1)=110(12−0−0)=1.2x^{(1)} = \frac{1}{10}(12 - 0 - 0) = 1.2     y(1)=110(12−1.2−0)=1.08y^{(1)} = \frac{1}{10}(12 - 1.2 - 0) = 1.08     z(1)=110(12−1.2−1.08)=0.972z^{(1)} = \frac{1}{10}(12 - 1.2 - 1.08) = 0.972

    • Iteration 2:     x(2)=110(12−1.08−0.972)=0.9948x^{(2)} = \frac{1}{10}(12 - 1.08 - 0.972) = 0.9948     y(2)=110(12−0.9948−0.972)=1.00332y^{(2)} = \frac{1}{10}(12 - 0.9948 - 0.972) = 1.00332     z(2)=110(12−0.9948−1.00332)=1.000188z^{(2)} = \frac{1}{10}(12 - 0.9948 - 1.00332) = 1.000188

    • Iteration 3:     x(3)=110(12−1.00332−1.000188)=0.99965≈1x^{(3)} = \frac{1}{10}(12 - 1.00332 - 1.000188) = 0.99965 \approx 1     y(3)=110(12−0.99965−1.000188)=1.00002≈1y^{(3)} = \frac{1}{10}(12 - 0.99965 - 1.000188) = 1.00002 \approx 1     z(3)=110(12−0.99965−1.00002)=1.00003≈1z^{(3)} = \frac{1}{10}(12 - 0.99965 - 1.00002) = 1.00003 \approx 1

    • Converged solution: x=1x = 1, y=1y = 1, z=1z = 1.

  • Problem 16: Gauss-Seidel Iteration:

    • System: 20x+y−2z=1720x + y - 2z = 17, 3x+20y−z=−183x + 20y - z = -18, 2x−3y+20z=252x - 3y + 20z = 25.

    • Diagonal dominance verification: 20>1+∣−2∣=320 > 1 + |-2| = 3; 20>3+∣−1∣=420 > 3 + |-1| = 4; 20>2+∣−3∣=520 > 2 + |-3| = 5.

    • Iterative formulas:     x=120(17−y+2z)x = \frac{1}{20}(17 - y + 2z)     y=120(−18−3x+z)y = \frac{1}{20}(-18 - 3x + z)     z=120(25−2x+3y)z = \frac{1}{20}(25 - 2x + 3y)

    • Start with trial approximation: x(0)=0x^{(0)} = 0, y(0)=0y^{(0)} = 0, z(0)=0z^{(0)} = 0.

    • Iteration 1:     x(1)=120(17−0+0)=0.85x^{(1)} = \frac{1}{20}(17 - 0 + 0) = 0.85     y(1)=120(−18−3(0.85)+0)=−1.0275y^{(1)} = \frac{1}{20}(-18 - 3(0.85) + 0) = -1.0275     z(1)=120(25−2(0.85)+3(−1.0275))=1.0109z^{(1)} = \frac{1}{20}(25 - 2(0.85) + 3(-1.0275)) = 1.0109

    • Iteration 2:     x(2)=120(17−(−1.0275)+2(1.0109))=1.0025x^{(2)} = \frac{1}{20}(17 - (-1.0275) + 2(1.0109)) = 1.0025     y(2)=120(−18−3(1.0025)+1.0109)=−0.9998y^{(2)} = \frac{1}{20}(-18 - 3(1.0025) + 1.0109) = -0.9998     z(2)=120(25−2(1.0025)+3(−0.9998))=0.9998z^{(2)} = \frac{1}{20}(25 - 2(1.0025) + 3(-0.9998)) = 0.9998

    • Iteration 3:     x(3)=120(17−(−0.9998)+2(0.9998))=0.99997≈1x^{(3)} = \frac{1}{20}(17 - (-0.9998) + 2(0.9998)) = 0.99997 \approx 1     y(3)=120(−18−3(0.99997)+0.99998)=−1.0000055≈−1y^{(3)} = \frac{1}{20}(-18 - 3(0.99997) + 0.99998) = -1.0000055 \approx -1     z(3)=120(25−2(0.99997)+3(−1.0000055))=1.0000022≈1z^{(3)} = \frac{1}{20}(25 - 2(0.99997) + 3(-1.0000055)) = 1.0000022 \approx 1

    • Converged solution: x=1x = 1, y=−1y = -1, z=1z = 1.

  • Problem 17: Row Rearrangement for Diagonal Dominance:

    • Given system: x+y+54z=110x + y + 54z = 110, 27x+6y−z=8527x + 6y - z = 85, 6x+15y+2z=726x + 15y + 2z = 72.

    • This configuration is not diagonally dominant because 1≯1+541 \not> 1 + 54.

    • Rearrange the equations into diagonally dominant order:

    1. 27x+6y−z=8527x + 6y - z = 85 (Dominant in xx: 27>6+∣−1∣=727 > 6 + |-1| = 7)

    2. 6x+15y+2z=726x + 15y + 2z = 72 (Dominant in yy: 15>6+2=815 > 6 + 2 = 8)

    3. x+y+54z=110x + y + 54z = 110 (Dominant in zz: 54>1+1=254 > 1 + 1 = 2)

    • Iterative formulas:     x=127(85−6y+z)x = \frac{1}{27}(85 - 6y + z)     y=115(72−6x−2z)y = \frac{1}{15}(72 - 6x - 2z)     z=154(110−x−y)z = \frac{1}{54}(110 - x - y)

    • Start with trial approximation: x(0)=0x^{(0)} = 0, y(0)=0y^{(0)} = 0, z(0)=0z^{(0)} = 0.

    • Iteration 1:     x(1)=127(85−0+0)=3.14815x^{(1)} = \frac{1}{27}(85 - 0 + 0) = 3.14815     y(1)=115(72−6(3.14815)−0)=3.54074y^{(1)} = \frac{1}{15}(72 - 6(3.14815) - 0) = 3.54074     z(1)=154(110−3.14815−3.54074)=1.91317z^{(1)} = \frac{1}{54}(110 - 3.14815 - 3.54074) = 1.91317

    • Iteration 2:     x(2)=127(85−6(3.54074)+1.91317)=2.43218x^{(2)} = \frac{1}{27}(85 - 6(3.54074) + 1.91317) = 2.43218     y(2)=115(72−6(2.43218)−2(1.91317))=3.57204y^{(2)} = \frac{1}{15}(72 - 6(2.43218) - 2(1.91317)) = 3.57204     z(2)=154(110−2.43218−3.57204)=1.92585z^{(2)} = \frac{1}{54}(110 - 2.43218 - 3.57204) = 1.92585

    • Iteration 3:     x(3)=127(85−6(3.57204)+1.92585)=2.42569x^{(3)} = \frac{1}{27}(85 - 6(3.57204) + 1.92585) = 2.42569     y(3)=115(72−6(2.42569)−2(1.92585))=3.57294y^{(3)} = \frac{1}{15}(72 - 6(2.42569) - 2(1.92585)) = 3.57294     z(3)=154(110−2.42569−3.57294)=1.92595z^{(3)} = \frac{1}{54}(110 - 2.42569 - 3.57294) = 1.92595

    • Iteration 4:     x(4)=127(85−6(3.57294)+1.92595)=2.42549x^{(4)} = \frac{1}{27}(85 - 6(3.57294) + 1.92595) = 2.42549     y(4)=115(72−6(2.42549)−2(1.92595))=3.57301y^{(4)} = \frac{1}{15}(72 - 6(2.42549) - 2(1.92595)) = 3.57301     z(4)=154(110−2.42549−3.57301)=1.92595z^{(4)} = \frac{1}{54}(110 - 2.42549 - 3.57301) = 1.92595

    • Solution correct to three decimal places: x=2.426x = 2.426, y=3.573y = 3.573, z=1.926z = 1.926.

  • Problem 18: Custom Initial Approximation:

    • System: 5x+2y+z=125x + 2y + z = 12, x+4y+2z=15x + 4y + 2z = 15, x+2y+5z=20x + 2y + 5z = 20.

    • Initial approximation: (x(0),y(0),z(0))=(1,0,3)(x^{(0)}, y^{(0)}, z^{(0)}) = (1, 0, 3).

    • Iterative formulas:     x=15(12−2y−z)x = \frac{1}{5}(12 - 2y - z)     y=14(15−x−2z)y = \frac{1}{4}(15 - x - 2z)     z=15(20−x−2y)z = \frac{1}{5}(20 - x - 2y)

    • Iteration 1:     x(1)=15(12−2(0)−3)=1.8x^{(1)} = \frac{1}{5}(12 - 2(0) - 3) = 1.8     y(1)=14(15−1.8−2(3))=1.8y^{(1)} = \frac{1}{4}(15 - 1.8 - 2(3)) = 1.8     z(1)=15(20−1.8−2(1.8))=2.92z^{(1)} = \frac{1}{5}(20 - 1.8 - 2(1.8)) = 2.92

    • Iteration 2:     x(2)=15(12−2(1.8)−2.92)=1.096x^{(2)} = \frac{1}{5}(12 - 2(1.8) - 2.92) = 1.096     y(2)=14(15−1.096−2(2.92))=2.016y^{(2)} = \frac{1}{4}(15 - 1.096 - 2(2.92)) = 2.016     z(2)=15(20−1.096−2(2.016))=2.9744z^{(2)} = \frac{1}{5}(20 - 1.096 - 2(2.016)) = 2.9744

    • Iteration 3:     x(3)=15(12−2(2.016)−2.9744)=0.99872x^{(3)} = \frac{1}{5}(12 - 2(2.016) - 2.9744) = 0.99872     y(3)=14(15−0.99872−2(2.9744))=2.01312y^{(3)} = \frac{1}{4}(15 - 0.99872 - 2(2.9744)) = 2.01312     z(3)=15(20−0.99872−2(2.01312))=2.995z^{(3)} = \frac{1}{5}(20 - 0.99872 - 2(2.01312)) = 2.995

    • Iteration 4:     x(4)=15(12−2(2.01312)−2.995)=0.995752x^{(4)} = \frac{1}{5}(12 - 2(2.01312) - 2.995) = 0.995752     y(4)=14(15−0.995752−2(2.995))=2.003562y^{(4)} = \frac{1}{4}(15 - 0.995752 - 2(2.995)) = 2.003562     z(4)=15(20−0.995752−2(2.003562))=2.9994248z^{(4)} = \frac{1}{5}(20 - 0.995752 - 2(2.003562)) = 2.9994248

    • Solution after 4 iterations: x=0.9958x = 0.9958, y=2.0036y = 2.0036, z=2.9994z = 2.9994.

  • 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 (O(n3)\mathcal{O}(n^3)) 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

Comparison Between Gauss Elimination and Gauss-Seidel Methods

Applied Case Studies in Linear Systems

  • Case Study 3: Sarah's Investment Portfolio Optimization:

    • Problem context: An investor inherits $12,000\$12,000 and allocates the total across three investment funds:

    • Money Market Fund: 3%3\% annual interest (0.030.03).

    • Municipal Bonds: 4%4\% annual interest (0.040.04).

    • Mutual Funds: 7%7\% annual interest (0.070.07).

    • Investment constraints:

    • Total capital invested across all three funds: $12,000\$12,000.

    • Capital in Mutual Funds exceeds Municipal Bonds by exactly $4,000\$4,000.

    • Total target annual interest income at year-end: $670\$670.

    • Variable formulation:

    • Let xx = amount invested in Money Market Fund.

    • Let yy = amount invested in Municipal Bonds.

    • Let zz = amount invested in Mutual Funds.

    • Governing system of linear equations:     {x+y+z=12000−y+z=40000.03x+0.04y+0.07z=670\begin{cases} x + y + z = 12000 \\ -y + z = 4000 \\ 0.03x + 0.04y + 0.07z = 670 \end{cases}

    • Augmented matrix reduction:     [A:B]=[111:120000−11:40000.030.040.07:670][A : B] = \begin{bmatrix} 1 & 1 & 1 & : & 12000 \\ 0 & -1 & 1 & : & 4000 \\ 0.03 & 0.04 & 0.07 & : & 670 \end{bmatrix}

    • Apply R3→R3−0.03R1R_3 \rightarrow R_3 - 0.03R_1:       R3=[00.04−0.030.07−0.03:670−360]=[00.010.04:310]R_3 = \begin{bmatrix} 0 & 0.04 - 0.03 & 0.07 - 0.03 & : & 670 - 360 \end{bmatrix} = \begin{bmatrix} 0 & 0.01 & 0.04 & : & 310 \end{bmatrix}       [A:B]∼[111:120000−11:400000.010.04:310][A : B] \sim \begin{bmatrix} 1 & 1 & 1 & : & 12000 \\ 0 & -1 & 1 & : & 4000 \\ 0 & 0.01 & 0.04 & : & 310 \end{bmatrix}

    • Apply R3→R3+0.01R2R_3 \rightarrow R_3 + 0.01R_2:       R3=[00.01+0.01(−1)0.04+0.01(1):310+0.01(4000)]=[000.05:350]R_3 = \begin{bmatrix} 0 & 0.01 + 0.01(-1) & 0.04 + 0.01(1) & : & 310 + 0.01(4000) \end{bmatrix} = \begin{bmatrix} 0 & 0 & 0.05 & : & 350 \end{bmatrix}       [A:B]∼[111:120000−11:4000000.05:350][A : B] \sim \begin{bmatrix} 1 & 1 & 1 & : & 12000 \\ 0 & -1 & 1 & : & 4000 \\ 0 & 0 & 0.05 & : & 350 \end{bmatrix}

    • Back substitution:

    • 0.05z=350  ⟹  z=3500.05=70000.05z = 350 \implies z = \frac{350}{0.05} = 7000

    • −y+7000=4000  ⟹  y=3000-y + 7000 = 4000 \implies y = 3000

    • x+3000+7000=12000  ⟹  x=2000x + 3000 + 7000 = 12000 \implies x = 2000

    • 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)); &nbsp;&nbsp;&nbsp;&nbsp;

  • Final portfolio distribution:

    • Money Market Fund: $2,000\$2,000 at 3%  ⟹  $603\% \implies \$60 interest.

    • Municipal Bonds: $3,000\$3,000 at 4%  ⟹  $1204\% \implies \$120 interest.

    • Mutual Funds: $7,000\$7,000 at 7%  ⟹  $4907\% \implies \$490 interest.

    • Total invested: $12,000\$12,000; Total annual interest: $670\$670.

  • Extended critical scenario evaluations:

    • Fluctuating Interest Rates: If the Mutual Fund yield drops from 7%7\% to 5%5\%, earned interest changes from 0.07×7000=$4900.07 \times 7000 = \$490 to 0.05×7000=$3500.05 \times 7000 = \$350, reducing income by $140\$140 to $530\$530.

    • Risk Mitigation Allocation: If risk is reduced by distributing capital equally (x=4000x = 4000, y=4000y = 4000, z=4000z = 4000), earned interest is 0.03(4000)+0.04(4000)+0.07(4000)=120+160+280=$5600.03(4000) + 0.04(4000) + 0.07(4000) = 120 + 160 + 280 = \$560, falling short of the $670\$670 target.

    • Target Adjustment to $720\$720: Preserving x=2000x = 2000 and y=3000y = 3000: 60+120+0.07z=720  ⟹  0.07z=540  ⟹  z=$7,714.2960 + 120 + 0.07z = 720 \implies 0.07z = 540 \implies z = \$7,714.29. Total capital required would be 2000+3000+7714=$12,7142000 + 3000 + 7714 = \$12,714, exceeding the $12,000\$12,000 principal. The goal is unattainable without raising initial capital.

    • Tax Impact: Imposing a 10%10\% tax on $670\$670 yields net income of 670×(1−0.10)=$603670 \times (1 - 0.10) = \$603, lowering realized returns.

    • Safety Constraint (x≥2000x \ge 2000): Satisfied directly by the base solution (x=2000x = 2000).

    • Ethical Exclusions (z=0z = 0): Excluding mutual funds yields x+y=12000x + y = 12000 and 0.03x+0.04(12000−x)=670  ⟹  −0.01x+480=670  ⟹  −0.01x=190  ⟹  x=−$19,0000.03x + 0.04(12000 - x) = 670 \implies -0.01x + 480 = 670 \implies -0.01x = 190 \implies x = -\$19,000. A negative allocation is physically impossible; hence no mathematical solution exists under this ethical constraint without altering yield goals.

Investment Portfolio Optimization Model
  • Case Study 4: DC Power Distribution Network in a Testing Laboratory:

    • System specifications: A 90 V90\,\text{V} DC power source powers three interconnected loop meshes:

    • Loop 1 contains a 30 Ω30\,\Omega control panel wire (R1R_1), a 30 Ω30\,\Omega ground path (R2R_2), and a shared 10 Ω10\,\Omega measuring device (R3R_3).

    • Loop 2 contains the shared 10 Ω10\,\Omega measuring device (R3R_3), an additional 30 Ω30\,\Omega instrument (R4R_4), and a shared 30 Ω30\,\Omega loop connector (R5R_5).

    • Loop 3 contains the shared 30 Ω30\,\Omega connector (R5R_5) and two 30 Ω30\,\Omega lab sensor loads (R6R_6 and R7R_7).

DC Power Distribution Network Circuit Schematic
  • Kirchhoff's Voltage Law (KVL) mesh equations (clockwise currents I1,I2,I3I_1, I_2, I_3):

    • Mesh 1 (Left Loop):     30I1+10(I1−I2)+30I1−90=030I_1 + 10(I_1 - I_2) + 30I_1 - 90 = 0     (30+10+30)I1−10I2=90  ⟹  70I1−10I2+0I3=90(30 + 10 + 30)I_1 - 10I_2 = 90 \implies 70I_1 - 10I_2 + 0I_3 = 90

    • Mesh 2 (Middle Loop):     10(I2−I1)+30I2+30(I2−I3)=010(I_2 - I_1) + 30I_2 + 30(I_2 - I_3) = 0     −10I1+(10+30+30)I2−30I3=0  ⟹  −10I1+70I2−30I3=0-10I_1 + (10 + 30 + 30)I_2 - 30I_3 = 0 \implies -10I_1 + 70I_2 - 30I_3 = 0

    • Mesh 3 (Right Loop):     30(I3−I2)+30I3=030(I_3 - I_2) + 30I_3 = 0     0I1−30I2+60I3=00I_1 - 30I_2 + 60I_3 = 0

  • Matrix equation AI=VA\mathbf{I} = \mathbf{V}:   [70−100−1070−300−3060][I1I2I3]=[9000]\begin{bmatrix} 70 & -10 & 0 \\ -10 & 70 & -30 \\ 0 & -30 & 60 \end{bmatrix} \begin{bmatrix} I_1 \\ I_2 \\ I_3 \end{bmatrix} = \begin{bmatrix} 90 \\ 0 \\ 0 \end{bmatrix}

  • Solving via Gaussian elimination yields:

    • I1=3325 A=1.32 AI_1 = \frac{33}{25}\,\text{A} = 1.32\,\text{A}

    • I2=625 A=0.24 AI_2 = \frac{6}{25}\,\text{A} = 0.24\,\text{A}

    • I3=325 A=0.12 AI_3 = \frac{3}{25}\,\text{A} = 0.12\,\text{A}

  • Current through the 10 Ω10\,\Omega measuring resistor:   I10Ω=I1−I2=3325−625=2725 A=1.08 A=1080 mAI_{10\Omega} = I_1 - I_2 = \frac{33}{25} - \frac{6}{25} = \frac{27}{25}\,\text{A} = 1.08\,\text{A} = 1080\,\text{mA}   (flowing left to right from Mesh 1 into Mesh 2).

  • Circuit behavior under operational variations:

    • Removal of the 10 Ω10\,\Omega Resistor: Decouples Mesh 1 from Meshes 2 and 3. Current in Mesh 1 becomes I1=9030+30=1.50 AI_1 = \frac{90}{30 + 30} = 1.50\,\text{A}. Loops 2 and 3 receive no energy, so I2=I3=0I_2 = I_3 = 0.

    • Voltage Scaling: Increasing source voltage to 100 V100\,\text{V} scales current linearly: I10Ω=1.08×10090=1.20 AI_{10\Omega} = 1.08 \times \frac{100}{90} = 1.20\,\text{A}. Every 10 V10\,\text{V} increase raises the branch current by 0.12 A0.12\,\text{A}.

    • Experimental Verification: Measured branch currents on a breadboard match theoretical values: Loop 1 = 1.32 A1.32\,\text{A}, 10 Ω10\,\Omega branch = 1.08 A1.08\,\text{A}, middle vertical resistor = 0.24 A0.24\,\text{A}, right vertical load = 0.12 A0.12\,\text{A}.

Eigenvalues and Eigenvectors: Theory and Computation

  • Theoretical definition:

    • Let AA be a square matrix of order n×nn \times n. If there exists a non-zero column vector X∈Cn×1X \in \mathbb{C}^{n \times 1} (X≠0X \neq \mathbf{0}) and a scalar λ\lambda such that:     AX=λXAX = \lambda X     then λ\lambda is an eigenvalue (latent root or characteristic root) of matrix AA, and XX is the corresponding eigenvector (characteristic vector).

  • Derivation of the characteristic equation:

    • Re-express AX=λXAX = \lambda X with the identity matrix II:     AX−λIX=0  ⟹  (A−λI)X=0AX - \lambda IX = \mathbf{0} \implies (A - \lambda I)X = \mathbf{0}

    • This represents a homogeneous linear system. Non-trivial solutions (X≠0X \neq \mathbf{0}) exist if and only if the coefficient matrix is singular:     det⁡(A−λI)=0\det(A - \lambda I) = 0

  • Characteristic equation shortcut for a 3×33 \times 3 matrix:   λ3−Σdλ2+Σmdλ−det⁡(A)=0\lambda^3 - \Sigma_d \lambda^2 + \Sigma_{md} \lambda - \det(A) = 0   where:

    • Σd=tr(A)=a11+a22+a33\Sigma_d = \text{tr}(A) = a_{11} + a_{22} + a_{33} (sum of principal diagonal elements).

    • Σmd=M11+M22+M33\Sigma_{md} = M_{11} + M_{22} + M_{33} (sum of minors of principal diagonal elements).

    • det⁡(A)\det(A) is the determinant of matrix AA.

  • Problem 19: 2×22 \times 2 Matrix Eigenvalues and Eigenvectors:

    • Matrix: A=[1254]A = \begin{bmatrix} 1 & 2 \\ 5 & 4 \end{bmatrix}.

    • Characteristic equation:     det⁡(A−λI)=det⁡[1−λ254−λ]=(1−λ)(4−λ)−10=0\det(A - \lambda I) = \det\begin{bmatrix} 1 - \lambda & 2 \\ 5 & 4 - \lambda \end{bmatrix} = (1 - \lambda)(4 - \lambda) - 10 = 0     λ2−5λ−6=0  ⟹  (λ−6)(λ+1)=0\lambda^2 - 5\lambda - 6 = 0 \implies (\lambda - 6)(\lambda + 1) = 0     λ1=6,λ2=−1\lambda_1 = 6, \quad \lambda_2 = -1

    • Case 1 (λ=6\lambda = 6):     (A−6I)X=0  ⟹  [1−6254−6][x1x2]=[00]  ⟹  [−525−2][x1x2]=[00](A - 6I)X = \mathbf{0} \implies \begin{bmatrix} 1 - 6 & 2 \\ 5 & 4 - 6 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \implies \begin{bmatrix} -5 & 2 \\ 5 & -2 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}     −5x1+2x2=0  ⟹  5x1=2x2  ⟹  x12=x25=k-5x_1 + 2x_2 = 0 \implies 5x_1 = 2x_2 \implies \frac{x_1}{2} = \frac{x_2}{5} = k     X1=k[25]X_1 = k\begin{bmatrix} 2 \\ 5 \end{bmatrix}

    • Case 2 (λ=−1\lambda = -1):     (A+I)X=0  ⟹  [2255][x1x2]=[00](A + I)X = \mathbf{0} \implies \begin{bmatrix} 2 & 2 \\ 5 & 5 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}     2x1+2x2=0  ⟹  x1=−x2  ⟹  x11=x2−1=k2x_1 + 2x_2 = 0 \implies x_1 = -x_2 \implies \frac{x_1}{1} = \frac{x_2}{-1} = k     X2=k[1−1]X_2 = k\begin{bmatrix} 1 \\ -1 \end{bmatrix}

  • Problem 20: 3×33 \times 3 Matrix Eigenvalues and Eigenvectors:

    • Matrix: A=[8−62−67−42−43]A = \begin{bmatrix} 8 & -6 & 2 \\ -6 & 7 & -4 \\ 2 & -4 & 3 \end{bmatrix}.

    • Expanding the characteristic determinant yields:     λ3−18λ2+45λ=0  ⟹  λ(λ2−18λ+45)=0\lambda^3 - 18\lambda^2 + 45\lambda = 0 \implies \lambda(\lambda^2 - 18\lambda + 45) = 0     λ(λ−3)(λ−15)=0  ⟹  λ=0, 3, 15\lambda(\lambda - 3)(\lambda - 15) = 0 \implies \lambda = 0, \, 3, \, 15

    • Case 1 (λ=0\lambda = 0):     {8x−6y+2z=0−6x+7y−4z=02x−4y+3z=0\begin{cases} 8x - 6y + 2z = 0 \\ -6x + 7y - 4z = 0 \\ 2x - 4y + 3z = 0 \end{cases}     Apply cross-multiplication on equations 1 and 2:     x(−6)(−4)−(2)(7)=−y(8)(−4)−(2)(−6)=z(8)(7)−(−6)(−6)\frac{x}{(-6)(-4) - (2)(7)} = \frac{-y}{(8)(-4) - (2)(-6)} = \frac{z}{(8)(7) - (-6)(-6)}     x24−14=−y−32+12=z56−36  ⟹  x10=y20=z20  ⟹  x1=y2=z2\frac{x}{24 - 14} = \frac{-y}{-32 + 12} = \frac{z}{56 - 36} \implies \frac{x}{10} = \frac{y}{20} = \frac{z}{20} \implies \frac{x}{1} = \frac{y}{2} = \frac{z}{2}     X1=[122]X_1 = \begin{bmatrix} 1 \\ 2 \\ 2 \end{bmatrix}

    • Case 2 (λ=3\lambda = 3):     {5x−6y+2z=0−6x+4y−4z=02x−4y+0z=0\begin{cases} 5x - 6y + 2z = 0 \\ -6x + 4y - 4z = 0 \\ 2x - 4y + 0z = 0 \end{cases}     Cross-multiplication on equations 1 and 2:     x24−8=−y−20−(−12)=z20−36  ⟹  x16=−y−8=z−16  ⟹  x2=y1=z−2\frac{x}{24 - 8} = \frac{-y}{-20 - (-12)} = \frac{z}{20 - 36} \implies \frac{x}{16} = \frac{-y}{-8} = \frac{z}{-16} \implies \frac{x}{2} = \frac{y}{1} = \frac{z}{-2}     X2=[21−2]X_2 = \begin{bmatrix} 2 \\ 1 \\ -2 \end{bmatrix}

    • Case 3 (λ=15\lambda = 15):     {−7x−6y+2z=0−6x−8y−4z=02x−4y−12z=0\begin{cases} -7x - 6y + 2z = 0 \\ -6x - 8y - 4z = 0 \\ 2x - 4y - 12z = 0 \end{cases}     Cross-multiplication on equations 1 and 2:     x24−(−16)=−y28−(−12)=z56−36  ⟹  x40=−y40=z20  ⟹  x2=y−2=z1\frac{x}{24 - (-16)} = \frac{-y}{28 - (-12)} = \frac{z}{56 - 36} \implies \frac{x}{40} = \frac{-y}{40} = \frac{z}{20} \implies \frac{x}{2} = \frac{y}{-2} = \frac{z}{1}     X3=[2−21]X_3 = \begin{bmatrix} 2 \\ -2 \\ 1 \end{bmatrix}

  • Problem 21: Repeated Eigenvalue Evaluation:

    • Matrix: A=[6−22−23−12−13]A = \begin{bmatrix} 6 & -2 & 2 \\ -2 & 3 & -1 \\ 2 & -1 & 3 \end{bmatrix}.

    • Characteristic polynomial components:

    • Σd=6+3+3=12\Sigma_d = 6 + 3 + 3 = 12

    • Σmd=det⁡[3−1−13]+det⁡[6223]+det⁡[6−2−23]=(9−1)+(18−4)+(18−4)=8+14+14=36\Sigma_{md} = \det\begin{bmatrix} 3 & -1 \\ -1 & 3 \end{bmatrix} + \det\begin{bmatrix} 6 & 2 \\ 2 & 3 \end{bmatrix} + \det\begin{bmatrix} 6 & -2 \\ -2 & 3 \end{bmatrix} = (9 - 1) + (18 - 4) + (18 - 4) = 8 + 14 + 14 = 36

    • det⁡(A)=6(9−1)−(−2)(−6+2)+2(2−6)=48−8−8=32\det(A) = 6(9 - 1) - (-2)(-6 + 2) + 2(2 - 6) = 48 - 8 - 8 = 32

    • Characteristic equation: λ3−12λ2+36λ−32=0\lambda^3 - 12\lambda^2 + 36\lambda - 32 = 0

    • Factoring: (λ−8)(λ−2)2=0  ⟹  λ=8, 2, 2(\lambda - 8)(\lambda - 2)^2 = 0 \implies \lambda = 8, \, 2, \, 2.

  • Problem 22: Repeated Roots with Multiple Independent Eigenvectors:

    • Matrix: A=[−22−321−6−1−20]A = \begin{bmatrix} -2 & 2 & -3 \\ 2 & 1 & -6 \\ -1 & -2 & 0 \end{bmatrix}.

    • Characteristic polynomial expansion:     (λ+3)2(λ−5)=0  ⟹  λ=−3, −3, 5(\lambda + 3)^2(\lambda - 5) = 0 \implies \lambda = -3, \, -3, \, 5

    • Case 1 (λ=−3\lambda = -3):     (A+3I)X=0  ⟹  [12−324−6−1−23][xyz]=[000](A + 3I)X = \mathbf{0} \implies \begin{bmatrix} 1 & 2 & -3 \\ 2 & 4 & -6 \\ -1 & -2 & 3 \end{bmatrix} \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}     All three rows are scalar multiples of a single independent equation: x+2y−3z=0x + 2y - 3z = 0.     Choose two variables arbitrarily: set z=k1z = k_1 and y=k2y = k_2, then x=3k1−2k2x = 3k_1 - 2k_2:     X=[3k1−2k2k2k1]=k1[301]+k2[−210]X = \begin{bmatrix} 3k_1 - 2k_2 \\ k_2 \\ k_1 \end{bmatrix} = k_1\begin{bmatrix} 3 \\ 0 \\ 1 \end{bmatrix} + k_2\begin{bmatrix} -2 \\ 1 \\ 0 \end{bmatrix}     This yields two linearly independent eigenvectors for λ=−3\lambda = -3:     X1=[301],X2=[−210]X_1 = \begin{bmatrix} 3 \\ 0 \\ 1 \end{bmatrix}, \quad X_2 = \begin{bmatrix} -2 \\ 1 \\ 0 \end{bmatrix}

    • Case 2 (λ=5\lambda = 5):     {−7x+2y−3z=02x−4y−6z=0−x−2y−5z=0\begin{cases} -7x + 2y - 3z = 0 \\ 2x - 4y - 6z = 0 \\ -x - 2y - 5z = 0 \end{cases}     Cross-multiplication on equations 1 and 2:     x−12−12=−y42−(−6)=z28−4  ⟹  x−24=−y48=z24  ⟹  x1=y2=z−1\frac{x}{-12 - 12} = \frac{-y}{42 - (-6)} = \frac{z}{28 - 4} \implies \frac{x}{-24} = \frac{-y}{48} = \frac{z}{24} \implies \frac{x}{1} = \frac{y}{2} = \frac{z}{-1}     X3=[12−1]X_3 = \begin{bmatrix} 1 \\ 2 \\ -1 \end{bmatrix}

  • Problem 24: Matrix Eigenvalues and Eigenvectors:

    • Matrix: A=[7−20−26−20−25]A = \begin{bmatrix} 7 & -2 & 0 \\ -2 & 6 & -2 \\ 0 & -2 & 5 \end{bmatrix}.

    • Expanding det⁡(A−λI)=0\det(A - \lambda I) = 0 gives:     λ3−18λ2+99λ−162=0  ⟹  λ=3, 6, 9\lambda^3 - 18\lambda^2 + 99\lambda - 162 = 0 \implies \lambda = 3, \, 6, \, 9

    • For λ=3\lambda = 3: Solving (A−3I)X=0(A - 3I)X = \mathbf{0} gives X1=[122]X_1 = \begin{bmatrix} 1 \\ 2 \\ 2 \end{bmatrix}.

    • For λ=6\lambda = 6: Solving (A−6I)X=0(A - 6I)X = \mathbf{0} gives X2=[21−2]X_2 = \begin{bmatrix} 2 \\ 1 \\ -2 \end{bmatrix}.

    • For λ=9\lambda = 9: Solving (A−9I)X=0(A - 9I)X = \mathbf{0} gives X3=[2−21]X_3 = \begin{bmatrix} 2 \\ -2 \\ 1 \end{bmatrix}.

Engineering Applications of Eigenvalues and Eigenvectors
  • Real-world engineering applications of spectral theory:

    • Mechanical & Civil Infrastructure: Structural vibration modes and resonance frequencies (Mx¨+Kx=0M\ddot{\mathbf{x}} + K\mathbf{x} = \mathbf{0}). Eigenvalues represent squared natural frequencies (ω2\omega^2), 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 (x˙=Ax+Bu\dot{\mathbf{x}} = A\mathbf{x} + B\mathbf{u}). System poles are the eigenvalues of AA; asymptotic stability requires Re(λi)<0\text{Re}(\lambda_i) < 0.

    • Electrical Power Grids: Interconnected transmission grid stability and rotor angle oscillation damping.

    • Quantum Computing: Quantum state vectors ∣ψ⟩\lvert \psi \rangle 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 (A=PDP−1A = PDP^{-1}).

    • Singular Value Decomposition (SVD): Applicable to any general rectangular matrix (A=UΣVTA = U\Sigma V^T).

  • Procedure for Eigenvalue Decomposition:

    1. Given an n×nn \times n matrix AA, determine all nn eigenvalues by solving det⁡(A−λI)=0\det(A - \lambda I) = 0.

    2. For each eigenvalue λi\lambda_i, compute its corresponding non-zero eigenvector XiX_i via (A−λiI)Xi=0(A - \lambda_i I)X_i = \mathbf{0}.

    3. Construct the modal matrix PP by placing the eigenvectors as columns:      P=[X1X2…Xn]P = \begin{bmatrix} X_1 & X_2 & \dots & X_n \end{bmatrix}

    4. Form the diagonal matrix DD using the corresponding eigenvalues along its main diagonal:      D=diag(λ1,λ2,…,λn)D = \text{diag}(\lambda_1, \lambda_2, \dots, \lambda_n)

    5. If PP is non-singular (det⁡(P)≠0\det(P) \neq 0), then AA is diagonalizable:      A=PDP−1⟺D=P−1APA = PDP^{-1} \quad \Longleftrightarrow \quad D = P^{-1}AP

    6. Power evaluation via diagonalization:      Ak=PDkP−1=P[λ1k0…00λ2k…0⋮⋮⋱⋮00…λnk]P−1A^k = PD^kP^{-1} = P \begin{bmatrix} \lambda_1^k & 0 & \dots & 0 \\ 0 & \lambda_2^k & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & \lambda_n^k \end{bmatrix} P^{-1}

  • Problem 25: 2×22 \times 2 Diagonalization:

    • Matrix: A=[6223]A = \begin{bmatrix} 6 & 2 \\ 2 & 3 \end{bmatrix}.

    • Characteristic equation:     det⁡[6−λ223−λ]=(6−λ)(3−λ)−4=λ2−9λ+14=0\det\begin{bmatrix} 6 - \lambda & 2 \\ 2 & 3 - \lambda \end{bmatrix} = (6 - \lambda)(3 - \lambda) - 4 = \lambda^2 - 9\lambda + 14 = 0     (λ−7)(λ−2)=0  ⟹  λ1=7,λ2=2(\lambda - 7)(\lambda - 2) = 0 \implies \lambda_1 = 7, \quad \lambda_2 = 2

    • Eigenvectors:

    • For λ1=7\lambda_1 = 7:       [−122−4][x1x2]=[00]  ⟹  −x1+2x2=0  ⟹  X1=[21]\begin{bmatrix} -1 & 2 \\ 2 & -4 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \implies -x_1 + 2x_2 = 0 \implies X_1 = \begin{bmatrix} 2 \\ 1 \end{bmatrix}

    • For λ2=2\lambda_2 = 2:       [4221][x1x2]=[00]  ⟹  2x1+x2=0  ⟹  X2=[−12]\begin{bmatrix} 4 & 2 \\ 2 & 1 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} \implies 2x_1 + x_2 = 0 \implies X_2 = \begin{bmatrix} -1 \\ 2 \end{bmatrix}

    • Modal matrix PP and its inverse P−1P^{-1}:     P=[2−112],det⁡(P)=4−(−1)=5P = \begin{bmatrix} 2 & -1 \\ 1 & 2 \end{bmatrix}, \quad \det(P) = 4 - (-1) = 5     P−1=15[21−12]P^{-1} = \frac{1}{5}\begin{bmatrix} 2 & 1 \\ -1 & 2 \end{bmatrix}

    • Diagonal matrix DD:     D=[7002]D = \begin{bmatrix} 7 & 0 \\ 0 & 2 \end{bmatrix}

    • Reconstruction check:     PDP−1=[2−112][7002](15[21−12])=[14−274](15[21−12])=[6223]=APDP^{-1} = \begin{bmatrix} 2 & -1 \\ 1 & 2 \end{bmatrix} \begin{bmatrix} 7 & 0 \\ 0 & 2 \end{bmatrix} \left(\frac{1}{5}\begin{bmatrix} 2 & 1 \\ -1 & 2 \end{bmatrix}\right) = \begin{bmatrix} 14 & -2 \\ 7 & 4 \end{bmatrix} \left(\frac{1}{5}\begin{bmatrix} 2 & 1 \\ -1 & 2 \end{bmatrix}\right) = \begin{bmatrix} 6 & 2 \\ 2 & 3 \end{bmatrix} = A

  • Problem 28: Non-Diagonalizable (Defective) Matrix:

    • Matrix: A=[002021210]A = \begin{bmatrix} 0 & 0 & 2 \\ 0 & 2 & 1 \\ 2 & 1 & 0 \end{bmatrix}.

    • 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 PP cannot be constructed. The matrix cannot be diagonalized.

  • Problem 29: Orthogonal Diagonalization of a Real Symmetric Matrix:

    • Matrix: A=[6−2−1−26−1−1−15]A = \begin{bmatrix} 6 & -2 & -1 \\ -2 & 6 & -1 \\ -1 & -1 & 5 \end{bmatrix}.

    • Real symmetric matrices (A=ATA = A^T) possess two fundamental properties:

    1. All eigenvalues are real.

    2. Eigenvectors corresponding to distinct eigenvalues are mutually orthogonal.

    • Characteristic equation:     det⁡(A−λI)=−λ3+17λ2−90λ+144=0  ⟹  λ3−17λ2+90λ−144=0\det(A - \lambda I) = -\lambda^3 + 17\lambda^2 - 90\lambda + 144 = 0 \implies \lambda^3 - 17\lambda^2 + 90\lambda - 144 = 0     Factoring yields eigenvalues: λ1=8\lambda_1 = 8, λ2=6\lambda_2 = 6, λ3=3\lambda_3 = 3.

    • Compute unnormalized eigenvectors:

    • For λ1=8\lambda_1 = 8:       (A−8I)X=[−2−2−1−2−2−1−1−1−3][x1x2x3]=[000]  ⟹  v1=[−110](A - 8I)X = \begin{bmatrix} -2 & -2 & -1 \\ -2 & -2 & -1 \\ -1 & -1 & -3 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} \implies v_1 = \begin{bmatrix} -1 \\ 1 \\ 0 \end{bmatrix}

    • For λ2=6\lambda_2 = 6:       (A−6I)Y=[0−2−1−20−1−1−1−1][y1y2y3]=[000]  ⟹  v2=[−1−12](A - 6I)Y = \begin{bmatrix} 0 & -2 & -1 \\ -2 & 0 & -1 \\ -1 & -1 & -1 \end{bmatrix} \begin{bmatrix} y_1 \\ y_2 \\ y_3 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} \implies v_2 = \begin{bmatrix} -1 \\ -1 \\ 2 \end{bmatrix}

    • For λ3=3\lambda_3 = 3:       (A−3I)Z=[3−2−1−23−1−1−12][z1z2z3]=[000]  ⟹  v3=[111](A - 3I)Z = \begin{bmatrix} 3 & -2 & -1 \\ -2 & 3 & -1 \\ -1 & -1 & 2 \end{bmatrix} \begin{bmatrix} z_1 \\ z_2 \\ z_3 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} \implies v_3 = \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix}

    • Orthogonality check:     v1⋅v2=(−1)(−1)+(1)(−1)+(0)(2)=1−1+0=0v_1 \cdot v_2 = (-1)(-1) + (1)(-1) + (0)(2) = 1 - 1 + 0 = 0     v2⋅v3=(−1)(1)+(−1)(1)+(2)(1)=−1−1+2=0v_2 \cdot v_3 = (-1)(1) + (-1)(1) + (2)(1) = -1 - 1 + 2 = 0     v1⋅v3=(−1)(1)+(1)(1)+(0)(1)=−1+1+0=0v_1 \cdot v_3 = (-1)(1) + (1)(1) + (0)(1) = -1 + 1 + 0 = 0

    • Orthonormalization (normalizing to unit vectors):     u1=v1∥v1∥=1(−1)2+12+02[−110]=[−1/21/20]\mathbf{u}_1 = \frac{v_1}{\lVert v_1 \rVert} = \frac{1}{\sqrt{(-1)^2 + 1^2 + 0^2}}\begin{bmatrix} -1 \\ 1 \\ 0 \end{bmatrix} = \begin{bmatrix} -1/\sqrt{2} \\ 1/\sqrt{2} \\ 0 \end{bmatrix}     u2=v2∥v2∥=1(−1)2+(−1)2+22[−1−12]=[−1/6−1/62/6]\mathbf{u}_2 = \frac{v_2}{\lVert v_2 \rVert} = \frac{1}{\sqrt{(-1)^2 + (-1)^2 + 2^2}}\begin{bmatrix} -1 \\ -1 \\ 2 \end{bmatrix} = \begin{bmatrix} -1/\sqrt{6} \\ -1/\sqrt{6} \\ 2/\sqrt{6} \end{bmatrix}     u3=v3∥v3∥=112+12+12[111]=[1/31/31/3]\mathbf{u}_3 = \frac{v_3}{\lVert v_3 \rVert} = \frac{1}{\sqrt{1^2 + 1^2 + 1^2}}\begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix} = \begin{bmatrix} 1/\sqrt{3} \\ 1/\sqrt{3} \\ 1/\sqrt{3} \end{bmatrix}

    • Orthonormal modal matrix PP and diagonal matrix DD:     P=[−1/2−1/61/31/2−1/61/302/61/3],D=[800060003]P = \begin{bmatrix} -1/\sqrt{2} & -1/\sqrt{6} & 1/\sqrt{3} \\ 1/\sqrt{2} & -1/\sqrt{6} & 1/\sqrt{3} \\ 0 & 2/\sqrt{6} & 1/\sqrt{3} \end{bmatrix}, \quad D = \begin{bmatrix} 8 & 0 & 0 \\ 0 & 6 & 0 \\ 0 & 0 & 3 \end{bmatrix}

    • Because PP is orthogonal, P−1=PTP^{-1} = P^T, yielding the symmetric decomposition:     A=PDPTA = PDP^T

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 kk external targets, each outbound target receives an equal fraction (1/k1/k) of its importance.

  • The Random Surfer Model:

    • A web user navigates by clicking hyperlinks with probability dd (the damping factor, typically d=0.85d = 0.85), or jumps to an arbitrary page at random with probability 1−d=0.151 - d = 0.15.

    • The continuous governing PageRank equation for page uu is:     PR(u)=1−dN+d∑v∈BuPR(v)L(v)\text{PR}(u) = \frac{1 - d}{N} + d \sum_{v \in B_u} \frac{\text{PR}(v)}{L(v)}     where NN is the total number of pages in the graph, BuB_u is the set of all pages linking into page uu, and L(v)L(v) is the number of outbound links leaving page vv.

Google PageRank Mechanism and Flow
  • Transition Matrix formulation:

    • A transition matrix (or column-stochastic matrix) AA has entries representing probabilities of moving from column page jj to row page ii:     Aij={1njif page j links to page i0otherwiseA_{ij} = \begin{cases} \frac{1}{n_j} & \text{if page } j \text{ links to page } i \\ 0 & \text{otherwise} \end{cases}

    • Every entry satisfies Aij≥0A_{ij} \ge 0, and every column sums to 11:     ∑i=1nAij=1\sum_{i=1}^n A_{ij} = 1

    • By the Perron-Frobenius theorem, every column-stochastic transition matrix possesses a dominant eigenvalue equal to 11 (λ=1\lambda = 1), with all remaining eigenvalues satisfying ∣λi∣≤1|\lambda_i| \le 1.

    • The steady-state importance vector x\mathbf{x} satisfies:     Ax=1x=xA\mathbf{x} = 1\mathbf{x} = \mathbf{x}     The stationary PageRank vector is the normalized eigenvector of AA associated with λ=1\lambda = 1.

  • Detailed Four-Page Web Graph Example:

    • Network topology with 44 interconnected pages (n=4n = 4):

Directed Web Graph of Four Interconnected Pages
  • Outbound link inventory:

    • Page 1: Links to Page 2, Page 3, and Page 4 (33 outbound links). Each link receives weight 1/31/3.

    • Page 2: Links to Page 3 and Page 4 (22 outbound links). Each link receives weight 1/21/2.

    • Page 3: Links to Page 1 (11 outbound link). This link receives weight 11.

    • Page 4: Links to Page 1 and Page 3 (22 outbound links). Each link receives weight 1/21/2.

  • Page-by-page importance formulas:   x1=0x1+0x2+1x3+12x4x_1 = 0x_1 + 0x_2 + 1x_3 + \frac{1}{2}x_4   x2=13x1+0x2+0x3+0x4x_2 = \frac{1}{3}x_1 + 0x_2 + 0x_3 + 0x_4   x3=13x1+12x2+0x3+12x4x_3 = \frac{1}{3}x_1 + \frac{1}{2}x_2 + 0x_3 + \frac{1}{2}x_4   x4=13x1+12x2+0x3+0x4x_4 = \frac{1}{3}x_1 + \frac{1}{2}x_2 + 0x_3 + 0x_4

  • Formulating matrix equation x=Ax\mathbf{x} = A\mathbf{x}:   A=[0011/21/30001/31/201/21/31/200],x=[x1x2x3x4]A = \begin{bmatrix} 0 & 0 & 1 & 1/2 \\ 1/3 & 0 & 0 & 0 \\ 1/3 & 1/2 & 0 & 1/2 \\ 1/3 & 1/2 & 0 & 0 \end{bmatrix}, \quad \mathbf{x} = \begin{bmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \end{bmatrix}   Column sum checks:

    • Column 1: 0+1/3+1/3+1/3=10 + 1/3 + 1/3 + 1/3 = 1

    • Column 2: 0+0+1/2+1/2=10 + 0 + 1/2 + 1/2 = 1

    • Column 3: 1+0+0+0=11 + 0 + 0 + 0 = 1

    • Column 4: 1/2+0+1/2+0=11/2 + 0 + 1/2 + 0 = 1

  • 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:   x=[0.38710.12900.29030.1935]\mathbf{x} = \begin{bmatrix} 0.3871 \\ 0.1290 \\ 0.2903 \\ 0.1935 \end{bmatrix}

  • Ranking and authority hierarchy:

    • Page 1: Score = 0.38710.3871 (38.71%38.71\%) — Rank 1 (Highest authority).

    • Page 3: Score = 0.29030.2903 (29.03%29.03\%) — Rank 2.

    • Page 4: Score = 0.19350.1935 (19.35%19.35\%) — Rank 3.

    • Page 2: Score = 0.12900.1290 (12.90%12.90\%) — 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.