Linear AlgebraLinear Systems2 of 8
Linear Systems · 2

The Matrix Equation Ax = b

When we want to solve a system of linear equations, we pack the entire system into a single matrix equation, Ax=bAx = \target{b}.

1

Packing Equations into Ax=bAx = b and the Row Picture

To find the numbers xx and yy that satisfy two equations at the same time, we can read the matrix equation Ax=bAx = \target{b} across its rows as intersecting lines on a grid.

Packing Equations into Ax = b and the Row Picture
2x+1y=51x+3y=5\displaystyle \begin{aligned} 2x + 1y &= \target{5} \\ 1x + 3y &= \target{5} \end{aligned}
(x,y)\displaystyle (x, y) =  ?\displaystyle = \;?
Text solution
Pack the coefficients, unknowns, and totals into Ax=bAx = \target{b}Pull the numbers in front of xx and yy into the matrix AA, stack the unknowns into the vector xx, and stack the right-hand sides into the target vector b\target{b}.
2x+1y=51x+3y=5⟶[2113]⏟A[xy]⏟x=[55]⏟b\displaystyle \begin{aligned} & \begin{aligned} 2x + 1y &= \target{5} \\ 1x + 3y &= \target{5} \end{aligned} \\[6pt] & \longrightarrow \quad \underbrace{\begin{bmatrix} 2 & 1 \\ 1 & 3 \end{bmatrix}}_{A} \underbrace{\begin{bmatrix} x \\ y \end{bmatrix}}_{x} = \underbrace{\target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}}}_{\target{b}} \end{aligned}
Read across each row to graph the linesEach row of Ax=bAx = \target{b} gives one line on the xyxy-grid, and the point (x,y)=(2,1)(x, y) = (2, 1) where the two lines cross satisfies both equations at once.
2

The Column Picture of Ax=bAx = b

Picturing intersecting planes gets too hard once we pass three variables, so we need a second way to read Ax=bAx = \target{b} that stays simple in any number of dimensions: splitting the system vertically into columns.

The Column Picture of Ax = b
x[21]+y[13]=[55]\colone{x\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 1 \\ 3 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}}
b\htmlClass{lc-blue}{b}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
5\htmlClass{lc-mute}{5}
1\htmlClass{lc-mute}{1}
3\htmlClass{lc-mute}{3}
5\htmlClass{lc-mute}{5}
Text solution
Split the system into columns weighted by x\colone{x} and y\coltwo{y}Group the x\colone{x}-terms and y\coltwo{y}-terms into vertical vectors so the left side becomes a linear combination of the columns of AA.
[2113][xy]=[55]⟶x[21]+y[13]=[55]\displaystyle \begin{aligned} & \begin{bmatrix} \colone{2} & \coltwo{1} \\ \colone{1} & \coltwo{3} \end{bmatrix} \begin{bmatrix} \colone{x} \\ \coltwo{y} \end{bmatrix} = \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}} \\[6pt] & \longrightarrow \quad \colone{x\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 1 \\ 3 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}} \end{aligned}
Scale the columns by x=2\colone{x} = \colone{2} and y=1\coltwo{y} = \coltwo{1} and add tip-to-tailStretching the first column by 2\colone{2} and adding 1\coltwo{1} copy of the second column lands directly on the target vector b\target{b}.
2[21]+1[13]=[42]+[13]=[55]\displaystyle \begin{aligned} \colone{2\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{1\begin{bmatrix} 1 \\ 3 \end{bmatrix}} &= \colone{\begin{bmatrix} 4 \\ 2 \end{bmatrix}} + \coltwo{\begin{bmatrix} 1 \\ 3 \end{bmatrix}} \\ &= \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}} \end{aligned}

As (x,y)(x, y) moves along either line in the Row Picture, the matching entry of the column sum stays fixed at 5\target{5}, and at the intersection (2,1)(2, 1) the tip-to-tail sum of the scaled columns lands right on [55]\target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}}.

A point on the left sets the weights on the columns on the right, so sliding along each line holds one entry of the column sum steady and their intersection solves both at once.
3

Two Ways to Compute AxAx

Before solving for an unknown vector xx, we often start with a known vector xx and want to compute the product AxAx. Reading AA across its rows or down its columns gives two ways to calculate the same result.

Two Ways to Compute Ax
[2113]A[3−1]x=[??]\displaystyle \overset{A}{\begin{bmatrix} 2 & 1 \\ 1 & 3 \end{bmatrix}}\overset{x}{\begin{bmatrix} 3 \\ -1 \end{bmatrix}} = \target{\begin{bmatrix} ? \\ ? \end{bmatrix}}
Text solution
Dot each row with xx to get one entry at a timeTake the dot product of the top row with xx for the top entry, and the bottom row with xx for the bottom entry.
[2113][3−1]=[(2)(3)+(1)(−1)(1)(3)+(3)(−1)]=[6−13−3]=[50]\displaystyle \begin{aligned} & \begin{bmatrix} 2 & 1 \\ 1 & 3 \end{bmatrix} \begin{bmatrix} \colone{3} \\ \coltwo{-1} \end{bmatrix} \\ &\quad = \begin{bmatrix} (2)(\colone{3}) + (1)(\coltwo{-1}) \\ (1)(\colone{3}) + (3)(\coltwo{-1}) \end{bmatrix} \\ &\quad = \begin{bmatrix} 6 - 1 \\ 3 - 3 \end{bmatrix} = \target{\begin{bmatrix} 5 \\ 0 \end{bmatrix}} \end{aligned}
Weight the columns by the entries of xx to combine whole vectorsScale the first column by 3\colone{3} and the second column by −1\coltwo{-1}, then add the two vectors together.
[2113][3−1]=3[21]−1[13]=[63]−[13]=[50]\displaystyle \begin{aligned} \begin{bmatrix} \colone{2} & \coltwo{1} \\ \colone{1} & \coltwo{3} \end{bmatrix} \begin{bmatrix} \colone{3} \\ \coltwo{-1} \end{bmatrix} &= \colone{3\begin{bmatrix} 2 \\ 1 \end{bmatrix}} - \coltwo{1\begin{bmatrix} 1 \\ 3 \end{bmatrix}} \\ &= \colone{\begin{bmatrix} 6 \\ 3 \end{bmatrix}} - \coltwo{\begin{bmatrix} 1 \\ 3 \end{bmatrix}} \\ &= \target{\begin{bmatrix} 5 \\ 0 \end{bmatrix}} \end{aligned}
4

When Does Ax=bAx = b Have a Solution?

Now we want to know when we can find weights xx to reach a given target b\target{b}, and how a system can have no solution or infinitely many.

When Does Ax = b Have a Solution?
[2113][xy]=b\begin{bmatrix} \colone{2} & \coltwo{1} \\ \colone{1} & \coltwo{3} \end{bmatrix}\begin{bmatrix} x \\ y \end{bmatrix} = \target{b}
b\htmlClass{lc-blue}{b}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
1\htmlClass{lc-mute}{1}
3\htmlClass{lc-mute}{3}
independent columns
[21]\htmlClass{lc-green}{\begin{bmatrix} 2 \\ 1 \end{bmatrix}}
[13]\htmlClass{lc-pink}{\begin{bmatrix} 1 \\ 3 \end{bmatrix}}
b=[55]\htmlClass{lc-blue}{b = \begin{bmatrix} 5 \\ 5 \end{bmatrix}}
dependent columns
[21]\htmlClass{lc-green}{\begin{bmatrix} 2 \\ 1 \end{bmatrix}}
[42]\htmlClass{lc-pink}{\begin{bmatrix} 4 \\ 2 \end{bmatrix}}
b=[55]\htmlClass{lc-blue}{b = \begin{bmatrix} 5 \\ 5 \end{bmatrix}}
b=[63]\htmlClass{lc-blue}{b = \begin{bmatrix} 6 \\ 3 \end{bmatrix}}

When the second column of AA is a multiple of the first, every combination of the columns stays on a single line through the origin:

x[21]+y[42]=[55](no solution: b lies off the line)\displaystyle \begin{aligned} & \colone{x\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 4 \\ 2 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}} \\[4pt] & (\missed{\text{no solution: }} \target{b} \text{ lies off the line}) \end{aligned}

Moving the target onto that line gives infinitely many ways to adjust the weights x\colone{x} and y\coltwo{y} between the two columns:

3[21]+0[42]=1[21]+1[42]=−1[21]+2[42]=[63]\displaystyle \begin{aligned} \colone{3\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{0\begin{bmatrix} 4 \\ 2 \end{bmatrix}} &= \colone{1\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{1\begin{bmatrix} 4 \\ 2 \end{bmatrix}} \\ &= \colone{-1\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{2\begin{bmatrix} 4 \\ 2 \end{bmatrix}} \\ &= \target{\begin{bmatrix} 6 \\ 3 \end{bmatrix}} \end{aligned}

Whenever the second column lies off the line through [21]\colone{\begin{bmatrix} 2 \\ 1 \end{bmatrix}}, the two columns span the whole plane and reach b=[55]\target{b} = \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}} in one exact way; when the second column lines up with [21]\colone{\begin{bmatrix} 2 \\ 1 \end{bmatrix}}, the row lines turn parallel and the span shrinks to a single line that misses b\target{b}.

The two columns fill the plane and the row lines cross once as long as the columns lie on different lines through the origin, but lining the columns up collapses their span to one line and turns the row lines parallel.
5

Tall and Wide Matrices

In a 2×22 \times 2 matrix, two independent columns span the entire plane. Next, let's see what happens when the number of equations and unknowns do not match: how that changes the sizes of xx and b\target{b}, and whether independent columns still span the whole space.

Tall and Wide Matrices
x[213]+y[134]=[5510]\colone{x\begin{bmatrix} 2 \\ 1 \\ 3 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 1 \\ 3 \\ 4 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 5 \\ 10 \end{bmatrix}}
tall: 3 rows, 2 columns
seen edge-on
wide: 2 rows, 3 columns
[21]\htmlClass{lc-green}{\begin{bmatrix} 2 \\ 1 \end{bmatrix}}
[13]\htmlClass{lc-pink}{\begin{bmatrix} 1 \\ 3 \end{bmatrix}}
[34]\htmlClass{lc-violet}{\begin{bmatrix} 3 \\ 4 \end{bmatrix}}

In a tall matrix (33 rows, 22 columns), the 22 columns only span a flat 2D plane inside 3D space, so only targets b\target{b} sitting right on that plane have a solution:

[211334]⏟3 rows, 2 columns[xy]⏟2 weights=[5510]⏟3 entries⟶2[213]+1[134]=[5510]\displaystyle \begin{aligned} & \underbrace{\begin{bmatrix} \colone{2} & \coltwo{1} \\ \colone{1} & \coltwo{3} \\ \colone{3} & \coltwo{4} \end{bmatrix}}_{\text{3 rows, 2 columns}} \quad \underbrace{\begin{bmatrix} \colone{x} \\ \coltwo{y} \end{bmatrix}}_{\text{2 weights}} = \underbrace{\target{\begin{bmatrix} 5 \\ 5 \\ 10 \end{bmatrix}}}_{\text{3 entries}} \\[6pt] & \longrightarrow \quad \colone{2\begin{bmatrix} 2 \\ 1 \\ 3 \end{bmatrix}} + \coltwo{1\begin{bmatrix} 1 \\ 3 \\ 4 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 5 \\ 10 \end{bmatrix}} \end{aligned}

In a wide matrix (22 rows, 33 columns), the first 22 independent columns already span the entire 2D plane, so the third column [34]=[21]+[13]\colthree{\begin{bmatrix} 3 \\ 4 \end{bmatrix}} = \colone{\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{\begin{bmatrix} 1 \\ 3 \end{bmatrix}} is not needed to reach new points and gives infinitely many solutions for every b\target{b} in 2D:

[213134]⏟2 rows, 3 columns[xyz]⏟3 weights=[55]⏟2 entries⟶x[21]+y[13]+z[34]=[55]\displaystyle \begin{aligned} & \underbrace{\begin{bmatrix} \colone{2} & \coltwo{1} & \colthree{3} \\ \colone{1} & \coltwo{3} & \colthree{4} \end{bmatrix}}_{\text{2 rows, 3 columns}} \quad \underbrace{\begin{bmatrix} \colone{x} \\ \coltwo{y} \\ \colthree{z} \end{bmatrix}}_{\text{3 weights}} = \underbrace{\target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}}}_{\text{2 entries}} \\[6pt] & \longrightarrow \quad \colone{x\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 1 \\ 3 \end{bmatrix}} + \colthree{z\begin{bmatrix} 3 \\ 4 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}} \end{aligned}
6

How Row Operations Simplify the Columns

When both columns have non-zero entries in every position, we cannot see the weights x\colone{x} and y\coltwo{y} right away. Combining equations in the Row Picture puts a 0\colone{0} into a column in the Column Picture so we can find one weight at a time.

How Row Operations Simplify the Columns
x[21]+y[13]=[55]\colone{x\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 1 \\ 3 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}}
2x+1y=51x+3y=5\begin{aligned} \colone{2x} + \coltwo{1y} &= \target{5} \\ \colone{1x} + \coltwo{3y} &= \target{5} \end{aligned}
b\htmlClass{lc-blue}{b}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
5\htmlClass{lc-mute}{5}
1\htmlClass{lc-mute}{1}
3\htmlClass{lc-mute}{3}
5\htmlClass{lc-mute}{5}
Text solution
Clear the bottom entry of the first column with a row operationMultiply the bottom equation 1x+3y=5\colone{1x} + \coltwo{3y} = \target{5} by 22 and subtract the top equation 2x+1y=5\colone{2x} + \coltwo{1y} = \target{5} so the x\colone{x}-term disappears from the bottom row.
2(1x+3y)−(2x+1y)\displaystyle 2(\colone{1x} + \coltwo{3y}) - (\colone{2x} + \coltwo{1y}) =2(5)−5⟶0x+5y\displaystyle = 2(\target{5}) - \target{5} \quad \longrightarrow \quad \colone{0x} + \coltwo{5y} =5\displaystyle = \target{5}
Read y\coltwo{y} from the bottom entry of the new column equationBecause the first column [20]\colone{\begin{bmatrix} 2 \\ 0 \end{bmatrix}} now has a 0\colone{0} in the bottom entry, the bottom of the equation depends only on y\coltwo{y}.
x[20]+y[15]=[55]⟶5y=5⟶y=1\displaystyle \begin{aligned} & \colone{x\begin{bmatrix} 2 \\ 0 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 1 \\ 5 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}} \\[6pt] & \longrightarrow \quad \coltwo{5y} = \target{5} \quad \longrightarrow \quad \coltwo{y} = \coltwo{1} \end{aligned}
Plug y=1\coltwo{y} = \coltwo{1} into the top entry to find x\colone{x}Substitute y=1\coltwo{y} = \coltwo{1} into the top row and solve for x\colone{x}.
2x+1(1)\displaystyle \colone{2x} + \coltwo{1(1)} =5⟶2x\displaystyle = \target{5} \quad \longrightarrow \quad \colone{2x} =4⟶x\displaystyle = 4 \quad \longrightarrow \quad \colone{x} =2\displaystyle = \colone{2}

Key concepts

Whenever you work with Ax=bAx = \target{b}, pick your view based on the question in front of you:

Computing AxAx vs. understanding what Ax=bAx = \target{b} asks

If you are given xx and just need the numbers in AxAx, dot each row of AA with xx one entry at a time:

[2113][3−1]=[(2)(3)+(1)(−1)(1)(3)+(3)(−1)]=[50]\displaystyle \begin{aligned} \begin{bmatrix} 2 & 1 \\ 1 & 3 \end{bmatrix}\begin{bmatrix} \colone{3} \\ \coltwo{-1} \end{bmatrix} &= \begin{bmatrix} (2)(\colone{3}) + (1)(\coltwo{-1}) \\ (1)(\colone{3}) + (3)(\coltwo{-1}) \end{bmatrix} \\ &= \target{\begin{bmatrix} 5 \\ 0 \end{bmatrix}} \end{aligned}
If you want to see what Ax=bAx = \target{b} means geometrically, especially in 3D or higher where picturing intersecting planes is too hard, don't use the Row Picture. Split AA into columns weighted by the entries of xx:
x[21]+y[13]=[55]\displaystyle \colone{x\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 1 \\ 3 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}}

Checking if Ax=bAx = \target{b} has a solution

Ask whether b\target{b} lies in the span of the columns of AA. Always check the shape of AA before concluding that independent columns span the whole space: the number of columns tells you how many weights xx has, while the number of rows tells you the dimension of the space. Two independent columns span all of 2D space in [2113]\begin{bmatrix} \colone{2} & \coltwo{1} \\ \colone{1} & \coltwo{3} \end{bmatrix}, but in a tall matrix like [211334]\begin{bmatrix} \colone{2} & \coltwo{1} \\ \colone{1} & \coltwo{3} \\ \colone{3} & \coltwo{4} \end{bmatrix} two independent columns only span a 2D plane inside 3D space, missing almost every b\target{b}.

Finding the weights xx step by step

When non-zero entries in every position keep you from seeing the weights right away, use a row operation to put a 0\colone{0} at the bottom of the first column, turning x[21]+y[13]=[55]\colone{x\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 1 \\ 3 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}} into x[20]+y[15]=[55]\colone{x\begin{bmatrix} 2 \\ 0 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 1 \\ 5 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 5 \end{bmatrix}}. Then you can read y=1\coltwo{y} = \coltwo{1} straight from the bottom entry and plug it into the top entry to get x=2\colone{x} = \colone{2}.

7

Practice

1

Rewrite the system of equations 3x−y+2z=73x - y + 2z = 7, x+4z=−2x + 4z = -2, and −2x+5y−z=0-2x + 5y - z = 0 in the matrix form Ax=bAx = \target{b} and as a linear combination of the columns of AA.

What coefficient belongs in the middle spot of the second equation where yy does not appear?

Write the missing y\coltwo{y}-term in the second equation as 0y\coltwo{0y} so every unknown stays in its own column:
3x−1y+2z=71x+0y+4z=−2−2x+5y−1z=0\displaystyle \begin{aligned} \colone{3x} - \coltwo{1y} + \colthree{2z} &= \target{7} \\ \colone{1x} + \coltwo{0y} + \colthree{4z} &= \target{-2} \\ \colone{-2x} + \coltwo{5y} - \colthree{1z} &= \target{0} \end{aligned}
Watch out for skipping the missing yy-term in x+4z=−2x + 4z = -2, which shifts 44 into the middle spot and gives the wrong second row [140]\begin{bmatrix} 1 & 4 & 0 \end{bmatrix} and wrong second column [−145]\begin{bmatrix} -1 \\ 4 \\ 5 \end{bmatrix}. Packing the coefficients into Ax=bAx = \target{b} gives:
[3−12104−25−1][xyz]=[7−20]\displaystyle \begin{bmatrix} \colone{3} & \coltwo{-1} & \colthree{2} \\ \colone{1} & \coltwo{0} & \colthree{4} \\ \colone{-2} & \coltwo{5} & \colthree{-1} \end{bmatrix} \begin{bmatrix} \colone{x} \\ \coltwo{y} \\ \colthree{z} \end{bmatrix} = \target{\begin{bmatrix} 7 \\ -2 \\ 0 \end{bmatrix}}
Splitting the matrix vertically into a linear combination of the columns gives:
x[31−2]+y[−105]+z[24−1]=[7−20]\displaystyle \colone{x\begin{bmatrix} 3 \\ 1 \\ -2 \end{bmatrix}} + \coltwo{y\begin{bmatrix} -1 \\ 0 \\ 5 \end{bmatrix}} + \colthree{z\begin{bmatrix} 2 \\ 4 \\ -1 \end{bmatrix}} = \target{\begin{bmatrix} 7 \\ -2 \\ 0 \end{bmatrix}}
2

For A=[3−124]A = \begin{bmatrix} 3 & -1 \\ 2 & 4 \end{bmatrix} and x=[2−3]x = \begin{bmatrix} 2 \\ -3 \end{bmatrix}, compute the product AxAx in two ways: first by taking the dot product of each row with xx, and second by taking a linear combination of the columns of AA.

In the column way, which column of AA gets multiplied by 22 and which gets multiplied by −3-3?

By dotting each row with xx:
[3−124][2−3]=[(3)(2)+(−1)(−3)(2)(2)+(4)(−3)]=[6+34−12]=[9−8]\displaystyle \begin{aligned} & \begin{bmatrix} 3 & -1 \\ 2 & 4 \end{bmatrix} \begin{bmatrix} \colone{2} \\ \coltwo{-3} \end{bmatrix} \\ &\quad = \begin{bmatrix} (3)(\colone{2}) + (-1)(\coltwo{-3}) \\ (2)(\colone{2}) + (4)(\coltwo{-3}) \end{bmatrix} \\ &\quad = \begin{bmatrix} 6 + 3 \\ 4 - 12 \end{bmatrix} = \target{\begin{bmatrix} 9 \\ -8 \end{bmatrix}} \end{aligned}
In the column way, be careful not to weight the rows 2[3−1]−3[24]=[0−14]2\begin{bmatrix} 3 \\ -1 \end{bmatrix} - 3\begin{bmatrix} 2 \\ 4 \end{bmatrix} = \begin{bmatrix} 0 \\ -14 \end{bmatrix}; split AA vertically so 2\colone{2} scales the first column and −3\coltwo{-3} scales the second column:
2[32]−3[−14]=[64]−[−312]=[9−8]\displaystyle \begin{aligned} \colone{2\begin{bmatrix} 3 \\ 2 \end{bmatrix}} - \coltwo{3\begin{bmatrix} -1 \\ 4 \end{bmatrix}} &= \colone{\begin{bmatrix} 6 \\ 4 \end{bmatrix}} - \coltwo{\begin{bmatrix} -3 \\ 12 \end{bmatrix}} \\ &= \target{\begin{bmatrix} 9 \\ -8 \end{bmatrix}} \end{aligned}
3

In the Row Picture of a 2×22 \times 2 system Ax=bAx = \target{b}, the two lines intersect at the point (−1,4)(-1, 4). If the columns of AA are [23]\colone{\begin{bmatrix} 2 \\ 3 \end{bmatrix}} and [12]\coltwo{\begin{bmatrix} 1 \\ 2 \end{bmatrix}}, what is the target vector b\target{b}?

How are the intersection coordinates (−1,4)(-1, 4) from the Row Picture used in the Column Picture?

The intersection coordinates (−1,4)(-1, 4) in the Row Picture are the column weights x=−1\colone{x} = \colone{-1} and y=4\coltwo{y} = \coltwo{4} in the Column Picture. Watch out for dotting [−14]\begin{bmatrix} -1 \\ 4 \end{bmatrix} with each column as if the columns were rows, which gives [(−1)(2)+(4)(3)(−1)(1)+(4)(2)]=[107]\begin{bmatrix} (-1)(2) + (4)(3) \\ (-1)(1) + (4)(2) \end{bmatrix} = \begin{bmatrix} 10 \\ 7 \end{bmatrix}. Weighting the columns by −1\colone{-1} and 4\coltwo{4} gives:
b=−1[23]+4[12]=[−2−3]+[48]=[25]\displaystyle \begin{aligned} \target{b} &= \colone{-1\begin{bmatrix} 2 \\ 3 \end{bmatrix}} + \coltwo{4\begin{bmatrix} 1 \\ 2 \end{bmatrix}} \\ &= \colone{\begin{bmatrix} -2 \\ -3 \end{bmatrix}} + \coltwo{\begin{bmatrix} 4 \\ 8 \end{bmatrix}} \\ &= \target{\begin{bmatrix} 2 \\ 5 \end{bmatrix}} \end{aligned}
4

Start with the system x[13]+y[21]=[76]\colone{x\begin{bmatrix} 1 \\ 3 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 2 \\ 1 \end{bmatrix}} = \target{\begin{bmatrix} 7 \\ 6 \end{bmatrix}}. Use a row operation to put a 0\colone{0} at the bottom of the first column, write the new column equation, and find the solutions y\coltwo{y} and x\colone{x}.

How many copies of the top row 1x+2y=7\colone{1x} + \coltwo{2y} = \target{7} do you need to subtract from the bottom row 3x+1y=6\colone{3x} + \coltwo{1y} = \target{6} to eliminate 3x\colone{3x}?

Subtract 33 times the top row from the bottom row:
(3x+1y)−3(1x+2y)\displaystyle (\colone{3x} + \coltwo{1y}) - 3(\colone{1x} + \coltwo{2y}) =6−3(7)⟶0x−5y\displaystyle = \target{6} - 3(\target{7}) \quad \longrightarrow \quad \colone{0x} - \coltwo{5y} =−15\displaystyle = \target{-15}
Be careful not to forget to subtract 3(7)=213(7) = 21 from the right-hand side; leaving the target vector as [76]\begin{bmatrix} 7 \\ 6 \end{bmatrix} gives −5y=6-5y = 6 and the wrong answer y=−65y = -\frac{6}{5}. The new column equation is:
x[10]+y[2−5]=[7−15]\displaystyle \colone{x\begin{bmatrix} 1 \\ 0 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 2 \\ -5 \end{bmatrix}} = \target{\begin{bmatrix} 7 \\ -15 \end{bmatrix}}
Reading the bottom entry gives −5y=−15\coltwo{-5y} = \target{-15}, so y=3\coltwo{y} = \coltwo{3}. Plugging y=3\coltwo{y} = \coltwo{3} into the top entry gives x+2(3)=7\colone{x} + \coltwo{2(3)} = \target{7}, so x=1\colone{x} = \colone{1}.
5

Let A=[3−61−2]A = \begin{bmatrix} 3 & -6 \\ 1 & -2 \end{bmatrix}. Explain in both the Row Picture and the Column Picture why Ax=[52]Ax = \target{\begin{bmatrix} 5 \\ 2 \end{bmatrix}} has no solution. Then find the number k\target{k} for which Ax=[6k]Ax = \target{\begin{bmatrix} 6 \\ k \end{bmatrix}} has solutions, and give two different solution vectors xx.

How is the second column [−6−2]\coltwo{\begin{bmatrix} -6 \\ -2 \end{bmatrix}} related to the first column [31]\colone{\begin{bmatrix} 3 \\ 1 \end{bmatrix}}, and what line do they span?

In the Row Picture, 3x−6y=5\rowone{3x - 6y} = \rowone{5} and 1x−2y=2\rowtwo{1x - 2y} = \rowtwo{2} are parallel lines because multiplying the bottom equation by 33 gives 3x−6y=6≠5\rowtwo{3x - 6y} = \rowtwo{6} \missed{\neq} \rowone{5}, so they never intersect. In the Column Picture, the columns [31]\colone{\begin{bmatrix} 3 \\ 1 \end{bmatrix}} and [−6−2]\coltwo{\begin{bmatrix} -6 \\ -2 \end{bmatrix}} lie on the same line through the origin, and [52]\target{\begin{bmatrix} 5 \\ 2 \end{bmatrix}} lies off that line.
For b=[6k]\target{b} = \target{\begin{bmatrix} 6 \\ k \end{bmatrix}} to lie on the line spanned by [31]\colone{\begin{bmatrix} 3 \\ 1 \end{bmatrix}}, it must be 2[31]=[62]\colone{2\begin{bmatrix} 3 \\ 1 \end{bmatrix}} = \target{\begin{bmatrix} 6 \\ 2 \end{bmatrix}}, so k=2\target{k} = \target{2}. Using 2\colone{2} of the first column and 0\coltwo{0} of the second gives our first solution, x=[20]x = \begin{bmatrix} \colone{2} \\ \coltwo{0} \end{bmatrix}. To get a second solution with y=1\coltwo{y} = \coltwo{1}, watch out for subtracting 22 from xx to get [01]\begin{bmatrix} 0 \\ 1 \end{bmatrix}, which gives 0[31]+1[−6−2]=[−6−2]0\begin{bmatrix} 3 \\ 1 \end{bmatrix} + 1\begin{bmatrix} -6 \\ -2 \end{bmatrix} = \begin{bmatrix} -6 \\ -2 \end{bmatrix}; because the second column is −2-2 times the first column, adding 1\coltwo{1} of the second column must be balanced by adding 2\colone{2} more of the first column:
4[31]+1[−6−2]=[62]⟶x=[41]\displaystyle \colone{4\begin{bmatrix} 3 \\ 1 \end{bmatrix}} + \coltwo{1\begin{bmatrix} -6 \\ -2 \end{bmatrix}} = \target{\begin{bmatrix} 6 \\ 2 \end{bmatrix}} \quad \longrightarrow \quad x = \begin{bmatrix} \colone{4} \\ \coltwo{1} \end{bmatrix}
6

Consider Ax=bAx = \target{b} with A=[122133]A = \begin{bmatrix} 1 & 2 \\ 2 & 1 \\ 3 & 3 \end{bmatrix}. How many entries must xx and b\target{b} have, do the columns of AA span all of 3D space, and for what number c\target{c} does b=[54c]\target{b} = \target{\begin{bmatrix} 5 \\ 4 \\ c \end{bmatrix}} have a solution? Find xx for that c\target{c}.

Find the weights x\colone{x} and y\coltwo{y} that hit the first two entries [54]\target{\begin{bmatrix} 5 \\ 4 \end{bmatrix}} first. Once x\colone{x} and y\coltwo{y} are fixed, what must the third entry c\target{c} equal?

Because AA has 22 columns and 33 rows, xx must have 22 entries and b\target{b} must have 33 entries (watch out for matching xx to the 33 rows and giving xx 33 entries). The 22 independent columns only span a flat 2D plane inside 3D space, not all of 3D space.
In column form, the system is:
x[123]+y[213]=[54c]\displaystyle \colone{x\begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 2 \\ 1 \\ 3 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 4 \\ c \end{bmatrix}}
Subtracting 22 times the first row from the second row in the top two entries gives (2x+y)−2(x+2y)=4−2(5)(\colone{2x} + \coltwo{y}) - 2(\colone{x} + \coltwo{2y}) = \target{4} - 2(\target{5}), so −3y=−6\coltwo{-3y} = \target{-6}, which gives y=2\coltwo{y} = \coltwo{2} and x=5−2(2)=1\colone{x} = \target{5} - \coltwo{2(2)} = \colone{1}. Plugging x=1\colone{x} = \colone{1} and y=2\coltwo{y} = \coltwo{2} into the third row forces c=1(3)+2(3)=9\target{c} = \colone{1(3)} + \coltwo{2(3)} = \target{9}, with solution vector:
x=[12]\displaystyle x = \begin{bmatrix} \colone{1} \\ \coltwo{2} \end{bmatrix}
7

Consider the system [123213][xyz]=[54]\begin{bmatrix} 1 & 2 & 3 \\ 2 & 1 & 3 \end{bmatrix}\begin{bmatrix} x \\ y \\ z \end{bmatrix} = \target{\begin{bmatrix} 5 \\ 4 \end{bmatrix}}. Use the Column Picture to explain why this system can reach any target b\target{b} in 2D in infinitely many ways, and find two different solution vectors [xyz]\begin{bmatrix} x \\ y \\ z \end{bmatrix} for b=[54]\target{b} = \target{\begin{bmatrix} 5 \\ 4 \end{bmatrix}}.

Notice that the third column [33]\colthree{\begin{bmatrix} 3 \\ 3 \end{bmatrix}} equals the sum of the first two columns. Find one solution with z=0\colthree{z} = \colthree{0}, then see how x\colone{x} and y\coltwo{y} adjust when you set z=1\colthree{z} = \colthree{1}.

Splitting the system into columns gives:
x[12]+y[21]+z[33]=[54]\displaystyle \colone{x\begin{bmatrix} 1 \\ 2 \end{bmatrix}} + \coltwo{y\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \colthree{z\begin{bmatrix} 3 \\ 3 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 4 \end{bmatrix}}
The three columns live in 2D space, and the first two columns [12]\colone{\begin{bmatrix} 1 \\ 2 \end{bmatrix}} and [21]\coltwo{\begin{bmatrix} 2 \\ 1 \end{bmatrix}} don't lie on the same line through the origin, so they already span the entire 2D plane, which means the third column [33]=[12]+[21]\colthree{\begin{bmatrix} 3 \\ 3 \end{bmatrix}} = \colone{\begin{bmatrix} 1 \\ 2 \end{bmatrix}} + \coltwo{\begin{bmatrix} 2 \\ 1 \end{bmatrix}} is not needed to reach new points.
Setting z=0\colthree{z} = \colthree{0} gives 1[12]+2[21]+0[33]=[54]\colone{1\begin{bmatrix} 1 \\ 2 \end{bmatrix}} + \coltwo{2\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \colthree{0\begin{bmatrix} 3 \\ 3 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 4 \end{bmatrix}}, so our first solution is [120]\begin{bmatrix} \colone{1} \\ \coltwo{2} \\ \colthree{0} \end{bmatrix}. When you change z\colthree{z} to 1\colthree{1}, watch out for leaving x=1x = 1 and y=2y = 2 unchanged, which adds an extra [33]\begin{bmatrix} 3 \\ 3 \end{bmatrix} and lands on [87]\begin{bmatrix} 8 \\ 7 \end{bmatrix}. Because 1[33]\colthree{1\begin{bmatrix} 3 \\ 3 \end{bmatrix}} contributes the same amount as 1[12]+1[21]\colone{1\begin{bmatrix} 1 \\ 2 \end{bmatrix}} + \coltwo{1\begin{bmatrix} 2 \\ 1 \end{bmatrix}}, reduce both x\colone{x} and y\coltwo{y} by 11:
0[12]+1[21]+1[33]=[54]⟶[xyz]=[011]\displaystyle \colone{0\begin{bmatrix} 1 \\ 2 \end{bmatrix}} + \coltwo{1\begin{bmatrix} 2 \\ 1 \end{bmatrix}} + \colthree{1\begin{bmatrix} 3 \\ 3 \end{bmatrix}} = \target{\begin{bmatrix} 5 \\ 4 \end{bmatrix}} \quad \longrightarrow \quad \begin{bmatrix} x \\ y \\ z \end{bmatrix} = \begin{bmatrix} \colone{0} \\ \coltwo{1} \\ \colthree{1} \end{bmatrix}