LINEAR-ALGEBRA Β· Unit 1 Β· Video 4 Β· Interactive Practice

Matrix-Vector Multiplication: Two Ways to Compute Ax

IKey Formulas

Formula Name Description
(Ax)i=rowi(A)β‹…x(Ax)_i = \text{row}_i(A) \cdot x Row (dot product) method Each entry of AxAx is a dot product of a row of AA with xx
Ax=x1a1+x2a2+β‹―Ax = x_1 \mathbf{a}_1 + x_2 \mathbf{a}_2 + \cdots Column (linear combination) method AxAx is a weighted sum of the columns of AA
aβ‹…b=a1b1+a2b2\mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2 Dot product Multiply corresponding entries and sum
Column space of AA ={Ax:x∈Rn}= \{Ax : x \in \mathbb{R}^n\} Column space The set of all possible outputs AxAx

IIVisualization 1 β€” Two Groupings, One Answer

The row method groups the same arithmetic horizontally, the column method vertically β€” the result is identical.

Row method Β· dot products

Column method Β· linear combination

IIIVisualization 2 β€” Building Ax from Columns

AxAx is the head-to-tail sum of each column of AA scaled by its weight x1,x2x_1, x_2.

πŸ’‘ Bridge: because these two columns aren't parallel, the right weights can reach every point in the plane β€” that reachable set is the column space explored next.

IVVisualization 3 β€” The Column Space

The outputs AxAx fill whatever the columns of AA span β€” the whole plane when they're independent, a line when they're parallel.

VQuiz Questions

Question 1 Β· Row Method Calculation

Using the row (dot product) method, compute the first entry of AxAx where:

A=[3βˆ’241],x=[25]A = \begin{bmatrix} 3 & -2 \\ 4 & 1 \end{bmatrix}, \quad x = \begin{bmatrix} 2 \\ 5 \end{bmatrix}

βœ… Correct! Row 1 Β· x = 3(2) + (βˆ’2)(5) = 6 βˆ’ 10 = βˆ’4.

❌ Not quite. Use row 1 of A: multiply 3 by 2 and (βˆ’2) by 5, then add the products.

Show solution

Solution:

The first entry of AxAx is the dot product of row 1 of AA with xx:

RowΒ 1β‹…x=(3)(2)+(βˆ’2)(5)=6+(βˆ’10)=6βˆ’10=βˆ’4\text{Row 1} \cdot x = (3)(2) + (-2)(5) = 6 + (-10) = 6 - 10 = -4

The answer is βˆ’4\mathbf{-4}.

Common mistakes:

  • Getting 16 by computing 3(2)+2(5)=163(2) + 2(5) = 16 (forgetting the negative sign on βˆ’2-2)
  • Getting 11 by computing 3(2)+1(5)=113(2) + 1(5) = 11 (mixing entries from different rows)

Question 2 Β· Column Method Expression

Using the column (linear combination) method, which expression correctly represents AxAx for:

A=[3βˆ’241],x=[25]A = \begin{bmatrix} 3 & -2 \\ 4 & 1 \end{bmatrix}, \quad x = \begin{bmatrix} 2 \\ 5 \end{bmatrix}

βœ… Correct! We weight each column of A by the corresponding entry of x.

❌ Not quite. Remember: extract the columns (vertical slices) of A, then weight by entries of x.

Show solution

Solution:

The column method says:

Ax=x1β‹…(colΒ 1)+x2β‹…(colΒ 2)Ax = x_1 \cdot (\text{col 1}) + x_2 \cdot (\text{col 2})

The columns of AA are vertical slices:

  • Column 1 = [34]\begin{bmatrix} 3 \\ 4 \end{bmatrix}
  • Column 2 = [βˆ’21]\begin{bmatrix} -2 \\ 1 \end{bmatrix}

With x1=2x_1 = 2 and x2=5x_2 = 5:

Ax=2[34]+5[βˆ’21]Ax = 2 \begin{bmatrix} 3 \\ 4 \end{bmatrix} + 5 \begin{bmatrix} -2 \\ 1 \end{bmatrix}

Written compactly: 2 Β· [3, 4] + 5 Β· [βˆ’2, 1]

Why the others are wrong:

  • "2 Β· [3, βˆ’2] + 5 Β· [4, 1]" uses rows instead of columns
  • "3 Β· [2, 5] + (βˆ’2) Β· [2, 5]" doesn't extract columns of A at all
  • "[3(2)+(βˆ’2)(5), 4(2)+1(5)]" computes the result entry-by-entry β€” that's the row method

Question 3 Β· Column Space (True or False)

True or False: If the two columns of a 2Γ—22 \times 2 matrix AA point in the same direction (one is a scalar multiple of the other), then the column space of AA is all of R2\mathbb{R}^2.

βœ… Correct! Parallel (dependent) columns can only produce vectors along a single line, not all of RΒ².

❌ Not quite. Think about what happens when you combine two parallel vectors β€” can you reach every direction?

Show solution

Solution: False.

If one column is a scalar multiple of the other (e.g., col2=kβ‹…col1\text{col}_2 = k \cdot \text{col}_1), then every linear combination:

x1β‹…col1+x2β‹…col2=x1β‹…col1+x2kβ‹…col1=(x1+kx2)β‹…col1x_1 \cdot \text{col}_1 + x_2 \cdot \text{col}_2 = x_1 \cdot \text{col}_1 + x_2 k \cdot \text{col}_1 = (x_1 + k x_2) \cdot \text{col}_1

is just a scalar multiple of col1\text{col}_1. The column space is a line through the origin, not all of R2\mathbb{R}^2.

To fill all of R2\mathbb{R}^2, the two columns must be linearly independent β€” pointing in genuinely different directions. You can verify this in Visualization 3 above by making the columns parallel!

Question 4 Β· Interpreting Ax = b

The equation Ax=bAx = b can be reinterpreted using the column method. Which statement best describes what Ax=bAx = b is really asking?

βœ… Correct! The equation Ax = b asks whether b can be built from A's columns β€” the central idea of the column method.

❌ Not quite. Remember: the column method says Ax is always a linear combination of A's columns. So Ax = b asks whether b is one of those combinations.

Show solution

Solution: "Is b a linear combination of the columns of A?"

The column method rewrites Ax=bAx = b as:

x1a1+x2a2+β‹―+xnan=bx_1 \mathbf{a}_1 + x_2 \mathbf{a}_2 + \cdots + x_n \mathbf{a}_n = b

This asks: can we find weights x1,x2,…,xnx_1, x_2, \ldots, x_n such that a linear combination of AA's columns equals bb?

Equivalently: is bb in the column space of AA?

This reframe is the key insight from the video β€” it powers everything ahead in linear algebra:

  • Solving systems: finding the right weights xx
  • Existence of solutions: does bb lie in the column space?
  • Linear transformations: AA maps xx to a combination of its columns

Every time you see AxAx, think: which combination of A's columns am I making?

Solved: 0 / 4