By the end of this chapter, you will be able to: - accurately perform matrix operations as required for engineering tasks - correctly find the inverse of matrices following industry standards - solve simultaneous equations using matrices with precision for real-world applications
Mastering these skills will help you tackle complex engineering problems confidently and efficiently in your future career.
Matrices are essential tools in welding engineering for organizing and solving systems of linear equations that arise in structural analysis, heat distribution, and weld quality control. Understanding matrices helps welding professionals analyze stresses in welded joints and optimize welding parameters efficiently. This chapter introduces matrices and their operations, focusing on up to 3 by 3 matrices, which are commonly encountered in engineering problems related to welding structures and fabrication.
A matrix is a rectangular array of numbers arranged in rows and columns. In welding work it is used to store measured data, such as weld strengths, heat inputs and displacements, and to hold the coefficients of equations that describe forces and heat flow. This topic first classifies matrices into their standard types, then reviews how a matrix is defined and written, how its elements are indexed, and where matrices are applied in welding engineering.
Matrices are classified by their shape (the number of rows and columns) and by the pattern of their elements. Recognising the type quickly tells you what a matrix represents and which calculations it suits, for example whether it can describe a system of simultaneous equations or a single line of measurements. The six types below are the ones met most often in welding calculations such as load distribution and thermal analysis.
A row matrix has only one row and any number of columns, so its order is 1 × n. It is used to list values measured along a single line or axis, such as the forces recorded at successive points along one weld seam. Example: an inspector in a fabrication workshop records the tensile force at four points along a seam as 25, 30, 28 and 27 kN. These four values form a 1 × 4 row matrix.
Worked examples:
Example 1: Write a 1 × 3 row matrix representing the tensile forces (in kN) measured along a weld line: 25, 30, 28.
Given: Tensile forces 25, 30, 28 kN.
R = [ 25 30 28 ]
Answer: Row matrix R is [ 25 30 28 ], of order 1 × 3.
Example 2: State the order of the matrix [ 4 9 7 2 6 ] and say whether it is a row matrix.
Given: The matrix has 1 row and 5 columns.
Answer: The order is 1 × 5, so it is a row matrix.
A column matrix has only one column and any number of rows, so its order is m × 1. It is the usual way to write a vector, such as the displacements of several points on a plate or the unknowns of a set of equations. Example: a welding inspector measures the downward deflection of a welded girder at three points as 2, 5 and 4 mm. These values form a 3 × 1 column matrix.
Worked examples:
Example 1: Write the welding currents set on three machines in a workshop (120 A, 150 A and 180 A) as a column matrix.
Given: Currents 120, 150 and 180 A, one value per machine.
C = | 120 |
| 150 |
| 180 |
Answer: C is a column matrix of order 3 × 1.
Example 2: Write the deflections 2, 5 and 4 mm of a welded girder as a column matrix and state its order.
Given: Three deflection values in millimetres.
d = | 2 |
| 5 |
| 4 |
Answer: d is a 3 × 1 column matrix.
A square matrix has the same number of rows and columns, so its order is n × n. Only square matrices have a main diagonal, which runs from the top left element to the bottom right element (a₁₁, a₂₂, a₃₃, and so on). Square matrices are the ones used to hold the coefficients of simultaneous equations with as many equations as unknowns. Example: the force balance of a welded joint with two unknown forces gives a 2 × 2 coefficient matrix.
Worked examples:
Example 1: Identify the order and the main diagonal of
A = | 4 1 |
| 2 3 |
Given: Matrix A has 2 rows and 2 columns.
The main diagonal runs from a₁₁ to a₂₂.
Answer: A is a square matrix of order 2 × 2. Its main diagonal elements are 4 and 3.
Example 2: Is the matrix below square?
B = | 1 2 3 |
| 4 5 6 |
Given: Matrix B has 2 rows and 3 columns.
Answer: The number of rows (2) is not equal to the number of columns (3), so B is not square.
A zero matrix (also called a null matrix) has every element equal to zero. It can have any order and is written with the letter O. In welding calculations it represents a null case, such as a load matrix for a plate before any force is applied or a heat matrix for a zone that receives no heat. Example: at a farm-equipment workshop, the loads on three test points of two clamped plates are all 0 kN before testing starts.
Worked examples:
Example 1: Write the 2 × 3 load matrix (in kN) for two plates, each with three test points, when no load has been applied.
Given: All six loads are 0 kN.
O = | 0 0 0 |
| 0 0 0 |
Answer: O is a 2 × 3 zero matrix.
Example 2: Decide which of these matrices is a zero matrix.
P = | 0 0 | Q = | 0 0 |
| 0 0 | | 0 1 |
Given: P has only zero elements. Q has a 1 in position a₂₂.
Answer: P is a zero matrix. Q is not, because one element is not zero.
An identity matrix is a square matrix whose main diagonal elements are all 1 and whose other elements are all 0. It is written I (or I₂, I₃ to show the order). It acts as the number 1 does in ordinary arithmetic: multiplying any matrix of a suitable order by I leaves that matrix unchanged. It is the key reference matrix in the inverse method of solving equations. Example: the 2 × 2 identity matrix has 1 in positions a₁₁ and a₂₂ and 0 elsewhere.
Worked examples:
Example 1: Determine if the matrix below is an identity matrix.
I = | 1 0 0 |
| 0 1 0 |
| 0 0 1 |
Given: Matrix I is square, of order 3 × 3.
All diagonal elements are 1 and all other elements are 0.
Answer: Matrix I is an identity matrix.
Example 2: Is this matrix an identity matrix?
D = | 1 0 |
| 0 2 |
Given: Matrix D is square, of order 2 × 2.
The element a₂₂ is 2, not 1.
Answer: D is not an identity matrix, although it is a diagonal matrix.
A diagonal matrix is a square matrix in which every element off the main diagonal is zero. The diagonal elements may take any values, including zero. Diagonal matrices describe quantities that act independently of one another, such as separate scaling factors for different weld zones. Every identity matrix is diagonal, and so is every square zero matrix, but a diagonal matrix need not be either of these. Example: three independent welding stations with settings 10, 15 and 20 give a 3 × 3 diagonal matrix.
Worked examples:
Example 1: Identify whether the matrix below is diagonal.
A = | 10 0 0 |
| 0 15 0 |
| 0 0 20 |
Given: Matrix A is square, of order 3 × 3.
Since all off-diagonal elements are zero, A is diagonal.
Answer: Matrix A is a diagonal matrix.
Example 2: Is this matrix diagonal?
B = | 5 0 |
| 0 0 |
Given: Matrix B is square and its only non-zero element lies on the main diagonal.
Answer: B is a diagonal matrix. A zero on the diagonal does not prevent a matrix from being diagonal.
A matrix with m rows and n columns is called an m × n matrix, and m × n is its order. Each number in the array is an element. Arranging welding data this way keeps measurements and coefficients organised, so that forces, heat flow and deformation in welded components can be handled together.
A = | a11 a12 ... a1n |
| a21 a22 ... a2n |
| ... ... ... ... |
| am1 am2 ... amn |
Worked examples:
Example 1: Represent the following data as a 2 × 3 matrix for weld strength measurements (in kN) at three points on two plates:
Point 1: 10, Point 2: 15, Point 3: 12 on Plate 1
Point 1: 9, Point 2: 14, Point 3: 13 on Plate 2
Given:
Plate 1 strengths: 10, 15, 12 kN
Plate 2 strengths: 9, 14, 13 kN
A = | 10 15 12 |
| 9 14 13 |
Answer: Matrix A representing the weld strengths is
| 10 15 12 |
| 9 14 13 |
Example 2: Write the 3 × 3 matrix representing heat input (in joules) at three weld zones over three time intervals:
t₁: 120, 130, 125
t₂: 115, 140, 135
t₃: 110, 138, 130
Given: Heat input values at three zones for three time intervals.
H = | 120 130 125 |
| 115 140 135 |
| 110 138 130 |
Answer: Matrix H is
| 120 130 125 |
| 115 140 135 |
| 110 138 130 |
Example 3: Identify the element in the 2nd row and 3rd column of matrix
M = | 5 8 12 |
| 7 10 15 |
| 6 9 14 |
Given: Matrix M
The element is a₂₃, which is the value in row 2, column 3.
Answer: Element a₂₃ = 15
Matrix elements are referenced by their position using subscripts aᵢⱼ, where i is the row number and j the column number. This notation is crucial for correctly accessing data in welding calculations such as stress or temperature matrices.
A = [aᵢⱼ] where i = 1, 2, ..., m and j = 1, 2, ..., n
Worked examples:
Example 1: From matrix
C = | 7 8 9 |
| 4 5 6 |
find a₁₂.
Given: Matrix C
a₁₂ is the element in row 1, column 2.
Answer: a₁₂ = 8
Example 2: In matrix
D = | 3 6 9 |
| 2 5 8 |
| 1 4 7 |
find the element a₃₁.
Given: Matrix D
a₃₁ is the element in row 3, column 1.
Answer: a₃₁ = 1
Example 3: For matrix
E = | 12 15 |
| 18 21 |
write all elements with their indices.
Given: Matrix E
Answer: The elements of E with their indices are a₁₁ = 12, a₁₂ = 15, a₂₁ = 18 and a₂₂ = 21.
Matrices are applied in welding to hold the equations used for stress analysis, heat flow and distortion prediction in welded structures. They simplify complex calculations by organising data and coefficients systematically.
Worked examples:
Example 1: The force equilibrium in a welded joint gives the system of linear equations
2x + 3y = 8
5x − y = 7
Express the system in matrix form AX = B.
Given: The coefficients of x and y, the unknowns, and the right-hand side values.
A = | 2 3 | X = | x | B = | 8 |
| 5 -1 | | y | | 7 |
Answer: The system is written as AX = B with A, X and B as shown. Solving for X is done by the methods for simultaneous equations.
Example 2: Represent heat transfer coefficients in a welding process as a matrix, where rows represent different weld zones and columns represent heat sources.
H = | 10 5 |
| 3 12 |
Answer: Matrix H models the heat coefficients of the two zones for the two sources.
Example 3: Two welds apply forces in different directions. Represent each force by its x and y components (in kN) as a column matrix.
Given forces:
F₁ = | 30 | F₂ = | 20 |
| 40 | | 25 |
Answer: Each column matrix holds the x component (top) and the y component (bottom) of one force.
Represent the following weld bead penetration measurements (in mm) as a \(3 \times 2\) matrix:
Row 1: 5.2, 5.5
Row 2: 5.1, 5.3
Row 3: 5.4, 5.6 (3 marks)
Identify the type of matrix:$$ \begin{bmatrix} 8 & 0 & 0 \\ 0 & 8 & 0 \\ 0 & 0 & 8 \end{bmatrix} $$ (2 marks)
Find the element \(a_{23}\) in matrix$$ \begin{bmatrix} 4 & 7 & 9 \\ 2 & 5 & 8 \\ 3 & 6 & 1 \end{bmatrix} $$ (3 marks)
Write the matrix form \(AX = B\) of the system:
\(3x + 4y = 14\), \(2x - y = 3\) (4 marks)
Add matrices$$ A = \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix}, \quad B = \begin{bmatrix} 2 & 3 \\ 4 & 1 \end{bmatrix} $$ (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 matrices, defining key types including row, column, square, zero, identity, and diagonal matrices, each with distinct structures and properties. It then explored matrix operations such as addition, subtraction, and multiplication, focusing on matrices up to size 3 by 3 to develop foundational computational skills. The concept of the inverse of a matrix was examined in detail, covering calculation of the determinant, transpose, adjoint, and the inverse itself. These tools were applied to solve systems of simultaneous linear equations involving up to three variables using three methods: the inverse matrix method, Cramer's rule, and row reduction. Throughout, emphasis was placed on step-by-step procedures to ensure clarity and accuracy in solving engineering problems. The chapter provided a comprehensive framework for applying matrices in practical contexts, preparing students for more advanced applications in engineering mathematics.
Calculate the sum of the matrices
\(A = \begin{bmatrix} 2 & 4 \\ 1 & 3 \end{bmatrix}\) and
\(B = \begin{bmatrix} 5 & 7 \\ 6 & 2 \end{bmatrix}\).
(2 marks)
Subtract matrix
\(C = \begin{bmatrix} 3 & 8 & 2 \\ 1 & 0 & 4 \end{bmatrix}\) from
\(D = \begin{bmatrix} 6 & 5 & 7 \\ 3 & 2 & 9 \end{bmatrix}\).
(3 marks)
A welding workshop records the following matrices representing daily welded joint inspections:
\(A = \begin{bmatrix}3 & 5 & 2\end{bmatrix}\) and \(B = \begin{bmatrix}4 \\ 1 \\ 6\end{bmatrix}\). Identify the type of each matrix. (4 marks)
Given matrices \(A = \begin{bmatrix}2 & 4 \\ 1 & 3\end{bmatrix}\) and \(B = \begin{bmatrix}5 & 7 \\ 2 & 6\end{bmatrix}\), find \(A + B\). (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.