Linear Systems Solvers
Choose a solver below
Solving Systems
Decompositions
Vector Spaces
Need Help?
Check the educational content below each solver for detailed explanations.
View all tutorials โRow Space Calculator: Find Basis for Row Space of a Matrix
Find the row space of a matrix A: all linear combinations of its row vectors. The row space is a subspace whose dimension equals the rank of A, and a basis comes from the non-zero rows of RREF.
Calculator
Enter your matrix below and click "Calculate" to see the step-by-step solution.
Enter a matrix A to find its row space (all linear combinations of rows).
The row space dimension equals the rank of A.
Learn About Row_Space
Understanding the concepts behind the calculations.
๐ Quick Navigation
What is Row Space?
The row space of a matrix A is the set of all possible linear combinations of its row vectors. It is a subspace of โโฟ (where n is the number of columns).
Where rโ, rโ, ..., rโ are the row vectors of the mรn matrix A.
๐ก Intuition: Think of row space as "all vectors you can create by combining the rows" โ just like how you combine ingredients to make different recipes.
Key Properties of Row Space
๐ฏ Core Properties
- Subspace of โโฟ โ Lives in the column space of Aแต
- Dimension = rank(A) โ Same as column space dimension
- Spanning set โ The original rows span the row space
- Basis from RREF โ Non-zero rows of RREF form a basis
- Row operations preserve it โ Row space doesn't change during elimination
โก Quick Facts
- Located in โโฟ (n = # of columns)
- dim(Row(A)) = rank(A)
- Row(A) โ Null(A) (orthogonal complements)
- โโฟ = Row(A) โ Null(A)
- Row operations do not change the row space
๐ Remember: The row space is the same for any matrix row-equivalent to A (including RREF). This is why we can use RREF to find a basis!
How to Find a Basis for Row Space
The Standard Method (Using RREF)
- Compute RREF โ Find the Reduced Row Echelon Form of A
- Identify non-zero rows โ Take all rows that are not all zeros
- These form a basis โ Non-zero RREF rows are linearly independent and span the row space
Why this works: Row operations preserve the row space, and non-zero RREF rows are guaranteed to be linearly independent.
Alternative Methods
- QR Decomposition: Qแต gives orthonormal basis (more stable)
- SVD: Vแต gives orthonormal basis (most stable)
- Original rows: But they may be linearly dependent
Step-by-Step Examples
Example 1: Full Row Rank (Rank = 3)
Matrix A (3ร3, rank 3):
Step 1: Compute RREF
Step 2: Identify non-zero rows
All three rows are non-zero.
Step 3: Basis for Row Space
Conclusion: The row space is all of โยณ. The rows are linearly independent (full row rank).
Example 2: Rank-Deficient Matrix (Rank = 1)
Matrix B (3ร3, rank 1):
Step 1: Compute RREF
Step 2: Identify non-zero rows
Only row 1 is non-zero.
Step 3: Basis for Row Space
Conclusion: The row space is a 1-dimensional line through the origin in โยณ. All rows are multiples of (1,2,3).
Example 3: 2ร3 Matrix (Rank 2)
Matrix C (2ร3, rank 2):
Step 1: Compute RREF
Step 2: Identify non-zero rows
Both rows are non-zero.
Step 3: Basis for Row Space
Conclusion: The row space is a 2-dimensional plane in โยณ. Despite having only 2 rows, it lives in 3-dimensional space.
Row Space vs Column Space
| Property | Row Space | Column Space |
|---|---|---|
| Definition | Span of row vectors | Span of column vectors |
| Located in | โโฟ (n = # of columns) | โแต (m = # of rows) |
| Dimension | rank(A) | rank(A) |
| Basis from | Non-zero rows of RREF | Pivot columns of original A |
| Orthogonal complement | Null(A) | Null(Aแต) |
โจ Key Insight: Although row space and column space live in different spaces (โโฟ vs โแต), they have the same dimension โ the rank of A!
The Fundamental Theorem of Linear Algebra
For an mรn matrix A with rank r, the four fundamental subspaces satisfy:
In โโฟ (Domain)
- Row(A) โ dimension r
- Null(A) โ dimension n-r
- Row(A) โ Null(A) (orthogonal)
- โโฟ = Row(A) โ Null(A)
In โแต (Codomain)
- Col(A) โ dimension r
- Null(Aแต) โ dimension m-r
- Col(A) โ Null(Aแต) (orthogonal)
- โแต = Col(A) โ Null(Aแต)
๐ก Why this matters: Every vector in โโฟ can be uniquely decomposed into a row space component (which maps to something) and a null space component (which maps to zero).
Special Cases
โ Full Row Rank (rank = m)
- Rows are linearly independent
- Row space dimension = m
- Null space dimension = n - m
- A is surjective (onto)
- Ax = b always has a solution
โ Full Column Rank (rank = n)
- Columns are linearly independent
- Row space dimension = n (if n โค m)
- Null space = {0}
- A is injective (one-to-one)
- At most one solution to Ax = b
โ Zero Matrix (rank = 0)
- All rows are zero
- Row space = {0}
- Null space = โโฟ
- Completely degenerate
โ Singular Matrix (rank < n)
- Row space dimension < n
- Null space dimension > 0
- Not invertible
- Solutions may not exist or be unique
Real-World Applications
๐ Machine Learning
- Feature space analysis โ Row space contains all possible feature combinations
- PCA โ Principal components span the row space
- Dimensionality reduction โ Project onto row space
๐ง Engineering
- Control theory โ Row space determines observable states
- Signal processing โ Row space captures filter outputs
- Structural analysis โ Force equilibrium equations
๐ Statistics
- Linear regression โ Predicted values lie in column space, but coefficients relate to row space of design matrix
- ANOVA โ Row space of design matrix
- Factor analysis โ Latent factors span row space
๐งฎ Numerical Analysis
- Least squares โ Solution lies in row space
- Regularization โ Penalizes components outside row space
- Iterative methods โ Krylov subspaces relate to row space
Practice Problems
Beginner
- Find the dimension of the row space for a 3ร5 matrix with rank 2.
- True or False: Row operations change the row space of a matrix.
- For A =
[[1, 0, 0], [0, 0, 0]], find a basis for the row space.
Intermediate
- Find a basis for the row space of:
$$ A = \begin{pmatrix} 1 & 1 & 1 \\ 2 & 2 & 2 \\ 3 & 4 & 5 \end{pmatrix} $$
- If A is 4ร4 with rank 3, what is the dimension of Null(A)? What does this mean?
- Prove that Row(A) = Row(RREF(A)).
Advanced
- Show that Row(A) and Null(A) are orthogonal complements in โโฟ.
- If B is row-equivalent to A, what can you say about their row spaces?
- Find the row space and null space of A =
[[1, 2], [2, 4], [3, 6]]and verify orthogonality.
Click to reveal solutions
1. dim(Row(A)) = rank = 2
2. False โ row operations preserve the row space
3. Basis = { (1,0,0) }
4. Basis = { (1,1,1), (0,1,2) }
5. dim(Null(A)) = 4 - 3 = 1 (one free variable, non-unique solutions)
6. Row operations are reversible, so they cannot change the span of rows
7. Every vector in Row(A) is perpendicular to every vector in Null(A) by definition
8. They have the same row space (since row operations preserve it)
9. Row space = span{(1,2)}, Null space = span{( -2,1 )}, dot product = -2 + 2 = 0 โ
Summary
Key Takeaways
- Row space = span of all row vectors of A
- Dimension = rank(A)
- Basis = non-zero rows of RREF
- Orthogonal complement = Null(A)
- โโฟ = Row(A) โ Null(A) (every vector decomposes uniquely)
- Row operations preserve the row space
๐ก Pro Tip: Use the Gaussian Elimination Calculator to find RREF, then take non-zero rows โ that's your row space basis!
Try It Yourself!
Use the calculator above to explore row spaces:
- Enter your matrix (any size up to 6ร6)
- Click "Calculate" to see:
- The RREF of your matrix
- A basis for the row space (non-zero RREF rows)
- The dimension (rank) of the row space
- Step-by-step row reduction
๐ Try these examples:
- Full rank (3ร3):
[[1,2,3],[4,5,6],[7,8,10]] - Rank deficient (3ร3):
[[1,2,3],[2,4,6],[3,6,9]] - Rectangular (2ร4):
[[1,2,3,4],[5,6,7,8]]
๐ก Remember: The row space lives in โโฟ (column space lives in โแต). Don't confuse them!