Mathematics for Electrical Science and Physical Science 1. Module 1, linear systems, matrix rank, eigenvalues and diagonalization.

GYMAT101 · 12 pages · Your place is saved in this browser

Contents · Linear Systems, Matrix Rank, and the Matrix Eigenvalue Problem
Text size18

Linear Systems, Matrix Rank, and the Matrix Eigenvalue Problem

This course guides learners from setting up and solving linear systems of equations using Gaussian elimination to analyzing vector independence and matrix rank. Learners will also determine matrix eigenvalues and eigenvectors, characterize algebraic and geometric multiplicities, and diagonalize square matrices via modal transformations.

Before you start: High school algebra and polynomial factorization; Basic 2D and 3D coordinate geometry; Familiarity with matrices, basic matrix multiplication, and determinants.

Your path through this module

  1. Systems of Linear Equations and Matrix Representations: A set of linear relationships can be packaged into a single matrix equation Ax = b whose solvability corresponds to the geometric intersection of hyperplanes.
  2. Elementary Row Operations and Gaussian Elimination: Elementary row operations transform a system into an equivalent upper triangular form that is readily solved from the bottom up.
  3. Row Echelon Form, Matrix Rank, and Linear Independence: The number of non-zero rows in echelon form defines the rank, which directly counts independent relationships and dictates solution behavior.
  4. The Matrix Eigenvalue Problem and Characteristic Equations: Eigenvalues are roots of the characteristic polynomial det(A - lambda I) = 0, identifying scalar factors by which matrix transformation acts purely as stretching.
  5. Eigenspaces, Multiplicity, and Diagonalization: When a matrix has a full set of linearly independent eigenvectors, it can be factored into a pure diagonal matrix through a change of basis.
  6. Gaussian Elimination and Physical Network Modeling: Physical networks governed by linear conservation laws convert directly into augmented matrices that yield branch currents via triangular elimination.
  7. Solving Systems with Infinite Solutions, Inconsistencies, and Free Parameters: Zero rows either indicate redundant equations giving rise to free parameters or, when paired with nonzero constants, signal total inconsistency.
  8. Determining Matrix Rank and Vector Independence: Evaluating whether vectors are linearly independent reduces to computing the echelon rank of the matrix formed by those vectors.
  9. Computing Eigenvalues and Eigenvectors of 2x2 and 3x3 Matrices: Solving (A - lambda I)x = 0 for each root lambda of the characteristic polynomial isolates the invariant directional axes of the matrix.
  10. Repeated Eigenvalues, Defect, and Complex Spectra: A repeated root may yield a multi-dimensional eigenspace or fewer eigenvectors than its multiplicity, indicating an incomplete or defective set of axes.
  11. Matrix Diagonalization and Modal Transformations: Multiplying A by its modal matrix X and its inverse transforms the matrix into a pure diagonal array of its eigenvalues.

Systems of Linear Equations and Matrix Representations

In algebra, you solved pairs of equations by substituting variables by hand. In engineering, problems like balancing forces in a bridge truss or analyzing electrical grids involve hundreds of simultaneous equations, requiring a compact and systematic bookkeeping method: matrices.

A linear equation relates variables raised only to the first power, such as a1x1+a2x2=ba_1 x_1 + a_2 x_2 = b. When several linear equations share the same set of unknowns, they form a system of linear equations. Instead of writing out variable names repeatedly, we extract their numerical weights into a rectangular grid called the coefficient matrix, denoted by AA.

We place the unknown variables into a vertical list called a column vector, x\mathbf{x}, and the right-hand constants into another column vector, b\mathbf{b}. The entire system is then written in the compact matrix form Ax=bA\mathbf{x} = \mathbf{b}. If the constant vector consists purely of zeros (b=0\mathbf{b} = \mathbf{0}), the system is homogeneous; otherwise, it is nonhomogeneous.

To prepare a system for systematic calculation, we append the constant column to the coefficient matrix, separated by a vertical divider. This combined table is the augmented matrix, written as [A∣b][A \mid \mathbf{b}]. It contains every essential number from the equations without the clutter of variable symbols.

Geometrically, each equation in a two-variable system represents a straight line on a plane. The solution to the system is the point where these lines meet. Three geometric cases can occur:

  • Intersecting lines: The lines cross at a single point, yielding exactly one unique solution.
  • Parallel lines: The lines have the same slope but different intercepts; they never meet, yielding no solution.
  • Coincident lines: The equations describe the exact same line; they touch everywhere, yielding infinitely many solutions.

Worked example

Consider the system:

2x1+x2=52x_1 + x_2 = 5 x1−x2=1x_1 - x_2 = 1
  1. Identify the coefficients and constants. The coefficients multiplying x1x_1 are 22 and 11; the coefficients multiplying x2x_2 are 11 and −1-1. The constants on the right are 55 and 11.

  2. Form the matrix equation Ax=bA\mathbf{x} = \mathbf{b}. Group the coefficients into AA, unknowns into x\mathbf{x}, and constants into b\mathbf{b}:

    [211−1][x1x2]=[51]\begin{bmatrix} 2 & 1 \\ 1 & -1 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 5 \\ 1 \end{bmatrix}
  3. Assemble the augmented matrix [A∣b][A \mid \mathbf{b}]. Place AA and b\mathbf{b} together:

    [2151−11]\left[\begin{array}{cc|c} 2 & 1 & 5 \\ 1 & -1 & 1 \end{array}\right]
  4. Classify geometrically. Rewriting both equations in slope-intercept form gives x2=−2x1+5x_2 = -2x_1 + 5 and x2=x1−1x_2 = x_1 - 1. The slopes (−2-2 and 11) are distinct, meaning the lines intersect at exactly one point, (2,1)(2, 1), giving a unique solution.

Remember

  • The matrix equation Ax=bA\mathbf{x} = \mathbf{b} condenses a system of equations by separating coefficients, variables, and constants.
  • The augmented matrix [A∣b][A \mid \mathbf{b}] records all coefficients and targets in one array ready for calculation.
  • In two dimensions, linear systems correspond to lines that are intersecting (unique solution), parallel (no solution), or coincident (infinite solutions).

Elementary Row Operations and Gaussian Elimination

In the previous lesson, we packed systems of linear equations into compact augmented matrices. Now, we need a systematic way to untangle those equations and find the unknowns without changing the true solution.

Imagine a mobile hanging from a ceiling. If every hanging piece is tangled with every other piece, finding the balance points is messy. But if you can isolate the lowest piece so it hangs freely, you can balance it first and easily work your way upward. Gaussian elimination untangles a system in precisely this way: it clears variables out of equations row by row until the system is straightforward to resolve.

Two matrices are row equivalent if one can be turned into the other using steps that preserve the original solution set. These allowable moves are called elementary row operations, and there are only three:

  1. Row interchange (Ri↔RjR_i \leftrightarrow R_j): Swap two rows, which corresponds to reordering the equations.
  2. Row scaling (cRic R_i, with c≠0c \neq 0): Multiply an entire row by a non-zero number, which scales both sides of an equality.
  3. Row replacement (Ri→Ri+cRjR_i \to R_i + c R_j): Add a multiple of one row to another, which eliminates a variable.

By systematically using row replacement from left to right, we place zeros beneath the first non-zero entry of each row. This organizes the matrix into an upper triangular form, where all entries below the main diagonal are zero. From this form, the bottom equation contains only the final variable. We find its value immediately and use back substitution—substituting known values upward into earlier equations—to find all remaining unknowns.

Worked example

Solve the system using Gaussian elimination:

x+2y=53x+4y=7\begin{aligned} x + 2y &= 5 \\ 3x + 4y &= 7 \end{aligned}
  1. Write the augmented matrix:

    [125347]\left[\begin{array}{cc|c} 1 & 2 & 5 \\ 3 & 4 & 7 \end{array}\right]

    This organizes all coefficients and constants into rows and columns.

  2. Eliminate the xx-term from the second row: Apply R2→R2−3R1R_2 \to R_2 - 3R_1. We choose −3-3 because 3−3(1)=03 - 3(1) = 0, giving a zero beneath the leading entry:

    [1250−2−8]\left[\begin{array}{cc|c} 1 & 2 & 5 \\ 0 & -2 & -8 \end{array}\right]

    The system is now in upper triangular form.

  3. Solve the bottom equation: Row 2 reads −2y=−8-2y = -8. Dividing by −2-2 yields y=4y = 4.

  4. Back-substitute to find the remaining variable: Substitute y=4y = 4 into Row 1 (x+2y=5x + 2y = 5):

    x+2(4)=5  ⟹  x=−3x + 2(4) = 5 \implies x = -3

    The unique solution is x=−3x = -3 and y=4y = 4.

Remember

  • The three elementary row operations (swap, scale, replace) produce row-equivalent systems with identical solutions.
  • Gaussian elimination drives lower-left entries to zero to create an upper triangular system.
  • Back substitution solves the triangular system sequentially from the bottom row up to the top.

Row Echelon Form, Matrix Rank, and Linear Independence

In the previous lesson, you used Gaussian elimination to simplify systems into an upper triangular shape. Now, we formalize this staircase layout to identify redundant equations and determine exactly when a system has solutions.

A matrix is in row echelon form when its non-zero rows form a descending staircase: the first non-zero number in each row—called the pivot or leading entry—sits strictly to the right of the pivot in the row above it, and any all-zero rows rest at the bottom.

Imagine combining recipes: if you already have flour and sugar, a pre-mixed bag of flour and sugar gives you no new ingredients. A set of vectors is linearly independent if no vector in the set can be written as a linear combination (a sum of scalar multiples) of the others. If one vector can be built from the rest, the set is linearly dependent and carries redundant information.

The rank of a matrix AA, written rank(A)\text{rank}(A), is the number of pivots in its row echelon form. It counts the number of truly independent rows—or columns—in the matrix. Remarkably, a matrix always has the same number of independent columns as independent rows, so rank(A)=rank(AT)\text{rank}(A) = \text{rank}(A^T).

To know if Ax=bAx = b has a solution, compare the rank of the coefficient matrix AA to the rank of the augmented matrix [A∣b][A \mid b]. A system is consistent (solvable) if and only if rank(A)=rank([A∣b])\text{rank}(A) = \text{rank}([A \mid b]). If adding the target vector bb creates a new pivot in the final column, it describes an impossible equation like 0=10 = 1. If consistent and the rank rr equals the number of variables nn, the solution is unique; if r<nr < n, there are n−rn - r free parameters (degrees of freedom), yielding infinitely many solutions.

Worked example

Determine the consistency and number of solutions for the system represented by [A∣b]=[112322460112][A \mid b] = \begin{bmatrix} 1 & 1 & 2 & 3 \\ 2 & 2 & 4 & 6 \\ 0 & 1 & 1 & 2 \end{bmatrix}.

  1. Row-reduce to find pivots: Subtract twice the first row from the second (R2←R2−2R1R_2 \leftarrow R_2 - 2R_1) to eliminate the leading entry in row 2. This yields [112300000112]\begin{bmatrix} 1 & 1 & 2 & 3 \\ 0 & 0 & 0 & 0 \\ 0 & 1 & 1 & 2 \end{bmatrix}.
  2. Arrange in row echelon form: Swap rows 2 and 3 so all-zero rows are at the bottom: [112301120000]\begin{bmatrix} 1 & 1 & 2 & 3 \\ 0 & 1 & 1 & 2 \\ 0 & 0 & 0 & 0 \end{bmatrix}. The pivots are the leading entries in columns 1 and 2.
  3. Compare ranks and find degrees of freedom: The coefficient matrix has 2 pivots, so rank(A)=2\text{rank}(A) = 2. The augmented matrix introduces no new pivot, so rank([A∣b])=2\text{rank}([A \mid b]) = 2. Because both ranks match, the system is consistent. With n=3n = 3 variables and rank r=2r = 2, there is 3−2=13 - 2 = 1 degree of freedom, giving infinitely many solutions.

Remember

  • The rank rr is the count of non-zero rows in row echelon form and equals the number of linearly independent rows or columns.
  • A system is consistent if and only if rank(A)=rank([A∣b])\text{rank}(A) = \text{rank}([A \mid b]).
  • A consistent system has a unique solution if r=nr = n, or infinitely many solutions with n−rn - r free variables if r<nr < n.

The Matrix Eigenvalue Problem and Characteristic Equations

Until now, you used matrices to solve static systems Ax=bAx = b, finding an unknown vector xx that maps to a specific target bb. Now, consider what happens when a square matrix AA acts as an operator that transforms space by rotating and stretching vectors.

Imagine stretching a rubber sheet in two directions. Most arrows drawn on the sheet tilt and change direction, but along specific axes, arrows simply stretch or shrink while pointing along their original line. A non-zero vector xx that does not rotate when multiplied by AA is an eigenvector. The scaling factor λ\lambda is its corresponding eigenvalue. We write this relationship as the eigenvalue problem:

Ax=λxAx = \lambda x

Rearranging this into a homogeneous system gives (A−λI)x=0(A - \lambda I)x = 0, where II is the identity matrix. From your work on matrix rank, a non-trivial solution x≠0x \neq 0 exists if and only if the matrix (A−λI)(A - \lambda I) is singular. Therefore, its determinant must equal zero:

det⁡(A−λI)=0\det(A - \lambda I) = 0

This is the characteristic equation. Expanding the determinant produces the characteristic polynomial in λ\lambda. For an n×nn \times n matrix, the coefficients are matrix invariants—quantities that remain constant regardless of coordinate choices. For a 2×22 \times 2 matrix, the equation simplifies to λ2−S1λ+S2=0\lambda^2 - S_1\lambda + S_2 = 0, where S1=tr(A)S_1 = \text{tr}(A) is the trace (the sum of the main diagonal elements) and S2=det⁡(A)S_2 = \det(A). For a 3×33 \times 3 matrix, it expands to λ3−S1λ2+S2λ−S3=0\lambda^3 - S_1\lambda^2 + S_2\lambda - S_3 = 0, where S2S_2 is the sum of the principal 2×22 \times 2 minors and S3=det⁡(A)S_3 = \det(A).

The collection of all eigenvalues of AA is called the spectrum of AA. The largest absolute value in the spectrum is the spectral radius, denoted ρ(A)=max⁡i∣λi∣\rho(A) = \max_i |\lambda_i|. It tells an engineer the maximum amplification factor that AA can apply to any invariant vector.

Worked example

Find the spectrum and spectral radius of A=(4123)A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}.

  1. Form the characteristic matrix: Subtract λ\lambda along the main diagonal to get A−λI=(4−λ123−λ)A - \lambda I = \begin{pmatrix} 4 - \lambda & 1 \\ 2 & 3 - \lambda \end{pmatrix}.
  2. Set the determinant to zero: Calculate det⁡(A−λI)=(4−λ)(3−λ)−(1)(2)=0\det(A - \lambda I) = (4 - \lambda)(3 - \lambda) - (1)(2) = 0, which simplifies to λ2−7λ+10=0\lambda^2 - 7\lambda + 10 = 0. Note that S1=4+3=7S_1 = 4 + 3 = 7 and S2=12−2=10S_2 = 12 - 2 = 10.
  3. Solve for the eigenvalues: Factor the quadratic to get (λ−5)(λ−2)=0(\lambda - 5)(\lambda - 2) = 0, yielding λ1=5\lambda_1 = 5 and λ2=2\lambda_2 = 2.
  4. Determine the spectrum and spectral radius: The spectrum is the set {5,2}\{5, 2\}. The spectral radius is ρ(A)=max⁡(∣5∣,∣2∣)=5\rho(A) = \max(|5|, |2|) = 5.

Remember

  • An eigenvector satisfies Ax=λxAx = \lambda x; its direction is preserved under multiplication by AA.
  • Eigenvalues are the roots of the characteristic equation det⁡(A−λI)=0\det(A - \lambda I) = 0.
  • The spectrum is the set of all eigenvalues; the spectral radius is the largest magnitude among them.

Eigenspaces, Multiplicity, and Diagonalization

In the previous lesson, we found the individual eigenvalues and eigenvectors that describe the axes along which a matrix purely scales space. Now, we assemble those directions into a unified coordinate system that uncouples matrix operations completely.

Imagine stretching a sheet of rubber diagonally. Along the stretch axes, points move straight outward without rotating. The collection of all eigenvectors belonging to a specific eigenvalue λ\lambda, combined with the zero vector, forms an eigenspace. An eigenspace is a vector subspace—a line, plane, or higher-dimensional region through the origin—on which the matrix acts purely as multiplication by λ\lambda.

When finding eigenvalues from det⁡(A−λI)=0\det(A - \lambda I) = 0, a root may repeat. The number of times an eigenvalue appears as a root is its algebraic multiplicity (MλM_\lambda). The number of linearly independent eigenvectors you can actually find for that eigenvalue—the dimension of its eigenspace—is its geometric multiplicity (mλm_\lambda). The geometric multiplicity never exceeds the algebraic multiplicity (1≤mλ≤Mλ1 \le m_\lambda \le M_\lambda). If mλ<Mλm_\lambda < M_\lambda, the difference is called the defect, Δλ=Mλ−mλ\Delta_\lambda = M_\lambda - m_\lambda.

An n×nn \times n matrix is diagonalizable if and only if every eigenvalue has zero defect, providing nn total linearly independent eigenvectors. Packaging these vectors side by side as columns forms the modal matrix XX. Because its columns are independent, XX is invertible, and changing coordinates untangles AA into a pure diagonal matrix:

D=X−1AXD = X^{-1} A X

where the diagonal entries of DD are the eigenvalues. This representation simplifies repeated matrix multiplication, since Am=XDmX−1A^m = X D^m X^{-1}, where DmD^m is computed simply by raising each diagonal entry to the mm-th power.

Worked example

Diagonalize the matrix A=[4123]A = \begin{bmatrix} 4 & 1 \\ 2 & 3 \end{bmatrix} and determine A3A^3.

  1. Find eigenvalues and multiplicities: Solve det⁡(A−λI)=(4−λ)(3−λ)−2=λ2−7λ+10=0\det(A - \lambda I) = (4 - \lambda)(3 - \lambda) - 2 = \lambda^2 - 7\lambda + 10 = 0. Factoring gives λ1=5\lambda_1 = 5 and λ2=2\lambda_2 = 2. Each root appears once, so M1=M2=1M_1 = M_2 = 1. Because 1≤mλ≤Mλ1 \le m_\lambda \le M_\lambda, both geometric multiplicities equal 11. The defect is zero, so AA is diagonalizable.
  2. Find independent eigenvectors: Solve (A−λI)v=0(A - \lambda I)\mathbf{v} = \mathbf{0} for each eigenvalue. For λ1=5\lambda_1 = 5, [−112−2]v1=0\begin{bmatrix} -1 & 1 \\ 2 & -2 \end{bmatrix}\mathbf{v}_1 = \mathbf{0} yields v1=[11]\mathbf{v}_1 = \begin{bmatrix} 1 \\ 1 \end{bmatrix}. For λ2=2\lambda_2 = 2, [2121]v2=0\begin{bmatrix} 2 & 1 \\ 2 & 1 \end{bmatrix}\mathbf{v}_2 = \mathbf{0} yields v2=[1−2]\mathbf{v}_2 = \begin{bmatrix} 1 \\ -2 \end{bmatrix}.
  3. Construct XX and DD: Place eigenvectors into columns to form X=[111−2]X = \begin{bmatrix} 1 & 1 \\ 1 & -2 \end{bmatrix}, which sets D=[5002]D = \begin{bmatrix} 5 & 0 \\ 0 & 2 \end{bmatrix}. Inverting XX gives X−1=13[211−1]X^{-1} = \frac{1}{3}\begin{bmatrix} 2 & 1 \\ 1 & -1 \end{bmatrix}.
  4. Compute A3A^3: Calculate the diagonal power D3=[530023]=[125008]D^3 = \begin{bmatrix} 5^3 & 0 \\ 0 & 2^3 \end{bmatrix} = \begin{bmatrix} 125 & 0 \\ 0 & 8 \end{bmatrix}, then transform back: A3=XD3X−1=[86397847]A^3 = X D^3 X^{-1} = \begin{bmatrix} 86 & 39 \\ 78 & 47 \end{bmatrix}.

Remember

  • Algebraic multiplicity MλM_\lambda counts root occurrences, while geometric multiplicity mλm_\lambda counts independent eigenvectors; a defect occurs when mλ<Mλm_\lambda < M_\lambda.
  • A matrix is diagonalizable if and only if total defect is zero, allowing columns of independent eigenvectors to form an invertible modal matrix XX.
  • Powers decouple under diagonalization via Am=XDmX−1A^m = X D^m X^{-1}, where DmD^m simply raises each diagonal entry to the power mm.

Gaussian Elimination and Physical Network Modeling

Equipped with the rules of linear equations and Gaussian elimination, you can now apply them to basic 2×22 \times 2 systems and circuit loop analysis. Physical networks governed by linear conservation laws convert directly into augmented matrices that yield branch currents via triangular elimination.

The idea

A system of mm linear equations in nn unknowns x1,x2,…,xnx_1, x_2, \dots, x_n is written in matrix form as Ax=bAx = b, where the coefficient matrix A=[ajk]A = [a_{jk}] holds the multipliers of the unknowns, xx is the column vector of unknowns, and bb is the column vector of right-hand side constants:

Matrix equation Ax = b showing coefficient matrix, unknown vector, and constant vector

To solve the system without repeatedly writing the variable names, we append the column bb to the right of AA to form the augmented matrix A~\tilde{A}:

Augmented matrix with coefficients separated from constants

Applying elementary row operations reduces A~\tilde{A} to an upper triangular form, where all entries below the main diagonal are zero. Once the system is triangular, we apply back substitution: we solve the last nonzero equation for its single unknown, then substitute that value upward row by row to find the remaining unknowns.

Physical networks produce linear systems directly from conservation laws. In direct-current (DC) electrical circuits, Kirchhoff's current law (KCL) states that the algebraic sum of currents meeting at any node is zero, and Kirchhoff's voltage law (KVL) states that the sum of voltage drops R⋅iR \cdot i around any closed loop equals the sum of voltage sources in that loop. Writing KCL for every node and KVL for every loop often gives an overdetermined consistent system—more equations than unknowns—where redundant node equations naturally reduce to zero rows (0=00 = 0) during elimination.

Worked example

Given: Three 2×22 \times 2 linear systems: Case (i) x1+x2=1x_1 + x_2 = 1 and 2x1−x2=02x_1 - x_2 = 0; Case (ii) x1+x2=1x_1 + x_2 = 1 and 2x1+2x2=22x_1 + 2x_2 = 2; Case (iii) x1+x2=1x_1 + x_2 = 1 and x1+x2=0x_1 + x_2 = 0. Find: The geometric interpretation, existence, and uniqueness of the solution for each case.

  1. Interpret each equation in x1x_1 and x2x_2 as a straight line in the x1x2x_1 x_2-plane, because a pair (x1,x2)(x_1, x_2) solves the system if and only if the point P(x1,x2)P(x_1, x_2) lies on both lines.
  2. Plot Case (i) (x1+x2=1x_1 + x_2 = 1 and 2x1−x2=02x_1 - x_2 = 0): the lines have different slopes, so they intersect at a single point, giving precisely one unique solution.

Graph of two intersecting lines with unique solution

  1. Plot Case (ii) (x1+x2=1x_1 + x_2 = 1 and 2x1+2x2=22x_1 + 2x_2 = 2): the second equation is twice the first, so the two lines coincide and every point on the line is a solution, giving infinitely many solutions.

Graph of coincident lines with infinitely many solutions

  1. Plot Case (iii) (x1+x2=1x_1 + x_2 = 1 and x1+x2=0x_1 + x_2 = 0): the lines have the same slope but different intercepts, so they are parallel and never meet, giving no solution (which can never happen if the system is homogeneous with b=0b = 0).

Graph of parallel lines with no solution

Answer: Case (i) has precisely one solution (intersecting lines); Case (ii) has infinitely many solutions (coincident lines); Case (iii) has no solution (parallel lines).

More problems

Problem 2: Back substitution on a triangular system

Given: The upper triangular system 2x1+5x2=22x_1 + 5x_2 = 2 and 13x2=−2613x_2 = -26. Find: The values of x1x_1 and x2x_2.

  1. Divide the second equation 13x2=−2613x_2 = -26 by 1313 to get x2=−2x_2 = -2, since it contains only one unknown.
  2. Substitute x2=−2x_2 = -2 into the first equation to get 2x1+5(−2)=22x_1 + 5(-2) = 2, which simplifies to 2x1=122x_1 = 12 and yields x1=6x_1 = 6.

Answer: x1=6x_1 = 6, x2=−2x_2 = -2.

Problem 3: Gauss elimination on a 2x2 system

Given: The linear system 2x1+5x2=22x_1 + 5x_2 = 2 and −4x1+3x2=−30-4x_1 + 3x_2 = -30. Find: The solution (x1,x2)(x_1, x_2) using Gauss elimination.

  1. Write the augmented matrix [25:2−43:−30]\begin{bmatrix} 2 & 5 & : & 2 \\ -4 & 3 & : & -30 \end{bmatrix}.
  2. Perform R2→2R1+R2R_2 \to 2R_1 + R_2 to eliminate x1x_1 from the second row, giving [25:2013:−26]\begin{bmatrix} 2 & 5 & : & 2 \\ 0 & 13 & : & -26 \end{bmatrix}.
  3. Translate back to the triangular system 2x1+5x2=22x_1 + 5x_2 = 2 and 13x2=−2613x_2 = -26.
  4. Solve the bottom equation for x2=−26/13=−2x_2 = -26 / 13 = -2, then substitute into the top equation 2x1=2+10=122x_1 = 2 + 10 = 12 to get x1=6x_1 = 6.

Answer: x1=6x_1 = 6, x2=−2x_2 = -2.

Problem 4: Unknown currents in a two-loop circuit

Given: A two-loop DC circuit with nodes PP and QQ, resistors 20 Ω20\text{ }\Omega, 10 Ω10\text{ }\Omega, 25 Ω25\text{ }\Omega, and sources 80 V80\text{ V}, 90 V90\text{ V}. Find: The unknown branch currents i1i_1, i2i_2, and i3i_3.

  1. Apply Kirchhoff's current law at nodes PP and QQ to get i1−i2+i3=0i_1 - i_2 + i_3 = 0 and −i1+i2−i3=0-i_1 + i_2 - i_3 = 0.
  2. Apply Kirchhoff's voltage law to the right and left loops to get 10i2+25i3=9010i_2 + 25i_3 = 90 and 20i1+10i2=8020i_1 + 10i_2 = 80.
  3. Set i1=x1,i2=x2,i3=x3i_1 = x_1, i_2 = x_2, i_3 = x_3 and form the 4×44 \times 4 augmented matrix A~=[1−11:0−11−1:001025:9020100:80]\tilde{A} = \begin{bmatrix} 1 & -1 & 1 & : & 0 \\ -1 & 1 & -1 & : & 0 \\ 0 & 10 & 25 & : & 90 \\ 20 & 10 & 0 & : & 80 \end{bmatrix}.
  4. Add R1R_1 to R2R_2 and subtract 20R120R_1 from R4R_4 to eliminate x1x_1 below the first pivot.
  5. Move the resulting zero second row to the bottom so the nonzero rows sit in rows 2 and 3: [1−11:001025:90030−20:80000:0]\begin{bmatrix} 1 & -1 & 1 & : & 0 \\ 0 & 10 & 25 & : & 90 \\ 0 & 30 & -20 & : & 80 \\ 0 & 0 & 0 & : & 0 \end{bmatrix}.
  6. Apply R3→−3R2+R3R_3 \to -3R_2 + R_3 to reach upper triangular form [1−11:001025:9000−95:−190000:0]\begin{bmatrix} 1 & -1 & 1 & : & 0 \\ 0 & 10 & 25 & : & 90 \\ 0 & 0 & -95 & : & -190 \\ 0 & 0 & 0 & : & 0 \end{bmatrix}.
  7. Solve row 3 (−95x3=−190-95x_3 = -190) to get x3=2x_3 = 2, then substitute into row 2 (10x2+25(2)=9010x_2 + 25(2) = 90) to get x2=4x_2 = 4.
  8. Substitute x2=4x_2 = 4 and x3=2x_3 = 2 into row 1 (x1−4+2=0x_1 - 4 + 2 = 0) to find x1=2x_1 = 2.

Three-branch Kirchhoff circuit with resistors, voltage sources, and branch current directions

Watch out. In step 4, the operation eliminating x1x_1 from the fourth row (20x1+10x2=8020x_1 + 10x_2 = 80) is written in the step label as R3→−20R1+R3R_3 \to -20R_1 + R_3, but it actually acts on R4R_4 before the zero row in R2R_2 is swapped to the bottom.

Answer: i1=2 Ai_1 = 2\text{ A}, i2=4 Ai_2 = 4\text{ A}, i3=2 Ai_3 = 2\text{ A}.

Solving Systems with Infinite Solutions, Inconsistencies, and Free Parameters

You already know how to reduce an augmented matrix to upper triangular form and solve for a unique set of unknowns. Here we practice interpreting Gaussian elimination when entire rows of coefficients vanish, either producing arithmetic contradictions or leaving free parameters that generate infinitely many solutions.

The idea

When you apply elementary row operations—interchanging rows, multiplying a row by a nonzero constant, or adding a multiple of one row to another—you create a row-equivalent system. By the row equivalence theorem, row-equivalent systems share the exact same set of solutions. However, elimination does not always end with a neat triangle of nonzero pivots.

If elimination produces a row of all zeros on the coefficient side paired with a nonzero constant on the right—an equation of the form 0=c0 = c where c≠0c \neq 0—the system contains a contradiction condition. No values of the unknowns can make zero equal a nonzero number, so the system is inconsistent and has no solution.

Conversely, if a row becomes entirely zero including the constant (0=00 = 0), that equation was redundant and drops out. When fewer nonzero rows remain than there are unknowns, the system is underdetermined. The unknowns without leading pivots are free variables: you can assign them arbitrary parameters (such as t1,t2t_1, t_2) and express the remaining variables in terms of these parameters, yielding infinitely many solutions. In a homogeneous system (where all right-hand constants are zero), x1=x2=⋯=0x_1 = x_2 = \dots = 0 is always a trivial solution, while free variables generate infinitely many non-trivial solutions.

Worked example

Given: A linear system with the augmented matrix [321:3211:0624:6]\begin{bmatrix} 3 & 2 & 1 & : & 3 \\ 2 & 1 & 1 & : & 0 \\ 6 & 2 & 4 & : & 6 \end{bmatrix}. Find: The solution set of the linear system.

  1. Subtract 23\frac{2}{3} of Row 1 from Row 2 (Row 2→−23Row 1+Row 2\text{Row } 2 \rightarrow -\frac{2}{3}\text{Row } 1 + \text{Row } 2) and subtract 22 times Row 1 from Row 3 (Row 3→−2Row 1+Row 3\text{Row } 3 \rightarrow -2\text{Row } 1 + \text{Row } 3) to eliminate x1x_1 below the first pivot:

    [321:30−1313:−20−22:0]\begin{bmatrix} 3 & 2 & 1 & : & 3 \\ 0 & -\frac{1}{3} & \frac{1}{3} & : & -2 \\ 0 & -2 & 2 & : & 0 \end{bmatrix}
  2. Subtract 66 times Row 2 from Row 3 (Row 3→−6Row 2+Row 3\text{Row } 3 \rightarrow -6\text{Row } 2 + \text{Row } 3) to eliminate x2x_2 from the third row:

    [321:30−1313:−2000:12]\begin{bmatrix} 3 & 2 & 1 & : & 3 \\ 0 & -\frac{1}{3} & \frac{1}{3} & : & -2 \\ 0 & 0 & 0 & : & 12 \end{bmatrix}
  3. Translate the reduced rows back into algebraic equations:

    3x1+2x2+x3=33x_1 + 2x_2 + x_3 = 3
−13x2+13x3=−2-\frac{1}{3}x_2 + \frac{1}{3}x_3 = -2 0=120 = 12
  1. Interpret the bottom equation: because 0=120 = 12 is a false statement, no values of x1,x2,x3x_1, x_2, x_3 can satisfy the system.

Answer: The system is inconsistent and has no solutions.

More problems

Problem 1: Three-variable system with a unique solution

Given: The linear system x+y−z=9x + y - z = 9, 8y+6z=−68y + 6z = -6, and −2x+4y−6z=40-2x + 4y - 6z = 40. Find: The values of x,y,zx, y, z (denoted as x1,x2,x3x_1, x_2, x_3).

  1. Write the augmented matrix for the system:

    [11−1:9086:−6−24−6:40]\begin{bmatrix} 1 & 1 & -1 & : & 9 \\ 0 & 8 & 6 & : & -6 \\ -2 & 4 & -6 & : & 40 \end{bmatrix}
  2. Apply Row 3→2Row 1+Row 3\text{Row } 3 \rightarrow 2\text{Row } 1 + \text{Row } 3 to eliminate the first variable from Row 3:

    [11−1:9086:−606−8:58]\begin{bmatrix} 1 & 1 & -1 & : & 9 \\ 0 & 8 & 6 & : & -6 \\ 0 & 6 & -8 & : & 58 \end{bmatrix}
  3. Divide Row 2 and Row 3 by 22 to simplify the arithmetic:

    [11−1:9043:−303−4:29]\begin{bmatrix} 1 & 1 & -1 & : & 9 \\ 0 & 4 & 3 & : & -3 \\ 0 & 3 & -4 & : & 29 \end{bmatrix}
  4. Apply Row 3→−34Row 2+Row 3\text{Row } 3 \rightarrow -\frac{3}{4}\text{Row } 2 + \text{Row } 3 to reach upper triangular form:

    [11−1:9043:−300−254:1254]\begin{bmatrix} 1 & 1 & -1 & : & 9 \\ 0 & 4 & 3 & : & -3 \\ 0 & 0 & -\frac{25}{4} & : & \frac{125}{4} \end{bmatrix}
  5. Solve the third row −254x3=1254-\frac{25}{4}x_3 = \frac{125}{4} to get x3=−5x_3 = -5.

  6. Substitute x3=−5x_3 = -5 into the second row 4x2+3(−5)=−34x_2 + 3(-5) = -3 to get 4x2=124x_2 = 12, so x2=3x_2 = 3.

  7. Substitute x2=3x_2 = 3 and x3=−5x_3 = -5 into the first row x1+3−(−5)=9x_1 + 3 - (-5) = 9 to find x1=1x_1 = 1.

Watch out. In step 5, dividing 1254\frac{125}{4} by −254-\frac{25}{4} gives x3=−5x_3 = -5 (used in step 6), even if the minus sign is easy to drop on the first line.

Answer: x1=1x_1 = 1, x2=3x_2 = 3, x3=−5x_3 = -5.

Problem 2: Homogeneous system with non-trivial solutions

Given: The homogeneous augmented matrix [241:0−11−2:0406:0]\begin{bmatrix} 2 & 4 & 1 & : & 0 \\ -1 & 1 & -2 & : & 0 \\ 4 & 0 & 6 & : & 0 \end{bmatrix}. Find: The parameterized solution set for x1,x2,x3x_1, x_2, x_3.

  1. Apply Row 2→12Row 1+Row 2\text{Row } 2 \rightarrow \frac{1}{2}\text{Row } 1 + \text{Row } 2 and Row 3→−2Row 1+Row 3\text{Row } 3 \rightarrow -2\text{Row } 1 + \text{Row } 3 to clear the first column:

    [241:003−32:00−84:0]\begin{bmatrix} 2 & 4 & 1 & : & 0 \\ 0 & 3 & -\frac{3}{2} & : & 0 \\ 0 & -8 & 4 & : & 0 \end{bmatrix}
  2. Scale Row 2 by 13\frac{1}{3} and Row 3 by 14\frac{1}{4} to simplify the rows:

    [241:001−12:00−21:0]\begin{bmatrix} 2 & 4 & 1 & : & 0 \\ 0 & 1 & -\frac{1}{2} & : & 0 \\ 0 & -2 & 1 & : & 0 \end{bmatrix}
  3. Apply Row 3→2Row 2+Row 3\text{Row } 3 \rightarrow 2\text{Row } 2 + \text{Row } 3, reducing Row 3 to all zeros:

    [241:001−12:0000:0]\begin{bmatrix} 2 & 4 & 1 & : & 0 \\ 0 & 1 & -\frac{1}{2} & : & 0 \\ 0 & 0 & 0 & : & 0 \end{bmatrix}
  4. Write the remaining equations 2x1+4x2+x3=02x_1 + 4x_2 + x_3 = 0 and x2−12x3=0x_2 - \frac{1}{2}x_3 = 0, giving x2=12x3x_2 = \frac{1}{2}x_3.

  5. Substitute x2=12x3x_2 = \frac{1}{2}x_3 into the first equation: 2x1+4(12x3)+x3=02x_1 + 4(\frac{1}{2}x_3) + x_3 = 0, so x1=−32x3x_1 = -\frac{3}{2}x_3.

  6. Set the free parameter x2=tx_2 = t to avoid fractions, which yields x3=2tx_3 = 2t and x1=−32(2t)=−3tx_1 = -\frac{3}{2}(2t) = -3t.

Answer: x1=−3tx_1 = -3t, x2=tx_2 = t, x3=2tx_3 = 2t, where tt is arbitrary.

Problem 3: Three equations in four unknowns (decimal coefficients)

Given: The augmented matrix [322−5:80.61.51.5−5.4:2.71.2−0.3−0.32.4:2.1]\begin{bmatrix} 3 & 2 & 2 & -5 & : & 8 \\ 0.6 & 1.5 & 1.5 & -5.4 & : & 2.7 \\ 1.2 & -0.3 & -0.3 & 2.4 & : & 2.1 \end{bmatrix}. Find: The general solution in terms of free parameters.

  1. Apply Row 2→−0.2Row 1+Row 2\text{Row } 2 \rightarrow -0.2\text{Row } 1 + \text{Row } 2 and Row 3→−0.4Row 1+Row 3\text{Row } 3 \rightarrow -0.4\text{Row } 1 + \text{Row } 3 to eliminate x1x_1 below Row 1:

    [322−5:801.11.1−4.4:1.10−1.1−1.14.4:−1.1]\begin{bmatrix} 3 & 2 & 2 & -5 & : & 8 \\ 0 & 1.1 & 1.1 & -4.4 & : & 1.1 \\ 0 & -1.1 & -1.1 & 4.4 & : & -1.1 \end{bmatrix}
  2. Apply Row 3→Row 2+Row 3\text{Row } 3 \rightarrow \text{Row } 2 + \text{Row } 3, turning Row 3 into a complete row of zeros:

    [322−5:801.11.1−4.4:1.10000:0]\begin{bmatrix} 3 & 2 & 2 & -5 & : & 8 \\ 0 & 1.1 & 1.1 & -4.4 & : & 1.1 \\ 0 & 0 & 0 & 0 & : & 0 \end{bmatrix}
  3. Write the two nonzero equations: 3x1+2x2+2x3−5x4=83x_1 + 2x_2 + 2x_3 - 5x_4 = 8 and 1.1x2+1.1x3−4.4x4=1.11.1x_2 + 1.1x_3 - 4.4x_4 = 1.1.

  4. Divide the second equation by 1.11.1 to isolate x2=1−x3+4x4x_2 = 1 - x_3 + 4x_4.

  5. Substitute x2x_2 into the first equation: 3x1=−2(1−x3+4x4)−2x3+5x4+8=6−3x43x_1 = -2(1 - x_3 + 4x_4) - 2x_3 + 5x_4 + 8 = 6 - 3x_4, giving x1=2−x4x_1 = 2 - x_4.

  6. Assign arbitrary parameters x3=t1x_3 = t_1 and x4=t2x_4 = t_2 to express the infinite solution set.

Watch out. In step 4, x2=1−x3+4x4x_2 = 1 - x_3 + 4x_4 has a coefficient of 44 on x4x_4; take care not to drop the 44 when copying the final summary (x2=1−t1+t2x_2 = 1 - t_1 + t_2 vs. 1−t1+4t21 - t_1 + 4t_2).

Answer: x1=2−t2x_1 = 2 - t_2, x2=1−t1+t2x_2 = 1 - t_1 + t_2 (or 1−t1+4t21 - t_1 + 4t_2), x3=t1x_3 = t_1, x4=t2x_4 = t_2, with t1,t2t_1, t_2 arbitrary.

Problem 4: Four-unknown system requiring a row interchange

Given: The augmented matrix [055−10:02−3−36:2411−2:4]\begin{bmatrix} 0 & 5 & 5 & -10 & : & 0 \\ 2 & -3 & -3 & 6 & : & 2 \\ 4 & 1 & 1 & -2 & : & 4 \end{bmatrix}. Find: The general solution of the system.

  1. Interchange Row 1 and Row 3 to place a nonzero pivot in the top-left corner:

    [411−2:42−3−36:2055−10:0]\begin{bmatrix} 4 & 1 & 1 & -2 & : & 4 \\ 2 & -3 & -3 & 6 & : & 2 \\ 0 & 5 & 5 & -10 & : & 0 \end{bmatrix}
  2. Apply Row 2→−24Row 1+Row 2\text{Row } 2 \rightarrow -\frac{2}{4}\text{Row } 1 + \text{Row } 2 to eliminate the first entry in Row 2:

    [411−2:40−72−727:0055−10:0]\begin{bmatrix} 4 & 1 & 1 & -2 & : & 4 \\ 0 & -\frac{7}{2} & -\frac{7}{2} & 7 & : & 0 \\ 0 & 5 & 5 & -10 & : & 0 \end{bmatrix}
  3. Multiply Row 2 by −27-\frac{2}{7} to get a leading 11 in the second row:

    [411−2:4011−2:0055−10:0]\begin{bmatrix} 4 & 1 & 1 & -2 & : & 4 \\ 0 & 1 & 1 & -2 & : & 0 \\ 0 & 5 & 5 & -10 & : & 0 \end{bmatrix}
  4. Apply Row 3→−5Row 2+Row 3\text{Row } 3 \rightarrow -5\text{Row } 2 + \text{Row } 3 to eliminate Row 3 completely:

    [411−2:4011−2:00000:0]\begin{bmatrix} 4 & 1 & 1 & -2 & : & 4 \\ 0 & 1 & 1 & -2 & : & 0 \\ 0 & 0 & 0 & 0 & : & 0 \end{bmatrix}
  5. Solve the second row x2+x3−2x4=0x_2 + x_3 - 2x_4 = 0 by back substitution to get x2=2x4−x3x_2 = 2x_4 - x_3.

  6. Substitute x2x_2 into the first row 4x1+x2+x3−2x4=44x_1 + x_2 + x_3 - 2x_4 = 4: 4x1=−2x4+x3−x3+2x4+4=44x_1 = -2x_4 + x_3 - x_3 + 2x_4 + 4 = 4, so x1=1x_1 = 1.

  7. Let the free variables be x3=t1x_3 = t_1 and x4=t2x_4 = t_2.

Solution summary. The two non-pivot variables are free parameters; the pivot variables depend on them.

VariableRoleValue
x1x_1Pivot variable11
x2x_2Pivot variable2t2−t12t_2 - t_1
x3x_3Free variablet1t_1
x4x_4Free variablet2t_2

Here, t1t_1 and t2t_2 are arbitrary real numbers.

Determining Matrix Rank and Vector Independence

With Gaussian elimination mastered, you can already reduce any system of equations to an upper staircase structure and identify free parameters. Now we use row echelon reduction as a direct measurement tool to find the rank of a matrix and test whether a set of vectors is linearly independent.

The idea

A linear combination of mm vectors a(1),a(2),…,a(m)a_{(1)}, a_{(2)}, \dots, a_{(m)} is a weighted sum c1a(1)+c2a(2)+⋯+cma(m)c_1 a_{(1)} + c_2 a_{(2)} + \dots + c_m a_{(m)} using scalar multipliers c1,…,cmc_1, \dots, c_m. The vectors form a linearly independent set if the vector equation c1a(1)+c2a(2)+⋯+cma(m)=0c_1 a_{(1)} + c_2 a_{(2)} + \dots + c_m a_{(m)} = 0 holds only when every scalar cjc_j is zero. If the equation can be satisfied with scalars not all zero, the vectors are linearly dependent, meaning at least one vector is a redundant combination of the others.

Testing whether vectors are linearly independent reduces to computing the echelon rank of the matrix formed by those vectors. The rank of a matrix AA, written rank A\text{rank } A, is the maximum number of linearly independent row vectors (or column vectors, since rank A=rank AT\text{rank } A = \text{rank } A^T). Because elementary row operations only combine existing rows without creating or destroying independent directions, row-equivalent matrices have the exact same rank. In row echelon form, all zero rows sit at the bottom, and the leftmost nonzero entry (pivot) in each nonzero row lies strictly to the right of the pivot in the row above it. Thus, rank A\text{rank } A is simply the count rr of nonzero rows in row echelon form. If pp vectors are stacked as rows of a matrix AA, they are linearly independent if rank A=p\text{rank } A = p, and linearly dependent if rank A<p\text{rank } A < p (which always happens when the number of vectors pp exceeds the number of components nn).

By the Fundamental Theorem for Linear Systems, a system Ax=bAx = b with nn unknowns is consistent if and only if the coefficient matrix AA and the augmented matrix A~=[A∣b]\tilde{A} = [A \mid b] share the same rank rr. It has a unique solution when r=nr = n, and infinitely many solutions with n−rn - r arbitrary parameters when r<nr < n. A homogeneous system Ax=0Ax = 0 is always consistent with the trivial solution x=0x = 0, and possesses nontrivial solutions if and only if rank A<n\text{rank } A < n.

Worked example

Given: Three vectors [011]\begin{bmatrix} 0 & 1 & 1 \end{bmatrix}, [111]\begin{bmatrix} 1 & 1 & 1 \end{bmatrix}, and [001]\begin{bmatrix} 0 & 0 & 1 \end{bmatrix}. Find: Whether the set of vectors is linearly independent.

  1. Stack the three given vectors as the rows of a 3×33 \times 3 matrix A=[011111001]A = \begin{bmatrix} 0 & 1 & 1 \\ 1 & 1 & 1 \\ 0 & 0 & 1 \end{bmatrix} so that row reduction tests for redundant linear combinations among them.

  2. Swap Row 1 and Row 2 to place a nonzero pivot in the top-left entry r11r_{11}, yielding [111011001]\begin{bmatrix} 1 & 1 & 1 \\ 0 & 1 & 1 \\ 0 & 0 & 1 \end{bmatrix}.

  3. Observe that the leftmost nonzero entry in each row now shifts strictly to the right of the previous row, which matches the general row echelon structure:

General row echelon form of an augmented matrix, with leading entries stepping right and zero rows at the bottom

  1. Count the nonzero rows in this echelon matrix to find rank A=3\text{rank } A = 3, and compare it to the number of vectors p=3p = 3; because rank A=p\text{rank } A = p, no row can be eliminated as a combination of the others.

Answer: rank A=3\text{rank } A = 3, so the vectors are linearly independent.

More problems

Problem 1(iii): Independence of vectors containing a zero vector

Given: Vectors [0.4−0.20.2]\begin{bmatrix} 0.4 & -0.2 & 0.2 \end{bmatrix}, [000]\begin{bmatrix} 0 & 0 & 0 \end{bmatrix}, and [3.0−0.61.5]\begin{bmatrix} 3.0 & -0.6 & 1.5 \end{bmatrix}. Find: Whether the vectors are linearly independent.

  1. Form the matrix A=[0.4−0.20.20003.0−0.61.5]A = \begin{bmatrix} 0.4 & -0.2 & 0.2 \\ 0 & 0 & 0 \\ 3.0 & -0.6 & 1.5 \end{bmatrix} with the three given vectors as rows.
  2. Swap Row 2 and Row 3 to move the all-zero row to the bottom.
  3. Eliminate the first entry of the new Row 2 using Row 1, leaving two nonzero rows in echelon form.
  4. Compare rank A=2\text{rank } A = 2 with the number of vectors p=3p = 3 to conclude dependence.

Answer: rank A=2<3\text{rank } A = 2 < 3, so the vectors are linearly dependent.

Problem (Unnumbered): Rank of a 3×43 \times 4 matrix

Given: Matrix A=[3022−642245421−210−15]A = \begin{bmatrix} 3 & 0 & 2 & 2 \\ -6 & 42 & 24 & 54 \\ 21 & -21 & 0 & -15 \end{bmatrix}. Find: The rank of AA (and verify whether its rows a(1),a(2),a(3)a_{(1)}, a_{(2)}, a_{(3)} are dependent).

  1. Apply R2→2R1+R2R_2 \to 2R_1 + R_2 and R3→−7R1+R3R_3 \to -7R_1 + R_3 to clear column 1 below the first pivot.
  2. Write the intermediate matrix [302204228580−21−14−29]\begin{bmatrix} 3 & 0 & 2 & 2 \\ 0 & 42 & 28 & 58 \\ 0 & -21 & -14 & -29 \end{bmatrix}.
  3. Apply R3→12R2+R3R_3 \to \frac{1}{2}R_2 + R_3 to eliminate the third row completely, leaving two nonzero rows.
  4. Note that 6a(1)−12a(2)−a(3)=06a_{(1)} - \frac{1}{2}a_{(2)} - a_{(3)} = 0, confirming the three rows are linearly dependent.

Watch out. The final echelon matrix on page 18 writes the (2,4)(2,4) entry as 2828 instead of 5858, a handwriting slip after R3→12R2+R3R_3 \to \frac{1}{2}R_2 + R_3 has already zeroed out Row 3; the rank remains 22.

Answer: rank A=2\text{rank } A = 2.

Problem (i): Rank of a 3×33 \times 3 matrix

Given: Matrix A=(0353505010)A = \begin{pmatrix} 0 & 3 & 5 \\ 3 & 5 & 0 \\ 5 & 0 & 10 \end{pmatrix}. Find: The rank of matrix AA.

  1. Swap Row 1 and Row 3 to bring a nonzero pivot to the top-left corner: (5010350035)\begin{pmatrix} 5 & 0 & 10 \\ 3 & 5 & 0 \\ 0 & 3 & 5 \end{pmatrix}.
  2. Apply R2→−35R1+R2R_2 \to -\frac{3}{5}R_1 + R_2 to zero the (2,1)(2,1) entry, yielding (501005−6035)\begin{pmatrix} 5 & 0 & 10 \\ 0 & 5 & -6 \\ 0 & 3 & 5 \end{pmatrix}.
  3. Apply R3→−35R2+R3R_3 \to -\frac{3}{5}R_2 + R_3 to obtain (501005−600435)\begin{pmatrix} 5 & 0 & 10 \\ 0 & 5 & -6 \\ 0 & 0 & \frac{43}{5} \end{pmatrix} with three nonzero rows.

Answer: rank A=3\text{rank } A = 3.

Problem 1(i): Independence of three 4-component vectors

Given: Vectors [3402]\begin{bmatrix} 3 & 4 & 0 & 2 \end{bmatrix}, [2−137]\begin{bmatrix} 2 & -1 & 3 & 7 \end{bmatrix}, and [116−12−22]\begin{bmatrix} 1 & 16 & -12 & -22 \end{bmatrix}. Find: Whether the vectors are linearly independent.

  1. Form the matrix A=[34022−137116−12−22]A = \begin{bmatrix} 3 & 4 & 0 & 2 \\ 2 & -1 & 3 & 7 \\ 1 & 16 & -12 & -22 \end{bmatrix} and swap Row 1 with Row 3 for a unit pivot.
  2. Apply R2→−2R1+R2R_2 \to -2R_1 + R_2 and R3→−3R1+R3R_3 \to -3R_1 + R_3 to get [116−12−220−3327510−443668]\begin{bmatrix} 1 & 16 & -12 & -22 \\ 0 & -33 & 27 & 51 \\ 0 & -44 & 36 & 68 \end{bmatrix}.
  3. Scale Row 2 by 13\frac{1}{3} and Row 3 by 12\frac{1}{2} to simplify: [116−12−220−119170−221834]\begin{bmatrix} 1 & 16 & -12 & -22 \\ 0 & -11 & 9 & 17 \\ 0 & -22 & 18 & 34 \end{bmatrix}.
  4. Apply R3→−2R2+R3R_3 \to -2R_2 + R_3 to zero out Row 3 completely, leaving rank A=2<3\text{rank } A = 2 < 3.

Answer: rank A=2\text{rank } A = 2, so the given vectors are linearly dependent.

Problem (ii): Rank of a 4×44 \times 4 matrix

Given: Matrix A=(24816168424816221684)A = \begin{pmatrix} 2 & 4 & 8 & 16 \\ 16 & 8 & 4 & 2 \\ 4 & 8 & 16 & 2 \\ 2 & 16 & 8 & 4 \end{pmatrix}. Find: The rank of matrix AA.

  1. Divide every row by 22 to simplify arithmetic: (1248842124811842)\begin{pmatrix} 1 & 2 & 4 & 8 \\ 8 & 4 & 2 & 1 \\ 2 & 4 & 8 & 1 \\ 1 & 8 & 4 & 2 \end{pmatrix}.
  2. Apply R2→−8R1+R2R_2 \to -8R_1 + R_2, R3→−2R1+R3R_3 \to -2R_1 + R_3, and R4→−R1+R4R_4 \to -R_1 + R_4 to clear column 1.
  3. Write the resulting matrix (12480−12−30−63000−15060−6)\begin{pmatrix} 1 & 2 & 4 & 8 \\ 0 & -12 & -30 & -63 \\ 0 & 0 & 0 & -15 \\ 0 & 6 & 0 & -6 \end{pmatrix}.
  4. Apply R4→12R2+R4R_4 \to \frac{1}{2}R_2 + R_4 to eliminate the (4,2)(4,2) entry, giving row 4 as (00−15−752)\begin{pmatrix} 0 & 0 & -15 & -\frac{75}{2} \end{pmatrix}.
  5. Swap Row 3 and Row 4 to reach echelon form (12480−12−30−6300−15−752000−15)\begin{pmatrix} 1 & 2 & 4 & 8 \\ 0 & -12 & -30 & -63 \\ 0 & 0 & -15 & -\frac{75}{2} \\ 0 & 0 & 0 & -15 \end{pmatrix} with four nonzero rows.

Answer: rank A=4\text{rank } A = 4.

Computing Eigenvalues and Eigenvectors of 2x2 and 3x3 Matrices

Now that solving homogeneous systems is routine, we use that technique to extract the specific direction vectors scaled by matrix transformations. Solving (A−λI)x=0(A - \lambda I)x = 0 for each root λ\lambda of the characteristic polynomial isolates the invariant directional axes of the matrix.

The idea

An eigenvalue (or characteristic value or latent root) λ\lambda is a scalar for which Ax=λxAx = \lambda x has a nonzero solution vector xx, called an eigenvector (or characteristic vector). The set of all eigenvalues of AA is its spectrum, and the largest absolute value among them is the spectral radius. Rewriting the equation as (A−λI)x=0(A - \lambda I)x = 0 shows that the characteristic matrix (A−λI)(A - \lambda I) must be singular for a nonzero eigenvector to exist. Thus, its characteristic determinant D(λ)=det⁡(A−λI)D(\lambda) = \det(A - \lambda I) must equal zero.

Instead of expanding det⁡(A−λI)=0\det(A - \lambda I) = 0 from scratch every time, we can build the characteristic polynomial directly from matrix invariants. For a 2×22 \times 2 matrix, the characteristic equation is λ2−S1λ+S2=0\lambda^2 - S_1\lambda + S_2 = 0, where S1=a11+a22S_1 = a_{11} + a_{22} is the sum of the main diagonal elements and S2=∣A∣S_2 = |A| is the determinant. For a 3×33 \times 3 matrix, the formula is λ3−S1λ2+S2λ−S3=0\lambda^3 - S_1\lambda^2 + S_2\lambda - S_3 = 0. Here, S1=a11+a22+a33S_1 = a_{11} + a_{22} + a_{33} is the sum of the main diagonal elements, S2S_2 is the sum of the minors of the main diagonal elements, and S3=∣A∣S_3 = |A|.

To solve a cubic characteristic equation, test small integer values to find one root λ1\lambda_1, then use synthetic division to divide the cubic polynomial by (λ−λ1)(\lambda - \lambda_1) and reduce it to a factorable quadratic. Once all eigenvalues are known, substitute each λ\lambda one at a time into (A−λI)x=0(A - \lambda I)x = 0, apply row reduction to create a zero row, and assign a convenient value to the free variable to find the corresponding eigenvector.

Worked example

Given: Matrix A=[8−422]A = \begin{bmatrix} 8 & -4 \\ 2 & 2 \end{bmatrix}. Find: The eigenvalues (or spectrum) of AA.

  1. Write the 2×22 \times 2 characteristic equation λ2−S1λ+S2=0\lambda^2 - S_1\lambda + S_2 = 0, because its roots are the eigenvalues where ∣A−λI∣=0|A - \lambda I| = 0.
  2. Compute the trace S1=8+2=10S_1 = 8 + 2 = 10 by summing the main diagonal elements.
  3. Compute the determinant S2=∣A∣=(8)(2)−(−4)(2)=16+8=24S_2 = |A| = (8)(2) - (-4)(2) = 16 + 8 = 24.
  4. Substitute S1S_1 and S2S_2 into the formula to get D(λ)=λ2−10λ+24=0D(\lambda) = \lambda^2 - 10\lambda + 24 = 0.
  5. Factor the quadratic into (λ−6)(λ−4)=0(\lambda - 6)(\lambda - 4) = 0 to isolate the roots.

Answer: λ=6,4\lambda = 6, 4.

More problems

Problem 2: Spectrum of a 2x2 Matrix

Given: Matrix A=[122−2]A = \begin{bmatrix} 1 & 2 \\ 2 & -2 \end{bmatrix}. Find: The spectrum of AA.

  1. Compute the sum of the main diagonal elements S1=1−2=−1S_1 = 1 - 2 = -1.
  2. Compute the determinant S2=∣A∣=(1)(−2)−(2)(2)=−2−4=−6S_2 = |A| = (1)(-2) - (2)(2) = -2 - 4 = -6.
  3. Form the characteristic equation λ2−S1λ+S2=λ2+λ−6=0\lambda^2 - S_1\lambda + S_2 = \lambda^2 + \lambda - 6 = 0.
  4. Factor the polynomial as (λ+3)(λ−2)=0(\lambda + 3)(\lambda - 2) = 0 to find the roots λ=−3,2\lambda = -3, 2.

Answer: Spectrum of A={−3,2}A = \{-3, 2\}.

Problem 3: Eigenvectors of a 2x2 Matrix

Given: Matrix A=[8−422]A = \begin{bmatrix} 8 & -4 \\ 2 & 2 \end{bmatrix} with characteristic equation λ2−10λ+24=0\lambda^2 - 10\lambda + 24 = 0 and eigenvalues λ=4,6\lambda = 4, 6. Find: The eigenvectors of AA.

  1. Set up the homogeneous system [8−λ−422−λ][x1x2]=[00]\begin{bmatrix} 8-\lambda & -4 \\ 2 & 2-\lambda \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} to solve for each λ\lambda.
  2. Substitute λ=4\lambda = 4 to get (4−42−2)(x1x2)=[00]\begin{pmatrix} 4 & -4 \\ 2 & -2 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} and row-reduce to [4−400]\begin{bmatrix} 4 & -4 \\ 0 & 0 \end{bmatrix}.
  3. Solve 4x1−4x2=04x_1 - 4x_2 = 0 to get x1=x2x_1 = x_2, and choose x1=1x_1 = 1 to obtain the first eigenvector.
  4. Substitute λ=6\lambda = 6 to get [2−42−4][x1x2]=[00]\begin{bmatrix} 2 & -4 \\ 2 & -4 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}, which yields 2x1−4x2=02x_1 - 4x_2 = 0 or x1=2x2x_1 = 2x_2.
  5. Choose the free variable x2=1x_2 = 1 so that x1=2x_1 = 2 for the second eigenvector.

Answer: Eigenvectors are x=[11]x = \begin{bmatrix} 1 \\ 1 \end{bmatrix} for λ=4\lambda = 4, and x=[21]x = \begin{bmatrix} 2 \\ 1 \end{bmatrix} for λ=6\lambda = 6.

Problem 4: Eigenvalues and Eigenvectors by Direct Determinant

Given: Matrix A=[−522−2]A = \begin{bmatrix} -5 & 2 \\ 2 & -2 \end{bmatrix}. Find: The eigenvalues and eigenvectors of AA.

  1. Set det⁡(A−λI)=det⁡[−5−λ22−2−λ]=(−5−λ)(−2−λ)−4=0\det(A - \lambda I) = \det \begin{bmatrix} -5-\lambda & 2 \\ 2 & -2-\lambda \end{bmatrix} = (-5-\lambda)(-2-\lambda) - 4 = 0.
  2. Expand to λ2+7λ+6=0\lambda^2 + 7\lambda + 6 = 0 and apply the quadratic formula λ=−7±252\lambda = \frac{-7 \pm \sqrt{25}}{2} to get λ1=−1,λ2=−6\lambda_1 = -1, \lambda_2 = -6.
  3. For λ1=−1\lambda_1 = -1, form (A−λ1I)x=(−422−1)(x1x2)=(00)(A - \lambda_1 I)x = \begin{pmatrix} -4 & 2 \\ 2 & -1 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix}.
  4. Apply R2→12R1+R2R_2 \to \frac{1}{2}R_1 + R_2 to get (−4200)\begin{pmatrix} -4 & 2 \\ 0 & 0 \end{pmatrix}, yielding −4x1+2x2=0-4x_1 + 2x_2 = 0 or x2=2x1x_2 = 2x_1.
  5. Choose x1=1x_1 = 1 so that x2=2x_2 = 2 for the first eigenvector.
  6. For λ2=−6\lambda_2 = -6, form (A−λ2I)x=(1224)(x1x2)=(00)(A - \lambda_2 I)x = \begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix}.
  7. Apply R2→−2R1+R2R_2 \to -2R_1 + R_2 to get (1200)\begin{pmatrix} 1 & 2 \\ 0 & 0 \end{pmatrix}, yielding x1=−2x2x_1 = -2x_2; choose x2=1x_2 = 1 so x1=−2x_1 = -2.

Watch out. When substituting a negative eigenvalue like λ2=−6\lambda_2 = -6 into A−λIA - \lambda I, you are subtracting a negative number, so −5−(−6)-5 - (-6) becomes +1+1.

Answer: Eigenvalues λ1=−1,λ2=−6\lambda_1 = -1, \lambda_2 = -6; eigenvectors x=(12)x = \begin{pmatrix} 1 \\ 2 \end{pmatrix} for λ1=−1\lambda_1 = -1, and x=[−21]x = \begin{bmatrix} -2 \\ 1 \end{bmatrix} for λ2=−6\lambda_2 = -6.

Problem 5: Eigenvalues of a 3x3 Matrix

Given: Matrix A=[3105−2−3−4357]A = \begin{bmatrix} 3 & 10 & 5 \\ -2 & -3 & -4 \\ 3 & 5 & 7 \end{bmatrix}. Find: The eigenvalues of AA.

  1. Compute the sum of the main diagonal elements S1=3−3+7=7S_1 = 3 - 3 + 7 = 7.
  2. Sum the diagonal minors: S2=∣310−2−3∣+∣−3−457∣+∣3537∣=11−1+6=16S_2 = \begin{vmatrix} 3 & 10 \\ -2 & -3 \end{vmatrix} + \begin{vmatrix} -3 & -4 \\ 5 & 7 \end{vmatrix} + \begin{vmatrix} 3 & 5 \\ 3 & 7 \end{vmatrix} = 11 - 1 + 6 = 16.
  3. Compute the determinant S3=∣A∣=3(−21+20)−10(−14+12)+5(−10+9)=−3+20−5=12S_3 = |A| = 3(-21 + 20) - 10(-14 + 12) + 5(-10 + 9) = -3 + 20 - 5 = 12.
  4. Form the cubic characteristic equation λ3−7λ2+16λ−12=0\lambda^3 - 7\lambda^2 + 16\lambda - 12 = 0.
  5. Test integer roots: λ=1\lambda = 1 gives −2≠0-2 \neq 0, while λ=2\lambda = 2 gives 8−28+32−12=08 - 28 + 32 - 12 = 0.
  6. Use synthetic division with λ=2\lambda = 2 on coefficients 1,−7,16,−121, -7, 16, -12 to get the depressed quadratic λ2−5λ+6=0\lambda^2 - 5\lambda + 6 = 0.
  7. Factor (λ−3)(λ−2)=0(\lambda - 3)(\lambda - 2) = 0 to find the remaining roots λ=3,2\lambda = 3, 2.

Synthetic division by λ−2\lambda - 2.

Rowλ3\lambda^3 coefficientλ2\lambda^2 coefficientλ\lambda coefficientConstant
Coefficients11−7-71616−12-12
Products—22−10-101212
Quotient / remainder11−5-56600

Answer: 2,3,22, 3, 2.

Problem 6: Eigenvalues and Eigenvectors of a 3x3 Matrix

Given: Matrix A=(112−121013)A = \begin{pmatrix} 1 & 1 & 2 \\ -1 & 2 & 1 \\ 0 & 1 & 3 \end{pmatrix}. Find: The eigenvalues and eigenvectors of AA.

  1. Compute the invariants S1=1+2+3=6S_1 = 1 + 2 + 3 = 6, S2=3+5+3=11S_2 = 3 + 5 + 3 = 11, and S3=∣A∣=5+3−2=6S_3 = |A| = 5 + 3 - 2 = 6.
  2. Write λ3−6λ2+11λ−6=0\lambda^3 - 6\lambda^2 + 11\lambda - 6 = 0 and verify that λ=1\lambda = 1 is a root since 1−6+11−6=01 - 6 + 11 - 6 = 0.
  3. Divide by (λ−1)(\lambda - 1) synthetically to get λ2−5λ+6=0\lambda^2 - 5\lambda + 6 = 0, which factors to give λ=3,2\lambda = 3, 2.
  4. For λ=1\lambda = 1, swap rows of (A−I)(A - I) and apply R3→−R2+R3R_3 \to -R_2 + R_3 to get [−111012000]\begin{bmatrix} -1 & 1 & 1 \\ 0 & 1 & 2 \\ 0 & 0 & 0 \end{bmatrix}.
  5. Back-substitute x2=−2x3x_2 = -2x_3 into −x1+x2+x3=0-x_1 + x_2 + x_3 = 0 to get x1=−x3x_1 = -x_3, and choose x3=1x_3 = 1.
  6. For λ=2\lambda = 2, apply R2→−R1+R2R_2 \to -R_1 + R_2 on (A−2I)(A - 2I) to get −x1+x2+2x3=0-x_1 + x_2 + 2x_3 = 0 and x2+x3=0x_2 + x_3 = 0.
  7. Substitute x2=−x3x_2 = -x_3 to find x1=x3x_1 = x_3, and choose x3=1x_3 = 1 to get the second eigenvector.
  8. For λ=3\lambda = 3, swap R1,R2R_1, R_2 of (A−3I)(A - 3I) and eliminate using R2→−2R1+R2R_2 \to -2R_1 + R_2 and R3→−13R2+R3R_3 \to -\frac{1}{3}R_2 + R_3 to get 3x2=03x_2 = 0 and x1=x3=1x_1 = x_3 = 1.

Answer: Eigenvalues 1,2,31, 2, 3; eigenvectors x=[−1−21]x = \begin{bmatrix} -1 \\ -2 \\ 1 \end{bmatrix} for λ=1\lambda = 1, x=[1−11]x = \begin{bmatrix} 1 \\ -1 \\ 1 \end{bmatrix} for λ=2\lambda = 2, and x=[101]x = \begin{bmatrix} 1 \\ 0 \\ 1 \end{bmatrix} for λ=3\lambda = 3.

Repeated Eigenvalues, Defect, and Complex Spectra

Having found eigenvectors for simple distinct real roots, we now handle degeneracies such as repeated roots and complex rotation values. A repeated root may yield a multi-dimensional eigenspace or fewer eigenvectors than its multiplicity, indicating an incomplete or defective set of axes.

The idea

When two eigenvectors ww and xx share the same eigenvalue λ\lambda, any non-zero linear combination w+xw + x or scalar multiple kxkx is also an eigenvector for λ\lambda. Together with the zero vector, all eigenvectors for a fixed λ\lambda form a vector subspace called the eigenspace of AA corresponding to λ\lambda. The number of times λ\lambda appears as a root of the characteristic polynomial is its algebraic multiplicity MλM_\lambda. The number of linearly independent eigenvectors associated with λ\lambda is its geometric multiplicity mλm_\lambda, which equals the number of free variables in (A−λI)x=0(A - \lambda I)x = 0, or n−rank(A−λI)n - \text{rank}(A - \lambda I). The difference Δλ=Mλ−mλ\Delta_\lambda = M_\lambda - m_\lambda is the defect of λ\lambda. When Δλ=0\Delta_\lambda = 0, the repeated root provides a full set of independent axes; when Δλ>0\Delta_\lambda > 0, the matrix is defective and lacks enough eigenvectors to span that dimension.

Even when roots are repeated or come in complex conjugate pairs (a±iba \pm ib) representing rotations, the same elimination process applies using complex arithmetic. Throughout all calculations, you can verify your roots using key spectral properties: the sum of all eigenvalues equals the trace (the sum of the main diagonal entries), and their product equals the determinant ∣A∣|A|. Furthermore, the transpose ATA^T shares the exact same eigenvalues as AA, and for any eigenvalue λ\lambda of AA, the matrices kAkA, AnA^n, A−1A^{-1}, and adj A\text{adj } A have eigenvalues kλk\lambda, λn\lambda^n, 1/λ1/\lambda, and ∣A∣/λ|A|/\lambda respectively.

Worked example

Given: The 2×22 \times 2 matrix A=[01−10]A = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix} (Problem 1, page 41). Find: The eigenvalues and corresponding eigenvectors of AA.

  1. Compute the trace S1=0+0=0S_1 = 0 + 0 = 0 and the determinant S2=∣A∣=0−(−1)=1S_2 = |A| = 0 - (-1) = 1 to form the characteristic equation λ2−S1λ+S2=0\lambda^2 - S_1\lambda + S_2 = 0.
  2. Solve λ2+1=0\lambda^2 + 1 = 0 to obtain the purely imaginary conjugate eigenvalues λ=±i\lambda = \pm i.
  3. Substitute λ=i\lambda = i into the homogeneous system (A−λI)X=0(A - \lambda I)X = 0, which gives [−i1−1−i][x1x2]=[00]\begin{bmatrix} -i & 1 \\ -1 & -i \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}.
  4. Apply the complex row operation R2→iR1+R2R_2 \to iR_1 + R_2 to eliminate the second row, leaving [−i100]\begin{bmatrix} -i & 1 \\ 0 & 0 \end{bmatrix} and the single equation −ix1+x2=0-ix_1 + x_2 = 0, or x2=ix1x_2 = ix_1.
  5. Set the free parameter x1=1x_1 = 1 so that x2=ix_2 = i, giving the first complex eigenvector X=[1i]X = \begin{bmatrix} 1 \\ i \end{bmatrix}.
  6. Substitute the second root λ=−i\lambda = -i into (A−λI)X=0(A - \lambda I)X = 0 to get [i1−1−i][x1x2]=[00]\begin{bmatrix} i & 1 \\ -1 & -i \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}, and apply R2→−iR1+R2R_2 \to -iR_1 + R_2 to reduce it to ix1+x2=0ix_1 + x_2 = 0.
  7. Solve for x2=−ix1x_2 = -ix_1 and choose x1=1x_1 = 1 to obtain the conjugate eigenvector X=[1−i]X = \begin{bmatrix} 1 \\ -i \end{bmatrix}.

Answer: Eigenvalues λ=i,−i\lambda = i, -i; eigenvectors X=[1i]X = \begin{bmatrix} 1 \\ i \end{bmatrix} for λ=i\lambda = i and X=[1−i]X = \begin{bmatrix} 1 \\ -i \end{bmatrix} for λ=−i\lambda = -i.

More problems

Problem Q: Repeated root with two independent eigenvectors

Given: The matrix A=[−22−3−11−61−20]A = \begin{bmatrix} -2 & 2 & -3 \\ -1 & 1 & -6 \\ 1 & -2 & 0 \end{bmatrix}. Find: All eigenvalues and linearly independent eigenvectors of AA.

  1. Compute S1=−2+1+0=−1S_1 = -2 + 1 + 0 = -1, S2=−21S_2 = -21, and S3=∣A∣=45S_3 = |A| = 45 to write the characteristic equation λ3+λ2−21λ−45=0\lambda^3 + \lambda^2 - 21\lambda - 45 = 0.
  2. Factor out λ1=5\lambda_1 = 5 by synthetic division to get λ2+6λ+9=(λ+3)2=0\lambda^2 + 6\lambda + 9 = (\lambda + 3)^2 = 0, giving eigenvalues λ=5,−3,−3\lambda = 5, -3, -3.
  3. For λ=5\lambda = 5, set up (A−5I)x=0(A - 5I)x = 0 as [−72−32−4−6−1−2−5]x=0\begin{bmatrix} -7 & 2 & -3 \\ 2 & -4 & -6 \\ -1 & -2 & -5 \end{bmatrix} x = 0 and apply R2→27R1+R2R_2 \to \frac{2}{7}R_1 + R_2 and R3→−17R1+R3R_3 \to -\frac{1}{7}R_1 + R_3.
  4. Scale the reduced rows to obtain x2+2x3=0x_2 + 2x_3 = 0 and −7x1+2x2−3x3=0-7x_1 + 2x_2 - 3x_3 = 0, which yield x2=−2x3x_2 = -2x_3 and x1=−x3x_1 = -x_3.
  5. Set x3=−1x_3 = -1 to find the first eigenvector x1=[12−1]x_1 = \begin{bmatrix} 1 \\ 2 \\ -1 \end{bmatrix} for λ=5\lambda = 5.
  6. For the repeated root λ=−3\lambda = -3, form (A+3I)x=0(A + 3I)x = 0 as [12−324−6−1−23]x=0\begin{bmatrix} 1 & 2 & -3 \\ 2 & 4 & -6 \\ -1 & -2 & 3 \end{bmatrix} x = 0 and reduce with R2→−2R1+R2R_2 \to -2R_1 + R_2 and R3→R2+R3R_3 \to R_2 + R_3 to get two zero rows.
  7. Solve the remaining equation x1=3x3−2x2x_1 = 3x_3 - 2x_2 by choosing (x2,x3)=(1,0)(x_2, x_3) = (1, 0) and then (x2,x3)=(0,1)(x_2, x_3) = (0, 1) to get two independent eigenvectors.

Synthetic division by λ−5\lambda - 5.

Rowλ3\lambda^3 coefficientλ2\lambda^2 coefficientλ\lambda coefficientConstant
Coefficients1111−21-21−45-45
Products—5530304545
Quotient / remainder11669900

Watch out. The given matrix has a21=−1a_{21} = -1 and a31=1a_{31} = 1, which gives S2=−13S_2 = -13, ∣A∣=−27|A| = -27, and x2=2x3x_2 = 2x_3 for λ=5\lambda = 5, whereas the worked solution switches those entries to a21=2a_{21} = 2 and a31=−1a_{31} = -1 (making S2=−21S_2 = -21 and ∣A∣=45|A| = 45) and writes x2=−2x3x_2 = -2x_3.

Answer: Eigenvalues λ=5,−3,−3\lambda = 5, -3, -3; eigenvectors x1=[12−1]x_1 = \begin{bmatrix} 1 \\ 2 \\ -1 \end{bmatrix} for λ=5\lambda = 5, and x2=[−210]x_2 = \begin{bmatrix} -2 \\ 1 \\ 0 \end{bmatrix}, x3=[301]x_3 = \begin{bmatrix} 3 \\ 0 \\ 1 \end{bmatrix} for λ=−3\lambda = -3.

Problem 1: Triple root with a two-dimensional eigenspace

Given: The matrix A=[6−6514−13107−64]A = \begin{bmatrix} 6 & -6 & 5 \\ 14 & -13 & 10 \\ 7 & -6 & 4 \end{bmatrix}. Find: All eigenvalues and eigenvectors of AA.

  1. Calculate the trace S1=6−13+4=−3S_1 = 6 - 13 + 4 = -3, sum of minors S2=6+8−11=3S_2 = 6 + 8 - 11 = 3, and determinant S3=48−84+35=−1S_3 = 48 - 84 + 35 = -1.
  2. Write the characteristic equation λ3+3λ2+3λ+1=0\lambda^3 + 3\lambda^2 + 3\lambda + 1 = 0 and test λ1=−1\lambda_1 = -1 by synthetic division.
  3. Factor the quotient λ2+2λ+1=(λ+1)2=0\lambda^2 + 2\lambda + 1 = (\lambda + 1)^2 = 0 to find the triple eigenvalue λ=−1,−1,−1\lambda = -1, -1, -1.
  4. Substitute λ=−1\lambda = -1 into (A−λI)x=0(A - \lambda I)x = 0 to obtain the system [7−6514−12107−65][x1x2x3]=[000]\begin{bmatrix} 7 & -6 & 5 \\ 14 & -12 & 10 \\ 7 & -6 & 5 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}.
  5. Eliminate the second and third proportional rows to leave a single plane equation 7x1−6x2+5x3=07x_1 - 6x_2 + 5x_3 = 0, or 7x1=6x2−5x37x_1 = 6x_2 - 5x_3.
  6. Choose x3=0x_3 = 0 and x2=7x_2 = 7 to get x1=6x_1 = 6; choose x2=0x_2 = 0 and x3=7x_3 = 7 to get x1=−5x_1 = -5; or choose x1=0x_1 = 0 and x2=5x_2 = 5 to get x3=6x_3 = 6.

Synthetic division by λ+1\lambda + 1.

Rowλ3\lambda^3 coefficientλ2\lambda^2 coefficientλ\lambda coefficientConstant
Coefficients11333311
Products—−1-1−2-2−1-1
Quotient / remainder11221100

Watch out. Because rank(A+I)=1\text{rank}(A + I) = 1, the eigenspace has geometric multiplicity m−1=3−1=2m_{-1} = 3 - 1 = 2, so only two of the three listed vectors are linearly independent; also note that the final line writes λ=7\lambda = 7 instead of λ=−1\lambda = -1 and R3→−2R1+R3R_3 \to -2R_1 + R_3 instead of R3→−R1+R3R_3 \to -R_1 + R_3.

Answer: Eigenvalues λ=−1,−1,−1\lambda = -1, -1, -1; eigenvectors x1=[670]x_1 = \begin{bmatrix} 6 \\ 7 \\ 0 \end{bmatrix}, x2=[−507]x_2 = \begin{bmatrix} -5 \\ 0 \\ 7 \end{bmatrix}, and x3=[056]x_3 = \begin{bmatrix} 0 \\ 5 \\ 6 \end{bmatrix}.

Problem 2: Defective triple root with one eigenvector

Given: The matrix A=[−3−7−5243122]A = \begin{bmatrix} -3 & -7 & -5 \\ 2 & 4 & 3 \\ 1 & 2 & 2 \end{bmatrix}. Find: The eigenvalues and eigenvectors of AA.

  1. Compute S1=−3+4+2=3S_1 = -3 + 4 + 2 = 3, S2=2+2−1=3S_2 = 2 + 2 - 1 = 3, and S3=−6+7−0=1S_3 = -6 + 7 - 0 = 1 to form λ3−3λ2+3λ−1=0\lambda^3 - 3\lambda^2 + 3\lambda - 1 = 0.
  2. Rewrite the polynomial as (λ−1)3=0(\lambda - 1)^3 = 0 to obtain the triple root λ=1,1,1\lambda = 1, 1, 1 (M1=3M_1 = 3).
  3. Substitute λ=1\lambda = 1 into (A−I)x=0(A - I)x = 0 to form [−4−7−5233121][x1x2x3]=[000]\begin{bmatrix} -4 & -7 & -5 \\ 2 & 3 & 3 \\ 1 & 2 & 1 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix} and swap Row 1 with Row 3.
  4. Apply R2→−2R1+R2R_2 \to -2R_1 + R_2 and R3→4R1+R3R_3 \to 4R_1 + R_3, then R3→R2+R3R_3 \to R_2 + R_3 to reach the echelon matrix [1210−11000]\begin{bmatrix} 1 & 2 & 1 \\ 0 & -1 & 1 \\ 0 & 0 & 0 \end{bmatrix}.
  5. Since the echelon form has rank 2, there is only 3−2=13 - 2 = 1 free variable (defect Δ1=3−1=2\Delta_1 = 3 - 1 = 2): −x2+x3=0  ⟹  x2=x3-x_2 + x_3 = 0 \implies x_2 = x_3.
  6. Substitute x2=x3x_2 = x_3 into x1+2x2+x3=0x_1 + 2x_2 + x_3 = 0 to get x1=−3x3x_1 = -3x_3, and set x3=1x_3 = 1 to find the single independent eigenvector.

Answer: Eigenvalues λ=1,1,1\lambda = 1, 1, 1; eigenvector x=[−311]x = \begin{bmatrix} -3 \\ 1 \\ 1 \end{bmatrix}.

Matrix Diagonalization and Modal Transformations

You already know how to compute eigenvalues, find their corresponding eigenvectors, and check whether those eigenvectors form a complete basis. With full sets of eigenvectors in hand, we complete our study by transforming matrices into simple diagonal forms. Multiplying a matrix AA by its modal matrix XX and its inverse X−1X^{-1} transforms AA into a pure diagonal array of its eigenvalues.

The idea

When an n×nn \times n matrix AA has nn linearly independent eigenvectors x1,x2,…,xnx_1, x_2, \dots, x_n, we can package them side by side as columns into a single square matrix called the modal matrix, X=[x1  x2  …  xn]X = [x_1 \; x_2 \; \dots \; x_n]. Because Axi=λixiA x_i = \lambda_i x_i for each column, multiplying AA by XX simply scales each column of XX by its corresponding eigenvalue: AX=XDAX = XD, where DD is the diagonal matrix containing the eigenvalues λ1,λ2,…,λn\lambda_1, \lambda_2, \dots, \lambda_n on its main diagonal.

Since the eigenvectors are linearly independent, the modal matrix XX has full rank and is invertible. Multiplying both sides of AX=XDAX = XD on the left by X−1X^{-1} gives the similarity transformation D=X−1AXD = X^{-1}AX. In words: to diagonalize a matrix AA, assemble its independent eigenvectors into columns of XX, compute X−1X^{-1}, and multiply X−1AXX^{-1}AX to isolate the eigenvalues along the diagonal of DD.

To find X−1X^{-1}, you can either use the adjugate formula X−1=adj X∣X∣X^{-1} = \frac{\text{adj } X}{|X|} or apply Gauss-Jordan elimination, where elementary row operations reduce the augmented matrix [X∣I][X \mid I] to [I∣X−1][I \mid X^{-1}]. Once AA is diagonalized, higher matrix powers become effortless: because middle terms cancel (X−1XX−1=X−1X^{-1}XX^{-1} = X^{-1}), raising DD to a power mm gives Dm=X−1AmXD^m = X^{-1}A^mX for m=2,3,…m = 2, 3, \dots, where DmD^m simply raises each diagonal eigenvalue to the mm-th power.

Worked example

Given: The 2×22 \times 2 matrix A=[4123]A = \begin{bmatrix} 4 & 1 \\ 2 & 3 \end{bmatrix}. Find: The modal matrix XX, its inverse X−1X^{-1}, and the diagonal matrix D=X−1AXD = X^{-1}AX.

  1. Set up the characteristic equation ∣A−λI∣=λ2−S1λ+S2=0|A - \lambda I| = \lambda^2 - S_1\lambda + S_2 = 0 to find the eigenvalues. Here, the trace is S1=4+3=7S_1 = 4 + 3 = 7 and the determinant is S2=∣A∣=12−2=10S_2 = |A| = 12 - 2 = 10, giving λ2−7λ+10=(λ−5)(λ−2)=0\lambda^2 - 7\lambda + 10 = (\lambda - 5)(\lambda - 2) = 0, so λ=5,2\lambda = 5, 2.
  2. Solve (A−5I)x=0(A - 5I)x = 0 for λ=5\lambda = 5 to get the first eigenvector: row-reducing [−112−2]\begin{bmatrix} -1 & 1 \\ 2 & -2 \end{bmatrix} via R2→2R1+R2R_2 \to 2R_1 + R_2 gives −x1+x2=0-x_1 + x_2 = 0, so choosing x1=1x_1 = 1 yields X1=[11]X_1 = \begin{bmatrix} 1 \\ 1 \end{bmatrix}.
  3. Solve (A−2I)x=0(A - 2I)x = 0 for λ=2\lambda = 2 to get the second eigenvector: the system [2121][x1x2]=[00]\begin{bmatrix} 2 & 1 \\ 2 & 1 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix} gives 2x1+x2=02x_1 + x_2 = 0, so choosing x1=1x_1 = 1 yields x2=−2x_2 = -2 and X2=[1−2]X_2 = \begin{bmatrix} 1 \\ -2 \end{bmatrix}.
  4. Assemble the eigenvectors as columns to form the modal matrix X=[111−2]X = \begin{bmatrix} 1 & 1 \\ 1 & -2 \end{bmatrix}.
  5. Compute X−1=adj X∣X∣X^{-1} = \frac{\text{adj } X}{|X|} so we can apply the similarity transformation: the determinant is ∣X∣=−2−1=−3|X| = -2 - 1 = -3, and swapping diagonal entries while negating off-diagonal entries gives adj X=[−2−1−11]\text{adj } X = \begin{bmatrix} -2 & -1 \\ -1 & 1 \end{bmatrix}, so X−1=1−3[−2−1−11]X^{-1} = \frac{1}{-3}\begin{bmatrix} -2 & -1 \\ -1 & 1 \end{bmatrix}.
  6. Multiply D=X−1AXD = X^{-1}AX to verify diagonalization: first compute X−1A=1−3[−2−1−11][4123]=1−3[−10−5−22]X^{-1}A = \frac{1}{-3}\begin{bmatrix} -2 & -1 \\ -1 & 1 \end{bmatrix}\begin{bmatrix} 4 & 1 \\ 2 & 3 \end{bmatrix} = \frac{1}{-3}\begin{bmatrix} -10 & -5 \\ -2 & 2 \end{bmatrix}, then multiply on the right by X=[111−2]X = \begin{bmatrix} 1 & 1 \\ 1 & -2 \end{bmatrix} to get −13[−1500−6]=[5002]-\frac{1}{3}\begin{bmatrix} -15 & 0 \\ 0 & -6 \end{bmatrix} = \begin{bmatrix} 5 & 0 \\ 0 & 2 \end{bmatrix}.

Answer: X=[111−2]X = \begin{bmatrix} 1 & 1 \\ 1 & -2 \end{bmatrix}, X−1=−13[−2−1−11]X^{-1} = -\frac{1}{3}\begin{bmatrix} -2 & -1 \\ -1 & 1 \end{bmatrix}, and D=[5002]D = \begin{bmatrix} 5 & 0 \\ 0 & 2 \end{bmatrix}.

More problems

Problem 2: Diagonalizing a 3x3 matrix

Given: The 3×33 \times 3 matrix A=[111021−443]A = \begin{bmatrix} 1 & 1 & 1 \\ 0 & 2 & 1 \\ -4 & 4 & 3 \end{bmatrix}. Find: The modal matrix XX, its inverse X−1X^{-1}, and the diagonal matrix D=X−1AXD = X^{-1}AX.

  1. Form the characteristic equation λ3−S1λ2+S2λ−S3=0\lambda^3 - S_1\lambda^2 + S_2\lambda - S_3 = 0 with S1=6S_1 = 6, S2=11S_2 = 11, and S3=∣A∣=6S_3 = |A| = 6.
  2. Factor λ3−6λ2+11λ−6=(λ−1)(λ−2)(λ−3)=0\lambda^3 - 6\lambda^2 + 11\lambda - 6 = (\lambda - 1)(\lambda - 2)(\lambda - 3) = 0 via synthetic division at λ=1\lambda = 1 to get λ=1,2,3\lambda = 1, 2, 3.
  3. For λ=1\lambda = 1, solve [011011−442]x=0\begin{bmatrix} 0 & 1 & 1 \\ 0 & 1 & 1 \\ -4 & 4 & 2 \end{bmatrix}x = 0: x2=−x3x_2 = -x_3 and 4x1=−2x34x_1 = -2x_3, so x3=2x_3 = 2 gives X1=[−1−22]X_1 = \begin{bmatrix} -1 \\ -2 \\ 2 \end{bmatrix}.
  4. For λ=2\lambda = 2, reduce [−111001−441]\begin{bmatrix} -1 & 1 & 1 \\ 0 & 0 & 1 \\ -4 & 4 & 1 \end{bmatrix} to get x3=0x_3 = 0 and x1=x2x_1 = x_2, so x1=1x_1 = 1 gives X2=[110]X_2 = \begin{bmatrix} 1 \\ 1 \\ 0 \end{bmatrix}.
  5. For λ=3\lambda = 3, reduce [−2110−11−440]\begin{bmatrix} -2 & 1 & 1 \\ 0 & -1 & 1 \\ -4 & 4 & 0 \end{bmatrix} to get x1=x2=x3x_1 = x_2 = x_3, so x1=1x_1 = 1 gives X3=[111]X_3 = \begin{bmatrix} 1 \\ 1 \\ 1 \end{bmatrix}.
  6. Assemble X=[−111−211201]X = \begin{bmatrix} -1 & 1 & 1 \\ -2 & 1 & 1 \\ 2 & 0 & 1 \end{bmatrix}, where ∣X∣=−1+4−2=1|X| = -1 + 4 - 2 = 1.
  7. Row-reduce [X∣I][X \mid I] via Gauss-Jordan elimination (or compute adj X∣X∣\frac{\text{adj } X}{|X|}) to obtain X−1=[1−104−3−1−221]X^{-1} = \begin{bmatrix} 1 & -1 & 0 \\ 4 & -3 & -1 \\ -2 & 2 & 1 \end{bmatrix}.
  8. Multiply D=X−1AX=[1−108−6−2−663][−111−211201]D = X^{-1}AX = \begin{bmatrix} 1 & -1 & 0 \\ 8 & -6 & -2 \\ -6 & 6 & 3 \end{bmatrix}\begin{bmatrix} -1 & 1 & 1 \\ -2 & 1 & 1 \\ 2 & 0 & 1 \end{bmatrix} to produce the diagonal matrix of eigenvalues.

Watch out. When solving 4x1=−44x_1 = -4 for λ=1\lambda = 1, do not drop the negative sign: x1=−1x_1 = -1 (matching the first column of XX), and remember to write X−1AXX^{-1}AX rather than XTAXX^TAX because XX is not orthogonal.

Answer: X=[−111−211201]X = \begin{bmatrix} -1 & 1 & 1 \\ -2 & 1 & 1 \\ 2 & 0 & 1 \end{bmatrix}, X−1=[1−104−3−1−221]X^{-1} = \begin{bmatrix} 1 & -1 & 0 \\ 4 & -3 & -1 \\ -2 & 2 & 1 \end{bmatrix}, and D=[100020003]D = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 3 \end{bmatrix}.