Matrices and Matrix Transformations
Fundamentals of Matrices: Definitions, Notation, and Types
A matrix is defined as a rectangular array of numbers or symbols enclosed within brackets, which may be either curved or square.
The individual constituents that comprise a matrix are referred to as entries or elements.
For algebraic convenience and identification, a matrix is conventionally named using a capital letter.
Standard representations of matrices include:
Elements within any matrix are systematically organized along horizontal rows and vertical columns:
- Rows consist of elements arranged horizontally from left to right. The topmost horizontal line is termed 'row 1', the next is 'row 2', and subsequent lines follow numerically.
- Columns consist of elements arranged vertically from top to bottom. The leftmost vertical line is termed 'column 1', followed sequentially by 'column 2', 'column 3', and so on.
- In the matrix , the horizontal rows are labeled as Row 1: , Row 2: , and Row 3: .
- In the identical array matrix , the vertical columns are labeled as Column 1: , Column 2: , Column 3: , and Column 4: .
The order (or dimension) of a matrix characterizes its size and is formally expressed as , where designates the total number of rows and designates the total number of columns:
- A matrix of order consists of rows and columns.
- A matrix of order consists of rows and columns.
- The orders and are fundamentally distinct and not interchangeable.
- For example, the matrix possesses an order of .
- Conversely, the matrix possesses an order of .
A row matrix is a specialized matrix consisting of exactly one row, irrespective of how many columns or elements it contains:
- (order )
- (order )
- (order )
A column matrix is a specialized matrix consisting of exactly one column, regardless of its total number of rows:
- (order )
- (order )
- (order )
A square matrix is defined as any matrix that contains an equal number of rows and columns ():
- An matrix is described as a square matrix of order .
- A matrix containing rows and columns is described as being square of order , or simply a matrix.
- is a square matrix of order (order ).
- is a square matrix of order (order ).
Element Positions, Diagonal Matrices, and Special Matrix Types
Every individual entry within a matrix possesses a unique coordinate position denoted by the notation :
- The first subscript, , represents the row number containing the entry.
- The second subscript, , represents the column number containing the entry.
- Because every spatial position within the array is unique, no two distinct entries in a matrix can share the identical pair of row and column subscripts.
- For instance, identifies the entry residing in the row and column, whereas designates the entry residing in the row and column.
- In general, positional transpositions are not equal: . For example, .
In the matrix , element assignments are mapped as:
Here, while , demonstrating that .
Diagonal elements are the specific elements located along the leading diagonal (from top-left to bottom-right) of a square matrix:
- Diagonal elements are characterized by identical row and column indices, taking the form .
- In the square matrix , the three diagonal elements are , , and .
- In the square matrix , the two diagonal elements are and .
A diagonal matrix is defined as a square matrix in which all non-diagonal elements are equal to zero ( whenever ):
A zero matrix (or null matrix) is a matrix in which every constituent element is zero:
- A zero matrix is not restricted to square dimensions and can exist in any arbitrary order .
- Standard examples include:
- (order )
- (order )
- (order )
An identity matrix (or unit matrix) is a diagonal matrix in which every diagonal element is exactly equal to one () and all off-diagonal entries are zero:
- The identity matrix is conventionally denoted strictly by the capital letter or .
- The unit matrix of order is .
- The unit matrix of order is .
Matrix Operations: Addition, Subtraction, Equality, and Scalar Multiplication
Operations on matrices carry strict dimensional restrictions that do not apply to regular numbers:
- Arbitrary pairs of matrices cannot always be added, subtracted, or multiplied together.
- Algebraic division of two matrices is entirely impossible and undefined.
Matrices can be added or subtracted if and only if they share the exact same order ():
- When two matrices have identical orders, they are formally defined as being conformable to addition and subtraction.
- The sum or difference is computed by adding or subtracting corresponding entries across identical coordinates.
- The resulting matrix necessarily possesses the exact same order as the original operand matrices.
Addition of two matrices:
- Given and
- Both matrices have order , establishing conformability.
- Calculation:
- The resulting matrix maintains the order of .
Subtraction of two matrices:
- Given and
- Calculation:
- The resulting matrix maintains the order of .
Scalar multiplication occurs when a matrix is multiplied by a single numerical scalar value :
- Every individual entry within the matrix is multiplied directly by the scalar .
- The dimensional order of the matrix is invariant under scalar multiplication.
- General formulation:
- Example 1 (Part i): Given , evaluate :
- Example 1 (Part ii): Given , evaluate :
Two matrices are mathematically defined as equal if and only if two simultaneous criteria are met:
- Both matrices possess the identical order.
- All corresponding entries situated at matching row-column positions are equal.
- Both conditions must be satisfied before equality can be concluded.
- Conversely, stating that two matrices are equal guarantees that their orders are identical and all corresponding positional elements can be equated.
- Demonstration: Matrices and share order and have identical corresponding entries; thus, .
Example 2 (Solving for variables using matrix equality):
- Given , , and the condition , find and .
- Since , equate corresponding elements:
Example 3 (Multi-step scalar operations and matrix equality):
- Given , , and , determine , , and .
- Compute the combined single matrix :
- Equate corresponding entries with :
Matrix Multiplication and Non-Commutativity
Unlike matrix addition and subtraction, the orders of two matrices do not need to be identical for multiplication to occur.
Matrix multiplication is possible if and only if the number of columns in the first matrix () is strictly equal to the number of rows in the second matrix ():
- Symbolically expressed as:
- The resulting product matrix inherits its row count () from matrix and its column count () from matrix .
- If the inner dimensions do not match, the matrices are classified as non-conformable to multiplication.
Conformability reference scenarios:
- If has order and has order , the product is impossible because the column count of () does not equal the row count of ().
Computing entries in the product matrix:
- Any entry in product matrix is computed by matching each element of Row of matrix with the corresponding element of Column of matrix , multiplying these pairs, and finding their algebraic sum.
- For () and ():
- Dimensions confirm compatibility: multiplied by yields product of order .
- Structure of :
- Stepwise row-by-column calculations:
- Product matrix result:
Example 4 (Product of and matrices):
- Given and , evaluate .
- Order check: .
- Structural layout: .
- Coordinate multiplications:
- Product evaluation:
The commutative law of multiplication is generally not obeyed by matrices ():
Dimensional proof: Consider and . Because product has order and product has order , their orders are not equal; hence and .
Example 5 (Dimension-matched non-commutativity demonstration):
- Given () and ().
- Evaluating product (i) :
- Evaluating product (ii) :
- Comparison confirms that , demonstrating that matrix multiplication is non-commutative.
Example 6 (Determining algebraic parameters via matrix products):
- Given , , and , compute , , , and .
- Multiply ():
- Equate with given parameter matrix:
Identity Elements, Inverses, Determinants, and Singularity
Arithmetic parallels between real numbers and matrices:
- Additive Identity:
- For numbers: , where is the additive identity.
- For matrices: , where the null matrix is the additive identity element:
- Additive Inverse:
- For numbers: , where is the additive inverse.
- For matrices: (Zero Matrix). The additive inverse is obtained simply by reversing the directional algebraic sign of every entry in the matrix.
- Multiplicative Identity:
- For numbers: , where is the identity element.
- For matrices: , where the identity matrix leaves the matrix unchanged:
- Multiplicative Inverse:
- For numbers: , where is the multiplicative inverse.
- For matrices: , where represents the matrix multiplicative inverse.
Determinant of a matrix:
- For any matrix , the determinant is represented by or .
- Formula for calculation:
- If or , the matrix has no inverse and is defined as a singular matrix.
- If , the matrix is non-singular and a unique inverse exists.
Adjunct (or adjoint) of a matrix:
- Found by swapping the positions of the elements on the leading diagonal ( and ) and reversing the algebraic signs of the elements on the other diagonal ( and ).
- For , the adjunct is:
Multiplicative inverse of a matrix:
- If and , then:
Foundational properties of matrix inverses:
- Only square matrices can possess inverses.
- The product of any matrix and its inverse evaluates to the identity matrix, regardless of order:
Example 7 (Computing the inverse of a non-singular matrix):
- Given , determine .
- Determinant evaluation:
- Since , possesses an inverse.
- Evaluating :
Example 8 (Proving a matrix is singular):
- Show that is singular.
- Determinant evaluation:
- Because , is singular and has no inverse.
Example 9 (Solving for an unknown entry within a singular matrix):
- Given that is singular, solve for .
- By the singularity condition, :
Example 10 (Verifying the inverse property ):
- Given , find and verify that .
- Determinant evaluation:
- Because the determinant is non-zero, possesses an inverse:
- Multiplying :
Solving Simultaneous Linear Equations Using Matrices
Three recognized methods exist for solving a pair of simultaneous linear equations:
- Algebraic methods (elimination and substitution)
- Graphical method
- Matrix method
Conversion of simultaneous equations into matrix form:
- Variable coefficients are extracted into a coefficient matrix .
- Unknown variables form a column vector .
- Right-hand constants form a column vector .
- System and converts to:
- System and converts to:
Systematic 5-step matrix solution procedure:
- Express the simultaneous equations as a matrix equation of the form .
- Calculate , the inverse of the coefficient matrix .
- Pre-multiply both sides of the matrix equation by , isolating the variable matrix via the identity property:
- Simplify the right-hand matrix product to produce a consolidated column matrix.
- Equate corresponding elements to establish the numerical values of the unknown variables.
Step-by-step problem: Solve and
- Step 1: Write in matrix format : Where , , and .
- Step 2: Compute the inverse matrix :
- Step 3: Pre-multiply both sides by : The left-hand side reduces:
- Step 4: Simplify the right-hand product ():
- Step 5: Equate left-hand and right-hand matrices:
Example 10 (Fractional solution to simultaneous equations):
- Express and solve and via the matrix method.
- System setup:
- Isolate using :
- Compute :
- Solutions:
Applied Word Problems Using Matrix Multiplication
A single matrix efficiently organizes multi-variable real-world data, enabling large aggregations via matrix multiplication.
Problem 1: Two-Day T-Shirt Sales Revenue Analysis
- Production units sold by a company across three shirt sizes over 2 consecutive days:
- Day 1: Small , Medium , Large
- Day 2: Small , Medium , Large
- Fixed unit selling prices:
- Small
- Medium
- Large
- Mathematical representation:
- Quantities sold matrix: Formatted either as a matrix or a matrix .
- Pricing matrix: Formatted either as a row vector or a column vector .
- Multiplication to obtain total sales per day:
- Conformability requirement: A matrix multiplied by a matrix yields a output.
- Matrix multiplication calculation:
- Real-world interpretation:
- The total revenue generated from T-shirt sales on Day 1 is .
- The total revenue generated from T-shirt sales on Day 2 is .
Problem 2 (Example 11): Toy Manufacturing Resource Costing
- A business manufactures toy trucks, cars, and boats with resource requirements categorized in the following production schedule:
- Trucks: Labour , Wood , Paint
- Cars: Labour , Wood , Paint
- Boats: Labour , Wood , Paint
- Unit manufacturing expenses:
- Labour costs
- Wood costs
- Paint costs
- Matrix setup:
- Quantities schedule matrix ():
- Cost vector ():
- Multiplicative evaluation ():
- Real-world interpretation:
- The total manufacturing cost for producing trucks is .
- The total manufacturing cost for producing cars is .
- The total manufacturing cost for producing boats is .
Geometric Matrix Transformations and Translations
Matrix transformations utilize algebraic methods to execute geometric movements on plane figures without requiring manual graphing on a Cartesian plane.
Coordinates of image points are computed directly by multiplying or adding matrix vectors representing the transformation.
Translations utilize vector addition of column matrices (column vectors):
- A translation is defined as a vector displacement; hence, it cannot be modeled as a multiplicative matrix.
- Both the object coordinate and the translation displacement are represented as column vectors.
- Fundamental formula for translations:
- Example: Determine the image of object point under a translation of units parallel to the X-axis (, ):
- The resulting image coordinates are .
Deriving transformation matrices for reflections, rotations, and dilations:
- Any linear transformation in a two-dimensional Cartesian plane mapping an object point to an image point is governed by the general matrix equation:
- The values of the parameters , , , and are derived by tracking the movement of points on a reference unit square situated in the first quadrant with vertices at , , , and .
- Substituting the unit vector isolates the first column of the transformation matrix:
- Substituting the unit vector isolates the second column of the transformation matrix:
Derivation of Reflection Matrices
Reflection in the X-axis ():
- Under this reflection, the unit square flips across the horizontal axis into the fourth quadrant.
- Geometric vertex transformations: , , , and .
- Algebraic derivation for the first column:
- Algebraic derivation for the second column:
- The matrix for reflection in the X-axis is:
Reflection in the Y-axis ():
- Under this reflection, the unit square reflects horizontally across the vertical axis into the second quadrant.
- Point transformations: and .
- Algebraic derivation:
- The matrix for reflection in the Y-axis is:
Reflection in the line :
- Under this diagonal reflection, the axes swap roles.
- Point transformations: and .
- Algebraic derivation:
- The matrix for reflection in the line is:
Reflection in the line :
- Point transformations: and .
- Algebraic derivation:
- The matrix for reflection in the line is:
Derivation of Rotation and Dilation Matrices
Directional conventions for rotational matrices:
- All standard derived rotational matrices assume an anticlockwise direction centered about the origin .
- An anticlockwise rotation of produces the identical geometric image as a clockwise rotation of .
- An anticlockwise rotation of produces the identical geometric image as a clockwise rotation of .
- Separate clockwise matrix derivations are therefore unnecessary.
Anticlockwise rotation about the origin through :
- Point transformations: and .
- Algebraic derivation:
- The matrix for an anticlockwise rotation of about the origin is:
Anticlockwise rotation about the origin through :
- Point transformations: and .
- Algebraic derivation:
- The matrix for an anticlockwise rotation of about the origin is:
Rotation about the origin through :
- For a rotation through , specifying the directional sense is redundant because clockwise and anticlockwise rotations terminate at identical coordinate locations.
- Point transformations: and .
- Algebraic derivation:
- The matrix for a rotation of about the origin is:
General rotation matrix for an arbitrary angle :
- When rotating through an arbitrary angle anticlockwise about the origin, the generalized transformation matrix is defined by:
Dilation (Enlargement) with scale factor about the origin:
- Under an enlargement centered at the origin with scale factor , any general point maps to .
- The unit square dimensions scale proportionally, producing side lengths of units.
- Point transformations: and .
- Algebraic derivation:
- The matrix for an enlargement with center origin and scale factor is:
Transforming Geometric Plane Figures
The transformation of any multi-vertex geometric figure (such as a triangle) is conducted by pre-multiplying each of its coordinate vertices, represented as column vectors, by the transformation matrix.
Example 12 (Reflection of Triangle across the Y-axis):
- Triangle has coordinate vertices at , , and .
- Reflection matrix for the Y-axis: .
- Pre-multiplying vertex coordinates:
- Under reflection in the Y-axis, triangle maps onto triangle with image vertices , , and .
Example 13 (Rotation of Triangle by about the origin):
- Triangle has coordinate vertices at , , and .
- Rotation matrix for : .
- Pre-multiplying vertex coordinates:
- Triangle maps onto triangle with image coordinates , , and .
Example 14 (Enlargement of Triangle with Scale Factor ):
- Triangle has coordinate vertices at , , and .
- Enlargement matrix with center and scale factor : .
- Pre-multiplying vertex coordinates:
- Under the enlargement, triangle maps onto triangle with image coordinates , , and .
Combined Transformations and Unknown Transformation Parameters
Combining multiple matrix transformations:
- When two geometric transformations are performed sequentially, they can be condensed into a single equivalent composite matrix.
- Fundamental combination rule: If and are both matrices representing geometric transformations, then the single matrix product represents the combined transformation of followed by .
- Notice the reversal of operational order: The transformation applied first appears on the right, and the transformation applied second appears on the left.
Worked example of combined transformations:
- Transformation represents a reflection in the line .
- Transformation represents an enlargement centered at the origin with scale factor .
- Step (i): Identify individual matrices:
- Step (ii): Determine matrix representing followed by :
- Step (iii): Evaluate the image of coordinate point under composite transformation :
- The resulting image coordinates are .
Example 15: Determining Unknown Transformation Parameters, Pre-images, and Geometric Identity
Under the matrix transformation , coordinate points are mapped as:
Part (i) - Method 1: Inspection Method:
Inspecting the coordinate transformations reveals that the mapping exchanges the coordinate positions and alters the directional sign of the original -coordinate to produce the new -coordinate: .
Testing the matrix product configuration:
By inspection, the transformation matrix is: Where , , , and .
Part (i) - Method 2: Algebraic Simultaneous Equations Method:
Set up transformation equations for :
Set up transformation equations for :
Solve for parameters and using equations (1) and (3): Substitute into equation (1):
Solve for parameters and using equations (2) and (4): Substitute into equation (2):
Conclusion confirms the identical transformation matrix:
Part (ii): Solve for the pre-image coordinates such that .
Set up the inverse mapping matrix equation:
Equate components:
The coordinates of pre-image are .
Part (iii): Geometric description of transformation :
Matrix represents a rotation of clockwise about the origin , which corresponds directly to an anticlockwise rotation of about the origin.