Linear Combination Calculator
Multiply two vectors by scalars and add them component by component.
About linear combinations
Examples
Each row applies scalar multiplication before vector addition.
| Expression | Result | Interpretation |
|---|---|---|
| 2(1, 2, 3) - (4, 5, 6) | (-2, -1, 0) | Subtract the second vector from twice the first. |
| 3(2, -1) + 0.5(4, 6) | (8, 0) | Both component sums are evaluated separately. |
| -2(1, 0) + 4(0, 1) | (-2, 4) | Standard basis vectors set each coordinate. |
How to use the calculator
- Enter the multiplier for the first vector.
- Enter the first vector with components separated by commas.
- Enter the second scalar and an equally sized second vector.
- Select Calculate combination to add the scaled components.
Frequently asked questions
What is a scalar?
A scalar is an ordinary number that multiplies every component of a vector. It changes the vector's magnitude and may reverse its direction.
Must the vectors have the same dimension?
Yes, vector addition pairs corresponding components. Vectors with different component counts do not have a standard component-wise sum.
Can coefficients be negative or decimal?
Yes, any finite real number can be used as a scalar. Negative values reverse direction, while decimals scale proportionally.
What does a zero coefficient do?
Multiplying a vector by zero produces the zero vector. That vector therefore contributes nothing to the final combination.
How does this relate to span?
The span is the complete set of vectors obtainable from all choices of coefficients. Each result from this calculator is one member of the span of the two inputs.