Linear Combination Calculator

Calculate the linear combination of vectors with scalar coefficients in 2D or 3D space.

Enter Scalars & Vectors

Vector 1: c₁ · v₁

Vector 2: c₂ · v₂

Vector 3: c₃ · v₃ (optional)

Result

Resulting Vector
--
linear combination
Result x-component --
Result y-component --
Magnitude --

Step-by-Step Solution

result = c1*v1 + c2*v2 + c3*v3

What Is a Linear Combination?

A linear combination is an expression formed by multiplying each vector in a set by a corresponding scalar coefficient and then adding the results together. If you have vectors v₁, v₂, ..., vₙ and scalars c₁, c₂, ..., cₙ, the linear combination is:

c₁v₁ + c₂v₂ + ... + cₙvₙ

Linear combinations are one of the most fundamental operations in linear algebra and appear throughout mathematics, physics, engineering, and computer science.

Key Concepts

Scalar Multiplication

Each component of the vector is multiplied by the scalar.

c * (x, y) = (cx, cy)

Vector Addition

Add corresponding components of vectors together.

(a, b) + (c, d) = (a+c, b+d)

Span

The set of all possible linear combinations of a set of vectors.

Span{v1, v2} = {c1*v1 + c2*v2}

How to Calculate a Linear Combination

  1. Multiply each vector by its corresponding scalar coefficient.
  2. Add the resulting scaled vectors component by component.
  3. The result is a new vector -- the linear combination.

Example

Given v₁ = (3, 1) and v₂ = (1, 4), calculate 2v₁ + (-1)v₂:

  • 2 * (3, 1) = (6, 2)
  • (-1) * (1, 4) = (-1, -4)
  • (6, 2) + (-1, -4) = (5, -2)

Applications of Linear Combinations

  • Computer Graphics: Transformations, interpolations, and blending of shapes.
  • Machine Learning: Weighted sums of features and neural network layers.
  • Physics: Superposition of forces, wave combinations, and quantum states.
  • Economics: Portfolio optimization and resource allocation models.
  • Signal Processing: Combining basis signals to represent complex waveforms.