Tutorials › Linear Algebra › Recovering Span Coefficients From a Reduced System

Span and the Column Space View · Tutorial 141 of 1000

Recovering Span Coefficients From a Reduced System

Use the reduced augmented system to find and check all coefficients that express a target as a combination of given vectors.

Beginner 10 min read

What You'll Learn

  • Translate a target-combination question into a matrix equation
  • Preserve coefficient solutions while row-reducing an augmented matrix
  • Read a unique coefficient vector from a reduced system
  • Parameterize every coefficient vector when free variables occur
  • Verify a recovered representation using the original vectors

From a Target to Its Coefficients

When a target vector is in the span of given vectors, it can be expressed as a linear combination of them. The practical question is often more specific: what coefficients produce that target? There may be one coefficient vector, or there may be many. A reduced augmented system answers both questions, provided we keep track of which variables are coefficients and express every free variable in the answer.

Let \(\mathbf{v}_1,\dots,\mathbf{v}_n\) be columns in \(\mathbb{R}^m\), and let \(\mathbf{b}\in\mathbb{R}^m\) be a target. Put the given vectors into the columns of \(\mathbf{A}\), and collect their coefficients in the column vector \(\mathbf{c}\). By matrix multiplication, \(\mathbf{A}\mathbf{c}\) is exactly the linear combination of the columns with those coefficients. Thus recovering coefficients means solving \(\mathbf{A}\mathbf{c}=\mathbf{b}\).

Definition: A coefficient vector \(\mathbf{c}=(c_1,\dots,c_n)^{\top}\in\mathbb{R}^n\) represents \(\mathbf{b}\) using \(\mathbf{v}_1,\dots,\mathbf{v}_n\) if \(\mathbf{A}\mathbf{c}=\mathbf{b}\), where \(\mathbf{A}=\begin{bmatrix}\mathbf{v}_1&\cdots&\mathbf{v}_n\end{bmatrix}\). Equivalently, \(\mathbf{b}=c_1\mathbf{v}_1+\cdots+c_n\mathbf{v}_n\).

To solve for the coefficients, row-reduce the augmented matrix \(\begin{bmatrix}\mathbf{A}&\mathbf{b}\end{bmatrix}\). The last column must stay attached throughout the reduction: it records the right-hand side of the same system. If the reduced system is consistent, its pivot equations express the pivot variables in terms of the free variables. Giving each free variable a parameter then describes all coefficient vectors, not just one.

Why Row Reduction Keeps the Coefficients

Row operations change the appearance of a system, but they do not change which coefficient vectors solve it. This is the reason a reduced augmented matrix can be used to recover coefficients for the original vectors.

Theorem: If \(\mathbf{A}\mathbf{c}=\mathbf{b}\) is a system over \(\mathbb{R}\), then every sequence of elementary row operations on \(\begin{bmatrix}\mathbf{A}&\mathbf{b}\end{bmatrix}\) leaves its set of coefficient solutions unchanged.

Proof. A row swap exchanges two equations, so a coefficient vector satisfies the system before the swap exactly when it satisfies the system after the swap. Multiplying a row by a nonzero scalar \(k\) replaces an equation by \(k\) times that equation. Since \(k\ne0\), the new equation holds exactly when the original equation holds. Finally, adding \(k\) times one row to another replaces one equation by its sum with a multiple of another equation. Any solution of the original equations satisfies this new equation. Conversely, subtracting \(k\) times the unchanged row recovers the original equation, so any solution after the operation satisfies the original equations as well. Each elementary row operation therefore preserves the solution set; applying this fact one operation at a time proves the statement for a sequence of operations. \(\square\)

In a consistent reduced row echelon form (RREF), the coefficient columns have some pivot positions and may have nonpivot positions. A variable corresponding to a nonpivot coefficient column is free: it may be assigned any real value, and the pivot equations determine the pivot variables. The augmented column is not a coefficient variable. If it contains a pivot, the system is inconsistent, so there is no coefficient vector representing the target.

Theorem (Reading all coefficients from a consistent RREF): Suppose \(\begin{bmatrix}\mathbf{A}&\mathbf{b}\end{bmatrix}\) has \(n\) coefficient columns and its RREF is consistent. Suppose its coefficient pivots are in columns \(p_1,\dots,p_r\), with pivot rows \(1,\dots,r\), and let \(F\) be the set of nonpivot coefficient-column indices. Write \(d_i\) for the entry in the augmented column of row \(i\), and \(q_{ij}\) for the entry of row \(i\) in coefficient column \(j\). For arbitrary real parameters \(t_j\), \(j\in F\), all coefficient solutions are given by \(c_j=t_j\) for \(j\in F\) and \(c_{p_i}=d_i-\sum_{j\in F}q_{ij}t_j\) for \(1\le i\le r\).

Proof. By the row-operation theorem, the RREF system has exactly the coefficient solutions of the original system. In each pivot row \(i\), the pivot entry in column \(p_i\) is \(1\), and entries in every other pivot column are \(0\). Its equation is therefore \(c_{p_i}+\sum_{j\in F}q_{ij}c_j=d_i\). Assigning \(c_j=t_j\) to each free variable and rearranging this equation gives \(c_{p_i}=d_i-\sum_{j\in F}q_{ij}t_j\). Every row below the pivot rows has zero entries in the coefficient columns. Consistency means its augmented entry is also zero, so these rows impose no further condition. Hence every choice of the free parameters gives a solution. Conversely, any solution must satisfy each pivot-row equation, so its pivot variables have exactly the displayed values for its chosen free variables. This gives all solutions, including the case \(F\) is empty, when the solution is unique. \(\square\)

Recovering a Unique Coefficient Vector

Worked Example: A Unique Representation

Express \(\mathbf{b}=(5,5)^{\top}\) as a linear combination of \(\mathbf{v}_1=(1,2)^{\top}\) and \(\mathbf{v}_2=(3,1)^{\top}\), if possible.

The coefficient equation is \(c_1\mathbf{v}_1+c_2\mathbf{v}_2=\mathbf{b}\). Put the vectors in the columns and row-reduce the augmented matrix:

$$ \begin{bmatrix}1&3&5\\2&1&5\end{bmatrix} \xrightarrow{R_2\to R_2-2R_1} \begin{bmatrix}1&3&5\\0&-5&-5\end{bmatrix} \xrightarrow{R_2\to-\frac15R_2} \begin{bmatrix}1&3&5\\0&1&1\end{bmatrix} \xrightarrow{R_1\to R_1-3R_2} \begin{bmatrix}1&0&2\\0&1&1\end{bmatrix}. $$

The reduced equations are \(c_1=2\) and \(c_2=1\). Both coefficient columns have pivots, so there are no free variables and this is the only coefficient vector. The target is \(\mathbf{b}=2\mathbf{v}_1+\mathbf{v}_2\).

Check: \(2(1,2)^{\top}+(3,1)^{\top}=(2+3,4+1)^{\top}=(5,5)^{\top}=\mathbf{b}\).

Recovering a Family of Representations

A nonpivot coefficient column does not mean that the target fails to be represented. It means that one or more coefficients can vary while the pivot equations adjust the other coefficients. To recover all representations, keep the free variables as parameters instead of selecting values for them too early.

Worked Example: One Free Coefficient

Find every representation of \(\mathbf{b}=(3,4,7)^{\top}\) using \(\mathbf{v}_1=(1,0,1)^{\top}\), \(\mathbf{v}_2=(0,1,1)^{\top}\), and \(\mathbf{v}_3=(1,1,2)^{\top}\).

Form the augmented matrix, with coefficients \(c_1,c_2,c_3\) in that order. Subtract row 1 from row 3, then subtract row 2 from the new row 3:

$$ \begin{bmatrix}1&0&1&3\\0&1&1&4\\1&1&2&7\end{bmatrix} \xrightarrow{R_3\to R_3-R_1} \begin{bmatrix}1&0&1&3\\0&1&1&4\\0&1&1&4\end{bmatrix} \xrightarrow{R_3\to R_3-R_2} \begin{bmatrix}1&0&1&3\\0&1&1&4\\0&0&0&0\end{bmatrix}. $$

The coefficient pivots are in columns 1 and 2, while \(c_3\) is free. Set \(c_3=t\), where \(t\in\mathbb{R}\). The first two rows give \(c_1+c_3=3\) and \(c_2+c_3=4\), so \(c_1=3-t\) and \(c_2=4-t\). Thus all coefficient vectors are \((3-t,4-t,t)^{\top}\), and all representations are \(\mathbf{b}=(3-t)\mathbf{v}_1+(4-t)\mathbf{v}_2+t\mathbf{v}_3\).

Check: For every real \(t\), the three coordinates of this combination are \((3-t)+t=3\), \((4-t)+t=4\), and \((3-t)+(4-t)+2t=7\). The combination therefore equals \((3,4,7)^{\top}\) for every \(t\).

The check also illustrates why a free variable must remain visible in the final answer. Setting \(t=0\) gives a valid representation, but it does not describe the other coefficient choices that produce the same target.

Worked Example: Two Free Coefficients

Find all coefficients expressing \(\mathbf{b}=(5,1,2)^{\top}\) using the columns \(\mathbf{v}_1=(1,0,0)^{\top}\), \(\mathbf{v}_2=(0,1,0)^{\top}\), \(\mathbf{v}_3=(1,1,0)^{\top}\), and \(\mathbf{v}_4=(2,-1,1)^{\top}\).

The augmented matrix is already close to reduced form. Use the pivot in column 4 to clear the entries above it:

$$ \begin{bmatrix}1&0&1&2&5\\0&1&1&-1&1\\0&0&0&1&2\end{bmatrix} \xrightarrow{R_1\to R_1-2R_3} \begin{bmatrix}1&0&1&0&1\\0&1&1&-1&1\\0&0&0&1&2\end{bmatrix} \xrightarrow{R_2\to R_2+R_3} \begin{bmatrix}1&0&1&0&1\\0&1&1&0&3\\0&0&0&1&2\end{bmatrix}. $$

Columns 1, 2, and 4 are pivot columns; \(c_3\) is free. The equations are \(c_1+c_3=1\), \(c_2+c_3=3\), and \(c_4=2\). Setting \(c_3=s\), with \(s\in\mathbb{R}\), gives \((c_1,c_2,c_3,c_4)=(1-s,3-s,s,2)\).

Check: The first coordinate of the combination is \((1-s)+s+2(2)=5\). The second is \((3-s)+s-2=1\), and the third is \(2\). Thus \((1-s)\mathbf{v}_1+(3-s)\mathbf{v}_2+s\mathbf{v}_3+2\mathbf{v}_4=(5,1,2)^{\top}\) for every real \(s\).

Common Pitfall: Treating One Choice as the Whole Answer

In the one-free-coefficient example, choosing \(c_3=0\) gives the correct coefficient vector \((3,4,0)^{\top}\). It would be wrong, however, to conclude that this is the only representation: the reduced equations do not require \(c_3=0\). For instance, choosing \(c_3=1\) gives \((2,3,1)^{\top}\), and \(2\mathbf{v}_1+3\mathbf{v}_2+\mathbf{v}_3=(3,4,7)^{\top}\) as well. The correction is to assign a parameter to each free variable and retain it in the pivot-variable equations.

There is a separate issue when the reduced augmented matrix is inconsistent. A row of the form \(\begin{bmatrix}0&\cdots&0&|&k\end{bmatrix}\), with \(k\ne0\), asserts \(0=k\), so no coefficient vector can represent the target. Do not read a parameterized answer from such a matrix: first check that no such row occurs. When the matrix is consistent, the pivot equations and free-variable parameters give every representation, and substitution into the original columns provides a direct check.

Check Your Understanding

For each system, distinguish between a particular coefficient choice and the full set of coefficient solutions.

  1. Reduce \(\begin{bmatrix}1&2&4\\0&1&3\end{bmatrix}\), treating the first two columns as coefficients and the last as the target. Find the coefficient vector.
  2. If a consistent RREF has coefficient pivots in columns 1 and 3, which coefficient variables are free when there are four coefficient columns?
  3. For the reduced equations \(c_1+2c_3=5\) and \(c_2-c_3=1\), write all coefficient vectors using a parameter.
  4. Explain why row operations on the augmented matrix preserve the coefficient solutions, but row-reducing only the coefficient matrix does not by itself record the target equations.
  5. What does a reduced row \(\begin{bmatrix}0&0&0&|&-2\end{bmatrix}\) imply about representations of the target?

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon