Tutorials › Linear Algebra › Linear Combinations as Weighted Sums

Vectors and Linear Combinations · Tutorial 117 of 1000

Linear Combinations as Weighted Sums

Recognize a linear combination as a sum of scalar multiples and identify the vectors, coefficients and result.

Beginner 9 min read

What You'll Learn

  • Define a linear combination of a specified list of real vectors.
  • Distinguish the vectors, scalar coefficients, individual terms and resulting vector.
  • Interpret zero, unit and negative coefficients.
  • Recognize that coefficients need not add to one.
  • Check a claimed linear combination by adding its scalar multiples.

Reading a Linear Combination

Suppose several vectors are available and each is assigned a scalar amount. Scaling each vector by its assigned amount and adding the resulting vectors produces a new vector. This is a linear combination. The phrase “weighted sum” gives a useful mental picture: the scalars are the weights, the vectors are what is being weighted, and the sum is the result. The picture is only an analogy, however. Coefficients may be negative or zero, and they do not have to add to one.

Throughout this tutorial, the scalars are real numbers and the vectors belong to \(\mathbb{R}^n\). Vectors are columns. We will use the vector addition and scalar multiplication rules for \(\mathbb{R}^n\): scaling a vector produces another vector in the same space, and vectors in that space can be added.

Definition: Given a specified ordered list of vectors \(\mathbf{v}_1,\dots,\mathbf{v}_p\) in \(\mathbb{R}^n\) and real scalars \(c_1,\dots,c_p\), the vector \(c_1\mathbf{v}_1+\cdots+c_p\mathbf{v}_p\) is a linear combination of the specified vectors. The vectors \(\mathbf{v}_1,\dots,\mathbf{v}_p\) are the vectors being combined; \(c_1,\dots,c_p\) are their respective coefficients; each \(c_i\mathbf{v}_i\) is a term; and the vector obtained after adding the terms is the resulting vector.

The order of the list makes the matching explicit: \(c_i\) is attached to the vector \(\mathbf{v}_i\). A list may include the same vector more than once, and each position still has its own coefficient. For example, in the list \((\mathbf{v}_1,\mathbf{v}_2,\mathbf{v}_3)\), a coefficient \(c_2\) multiplies the second vector, not whichever vector happens to have a particular value.

The definition describes an expression and its parts, not a special kind of vector. Once the scalar multiples have been added, the result is simply another vector in \(\mathbb{R}^n\). When reading an expression, it helps to mark four things: the specified vectors, the scalar attached to each one, the individual scaled terms, and the final sum.

What the Coefficients Do

A coefficient changes the contribution of its associated vector. A coefficient of \(1\) leaves the vector unchanged. A coefficient of \(0\) makes that term the zero vector, so it contributes nothing to the sum. A negative coefficient reverses direction as well as scaling magnitude: for example, \(-2\mathbf{v}\) is the opposite of \(2\mathbf{v}\). These statements follow from the ordinary rules for scaling and adding vectors.

Proposition: In a linear combination, a term with coefficient \(0\) contributes \(\mathbf{0}\), a term with coefficient \(1\) contributes its vector unchanged, and a term with coefficient \(-1\) contributes the opposite vector.

Proof. For any vector \(\mathbf{v}\), scalar multiplication gives \(0\mathbf{v}=\mathbf{0}\), \(1\mathbf{v}=\mathbf{v}\), and \((-1)\mathbf{v}=-\mathbf{v}\), where \(-\mathbf{v}\) denotes the additive inverse of \(\mathbf{v}\). Substituting any of these equalities for its term in a sum gives the stated contribution. \(\square\)

Coefficients are not required to be positive, and their sum is not required to be \(1\). A weighted average is a more restricted kind of weighted sum: it uses nonnegative weights whose total is \(1\). A linear combination has no such restriction. This distinction matters because a negative coefficient is perfectly valid in a linear combination.

Worked Example: Identifying Two Vectors and Their Coefficients

Consider \(3\mathbf{v}_1-2\mathbf{v}_2\), where \(\mathbf{v}_1=\begin{bmatrix}2\\-1\end{bmatrix}\) and \(\mathbf{v}_2=\begin{bmatrix}-1\\3\end{bmatrix}\). Identify the vectors, coefficients, terms and resulting vector.

The specified vectors are \(\mathbf{v}_1\) and \(\mathbf{v}_2\). Their coefficients are \(3\) and \(-2\), respectively. Thus the two terms are \(3\mathbf{v}_1\) and \((-2)\mathbf{v}_2\). Scale each vector:

$$ 3\mathbf{v}_1 =3\begin{bmatrix}2\\-1\end{bmatrix} =\begin{bmatrix}6\\-3\end{bmatrix}, \qquad (-2)\mathbf{v}_2 =(-2)\begin{bmatrix}-1\\3\end{bmatrix} =\begin{bmatrix}2\\-6\end{bmatrix}. $$

Add the two terms component by component:

$$ \begin{bmatrix}6\\-3\end{bmatrix} + \begin{bmatrix}2\\-6\end{bmatrix} = \begin{bmatrix}6+2\\-3+(-6)\end{bmatrix} = \begin{bmatrix}8\\-9\end{bmatrix}. $$

The resulting vector is \(\begin{bmatrix}8\\-9\end{bmatrix}\). Check: the two scaled terms add to \(\begin{bmatrix}8\\-9\end{bmatrix}\), since their first entries sum to \(8\) and their second entries sum to \(-9\). The negative coefficient on \(\mathbf{v}_2\) is part of the scalar multiplication; it does not mean that the vector is omitted.

Zero and Unit Coefficients

Some coefficient choices make the meaning of a combination especially direct. If all coefficients are zero, every term is \(\mathbf{0}\), so the result is \(\mathbf{0}\). If one coefficient is \(1\) and all the others are zero, the result is just the vector in the position with coefficient \(1\). These are valid combinations of the specified list, even when they are not the only possible choices of coefficients.

Theorem: For any specified list \(\mathbf{v}_1,\dots,\mathbf{v}_p\) in \(\mathbb{R}^n\), setting every coefficient equal to \(0\) gives the resulting vector \(\mathbf{0}\). For any position \(k\), setting \(c_k=1\) and every other coefficient equal to \(0\) gives the resulting vector \(\mathbf{v}_k\).

Proof. If every coefficient is zero, then every term \(c_i\mathbf{v}_i\) equals \(\mathbf{0}\). Adding these zero vectors gives \(\mathbf{0}\). Now fix a position \(k\), set \(c_k=1\), and set \(c_i=0\) for each \(i\ne k\). The \(k\)th term is \(1\mathbf{v}_k=\mathbf{v}_k\), while every other term is \(\mathbf{0}\). Adding \(\mathbf{v}_k\) to zero vectors leaves \(\mathbf{v}_k\). Both claims follow for any positive integer \(p\), including a list with just one vector. \(\square\)

Worked Example: A Zero Coefficient

Let \(\mathbf{u}_1=\begin{bmatrix}1\\2\\0\end{bmatrix}\), \(\mathbf{u}_2=\begin{bmatrix}0\\-1\\2\end{bmatrix}\), and \(\mathbf{u}_3=\begin{bmatrix}3\\1\\-1\end{bmatrix}\). Interpret the linear combination \(-\mathbf{u}_1+2\mathbf{u}_2+0\mathbf{u}_3\) and find its result.

The specified list has three vectors, with respective coefficients \(-1\), \(2\) and \(0\). The terms are \(-\mathbf{u}_1\), \(2\mathbf{u}_2\) and \(0\mathbf{u}_3\). Calculate each term:

$$ -\mathbf{u}_1 =\begin{bmatrix}-1\\-2\\0\end{bmatrix}, \qquad 2\mathbf{u}_2 =\begin{bmatrix}0\\-2\\4\end{bmatrix}, \qquad 0\mathbf{u}_3 =\begin{bmatrix}0\\0\\0\end{bmatrix}. $$

Add the first two terms, then add the zero term:

$$ \begin{bmatrix}-1\\-2\\0\end{bmatrix} + \begin{bmatrix}0\\-2\\4\end{bmatrix} + \begin{bmatrix}0\\0\\0\end{bmatrix} = \begin{bmatrix}-1+0+0\\-2+(-2)+0\\0+4+0\end{bmatrix} = \begin{bmatrix}-1\\-4\\4\end{bmatrix}. $$

The result is \(\begin{bmatrix}-1\\-4\\4\end{bmatrix}\). Check: the first two terms sum to \(\begin{bmatrix}-1\\-4\\4\end{bmatrix}\), and adding \(0\mathbf{u}_3=\begin{bmatrix}0\\0\\0\end{bmatrix}\) leaves that vector unchanged. The third vector is still part of the specified list; its zero coefficient simply gives it no contribution in this particular combination.

Negative Weights and the Resulting Vector

A negative coefficient does not make an expression cease to be a linear combination. Its effect is handled within the scalar multiple: first form the term, then add that term to the others. This order of interpretation helps prevent a common sign error. The sign of a coefficient belongs to its vector’s term, not to a different term later in the sum.

Worked Example: One Positive and One Negative Contribution

Let \(\mathbf{a}=\begin{bmatrix}2\\0\end{bmatrix}\) and \(\mathbf{b}=\begin{bmatrix}0\\4\end{bmatrix}\). Identify and evaluate \(\tfrac12\mathbf{a}-\tfrac12\mathbf{b}\).

The vectors are \(\mathbf{a}\) and \(\mathbf{b}\), and their coefficients are \(\tfrac12\) and \(-\tfrac12\). The corresponding terms are:

$$ \frac12\mathbf{a} =\frac12\begin{bmatrix}2\\0\end{bmatrix} =\begin{bmatrix}1\\0\end{bmatrix}, \qquad -\frac12\mathbf{b} =-\frac12\begin{bmatrix}0\\4\end{bmatrix} =\begin{bmatrix}0\\-2\end{bmatrix}. $$

Now add the terms:

$$ \begin{bmatrix}1\\0\end{bmatrix} + \begin{bmatrix}0\\-2\end{bmatrix} = \begin{bmatrix}1+0\\0+(-2)\end{bmatrix} = \begin{bmatrix}1\\-2\end{bmatrix}. $$

The resulting vector is \(\begin{bmatrix}1\\-2\end{bmatrix}\). Check: its first entry comes from \(\tfrac12\mathbf{a}=\begin{bmatrix}1\\0\end{bmatrix}\), and its second entry comes from \(-\tfrac12\mathbf{b}=\begin{bmatrix}0\\-2\end{bmatrix}\); adding those terms gives exactly \(\begin{bmatrix}1\\-2\end{bmatrix}\). The coefficients sum to zero, which is allowed: a linear combination does not require its coefficients to total \(1\).

Common Mistakes in Reading the Expression

Do not attach a coefficient to the wrong vector. In \(2\mathbf{v}_1-3\mathbf{v}_2\), the coefficient of \(\mathbf{v}_1\) is \(2\), and the coefficient of \(\mathbf{v}_2\) is \(-3\). Reversing them changes the expression.

Do not drop a negative sign before scaling. For example, if \(\mathbf{v}_1=\begin{bmatrix}1\\2\end{bmatrix}\) and \(\mathbf{v}_2=\begin{bmatrix}3\\1\end{bmatrix}\), then a wrong calculation of \(\mathbf{v}_1-2\mathbf{v}_2\) might use \(2\mathbf{v}_2\) instead of \(-2\mathbf{v}_2\), producing \(\begin{bmatrix}1\\2\end{bmatrix}+\begin{bmatrix}6\\2\end{bmatrix}=\begin{bmatrix}7\\4\end{bmatrix}\). The correction is to scale by the full coefficient: \(-2\mathbf{v}_2=\begin{bmatrix}-6\\-2\end{bmatrix}\). Therefore the correct sum is \(\begin{bmatrix}1\\2\end{bmatrix}+\begin{bmatrix}-6\\-2\end{bmatrix}=\begin{bmatrix}-5\\0\end{bmatrix}\).

Do not assume that “weighted sum” means “weighted average.” A linear combination allows any real coefficients. In the example \(\tfrac12\mathbf{a}-\tfrac12\mathbf{b}\), the second coefficient is negative and the two coefficients total \(0\), yet the expression is a valid linear combination.

When identifying a combination, keep the roles separate. The vectors are the listed inputs; the coefficients say how those inputs are scaled; the terms are the scaled vectors; and the result is their sum. This vocabulary applies whether the coefficients are positive, negative, zero, whole numbers or fractions.

Check Your Understanding

For each expression, name the specified vectors and coefficients before interpreting or evaluating it.

  1. In \(4\mathbf{p}-\mathbf{q}\), what is the coefficient of each vector?
  2. What does a coefficient of \(0\) do to its term? Explain using scalar multiplication.
  3. For \(-2\mathbf{r}+\tfrac12\mathbf{s}\), identify the two terms and state which coefficient is negative.
  4. Must the coefficients in a linear combination add to \(1\)? Explain.
  5. Let \(\mathbf{x}=\begin{bmatrix}1\\-1\end{bmatrix}\) and \(\mathbf{y}=\begin{bmatrix}2\\3\end{bmatrix}\). Find and check \(2\mathbf{x}-\mathbf{y}\).

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