Fundamental Concepts of Matrices

Table of contents

  1. Fundamental Concepts of Matrices & Basic Operations
  2. Scalar Multiplication
  3. Matrix Multiplication: Dimension Rule
  4. How to Multiply: Row-by-Column Method
  5. Where Are Matrices Applied?
  6. 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 aija_{ij}, where ii represents the row index and jj 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×nm \times n).

  • A row matrix contains exactly one horizontal row (1×n1 \times n).
  • A column matrix contains exactly one vertical column (m×1m \times 1).
  • A square matrix has an equal number of rows and columns (n×nn \times n).

1.3 Essential special matrices

Certain matrices have unique properties and names based on their structure and content.

Matrix TypeDescription
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 MatrixNon-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×nm \times n). The operation is performed element-wise, meaning you combine matching entries directly.

If C=A±BC = A \pm B, then cij=aij±bijc_{ij} = a_{ij} \pm b_{ij}.

OperationRule
Addition/Subtraction ConstraintMatrices must have the same dimensions (m × n).
Element-Wise RuleCombine matching entries: c_ij = a_ij ± b_ij.
  • Addition Example

To add the matrices

[3104]and[2513]\begin{bmatrix} 3 & 1 \\ 0 & 4 \end{bmatrix} \quad \text{and} \quad \begin{bmatrix} 2 & 5 \\ 1 & 3 \end{bmatrix}

you add corresponding elements: (3+2)=5(3+2)=5, (1+5)=6(1+5)=6, (0+1)=1(0+1)=1, and (4+3)=7(4+3)=7. The resulting matrix is

[5617]\begin{bmatrix} 5 & 6 \\ 1 & 7 \end{bmatrix}

2. Scalar Multiplication

2.1 Scaling every element

Scalar multiplication involves multiplying a matrix by a real scalar number, denoted as kk. To perform this operation, you multiply every individual entry within the matrix by the scalar kk.

The formula for scalar multiplication is k⋅A=[k⋅aij]k \cdot A = [k \cdot a_{ij}]. This operation also follows the distributive property: k(A+B)=kA+kBk(A + B) = kA + kB.

  • Scalar Multiplication Example

If you have a matrix A=[1234]A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} and a scalar k=3k=3, then 3A3A is found by multiplying each element by 3:

3A=3[1234]=[3×13×23×33×4]=[36912]3A = 3 \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} = \begin{bmatrix} 3 \times 1 & 3 \times 2 \\ 3 \times 3 & 3 \times 4 \end{bmatrix} = \begin{bmatrix} 3 & 6 \\ 9 & 12 \end{bmatrix}

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×nm \times n) by matrix B (with dimensions n×pn \times p), the number of columns in A (nn) must equal the number of rows in B (nn).

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×nm \times n and matrix B is n×pn \times p, the product matrix AB will have dimensions m×pm \times p.

3.3 Non-commutative warning

Matrix multiplication is generally non-commutative, meaning the order of multiplication matters. In most cases, AB≠BAAB \neq BA.

Always pay close attention to the order in which matrices are multiplied.

3.4 Identity multiplication

Multiplying a matrix by the identity matrix (II) leaves the original matrix unchanged. This property holds true for both left and right multiplication: A⋅I=AA \cdot I = A and I⋅A=AI \cdot A = A.

OperationRule
Dimension CompatibilityInner dimensions must match: (m × n) × (n × p)
Resulting DimensionsOuter dimensions determine the product: (m × p)
CommutativityIn general, AB ≠ BA (non-commutative)
Identity PropertyA · 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 ABAB, you take the first row of AA and the first column of BB, multiply their corresponding elements, and sum the results. For example, if A=[1234]A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} and B=[5678]B = \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix}, the element c11c_{11} of ABAB is (1×5)+(2×7)=5+14=19(1 \times 5) + (2 \times 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 AreaMatrix Use
Computer GraphicsRepresenting transformations (rotation, translation, scaling) of 3D objects.
Digital Image ProcessingStoring pixel brightness/color values; applying filters.
Systems of EquationsSolving large linear systems in various scientific and economic models.
Data ScienceData 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.

OperationKey Rule/Constraint
Matrix AdditionMatrices must have the same dimensions.
Scalar MultiplicationMultiply every element of the matrix by the scalar.
Matrix MultiplicationInner dimensions of the matrices must match (columns of first = rows of second).

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also