Architecture  ·  Level 6
Mathematics For Architects I
Chapter 6: Apply matrix
📚 3 Topics
⚑ What you will be able to do

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

  • Carry out mathematical matrix operations following the correct order of matrices.
  • Calculate the inverse of square matrices accurately according to their order.
  • Solve simultaneous equations using matrices by applying Cramer's rule correctly.

Mastering these skills will help you confidently handle complex architectural calculations and improve your problem-solving abilities in real-world design projects.

Matrix operations form the foundation for many architectural computations such as transformations, structural analysis, and computer graphics modeling. Mastery of these operations enables architects to manipulate complex data sets, solve linear equations, and efficiently represent geometry and spatial relationships. In Kenya, where digital design and Building Information Modeling (BIM) are increasingly vital, understanding matrix operations is indispensable for professional practice.

6.1 Mathematical matrix operation

Matrix operations include addition, subtraction, multiplication, and special matrix manipulations that enable architects to perform calculations related to transformations and system solutions. This section covers the fundamental operations with matrices, starting from basics and progressing to more complex procedures relevant to architectural design and analysis.

6.1.1 Matrix Addition and Subtraction

Matrix addition and subtraction involve combining two matrices of the same dimension by adding or subtracting their corresponding elements. This operation is essential in architectural computations where multiple transformation matrices or data sets need to be combined or compared.

The formula for matrix addition or subtraction is:

$$ C = A \pm B $$

where \( A \) and \( B \) are matrices of the same size, and \( C \) is the resulting matrix with elements \( c_{ij} = a_{ij} \pm b_{ij} \).

Worked Examples

Example 1: Add two matrices representing displacement vectors in a building frame.

Given:

\( A = \begin{bmatrix} 2 & 5 \\ 7 & 4 \end{bmatrix} \), \( B = \begin{bmatrix} 3 & 1 \\ 6 & 2 \end{bmatrix} \)

$$ C = A + B $$

$$ C = \begin{bmatrix} 2+3 & 5+1 \\ 7+6 & 4+2 \end{bmatrix} $$

$$ C = \begin{bmatrix} 5 & 6 \\ 13 & 6 \end{bmatrix} $$

Answer:

\( C = \begin{bmatrix} 5 & 6 \\ 13 & 6 \end{bmatrix} \)


Example 2: Subtract two matrices representing load distributions on two floors of a building.

Given:

\( A = \begin{bmatrix} 12 & 9 & 7 \\ 8 & 11 & 5 \end{bmatrix} \), \( B = \begin{bmatrix} 4 & 5 & 3 \\ 2 & 6 & 1 \end{bmatrix} \)

$$ C = A - B $$

$$ C = \begin{bmatrix} 12-4 & 9-5 & 7-3 \\ 8-2 & 11-6 & 5-1 \end{bmatrix} $$

$$ C = \begin{bmatrix} 8 & 4 & 4 \\ 6 & 5 & 4 \end{bmatrix} $$

Answer:

\( C = \begin{bmatrix} 8 & 4 & 4 \\ 6 & 5 & 4 \end{bmatrix} \)


Example 3: Add two 3x3 matrices representing transformation parameters for a digital model.

Given:

\( A = \begin{bmatrix} 1 & 0 & 3 \\ 2 & 4 & 1 \\ 0 & 5 & 2 \end{bmatrix} \), \( B = \begin{bmatrix} 0 & 1 & 2 \\ 3 & 0 & 4 \\ 1 & 2 & 0 \end{bmatrix} \)

$$ C = A + B $$

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

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

Answer:

\( C = \begin{bmatrix} 1 & 1 & 5 \\ 5 & 4 & 5 \\ 1 & 7 & 2 \end{bmatrix} \)


6.1.2 Matrix Multiplication

Matrix multiplication is used to combine transformations or solve systems of equations common in architectural structural analysis and computer graphics. The product of two matrices \( A \) (size \( m \times n \)) and \( B \) (size \( n \times p \)) is a matrix \( C \) (size \( m \times p \)).

The formula for element \( c_{ij} \) in matrix \( C \) is:

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

Worked Examples

Example 1: Multiply a 2x2 transformation matrix with a 2x1 coordinate vector.

Given:

\( A = \begin{bmatrix} 3 & 2 \\ 1 & 4 \end{bmatrix} \), \( B = \begin{bmatrix} 5 \\ 7 \end{bmatrix} \)

$$ C = A \times B $$

$$ c_{11} = 3 \times 5 + 2 \times 7 = 15 + 14 = 29 $$

$$ c_{21} = 1 \times 5 + 4 \times 7 = 5 + 28 = 33 $$

Answer:

\( C = \begin{bmatrix} 29 \\ 33 \end{bmatrix} \)


Example 2: Multiply two 2x2 matrices representing two sequential transformations.

Given:

\( A = \begin{bmatrix} 2 & 1 \\ 0 & 3 \end{bmatrix} \), \( B = \begin{bmatrix} 4 & 5 \\ 6 & 7 \end{bmatrix} \)

$$ C = A \times B $$

Calculate each element:

$$ c_{11} = 2 \times 4 + 1 \times 6 = 8 + 6 = 14 $$

$$ c_{12} = 2 \times 5 + 1 \times 7 = 10 + 7 = 17 $$

$$ c_{21} = 0 \times 4 + 3 \times 6 = 0 + 18 = 18 $$

$$ c_{22} = 0 \times 5 + 3 \times 7 = 0 + 21 = 21 $$

Answer:

\( C = \begin{bmatrix} 14 & 17 \\ 18 & 21 \end{bmatrix} \)


Example 3: Multiply a 3x2 matrix by a 2x3 matrix representing a projection operation in a digital model.

Given:

\( A = \begin{bmatrix} 1 & 3 \\ 4 & 0 \\ 2 & 5 \end{bmatrix} \), \( B = \begin{bmatrix} 7 & 8 & 1 \\ 6 & 2 & 9 \end{bmatrix} \)

Calculate each element of \( C = A \times B \) of size 3x3:

$$ c_{11} = 1 \times 7 + 3 \times 6 = 7 + 18 = 25 $$

$$ c_{12} = 1 \times 8 + 3 \times 2 = 8 + 6 = 14 $$

$$ c_{13} = 1 \times 1 + 3 \times 9 = 1 + 27 = 28 $$

$$ c_{21} = 4 \times 7 + 0 \times 6 = 28 + 0 = 28 $$

$$ c_{22} = 4 \times 8 + 0 \times 2 = 32 + 0 = 32 $$

$$ c_{23} = 4 \times 1 + 0 \times 9 = 4 + 0 = 4 $$

$$ c_{31} = 2 \times 7 + 5 \times 6 = 14 + 30 = 44 $$

$$ c_{32} = 2 \times 8 + 5 \times 2 = 16 + 10 = 26 $$

$$ c_{33} = 2 \times 1 + 5 \times 9 = 2 + 45 = 47 $$

Answer:

\( C = \begin{bmatrix} 25 & 14 & 28 \\ 28 & 32 & 4 \\ 44 & 26 & 47 \end{bmatrix} \)


6.1.3 Transpose of a Matrix

The transpose of a matrix is obtained by interchanging its rows and columns. This operation is useful in architectural computations such as reflecting coordinate data or converting between row and column vectors.

The transpose of matrix \( A \) is denoted \( A^T \), where

$$ (A^T)_{ij} = A_{ji} $$

Worked Examples

Example 1: Find the transpose of a 2x3 matrix representing coordinates.

Given:

\( A = \begin{bmatrix} 1 & 4 & 7 \\ 2 & 5 & 8 \end{bmatrix} \)

$$ A^T = ? $$

Transpose by switching rows and columns:

$$ 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 3x3 matrix representing a rotation matrix in a digital model.

Given:

\( A = \begin{bmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix} \)

$$ A^T = ? $$

Transpose by switching rows and columns:

$$ 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 4x2 matrix used in coordinate transformation.

Given:

\( A = \begin{bmatrix} 3 & 6 \\ 1 & 5 \\ 0 & 2 \\ 4 & 7 \end{bmatrix} \)

$$ A^T = ? $$

Transpose operation:

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

Answer:

\( A^T = \begin{bmatrix} 3 & 1 & 0 & 4 \\ 6 & 5 & 2 & 7 \end{bmatrix} \)


6.1.4 Determinant of a Matrix

The determinant is a scalar value that can be computed from the elements of a square matrix and provides important properties such as invertibility and volume scaling in transformations. Architects use determinants in structural analysis and geometric transformations.

For a 2x2 matrix

$$ A = \begin{bmatrix} a & b \\ c & d \end{bmatrix} $$

the determinant is

$$ \det(A) = ad - bc $$

For a 3x3 matrix

$$ A = \begin{bmatrix} a & b & c \\ d & e & f \\ g & h & i \end{bmatrix} $$

the determinant is

$$ \det(A) = a(ei, fh) - b(di, fg) + c(dh, eg) $$

Worked Examples

Example 1: Calculate the determinant of a 2x2 matrix representing a scaling transformation.

Given:

\( A = \begin{bmatrix} 4 & 3 \\ 2 & 1 \end{bmatrix} \)

$$ \det(A) = ? $$

$$ \det(A) = (4)(1) - (3)(2) = 4 - 6 = -2 $$

Answer:

\(\det(A) = -2\)


Example 2: Calculate the determinant of a 3x3 matrix used in a volume scaling operation.

Given:

\( A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 4 & 5 \\ 1 & 0 & 6 \end{bmatrix} \)

$$ \det(A) = ? $$

Calculate minors:

$$ ei, fh = 4 \times 6 - 5 \times 0 = 24 - 0 = 24 $$

$$ di, fg = 0 \times 6 - 5 \times 1 = 0 - 5 = -5 $$

$$ dh, eg = 0 \times 0 - 4 \times 1 = 0 - 4 = -4 $$

Calculate determinant:

$$ \det(A) = 1 \times 24 - 2 \times (-5) + 3 \times (-4) = 24 + 10 - 12 = 22 $$

Answer:

\(\det(A) = 22\)


Example 3: Calculate the determinant of a 3x3 matrix representing a coordinate transformation.

Given:

\( A = \begin{bmatrix} 2 & 0 & 1 \\ 3 & 4 & 5 \\ 1 & 0 & 6 \end{bmatrix} \)

$$ \det(A) = ? $$

Calculate minors:

$$ ei, fh = 4 \times 6 - 5 \times 0 = 24 - 0 = 24 $$

$$ di, fg = 3 \times 6 - 5 \times 1 = 18 - 5 = 13 $$

$$ dh, eg = 3 \times 0 - 4 \times 1 = 0 - 4 = -4 $$

Calculate determinant:

$$ \det(A) = 2 \times 24 - 0 \times 13 + 1 \times (-4) = 48 + 0 - 4 = 44 $$

Answer:

\(\det(A) = 44\)


Practice Questions

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

  2. Multiply the matrices \( A = \begin{bmatrix} 1 & 3 \\ 2 & 4 \end{bmatrix} \) and \( B = \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} \). (5 marks)

  3. Find the transpose of the matrix \( A = \begin{bmatrix} 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix} \). (3 marks)

  4. Calculate the determinant of the matrix \( A = \begin{bmatrix} 3 & 2 \\ 1 & 4 \end{bmatrix} \). (4 marks)

  5. Calculate the determinant of the matrix \( A = \begin{bmatrix} 2 & 0 & 1 \\ 3 & 4 & 5 \\ 1 & 0 & 6 \end{bmatrix} \). (6 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
🔒6.2 Inverse of Square Matrices

In architecture and structural design, the inverse of square matrices is essential for solving systems of linear equations that arise in structural analysis, space planning, and load distribution. Kenyan architects and engineers frequently use matrix inverses…

🔒6.3 Matrix simultaneous calculation

In architectural project management and procurement, calculating quantities and ratios of materials, labor, and equipment required is essential for efficient resource allocation. Matrix simultaneous calculations allow architects and project managers to handle…

Chapter Summary

This chapter focused on mathematical matrix operations, introducing the fundamental procedures for manipulating matrices including addition, subtraction, and multiplication. It then explored the inverse of square matrices, detailing the conditions required for a matrix to have an inverse and the methods to compute it. The chapter further applied these concepts to solve simultaneous equations using matrix techniques, demonstrating how matrices can efficiently handle multiple linear equations. Throughout, emphasis was placed on the practical application of these operations in architectural mathematics. Students learned to perform calculations step-by-step to ensure accuracy. The assessment section reinforced understanding by testing skills in matrix operations and solving simultaneous equations. Overall, the chapter provided a comprehensive foundation in applying matrices to architectural problems.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

Written Assessment

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

  2. Calculate the inverse of the matrix
    \( C = \begin{bmatrix} 4 & 7 \\ 2 & 6 \end{bmatrix} \).

🔒18 more in this section.

Chapter Examination Questions

🔒 PDFDownload these examination questions, with worked answers

SECTION A (40 Marks) - Answer ALL Questions

  1. Given matrices \( A = \begin{bmatrix} 2 & 3 \\ 1 & 4 \end{bmatrix} \) and \( B = \begin{bmatrix} 5 & 1 \\ 0 & 2 \end{bmatrix} \), calculate the matrix product \( AB \). (4 marks)
  2. For matrix \( C = \begin{bmatrix} 3 & 7 \\ 2 & 5 \end{bmatrix} \), find the inverse matrix \( C^{-1} \) if it exists. (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 15 questions Start quiz ▾
0%
0 / 2
🔒

13 more in this section.

Create a free account
Am I competent?

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

  • Carry out mathematical matrix operations following the correct order of matrices.
  • Calculate the inverse of square matrices accurately according to their order.
  • Solve simultaneous equations using matrices by applying Cramer's rule correctly.

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.