By the end of this chapter, you will be able to:
These skills will help you solve real-world engineering problems with confidence and precision, making your work reliable and efficient.
Matrices are fundamental tools in biomedical engineering for organizing and manipulating data such as physiological measurements, imaging information, and system parameters. Applying matrices allows engineers to model complex biological systems, analyze signals, and design control systems for medical devices. This chapter introduces matrices, their types, notation, and basic operations, all contextualized for biomedical engineering applications in Kenya.
Matrices are rectangular arrays of numbers arranged in rows and columns, used extensively in biomedical engineering for representing data sets and transformations. Understanding matrix types and operations enables efficient handling of multi-dimensional data from sources like ECG signals, MRI images, and patient monitoring systems.
A matrix is a rectangular arrangement of numbers or elements in rows and columns enclosed by brackets. The size of a matrix is described by its number of rows \(m\) and columns \(n\), denoted as an \(m \times n\) matrix. Using matrices, biomedical engineers represent data such as sensor outputs or system coefficients compactly.
A matrix \(A\) with \(m\) rows and \(n\) columns is written as:
$$ A = \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{bmatrix} $$
where \(a_{ij}\) is the element in the \(i^{th}\) row and \(j^{th}\) column.
Example 1: Represent a 2-channel ECG signal data for 3 time points as a matrix.
Given: ECG readings for 2 channels at 3 time points
Channel 1: 0.5 mV, 0.7 mV, 0.6 mV
Channel 2: 0.3 mV, 0.4 mV, 0.5 mV
Matrix \(E\):
$$ E = \begin{bmatrix} 0.5 & 0.7 & 0.6 \\ 0.3 & 0.4 & 0.5 \end{bmatrix} $$
Example 2: Write a \(3 \times 2\) matrix representing oxygen saturation levels (%) for 3 patients measured twice.
Given: Patient 1: 95, 96; Patient 2: 90, 92; Patient 3: 88, 89
Matrix \(O\):
$$ O = \begin{bmatrix} 95 & 96 \\ 90 & 92 \\ 88 & 89 \end{bmatrix} $$
Example 3: Identify the size of matrix
$$ M = \begin{bmatrix} 1 & 2 & 3 & 4 \\ 5 & 6 & 7 & 8 \end{bmatrix} $$
Matrix \(M\) has 2 rows and 4 columns, size \(2 \times 4\).
Matrices vary by their dimensions and element arrangements. Biomedical engineers must recognize matrix types to select appropriate operations for data processing and system modeling.
Example 1: Identify matrix types
Given:
$$ A = \begin{bmatrix} 3 & 5 & 7 \end{bmatrix} $$
\(A\) is a row matrix (\(1 \times 3\)).
Example 2: Identify matrix types
Given:
$$ B = \begin{bmatrix} 2 \\ 4 \\ 6 \end{bmatrix} $$
\(B\) is a column matrix (\(3 \times 1\)).
Example 3: Check if matrix is diagonal or identity
Given:
$$ C = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} $$
\(C\) is an identity matrix of size \(3 \times 3\).
Example 4: Determine if matrix is square or rectangular
Given:
$$ D = \begin{bmatrix} 7 & 8 \\ 9 & 10 \\ 11 & 12 \end{bmatrix} $$
Matrix \(D\) is rectangular \(3 \times 2\).
Example 5: Identify zero matrix
Given:
$$ Z = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} $$
Matrix \(Z\) is a zero matrix \(2 \times 2\).
Matrix elements are denoted by \(a_{ij}\), where \(i\) indicates the row and \(j\) the column. This notation is critical for referencing entries in biomedical data matrices such as pixel intensities in medical images or coefficients in system models.
The general matrix \(A\) is expressed as:
$$ A = [a_{ij}]_{m \times n} $$
where \(i = 1, 2, \ldots, m\) and \(j = 1, 2, \ldots, n\).
Example 1: Write the element in the 2nd row, 3rd column of
$$ A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix} $$
Element \(a_{23} = 6\).
Example 2: Express the element \(a_{31}\) of matrix
$$ B = \begin{bmatrix} 7 & 8 \\ 9 & 10 \\ 11 & 12 \end{bmatrix} $$
Element \(a_{31} = 11\).
Example 3: Given matrix
$$ C = \begin{bmatrix} 2 & 4 & 6 \\ 8 & 10 & 12 \\ 14 & 16 & 18 \end{bmatrix} $$
Find the element \(a_{22}\):
\(a_{22} = 10\).
Example 4: Given matrix \(D = [d_{ij}]_{3 \times 3}\), with
$$ D = \begin{bmatrix} d_{11} & d_{12} & d_{13} \\ d_{21} & d_{22} & d_{23} \\ d_{31} & d_{32} & d_{33} \end{bmatrix} $$
If \(d_{ij} = i + j\), find \(d_{23}\):
$$ d_{23} = 2 + 3 = 5 $$
Example 5: For matrix \(E = [e_{ij}]_{2 \times 4}\), where \(e_{ij} = 3i, j\), find \(e_{14}\):
$$ e_{14} = 3(1) - 4 = 3 - 4 = -1 $$
Matrix operations allow biomedical engineers to combine and scale data sets, such as overlaying sensor readings or adjusting signal amplitudes.
Conditions: For addition and subtraction, matrices must be the same size. Scalar multiplication applies to any matrix.
Formulas:
Example 1: Add matrices
$$ A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}, \quad B = \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} $$
$$ A + B = \begin{bmatrix} 1+5 & 2+6 \\ 3+7 & 4+8 \end{bmatrix} = \begin{bmatrix} 6 & 8 \\ 10 & 12 \end{bmatrix} $$
Example 2: Subtract matrices
$$ C = \begin{bmatrix} 9 & 8 \\ 7 & 6 \end{bmatrix}, \quad D = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} $$
$$ C - D = \begin{bmatrix} 9-1 & 8-2 \\ 7-3 & 6-4 \end{bmatrix} = \begin{bmatrix} 8 & 6 \\ 4 & 2 \end{bmatrix} $$
Example 3: Multiply matrix by scalar
$$ k = 3, \quad E = \begin{bmatrix} 1 & 0 \\ -1 & 2 \end{bmatrix} $$
$$ kE = \begin{bmatrix} 3 \times 1 & 3 \times 0 \\ 3 \times (-1) & 3 \times 2 \end{bmatrix} = \begin{bmatrix} 3 & 0 \\ -3 & 6 \end{bmatrix} $$
Example 4: Add two \(3 \times 2\) matrices
$$ F = \begin{bmatrix} 2 & 4 \\ 6 & 8 \\ 10 & 12 \end{bmatrix}, \quad G = \begin{bmatrix} 1 & 3 \\ 5 & 7 \\ 9 & 11 \end{bmatrix} $$
$$ F + G = \begin{bmatrix} 2+1 & 4+3 \\ 6+5 & 8+7 \\ 10+9 & 12+11 \end{bmatrix} = \begin{bmatrix} 3 & 7 \\ 11 & 15 \\ 19 & 23 \end{bmatrix} $$
Example 5: Multiply matrix by scalar \(k = -2\)
$$ H = \begin{bmatrix} 3 & -1 \\ 0 & 4 \end{bmatrix} $$
$$ kH = \begin{bmatrix} -2 \times 3 & -2 \times (-1) \\ -2 \times 0 & -2 \times 4 \end{bmatrix} = \begin{bmatrix} -6 & 2 \\ 0 & -8 \end{bmatrix} $$
Certain matrices have properties that simplify calculations in biomedical engineering tasks such as image processing and system control.
Example 1: Check if matrix is symmetric
$$ A = \begin{bmatrix} 2 & 3 \\ 3 & 4 \end{bmatrix} $$
Transpose \(A^T = \begin{bmatrix} 2 & 3 \\ 3 & 4 \end{bmatrix}\), which equals \(A\), so \(A\) is symmetric.
Example 2: Check if matrix is skew-symmetric
$$ B = \begin{bmatrix} 0 & 5 \\ -5 & 0 \end{bmatrix} $$
Transpose \(B^T = \begin{bmatrix} 0 & -5 \\ 5 & 0 \end{bmatrix} = -B\), so \(B\) is skew-symmetric.
Example 3: Verify orthogonality
$$ C = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix} $$
Calculate \(C^T C\):
$$ C^T = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} $$
$$ C^T C = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I $$
Example 4: Determine if matrix is singular by finding determinant
$$ D = \begin{bmatrix} 4 & 2 \\ 6 & 3 \end{bmatrix} $$
Calculate determinant:
$$ |D| = (4)(3) - (2)(6) = 12 - 12 = 0 $$
Since determinant is zero, \(D\) is singular.
Example 5: Diagonalize matrix
Given:
$$ A = \begin{bmatrix} 4 & 1 \\ 0 & 3 \end{bmatrix} $$
Eigenvalues: \(\lambda_1 = 4\), \(\lambda_2 = 3\), so \(A\) is diagonalizable as:
$$ A = PDP^{-1}, \quad D = \begin{bmatrix} 4 & 0 \\ 0 & 3 \end{bmatrix} $$
\(P\) is formed by eigenvectors of \(A\).
Identify the type of matrix and its size for the matrix below:
\(\begin{bmatrix} 7 \\ 8 \\ 9 \end{bmatrix}\) (2 marks)
Find element \(a_{32}\) of matrix
\(\begin{bmatrix} 5 & 6 \\ 7 & 8 \\ 9 & 10 \end{bmatrix}\). (3 marks)
Add matrices
\(\begin{bmatrix} 1 & 0 \\ 4 & 5 \end{bmatrix}\) and \(\begin{bmatrix} 7 & 8 \\ 2 & 3 \end{bmatrix}\). (4 marks)
Multiply matrix \(\begin{bmatrix} 2 & -1 \\ 0 & 3 \end{bmatrix}\) by scalar \(-3\). (4 marks)
Create a free account to open more of this chapter.
Free: practical guides, quick cards, workplace scenarios and more.
Create a free accountThis chapter introduced the concept of matrices, defining them and exploring various types such as row, column, square, rectangular, diagonal, identity, and zero matrices. The notation and elements of matrices were explained, followed by basic operations including addition, subtraction, and scalar multiplication. Special matrices like identity, diagonal, symmetric, and skew-symmetric matrices were also covered. The chapter then detailed matrix multiplication, outlining the rules and properties including associative and distributive laws, and discussed the transpose of a matrix with its characteristics. Determinants for 2x2 and 3x3 matrices were calculated, and methods for finding inverses, such as the adjoint method and Gauss-Jordan elimination, were examined along with the conditions necessary for an inverse to exist. The use of matrices to represent systems of linear equations was introduced, followed by the application of Cramer's rule and the inverse matrix method to solve these systems. Finally, the inverse determinant method was presented as another approach for solving linear systems efficiently.
Given matrices
\( A = \begin{bmatrix} 2 & 3 \\ 1 & 4 \end{bmatrix} \)
and
\( B = \begin{bmatrix} 5 & 1 \\ 0 & 2 \end{bmatrix} \),
find \( A + B \). (2 marks)
Calculate the product of the scalar \( 4 \) and matrix
\( C = \begin{bmatrix} 1 & -2 \\ 3 & 0 \end{bmatrix} \). (2 marks)
A biomedical device manufacturer in Nairobi uses a 2x2 matrix to represent the calibration coefficients of two sensors. The matrix is $$ A = \begin{bmatrix} 1.2 & 0.5 \\ 0.3 & 1.1 \end{bmatrix} $$. Write down the order of matrix \(A\) and identify if it is square or rectangular. (4 marks)
Given matrices $$ B = \begin{bmatrix} 4 & 2 & 1 \end{bmatrix} $$ and$$ C = \begin{bmatrix} 3 \\ 5 \\ 7 \end{bmatrix} $$ find the product \( BC \). (4 marks)
At the start of this chapter we promised you would be able to:
Tick each one you can genuinely do.
So, are you there yet?
You're competent when you can confidently do 50% or more of what this chapter promised.
Sign in to record how you're doing.