Tutorials › Linear Algebra › Linear Combinations in Abstract Vector Spaces

Basis and Dimension · Tutorial 301 of 1000

Linear Combinations in Abstract Vector Spaces

Learn to interpret and compute finite linear combinations in several familiar examples of abstract vector spaces.

Intermediate 9 min read

What You'll Learn

  • Define a finite linear combination in a vector space over a specified field
  • Match each scalar coefficient to its vector in an ordered list
  • Compute combinations of polynomials by collecting like powers
  • Compute combinations of matrices entry by entry
  • Compute combinations of coordinate vectors component by component
  • Use coefficient rules and recognize why a zero result does not force every coefficient to be zero

What a Linear Combination Means

In a familiar coordinate space, a linear combination is calculated by scaling vectors and adding the results. The same operation makes sense in any vector space, even when its elements are polynomials, matrices, or functions rather than coordinate columns. The key is that the coefficients come from the scalar field and the addition and scalar multiplication are the operations of the vector space.

Let \(V\) be a vector space over a field \(\mathbb{F}\). Unless specified otherwise, examples in this tutorial use \(\mathbb{R}\) as the field of scalars. If \(\mathbf{v}_1,\dots,\mathbf{v}_p\) is an ordered list of vectors in \(V\), and \(c_1,\dots,c_p\in\mathbb{F}\), then each coefficient \(c_i\) is paired with the vector \(\mathbf{v}_i\) in the same position. The number of vectors and the number of coefficients must match.

Definition: A finite linear combination of the ordered list \(\mathbf{v}_1,\dots,\mathbf{v}_p\) in a vector space \(V\) over \(\mathbb{F}\) is an expression of the form \(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p\), where each \(c_i\in\mathbb{F}\). Its value is the vector obtained using scalar multiplication and addition in \(V\).

The same definition applies whether \(V\) is finite-dimensional or not. The expression is finite because it uses a finite list of vectors; the space itself need not have finite dimension. The order of the list matters for pairing coefficients correctly, although rearranging the terms together with their coefficients does not change the resulting vector. A coefficient can be zero, and a vector can appear more than once.

For instance, in the polynomial space \(P_2(\mathbb{R})\), whose elements are real polynomials of degree at most \(2\), the expression \(2p-3q+r\) is a linear combination of \(p,q,r\). In the matrix space \(\mathbb{R}^{2\times2}\), the expression \(2\mathbf{A}-\mathbf{B}\) is a linear combination of \(\mathbf{A}\) and \(\mathbf{B}\). The operations are performed using polynomial addition and scalar multiplication in the first case, and matrix addition and scalar multiplication in the second.

Coefficient Rules

For a fixed ordered list, linear combinations can be added or scaled by updating their coefficients. These rules follow from the distributive and associative laws in a vector space; they are not special to coordinate vectors.

Theorem (Coefficient rules): Let \(V\) be a vector space over \(\mathbb{F}\), let \(\mathbf{v}_1,\dots,\mathbf{v}_p\in V\), and let \(a_1,\dots,a_p,b_1,\dots,b_p,t\in\mathbb{F}\). Then \( \left(\sum_{i=1}^{p}a_i\mathbf{v}_i\right)+\left(\sum_{i=1}^{p}b_i\mathbf{v}_i\right)=\sum_{i=1}^{p}(a_i+b_i)\mathbf{v}_i \) and \( t\left(\sum_{i=1}^{p}a_i\mathbf{v}_i\right)=\sum_{i=1}^{p}(ta_i)\mathbf{v}_i \).

Proof. By associativity and commutativity of vector addition, the terms in the two sums may be grouped by their matching vectors. Distributivity of scalar multiplication over vector addition then gives \(\left(\sum_{i=1}^{p}a_i\mathbf{v}_i\right)+\left(\sum_{i=1}^{p}b_i\mathbf{v}_i\right)=\sum_{i=1}^{p}(a_i\mathbf{v}_i+b_i\mathbf{v}_i)\). Distributivity of scalar addition gives \(a_i\mathbf{v}_i+b_i\mathbf{v}_i=(a_i+b_i)\mathbf{v}_i\) for each \(i\), proving the first identity. For the second identity, distributivity of scalar multiplication over a vector sum gives \(t\left(\sum_{i=1}^{p}a_i\mathbf{v}_i\right)=\sum_{i=1}^{p}t(a_i\mathbf{v}_i)\). Compatibility of scalar multiplication gives \(t(a_i\mathbf{v}_i)=(ta_i)\mathbf{v}_i\), proving the second identity. \(\square\)

In particular, a zero coefficient contributes the zero vector, and a negative coefficient means scaling by the additive inverse of that scalar. The notation does not change when the vectors belong to a less familiar space; only the way the vector operations are carried out changes.

Calculating in Polynomial and Matrix Spaces

Worked Example: A Combination of Polynomials

In \(P_2(\mathbb{R})\), let \(p=1+2x-x^2\), \(q=2-x+3x^2\), and \(r=-1+4x+x^2\). Calculate \(2p-3q+r\).

First multiply each polynomial by its coefficient:

$$ \begin{aligned} 2p&=2+4x-2x^2,\\ -3q&=-6+3x-9x^2,\\ r&=-1+4x+x^2. \end{aligned} $$

Add the constant terms, the coefficients of \(x\), and the coefficients of \(x^2\), respectively. The constant coefficient is \(2-6-1=-5\); the coefficient of \(x\) is \(4+3+4=11\); the coefficient of \(x^2\) is \(-2-9+1=-10\). Therefore

$$ 2p-3q+r=-5+11x-10x^2. $$

Check: the scaled polynomials add to \((2-6-1)+(4+3+4)x+(-2-9+1)x^2=-5+11x-10x^2\), the result above.

For matrices, addition and scalar multiplication act on corresponding entries. Thus a matrix linear combination is calculated entry by entry, just as a polynomial combination is calculated coefficient by coefficient. The result remains in the same matrix space because the operations produce a matrix with the same number of rows and columns.

Worked Example: A Combination of Matrices

Let \(\mathbf{A}=\begin{bmatrix}1&2\\-1&3\end{bmatrix}\), \(\mathbf{B}=\begin{bmatrix}2&-1\\0&4\end{bmatrix}\), and \(\mathbf{C}=\begin{bmatrix}-1&1\\2&0\end{bmatrix}\). Calculate \(2\mathbf{A}-\mathbf{B}+3\mathbf{C}\).

Scale each matrix by its coefficient:

$$ 2\mathbf{A}=\begin{bmatrix}2&4\\-2&6\end{bmatrix},\qquad -\mathbf{B}=\begin{bmatrix}-2&1\\0&-4\end{bmatrix},\qquad 3\mathbf{C}=\begin{bmatrix}-3&3\\6&0\end{bmatrix}. $$

Now add corresponding entries. The first row is \((2-2-3,\;4+1+3)=(-3,8)\), and the second row is \((-2+0+6,\;6-4+0)=(4,2)\). Hence

$$ 2\mathbf{A}-\mathbf{B}+3\mathbf{C} =\begin{bmatrix}-3&8\\4&2\end{bmatrix}. $$

Check: evaluating each entry directly gives \(2(1)-2+3(-1)=-3\), \(2(2)-(-1)+3(1)=8\), \(2(-1)-0+3(2)=4\), and \(2(3)-4+3(0)=2\). These are exactly the four entries in the answer.

Coordinate Vectors as One Example

In \(\mathbb{R}^n\), vectors are columns, and addition and scalar multiplication are componentwise. Consequently, the \(i\)th component of a linear combination is the same linear combination of the \(i\)th components of the vectors. This is a useful computational rule, but it is an instance of the general definition, not a replacement for it.

Proposition: If \(\mathbf{v}_1,\dots,\mathbf{v}_p\in\mathbb{R}^n\), \(c_1,\dots,c_p\in\mathbb{R}\), and the \(i\)th component of \(\mathbf{v}_j\) is \(v_{ij}\), then the \(i\)th component of \(\sum_{j=1}^{p}c_j\mathbf{v}_j\) is \(\sum_{j=1}^{p}c_jv_{ij}\), for each \(i=1,\dots,n\).

Proof. For a single vector, scalar multiplication gives the \(i\)th component of \(c_j\mathbf{v}_j\) as \(c_jv_{ij}\), by the definition of scalar multiplication in \(\mathbb{R}^n\). Vector addition adds corresponding components. Adding the \(p\) scaled vectors therefore adds their \(i\)th components, giving \(\sum_{j=1}^{p}c_jv_{ij}\). This holds for every \(i\), so it determines every component of the resulting column vector. \(\square\)

Worked Example: A Combination in \(\mathbb{R}^4\)

Let \(\mathbf{u}=(1,-1,2,0)^{\top}\), \(\mathbf{v}=(2,4,0,-2)^{\top}\), and \(\mathbf{w}=(-1,1,1,3)^{\top}\). Calculate \(3\mathbf{u}+\tfrac12\mathbf{v}-2\mathbf{w}\).

Scale the columns separately:

$$ 3\mathbf{u}=\begin{bmatrix}3\\-3\\6\\0\end{bmatrix},\qquad \frac12\mathbf{v}=\begin{bmatrix}1\\2\\0\\-1\end{bmatrix},\qquad -2\mathbf{w}=\begin{bmatrix}2\\-2\\-2\\-6\end{bmatrix}. $$

Add the entries in order: the first is \(3+1+2=6\), the second is \(-3+2-2=-3\), the third is \(6+0-2=4\), and the fourth is \(0-1-6=-7\). Thus

$$ 3\mathbf{u}+\frac12\mathbf{v}-2\mathbf{w} =\begin{bmatrix}6\\-3\\4\\-7\end{bmatrix}. $$

Check: the component formula gives \((3(1)+\tfrac12(2)-2(-1),\;3(-1)+\tfrac12(4)-2(1),\;3(2)+\tfrac12(0)-2(1),\;3(0)+\tfrac12(-2)-2(3))=(6,-3,4,-7)\), matching the column vector found above.

Zero Coefficients and Zero Results

If every coefficient is zero, the resulting linear combination is the zero vector. The converse is not guaranteed: nonzero coefficients can cancel one another. This distinction matters whenever a calculation produces \(\mathbf{0}\); the result alone does not establish that the coefficients were all zero.

Proposition: In any vector space \(V\) over \(\mathbb{F}\), if \(c_1=\cdots=c_p=0\), then \(\sum_{i=1}^{p}c_i\mathbf{v}_i=\mathbf{0}\). However, a linear combination can equal \(\mathbf{0}\) even when some coefficient is nonzero.

Proof. If every \(c_i=0\), then each term \(c_i\mathbf{v}_i=\mathbf{0}\), by the zero-scalar rule for vector spaces. The sum of these zero vectors is \(\mathbf{0}\). To see why the reverse implication does not hold in general, take \(\mathbf{v}_1=(1,0)^{\top}\) and \(\mathbf{v}_2=(-1,0)^{\top}\) in \(\mathbb{R}^2\). Then \(1\mathbf{v}_1+1\mathbf{v}_2=(0,0)^{\top}\), although both coefficients equal \(1\), not \(0\). \(\square\)

Likewise, different written expressions can sometimes have the same value. The definition of a linear combination specifies how to evaluate an expression; by itself, it does not assert that the coefficients producing a vector are unique. Here the task is to calculate the value of a given expression and keep its coefficient-vector pairings correct.

Common Pitfall: Mishandling a Negative Coefficient

A common error is to treat subtraction of a vector as subtraction of each of its entries without preserving any negative entries already present. For example, consider \(2(1,3)^{\top}-(4,-1)^{\top}\). A tempting but incorrect calculation is \((2,6)-(4,1)=(-2,5)\). The second component of the subtracted vector was changed from \(-1\) to \(1\), which is not allowed.

The correct calculation first scales and then subtracts the original components:

$$ 2\begin{bmatrix}1\\3\end{bmatrix} -\begin{bmatrix}4\\-1\end{bmatrix} = \begin{bmatrix}2\\6\end{bmatrix} +\begin{bmatrix}-4\\1\end{bmatrix} = \begin{bmatrix}-2\\7\end{bmatrix}. $$

Check: the first component is \(2(1)-4=-2\), and the second is \(2(3)-(-1)=7\). The minus sign in front of the vector reverses both component signs, including the sign of its negative second component.

Before adding terms, it is useful to write each scaled vector, polynomial, or matrix explicitly. Then combine corresponding components or entries. This separates the scalar multiplication step from the addition step and makes sign errors easier to detect.

Check Your Understanding

For each question, keep the coefficient attached to its corresponding vector and verify your result by recomputing the components or entries.

  1. In \(P_2(\mathbb{R})\), calculate \(p-2q\) for \(p=3-x+2x^2\) and \(q=1+2x-x^2\).
  2. Calculate \(2\mathbf{A}+\mathbf{B}\) for \(\mathbf{A}=\begin{bmatrix}1&-2\\0&3\end{bmatrix}\) and \(\mathbf{B}=\begin{bmatrix}4&1\\-1&2\end{bmatrix}\).
  3. Find \(2\mathbf{u}-\tfrac12\mathbf{v}\) for \(\mathbf{u}=(1,0,-2)^{\top}\) and \(\mathbf{v}=(2,4,0)^{\top}\).
  4. State the coefficient of \(\mathbf{v}_2\) in \(a\mathbf{v}_1-b\mathbf{v}_2+c\mathbf{v}_3\).
  5. Give an example in \(\mathbb{R}^2\) of a linear combination equal to \(\mathbf{0}\) with at least one nonzero coefficient.

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