Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Linear Combinations of Vectors


Symbolic visualization of α·A + β·B = C, in three phases: scale, scale, add.

Vector length (shared by u and v)?A linear combination is α·A + β·B, where α and β are scalars. The two operands must share the same shape so that the addition is defined; the result has that same shape. Linear combinations are built from two operations already covered: scalar multiplication (scale each operand) and addition (add the scaled operands). The same idea applies to vectors and to matrices — only the shape of the operands differs.
u, vlength4
α·
u1×4
u1,1
u1,2
u1,3
u1,4
+β·
v1×4
v1,1
v1,2
v1,3
v1,4
=
w1×4
?
?
?
?
Step 1 / 14

Step explanations

1Linear combination α·u + β·v
u and v both have length 4. The linear combination α·u + β·v is built in three phases: scale u by α, scale v by β, then add the two scaled vectors. The result w has the same length.







Key Terms

Linear combination — an expression αu+βv\alpha u + \beta v that scales each vector by a scalar and adds the results. More generally, c1v1+c2v2++cnvnc_1 v_1 + c_2 v_2 + \cdots + c_n v_n.

Scalar coefficient — the numbers α,β\alpha, \beta (or cic_i) that multiply each vector in the combination.

Same-length requirement — all vectors in a linear combination must have the same number of components so the additions are defined.

Result length — the linear combination has the same length as the operands.

Span — the set of all linear combinations of a fixed collection of vectors; geometrically, a line, plane, or higher-dimensional subspace through the origin.

Linear independence — a property of a collection: no vector in it can be written as a linear combination of the others.

Vector space — the set of all vectors of a given length forms a vector space under vector addition and scalar multiplication; linear combinations are its native operation.
Learn More

Getting Started with the Visualizer

Set the shared length of uu and vv, then watch αu+βv=w\alpha u + \beta v = w build in three phases.

• Use the Dimensions stepper to set the length of uu and vv (1 to 5 components). ww inherits the length automatically
• Hover the ? icon for a reminder that linear combinations are built from scalar multiplication plus vector addition
• Press play or step manually through the scene player
• The animation walks three phases in order: scale uu by α\alpha, scale vv by β\beta, then add the scaled vectors into ww
• The scalars α\alpha and β\beta are shown symbolically — the visualizer focuses on structure, not specific numeric values
Learn More

The Three Phases

The visualizer breaks the operation into three clearly separated phases.

Phase 1 — scale $u$ by $\alpha$: every component of uu is multiplied by α\alpha in place, one component per scene; vv stays untouched
Phase 2 — scale $v$ by $\beta$: every component of vv is multiplied by β\beta in place, one component per scene; uu is already fully scaled
Phase 3 — add into $w$: each component of ww is filled with αui+βvi\alpha u_i + \beta v_i, with two curved arrows flowing from uu and vv into ww

This phase order makes the decomposition of a linear combination into scalar multiplication and vector addition explicit. Both operations are visible on the screen at the same time when phase 3 begins.
Learn More

Reading the Scene Player

Each scene combines highlights, arrows, and a caption.

• In phase 1, the active component of uu is highlighted primary; the rest of the canvas stays neutral
• In phase 2, the active component of vv is highlighted secondary
• In phase 3, the active components of uu and vv are highlighted primary and secondary, and the destination component of ww is accent; arrows flow from both sources into ww
• Filled components show their symbolic content — αui\alpha u_i, βvi\beta v_i, or αui+βvi\alpha u_i + \beta v_i — at a font size that scales with the vector length
• The step log on the right keeps a record of every completed component across all phases
Learn More

Choosing Vector Length

The dimension stepper controls the length shared by all three vectors.

• Shorter vectors (length 22 or 33) make the per-component flow easy to follow in each phase and correspond to vectors in the plane and in 3D space
• Longer vectors (length 44 or 55) demonstrate that the same rule scales to higher dimensions; total scenes equal 3n3n plus the intro and outro
• Component content shrinks automatically as the vector grows so αui+βvi\alpha u_i + \beta v_i stays readable at the largest length
• Both row and column orientations follow identical rules — linear combinations require only matching length between operands
Learn More

What a Linear Combination Is

A linear combination of two vectors uu and vv of the same length is

w=αu+βv,wi=αui+βviw = \alpha u + \beta v, \quad w_i = \alpha \cdot u_i + \beta \cdot v_i


More generally, a linear combination of nn vectors is

w=c1v1+c2v2++cnvnw = c_1 v_1 + c_2 v_2 + \cdots + c_n v_n


All vectors must share the same length, and the result inherits that length. The operation is built from two simpler ones: scale each vector by its coefficient, then add the scaled vectors component by component.

Geometrically, scaling stretches or reverses a vector along its direction, and addition follows the parallelogram rule — a linear combination is just both operations together. For comprehensive theory, see vector operations.
Learn More

Key Properties

Linear combinations inherit their properties from scalar multiplication and vector addition.

Closure: a linear combination of vectors in Rn\mathbb{R}^n is again in Rn\mathbb{R}^n
Commutativity: αu+βv=βv+αu\alpha u + \beta v = \beta v + \alpha u
Associativity: combining linear combinations gives another linear combination
Zero coefficient: if α=0\alpha = 0, the vector uu drops out entirely
Scaling a linear combination: k(αu+βv)=(kα)u+(kβ)vk(\alpha u + \beta v) = (k\alpha) u + (k\beta) v
Distributivity: α(u+v)=αu+αv\alpha(u + v) = \alpha u + \alpha v

The structural fact behind all of this is that Rn\mathbb{R}^n is a vector space, and linear combinations are exactly the operation that vector spaces are designed to support.
Learn More

Why It Matters

Linear combinations are the foundation on which most of linear algebra is built.

Span and basis: the span of a set of vectors is the set of all their linear combinations; a basis is a linearly independent set whose span is the whole space
Linear independence: testing whether c1v1++cnvn=0c_1 v_1 + \cdots + c_n v_n = 0 forces all ci=0c_i = 0
Solving linear systems: a system Ax=bAx = b asks whether bb is a linear combination of the columns of AA
Subspaces: a subspace is a set closed under linear combinations — lines and planes through the origin are the simplest examples
Coordinates: writing a vector as a linear combination of basis vectors gives its coordinates in that basis
Physics, optimization, machine learning: superposition of forces, gradient updates, and linear regression all reduce to linear combinations
Learn More

Worked Example

Take uu, vv as vectors in R3\mathbb{R}^3 and α=2\alpha = 2, β=1\beta = -1:

u=(130),v=(521)u = \begin{pmatrix} 1 \\ 3 \\ 0 \end{pmatrix}, \quad v = \begin{pmatrix} 5 \\ 2 \\ 1 \end{pmatrix}


Scale uu by 2:

2u=(260)2u = \begin{pmatrix} 2 \\ 6 \\ 0 \end{pmatrix}


Scale vv by 1-1:

v=(521)-v = \begin{pmatrix} -5 \\ -2 \\ -1 \end{pmatrix}


Add:

2uv=(341)2u - v = \begin{pmatrix} -3 \\ 4 \\ -1 \end{pmatrix}


Set the visualizer to length 33 and step through to see the three phases animated symbolically.
Learn More

Common Mistakes

A few mistakes recur.

Mixing lengths — every vector in the combination must have the same length; no padding with zeros
Distributing scalars unevenlyα(u+v)αu+v\alpha(u + v) \neq \alpha u + v; the scalar applies to every vector it multiplies
Confusing linear combination with dot product — a linear combination returns a vector; the dot product returns a scalar
Treating a single scalar multiple as a linear combination of one vector — technically valid but trivial; the interesting case has at least two vectors
Forgetting that the zero vector is a trivial linear combination — choosing all coefficients zero produces the zero vector regardless of the operands, which is exactly the test for linear independence
Learn More

Related Concepts

Vector addition — the additive piece of any linear combination.

Scalar multiplication — the scaling piece of any linear combination.

Span — the set of all linear combinations of a fixed collection; a line, plane, or higher-dimensional subspace through the origin.

Linear independence — the property that no vector in a set is a linear combination of the others.

Basis — a linearly independent set whose linear combinations produce every vector in the space.

Subspace — a set closed under linear combinations.

Vector space — the abstract setting in which linear combinations live.

Affine combination — a linear combination whose coefficients sum to 1; produces lines and planes that need not pass through the origin.
Learn More