Introduction to linear algebra through matrix addition, multiplication, and scalar transformations.
How does a computer instantly rotate a 3D character in a video game or filter a photo on Instagram? The secret lies in matrices—mathematical grids that act as the engine for almost every modern technology.
A matrix is a rectangular array of numbers arranged in rows and columns. To perform addition or subtraction, the matrices must have the same dimensions (). You simply add or subtract the corresponding elements. Scalar multiplication involves multiplying every single element in the matrix by a real number (the scalar). Think of this as 'stretching' or 'shrinking' the entire data set. If matrix represents a set of coordinates, doubles the distance of every point from the origin.
Given and , find .
1. Multiply by the scalar 2: . 2. Add the result to : .
Quick Check
If Matrix A is and Matrix B is , can you add them together?
Answer
No, matrices must have the exact same dimensions to be added or subtracted.
Matrix multiplication is not element-wise; it is a dot product of rows and columns. For the product to exist, the number of columns in must equal the number of rows in . If is and is , the resulting matrix will be . This operation is the foundation of linear transformations, allowing us to calculate complex movements in space by combining simpler ones.
Multiply and .
1. Check dimensions: is , is . The inner numbers (2 and 2) match. Result will be . 2. Calculate the first row: . 3. Calculate the second row: . 4. Result: .
Quick Check
If you multiply a matrix by a matrix, what are the dimensions of the resulting matrix?
Answer
The resulting matrix will be .
In standard algebra, . In linear algebra, matrix multiplication is NOT commutative; usually, . However, we have special matrices that behave like numbers. The Identity Matrix (), a square matrix with 1s on the main diagonal and 0s elsewhere, acts like the number 1 (). The Zero Matrix (), filled entirely with 0s, acts like the number 0 ().
Let and .
1. Calculate : . 2. Calculate : . 3. Since , order matters!
What is the result of ?
If matrix is and matrix is , what is the dimension of ?
For any two square matrices and of the same size, always equals .
Review Tomorrow
In 24 hours, try to sketch a Identity matrix and explain why multiplying it by another matrix doesn't change the values.
Practice Activity
Find a simple matrix and calculate its square (). Then, try to find a matrix where results in the Zero Matrix.