The Basis of Image Calculator computes a basis for the image of a linear map and determines rank and dimension.
Report an issue
Spotted a wrong result, broken field, or typo? Tell us below and we’ll fix it fast.
What Is a Basis of Image Calculator?
The calculator identifies a basis for the image of a matrix, also called the column space. In linear algebra, the image is the set of all vectors you can produce by multiplying the matrix by some input vector. A basis is a smallest set of independent vectors that spans that set.
Practically, you enter a matrix A. The tool computes the rank, finds pivot columns, and returns the basis vectors. It can also provide an orthonormal basis using methods like Gram–Schmidt or QR. You see the steps, the result, and the formula choices used along the way.

The Mechanics Behind Basis of Image
The image of a matrix A is the span of its columns. To find a basis, you need a set of independent columns that still span all columns. The calculator does this by locating pivot columns. It can also orthogonalize the basis for numerical stability and easier interpretation.
- Compute a row-reduced echelon form (RREF) of A to identify pivot columns.
- Select the original columns of A at those pivot positions as a basis of the image.
- Optionally perform Gram–Schmidt or QR to build an orthonormal basis spanning the same space.
- Use a tolerance to decide when near-zero values count as zero in floating-point data.
- Confirm the rank equals the number of basis vectors returned.
These steps guarantee independence and minimal size. Keeping the basis in original columns preserves interpretability in applications. Orthonormal versions make projections and least-squares work simple and stable.
Formulas for Basis of Image
Understanding the core formulas helps you read the output and choose options. The image of A, written im(A), is the set of all Ax for x in the domain. The rank is the dimension of this set. Rank connects to solvability, compression, and model complexity.
- Image of a matrix: im(A) = { Ax : x in F^n } = span of the columns of A.
- Rank: rank(A) = dim(im(A)). Each pivot column increases rank by one.
- Rank–nullity: rank(A) + nullity(A) = number of columns of A.
- Linear map view: For T: V → W, im(T) = { T(v) : v in V }.
- Orthonormal basis via Gram–Schmidt: produce vectors q1, q2, … that span im(A) with q_i dot q_j = 0 for i ≠ j and ||q_i|| = 1.
- Projection onto the image: P = A (A^T A)^{-1} A^T if A has independent columns. For rank-deficient A, use P = A A^+ with the pseudoinverse A^+.
Use these formulas to check the logic behind the calculator’s steps. Rank tells you the number of basis vectors. Orthonormal options simplify projections and least-squares, while pivot-based bases keep a direct link to your original features.
Inputs, Assumptions & Parameters
The tool accepts numeric matrices and a few settings that change the computation path. You can stick to default steps for most tasks. Adjust parameters when you work with noisy data, large matrices, or complex numbers.
- Matrix A: Enter m rows by n columns with real or complex entries.
- Field: Choose real or complex. Complex uses the conjugate inner product.
- Method: Pivot (RREF), QR, SVD-based, or Gram–Schmidt.
- Tolerance: Nonnegative threshold to treat small values as zero.
- Output basis type: Original columns, orthonormal basis, or both.
Expect robust results for typical sizes, such as up to a few thousand entries. Extremely ill-conditioned matrices may produce method-dependent bases. Zero matrices return an empty basis and rank 0. For integer-heavy data, scaling can prevent overflow or underflow. Complex inputs follow the same steps, but use conjugate transpose for inner products.
Using the Basis of Image Calculator: A Walkthrough
Here’s a concise overview before we dive into the key points:
- Select the matrix size and paste or type your entries row by row.
- Choose the field: real or complex.
- Pick a method: Pivot for interpretability, QR for stability, or SVD for noisy data.
- Set the tolerance. Leave the default unless your data is very noisy.
- Click Calculate to run the steps and compute the result.
- Review the basis, rank, and the step-by-step reduction or factorization.
These points provide quick orientation—use them alongside the full explanations in this page.
Real-World Examples
Feature selection in analytics: Suppose columns represent three engineered features collected from sensors. Let A be a 3×3 matrix with columns c1 = [1,0,1]^T, c2 = [0,1,1]^T, and c3 = [1,1,2]^T. Notice c3 = c1 + c2. The calculator’s pivot method returns a basis {c1, c2} and rank 2. The QR method also returns an orthonormal pair that spans the same space. What this means: Two features are enough; the third is redundant.
Graphics transform check: Consider a 2×3 matrix A with columns d1 = [1,0]^T, d2 = [2,1]^T, and d3 = [0,1]^T. Here d2 = 2 d1 + d3, so only two independent directions exist in the plane. The calculator reports rank 2 and a basis {d1, d3}. If you request orthonormal vectors, it produces two unit vectors spanning the image in R^2. What this means: The transform covers the plane, so you can reach any 2D direction with suitable inputs.
Limits of the Basis of Image Approach
Every method has trade-offs, especially with real data. Small numerical errors and scaling differences can alter which columns appear independent. Some matrices are ill-conditioned, so tiny changes flip the rank.
- Floating-point rounding can misclassify near-dependent columns without a good tolerance.
- Different methods may return different but valid bases for the same image.
- Very large or sparse matrices may require specialized algorithms beyond simple RREF.
- Noisy data can inflate rank estimates unless you use SVD with a cut-off.
- Original-column bases are interpretable but may be less stable than orthonormal bases.
Use sensitivity checks when decisions hinge on rank. Compare pivot, QR, and SVD outputs. Tune the tolerance and watch how the basis changes. Choose the basis type that fits your goals: interpretability or numeric stability.
Units & Conversions
Linear algebra is unit-agnostic, but your columns often represent measured quantities. Mixed units can bias a basis. Large scales dominate small ones unless you normalize. Use consistent units or rescale columns to make comparisons fair.
| Quantity | Symbol | Typical Unit | Conversion Tip |
|---|---|---|---|
| Pixel intensity | — | counts (0–255) or 0–1 scaled | Scale by dividing by 255 to get 0–1. |
| Voltage | V | volt (V), kilovolt (kV) | 1 kV = 1000 V; keep all features in volts. |
| Force | N | newton (N), pound-force (lbf) | 1 lbf ≈ 4.448221615 N; convert to N for consistency. |
| Luminous flux | lm | lumen (lm), kilolumen (klm) | 1 klm = 1000 lm; 1 lm = 1 cd·sr. |
| Currency | USD | US dollar ($), thousand dollars (k$) | 1 k$ = $1000; rescale financial features to the same unit. |
Read the table to standardize your columns before analysis. Convert all measurements to a single unit per quantity. Then, rescale or normalize if needed. This keeps the basis meaningful and prevents unit-driven bias.
Common Issues & Fixes
Most issues arise from scaling, near-dependence, or method choice. A few quick checks can stabilize your result and match expectations.
- If rank seems too high, increase the tolerance or try SVD with a cut-off.
- If the basis vectors look hard to interpret, switch to pivot columns.
- If projections look unstable, request an orthonormal basis via QR.
- If results change with column order, use QR or SVD to reduce sensitivity.
When in doubt, compare methods and keep notes on settings. Consistency across methods is a strong sign your basis is reliable.
FAQ about Basis of Image Calculator
Is the image the same as the column space?
Yes. For a matrix A, the image is the set of all Ax, which equals the span of A’s columns. Many texts use the terms interchangeably.
Does the order of basis vectors matter?
No. Any set of independent vectors that spans the same space is a valid basis. Order does not affect the space, only presentation.
How does tolerance affect the result?
Tolerance controls when a small value counts as zero. Raising it reduces rank in near-dependent cases. Lowering it increases rank sensitivity to noise.
Can the calculator handle complex matrices?
Yes. It uses the conjugate transpose for inner products and applies the same steps. You can also request orthonormal bases over the complex field.
Glossary for Basis of Image
Image (of a matrix)
The set of all vectors Ax you can produce with the matrix A. It equals the span of A’s columns and lives in the output space.
Basis
A minimal set of independent vectors that spans a space. Every vector in the space is a unique linear combination of basis vectors.
Rank
The dimension of the image or column space of a matrix. It equals the number of pivot columns and the number of independent rows as well.
Pivot column
A column corresponding to a leading 1 in the row-reduced echelon form of A. The original pivot columns form a basis for the image.
Reduced row echelon form (RREF)
A canonical row-reduced version of a matrix where each pivot is 1 and the only nonzero entry in its column. It reveals rank and pivot positions.
Null space
The set of all x with Ax = 0. Its dimension is the nullity, and rank plus nullity equals the number of columns.
Orthonormal basis
A basis where all vectors have unit length and are mutually orthogonal. It simplifies projections, least squares, and numerical stability.
Projection matrix
A matrix P that maps any vector onto a subspace. For independent columns in A, P = A (A^T A)^{-1} A^T projects onto the image of A.
Sources & Further Reading
Here’s a concise overview before we dive into the key points:
- MIT OpenCourseWare: 18.06 Linear Algebra (Gilbert Strang)
- Wikipedia: Column space (Image of a matrix)
- Wikipedia: Rank (linear algebra)
- Wikipedia: Row echelon form and RREF
- Wikipedia: Gram–Schmidt process
- Oxford University Press: Numerical Linear Algebra (Trefethen and Bau)
These points provide quick orientation—use them alongside the full explanations in this page.
References
- International Electrotechnical Commission (IEC)
- International Commission on Illumination (CIE)
- NIST Photometry
- ISO Standards — Light & Radiation