Matrix Operations and Concepts –
Expanded Guide with Problems
1. What is a Matrix?
A matrix is a rectangular arrangement of numbers in rows and columns.
- Notation: A = [aᵢⱼ] where aᵢⱼ is the element in the i-th row and j-th column.
- Example: A 2×3 matrix:
[1 2 3]
[4 5 6]
2. Types of Matrices
- Row matrix: 1 row.
- Column matrix: 1 column.
- Square matrix: same number of rows and columns.
- Zero matrix: all elements are 0.
- Diagonal matrix: non-zero elements only on the main diagonal.
- Identity matrix: diagonal elements are 1, others 0.
3. Matrix Addition and Subtraction
Can only add/subtract matrices with the same dimensions.
Example:
A = [1 2] B = [4 5]
[3 4] [6 7]
A + B = [5 7]
[9 11]
4. Scalar Multiplication
Multiply every element by a scalar (a constant).
Example:
2 × [1 2]
[3 4]
= [2 4]
[6 8]
5. Matrix Multiplication
Rules:
- A × B only defined when cols of A = rows of B.
Example:
A = [1 2] B = [2 0]
[3 4] [1 2]
AB = [ (1×2 + 2×1) (1×0 + 2×2) ] = [4 4]
[ (3×2 + 4×1) (3×0 + 4×2) ] [10 8]
6. Transpose of a Matrix
Switch rows and columns.
A = [1 2 3]
[4 5 6]
Aᵀ = [1 4]
[2 5]
[3 6]
7. Determinants (2x2 only)
A = [a b]
[c d]
Determinant |A| = ad - bc
Example:
A = [2 5]
[1 3]
|A| = 2×3 - 5×1 = 1
8. Inverse of a Matrix
A = [a b]
[c d]
Inverse A⁻¹ = (1/det) × [d -b]
[-c a]
Example:
A = [2 3]
[1 4]
|A| = 2×4 - 3×1 = 5
A⁻¹ = (1/5) × [4 -3]
[-1 2]
9. Solving Systems with Matrices
Use Ax = B form.
Solve for x = A⁻¹B
Example:
A = [2 1] B = [5]
[1 3] [6]
A⁻¹ = (1/5) × [3 -1]
[-1 2]
x = A⁻¹B = [ (3×5 + -1×6)/5 ] = [9/5]
[ (-1×5 + 2×6)/5 ] = [7/5]
10. Practice Problems
1. Add:
A = [1 2] B = [3 4]
[5 6] [7 8]
A+B=?
2. Multiply:
A = [1 2] B = [2 0]
[3 4] [1 2]
3. Find Inverse:
A = [2 3]
[1 4]
4. Transpose:
A = [1 2 3]
[4 5 6]
Solutions:
1. A + B = [4 6]
[12 14]
2. AB = [4 4]
[10 8]
3. A⁻¹ = (1/5) × [4 -3]
[-1 2]
4. Aᵀ = [1 4]
[2 5]
[3 6]