Introduction to Matrices: Definition, Types and Solved Examples
Introduction
Matrices are an important part of mathematics used to organize numbers and solve systems of equations. In pharmaceutical mathematics, matrices can help represent and solve certain pharmacokinetic equations and other mathematical models.
A matrix may look complicated at first, but its basic idea is simple: it is a rectangular arrangement of numbers in rows and columns.
1. What Is a Matrix?
A matrix is a rectangular arrangement of numbers, symbols or expressions organized into horizontal rows and vertical columns. The plural of matrix is matrices.
For example:
Matrix A:
[1 2 3]
[4 5 6]
This matrix has two rows and three columns.
The numbers inside a matrix are called its elements or entries.
Rows and Columns
Rows run horizontally from left to right.
Columns run vertically from top to bottom.
For matrix A:
Number of rows = 2
Number of columns = 3
2. Order of a Matrix
The order of a matrix describes its number of rows and columns.
Order = Number of rows × Number of columns
For example:
Matrix B:
[2 4]
[6 8]
[1 3]
This matrix has three rows and two columns.
Therefore, its order is 3 × 2.
Important: The number of rows is written first, followed by the number of columns.
3. Types of Matrices
Matrices are classified according to their arrangement and properties.
A. Row Matrix
A row matrix contains only one row.
Example:
A = [2 4 6]
Its order is 1 × 3.
B. Column Matrix
A column matrix contains only one column.
Example:
Matrix B:
[3]
[5]
[7]
Its order is 3 × 1.
C. Rectangular Matrix
A rectangular matrix has a different number of rows and columns.
Example:
Matrix C:
[1 2 3]
[4 5 6]
Its order is 2 × 3.
D. Square Matrix
A square matrix has an equal number of rows and columns.
Example:
Matrix D:
[1 2]
[3 4]
Its order is 2 × 2.
Square matrices are particularly important because operations such as calculating determinants and finding inverses are defined for square matrices.
E. Zero or Null Matrix
A zero matrix is a matrix in which every element is zero.
Example:
Matrix O:
[0 0]
[0 0]
Its order is 2 × 2.
F. Diagonal Matrix
A diagonal matrix is a square matrix in which all elements outside the main diagonal are zero.
Example:
Matrix E:
[2 0 0]
[0 5 0]
[0 0 7]
The main diagonal contains 2, 5 and 7. All other elements are zero.
G. Scalar Matrix
A scalar matrix is a diagonal matrix in which all main diagonal elements are equal.
Example:
Matrix F:
[4 0]
[0 4]
Both diagonal elements are 4, and the remaining elements are zero.
H. Identity or Unit Matrix
An identity matrix is a square matrix with 1s on the main diagonal and 0s everywhere else.
Example:
Matrix I:
[1 0]
[0 1]
The identity matrix is important in matrix multiplication because multiplying a compatible matrix by the identity matrix leaves it unchanged.
I. Upper Triangular Matrix
An upper triangular matrix is a square matrix in which every element below the main diagonal is zero.
Example:
Matrix G:
[1 2 3]
[0 4 5]
[0 0 6]
J. Lower Triangular Matrix
A lower triangular matrix is a square matrix in which every element above the main diagonal is zero.
Example:
Matrix H:
[1 0 0]
[2 3 0]
[4 5 6]
4. Solved Examples
Example 1 — Basic Level
Question: Find the order of the matrix.
Matrix A:
[3 5 7]
[2 4 6]
Solution:
Count the horizontal rows:
Row 1: 3, 5, 7
Row 2: 2, 4, 6
Number of rows = 2
Number of columns = 3
Answer: Order = 2 × 3
Example 2 — Medium Level
Question: Identify the type and order of the following matrix.
Matrix B:
[5 0]
[0 5]
Solution:
The matrix has two rows and two columns, so its order is 2 × 2. Therefore, it is a square matrix.
The elements outside the main diagonal are zero, so it is a diagonal matrix.
Both diagonal elements are equal to 5, so it is also a scalar matrix.
Answer: Square, diagonal and scalar matrix of order 2 × 2.
Example 3 — Challenging Level
Question: Identify the type of matrix and its order.
Matrix C:
[1 2 0]
[0 3 4]
[0 0 5]
Solution:
The matrix has three rows and three columns. Therefore, its order is 3 × 3, and it is a square matrix.
Now examine the elements below the main diagonal. They are all zero.
Therefore, C is an upper triangular matrix.
Answer: Upper triangular square matrix of order 3 × 3.
5. Why Are Matrices Important in Pharmacy?
Matrices provide a structured way to represent multiple related values and equations.
For example, a mathematical model may describe drug concentrations in different compartments of the body. Under suitable assumptions, the relationships between compartments can be represented using matrices and solved using matrix methods.
Matrices are also useful in solving simultaneous linear equations, which form the mathematical foundation for several scientific and pharmaceutical calculations.
Key Takeaways
A matrix is a rectangular arrangement of elements in rows and columns.
The order of a matrix is written as rows × columns.
Matrices may be classified as row, column, rectangular, square, zero, diagonal, scalar, identity, upper triangular or lower triangular.
Square matrices are essential for studying determinants and inverses.
Matrices help organize equations and solve mathematical models, including selected pharmacokinetic applications.
