Introduction to Matrices and Matrix Operations: Fresh Take

  • Understand how to add and subtract matrices
  • Figure out how to multiply a matrix by a number (scalar) to change its scale
  • Learn to multiply two matrices together to find a new matrix

Matrices

The Main Idea

A matrix is a rectangular array of numbers arranged in rows and columns. It’s a powerful tool for organizing and manipulating data in various fields, including mathematics, economics, and computer science.

  • Matrices organize data in a structured, easy-to-manipulate format
  • The size and type of matrix depend on the data being represented
  • Element positioning is crucial for correct data interpretation and manipulation
  • Matrices form the foundation for more advanced linear algebra concepts

Matrix Basics

  1. Notation: Matrices are typically enclosed in brackets [ ] or parentheses ( )
  2. Dimensions: Described as [latex]m \times n[/latex], where [latex]m[/latex] is the number of rows and [latex]n[/latex] is the number of columns
  3. Elements: Individual numbers in the matrix, denoted as [latex]a_{ij}[/latex] (i = row, j = column)

Types of Matrices

  1. Square Matrix: Number of rows equals number of columns ([latex]n \times n[/latex])
  2. Row Matrix: Only one row ([latex]1 \times n[/latex])
  3. Column Matrix: Only one column ([latex]m \times 1[/latex])

You can view the transcript for “Dimensions of a Matrix” here (opens in new window).

Adding and Subtracting Matrices

The Main Idea

Matrix addition and subtraction are elementwise operations performed on matrices of the same dimensions.

Rules for Matrix Addition and Subtraction

  1. Matrices must have the same dimensions ([latex]m \times n[/latex])
  2. Add or subtract corresponding elements
  3. Result is a matrix of the same dimensions

Formulas

For matrices [latex]A[/latex] and [latex]B[/latex] with dimensions [latex]m \times n[/latex]:

Addition: [latex]C = A + B[/latex] where [latex]c_{ij} = a_{ij} + b_{ij}[/latex]
Subtraction: [latex]D = A - B[/latex] where [latex]d_{ij} = a_{ij} - b_{ij}[/latex]

Properties of Matrix Addition

  1. Commutative: [latex]A + B = B + A[/latex]
  2. Associative: [latex](A + B) + C = A + (B + C)[/latex]
  3. Additive Identity: [latex]A + 0 = A[/latex], where [latex]0[/latex] is a zero matrix
  4. Additive Inverse: [latex]A + (-A) = 0[/latex]
Find the sum of [latex]A[/latex] and [latex]B \text{}[/latex] given

[latex]A=\left[\begin{array}{cc}a& b\\ c& d\end{array}\right]\text{ and }B=\left[\begin{array}{cc}e& f\\ g& h\end{array}\right][/latex]

Find the sum of [latex]A[/latex] and [latex]B[/latex].

[latex]A=\left[\begin{array}{cc}4& 1\\ 3& 2\end{array}\right]\text{ and }B=\left[\begin{array}{cc}5& 9\\ 0& 7\end{array}\right][/latex]

Find the difference of [latex]A[/latex] and [latex]B[/latex].
[latex]A=\left[\begin{array}{cc}\hfill -2& \hfill 3\\ \hfill 0& \hfill 1\end{array}\right]\text{ and }B=\left[\begin{array}{cc}8& 1\\ 5& 4\end{array}\right][/latex]

Add matrix [latex]A[/latex] and matrix [latex]B[/latex].[latex]A=\left[\begin{array}{rr}\hfill 2& \hfill 6\\ \hfill 1& \hfill 0\\ \hfill 1& \hfill -3\end{array}\right]\text{ and }B=\left[\begin{array}{rr}\hfill 3& \hfill -2\\ \hfill 1& \hfill 5\\ \hfill -4& \hfill 3\end{array}\right][/latex]

You can view the transcript for “Ex: Matrix Addition and Subtraction” here (opens in new window).

Scalar Multiples of a Matrix

The Main Idea

Scalar multiplication involves multiplying each element of a matrix by a scalar (a real number). This operation is fundamental in matrix algebra and has numerous practical applications.

Properties of Scalar Multiplication

  1. Distributive over matrix addition: [latex]c(A + B) = cA + cB[/latex]
  2. Distributive over scalar addition:[latex](c + d)A = cA + dA[/latex]
  3. Associative with scalar multiplication: [latex]c(dA) = (cd)A[/latex]
  4. Identity: [latex]1A = A[/latex]
Given matrix [latex]B,\text{}[/latex] find [latex]-2B[/latex] where

[latex]B=\left[\begin{array}{cc}4& 1\\ 3& 2\end{array}\right][/latex]

You can view the transcript for “Ex: Matrix Operations – Scalar Multiplication, Addition, and Subtraction” here (opens in new window).

Finding the Product of Two Matrices

The Main Idea

  • Compatibility for Multiplication:
    • The number of columns in the first matrix must equal the number of rows in the second matrix.
    • If [latex]A[/latex] is [latex]m \times r[/latex] and [latex]B[/latex] is [latex]r \times n[/latex], then [latex]AB[/latex] is [latex]m \times n[/latex].
  • Calculation Process:
    • To find each entry in the product matrix:
      • Multiply each element in a row of the first matrix by the corresponding element in a column of the second matrix.
      • Add up all these products.
    • This process is similar to taking the dot product of a row and a column.
  • Properties:
    • Matrix multiplication is associative: [latex]\left(AB\right)C=A\left(BC\right)[/latex]
    • Matrix multiplication is distributive: [latex]C(A+B) = CA + CB[/latex] and [latex](A+B)C = AC + BC[/latex]
    • Matrix multiplication is NOT commutative: [latex]AB \neq BA[/latex] (in general)
  • Dimensions:
    • The resulting matrix has the same number of rows as the first matrix and the same number of columns as the second matrix.
  • Applications:
    • Used in various fields including computer graphics, data analysis, and solving systems of linear equations.

Find the product of matrices [latex]A[/latex] and [latex]B[/latex]:

[latex]A = \left[\begin{array}{cc} 2 & -1 \\ 3 & 4 \end{array}\right], B = \left[\begin{array}{cc} 0 & 5 \\ -2 & 1 \end{array}\right][/latex]

Find the product of matrices [latex]C[/latex] and [latex]D[/latex]:

[latex]C = \left[\begin{array}{ccc} 1 & 0 & -2 \\ 3 & 4 & 1 \end{array}\right], D = \left[\begin{array}{cc} 2 & -1 \\ 0 & 3 \\ 1 & 2 \end{array}\right][/latex]

You can view the transcript for “Ex 1: Matrix Multiplication (Basic)” here (opens in new window).