Fundamental Concepts of Matrices
Table of contents
- Fundamental Concepts of Matrices & Basic Operations
- Scalar Multiplication
- Matrix Multiplication: Dimension Rule
- How to Multiply: Row-by-Column Method
- Where Are Matrices Applied?
- Matrix Operations Summary
1. Fundamental Concepts of Matrices & Basic Operations
1.1 What is a matrix?
A matrix is an ordered grid of numbers, variables, or expressions arranged in horizontal rows and vertical columns. Each individual entry within a matrix is denoted by aij, where i represents the row index and j represents the column index.
Matrices are typically enclosed in square brackets.
1.2 Dimensions and order of a matrix
The dimensions or order of a matrix are expressed as rows × columns (m×n).
- A row matrix contains exactly one horizontal row (1×n).
- A column matrix contains exactly one vertical column (m×1).
- A square matrix has an equal number of rows and columns (n×n).
1.3 Essential special matrices
Certain matrices have unique properties and names based on their structure and content.
| Matrix Type | Description |
|---|---|
| Zero Matrix (O) | Every entry in the matrix is equal to zero. |
| Identity Matrix (I) | A square matrix with 1s on the main diagonal and 0s elsewhere. |
| Diagonal Matrix | Non-zero values strictly exist on the main diagonal. |
| Transpose Matrix (A^T) | Formed by swapping horizontal rows into vertical columns. |
1.4 Matrix addition and subtraction
Matrix addition and subtraction are defined only for matrices that have identical dimensions (m×n). The operation is performed element-wise, meaning you combine matching entries directly.
If C=A±B, then cij=aij±bij.
| Operation | Rule |
|---|---|
| Addition/Subtraction Constraint | Matrices must have the same dimensions (m × n). |
| Element-Wise Rule | Combine matching entries: c_ij = a_ij ± b_ij. |
- Addition Example
To add the matrices
[3014]and[2153]you add corresponding elements: (3+2)=5, (1+5)=6, (0+1)=1, and (4+3)=7. The resulting matrix is
[5167]
2. Scalar Multiplication
2.1 Scaling every element
Scalar multiplication involves multiplying a matrix by a real scalar number, denoted as k. To perform this operation, you multiply every individual entry within the matrix by the scalar k.
The formula for scalar multiplication is k⋅A=[k⋅aij]. This operation also follows the distributive property: k(A+B)=kA+kB.
- Scalar Multiplication Example
If you have a matrix A=[1324] and a scalar k=3, then 3A is found by multiplying each element by 3:
3A=3[1324]=[3×13×33×23×4]=[39612]
3. Matrix Multiplication: Dimension Rule
3.1 Inner dimension compatibility test
For matrix multiplication to be possible, the inner dimensions of the two matrices must match. If you are multiplying matrix A (with dimensions m×n) by matrix B (with dimensions n×p), the number of columns in A (n) must equal the number of rows in B (n).
3.2 Resulting order
The dimensions of the resulting matrix are determined by the outer dimensions of the matrices being multiplied. If matrix A is m×n and matrix B is n×p, the product matrix AB will have dimensions m×p.
3.3 Non-commutative warning
Matrix multiplication is generally non-commutative, meaning the order of multiplication matters. In most cases, AB=BA.
Always pay close attention to the order in which matrices are multiplied.
3.4 Identity multiplication
Multiplying a matrix by the identity matrix (I) leaves the original matrix unchanged. This property holds true for both left and right multiplication: A⋅I=A and I⋅A=A.
| Operation | Rule |
|---|---|
| Dimension Compatibility | Inner dimensions must match: (m × n) × (n × p) |
| Resulting Dimensions | Outer dimensions determine the product: (m × p) |
| Commutativity | In general, AB ≠ BA (non-commutative) |
| Identity Property | A · I = A and I · A = A |
4. How to Multiply: Row-by-Column Method
4.1 Selecting the target row
To find an element in the resulting matrix, first, select the target row from the first matrix (matrix A).
4.2 Selecting the target column
Next, select the target column from the second matrix (matrix B).
4.3 Summing pair products
Multiply the corresponding elements of the selected row and column. Then, sum these products to get the value for the element at the intersection of that row and column in the resulting matrix.
This process is repeated for every row-column combination to construct the entire product matrix.
- Row-by-Column Method Example
To find the element in the first row and first column of the product AB, you take the first row of A and the first column of B, multiply their corresponding elements, and sum the results. For example, if A=[1324] and B=[5768], the element c11 of AB is (1×5)+(2×7)=5+14=19.
5. Where Are Matrices Applied?
5.1 Computer graphics and 3D animation
Matrices are fundamental in computer graphics for performing transformations on 3D objects. They are used to represent rotations, translations (moving objects), and scaling (resizing objects) in virtual space.
5.2 Digital image processing
In digital image processing, images are often stored as matrices where each element represents a pixel's brightness or color value. Matrix operations can be used to manipulate these images, such as adjusting contrast or applying filters.
5.3 Systems of equations and data science
Matrices are powerful tools for solving large systems of linear equations, which are common in fields like economics and engineering. In data science, they are used extensively for data representation, analysis, and machine learning algorithms.
| Application Area | Matrix Use |
|---|---|
| Computer Graphics | Representing transformations (rotation, translation, scaling) of 3D objects. |
| Digital Image Processing | Storing pixel brightness/color values; applying filters. |
| Systems of Equations | Solving large linear systems in various scientific and economic models. |
| Data Science | Data representation, analysis, and machine learning algorithms. |
6. Matrix Operations Summary
6.1 Summary of key operations
This section provides a quick reference for the main matrix operations covered.
| Operation | Key Rule/Constraint |
|---|---|
| Matrix Addition | Matrices must have the same dimensions. |
| Scalar Multiplication | Multiply every element of the matrix by the scalar. |
| Matrix Multiplication | Inner dimensions of the matrices must match (columns of first = rows of second). |
© 2026 Maeve. All rights reserved. This content is protected by copyright.