Hello, and welcome to today's mathematics lesson. We are diving into Chapter 9: Matrices. By the end of this session, you will understand what matrices are, how to identify their types, how to add, subtract, and multiply them, and the special properties that make matrix algebra unique.
Let us begin with the fundamental question: what exactly is a matrix? A matrix is a rectangular arrangement of numbers organized in horizontal rows and vertical columns. Think of it as a grid where each position holds a number. The plural of matrix is matrices. Each individual number in this grid is called an element of the matrix.
Now, when we describe a matrix, we need to specify its size, which we call the order. The order of a matrix equals the number of rows multiplied by the number of columns. If a matrix has m rows and n columns, we write its order as m × n, read as "m by n." Always remember: rows first, then columns.
Here is a quick example. Consider the matrix [2 1 5; 3 -2 7]. This matrix has 2 rows and 3 columns, so its order is 2 × 3. The total number of elements is simply 2 times 3, which equals 6.
Let us explore the different types of matrices you will encounter.
First, a row matrix has just one single row. For example, [a b c] is a row matrix of order 1 × 3. We also call this a row vector.
Second, a column matrix has just one single column. The matrix [a; b; c] with elements a, b, and c arranged vertically is a column matrix of order 3 × 1, also called a column vector.
Third, a square matrix has equal numbers of rows and columns. The matrix [5 7 4; 2 -1 0; 0 3 4] is a square matrix of order 3 × 3.
Fourth, a rectangular matrix has unequal numbers of rows and columns, like a 2 × 3 or 3 × 2 matrix.
Fifth, a zero or null matrix has every element equal to zero. It plays a special role, as we will see shortly.
Sixth, a diagonal matrix is a square matrix where all elements are zero except those on the leading diagonal, which runs from the top left to the bottom right. For instance, [2 0; 0 3] is a diagonal matrix.
Finally, the unit or identity matrix, denoted by I, is a diagonal matrix where every element on the leading diagonal equals 1. Examples include [1 0; 0 1] for order 2, and the 3 × 3 version with ones on the diagonal and zeros elsewhere. The identity matrix is crucial because it acts like the number 1 in regular multiplication.
Now let us discuss the transpose of a matrix. The transpose is obtained by interchanging rows and columns. If A is a matrix, its transpose is written as A^t.
Suppose A equals [2 3 1; 0 4 7]. Then A^t becomes [2 0; 3 4; 1 7]. Notice how the first row of A becomes the first column of A^t.
Two matrices are equal if and only if two conditions are met: they have the same order, and their corresponding elements are identical.
For example, if [x-2 y; a/2 b+1] equals [0 3; 1 5], then we can solve for the variables. Matching elements: x minus 2 equals 0, so x equals 2. Y equals 3. A over 2 equals 1, so a equals 2. And b plus 1 equals 5, giving b equals 4.
Let us move to matrix addition and subtraction. Two matrices can be added or subtracted only if they have the same order. We simply add or subtract corresponding elements.
If A equals [2 1; 5 6] and B equals [3 2; 1 4], then A plus B equals [5 3; 6 10]. Each element is the sum of the corresponding elements in A and B.
Similarly for subtraction: if A equals [5 4; 2 1] and B equals [3 0; 4 2], then A minus B equals [2 4; -2 -1].
Matrix addition has two important properties. It is commutative: A plus B equals B plus A. And it is associative: open parenthesis A plus B close parenthesis plus C equals A plus open parenthesis B plus C close parenthesis.
The zero matrix serves as the additive identity. Adding a zero matrix to any matrix of the same order leaves that matrix unchanged. Just as 3 plus 0 equals 3 in ordinary arithmetic, matrix A plus zero matrix equals A.
Every matrix also has an additive inverse. The additive inverse of A is negative A, obtained by changing the sign of every element. When you add A and negative A, you get the zero matrix. This is analogous to how 5 plus negative 5 equals 0.
We can also multiply a matrix by a scalar, which is simply a real number. Multiply every element of the matrix by that scalar.
For example, 3 times [4 1] equals [12 3]. And 2 times the matrix [6 -4; 2 0] equals [12 -8; 4 0].
Scalar multiplication follows the distributive property over matrix addition.
Now we arrive at matrix multiplication, which requires careful attention. Two matrices A and B can be multiplied to form AB if and only if the number of columns in A equals the number of rows in B. This is the compatibility condition.
Let me walk you through the process. Suppose A equals [3 4; 5 0] and B equals [1 2; 3 4]. Since A has 2 columns and B has 2 rows, multiplication is possible.
To find the first element of AB, multiply the first row of A with the first column of B: 3 times 1 plus 4 times 3, which equals 15. For the second element of the first row, multiply the first row of A with the second column of B: 3 times 2 plus 4 times 4, giving 22.
For the first element of the second row, multiply the second row of A with the first column of B: 5 times 1 plus 0 times 3, which is 5. Finally, for the last element, multiply the second row of A with the second column of B: 5 times 2 plus 0 times 4, giving 10.
Thus AB equals [15 22; 5 10].
Here is a crucial insight: matrix multiplication is not commutative. AB does not generally equal BA. Even when both products exist, they usually give different results.
However, matrix multiplication is associative: open parenthesis AB close parenthesis times C equals A times open parenthesis BC close parenthesis. And it is distributive over addition: A times open parenthesis B plus C close parenthesis equals AB plus AC.
Another important fact: the product of two non-zero matrices can be a zero matrix. Also, if AB equals AC, you cannot conclude that B equals C. The cancellation law does not apply to matrix multiplication.
The identity matrix I serves as the multiplicative identity. For any matrix A of compatible order, A times I equals A, and I times A equals A. Just as the number 1 leaves other numbers unchanged in multiplication, the identity matrix leaves other matrices unchanged.
If A is a square matrix, we can define powers of A. A² means A times A. We can then form matrix polynomials like A² - 3A + 2I, where I is the identity matrix of the same order.
Let us recap the key takeaways from this chapter.
First, a matrix is a rectangular arrangement of numbers in rows and columns, with order given as rows by columns.
Second, special matrices include row matrices, column matrices, square matrices, diagonal matrices, zero matrices, and the identity matrix.
Third, matrix addition and subtraction require identical orders and are performed element-wise; these operations are commutative and associative.
Fourth, the zero matrix is the additive identity, and every matrix has an additive inverse.
Fifth, matrix multiplication requires the number of columns in the first matrix to equal the number of rows in the second; the resulting matrix has order equal to rows of the first by columns of the second.
Sixth, matrix multiplication is associative and distributive, but not commutative, and cancellation is not valid.
Matrices are powerful tools that appear throughout mathematics, physics, computer science, and engineering. Mastering these fundamentals opens doors to solving systems of equations, transformations in geometry, and countless applications in the modern world. Keep practicing, stay curious, and I look forward to seeing you in the next lesson.