Matrices: definitions and operations
📚 M1111E.pdf
Brief overview
This document provides a comprehensive introduction to linear algebra, covering essential concepts and their applications. Understanding these foundational elements is crucial for solving complex mathematical problems and for further study in fields like engineering, computer science, and economics.
Key points
- Definitions, types, and basic operations of matrices, including transpose and symmetric/skew-symmetric forms.
- The process of achieving row echelon and reduced row echelon forms using elementary row operations.
- Methods for calculating determinants and their applications in matrix inversion and rank determination.
- Solving linear systems of equations using various matrix-based methods like Gaussian elimination and Cramer's rule.
- Understanding and calculating eigenvalues, eigenvectors, and the process of matrix diagonalization.
1. Matrices: definitions and operations
1.1 Matrix definition
- A matrix of size (m×n) is a rectangular table with m rows and n columns.
- Its elements are denoted as aij, where i is the row number and j is the column number.
- A square matrix has an equal number of rows and columns (m=n).
- The entries a11,a22,…,ann are called diagonal entries.
| Matrix Type | Description |
|---|---|
| Row Matrix | A matrix with only one row (1×n). |
| Column Matrix | A matrix with only one column (m×1). |
| Zero Matrix (Om,n) | All entries are zero. |
| Unit Matrix (In) | A square matrix with 1s on the diagonal, 0s elsewhere. |
| Diagonal Matrix | Non-zero entries only on the main diagonal. |
| Upper Triangular | All entries below the main diagonal are zero. |
| Lower Triangular | All entries above the main diagonal are zero. |
1.2 Matrix operations
1.2.1 Equality of matrices
- Two matrices A and B of the same size (m×n) are equal if all their corresponding entries are equal: aij=bij for all i,j.
1.2.2 Matrix addition
- Matrices A and B of the same size (m×n) can be added.
- The sum is calculated element-wise: (A+B)ij=aij+bij.
- Matrix addition is commutative (A+B=B+A) and associative ((A+B)+C=A+(B+C)).
1.2.3 Scalar multiplication
- Multiplying a matrix A by a scalar λ involves multiplying each entry by λ: (λA)ij=λaij.
- Properties include 1⋅A=A, α(A+B)=αA+αB, and (α+β)A=αA+βA.
1.2.4 Matrix multiplication
- Matrix multiplication A×B is defined if the number of columns in A equals the number of rows in B.
- If A is m×n and B is n×p, then A×B is an m×p matrix C.
- The entry cij is calculated as the sum of the products of elements from row i of A and column j of B: cij=∑k=1naikbkj.
Matrix multiplication is NOT commutative (A×B=B×A in general).
- Matrix multiplication is associative: (A×B)×C=A×(B×C).
- Multiplication by the identity matrix I: A×In=A and Im×A=A.
1.2.5 Transpose of a matrix
- The transpose of a matrix A, denoted AT, is obtained by swapping its rows and columns.
- If A=(aij), then AT=(aji).
- If A is m×n, then AT is n×m.
Properties of transpose: (AT)T=A, (A+B)T=AT+BT, (λA)T=λAT, and (A×B)T=BT×AT.
1.2.6 Symmetric and skew-symmetric matrices
- A square matrix A is symmetric if AT=A. This means aij=aji.
- A square matrix A is skew-symmetric if AT=−A. This means aij=−aji.
- For skew-symmetric matrices, diagonal entries are always zero (aii=−aii⇒aii=0).
| Matrix | Type | Example |
|---|---|---|
| A | Symmetric | 12320434−5 |
| B | Skew-symmetric | 0−2−320−4340 |
1.2.7 Invertible matrices
- A square matrix A is invertible if there exists a matrix B (called the inverse, A−1) such that A×B=In and B×A=In.
- Only square matrices can be invertible.
Properties of inverses: (A−1)−1=A, (A×B)−1=B−1×A−1, and (λA)−1=λ1A−1 for λ=0.
1.3 Row echelon form
- A matrix is in row echelon form if:
- All-zero rows are at the bottom.
- The first non-zero entry (leading entry) in any non-zero row is to the right of the leading entry of the row above it.
- A matrix is in reduced row echelon form if it's in row echelon form, AND all leading entries are 1, AND all entries above and below each leading 1 are zero.
1.3.1 Elementary row operations
- These operations transform a matrix into an equivalent matrix (row equivalent).
- Swap two rows (Ri↔Rj).
- Multiply a row by a non-zero scalar (Ri↔λRi, λ=0).
- Add a multiple of one row to another row (Ri↔Ri+λRj).
- Every elementary row operation has an inverse.
- A matrix is row equivalent to a unique reduced row echelon form.
1.3.2 Elementary matrices and finding the inverse
- An elementary matrix is formed by applying one elementary row operation to the identity matrix In.
- Applying an elementary row operation to a matrix A is equivalent to multiplying A on the left by the corresponding elementary matrix E (B=EA).
- A matrix A is invertible if and only if it can be reduced to the identity matrix In using elementary row operations.
- This process is done by creating an augmented matrix (A∣In) and applying row operations until A becomes In. The right side will then be A−1.
(A∣In)row ops(In∣A−1)
- If A cannot be reduced to In, it is not invertible.
🔑 Important: A square matrix is invertible if and only if its reduced row echelon form is the identity matrix.
2. Determinants and their applications
2.1 Definition of a determinant
The determinant of a square matrix A, denoted as det(A) or ∣A∣, is a scalar value.
- 1x1 matrix: For A=(a11), det(A)=a11.
- 2x2 matrix: For A=(a11a21a12a22), det(A)=a11a22−a12a21.
2.1.1 Calculating determinants for 3x3 matrices
Sarrus's formula is used for 3x3 matrices: A=a11a21a31a12a22a32a13a23a33
det(A)=a11a22a33+a12a23a31+a13a21a32−a12a21a33−a11a23a32−a13a22a31
Sarrus's formula is a visual shortcut for 3x3 determinants.
2.1.2 Cofactor expansion
For an n×n matrix (n≥3), the determinant can be calculated using cofactor expansion along any row or column.
- Minor (Δij): The determinant of the submatrix formed by deleting the i-th row and j-th column of A.
- Cofactor (cof(aij)): (−1)i+jΔij.
Determinant expansion by row or column
- By i-th row: det(A)=∑j=1naijcof(aij)
- By j-th column: det(A)=∑i=1naijcof(aij)
Cofactor expansion breaks down a large determinant into smaller ones.
2.2 Properties of determinants
Understanding these properties simplifies determinant calculations and is crucial for applications.
| Property | Description | Example/Note |
|---|---|---|
| Identity matrix | det(In)=1 | The determinant of an identity matrix is always 1. |
| Product of matrices | det(A⋅B)=det(A)⋅det(B) | Determinant of a product is the product of determinants. |
| Transpose | det(AT)=det(A) | The determinant does not change if the matrix is transposed. |
| Triangular matrices | For upper or lower triangular matrices, det(A)=∏i=1naii | The determinant is the product of diagonal entries. |
| Row/Column operations | Adding a linear combination of other rows/columns does not change the determinant. | Ci↔Ci+αCj or Ri↔Ri+αRj. |
| Multiplying a row/column by a scalar (α) | The determinant is multiplied by α. | det(…,αCj,…)=αdet(…,Cj,…). |
| Zero determinant conditions | det(A)=0 if: - A row or column is all zeros. - Two rows or columns are identical or collinear. | Indicates a singular matrix. |
| Row/Column permutations | Swapping two rows or columns multiplies the determinant by -1. | det(…,Ci,Cj,…)=−det(…,Cj,Ci,…). |
Determinant properties often mirror each other for rows and columns.
Adding all rows to one row simplifies determinants with repeating structures.
2.3 Applications of determinants
Determinants have significant applications in linear algebra, including finding matrix inverses and determining matrix rank.
2.3.1 Finding the inverse of a matrix
-
Invertibility condition: A matrix A is invertible if and only if det(A)=0.
-
Adjoint matrix: The transpose of the comatrix of A.
- Comatrix (com(A)): A matrix where each entry is the cofactor of the corresponding entry in A.
- Adjoint (adj(A)): (com(A))T.
-
Inverse formula: If det(A)=0, then A−1=det(A)1adj(A).
A non-zero determinant is the key to a matrix having an inverse.
Inverse of a 2x2 matrix
For A=(acbd) with ad−bc=0: A−1=ad−bc1(d−c−ba)
2.3.2 Rank of a matrix
-
Rank (rank(A)): The number of non-zero rows in the row echelon form of A.
-
Relationship to Invertibility:
- If A is an n×n matrix, rank(A)=n if and only if A is invertible.
- If a matrix has a zero row or identical/collinear rows/columns, it is not invertible.
-
Minor of order p: The determinant of any p×p submatrix of A.
-
Rank via minors: The rank of a matrix A is the largest order of its non-zero minors.
Rank tells you the "effective dimension" or number of linearly independent rows/columns.
| Matrix Status | Determinant Relation | Rank Relation |
|---|---|---|
| Invertible | =0 | =n |
| Not invertible | =0 | <n |
| Zero matrix (Om,n) | N/A | =0 |
The rank of a matrix is equal to the rank of its transpose: rank(A)=rank(AT).
A matrix is not invertible if it is equivalent to a matrix with a zero row or identical/collinear rows/columns.
The rank is the size of the largest square submatrix with a non-zero determinant.
If A∈Mm,n(K) and rank(A)=r, then r≤min(m,n).
For a matrix with a parameter, the rank can change depending on the parameter's value.
If det(A)=0, the system Ax=b either has no solution or infinitely many solutions. If det(A)=0, the system has a unique solution.
For a skew-symmetric matrix A (AT=−A):
- ∣A∣=(−1)n∣A∣.
- If n is odd, ∣A∣=0.
Determinants are zero for skew-symmetric matrices of odd order.
The determinant of a matrix A of order n can be calculated by ∣3B∣=3n∣B∣.
For ∣A3∣, it's ∣A∣3. For ∣A−1∣, it's 1/∣A∣.
The determinant of a 4x4 skew-symmetric matrix with real numbers can be the square of a polynomial in its entries.
3. Linear systems of equations
Linear systems involve finding values for variables that satisfy multiple equations simultaneously. These equations have the general form: a11x1+a12x2+⋯+a1nxn=b1 a21x1+a22x2+⋯+a2nxn=b2 ...
am1x1+am2x2+⋯+amnxn=bm
The aij are coefficients, xi are variables, and bi are constants. A solution is a set of values (x1,…,xn) that satisfies all equations.
3.1 Types of linear systems
The nature of the solution set determines the type of system.
- Inconsistent system: Has no solution (S=∅).
- Consistent system with a unique solution: Has exactly one solution (S={(α1,…,αn)}).
- Consistent system with infinitely many solutions: Has more than one solution (S contains multiple solutions).
For homogeneous systems (where all bi=0), the zero vector (0,…,0) is always a solution, called the trivial solution. Nonzero solutions are called nontrivial solutions.
Key takeaway: The number of solutions defines the system's type.
Examples of system types
Here are examples illustrating different solution scenarios.
-
Infinitely many solutions:
- x+2y−3z=5
- 2x+5y+4z=8.
-
Inconsistent system:
- x+2y+3z=4
- 2x+4y+6z=a (if a=8).
-
Unique solution (homogeneous):
- x+y=0
- x−y=0 (Solution: (0,0)).
-
Infinitely many solutions (homogeneous):
- x+y=0
- 2x+2y=0 (Solutions: (t,−t) for any t∈R) 41.
3.2 Matrix representation of systems
A linear system can be concisely represented using matrices.
| Component | Matrix Form | Dimensions | Description |
|---|---|---|---|
| System | AX=B | A∈Mm,n(K) | Coefficients, variables, constants |
| Coefficient | A=(aij) | m×n | Matrix of coefficients |
| Variables | X=x1⋮xn | n×1 | Vector of variables |
| Constants | B=b1⋮bm | m×1 | Vector of constant terms |
Solving the system AX=B is equivalent to finding the vector X. If the coefficient matrix A is invertible, a unique solution exists: X=A−1B.
Core idea: Matrix form simplifies system representation and manipulation.
Column vector form
The system AX=B can also be written as a linear combination of the column vectors of A. Let C1,…,Cn be the column vectors of A.
Then: x1C1+x2C2+⋯+xnCn=B 43.
3.3 Augmented matrix
The augmented matrix combines the coefficient matrix A and the constant vector B.
(A∣B)=a11a21⋮am1⋯⋯⋱⋯a1na2n⋮amn∣∣∣∣b1b2⋮bm
Two systems are equivalent if they have the same solution set. Row operations on the augmented matrix do not change the system's solution set.
Key role: Row operations on (A∣B) transform the system into an easier-to-solve form.
Row Echelon Forms
- Row Echelon Form: Achieved through Gaussian elimination. Easier to solve using back-substitution.
- Reduced Row Echelon Form: Achieved through Gauss-Jordan elimination. Solves the system directly.
Variables corresponding to leading 1s in the echelon form are leading variables. Others are non-leading variables.
3.4 Cramer's rule
Cramer's rule provides a unique solution for a Cramer system, where the coefficient matrix A is square (m=n) and invertible (det(A)=0).
The solution for each variable xi is: xi=det(A)Δi
Here, Δi is the determinant of the matrix formed by replacing the i-th column of A with the constant vector B.
When to use: Only for square systems with a non-zero determinant.
Example of Cramer's rule
Consider the system: ⎩⎨⎧x+2y+z=12x+y−z=−13x+2y+4z=9
- The coefficient matrix A is invertible (det(A)=−15=0).
- Δ1=−15, Δ2=15, Δ3=−30.
- Solution: x=−15−15=1, y=−1515=−1, z=−15−30=2 46.
3.5 Gaussian elimination
This method uses elementary row operations on the augmented matrix (A∣B) to transform it into row echelon form. This simplifies the system for back-substitution.
Process: Reduce (A∣B) to row echelon form using row operations.
Steps and outcome
- Start with the augmented matrix (A∣B).
- Apply elementary row operations to get a matrix in row echelon form.
- If a row like (00…0∣1) appears, the system is inconsistent.
- If no such row exists, use back-substitution on the resulting system to find the solution.
Example: A system reduced to: 10002100−3431∣∣∣∣11010 leads to an inconsistency (0 = 1) from the third row after further reduction 48.
3.6 Rank method
The rank method determines the nature of solutions based on the ranks of the coefficient matrix and the augmented matrix. Let r=rank(A).
| Condition | System Type | Number of Solutions |
|---|---|---|
| $\text{rank}(A) \neq \text{rank}(A | B)$ | Inconsistent |
| $\text{rank}(A) = \text{rank}(A | B) = n$ | Consistent, Unique Solution |
| $\text{rank}(A) = \text{rank}(A | B) < n$ | Consistent, Infinitely Many |
Here, n is the number of variables.
Insight: Rank provides a direct way to classify solutions without solving.
Example of rank analysis
Consider the matrix: 100010−54a∣∣∣−540
- If a=0: rank(A)=rank(A∣B)=3. Unique solution (n=3).
- If a=0: rank(A)=rank(A∣B)=2<3. Infinitely many solutions 50.
🔑 Important: The rank method is powerful for determining existence and number of solutions.
🔑 Important: Linear systems can be solved using Cramer's rule (if applicable), Gaussian elimination, or the rank method. Understanding the augmented matrix and row operations is crucial for all methods.
4. Eigenvalues, eigenvectors, and diagonalization
4.1 Eigenvalues and eigenvectors
- An eigenvector of a matrix A∈Mn(K) is a non-zero vector X∈Kn such that AX=λX for some scalar λ.
- The scalar λ is called the eigenvalue corresponding to the eigenvector X.
AX=λX⟺(A−λIn)X=0
- An eigenvalue λ exists if and only if the system (A−λIn)X=0 has a non-trivial solution. This means the matrix A−λIn must be singular (not invertible).
Eigenvalues are the roots of the characteristic polynomial ∣A−λIn∣=0.
4.2 Characteristic polynomial and eigenspace
- The characteristic polynomial of matrix A is PA(λ)=∣A−λIn∣.
- For an eigenvalue λ, the eigenspace Eλ is the set of all vectors X∈Kn such that AX=λX. This is the null space of (A−λIn).
4.3 Multiplicities of eigenvalues
- Algebraic multiplicity (ma(λ)) of an eigenvalue λ is its multiplicity as a root of the characteristic polynomial.
- Geometrical multiplicity (mg(λ)) of an eigenvalue λ is the number of linearly independent eigenvectors associated with λ. It equals the dimension of the eigenspace Eλ.
mg(λ)=n−rank(A−λIn)
- For any eigenvalue λ, 1≤mg(λ)≤ma(λ).
4.4 Diagonalization of matrices
- A matrix A is diagonalizable if there exists an invertible matrix P and a diagonal matrix D such that D=P−1AP.
Conditions for diagonalization
- A matrix A∈Mn(K) is diagonalizable if and only if:
- All eigenvalues of A are in K.
- For every eigenvalue λ, its algebraic multiplicity equals its geometrical multiplicity (ma(λ)=mg(λ)).
If a matrix has n distinct eigenvalues, it is diagonalizable.
Process of diagonalization
- If A is diagonalizable, it has n linearly independent eigenvectors.
- These eigenvectors form the columns of the invertible matrix P.
- The diagonal matrix D contains the corresponding eigenvalues on its diagonal, in the same order as their eigenvectors in P.
A=PDP−1
4.5 Examples
📝 Example: Consider A=124−1311−11.
- The eigenvalues are λ1=0,λ2=2,λ3=3. All are distinct and in R.
- Since A has 3 distinct eigenvalues, it is diagonalizable.
- Eigenvectors: v1=−235 for λ1=0, v2=011 for λ2=2, v3=102 for λ3=3.
- P=−235011102 and D=000020003.
🔑 Important: Diagonalizing a matrix A allows for easier computation of matrix powers. If A=PDP−1, then An=PDnP−1, where Dn is a diagonal matrix with the n-th powers of the diagonal entries of D.
| Matrix Property | Condition | Diagonalizable? |
|---|---|---|
| 3 distinct eigenvalues | ma(λi)=mg(λi)=1 for all i. | Yes |
| n linearly independent eigenvectors | ma(λi)=mg(λi) for all λi. | Yes |
| ma(λ)=mg(λ) for some λ | Some eigenspaces are too small. | No |
📝 Example: For A=100−210142, the characteristic polynomial is PA(λ)=(1−λ)2(2−λ).
Eigenvalues are λ1=1 (ma=2) and λ2=2 (ma=1)2. The eigenvectors for λ1=1 are of the form (x,0,0). There is only one linearly independent eigenvector (1,0,0), so mg=1. Since ma=mg, the matrix A is not diagonalizable 1.
© 2026 Maeve. All rights reserved. This content is protected by copyright.