Unit 3 of 4 · BCA Sem 1

Unit 3: Matrices

Mathematics notes · PTU syllabus (UGCC2501)

3 min read5 topics15 exam questions
On this page
  1. Unit summary
  2. Introduction to matrices
  3. Types of matrices
  4. Scalar multiplication, negative, addition and difference
  5. Multiplication of matrices
  6. Transpose of a matrix
  7. Key terms
  8. Quick revision
  9. Important questions

Unit summary

Matrices organise numbers into rows and columns and are used in computer graphics, data tables, cryptography and solving equations. This unit covers the definition and types of matrices (row, column, rectangular, square, diagonal, scalar, unit, null, comparable and equal), scalar multiplication, negative, addition and subtraction, multiplication and the transpose of a matrix.

After this unit you can

  • Define a matrix and identify its order and its types
  • Add, subtract and scalar-multiply matrices
  • Multiply matrices and apply the conditions for multiplication
  • Find the transpose and apply its properties

PTU syllabus topics

  • Introduction
  • types of matrix (row, column, rectangular, square, diagonal, scalar, unit, null, comparable, equal)
  • scalar multiplication
  • negative of a matrix
  • addition and difference of matrices
  • multiplication of matrices
  • transpose of a matrix
1

Topic 1

Introduction to matrices

A matrix is a rectangular arrangement of numbers (elements) in rows and columns enclosed in brackets. A matrix with m rows and n columns has order m × n, and the element in the i-th row and j-th column is written aᵢⱼ.

A = | 1  2  3 |      order 2 × 3 (2 rows, 3 columns)
    | 4  5  6 |      a₁₂ = 2, a₂₃ = 6
Key termsBasic terms
Row
Horizontal line of elements
Column
Vertical line of elements
Order
m × n — rows first, then columns
Element aᵢⱼ
Entry in row i, column j
Number of elements
m × n
General form
A = [aᵢⱼ] of order m × n
ProcessConstructing a matrix from a rule
  1. 1Fix the order m × n
  2. 2For every i and j compute aᵢⱼ from the formula
  3. 3Write the elements row by row

Example

Construct a 2 × 2 matrix with aᵢⱼ = i + 2j: a₁₁ = 3, a₁₂ = 5, a₂₁ = 4, a₂₂ = 6, so A = [3 5; 4 6].

2

Topic 2

Types of matrices

ComparisonTypes of matrices (by shape)
Meaning
Example

Row matrix

One row only (1 × n)

[2 5 7]

Column matrix

One column only (m × 1)

[3; 8; 1]

Rectangular matrix

Number of rows ≠ number of columns

Order 2 × 3

Square matrix

Rows = columns (n × n)

[1 2; 3 4]

Null (zero) matrix

All elements are zero, written O

[0 0; 0 0]

ComparisonTypes of square matrices
Meaning
Example

Diagonal matrix

All off-diagonal elements are zero

[3 0; 0 5]

Scalar matrix

Diagonal matrix with equal diagonal elements

[4 0; 0 4]

Unit (identity) matrix I

Scalar matrix with diagonal elements 1

[1 0; 0 1]

Symmetric matrix

Aᵀ = A, aᵢⱼ = aⱼᵢ

[1 2; 2 3]

Skew-symmetric matrix

Aᵀ = −A, diagonal elements are 0

[0 2; −2 0]

ComparisonComparable and equal matrices
Meaning
Example

Comparable matrices

Same order — needed for addition and subtraction

Two matrices of order 2 × 3

Equal matrices

Same order and equal corresponding elements

[1 2; 3 4] = [1 2; 3 4]

HierarchySpecial square matrices (most general at top)
  1. Square matrix
  2. Diagonal matrix
  3. Scalar matrix
  4. Unit (identity) matrix

Example

Find x and y if [x + y 2; 3 x − y] = [5 2; 3 1]: x + y = 5 and x − y = 1, so x = 3 and y = 2.

3

Topic 3

Scalar multiplication, negative, addition and difference

Key formulasOperations on matrices
  • Scalar multiplication

    kA multiplies every element of A by the number k

  • Negative of a matrix

    −A = (−1)A — change the sign of every element

  • Addition

    A + B adds corresponding elements (same order only)

  • Difference

    A − B = A + (−B) subtracts corresponding elements

A = | 1  2 |        B = | 5  6 |
    | 3  4 |            | 7  8 |

A + B = | 6   8 |     A − B = | −4 −4 |     3A = | 3   6 |     −A = | −1 −2 |
        | 10 12 |             | −4 −4 |          | 9  12 |          | −3 −4 |

Properties of addition and scalar multiplication

Rule
CommutativeA + B = B + A
Associative(A + B) + C = A + (B + C)
IdentityA + O = A
InverseA + (−A) = O
Distributive over matricesk(A + B) = kA + kB
Distributive over scalars(k + l)A = kA + lA

Exam tip

Addition and subtraction are possible only when the matrices are of the same order. A 2 × 3 matrix cannot be added to a 3 × 2 matrix.

Example

If A = [2 3; 1 4] and B = [1 0; 5 2], find 2A − 3B = [4 6; 2 8] − [3 0; 15 6] = [1 6; −13 2].

4

Topic 4

Multiplication of matrices

Key termsCondition and rule
Condition
A × B is defined only if the number of columns of A equals the number of rows of B
Order of the product
A is m × n and B is n × p, so AB is m × p
Rule
Element cᵢⱼ = sum of products of the i-th row of A with the j-th column of B
Not commutative
AB ≠ BA in general
Identity
AI = IA = A
ProcessMultiplying two matrices
  1. 1Check the columns of A equal the rows of B
  2. 2Write the order of the product
  3. 3Take row 1 of A and column 1 of B — multiply pairs and add
  4. 4Repeat for every row and column
  5. 5Fill the answer matrix
A = | 1  2 |    B = | 5  6 |
    | 3  4 |        | 7  8 |

AB = | 1×5 + 2×7   1×6 + 2×8 |  =  | 19  22 |
     | 3×5 + 4×7   3×6 + 4×8 |     | 43  50 |

BA = | 5×1 + 6×3   5×2 + 6×4 |  =  | 23  34 |
     | 7×1 + 8×3   7×2 + 8×4 |     | 31  46 |        so AB ≠ BA
A (2×3) = | 1 2 3 |    C (3×2) = | 1 0 |       AC (2×2) = | 1+4+0   0+2+9 |  =  | 5  11 |
          | 4 5 6 |              | 2 1 |                  | 4+10+0  0+5+18|     | 14 23 |
                                 | 0 3 |

Properties of matrix multiplication

Statement
Not commutativeAB ≠ BA in general
Associative(AB)C = A(BC)
DistributiveA(B + C) = AB + AC and (A + B)C = AC + BC
IdentityAI = IA = A
Zero productAB = O does not imply A = O or B = O
PowersA² = A·A, only for square matrices

Example

Examples of zero product: A = [1 0; 0 0] and B = [0 0; 0 1] give AB = O although neither A nor B is the null matrix.

5

Topic 5

Transpose of a matrix

The transpose Aᵀ (or A′) is obtained by interchanging rows and columns; if A is m × n then Aᵀ is n × m and (Aᵀ)ᵢⱼ = Aⱼᵢ.

P = | 1 2 3 |     Pᵀ = | 1 4 |
    | 4 5 6 |          | 2 5 |
                       | 3 6 |
Key formulasProperties of the transpose
  • Double transpose

    (Aᵀ)ᵀ = A

  • Sum

    (A + B)ᵀ = Aᵀ + Bᵀ

  • Scalar

    (kA)ᵀ = k Aᵀ

  • Product (order reverses)

    (AB)ᵀ = Bᵀ Aᵀ

  • Symmetric

    A is symmetric if Aᵀ = A

  • Skew-symmetric

    A is skew-symmetric if Aᵀ = −A

Example

Verify (AB)ᵀ = BᵀAᵀ for the earlier A and B: (AB)ᵀ = [19 43; 22 50]; Bᵀ = [5 7; 6 8], Aᵀ = [1 3; 2 4] so BᵀAᵀ = [5+14 15+28; 6+16 18+32] = [19 43; 22 50] — equal.

Key terms

Matrix
Rectangular array of numbers in rows and columns
Order
Number of rows × number of columns
Square matrix
Matrix with equal numbers of rows and columns
Diagonal matrix
Square matrix whose off-diagonal elements are zero
Scalar matrix
Diagonal matrix with equal diagonal elements
Unit matrix
Scalar matrix with diagonal elements 1 (identity)
Comparable matrices
Matrices of the same order
Transpose
Matrix obtained by interchanging rows and columns

Quick revision

  • Order = rows × columns; a matrix has m × n elements.
  • Types: row, column, rectangular, square, diagonal, scalar, unit, null.
  • Add or subtract only matrices of the same order, element by element.
  • AB exists only if columns of A = rows of B; order m × n times n × p gives m × p.
  • AB ≠ BA in general; AI = IA = A.
  • (AB)ᵀ = BᵀAᵀ — the order reverses.

Important exam questions

Practice questions written to the PTU exam pattern for this unit's syllabus: short answers (Section A style) and long answers (Sections B and C style).

Short-answer questions

  1. Q1.Define a matrix and its order.
  2. Q2.Write a 3 × 3 unit matrix.
  3. Q3.Differentiate between a scalar matrix and a unit matrix.
  4. Q4.When can two matrices be added?
  5. Q5.When is the product of two matrices defined?
  6. Q6.What is the order of AB if A is 3 × 2 and B is 2 × 4?
  7. Q7.Is matrix multiplication commutative?
  8. Q8.Define the transpose of a matrix.
  9. Q9.What is a null matrix?
  10. Q10.State (AB)ᵀ in terms of Aᵀ and Bᵀ.

Long-answer questions

  1. Q1.Explain the different types of matrices with examples.
  2. Q2.If A = [1 2; 3 4] and B = [5 6; 7 8], find A + B, A − B, 2A, AB and BA.
  3. Q3.State the conditions for multiplication of matrices and the properties of multiplication.
  4. Q4.Define the transpose and verify (AB)ᵀ = BᵀAᵀ for given matrices.
  5. Q5.Solve for x and y from a matrix equation using equality of matrices.

Stuck on this unit?

Message SBS on WhatsApp for help with Mathematics, or to ask about studying BCA at Synetic.

WhatsApp us