Loading…

Linear Combination Solver

Math Linear Algebra • Vector Spaces and Linear Independence

View all topics

Find coefficients \(c_1,\dots,c_k\) such that \[ v = \sum_{i=1}^{k} c_i u_i. \] Put \(u_i\) as columns of \(U=[u_1\ \cdots\ u_k]\). Then solve \(Uc=v\). This tool checks consistency via ranks, returns one solution (or a minimum-norm solution when multiple exist), and can optionally show a least-squares approximation when there is no exact solution.

Inputs accept -3.5, 2e-4, fractions like 7/3, and constants pi, e.

Vectors \(u_1,\dots,u_k\)
U is 2×2
We solve \(Uc=v\). Columns are \(u_i\) (internally).
Target vector \(v\)
Enter the vector you want to express as a linear combination.
Results
Exact solution?
rank(U)
rank([U|v])
Nullity (k − rank)
Coefficients \(c\)
If solutions are infinite, this returns one solution (or the minimum-norm solution if selected).
Check
Shows \(Uc\), residual \(Uc-v\), and \(\|Uc-v\|\).
Ready
RREF panels
Exact solvability uses the rank test: \(Uc=v\) is solvable iff \(\mathrm{rank}(U)=\mathrm{rank}([U|v])\).
RREF(U)
RREF([U | v])
Enter vectors and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.