Matrices and Matrix Operations: Comprehensive Study Guide

Introduction to Matrices and Their Structure

  • Definition of a Matrix: A matrix is a rectangular arrangement of numbers or symbols organized into rows and columns. This structure provides an efficient way to represent and analyze data across various fields, including computer science, engineering, economics, physics, and general mathematics.

  • Components of a Matrix:

    • Rows: These are the horizontal lines of numbers within the matrix.

      • Example: In matrix A=[2amp;5amp;71amp;4amp;6]A = \begin{bmatrix} 2 & 5 & 7 \\ 1 & 4 & 6 \end{bmatrix}, Row 1 is the set composed of the numbers 22, 55, and 77.

    • Columns: These are the vertical lines of numbers within the matrix.

      • Example: In the matrix above, Column 1 is the set composed of the numbers 22 and 11.

    • Elements (Entries): Each individual number or symbol located inside the matrix is called an element or entry.

      • Example: In matrix AA, the number 55 is an element.

Dimensions, Notation, and Square Matrices

  • Order (Dimension) of a Matrix: The order specifies the size of the matrix by identifying the total number of rows and columns. It is expressed as m×nm \times n.

    • mm= the number of rows.

    • nn= the number of columns.

    • Example: A matrix with 22 rows and 33 columns, such as [257;146][2 \, 5 \, 7; \, 1 \, 4 \, 6], has an order of 2×32 \times 3.

  • Square Matrix: A matrix is classified as a square matrix if the number of rows is equal to the number of columns (m=nm = n).

    • Example: Matrix D=[2amp;13amp;2]D = \begin{bmatrix} 2 & -1 \\ -3 & 2 \end{bmatrix} is a 2×22 \times 2 square matrix.

  • Naming and Indexing:

    • Matrices are traditionally named using uppercase letters (e.g., AA, BB, or CC).

    • Individual entries are denoted by a lowercase letter matching the matrix name, accompanied by subscripts ii and jj: aija_{ij}.

    • ii represents the row number.

    • jj represents the column number.

    • Example: In matrix A=[2amp;1amp;13amp;2amp;5]A = \begin{bmatrix} 2 & 1 & -1 \\ 3 & 2 & 5 \end{bmatrix}, the entry a12=1a_{12} = 1 (Row 1, Column 2), and entry a21=3a_{21} = 3 (Row 2, Column 1).

Understanding Matrix Equality

  • Criteria for Equality: Two matrices are considered equal (A=BA = B) if and only if they meet two strict conditions:

    1. Size Consistency: They must have identical dimensions (m×nm \times n).

    2. Matching Entries: Every corresponding entry must be exactly the same (aij=bija_{ij} = b_{ij} for all i,ji, j).

  • Non-Equality Examples:

    • Different values: [1amp;23amp;4][1amp;23amp;5]\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} \neq \begin{bmatrix} 1 & 2 \\ 3 & 5 \end{bmatrix} because one entry differs.

    • Different sizes: A matrix of size 2×32 \times 3 cannot be equal to a matrix of size 3×23 \times 2, regardless of whether the same numbers are present.

  • Solving for Unknowns Using Equality:

    • If [a+bamp;c+dcdamp;ab]=[4amp;610amp;2]\begin{bmatrix} a + b & c + d \\ c - d & a - b \end{bmatrix} = \begin{bmatrix} 4 & 6 \\ 10 & 2 \end{bmatrix}, we can establish systems of linear equations:

      • System 1: a+b=4a + b = 4 and ab=2a - b = 2. Solving gives a=3a = 3 and b=1b = 1.

      • System 2: c+d=6c + d = 6 and cd=10c - d = 10. Solving gives c=8c = 8 and d=2d = -2.

Matrix Addition and Subtraction

  • Fundamental Rule: Addition and subtraction are only possible between two matrices of the same dimensions (m×nm \times n). Operations are performed on "corresponding entries" (those in the same relative position).

  • Formal Definitions:

    • Sum: If C=A+BC = A + B, then cij=aij+bijc_{ij} = a_{ij} + b_{ij}.

    • Difference: If D=ABD = A - B, then dij=aijbijd_{ij} = a_{ij} - b_{ij}.

  • Worked Example:

    • Let A=[2amp;1amp;40amp;3amp;1]A = \begin{bmatrix} 2 & -1 & 4 \\ 0 & -3 & 1 \end{bmatrix} and B=[0amp;2amp;11amp;5amp;3]B = \begin{bmatrix} 0 & -2 & -1 \\ 1 & 5 & -3 \end{bmatrix}.

    • A+B=[2+0amp;1+(2)amp;4+(1)0+1amp;3+5amp;1+(3)]=[2amp;3amp;31amp;2amp;2]A + B = \begin{bmatrix} 2+0 & -1+(-2) & 4+(-1) \\ 0+1 & -3+5 & 1+(-3) \end{bmatrix} = \begin{bmatrix} 2 & -3 & 3 \\ 1 & 2 & -2 \end{bmatrix}.

    • AB=[20amp;1(2)amp;4(1)01amp;35amp;1(3)]=[2amp;1amp;51amp;8amp;4]A - B = \begin{bmatrix} 2-0 & -1-(-2) & 4-(-1) \\ 0-1 & -3-5 & 1-(-3) \end{bmatrix} = \begin{bmatrix} 2 & 1 & 5 \\ -1 & -8 & 4 \end{bmatrix}.

Properties of Matrix Addition

  • A1. Commutative Property: The order in which two matrices are added does not change the result: A+B=B+AA + B = B + A.

  • A2. Associative Property: When adding three matrices, the grouping does not affect the final sum: (A+B)+C=A+(B+C)(A + B) + C = A + (B + C).

  • A3. Identity for Addition (Zero Matrix):

    • A zero matrix (θm×n\theta_{m \times n}) is a matrix where every entry is 00.

    • Adding the zero matrix to any matrix AA results in matrix AA: A+θ=θ+A=AA + \theta = \theta + A = A.

  • A4. Additive Inverse (Negative Matrix):

    • For every matrix AA, there exists a matrix A-A (where every entry is the negative of the original entry).

    • The sum of a matrix and its additive inverse is the zero matrix: A+(A)=θA + (-A) = \theta.

Scalar Multiplication of Matrices

  • Definition: A scalar is a non-zero real number used to multiply a matrix. In scalar multiplication (cAcA), every individual entry of the matrix AA is multiplied by the scalar cc.

  • Worked Example:

    • Let A=[2amp;41amp;70amp;5]A = \begin{bmatrix} -2 & 4 \\ 1 & -7 \\ 0 & 5 \end{bmatrix}.

    • Find 2A2A: 2A=[2(2)amp;2(4)2(1)amp;2(7)2(0)amp;2(5)]=[4amp;82amp;140amp;10]2A = \begin{bmatrix} 2(-2) & 2(4) \\ 2(1) & 2(-7) \\ 2(0) & 2(5) \end{bmatrix} = \begin{bmatrix} -4 & 8 \\ 2 & -14 \\ 0 & 10 \end{bmatrix}.

    • Find 3A-3A: 3A=[3(2)amp;3(4)3(1)amp;3(7)3(0)amp;3(5)]=[6amp;123amp;210amp;15]-3A = \begin{bmatrix} -3(-2) & -3(4) \\ -3(1) & -3(-7) \\ -3(0) & -3(5) \end{bmatrix} = \begin{bmatrix} 6 & -12 \\ -3 & 21 \\ 0 & -15 \end{bmatrix}.

  • Algebraic Properties of Scalar Multiplication:

    • S1. Distributive Over Matrix Addition: c(A+B)=cA+cBc(A + B) = cA + cB.

    • S2. Distributive Over Scalar Addition: (c+d)A=cA+dA(c + d)A = cA + dA.

    • S3. Associative Property: c(dA)=(cd)Ac(dA) = (cd)A.

Matrix Transposition

  • Definition: The transpose of an m×nm \times n matrix AA is an n×mn \times m matrix, denoted as ATA^{T}, created by interchanging the rows and columns. Specifically, aijT=ajia_{ij}^{T} = a_{ji}.

  • Worked Examples:

    • If A=[2amp;41amp;70amp;5]A = \begin{bmatrix} -2 & 4 \\ 1 & -7 \\ 0 & 5 \end{bmatrix}, then AT=[2amp;1amp;04amp;7amp;5]A^{T} = \begin{bmatrix} -2 & 1 & 0 \\ 4 & -7 & 5 \end{bmatrix}.

    • If B=[2amp;1amp;41amp;3amp;24amp;2amp;6]B = \begin{bmatrix} 2 & 1 & 4 \\ 1 & 3 & -2 \\ 4 & -2 & 6 \end{bmatrix}, then BT=[2amp;1amp;41amp;3amp;24amp;2amp;6]B^{T} = \begin{bmatrix} 2 & 1 & 4 \\ 1 & 3 & -2 \\ 4 & -2 & 6 \end{bmatrix}. Note that BT=BB^{T} = B.

  • Special Transposition Matrix Types:

    • Symmetric Matrix: A square matrix is symmetric if it is equal to its transpose (AT=AA^{T} = A).

    • Skew-Symmetric Matrix: A square matrix is skew-symmetric if its transpose equals its negative (AT=AA^{T} = -A).

  • Properties of the Transpose:

    • T1. Transpose of a Transpose: Taking the transpose twice returns the original matrix: (AT)T=A(A^{T})^{T} = A.

    • T2. Transpose of a Sum: The transpose of a sum equals the sum of the transposes: (A+B)T=AT+BT(A + B)^{T} = A^{T} + B^{T}.

    • T3. Transpose of a Scalar Product: The scalar weight remains unaffected: (cA)T=cAT(cA)^{T} = cA^{T}.

Matrix Multiplication

  • Condition for Multiplication: To multiply two matrices AA and BB, the number of columns in the first matrix (AA) must exactly match the number of rows in the second matrix (BB).

    • Dimensions: Am×n×Bn×p=Cm×pA_{m \times n} \times B_{n \times p} = C_{m \times p}.

  • Calculating the Product Entries: The entry cijc_{ij} in the product matrix is the sum of products of corresponding elements from the ii-th row of AA and the jj-th column of BB.

    • Formula: cij=k=1naikbkj=ai1b1j+ai2b2j++ainbnjc_{ij} = \sum_{k=1}^{n} a_{ik}b_{kj} = a_{i1}b_{1j} + a_{i2}b_{2j} + \dots + a_{in}b_{nj}.

  • Step-by-Step Procedure:

    1. Multiply the first row of AA by each column of BB to determine the first row of the product.

    2. Multiply the second row of AA by each column of BB to determine the second row of the product.

    3. Continue this process for all remaining rows of AA.

  • Numerical Example:

    • A=[2amp;1amp;53amp;2amp;4]A = \begin{bmatrix} 2 & -1 & 5 \\ 3 & -2 & 4 \end{bmatrix}, B=[1amp;64amp;10amp;3]B = \begin{bmatrix} -1 & -6 \\ 4 & 1 \\ 0 & 3 \end{bmatrix}.

    • Resulting matrix CC is 2×22 \times 2.

    • c11=2(1)+(1)(4)+5(0)=24+0=6c_{11} = 2(-1) + (-1)(4) + 5(0) = -2 - 4 + 0 = -6.

    • c12=2(6)+(1)(1)+5(3)=121+15=2c_{12} = 2(-6) + (-1)(1) + 5(3) = -12 - 1 + 15 = 2.

    • c21=3(1)+(2)(4)+4(0)=38+0=11c_{21} = 3(-1) + (-2)(4) + 4(0) = -3 - 8 + 0 = -11.

    • c22=3(6)+(2)(1)+4(3)=182+12=8c_{22} = 3(-6) + (-2)(1) + 4(3) = -18 - 2 + 12 = -8.

    • AB=[6amp;211amp;8]AB = \begin{bmatrix} -6 & 2 \\ -11 & -8 \end{bmatrix}.

Properties of Matrix Multiplication

  • Associative Property: Multiplication is associative: A(BC)=(AB)CA(BC) = (AB)C.

  • Distributive Properties:

    • Right Distributive: A(B+C)=AB+ACA(B + C) = AB + AC.

    • Left Distributive: (B+C)A=BA+CA(B + C)A = BA + CA.

  • Identity Matrix (II): An identity matrix is a square matrix with 11s on the main diagonal and 00s elsewhere. It acts similarly to the number 11 in regular multiplication.

    • A=ImA=AInA = I_{m}A = AI_{n}.

    • Example I2=[1amp;00amp;1]I_{2} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}.

    • Example I3=[1amp;0amp;00amp;1amp;00amp;0amp;1]I_{3} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}.

Critical Limitation: Non-Commutativity

  • Unlike real numbers, matrix multiplication is not commutative (ABBAAB \neq BA in general).

  • The order of factors is vital. Even if both ABAB and BABA are defined and have the same dimensions, their resulting entries are often different.

Exercises & Performance Tasks

  • Activity: Organize, Combine, and Transform:

    • Part A: Converting student score tables into numerical matrices (e.g., student Ana with 85 Math, 90 English results in row [8590][85 \, 90]).

    • Part B: Students discover matrix addition rules using score tables (A+B=[aij+bij]A + B = [a_{ij} + b_{ij}]).

    • Part C: Introduction to scalar multiplication by doubling scores (2×[score]2 \times [score]).

  • Matrix Sum Decomposition: Every square matrix AA can be expressed as the sum of a symmetric matrix SS and a skew-symmetric matrix KK (A=S+KA = S + K).

  • Performance Task Data:

    • Identifying elements of matrix A=[2amp;1amp;30amp;4amp;5]A = \begin{bmatrix} 2 & -1 & 3 \\ 0 & 4 & 5 \end{bmatrix}.

    • Operations with A=[1amp;23amp;4]A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} and B=[5amp;12amp;0]B = \begin{bmatrix} 5 & -1 \\ 2 & 0 \end{bmatrix}.

    • Computation of A+BA + B, ABA - B, 3A3A, ABAB, and ATA^{T}.