Skip to main content

Real-World Examples for Matrix-Vector Multiplication

  • Understand matrix-vector multiplication through real-world examples.
  • Explore the concept of linearity using grocery shopping data.
  • Connect mathematical operations to practical decision-making.
  • Build intuition for matrix transformations and scaling effects.
  • Prepare for deeper study of matrix algebra and applications.

Grocery Shopping Example

Imagine a grocery store with 3 items:

  • Bread: $2.50
  • Milk: $3.20
  • Apples: $1.80

This forms the price vector:

\[ \mathbf{p} = \begin{bmatrix} 2.50 \\ 3.20 \\ 1.80 \end{bmatrix} \]

Five shoppers purchase different quantities:

\[ A = \begin{bmatrix} 2 & 1 & 4 \\ 1 & 2 & 3 \\ 3 & 0 & 2 \\ 2 & 3 & 1 \\ 1 & 1 & 5 \end{bmatrix} \quad \text{(Rows: Alice, Ben, Clara, David, Emma)} \]

Matrix-vector multiplication gives us:

\[ A \cdot \mathbf{p} = \begin{bmatrix} 15.10 \\ 14.30 \\ 11.10 \\ 15.70 \\ 15.10 \end{bmatrix} \]

Each result is the total expense for one shopper. If prices double, the total paid also doubles—this is the essence of linearity.

Word Problems

  • Problem 1: Sophia buys 4 bread, 2 milk, and 6 apples. What is her total expense?
  • Problem 2: Liam buys 2 bread, 3 milk, and 1 apple. Olivia buys 1 bread, 2 milk, and 4 apples. Calculate their expenses.
  • Problem 3: If prices change to Bread = $3.00, Milk = $3.50, Apples = $2.00, compute new expenses for Alice and Clara.
  • Problem 4: Noah (3 bread, 2 milk, 5 apples), Ava (2 bread, 1 milk, 3 apples), Ethan (1 bread, 4 milk, 2 apples). Find their total expenses.

Exercises

  • Question 1: Represent Sophia’s purchase as a vector and compute her total expense.
  • Question 2: Create a matrix for Liam and Olivia’s purchases and multiply by the price vector.
  • Question 3: Use the new price vector to compute updated totals for Alice and Clara.
  • Question 4: Multiply the matrix of Noah, Ava, and Ethan’s purchases by the original price vector.

  • Answer 1: \[ \mathbf{x} = \begin{bmatrix} 4 & 2 & 6 \end{bmatrix} \cdot \begin{bmatrix} 2.50 \\ 3.20 \\ 1.80 \end{bmatrix} = 27.20 \]
  • Answer 2: \[ \begin{bmatrix} 2 & 3 & 1 \\ 1 & 2 & 4 \end{bmatrix} \cdot \begin{bmatrix} 2.50 \\ 3.20 \\ 1.80 \end{bmatrix} = \begin{bmatrix} 17.90 \\ 17.70 \end{bmatrix} \]
  • Answer 3: \[ \mathbf{p}_{\text{new}} = \begin{bmatrix} 3.00 \\ 3.50 \\ 2.00 \end{bmatrix} \quad \Rightarrow \quad \text{Alice: } 21.50, \quad \text{Clara: } 13.00 \]
  • Answer 4: \[ \begin{bmatrix} 3 & 2 & 5 \\ 2 & 1 & 3 \\ 1 & 4 & 2 \end{bmatrix} \cdot \begin{bmatrix} 2.50 \\ 3.20 \\ 1.80 \end{bmatrix} = \begin{bmatrix} 26.60 \\ 17.10 \\ 19.60 \end{bmatrix} \]

This Week's Best Picks from Amazon

Please see more curated items that we picked from Amazon here .

Popular posts from this blog

Gaussian Elimination: A Step-by-Step Guide

Gaussian Elimination: A Step-by-Step Guide Gaussian Elimination is a systematic method for solving systems of linear equations. It works by transforming a given system into an equivalent one in row echelon form using a sequence of row operations. Once in this form, the system can be solved efficiently using back-substitution . What is Gaussian Elimination? Gaussian elimination consists of two main stages: Forward Elimination: Convert the system into an upper triangular form. Back-Substitution: Solve for unknowns starting from the last equation. Definition of a Pivot A pivot is the first nonzero entry in a row when moving from left to right. Pivots are used to eliminate the elements below them, transforming the system into an upper triangular form. Step-by-Step Example Consider the system of equations: \[ \begin{aligned} 2x + 3y - z &= 5 \\ 4x + y...

Singular Value Decomposition

Lesson Objectives ▼ Understand the concept of Singular Value Decomposition (SVD). Decompose a matrix into orthogonal matrices and singular values. Learn how to compute SVD step by step. Explore applications of SVD in data compression and machine learning. Lesson Outline ▼ Definition of SVD Computing SVD Step by Step Applications of SVD Examples Definition of Singular Value Decomposition The **Singular Value Decomposition (SVD)** of an \( m \times n \) matrix \( A \) is a factorization of the form: \[ A = U \Sigma V^T \] where: \( U \) is an \( m \times m \) orthogonal matrix (left singular vectors). \( \Sigma \) is an \( m \times n \) diagonal matrix with **singular values** on the diagonal. \( V \) is an \( n \times n \) orthogonal matrix (right singular vectors). Computing SVD Step by Step To compute \( A = U \Sigma V^T \): Find the eigenvalues and eige...

LU Decomposition

LU Decomposition: A Step-by-Step Guide LU Decomposition, also known as LU Factorization, is a method of decomposing a square matrix into two triangular matrices: a lower triangular matrix L and an upper triangular matrix U . This is useful for solving linear equations, computing determinants, and inverting matrices efficiently. What is LU Decomposition? LU Decomposition expresses a matrix A as: \[ A = LU \] where: L is a lower triangular matrix with ones on the diagonal. U is an upper triangular matrix. Step-by-Step Process Consider the matrix: \[ A = \begin{bmatrix} 2 & 3 & 1 \\ 4 & 7 & 3 \\ 6 & 18 & 5 \end{bmatrix} \] Step 1: Initialize L as an Identity Matrix Start with an identity matrix for \( L \): \[ L = \begin{bmatrix} 1 & 0 & 0 \\ 0 ...