Mathematics (4024)
Topic 12 of 18Cambridge O Levels

Matrices

Perform operations with matrices, including finding the determinant and inverse.

### Introduction to Matrices


A matrix (plural: matrices) is a rectangular array or table of numbers, symbols, or expressions, arranged in rows and columns. It's a powerful tool for organising and manipulating data. Each item in a matrix is called an element or an entry.


The order of a matrix specifies its size. It is given as (number of rows) × (number of columns). For example, a matrix with 2 rows and 3 columns is of order 2 × 3.


Example:

`A = [[1, 2], [3, 4]]`

This is a 2 × 2 matrix, also known as a square matrix because it has the same number of rows and columns.


### Matrix Addition and Subtraction


To add or subtract matrices, they must have the same order. The operation is performed by adding or subtracting the corresponding elements.


Process: Matrix Addition/Subtraction

  • Check if both matrices have the identical order (e.g., both are 2 × 2).
  • Create a new matrix of the same order.
  • Add or subtract the elements in corresponding positions.

  • If `A = [[a, b], [c, d]]` and `B = [[p, q], [r, s]]`, then:

    A + B = [[a+p, b+q], [c+r, d+s]]

    A - B = [[a-p, b-q], [c-r, d-s]]


    Example:

    If `P = [[5, 8], [2, 1]]` and `Q = [[3, 1], [4, 6]]`, then

    `P + Q = [[5+3, 8+1], [2+4, 1+6]] = [[8, 9], [6, 7]]`


    ### Scalar Multiplication


    Scalar multiplication involves multiplying a matrix by a single number (a scalar). Every element inside the matrix is multiplied by this scalar.


    If `k` is a scalar and `A = [[a, b], [c, d]]`, then:

    k A = [[ka, kb], [kc, kd]]


    Example:

    If `A = [[3, -1], [0, 4]]`, then `5A = [[5*3, 5*(-1)], [5*0, 5*4]] = [[15, -5], [0, 20]]`


    ### Matrix Multiplication


    Multiplying two matrices is more complex. To multiply matrix A by matrix B (to get AB), the number of columns in A must equal the number of rows in B.


    Process: Matrix Multiplication (Row-by-Column)

  • Check if the condition for multiplication is met (columns of 1st = rows of 2nd).
  • To find the element in the *i*-th row and *j*-th column of the resulting matrix, you multiply each element of the *i*-th row of the first matrix by the corresponding element of the *j*-th column of the second matrix, and then sum the products.

  • If `A = [[a, b], [c, d]]` and `B = [[p, q], [r, s]]`, then:

    AB = [[(ap+br), (aq+bs)], [(cp+dr), (cq+ds)]]


    An important property is that matrix multiplication is not commutative, meaning that in general, AB ≠ BA.


    ### The Determinant of a 2x2 Matrix


    The determinant is a special number that can be calculated from a square matrix. For a 2 × 2 matrix, it tells us important information, especially when finding the inverse.

    The determinant of a matrix A is denoted as det(A) or |A|.


    Formula: Determinant of a 2x2 Matrix

    For a matrix `A = [[a, b], [c, d]]`:

    det(A) = ad - bc


    Example:

    If `M = [[4, 2], [1, 5]]`, then `det(M) = (4)(5) - (2)(1) = 20 - 2 = 18`.


    If the determinant of a matrix is zero, it is called a singular matrix. Singular matrices do not have an inverse.


    ### The Inverse of a 2x2 Matrix


    The inverse of a square matrix A, denoted as A⁻¹, is the matrix such that when you multiply it by A, you get the identity matrix, `I`. The identity matrix for a 2x2 is `[[1, 0], [0, 1]]`.

    So, A A⁻¹ = A⁻¹ A = I.


    A matrix only has an inverse if its determinant is not zero.


    Process: Finding the Inverse of a 2x2 Matrix

  • Calculate the determinant, `det(A) = ad - bc`. If it is 0, stop; the inverse does not exist.
  • Find the adjoint of the matrix. For a 2 × 2 matrix `[[a, b], [c, d]]`, you swap the elements `a` and `d`, and change the signs of `b` and `c`. The adjoint is `[[d, -b], [-c, a]]`.
  • Multiply the adjoint matrix by the reciprocal of the determinant.

  • Formula: Inverse of a 2x2 Matrix

    For a matrix `A = [[a, b], [c, d]]`:

    A⁻¹ = (1 / (ad-bc)) * [[d, -b], [-c, a]]


    Example:

    Find the inverse of `M = [[4, 2], [1, 5]]`.

  • `det(M) = 18` (from the previous example). Since it's not 0, an inverse exists.
  • Adjoint of M is `[[5, -2], [-1, 4]]`.
  • `M⁻¹ = (1/18) * [[5, -2], [-1, 4]] = [[5/18, -2/18], [-1/18, 4/18]] = [[5/18, -1/9], [-1/18, 2/9]]`
  • Key Points to Remember

    • 1Matrices can only be added or subtracted if they have the same order (e.g., both are 2x3).
    • 2Matrix multiplication AB is only possible if the number of columns in A equals the number of rows in B.
    • 3Matrix multiplication is not commutative; in general, AB ≠ BA.
    • 4The determinant of a 2x2 matrix `[[a, b], [c, d]]` is calculated by the formula **ad - bc**.
    • 5A matrix is **singular** if its determinant is 0, and it does not have an inverse.
    • 6The inverse of a matrix A is denoted by A⁻¹ and is found using the formula: **A⁻¹ = (1/det(A)) * adjoint(A)**.
    • 7The adjoint of a 2x2 matrix `[[a, b], [c, d]]` is `[[d, -b], [-c, a]]`.

    Pakistan Example

    Cricket Bat and Ball Costs

    Two sports shops in Lahore, 'Lahore Sports' and 'Punjab Sporting Goods', sell cricket bats and balls. Their prices can be represented by a matrix P. `P = [[8000, 500], [7500, 550]]` (Bats, Balls) Row 1 represents Lahore Sports, where a bat costs PKR 8000 and a ball costs PKR 500. Row 2 represents Punjab Sporting Goods, with prices of PKR 7500 and PKR 550 respectively. A local cricket academy wants to buy 10 bats and 25 balls. This quantity can be represented by a column matrix Q: `Q = [[10], [25]]` (Bats, Balls) To find the total cost at each shop, we multiply the matrices: C = P × Q. `C = [[8000, 500], [7500, 550]] * [[10], [25]]` `C = [[(8000*10 + 500*25)], [(7500*10 + 550*25)]]` `C = [[(80000 + 12500)], [(75000 + 13750)]]` `C = [[92500], [88750]]` The resulting matrix C shows the total cost. It would cost the academy PKR 92,500 at Lahore Sports and PKR 88,750 at Punjab Sporting Goods. This matrix calculation helps in making a quick, informed purchasing decision.

    Quick Revision Infographic

    Mathematics — Quick Revision

    Matrices

    Key Concepts

    1Matrices can only be added or subtracted if they have the same order (e.g., both are 2x3).
    2Matrix multiplication AB is only possible if the number of columns in A equals the number of rows in B.
    3Matrix multiplication is not commutative; in general, AB ≠ BA.
    4The determinant of a 2x2 matrix `[[a, b], [c, d]]` is calculated by the formula **ad - bc**.
    5A matrix is **singular** if its determinant is 0, and it does not have an inverse.
    6The inverse of a matrix A is denoted by A⁻¹ and is found using the formula: **A⁻¹ = (1/det(A)) * adjoint(A)**.

    Formulas to Know

    A is denoted by A⁻¹ and is found using the formula: **A⁻¹ = (1/det(A)) * adjoint(A)**.
    Pakistan Example

    Cricket Bat and Ball Costs

    Two sports shops in Lahore, 'Lahore Sports' and 'Punjab Sporting Goods', sell cricket bats and balls. Their prices can be represented by a matrix P. `P = [[8000, 500], [7500, 550]]` (Bats, Balls) Row 1 represents Lahore Sports, where a bat costs PKR 8000 and a ball costs PKR 500. Row 2 represents Punjab Sporting Goods, with prices of PKR 7500 and PKR 550 respectively. A local cricket academy wants to buy 10 bats and 25 balls. This quantity can be represented by a column matrix Q: `Q = [[10], [25]]` (Bats, Balls) To find the total cost at each shop, we multiply the matrices: C = P × Q. `C = [[8000, 500], [7500, 550]] * [[10], [25]]` `C = [[(8000*10 + 500*25)], [(7500*10 + 550*25)]]` `C = [[(80000 + 12500)], [(75000 + 13750)]]` `C = [[92500], [88750]]` The resulting matrix C shows the total cost. It would cost the academy PKR 92,500 at Lahore Sports and PKR 88,750 at Punjab Sporting Goods. This matrix calculation helps in making a quick, informed purchasing decision.

    SeekhoAsaan.com — Free RevisionMatrices Infographic

    Test Your Knowledge!

    5 questions to test your understanding.

    Start Quiz