Engineering/Mathematics/Vectors
Vector Form of Solution Sets
An infinite solution set can be written exactly with a finite amount of data: one fixed vector plus direction vectors combined with the free variables as scalars. Every entry of those vectors is read off the reduced row-echelon form of the augmented matrix.
- Core level
- Stream: linear-systems
- Reading time 16 min
- Ref KVS-ENG-MATH-0019
- Taxonomy
- Engineering / Mathematics
- Prerequisite
- Reduced row-echelon form; linear combinations
- Applies to
- Any consistent linear system
- Vectors required
- Key structure
- Produced by
- A three-step read of the RREF
Overview
Row reduction answers whether a system has solutions and how many degrees of freedom the solution set carries, but it stops short of describing the set itself. When the solution set is infinite, an explicit description looks impossible: there is no way to list infinitely many vectors. The vector form closes that gap. It exhibits the entire set as one fixed vector plus a linear combination of further vectors, with the free variables serving as the coefficients.
The pay-off is that an infinite object becomes finite data. A system of five equations in seven unknowns with rank four has an infinite solution set, yet four vectors of size seven — twenty-eight numbers — describe it completely and unambiguously, provided the convention for combining them is agreed. That is a compression from the uncountable to the tabular, and it is what makes solution sets storable, transmissible and comparable.
The construction is entirely mechanical. Every entry of every vector is either a , a , an entry of the final column of the reduced augmented matrix, or the negative of an entry in a non-pivot column. Nothing is chosen and nothing is guessed, which is why the procedure can be implemented in code once the reduction has been performed and consistency confirmed. In practical terms it completes the conversion of equation solving from a craft into an algorithm.
Structurally, the vector form separates the two independent contributions to a solution. The fixed vector is one particular solution; the vectors scaled by free variables span the null space of the coefficient matrix and describe every direction in which a solution may be perturbed without leaving the solution set. That separation is the geometric statement that a consistent solution set is a translate of a subspace, and it recurs verbatim in the pre-image of a linear transformation and in the general solution of a linear differential equation.
Definition
Vector Form of the Solution Set
VFSSLet be the augmented matrix of a consistent system of equations in unknowns, and let be its reduced row-echelon form with non-zero rows, pivot column indices and non-pivot variable column indices . Define vectors and of size by
- if , and if ;
- if , if with , and if .
The hypothesis of consistency is essential. If column is a pivot column the set as defined above is not the free-variable index set and the construction is meaningless — the solution set is empty.
Free and Dependent Variables
IDVAfter reduction, a variable whose column contains a leading one is dependent; there are of them, indexed by . A variable whose column contains no leading one is free; there are of them, indexed by . Free variables may be assigned arbitrarily, after which the dependent variables are determined.
Concepts
Why the free variables become the coefficients
Each non-zero row of the reduced augmented matrix reads , because the leading one in column is alone in its column. Rearranged, this expresses the dependent variable as a constant minus a linear expression in the free variables. Collecting the constants into and the coefficient of into produces exactly the stated vectors.
The sign reversal in is a direct consequence of moving the free-variable terms to the right-hand side. It is the single most frequent source of error in hand computation, and it is worth stating explicitly rather than absorbing into a memorised pattern.
The pattern of zeros and ones
In the rows indexed by , the vectors carry a rigid pattern: has a zero, has a one in position and zeros in all other free positions. That pattern is not cosmetic. It guarantees that setting genuinely produces a solution vector whose entry is , so the parametrisation is faithful.
It also has a structural consequence that is exploited later: no non-trivial combination of the can vanish, because in position such a combination equals its own -th coefficient. The vectors are therefore automatically linearly independent, which is why they form a basis of the null space rather than merely a spanning set.
Fixed vector plus null space directions
The vector is obtained by setting every free variable to zero, so it is one specific solution — a particular solution. The remaining vectors satisfy : they solve the associated homogeneous system. The vector form therefore says that the solution set is one point translated by the whole null space, .
Geometrically the solution set of a consistent system is never a subspace unless , because it does not contain the origin. It is an affine translate of a subspace, and the vector form makes the translation vector and the subspace explicit and separate.
Homogeneous systems collapse the fixed vector
If the system is homogeneous, the final column of the augmented matrix is zero and remains zero under every row operation, so for all and hence . The vector form degenerates to a pure linear combination of the — that is, to a span.
This is why homogeneous systems are treated separately and why the null space is a subspace while a general solution set is not. In practice one may reduce the coefficient matrix alone for a homogeneous system, holding the column of zeros in mind rather than carrying it through the arithmetic.
Unique solutions are the degenerate case
When there are no free variables, the list of is empty and the vector form reduces to . The theorem still applies, but it is heavy machinery for a trivial conclusion; in that case the constants column of the reduced augmented matrix already is the answer.
The value of the construction lies entirely in the under-determined case , which is the normal situation in redundant structures, over-parametrised models and any physically indeterminate system.
The description is canonical, the parametrisation is not
Because the reduced row-echelon form of a matrix is unique, the vectors and produced by this procedure are uniquely determined by the original augmented matrix. Two engineers following the recipe on the same system obtain identical vectors, which makes the output suitable as a canonical record.
What is not canonical is the parametrisation of the set as a mathematical object: the same solution set can be described by choosing a different particular solution or a different basis for the null space. When comparing two descriptions, compare the sets they generate, not the vectors themselves.
Three-step construction of the vector form
Equations
Vector form of the solution set
EQ-VFSS-01Every solution is obtained exactly once by a choice of the free variables. The description uses vectors of size .
Entries of the fixed vector
EQ-VFSS-02The particular solution obtained by setting every free variable to zero. Its dependent entries are the constants column of the reduced augmented matrix.
Entries of the direction vectors
EQ-VFSS-03The negation in the third case comes from transposing the free-variable terms across the equals sign. These vectors span the null space of .
Pivot row solved for its dependent variable
EQ-VFSS-04Row of the reduced augmented matrix, rearranged. No back-substitution is required because the leading one is alone in its column.
Affine structure of the solution set
EQ-VFSS-05A consistent solution set is a translate of the null space by any one particular solution.
Degrees of freedom
EQ-VFSS-06The number of direction vectors equals the nullity. A unique solution is the case where that count is zero.
Homogeneous specialisation
EQ-VFSS-07For a homogeneous system the fixed vector vanishes and the solution set is exactly a span, hence a subspace.
Variable Definitions
| Symbol | Name | Meaning | Domain / type |
|---|---|---|---|
| Coefficient matrix | The matrix of the system | m x n matrix | |
| Reduced augmented matrix | Reduced row-echelon form of | m x (n+1) matrix | |
| Fixed vector | The particular solution obtained by zeroing all free variables | vector in C^n | |
| Direction vector | The vector scaled by free variable ; an element of the null space | vector in C^n | |
| Rank | Number of non-zero rows of the reduced form | 0 to min(m,n) | |
| Pivot index set | Column indices carrying a leading one; the dependent variables | subset of 1..n | |
| Free index set | Variable column indices with no leading one | subset of 1..n | |
| Free variable | An unconstrained parameter serving as a coefficient | complex scalar | |
| Solution set | The set of all vectors satisfying the system | subset of C^n |
Worked Numerical Example
Problem statement
A three-loop pipe network is described by three flow-balance equations in four branch flows. The system is redundant. Produce a complete description of every admissible flow state in vector form, and use it to generate two specific states.
State the system
The balance equations are , and . Assemble the augmented matrix.
Row-reduce and check consistency
Gauss-Jordan elimination gives the reduced form below. Column carries no leading one, so the system is consistent. There are non-zero rows, and , so and are free and .
Step 1 — lay out the template
Three vectors of size four are required: the fixed vector and one direction vector for each free variable, scaled by and respectively.
Step 2 — fill rows 2 and 4
Rows and are the free rows. Put in ; put in at row and at row ; put in at row and at row . Rows and remain to be determined.
Step 3 — fill the dependent rows
Row of the reduced matrix reads , so : place in , in and in . Row reads , so : place in , in and in .
Generate a specific solution
Choosing and gives a concrete flow state without any further elimination.
Verify against the original equations
Substituting into the untouched original system gives , and . All three hold, so the reduction and the vector form are both confirmed.
Recover the fixed vector as a solution
Setting both free variables to zero gives , which also satisfies the original equations: , and . The fixed vector is genuinely a particular solution, not a bookkeeping artefact.
Every admissible flow state is plus any combination of the two directions and . The network is indeterminate to degree two: two independent circulating flow patterns satisfy the balances with no net supply, and twelve numbers describe an infinite family of admissible states exactly.
Applications & Industry Use
Self-stress states in indeterminate structures
For a statically indeterminate frame, the vector form separates one equilibrium force distribution from the space of self-stress states that carry no external load. Designers use the direction vectors to explore prestress options while remaining in equilibrium by construction.
Admissible flow distributions
Continuity equations in a looped pipe or duct network are under-determined. The fixed vector gives one feasible distribution and the direction vectors give the independent loop circulations, which is exactly the parametrisation that a Hardy Cross or gradient-based hydraulic solver refines.
Branch currents with redundant loops
Kirchhoff current equations for a network with more branches than independent nodes yield an infinite solution family before the constitutive laws are imposed. The vector form provides the parametrisation over which the resistive or reactive constraints are subsequently minimised.
Null-space motion of a redundant manipulator
For a manipulator with more joints than task dimensions, the joint velocities achieving a commanded end-effector twist form exactly this affine set. The fixed vector is the minimum-effort command and the direction vectors are self-motions used for obstacle and joint-limit avoidance.
Independent reactions in a network
Stoichiometric balances usually admit a family of solutions. The direction vectors are the independent reaction extents, and their count is the number of reactions that must be measured or specified before the composition is pinned down.
Non-identifiable regression parameters
When a design matrix is rank-deficient, the set of parameter vectors fitting the data exactly is an affine family. Writing it in vector form shows which parameter combinations are estimable and which directions the data cannot distinguish, guiding reparametrisation or regularisation.
Design Considerations
Confirm consistency before constructing anything
The construction presumes a consistent system. If column is a pivot column, the index set silently acquires the value and a mechanical application of the recipe produces a plausible-looking but entirely spurious answer. Test consistency first, as a separate gate.
Choose the parametrisation to suit the downstream use
The free variables are a legitimate but arbitrary set of parameters. If a physical quantity such as a particular member force or loop flow is the natural control variable, reorder the columns before reduction so that variable becomes free. The solution set is unchanged; the description becomes far more interpretable.
The fixed vector is not canonical, only convenient
Setting the free variables to zero is one choice among infinitely many particular solutions. For physical reporting, a minimum-norm particular solution is often preferable because it does not privilege an arbitrary variable ordering. Both describe the same set.
Store the vectors, not a sampled solution list
It is tempting to record a handful of representative solutions. Do not: the vector form is smaller, exact and complete, whereas any finite sample is none of those. Interfaces exchanging solution sets should exchange and the with the variable ordering that defines them.
In floating point the rank decision drives everything
The number of direction vectors is , and is a discontinuous function of the matrix entries. A near-dependence misclassified as a dependence adds a spurious direction vector; misclassified the other way, a genuine degree of freedom disappears. Report the tolerance used alongside the answer.
Guard against apparent over-determination
Zero rows in the reduced form mean redundant equations, not error. A model that produces many zero rows may be duplicating physics — for example applying both node and loop laws where only one set is independent — which is worth investigating even though the mathematics is untroubled.
Standards & Codes
Notation, interchange and numerical standards that govern how this material is written down, stored and computed in production systems.
| Reference | Title | Relevance to this topic |
|---|---|---|
ISO 80000-2 | Quantities and units — Part 2: Mathematics | Fixes the set-builder and vector notation used to state the solution set, including the conditional bar and the entry notation . |
LAPACK / BLAS reference | Linear Algebra PACKage reference implementation | Rank-deficient systems are handled by xGELSD and xGELSY, which return a minimum-norm particular solution rather than the pivot-based fixed vector; the null-space directions must be recovered separately from the SVD or from xGEQP3. |
IEEE 754-2019 | IEEE Standard for Floating-Point Arithmetic | Determines the rounding behaviour of the reduction that produces every entry of the fixed and direction vectors, and hence the reliability of the rank on which their count depends. |
ISO/IEC 40314 | Mathematical Markup Language (MathML) Version 3.0 | Encodes the parametrised solution set so that the vectors and their coefficients remain semantically distinguishable to search and assistive technology. |
W3C WCAG 2.1 AA | Web Content Accessibility Guidelines | Requires the column vectors to be exposed as structured mathematics rather than images, keeping multi-row displays navigable by screen reader and legible under magnification. |
Material Selection
For a mathematical topic, "material" is the numeric representation: the scalar field, storage format and precision the computation is built from.
| Representation | Select when | Trade-off |
|---|---|---|
| Exact rational arithmetic | Small integer systems where the direction vectors are to be reported symbolically or compared for equality. | Entries are exact and the rank is unambiguous, but coefficients can grow large during reduction and performance degrades sharply with size. |
| IEEE 754 binary64 | Engineering systems assembled from measured coefficients. | Fast and adequate for generating solutions, but the count of direction vectors becomes a tolerance decision and near-zero pivots must be handled explicitly. |
| Singular value decomposition instead of RREF | Numerically sensitive rank determination, or when an orthonormal null-space basis is wanted. | Far more robust and gives orthonormal directions, at roughly an order of magnitude more arithmetic and with directions that no longer carry the 0/1 pattern. |
| Sparse storage with fill-reducing ordering | Large network or finite element systems where the coefficient matrix is mostly zero. | Preserves tractability during factorisation, but the direction vectors themselves are typically dense, so the output can be much larger than the input. |
| Fixed-point arithmetic | Embedded solvers regenerating solutions on-line from a precomputed vector form. | Cheap and deterministic for evaluating the combination, provided the vectors were produced off-line in higher precision; unsuitable for the reduction itself. |
| Finite field arithmetic | Coding theory and cryptanalysis, where solution sets over a finite field are enumerated exactly. | Exact, fast and gives a genuinely finite solution set of size , but the structure over a finite field need not mirror the structure over the rationals. |
Manufacturing Notes
Implementation notes — how the result is actually produced by hand, by algorithm and by library, including cost and numerical behaviour.
Cost of the construction
Once the reduction is done the construction is free: each of the vectors of size is filled by copying or negating entries already present in , with no arithmetic beyond sign changes. Total cost is data movement. The expense is entirely in reaching the reduced form.
Hand procedure and the discipline of order
Complete Step 2 for every vector before beginning Step 3, and within Step 3 handle one dependent variable at a time, writing all of its entries across all vectors before moving on. Working vector by vector instead of variable by variable is the reliable route to a transposed sign.
Library behaviour
SymPy's linsolve returns a parametrised solution equivalent to this form, and Matrix.nullspace() returns the direction vectors with the same 0/1 pattern. NumPy has no direct equivalent: numpy.linalg.lstsq gives a minimum-norm particular solution and scipy.linalg.null_space gives an orthonormal null-space basis from the SVD. The two conventions describe the same set with different vectors.
Verification technique
Two checks are worth running. First, confirm against the original matrix. Second, confirm for each direction vector. Together these certify the whole set, because any member is plus a combination of the . Checking a few random members instead is weaker and slower.
Generating solutions on demand
Stored as a matrix whose columns are the , the family becomes for a free parameter vector . Generating a solution is then one gemv call, which is the right structure for embedded or real-time use where a solution must be produced each control cycle.
Failure Modes & Common Mistakes
| Failure mode / mistake | Impact | Root cause | Prevention & detection |
|---|---|---|---|
| Applying the construction to an inconsistent system | high | Skipping the consistency gate, so a leading one in the final column is never noticed. | Test whether column is a pivot column immediately after reduction and before any vectors are written. |
| Sign error on the direction vectors | high | Copying into instead of . | Always write the pivot row as an explicit equation solved for its dependent variable before transcribing, and verify with . |
| Counting the augmented column as a free variable | high | Including index in , producing one direction vector too many. | Restrict to indices through ; the constants column is never a variable. |
| Using the echelon form rather than the reduced form | medium | Stopping after forward elimination, so entries above the leading ones are non-zero. | Complete the back-clearing; the construction depends on each leading one being alone in its column so that no back-substitution is needed. |
| Wrong number of direction vectors | medium | Counting zero rows instead of non-pivot variable columns, which agree only when . | Compute from the number of unknowns and the rank, never from the number of zero rows. |
| Losing the variable ordering | medium | Reporting the vectors without recording which entry corresponds to which physical unknown, especially after a column permutation. | Transmit the variable name ordering alongside the vectors as part of the same record. |
| Treating the fixed vector as unique | low | Assuming that a differently obtained particular solution indicates an error. | Compare descriptions by checking that the difference of the two fixed vectors lies in the span of the direction vectors. |
| Spurious degrees of freedom in floating point | high | A tiny but non-zero pivot rejected by the tolerance, inflating . | Use a scaled tolerance relative to the matrix norm, or determine rank from singular values and report the numerical rank explicitly. |
FAQs
Why does the fixed vector have zeros in the free positions?
Because it is defined as the solution obtained by setting every free variable to zero. That choice makes the 0/1 pattern in the direction vectors work out cleanly, so that assigning a value to a free variable produces a solution vector with exactly that value in the corresponding entry.
Are the direction vectors unique?
As produced by this construction, yes: they are determined by the reduced row-echelon form, which is itself unique. As a description of the null space, no — any basis of would serve, and an SVD-based routine will return a different, orthonormal one describing the same set.
What happens if the system has a unique solution?
Then , there are no free variables, no direction vectors are constructed and the solution set is the single vector . The theorem remains true but adds nothing, since the constants column of the reduced augmented matrix is already the answer.
Why is the solution set not a subspace?
Because it does not contain the zero vector unless , and it is not closed under addition: the sum of two solutions of satisfies . It is an affine translate of the null space, which is a subspace.
Can I use this to check whether a proposed vector is a solution?
You can, but substitution into the original system is simpler and stronger. To use the vector form, subtract and test whether the remainder lies in the span of the direction vectors, which is itself a linear system. Direct substitution costs one matrix-vector product.
How does this relate to the general solution of a linear differential equation?
It is the same structure: one particular solution plus the general solution of the associated homogeneous problem. The vectors here play the role of the homogeneous basis functions, and the free variables play the role of the arbitrary constants.
Should I reduce the coefficient matrix or the augmented matrix for a homogeneous system?
Either works. The final column stays zero under every row operation, so carrying it is pure overhead; reduce the coefficient matrix alone and remember that . Just do not then mistake column for the constants column.
References
- Beezer, R. A. A First Course in Linear Algebra, Version 0.70. University of Puget Sound, 2006. Section LC, Subsection VFSS. Licensed under the GNU Free Documentation License v1.2.
- ISO 80000-2:2019, Quantities and units — Part 2: Mathematics. International Organization for Standardization.
- Golub, G. H. and Van Loan, C. F. Matrix Computations, 4th edition. Johns Hopkins University Press, 2013.
- Anderson, E. et al. LAPACK Users' Guide, 3rd edition. Society for Industrial and Applied Mathematics, 1999.
- IEEE 754-2019, IEEE Standard for Floating-Point Arithmetic. Institute of Electrical and Electronics Engineers.
AI Suggested Questions
- Take a 4x7 augmented matrix, row-reduce it and produce the full vector form of the solution set with every step shown.
- Show how permuting the columns before reduction changes which variables are free without changing the solution set.
- Compare the pivot-based fixed vector with the minimum-norm particular solution returned by a least-squares routine on the same system.
- Why are the direction vectors automatically linearly independent, and where exactly does the 0/1 pattern enter that argument?
- Given two different vector-form descriptions of the same solution set, how do I verify computationally that they agree?
- How should a numerical rank tolerance be chosen so that the count of direction vectors is trustworthy?
Related Calculators
Row-reduce an augmented matrix and emit the fixed vector and direction vectors with the free-variable labelling.
Null Space Basis CalculatorCompute a basis for the null space of a matrix using the pivot pattern, with an optional orthonormal alternative.
Linear System SolverSolve , report consistency and rank, and present the solution set in vector form.
