Euler Hall — free maths guides

Decide whether b lies in the column space

State that b is in C(A) exactly when Ax = b has a solution. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Membership is solvability, and nothing else

The column space ofAA is every combination of its columns. So

Written as a matrix, that is

Ax=b.A\mathbf{x}=\mathbf{b}.

There is no third thing to check. Asking "isb\mathbf{b} in the column space" and asking "isAx=bA\mathbf{x}=\mathbf{b} solvable" are the same question with two vocabularies. The weights are the solution vector.

The mechanical test. Form the augmented matrix[A∣b][A\mid\mathbf{b}] and compare the two ranks:

-rank⁡[A∣b]=rank⁡A\operatorname{rank}[A\mid\mathbf{b}]=\operatorname{rank}A → solvable, sob∈C(A)\mathbf{b}\in C(A). -rank⁡[A∣b]>rank⁡A\operatorname{rank}[A\mid\mathbf{b}]>\operatorname{rank}A → a pivot lands in theb\mathbf{b} column, which reads0=nonzero0=\text{nonzero}. Not solvable, sob∉C(A)\mathbf{b}\notin C(A).

The picture. For a3×23\times2AA with independent columns,C(A)C(A) is a plane. Two vectors inR3\mathbb{R}^3 reach a plane and nothing more, so most ofR3\mathbb{R}^3 is outside it.

Why the rank comparison works

Elimination replaces the system by an equivalent one: the same solutions, in triangular form. A pivot in one of the firstnn columns uses up one unknown. A pivot in the last column would have to "solve"0⋅x=nonzero0\cdot x=\text{nonzero}, which is impossible — that is the only way a system fails.

So the number of pivots among the firstnn columns isrank⁡A\operatorname{rank}A, and the total number of pivots isrank⁡[A∣b]\operatorname{rank}[A\mid\mathbf{b}]. The system is solvable exactly when the extra column adds no pivot, which is exactly when the two ranks agree.

This also explains why a square invertibleAA reaches everything: it already hasnn pivots innn columns, so there is no room to gain one, and everyb\mathbf{b} is solvable. Interesting cases are tall or singular matrices, where there is room to fail.

Worked example, in the shape the exam asks

Question. Isb=(1,2,5)\mathbf{b}=(1,2,5) in the column space ofA=[211334]A=\begin{bmatrix}2&1\\1&3\\3&4\end{bmatrix}?

Step 1 — write what membership means. We need weightsx,yx,y withx(2,1,3)+y(1,3,4)=(1,2,5)x(2,1,3)+y(1,3,4)=(1,2,5).

Step 2 — read the first two rows as equations.

2x+y=1,x+3y=2.2x+y=1,\qquad x+3y=2.

Step 3 — solve them. Double the second:2x+6y=42x+6y=4. Subtract the first:5y=35y=3, soy=35y=\tfrac35. Thenx=2−3y=2−95=15x=2-3y=2-\tfrac95=\tfrac15.

Step 4 — check the row you did not use. Third entry ofxA+yBxA+yB:15⋅3+35⋅4=35+125=3\tfrac15\cdot3+\tfrac35\cdot4=\tfrac{3}{5}+\tfrac{12}{5}=3, butb\mathbf{b} has55 there.

Step 5 — conclude. The weights that satisfy the first two equations miss the third, so no weights work. The system is inconsistent andb∉C(A)\mathbf{b}\notin C(A).

Rank check.rank⁡A=2\operatorname{rank}A=2 (columns independent) andrank⁡[A∣b]=3\operatorname{rank}[A\mid\mathbf{b}]=3 (the third row contradicts). Larger augmented rank means outside — the same conclusion, reached faster.

By the end you can
  • State that b is in C(A) exactly when Ax = b has a solution
  • Decide membership by comparing rank A with rank [A | b]
  • Check a claimed set of weights by multiplying it out
  • Reject 'it has the right length' and 'A is not square' as reasons
Check yourself

Isb=(1,1,1)\mathbf{b}=(1,1,1) in the column space ofA=[111111]A=\begin{bmatrix}1&1\\1&1\\1&1\end{bmatrix}? Give the weights if it is.

Answer

Yes, with weights(12,12)(\tfrac12,\tfrac12) — and with many other pairs, because the two columns are identical.

Every combination is(x+y)(1,1,1)(x+y)(1,1,1), so any pair withx+y=1x+y=1 works. The rank comparison:rank⁡A=1\operatorname{rank}A=1 andrank⁡[A∣b]=1\operatorname{rank}[A\mid\mathbf{b}]=1 too, since the augmented third row is still a multiple of the first. Equal ranks, so solvable.

The lesson: when the columns are dependent, a solution — if there is one — is never unique. Membership is a yes/no question; the weights are not.

Work out where to start — free, no accountAnswer six real questions — free, no account