Linear Algebra Notes (matrix & determinant)
Linear Algebra
Matrices & Determinants
1. Matrices Fundamentals
A matrix is a rectangular array of numbers arranged in rows and columns. Matrices are fundamental objects in linear algebra and have wide applications in mathematics, physics, engineering, and computer science.
An m × n matrix has m rows and n columns. The element in the i-th row and j-th column is denoted as aij.
Matrix Notation
Matrices are typically denoted by uppercase letters (A, B, C, ...) and their elements by corresponding lowercase letters with subscripts.
Example: 2×3 Matrix
Consider matrix B:
Here, b11 = 1, b12 = 4, b21 = -2, etc.
2. Matrix Operations
Matrix Addition
Two matrices of the same dimensions can be added by adding their corresponding elements.
Example
Scalar Multiplication
A matrix can be multiplied by a scalar by multiplying each element by that scalar.
Matrix Multiplication
For matrix multiplication AB, the number of columns in A must equal the number of rows in B.
Example
3. Special Matrix Types
Square Matrix
Number of rows equals number of columns (n × n)
Identity Matrix
Diagonal elements are 1, others are 0
Diagonal Matrix
Non-diagonal elements are zero
Symmetric Matrix
A = AT (equal to its transpose)
4. Determinants
The determinant is a scalar value that can be computed from a square matrix and encodes important properties of the matrix.
2×2 Determinant
3×3 Determinant (Sarrus Rule)
Example
General n×n Determinant (Laplace Expansion)
where Aij is the submatrix obtained by removing the i-th row and j-th column.
5. Properties of Determinants
Key Properties
- Determinant of Identity: det(I) = 1
- Triangular Matrix: det = product of diagonal elements
- Product of Matrices: det(AB) = det(A)det(B)
- Transpose Property: det(AT) = det(A)
- Scalar Multiplication: det(cA) = cndet(A)
- Inverse Matrix: det(A-1) = 1/det(A)
Example: Product Property
For matrices A and B:
6. Applications
Solving Linear Systems (Cramer's Rule)
For a system Ax = b, if A is invertible:
where Ai is A with the i-th column replaced by b.
Area/Volume Calculation
The absolute value of the determinant gives the scaling factor of the linear transformation described by the matrix.
Eigenvalues
The determinant is used in finding eigenvalues:
7. Practice Quiz
Test your understanding with these GATE-style multiple choice questions:
Correct Answer: 2
The determinant is calculated as (3×2) - (4×1) = 6 - 4 = 2.
Correct Answer: det(A+B) = det(A) + det(B)
Determinant of sum is not equal to sum of determinants. The determinant is multiplicative but not additive.
Correct Answer: 40
For n×n matrix, det(kA) = kndet(A). Here 23×5 = 8×5 = 40.
Correct Answer: 1
The determinant of any identity matrix is always 1 regardless of size.