Automotive Mechatronics Technology  ·  Level 6
Engineering Mathematics II
Chapter 5: Apply matrix
📚 4 Topics
⚑ What you will be able to do

By the end of this chapter, you will be able to:

  • correctly find the roots of numbers using the binomial expansion theorem
  • accurately calculate errors caused by small changes using the binomial theorem

These skills will help you solve engineering problems with precision and confidence, making your work reliable and effective in the real trade.

Matrix operations and determinants are fundamental in automotive mechatronics for analyzing systems such as vehicle dynamics, control algorithms, and sensor data fusion. Understanding how to manipulate matrices and compute determinants is crucial for solving linear equations that model mechanical and electrical components in vehicles. This chapter focuses on matrix operations and methods to calculate the determinant of 3x3 matrices, essential tools for automotive engineers working with system models and diagnostics.

5.1 Matrix Operation

Matrix operations include addition, subtraction, scalar multiplication, and matrix multiplication. These operations are widely used in automotive mechatronics to model systems such as robot kinematics, control systems, and sensor arrays. Mastery of these operations enables the analysis and design of complex vehicle systems involving multiple variables.

5.1.1 Matrix Addition and Subtraction

Matrix addition and subtraction involve combining matrices of the same order by adding or subtracting corresponding elements.

The formula for addition or subtraction of two matrices \( A = [a_{ij}] \) and \( B = [b_{ij}] \), both of order \( m \times n \), is:

$$ C = A \pm B \quad \text{where} \quad c_{ij} = a_{ij} \pm b_{ij} $$

Worked Examples

Example 1: Add matrices \( A \) and \( B \) representing sensor calibration offsets:

Given:
\[ A = \begin{bmatrix} 2 & -1 \\ 4 & 3 \end{bmatrix}, \quad B = \begin{bmatrix} 5 & 0 \\ -2 & 1 \end{bmatrix} \]

$$ C = A + B $$

$$ C = \begin{bmatrix} 2+5 & -1+0 \\ 4 + (-2) & 3+1 \end{bmatrix} $$

$$ C = \begin{bmatrix} 7 & -1 \\ 2 & 4 \end{bmatrix} $$

Answer:
\[ C = \begin{bmatrix} 7 & -1 \\ 2 & 4 \end{bmatrix} \]

Example 2: Subtract matrix \( B \) from \( A \) representing voltage differences in a circuit:

Given:
\[ A = \begin{bmatrix} 10 & 6 \\ 3 & 8 \end{bmatrix}, \quad B = \begin{bmatrix} 4 & 7 \\ 2 & 5 \end{bmatrix} \]

$$ C = A - B $$

$$ C = \begin{bmatrix} 10-4 & 6-7 \\ 3-2 & 8-5 \end{bmatrix} $$

$$ C = \begin{bmatrix} 6 & -1 \\ 1 & 3 \end{bmatrix} $$

Answer:
\[ C = \begin{bmatrix} 6 & -1 \\ 1 & 3 \end{bmatrix} \]

Example 3: Add two \(3 \times 3\) matrices representing state variables in vehicle control:

Given:
\[ A = \begin{bmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \\ 4 & 2 & 0 \end{bmatrix}, \quad B = \begin{bmatrix} 0 & 5 & -2 \\ 3 & -1 & 4 \\ 1 & 0 & 3 \end{bmatrix} \]

$$ C = A + B $$

$$ C = \begin{bmatrix} 1+0 & 0+5 & 2+(-2) \\ -1+3 & 3+(-1) & 1+4 \\ 4+1 & 2+0 & 0+3 \end{bmatrix} $$

$$ C = \begin{bmatrix} 1 & 5 & 0 \\ 2 & 2 & 5 \\ 5 & 2 & 3 \end{bmatrix} $$

Answer:
\[ C = \begin{bmatrix} 1 & 5 & 0 \\ 2 & 2 & 5 \\ 5 & 2 & 3 \end{bmatrix} \]

5.1.2 Scalar Multiplication

Scalar multiplication involves multiplying every element of a matrix by a constant scalar value. It is useful in scaling system parameters or adjusting gain factors in control systems.

The formula for scalar multiplication of matrix \( A = [a_{ij}] \) by scalar \( k \) is:

$$ B = kA \quad \text{where} \quad b_{ij} = k \times a_{ij} $$

Worked Examples

Example 1: Multiply matrix \( A \) representing motor torque values by scalar 3:

Given:
\[ A = \begin{bmatrix} 5 & -2 \\ 4 & 1 \end{bmatrix}, \quad k = 3 \]

$$ B = 3A $$

$$ B = \begin{bmatrix} 3 \times 5 & 3 \times (-2) \\ 3 \times 4 & 3 \times 1 \end{bmatrix} $$

$$ B = \begin{bmatrix} 15 & -6 \\ 12 & 3 \end{bmatrix} $$

Answer:
\[ B = \begin{bmatrix} 15 & -6 \\ 12 & 3 \end{bmatrix} \]

Example 2: Scale a \( 3 \times 3 \) matrix of sensor readings by 0.5 for normalization:

Given:
\[ A = \begin{bmatrix} 8 & 4 & 6 \\ 2 & 10 & 3 \\ 7 & 5 & 9 \end{bmatrix}, \quad k = 0.5 \]

$$ B = 0.5A $$

$$ B = \begin{bmatrix} 0.5 \times 8 & 0.5 \times 4 & 0.5 \times 6 \\ 0.5 \times 2 & 0.5 \times 10 & 0.5 \times 3 \\ 0.5 \times 7 & 0.5 \times 5 & 0.5 \times 9 \end{bmatrix} $$

$$ B = \begin{bmatrix} 4 & 2 & 3 \\ 1 & 5 & 1.5 \\ 3.5 & 2.5 & 4.5 \end{bmatrix} $$

Answer:
\[ B = \begin{bmatrix} 4 & 2 & 3 \\ 1 & 5 & 1.5 \\ 3.5 & 2.5 & 4.5 \end{bmatrix} \]

Example 3: Multiply a matrix of voltages by -2 to represent polarity reversal:

Given:
\[ A = \begin{bmatrix} 12 & -7 \\ 5 & 9 \end{bmatrix}, \quad k = -2 \]

$$ B = -2A $$

$$ B = \begin{bmatrix} -2 \times 12 & -2 \times (-7) \\ -2 \times 5 & -2 \times 9 \end{bmatrix} $$

$$ B = \begin{bmatrix} -24 & 14 \\ -10 & -18 \end{bmatrix} $$

Answer:
\[ B = \begin{bmatrix} -24 & 14 \\ -10 & -18 \end{bmatrix} \]

5.1.3 Matrix Multiplication

Matrix multiplication is essential in automotive mechatronics for transforming coordinate systems, combining system states, and applying control gains. For two matrices \( A \) of order \( m \times p \) and \( B \) of order \( p \times n \), the product matrix \( C = AB \) is of order \( m \times n \).

The element \( c_{ij} \) of matrix \( C \) is given by:

$$ c_{ij} = \sum_{k=1}^{p} a_{ik} b_{kj} $$

Worked Examples

Example 1: Multiply two \( 2 \times 2 \) matrices representing transformation matrices:

Given:
\[ A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}, \quad B = \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} \]

$$ C = AB $$

Calculate \( c_{11} \):

$$ c_{11} = (1 \times 5) + (2 \times 7) = 5 + 14 = 19 $$

Calculate \( c_{12} \):

$$ c_{12} = (1 \times 6) + (2 \times 8) = 6 + 16 = 22 $$

Calculate \( c_{21} \):

$$ c_{21} = (3 \times 5) + (4 \times 7) = 15 + 28 = 43 $$

Calculate \( c_{22} \):

$$ c_{22} = (3 \times 6) + (4 \times 8) = 18 + 32 = 50 $$

$$ C = \begin{bmatrix} 19 & 22 \\ 43 & 50 \end{bmatrix} $$

Answer:
\[ C = \begin{bmatrix} 19 & 22 \\ 43 & 50 \end{bmatrix} \]

Example 2: Multiply \( 2 \times 3 \) matrix by a \( 3 \times 2 \) matrix representing sensor data fusion:

Given:
\[ A = \begin{bmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \end{bmatrix}, \quad B = \begin{bmatrix} 3 & 1 \\ 2 & 1 \\ 1 & 0 \end{bmatrix} \]

$$ C = AB $$

Calculate \( c_{11} \):

$$ c_{11} = (1 \times 3) + (0 \times 2) + (2 \times 1) = 3 + 0 + 2 = 5 $$

Calculate \( c_{12} \):

$$ c_{12} = (1 \times 1) + (0 \times 1) + (2 \times 0) = 1 + 0 + 0 = 1 $$

Calculate \( c_{21} \):

$$ c_{21} = (-1 \times 3) + (3 \times 2) + (1 \times 1) = -3 + 6 + 1 = 4 $$

Calculate \( c_{22} \):

$$ c_{22} = (-1 \times 1) + (3 \times 1) + (1 \times 0) = -1 + 3 + 0 = 2 $$

$$ C = \begin{bmatrix} 5 & 1 \\ 4 & 2 \end{bmatrix} $$

Answer:
\[ C = \begin{bmatrix} 5 & 1 \\ 4 & 2 \end{bmatrix} \]

Example 3: Multiply two \( 3 \times 3 \) matrices representing rotation matrices in vehicle dynamics:

Given:
\[ A = \begin{bmatrix} 1 & 0 & 2 \\ -1 & 3 & 1 \\ 4 & 2 & 0 \end{bmatrix}, \quad B = \begin{bmatrix} 0 & 5 & -2 \\ 3 & -1 & 4 \\ 1 & 0 & 3 \end{bmatrix} \]

Calculate \( c_{11} \):

$$ c_{11} = (1 \times 0) + (0 \times 3) + (2 \times 1) = 0 + 0 + 2 = 2 $$

Calculate \( c_{12} \):

$$ c_{12} = (1 \times 5) + (0 \times -1) + (2 \times 0) = 5 + 0 + 0 = 5 $$

Calculate \( c_{13} \):

$$ c_{13} = (1 \times -2) + (0 \times 4) + (2 \times 3) = -2 + 0 + 6 = 4 $$

Calculate \( c_{21} \):

$$ c_{21} = (-1 \times 0) + (3 \times 3) + (1 \times 1) = 0 + 9 + 1 = 10 $$

Calculate \( c_{22} \):

$$ c_{22} = (-1 \times 5) + (3 \times -1) + (1 \times 0) = -5 - 3 + 0 = -8 $$

Calculate \( c_{23} \):

$$ c_{23} = (-1 \times -2) + (3 \times 4) + (1 \times 3) = 2 + 12 + 3 = 17 $$

Calculate \( c_{31} \):

$$ c_{31} = (4 \times 0) + (2 \times 3) + (0 \times 1) = 0 + 6 + 0 = 6 $$

Calculate \( c_{32} \):

$$ c_{32} = (4 \times 5) + (2 \times -1) + (0 \times 0) = 20 - 2 + 0 = 18 $$

Calculate \( c_{33} \):

$$ c_{33} = (4 \times -2) + (2 \times 4) + (0 \times 3) = -8 + 8 + 0 = 0 $$

$$ C = \begin{bmatrix} 2 & 5 & 4 \\ 10 & -8 & 17 \\ 6 & 18 & 0 \end{bmatrix} $$

Answer:
\[ C = \begin{bmatrix} 2 & 5 & 4 \\ 10 & -8 & 17 \\ 6 & 18 & 0 \end{bmatrix} \]

5.1.4 Transpose of a Matrix

The transpose of a matrix is obtained by interchanging its rows and columns. This operation is used in automotive mechatronics for changing coordinate frames and simplifying matrix equations.

If \( A = [a_{ij}] \) is an \( m \times n \) matrix, its transpose \( A^T \) is an \( n \times m \) matrix with elements:

$$ a^T_{ij} = a_{ji} $$

Worked Examples

Example 1: Find transpose of a \( 2 \times 3 \) matrix representing sensor readings:

Given:
\[ A = \begin{bmatrix} 1 & 4 & 7 \\ 2 & 5 & 8 \end{bmatrix} \]

$$ A^T = \begin{bmatrix} 1 & 2 \\ 4 & 5 \\ 7 & 8 \end{bmatrix} $$

Answer:
\[ A^T = \begin{bmatrix} 1 & 2 \\ 4 & 5 \\ 7 & 8 \end{bmatrix} \]

Example 2: Transpose a \( 3 \times 3 \) matrix representing a rotation matrix:

Given:
\[ A = \begin{bmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix} \]

$$ A^T = \begin{bmatrix} 0 & 1 & 0 \\ -1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix} $$

Answer:
\[ A^T = \begin{bmatrix} 0 & 1 & 0 \\ -1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix} \]

Example 3: Transpose a \( 3 \times 2 \) matrix used in actuator control:

Given:
\[ A = \begin{bmatrix} 3 & 5 \\ -2 & 4 \\ 0 & 1 \end{bmatrix} \]

$$ A^T = \begin{bmatrix} 3 & -2 & 0 \\ 5 & 4 & 1 \end{bmatrix} $$

Answer:
\[ A^T = \begin{bmatrix} 3 & -2 & 0 \\ 5 & 4 & 1 \end{bmatrix} \]

Practice Questions

  1. Add the matrices \( A = \begin{bmatrix} 7 & -3 \\ 4 & 2 \end{bmatrix} \) and \( B = \begin{bmatrix} 1 & 5 \\ -2 & 0 \end{bmatrix} \). (5 marks)

  2. Multiply the matrix \( A = \begin{bmatrix} 3 & 0 \\ -1 & 2 \end{bmatrix} \) by scalar \( 4 \). (5 marks)

  3. Multiply matrices \( A = \begin{bmatrix} 1 & 2 \\ 0 & -1 \end{bmatrix} \) and \( B = \begin{bmatrix} 3 & 1 \\ 4 & 2 \end{bmatrix} \). (6 marks)

  4. Find the transpose of matrix \( A = \begin{bmatrix} 2 & -1 & 3 \\ 0 & 4 & 5 \end{bmatrix} \). (4 marks)

The rest of this chapter
🔒

Create a free account to open more of this chapter.

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒5.2 Determinant of 3x3 Matrix

Determinants provide a scalar value characterizing square matrices, used in solving systems of equations, matrix inversion, and system stability analysis in automotive mechatronics. Calculating the determinant of a ( 3 times 3 ) matrix is a critical skill for…

🔒5.3 Inverse of 3x3 Matrix

The inverse of a 3x3 matrix is essential in automotive mechatronics for solving systems of equations related to sensor calibrations, control systems, and robotics arms positioning. Finding the inverse allows us to reverse the effect of a matrix transformation,…

🔒5.4 Application of Matrices in Solving Linear Simultaneous Equations in Three Unknowns

Linear simultaneous equations frequently arise in automotive mechatronics when working with systems such as engine control units (ECUs), where multiple sensor inputs relate to several output parameters. Matrices provide an efficient method to solve these equat…

Chapter Summary

This chapter focused on the fundamental operations of matrices including addition, subtraction, and multiplication, which are essential for manipulating matrix data. It then explored methods for finding the determinant of a 3x3 matrix using both the co-factor expansion and Sarrus' rule, providing systematic approaches for calculation. The chapter proceeded to explain how to compute the inverse of a 3x3 matrix, a critical step in solving matrix equations. Applications of matrices were demonstrated through solving linear simultaneous equations with three unknowns using three distinct methods: the matrix inverse method, the determinant method, and Cramer's rule. Each method was carefully illustrated to show how matrices simplify solving complex systems of equations. Overall, the chapter equipped learners with both the theory and practical calculation skills necessary for applying matrices in engineering mathematics contexts.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

Written Assessment

  1. Given matrices
    \( A = \begin{bmatrix} 2 & 3 & 1 \\ 0 & 1 & 4 \\ 5 & 2 & 2 \end{bmatrix} \) and
    \( B = \begin{bmatrix} 1 & 0 & 2 \\ 3 & 1 & 1 \\ 4 & 2 & 0 \end{bmatrix} \),
    calculate \( A + B \).

  2. For matrix
    \( C = \begin{bmatrix} 3 & 0 & 2 \\ 2 & 0 & -2 \\ 0 & 1 & 1 \end{bmatrix} \),
    find the determinant using the co-factor expansion method.

🔒15 more in this section.

Chapter Examination Questions

🔒 PDFDownload these examination questions, with worked answers

SECTION A (40 Marks) - Answer ALL Questions

  1. A vehicle diagnostic system uses the matrix
    \[ A = \begin{bmatrix} 2 & 1 & 3 \\ 0 & 1 & 4 \\ 5 & 2 & 0 \end{bmatrix} \]
    and the matrix
    \[ B = \begin{bmatrix} 1 & 0 & 2 \\ 3 & 1 & 1 \\ 0 & 2 & 4 \end{bmatrix} \].
    Calculate the product \(AB\). (4 marks)

  2. Find the determinant of the matrix
    \[ C = \begin{bmatrix} 4 & 2 & 1 \\ 3 & 0 & 5 \\ 2 & 1 & 3 \end{bmatrix} \]
    using the co-factor method. (4 marks)

🔒18 more in this section.
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

Create a free account
Test Yourself 13 questions Start quiz ▾
0%
0 / 2
🔒

11 more in this section.

Create a free account
Am I competent?

At the start of this chapter we promised you would be able to:

  • correctly find the roots of numbers using the binomial expansion theorem
  • accurately calculate errors caused by small changes using the binomial theorem

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.