Unit 1.5: Matrix

Back Button Home

1. Introduction to Matrices

A Matrix is a rectangular array of numbers, symbols, or expressions arranged in rows and columns. The individual items in a matrix are called elements or entries.

2. Types of Matrices

Row Matrix:

A matrix with only one row.

Example: A = [1, 2, 3]

Column Matrix:

A matrix with only one column.

Example: B = [4, 5, 6]

Square Matrix:

A matrix with the same number of rows and columns.

Example: C = [1, 2; 3, 4]

Diagonal Matrix:

A square matrix where all elements outside the main diagonal are zero.

Example: D = [1, 0, 0; 0, 2, 0; 0, 0, 3]

Identity Matrix:

A diagonal matrix where all diagonal elements are 1.

Example: I = [1, 0, 0; 0, 1, 0; 0, 0, 1]

Zero Matrix:

A matrix where all elements are zero.

Example: O = [0, 0; 0, 0]

3. Matrix Operations

Addition of Matrices:

Two matrices of the same dimensions can be added by adding their corresponding elements.

Example: A = [1, 2; 3, 4], B = [5, 6; 7, 8]. A + B = [6, 8; 10, 12]

Subtraction of Matrices:

Two matrices of the same dimensions can be subtracted by subtracting their corresponding elements.

Example: A = [9, 8; 7, 6], B = [5, 4; 3, 2]. A - B = [4, 4; 4, 4]

Scalar Multiplication:

A matrix can be multiplied by a scalar (a single number) by multiplying every element of the matrix by that scalar.

Example: k = 3, A = [1, 2; 3, 4]. kA = [3, 6; 9, 12]

Matrix Multiplication:

The multiplication of two matrices is possible when the number of columns in the first matrix is equal to the number of rows in the second matrix. The element at the position (i, j) in the resulting matrix is obtained by taking the dot product of the i-th row of the first matrix and the j-th column of the second matrix.

Example: A = [1, 2; 3, 4], B = [5, 6; 7, 8]. AB = [19, 22; 43, 50]

4. Transpose of a Matrix

The Transpose of a matrix is obtained by interchanging its rows and columns. If A is a matrix, then the transpose is denoted by AT.

Example: A = [1, 2; 3, 4]. The transpose of A is AT = [1, 3; 2, 4]

5. Determinant of a Matrix

The Determinant is a scalar value that can be computed from the elements of a square matrix. It is denoted by det(A) or |A|.

For a 2x2 Matrix: A = [a, b; c, d]. The determinant is det(A) = ad - bc.

Example: If A = [2, 3; 1, 4], then det(A) = (2 × 4) - (3 × 1) = 8 - 3 = 5

6. Inverse of a Matrix

The Inverse of a matrix A is a matrix A−1 such that AA−1 = A−1A = I, where I is the identity matrix. The inverse exists only for square matrices where the determinant is non-zero.

For a 2x2 Matrix: A−1 = (1/det(A)) [d, -b; -c, a]

Example: If A = [2, 3; 1, 4], then det(A) = 5 and A−1 = (1/5) [4, -3; -1, 2] = [0.8, -0.6; -0.2, 0.4]

7. Special Properties of Matrices

Commutative Property:

Matrix addition is commutative, i.e., A + B = B + A. Matrix multiplication is generally not commutative, i.e., AB ≠ BA.

Associative Property:

Both matrix addition and multiplication are associative, i.e., (A + B) + C = A + (B + C) and (AB)C = A(BC).

Distributive Property:

Matrix multiplication is distributive over addition, i.e., A(B + C) = AB + AC.