Topics in this sectionMatrices and Transformations3 topics
- Introduction to Matrices
- Linear Transformations
- Shear and Stretch
Matrices and Transformations
A matrix is a rectangular array of numbers arranged in rows and columns. Each number inside a matrix is called an element. Matrices are used in mathematics to describe transformations of shapes on a coordinate grid.
For example, a matrix with 2 rows and 3 columns looks like this:
(142536)This matrix has order 2×3 (pronounced "2 by 3"). We write the order as m×n, where m is the number of rows and n is the number of columns.
To find the order of a matrix, count the rows first, then the columns. The order is always written as "rows × columns."
Consider this matrix:
(2003)This matrix has 2 rows and 2 columns, so its order is 2×2.
A transformation changes the position or size of a shape on the Cartesian plane. We can represent transformations using matrices. When we multiply a transformation matrix by a matrix of coordinates, we get the coordinates of the transformed shape.
The matrix of the original shape's coordinates is built by writing each vertex as a column. For a triangle with vertices at (1,1), (3,1), and (1,3), the coordinate matrix is:
(113113)Each column represents one vertex, reading from top to bottom as (x,y).
A stretch is a transformation that enlarges or reduces a shape in one direction. When a stretch has the x-axis unchanged (x-axis invariant), the transformation matrix takes the form:
(100k)where k is the stretch factor. If k>1, the shape stretches away from the axis. If 0<k<1, the shape shrinks toward the axis.
For a stretch with scale factor 3 and x-axis invariant, the transformation matrix is:
(1003)A triangle has vertices at (1,1), (3,1), and (1,3). Find the coordinates of the triangle after a stretch with factor 3, where the x-axis remains unchanged (invariant).
Step 1: Write the coordinate matrix
The vertices become columns:
(113113)Step 2: Multiply the transformation matrix by the coordinate matrix
(1003)(113113)We multiply each row of the first matrix by each column of the second matrix:
First column: (10)⋅(11)=1(1)+0(1)=1
(03)⋅(11)=0(1)+3(1)=3
Second column: (10)⋅(31)=1(3)+0(1)=3
(03)⋅(31)=0(3)+3(1)=3
Third column: (10)⋅(13)=1(1)+0(3)=1
(03)⋅(13)=0(1)+3(3)=9
Step 3: Write the new coordinates
The transformed coordinate matrix is:
(133319)So the new vertices are (1,3), (3,3), and (1,9).
Notice that the x-coordinates stayed the same (the x-axis is invariant), while the y-coordinates were multiplied by 3.
- Matrix: A rectangular array of numbers in rows and columns
- Element: A single number inside a matrix
- Order: The dimensions of a matrix, written as rows × columns
- Transformation: A change in position, size, or shape on a coordinate grid
- Pre-multiply: To multiply a transformation matrix by a coordinate matrix (the transformation matrix comes before the coordinate matrix)
When verifying that matrix multiplication is correct, follow these steps:
- Confirm the transformation matrix matches the type of transformation (stretch, shear, reflection)
- Check that the order of the transformation matrix is 2×2 when transforming 2D coordinates
- Verify each multiplication by multiplying the row elements by the corresponding column elements and adding the products
- Ensure the invariant axis has the correct pattern: for x-axis invariant, the first row is (1,0); for y-axis invariant, the first column is (1,0)
Consider a rectangle with vertices at P(2,3), Q(4,3), R(4,0), and S(2,0).
- Draw this rectangle on graph paper.
- Its image after a stretch is P′(2,6), Q′(4,6), R′(4,0), S′(2,0). Draw the image. What do you notice about the x-coordinates? What is the stretch factor?
- Now find the image of the same rectangle after a stretch with scale factor 2, where the y-axis is invariant instead. (Hint: for y-axis invariant, the transformation matrix is (k001))
Matrix transformations are used in computer graphics and design work, such as creating maps or planning layouts for markets in Juba or Wau. When engineers design water pumps for the Nile or plan storage containers for sorghum and dura in county granaries, they use matrix mathematics to calculate how shapes change in size and position — just like the stretch transformations you learned in this note.
Question
What is the order of a matrix that has 3 rows and 4 columns?
Sign in to submit your answer and have it count toward your mastery.
Sign in to practiceTutor
Stuck? Ask me anything about this topic.
Sign in to ask the Sonza AI Tutor about this question.
Sign in to askDiscussions
No questions yet