Matrix Operations
MAT1511 - Precalculus Mathematics B · Matrices
Matrix Operations
A matrix is a rectangular array of numbers arranged in rows and columns. Matrix operations include addition, subtraction, and multiplication. Understanding these operations is essential for solving systems of equations and other mathematical problems.
Matrix Addition
To add two matrices, they must have the same dimensions. This means they must have the same number of rows and columns. The addition of two matrices is performed by adding their corresponding elements.
Example of Matrix Addition
Consider the following matrices A and B:
A = [[1, 2], [3, 4]]B = [[5, 6], [7, 8]]To add matrices A and B, we add their corresponding elements:
A + B = [[1 + 5, 2 + 6], [3 + 7, 4 + 8]]This results in:
A + B = [[6, 8], [10, 12]]Remember: Only add matrices of the same size.
Matrix Subtraction
Matrix subtraction is similar to matrix addition. Two matrices can be subtracted if they have the same dimensions. The subtraction is done by subtracting corresponding elements.
Example of Matrix Subtraction
Using the same matrices A and B:
A - B = [[1 - 5, 2 - 6], [3 - 7, 4 - 8]]This results in:
A - B = [[-4, -4], [-4, -4]]Watch out: Ensure the matrices are of the same size before subtracting.
Matrix Multiplication
Matrix multiplication is different from addition and subtraction. To multiply two matrices, the number of columns in the first matrix must equal the number of rows in the second matrix. The result is a new matrix.
Example of Matrix Multiplication
Consider matrices C and D:
C = [[1, 2, 3], [4, 5, 6]]D = [[7, 8], [9, 10], [11, 12]]Matrix C has 2 rows and 3 columns, while matrix D has 3 rows and 2 columns. We can multiply these matrices because the number of columns in C (3) is equal to the number of rows in D (3).
The multiplication is done as follows:
- Take the first row of C and multiply it by each column of D.
- Sum the products to get the elements of the resulting matrix.
The calculation is:
C × D = [[(1×7 + 2×9 + 3×11), (1×8 + 2×10 + 3×12)], [(4×7 + 5×9 + 6×11), (4×8 + 5×10 + 6×12)]]Calculating each element gives:
C × D = [[(7 + 18 + 33), (8 + 20 + 36)], [(28 + 45 + 66), (32 + 50 + 72)]]This results in:
C × D = [[58, 64], [139, 154]]Tip: Remember to check the dimensions of the matrices before multiplying.
Properties of Matrix Operations
Matrix operations have specific properties that can help simplify calculations:
- Associative Property: (A + B) + C = A + (B + C) and (AB)C = A(BC)
- Commutative Property: A + B = B + A, but AB ≠ BA in general
- Distributive Property: A(B + C) = AB + AC
Example of Properties
Let A = [[1, 2], [3, 4]], B = [[5, 6], [7, 8]], and C = [[9, 10], [11, 12]].
Using the associative property of addition:
(A + B) + C = [[1 + 5, 2 + 6], [3 + 7, 4 + 8]] + [[9, 10], [11, 12]] = [[6, 8], [10, 12]] + [[9, 10], [11, 12]] = [[15, 18], [21, 24]]Now, calculate A + (B + C):
A + (B + C) = [[1, 2], [3, 4]] + [[5 + 9, 6 + 10], [7 + 11, 8 + 12]] = [[1, 2], [3, 4]] + [[14, 16], [18, 20]] = [[15, 18], [21, 24]]Both results are equal, confirming the associative property.
Watch out: The commutative property does not apply to matrix multiplication. Always check the order of multiplication.
Transposition of a Matrix
The transpose of a matrix is obtained by swapping its rows and columns. If A is a matrix, the transpose is denoted as AT.
Example of Transposition
For matrix A:
A = [[1, 2, 3], [4, 5, 6]]The transpose AT is:
AT = [[1, 4], [2, 5], [3, 6]]Self-Check: Practical Applications
Matrix operations are widely used in various fields, such as economics, engineering, and computer science. They help in solving systems of linear equations, performing transformations in graphics, and managing data in databases.
Tip: Familiarise yourself with practical applications to understand the relevance of matrix operations.
Summary
- Matrix addition requires matrices of the same size.
- Matrix subtraction is similar to addition and also requires the same size.
- Matrix multiplication requires that the number of columns in the first matrix equals the number of rows in the second matrix.
- Matrix operations have specific properties, such as associative and distributive.
- The transpose of a matrix swaps its rows and columns.
Check your understanding
- What are the requirements for adding two matrices?
- How do you calculate the product of two matrices?
- Explain the associative property of matrix addition.
- What is the transpose of a matrix?