Matrix
Basics
Section titled “Basics”1. Introduction to Matrices
Section titled “1. Introduction to Matrices”Definition: A matrix is a rectangular array of numbers, symbols, or expressions arranged in rows and columns.
General Form:
Notation:
- Matrix of order (m rows, n columns)
- Element in row and column:
Order/Dimension: where = number of rows, = number of columns
2. Types of Matrices
Section titled “2. Types of Matrices”Based on Order:
- a) Row Matrix: Matrix with only one row ()
- b) Column Matrix: Matrix with only one column ()
- c) Square Matrix: Matrix where (equal rows and columns)
- d) Rectangular Matrix: Matrix where
Based on Elements:
- e) Zero/Null Matrix: All elements are zero. Notation: or
- f) Diagonal Matrix: Square matrix where all non-diagonal elements are zero
- g) Scalar Matrix: Diagonal matrix where all diagonal elements are equal
- h) Identity/Unit Matrix: Diagonal matrix where all diagonal elements are 1. Notation: or
- i) Upper Triangular Matrix: Square matrix where all elements below the diagonal are zero
- j) Lower Triangular Matrix: Square matrix where all elements above the diagonal are zero
3. Matrix Operations
Section titled “3. Matrix Operations”A. Equality of Matrices
- Two matrices and are equal if:
- They have the same order
- Corresponding elements are equal: for all
B. Addition and Subtraction
-
Conditions: Matrices must have the same order
-
Addition:
-
Subtraction:
-
Properties:
- Commutative:
- Associative:
- Additive Identity:
- Additive Inverse:
-
Example:
C. Scalar Multiplication
- Definition: Multiplying every element by a scalar
-
Properties:
-
Example:
D. Matrix Multiplication
- Condition: Number of columns in first matrix = number of rows in second matrix
- If is and is , then is
- Formula:
-
Properties:
- Generally NOT commutative:
- Associative:
- Distributive:
- Identity:
-
Example:
4. Transpose of a Matrix
Section titled “4. Transpose of a Matrix”-
Definition: Matrix obtained by interchanging rows and columns
-
If , then
-
Properties:
-
Example:
Special Matrices Related to Transpose:
- a) Symmetric Matrix: A square matrix where (i.e., )
-
b) Skew-Symmetric Matrix: A square matrix where (i.e., )
- All diagonal elements must be zero.
- Important Property: Any square matrix can be expressed as the sum of a symmetric and skew-symmetric matrix:
- Symmetric part:
- Skew-symmetric part:
**5 Minor & Cofactor **
Section titled “**5 Minor & Cofactor **”a) Minor of an element
-
Definition: The minor of an element in a matrix , denoted by , is the determinant of the submatrix obtained by deleting the -th row and -th column from .
-
Notation: or
-
For a 2×2 Matrix: = determinant after removing 1st row and 1st column = = determinant after removing 1st row and 2nd column = = determinant after removing 2nd row and 1st column = = determinant after removing 2nd row and 2nd column =
-
For a 3×3 Matrix:
b) Cofactor of an Element
- Definition: The cofactor of an element , denoted by or , is given by:
-
where is the minor of element .
-
Sign Pattern: The factor creates a checkerboard pattern of signs:
For any matrix: $$\begin{bmatrix}
- & - & + & - & \cdots \
- & + & - & + & \cdots \
- & - & + & - & \cdots \
- & + & - & + & \cdots \ \vdots & \vdots & \vdots & \vdots & \ddots \end{bmatrix}$$
For 2×2 Matrix:
For 3×3 Matrix: Properties of Minors and Cofactors
- Property 1: The minor is always a determinant value (scalar).
- Property 2: The cofactor differs from minor only by sign .
- Property 3: When is even, (positive sign)
- Property 4: When is odd, (negative sign)
- Property 5: For a diagonal matrix, all cofactors on the diagonal are products of the other diagonal elements.
8. Adjoint of a Matrix
Section titled “8. Adjoint of a Matrix”-
Definition: Transpose of the cofactor matrix
-
Steps to Find Adjoint:
- Find the cofactor matrix
- Take transpose:
-
Properties:
- for matrix
- for matrix
-
Example for 2×2 Matrix:
then
7. Determinant of a Matrix
Section titled “7. Determinant of a Matrix”-
Definition: A scalar value that can be computed from a square matrix
-
Notation: or
- For 2×2 Matrix:
- For 3×3 Matrix:
- Expansion by Cofactors:
-
where (cofactor)
-
and = minor (determinant of submatrix after removing row and column)
-
Properties of Determinants:
- for matrix
- If two rows/columns are identical,
- If we interchange two rows/columns, determinant changes sign
- Multiplying a row/column by multiplies determinant by
- Adding a multiple of one row to another doesn’t change determinant
-
Singular Matrix:
-
Non-singular Matrix:
7. Inverse of a Matrix
Section titled “7. Inverse of a Matrix”-
Definition: is the inverse of if
-
Formula:
-
Conditions for Inverse to Exist:
- Matrix must be square
- (non-singular)
-
Properties:
-
Example:
8. Elementary Row Operations
Section titled “8. Elementary Row Operations”Used to solve systems of equations and find inverse:
- Row Interchange: (swap two rows)
- Row Scaling: (multiply a row by non-zero scalar)
- Row Addition: (add multiple of one row to another)
Elementary Matrices: Matrices obtained by performing one elementary operation on the identity matrix
9. Rank of a Matrix
Section titled “9. Rank of a Matrix”-
Definition: The rank of a matrix is the maximum number of linearly independent rows (or columns)
-
Methods to Find Rank:
- Convert to row echelon form using elementary row operations
- Count the number of non-zero rows==
-
Properties:
- for matrix
- If is invertible matrix, (full rank)
-
Row Echelon Form: ⭐
- All non-zero rows are above zero rows
- Leading entry of each non-zero row is to the right of the leading entry of the row above
-
Reduced Row Echelon Form:
- Row echelon form
- Leading entry in each non-zero row is 1
- All entries above and below each leading 1 are zero
10. System of Linear Equations (❌ Not all important for GATE)
Section titled “10. System of Linear Equations (❌ Not all important for GATE)”- General Form:
- Matrix Form:
- where is coefficient matrix, is variable matrix, is constant matrix
Methods of Solution
- a) Matrix Inversion Method (when is square and non-singular): ⭐
- b) Cramer’s Rule (for square systems with ):
- where is with -th column replaced by
-
c) Gaussian Elimination:
- Convert augmented matrix to row echelon form
- Use back substitution
-
d) Gauss-Jordan Elimination:
- Convert to reduced row echelon form
- Read off solutions directly
Consistency of System: ( ⭐GATE 2025 )
- Augmented Matrix:
- Using rank:
- Consistent (has solution):
- Unique solution: (number of variables)
- Infinite solutions:
- Inconsistent (no solution):
- Consistent (has solution):
11. Special Products and Matrices ( ❌Not important for GATE)
Section titled “11. Special Products and Matrices ( ❌Not important for GATE)”a) Idempotent Matrix:
- Example: Identity matrix
b) Nilpotent Matrix: for some positive integer
- Smallest such is called index of nilpotency
c) Involutory Matrix:
- is its own inverse:
d) Orthogonal Matrix:
- Columns (and rows) form orthonormal sets
e) Hermitian Matrix (for complex matrices): (conjugate transpose)
f) Unitary Matrix:
12. Trace of a Matrix
Section titled “12. Trace of a Matrix”Definition: Sum of diagonal elements of a square matrix
Trace–Eigenvalue Relation: (⭐GATE 2023)
-
Summation of the eigenvalue is equal to the trace of the matrix
-
Holds for any square matrix (diagonalizable or not)
-
Follows from characteristic polynomial
-
Works over real or complex field
-
Frequently used to find unknown eigenvalues using trace shortcut
Properties:
- (cyclic property)
13. Applications of Matrices ( ❌Not important for GATE)
Section titled “13. Applications of Matrices ( ❌Not important for GATE)”- Solving Linear Equations: Systems of equations in science, engineering, economics
- Computer Graphics: Transformations (rotation, scaling, translation)
- Cryptography: Encoding and decoding messages
- Economics: Input-output models, Leontief models
- Network Analysis: Graph theory, connectivity
- Quantum Mechanics: State vectors, operators
- Statistics: Correlation matrices, covariance matrices
- Machine Learning: Data representation, neural networks
14. Summary of Key Formulas ⭐⭐
Section titled “14. Summary of Key Formulas ⭐⭐”Determinant (2×2):
Inverse:
Adjoint (2×2):
Product Rules:
Rank Property:
Solution of :
Eigenvalues & Eigenvectors
Section titled “Eigenvalues & Eigenvectors”1. Eigenvalues and Eigenvectors ⭐
Section titled “1. Eigenvalues and Eigenvectors ⭐”Eigenvector: A non-zero vector is called an eigenvector of a square matrix if there exists a scalar such that:
Eigenvalue: The scalar is called the eigenvalue corresponding to the eigenvector .
- : Eigen Vector
- : Eigen Value
Geometric Interpretation: When matrix acts on eigenvector , the result is a vector in the same direction (or opposite direction) as , scaled by factor .
2. Characteristic Equation ⭐
Section titled “2. Characteristic Equation ⭐”- To find eigenvalues, we solve:
- For non-trivial solution (where ):
-
This is called the Characteristic Equation of matrix .
-
Characteristic Polynomial:
3. Finding Eigenvalues and Eigenvectors ⭐⭐⭐
Section titled “3. Finding Eigenvalues and Eigenvectors ⭐⭐⭐”Step-by-Step Process:
- Step 1: Find eigenvalues by solving
- Step 2: For each eigenvalue , find eigenvectors by solving
Example: Find eigenvalues and eigenvectors of
Solution:
-
Step 1: Find eigenvalues
, Eigenvalues:
-
Step 2: Find eigenvectors
-
For : , Solution: (or any scalar multiple)
-
For : , Solution: (or any scalar multiple)
-
4. Properties of Eigenvalues ⭐
Section titled “4. Properties of Eigenvalues ⭐”- Property 1: Sum of eigenvalues = Trace of matrix
- Property 2: Product of eigenvalues = Determinant of matrix
- Property 3: If is an eigenvalue of , then:
- is an eigenvalue of (⭐GATE 2023)
- is an eigenvalue of
- is an eigenvalue of
- is an eigenvalue of (if is invertible and )
-
Property 4: Eigenvalues of and are the same
-
Property 5: For triangular (upper or lower) and diagonal matrices, eigenvalues are the diagonal elements
-
Property 6: If is singular, then is an eigenvalue
-
Property 7: Eigenvalues of a real symmetric matrix are always real
-
Property 8: Eigenvalues of an orthogonal matrix have absolute value 1
-
Property 9: Eigenvalues of a Hermitian matrix are real
-
Property 10: Eigenvalues of a skew-Hermitian matrix are purely imaginary or zero
5. Properties of Eigenvectors
Section titled “5. Properties of Eigenvectors”-
Property 1: Eigenvectors corresponding to distinct eigenvalues are linearly independent
-
Property 2: If is an eigenvector, then (for any non-zero scalar ) is also an eigenvector with the same eigenvalue
-
Property 3: For a real symmetric matrix, eigenvectors corresponding to distinct eigenvalues are orthogonal
-
Property 4: The eigenvectors corresponding to an eigenvalue with algebraic multiplicity span a subspace of dimension
6. Algebraic and Geometric Multiplicity ( ❌Not important for GATE)
Section titled “6. Algebraic and Geometric Multiplicity ( ❌Not important for GATE)”Algebraic Multiplicity: The number of times an eigenvalue appears as a root of the characteristic polynomial
Geometric Multiplicity: The dimension of the eigenspace (number of linearly independent eigenvectors) corresponding to an eigenvalue
Example:
- Characteristic equation:
- Eigenvalues: (algebraic multiplicity 2), (algebraic multiplicity 1)
- For : geometric multiplicity = 2 (two independent eigenvectors)
7. Diagonalization
Section titled “7. Diagonalization”A matrix is diagonalizable if there exists an invertible matrix such that:
where is a diagonal matrix containing eigenvalues of , and columns of are the corresponding eigenvectors.
Condition for Diagonalization: An matrix is diagonalizable if and only if it has linearly independent eigenvectors.
Guaranteed Diagonalizable:
- Matrices with distinct eigenvalues
- Real symmetric matrices
- Hermitian matrices
- Orthogonal matrices
- Unitary matrices
Applications of Diagonalization:
- Computing Powers:
- Matrix Functions:
- Solving Differential Equations
8. Similarity of Matrices ( ❌Not important for GATE)
Section titled “8. Similarity of Matrices ( ❌Not important for GATE)”Two matrices and are similar if there exists an invertible matrix such that:
Properties of Similar Matrices:
- Same eigenvalues
- Same determinant
- Same trace
- Same rank
- Same characteristic polynomial
9. Cayley-Hamilton Theorem ( ❌Not important for GATE)
Section titled “9. Cayley-Hamilton Theorem ( ❌Not important for GATE)”Theorem: Every square matrix satisfies its own characteristic equation.
If is the characteristic polynomial, then:
Example: If
-
Characteristic equation:
-
Then:
-
Applications:
- Finding matrix inverse
- Computing higher powers of matrices
- Simplifying matrix polynomials
Finding Inverse using Cayley-Hamilton:
-
If characteristic equation is
-
Then:
-
If (i.e., ):
10. Special Eigenvalue Problems ( ❌Not important for GATE)
Section titled “10. Special Eigenvalue Problems ( ❌Not important for GATE)”Symmetric Matrices:
- All eigenvalues are real
- Eigenvectors corresponding to distinct eigenvalues are orthogonal
- Always diagonalizable
Orthogonal Matrices ():
- All eigenvalues have absolute value 1
- or
Positive Definite Matrices:
- All eigenvalues are positive
- All leading principal minors are positive
Idempotent Matrices ():
- Eigenvalues are either 0 or 1
Nilpotent Matrices ():
- All eigenvalues are 0
Involutory Matrices ():
- Eigenvalues are either 1 or -1
11. Power Method (Finding Dominant Eigenvalue) ( ❌Not important for GATE)
Section titled “11. Power Method (Finding Dominant Eigenvalue) ( ❌Not important for GATE)”The power method is an iterative technique to find the largest (dominant) eigenvalue and its corresponding eigenvector.
-
Algorithm:
- Start with initial guess (non-zero)
- Iterate:
- Eigenvalue:
-
Converges to: Dominant eigenvalue (eigenvalue with largest absolute value)
System of Linear Equations (Advanced Concepts)
Section titled “System of Linear Equations (Advanced Concepts)”1. Matrix Representation
Section titled “1. Matrix Representation”System of equations:
Matrix form:
where:
Augmented Matrix: ⭐⭐
2. Types of Linear Systems
Section titled “2. Types of Linear Systems”-
Homogeneous System: (where ) ⭐
- Always has at least the trivial solution
- Non-trivial solutions exist if and only if (for square matrices) ⭐
-
Non-homogeneous System: (where )
3. Consistency and Solution Types ⭐⭐
Section titled “3. Consistency and Solution Types ⭐⭐”For Square Systems ():
| Determinant Condition | Determinant | Solution Type |
|---|---|---|
| Non-zero | Unique solution: | |
| and | Zero | Infinite solutions |
| and | Zero | No solution (inconsistent) |
For General Systems ():
Let and
| Rank Condition | Solution Type |
|---|---|
| Inconsistent (no solution) | |
| Unique solution | |
| Infinite solutions (with free parameters) |
4. Rouché-Capelli Theorem ( ❌Not important for GATE)
Section titled “4. Rouché-Capelli Theorem ( ❌Not important for GATE)”A system is consistent if and only if:
Number of free variables =
5. Homogeneous Systems
Section titled “5. Homogeneous Systems”System:
Properties:
- Always has trivial solution
- Has non-trivial solution if and only if (for square )
- For system with : always has infinite solutions
- Solution space forms a vector space (null space or kernel of )
Dimension of solution space: (called nullity of )
Rank-Nullity Theorem: For matrix :
6. Solution Methods ( ❌ Not all important for GATE)
Section titled “6. Solution Methods ( ❌ Not all important for GATE)”A. Cramer’s Rule
- For square system with :
-
where is the matrix obtained by replacing the -th column of with .
-
Example: Solve
-
Limitation: Computationally expensive for large systems
B. Matrix Inversion Method ⭐
- For square system with :
- Steps:
- Find using
- Compute
C. Gaussian Elimination
-
Process:
- Form augmented matrix
- Use elementary row operations to convert to row echelon form
- Use back substitution to find solutions
-
Elementary Row Operations:
- (interchange rows)
- (multiply row by non-zero constant)
- (add multiple of one row to another)
-
Row Echelon Form:
- All zero rows are at the bottom
- Leading coefficient (pivot) of each non-zero row is to the right of the pivot above it
-
Example:
Augmented matrix:
After row operations:
Back substitution:
D. Gauss-Jordan Elimination
-
Process:
- Form augmented matrix
- Convert to reduced row echelon form (RREF)
- Read solutions directly
-
Reduced Row Echelon Form:
- Row echelon form
- Leading coefficient (pivot) in each row is 1
- Each pivot is the only non-zero entry in its column
-
Example: Same system as above
After Gauss-Jordan:
Solution:
E. LU Decomposition
- Decompose into product of lower triangular and upper triangular :
-
Process:
- Find and such that
- Solve (forward substitution)
- Solve (backward substitution)
-
Advantage: Efficient for solving multiple systems with same but different
7. Particular and General Solutions ( ❌ Not important for GATE)
Section titled “7. Particular and General Solutions ( ❌ Not important for GATE)”For non-homogeneous system :
General Solution = Particular Solution + Homogeneous Solution
where:
- is any particular solution of
- is the general solution of
Example: If has particular solution
and homogeneous solution (where is any real number)
Then general solution:
8. Vector Space Interpretation ( ❌ Not important for GATE)
Section titled “8. Vector Space Interpretation ( ❌ Not important for GATE)”Column Space (Range/Image of ):
- Dimension =
Null Space (Kernel of ):
- Dimension =
Row Space: Space spanned by rows of
- Dimension =
Left Null Space: Null space of
Fundamental Theorem:
9. Least Squares Solution ( ❌ Not important for GATE)
Section titled “9. Least Squares Solution ( ❌ Not important for GATE)”For overdetermined systems (, more equations than unknowns) with no exact solution:
Normal Equation:
Least Squares Solution:
This minimizes
Application: Best fit line, curve fitting, data regression
10. Condition Number and Stability ( ❌ Not important for GATE)
Section titled “10. Condition Number and Stability ( ❌ Not important for GATE)”Condition Number: Measures sensitivity of solution to changes in or
For eigenvalue-based definition:
Well-conditioned: is small (close to 1)
Ill-conditioned: is large
Singular matrix:
11. Important GATE Concepts Summary ( ❌ Not important for GATE)
Section titled “11. Important GATE Concepts Summary ( ❌ Not important for GATE)”For Homogeneous Systems ():
- Always consistent (at least trivial solution)
- Non-trivial solution exists (for square )
- Number of free variables =
For Non-homogeneous Systems ():
- Consistent
- Unique solution
- Infinite solutions
Key Formulas:
- Cramer’s Rule:
- Matrix Inversion:
- Rank-Nullity:
Solution Methods Priority (for GATE):
- Cramer’s Rule (for 2×2 or 3×3 with unique solution)
- Matrix Inversion (for small square non-singular systems)
- Gaussian Elimination (for general systems)
- Rank method (for consistency check)