← LibraryRank and Nullity of a Nonsingular Matrix | KEVOS® MathematicsProject Delivery · Project ManagementLesson 132/189← PrevNext →
ArticlePublished 8 Aug 202625 min readBy Kevin Jogin
Skip to content

Engineering/Mathematics/Vector Spaces

Rank and Nullity of a Nonsingular Matrix

For a square matrix of size n, nonsingularity, rank n and nullity zero are three descriptions of the same condition. Either dimension alone is enough to settle the question.

  • Core level
  • Stream: dimension
  • Reading time 15 min
  • Ref KVS-ENG-MATH-0071
Taxonomy
Engineering / Mathematics
Applies to
Square matrices only
Equivalent to nonsingular
rank(A)=n
Also equivalent
nullity(A)=0
Deficiency
d=nrank(A) counts the lost directions
Numerical proxy
Condition number κ(A)=σ1/σn

Overview

Nonsingularity is defined by a property of the null space: a square matrix A of size n is nonsingular when the only solution of Ax=0 is the zero vector. Once dimension is available, that definition acquires two numerical restatements. The null space is trivial exactly when its dimension is zero, and by the rank-nullity accounting that happens exactly when the rank attains its maximum possible value n. Nonsingular, full rank and zero nullity are one condition wearing three labels.

The value of the restatement is that rank and nullity are computed rather than argued about. A single row reduction returns both, so the question "is this matrix invertible?" is answered by counting pivots, and the same reduction that answers it also produces the null space basis that explains any deficiency. For a matrix that fails the test, the nullity is not merely a flag but a measurement: it says exactly how many independent directions the matrix destroys.

This result is the sixth in a growing chain of equivalent characterisations of a nonsingular matrix, and the chain is the reason nonsingularity is the organising concept of the subject. Row reduction to the identity, triviality of the null space, unique solvability for every right-hand side, independence of the columns, invertibility, a column space filling the whole of n, columns forming a basis, rank n and nullity zero are all the same statement. Any one may be substituted for any other inside a proof or a program.

In practice the binary answer is rarely the whole story. Matrices assembled from measurements are almost never exactly singular, yet many are so close to singular that the distinction is meaningless at working precision. The engineering discipline therefore replaces the yes-or-no test with a continuous one: the smallest singular value, or equivalently the condition number, which measures how far a matrix is from the nearest singular matrix and how many digits of the solution survive.

Definition

Rank and Nullity of a Nonsingular Matrix

RNNSM

Let A be a square matrix of size n. The following three statements are equivalent.

  • A is nonsingular.
  • The rank of A is n: rank(A)=n.
  • The nullity of A is zero: nullity(A)=0.
Because equivalence is transitive, establishing any one of the three establishes the other two.

The statement is restricted to square matrices. Nonsingularity is undefined for a rectangular matrix, and for such a matrix full rank splits into two distinct notions.

Full Rank

FR

A matrix has full rank when its rank attains the largest value its shape permits, namely min(m,n). For a square matrix of size n this means rank(A)=n, which is precisely nonsingularity. For a rectangular matrix it means full column rank when mn and full row rank when mn; the two coincide only in the square case.

Rank Deficiency

RD

The rank deficiency of a square matrix A of size n is d=nrank(A). By the rank-nullity identity, d=nullity(A), so the deficiency is simultaneously the shortfall in achievable output directions and the number of independent input directions annihilated. A nonsingular matrix has d=0.

Nonsingular Matrix Equivalences

NSME

For a square matrix A of size n the following statements are all equivalent.

  1. A is nonsingular.
  2. A row-reduces to the identity matrix.
  3. The null space of A contains only the zero vector: N(A)={0}.
  4. The system Ax=b has a unique solution for every choice of b.
  5. The columns of A form a linearly independent set.
  6. A is invertible.
  7. The column space of A is all of n: C(A)=n.
  8. The columns of A form a basis of n.
  9. The rank of A is n.
  10. The nullity of A is zero.

Concepts

Proving the three-way equivalence as a cycle

Rather than prove six implications, close a cycle of three. Suppose A is nonsingular. Then its column space is all of n, and since dim(n)=n, the rank — being the dimension of the column space — is n.

Now suppose rank(A)=n. The rank-nullity identity gives nullity(A)=nrank(A)=nn=0. Finally suppose nullity(A)=0. A subspace of dimension zero has the empty set as a basis and contains only the zero vector, so N(A)={0}, which is the definition of nonsingularity. The cycle closes and all three statements are equivalent.

Why the square hypothesis cannot be dropped

The step from nonsingularity to rank n uses the fact that the column space, a subspace of m, equals the whole of n — which only makes sense when m=n. For a tall matrix with m>n, the columns can be independent, giving nullity zero and rank n, while the column space is a proper subspace and the system Ax=b is unsolvable for most b.

For a wide matrix with m<n, the rank is at most m<n, so the nullity is at least nm>0 and there is always a non-trivial null space regardless of the entries. Neither rectangular case admits a single notion of full rank that delivers unique solvability, which is why nonsingularity is reserved for square matrices and the rectangular cases are handled by least squares and minimum-norm solutions instead.

The equivalence chain as an engineering toolkit

The ten equivalent statements are not redundant; each is cheap to check in a different situation. Independence of columns is natural when the columns are measurement patterns. Unique solvability is natural when the matrix is a plant model. Rank n is natural when a numerical library has already computed a decomposition. Reduction to the identity is natural for hand computation on small integer matrices.

Substituting one for another is what makes many arguments short. A proof that a change-of-basis matrix is invertible becomes a proof that its columns are independent; a check that a calibration is identifiable becomes a rank check on a Jacobian; a test that a network has a unique nodal solution becomes a test that the admittance matrix has trivial null space. Recognising which formulation is cheapest for the case at hand is a substantial part of applied skill.

Reading a deficiency rather than a flag

When a square matrix fails the test, the useful output is not the failure but its size and direction. The deficiency d=nrank(A) counts the independent ways in which the matrix is defective, and the null space basis names them. A stiffness matrix assembled without boundary conditions has d equal to the number of rigid-body modes — three in plane problems, six in space — and the null space vectors are those very modes.

A nodal admittance matrix for a circuit with no reference node has d=1, with the null space spanned by the all-ones vector, because shifting every node potential by a constant changes no current. In both cases the correct remedy is dictated by the null space: constrain exactly d independent degrees of freedom, no more and no fewer.

Near-singularity: the continuous replacement for the test

Nonsingularity is a discontinuous property. The set of singular matrices has measure zero, so a matrix perturbed by rounding is nonsingular with probability one, and an exact-zero test on floating-point data will almost always report success even for a matrix that is numerically useless. The binary question has to be replaced by a graded one.

The smallest singular value σn measures the distance to the nearest singular matrix in the spectral norm, and the condition number κ(A)=σ1/σn measures the factor by which relative errors in the data are amplified in the solution. A working rule for binary64 is that roughly log10κ(A) significant decimal digits are lost, so κ(A)108 leaves about eight digits and κ(A)1016 leaves none.

Structured matrices and cheaper certificates

Some structures certify nonsingularity without a general reduction. A strictly diagonally dominant matrix is always nonsingular, which is why well-formed finite difference and admittance matrices can be trusted before any factorisation. A symmetric matrix with all positive eigenvalues is nonsingular, and the successful completion of a Cholesky factorisation is itself the certificate — the factorisation fails precisely when positive definiteness fails.

These shortcuts are valuable because they are structural: they hold for the whole family of matrices arising from a modelling assumption, so the certificate is established once at design time rather than checked at every solve. Where such structure exists, exploiting it typically halves the factorisation cost as well.

Decision path: is a square matrix nonsingular, and if not, how badly?

Confirm the matrix is squareNonsingularity is defined only for square matrices. For a rectangular matrix, ask instead about full column rank or full row rank.
Check for exploitable structureStrict diagonal dominance or a successful Cholesky factorisation certifies nonsingularity directly and more cheaply than a general reduction.
Factor or reduceApply LU with partial pivoting, or row-reduce for exact arithmetic. The question is whether n pivots are found.
Are there n pivots?If yes, rank(A)=n, nullity(A)=0 and A is nonsingular. If no, record the deficiency d=nr.
If deficient, compute the null space basisThe d basis vectors name the input directions the matrix destroys and dictate exactly which constraints must be added.
If nonsingular, estimate the condition numberA matrix can pass the test and still be useless in floating point. Report κ(A) alongside the verdict.

Equations

The three-way equivalence

EQ-RNNSM-01
Anonsingularrank(A)=nnullity(A)=0

Valid for square A of size n. Any one of the three may be established and the other two inferred.

Rank-nullity in the square case

EQ-RNNSM-02
rank(A)+nullity(A)=n

The identity that ties the second and third statements together: maximising one forces the other to zero.

Column space of a nonsingular matrix

EQ-RNNSM-03
C(A)=n,dim(C(A))=n

The step from nonsingularity to full rank. It is here that the square hypothesis is used and here that the rectangular case breaks down.

Reduction to the identity

EQ-RNNSM-04
AnonsingularRREF(A)=In

The practical hand test. With n pivot columns in an n-column matrix, every column hosts a leading one and no free variables remain.

Rank deficiency

EQ-RNNSM-05
d=nrank(A)=nullity(A)=dim(N(A))

One number with three readings: shortfall in rank, dimension of the null space, and number of independent constraints required to restore nonsingularity.

Singular values and the distance to singularity

EQ-RNNSM-06
σ1σ2σn0,Asingularσn=0

The continuous form of the test. The value σn is exactly the spectral-norm distance from A to the nearest singular matrix.

Condition number and digit loss

EQ-RNNSM-07
κ(A)=σ1σn,digits lostlog10κ(A)

The working rule for floating point. A nonsingular matrix with κ(A)1016 delivers no correct significant digits in binary64.

Variable Definitions

Symbols used on this page
SymbolNameMeaningDomain / type
ASquare matrixThe matrix of size n whose nonsingularity is at issuen x n complex matrix
nSizeCommon row and column count; the target value for the rankpositive integer
rank(A)RankDimension of the column space; equals n exactly when A is nonsingular0 to n
nullity(A)NullityDimension of the null space; zero exactly when A is nonsingular0 to n
dRank deficiencynrank(A); the number of independent constraints needed to restore nonsingularity0 to n
N(A)Null spaceInputs annihilated by A; trivial exactly in the nonsingular casesubspace of C^n
C(A)Column spaceAchievable outputs; equals n exactly in the nonsingular casesubspace of C^n
InIdentity matrixThe reduced row-echelon form reached by every nonsingular matrix of size nn x n matrix
σnSmallest singular valueDistance to the nearest singular matrix; zero exactly when A is singularnon-negative real
κ(A)Condition numberError amplification factor σ1/σn; infinite for a singular matrix1 to infinity

Worked Numerical Example

Problem statement

A four-node electrical network is described by a 4×4 conductance matrix. Establish whether the network has a unique nodal solution, then repeat the analysis after a modelling change that makes one node's coupling a difference of two others, and identify precisely what is lost.

  1. State the first conductance matrix

    Each column describes how a unit potential at one node drives current at the four nodes. The question of a unique nodal solution is the question of whether this matrix is nonsingular.

    A=[2101132001413012]
  2. Reduce and count the pivots

    Row-reduce to reduced row-echelon form. All four columns acquire a leading one, so there are four pivot columns and no free columns.

    RREF(A)=[1000010000100001]=I4
  3. Report the rank, nullity and verdict

    Four non-zero rows give rank(A)=4=n, and the rank-nullity identity gives nullity(A)=44=0. Both conditions of the equivalence are met, so A is nonsingular and the nodal system has exactly one solution for any injected current vector.

    rank(A)=4,nullity(A)=0,d=0
  4. Introduce the modelling change

    Suppose node 4's coupling pattern is now modelled as the difference of the patterns of nodes 1 and 2 — a plausible outcome when a component is replaced by a differential element. Column 4 becomes column 1 minus column 2, entrywise.

    A=[2103132201413013]
  5. Reduce the modified matrix

    The reduction now stalls: column 4 acquires no leading one, because it is a linear combination of columns 1 and 2 and contributes no new direction. One zero row appears.

    RREF(A)=[1001010100100000]
  6. Quantify the deficiency

    Three pivot columns give rank(A)=3, so the deficiency is d=43=1 and the nullity is 1. The matrix is singular, and the system either has no solution or infinitely many depending on the injected currents.

    rank(A)=3,nullity(A)=1,d=1
  7. Identify the lost direction

    Column 4 is free, so set x4=1 and read the dependent variables from the reduced rows: x1=1, x2=1, x3=0. This single vector spans the null space and names the potential pattern that drives no current anywhere.

    N(A)=span([1101])
  8. Verify the null vector against the original matrix

    Multiply row by row: 2(1)+(1)(1)+0(0)+3(1)=0; 1(1)+3(1)+(2)(0)+(2)(1)=0; 0(1)+1(1)+4(0)+(1)(1)=0; 3(1)+0(1)+1(0)+3(1)=0. Every component vanishes, confirming the basis vector.

  9. Prescribe the remedy from the deficiency

    Because d=1, exactly one additional independent constraint restores nonsingularity — for example fixing one node potential relative to the pattern identified by the null vector. Adding two constraints would over-determine the system; adding a constraint that is itself a combination of existing rows would not help at all.

Result

The original network is nonsingular: rank four, nullity zero, one unique nodal solution for every excitation. The modified network is deficient by exactly one, and the null space names the culprit — a potential pattern raising nodes 2 and 4 while lowering node 1 produces no current at any node and is therefore invisible to the measurement. One well-chosen grounding constraint, aligned with that pattern, restores a unique solution; no amount of additional current measurement will.

Applications &amp; Industry Use

Electrical engineering

Reference node in nodal analysis

A nodal admittance matrix formed without designating a reference node is singular with deficiency one, the null space spanned by the all-ones vector, because shifting every potential by a constant changes no branch current. Grounding one node removes exactly that direction and makes the matrix nonsingular. Recognising the deficiency as one, and its direction as uniform, is what tells the engineer that a single ground is both necessary and sufficient.

Structural engineering

Rigid-body modes in an unrestrained stiffness matrix

A finite element stiffness matrix assembled before boundary conditions is singular, with deficiency equal to the number of rigid-body modes: three in plane problems and six in three dimensions. The null space vectors are the translations and rotations themselves. Applying exactly that many independent restraints makes the matrix nonsingular; applying fewer leaves the solver to fail, and applying more introduces spurious reaction forces.

Robotics

Manipulator Jacobian singularities

A square manipulator Jacobian is nonsingular at configurations where every task-space velocity is achievable. At a singularity the rank drops, and the nullity gives the dimension of the space of joint velocities that produce no end-effector motion, while the deficiency in the range identifies the directions the manipulator cannot move in. Both are needed to plan a path that avoids or passes safely through the configuration.

Cryptography &amp; coding

Invertible key matrices over a finite field

Classical matrix-based ciphers and many coding constructions require a key matrix that is nonsingular over a finite field, so that encoding is reversible. The test is the same row reduction, performed in modular arithmetic, and the condition is the same rank equal to size. Singularity here is not a numerical nuisance but a correctness failure: distinct messages would encode to the same ciphertext.

System identification &amp; estimation

Identifiability from an information matrix

The parameters of a model are locally identifiable exactly when the associated information matrix is nonsingular. A rank deficiency of d means a d-dimensional family of parameter values fits the data equally well, and the null space names the combinations that cannot be separated. Diagnosing this before running an estimator saves a great deal of time otherwise spent interpreting an optimiser that will not converge.

Computational fluid dynamics

Pressure level in incompressible flow

Discretised incompressible flow problems determine pressure only up to an additive constant, so the pressure block of the system matrix is singular with deficiency one. Solvers either pin the pressure at a reference cell or project the constant mode out at each iteration. Both remedies are direct consequences of knowing the deficiency and the null space direction in advance.

Design Considerations

The binary test is necessary but rarely sufficient

A matrix that passes the nonsingularity test can still be numerically worthless. Report the condition number or the smallest singular value alongside the verdict, and set an application-specific threshold beyond which the matrix is treated as singular regardless of what the pivot count says. In binary64 a condition number above 1012 leaves fewer than four correct digits.

Interpret the deficiency, do not merely detect it

The value of d tells the engineer how many independent constraints are missing, and the null space basis tells which ones. A solver that reports only "matrix is singular" forces a manual investigation that the computation has already performed. Return the deficiency and the basis together as a matter of course.

Prefer structural certificates where they apply

Strict diagonal dominance, symmetric positive definiteness and irreducible diagonal dominance all guarantee nonsingularity for entire families of matrices arising from a modelling assumption. Establishing such a property once at design time is far more robust than testing each assembled matrix at run time, and usually enables a cheaper factorisation as well.

Do not test nonsingularity by computing a determinant

The determinant is mathematically equivalent to the test but numerically unhelpful: it scales as the product of the singular values, so it underflows or overflows for moderately sized matrices and its magnitude says nothing about conditioning. A diagonal matrix with entries 102 and size 200 has a determinant below the smallest representable number yet is perfectly conditioned. Use a factorisation and a condition estimate.

Restore rank by adding information, not by regularising away the symptom

Adding a small multiple of the identity, or taking a pseudo-inverse, produces an answer from a deficient system, but the answer is chosen by the algorithm rather than by the physics. Where the deficiency reflects genuinely missing constraints — an ungrounded network, an unrestrained structure — the correct fix is to supply those constraints. Reserve regularisation for cases where the deficiency reflects noise rather than modelling omission.

Keep the square and rectangular cases separate

Nonsingularity, and this equivalence with it, applies only to square matrices. Applying the vocabulary to a rectangular matrix invites the assumption that full rank delivers unique solvability, which is false for both tall and wide matrices. Use full column rank and full row rank explicitly, and describe the solution behaviour in terms of least squares or minimum norm.

Standards &amp; Codes

Notation, interchange and numerical standards that govern how this material is written down, stored and computed in production systems.

Applicable standards, conventions and reference implementations
ReferenceTitleRelevance to this topic
ISO 80000-2Quantities and units — Part 2: MathematicsFixes the notation for the identity matrix, the rank and nullity operators, and the convention that operator names are set upright while matrix symbols are italic.
IEEE 754-2019IEEE Standard for Floating-Point ArithmeticDefines the arithmetic in which the nonsingularity test degenerates into a conditioning question, and the exponent range that makes a determinant-based test prone to overflow and underflow.
IEEE 1788-2015IEEE Standard for Interval ArithmeticProvides the machinery for rigorously certifying that every matrix within a tolerance box is nonsingular, which a floating-point factorisation cannot do.
LAPACK / BLAS referenceLinear Algebra PACKage reference implementationSupplies xGETRF, whose info return value flags an exactly zero pivot, and xGECON, which estimates the reciprocal condition number that the pivot count alone cannot provide.
ISO/IEC 40314Mathematical Markup Language (MathML) Version 3.0Encodes the equivalence lists, matrices and operator names on this page as semantic markup so they remain searchable and available to assistive technology.

Material Selection

For a mathematical topic, "material" is the numeric representation: the scalar field, storage format and precision the computation is built from.

Representation and precision selection
RepresentationSelect whenTrade-off
Exact rational arithmeticSmall structural, incidence or symbolic matrices where nonsingularity is a modelling fact to be certified rather than estimated.Delivers an unambiguous verdict, but says nothing about conditioning, so an exactly nonsingular matrix may still be useless in a floating-point solver.
IEEE 754 binary64 with a condition estimateDefault for engineering system matrices assembled from physical parameters.Fast and paired with a meaningful conditioning measure at about 1% extra cost over the factorisation itself; the verdict is a threshold decision rather than a certainty.
IEEE 754 binary32Real-time control or graphics loops where a well-conditioned matrix is guaranteed by construction and throughput dominates.Halves memory traffic but leaves about seven significant digits, so any matrix with a condition number above roughly 103 should be promoted to double precision.
Interval arithmeticSafety-critical certification that a matrix remains nonsingular across a whole range of parameter values or manufacturing tolerances.Gives a rigorous guarantee over an entire box of matrices, at several times the cost and with results that can be pessimistically wide if the formulation is naive.
Finite field arithmetic modulo a primeCryptographic key matrices and coding constructions where the field is genuinely finite and invertibility is a correctness requirement.Exact, fast and free of conditioning concerns, but invertibility over a finite field is unrelated to invertibility over the rationals and must be tested in the field actually used.
Symmetric positive definite storage with CholeskyStiffness, covariance, Gram and admittance matrices that are symmetric by construction.Half the operations and half the storage of a general factorisation, and the factorisation's success is itself a nonsingularity certificate; but a failure gives less diagnostic detail than a general reduction.

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 test

An LU factorisation with partial pivoting costs about 23n3 operations and settles nonsingularity as a side effect of the work needed to solve a system anyway. Full reduction to the identity costs roughly n3 and is preferred only for exact hand computation. A condition estimate adds about O(n2) on top of an existing factorisation, which is negligible and should be treated as mandatory.

Hand procedure and early termination

Reduce left to right and stop as soon as a column has no non-zero entry at or below the current pivot row: the matrix is singular and there is no need to finish. For a nonsingular matrix the reduction runs to completion with a leading one in every column. Recording the pivot indices as they are found makes the final count trivial and guards against miscounting non-zero rows.

Library behaviour and error signalling

LAPACK's xGETRF returns a positive info when it encounters an exactly zero pivot, but this fires only for exact singularity and never for the far more common near-singular case; pair it with xGECON. NumPy's numpy.linalg.solve raises LinAlgError on an exactly singular factor and issues no warning otherwise, so call numpy.linalg.cond separately. SymPy's Matrix.is_invertible answers exactly over the rationals with no tolerance involved.

Verifying a nonsingularity verdict

For a claimed nonsingular matrix, solve Ax=b for a random b and check the residual bAx relative to b; a small residual with a large condition number indicates a solution that satisfies the equations but is far from the true one. For a claimed singular matrix, verify each null space basis vector against the original matrix by direct multiplication.

Improving an accurate-but-conditioned solve

Iterative refinement recovers accuracy from a factorisation of a moderately ill-conditioned matrix: compute the residual in higher precision, solve for the correction with the existing factors, and update. Each pass costs O(n2) against the original O(n3), and typically restores several digits when κ(A) is within a few orders of the reciprocal of the machine epsilon.

Failure Modes &amp; Common Mistakes

Failure modes, root causes and prevention
Failure mode / mistakeImpactRoot causePrevention & detection
Applying nonsingularity vocabulary to a rectangular matrixhighA tall or wide matrix is described as nonsingular because it has full rank for its shape.Reserve the term for square matrices; use full column rank or full row rank explicitly, and state solution behaviour in least-squares or minimum-norm terms.
Trusting an exact-zero pivot test on floating-point datahighA factorisation completes without an exactly zero pivot, so a matrix with κ(A)1017 is declared nonsingular.Always compute a condition estimate alongside the factorisation and apply an application-level threshold.
Testing nonsingularity by determinant magnitudehighA determinant that underflows to zero is read as singularity, or a large determinant as good conditioning.Use a factorisation with a condition estimate. The determinant scales with the product of the singular values and carries no conditioning information.
Over-constraining a deficient systemmediumMore constraints are applied than the deficiency requires, introducing spurious reactions or biasing the solution.Compute d and add exactly d independent constraints, checking that they are independent of the existing rows.
Adding a constraint that lies in the row spacemediumAn extra equation is supplied that is a combination of existing ones, so the rank does not increase and the matrix remains singular.Verify that each added constraint raises the rank; equivalently, check it is not orthogonal to the null space basis before relying on it.
Regularising to hide a modelling omissionmediumA small multiple of the identity is added to make a stiffness or admittance matrix invertible, masking a missing boundary condition or reference node.Inspect the null space first. If its vectors correspond to physical rigid-body or reference modes, supply the missing constraint instead of regularising.
Assuming symmetry implies nonsingularitymediumA symmetric matrix is presumed invertible because symmetric matrices are well behaved in other respects.Symmetry guarantees real eigenvalues, not non-zero ones. Test positive definiteness by attempting a Cholesky factorisation, which fails precisely when the assumption does not hold.
Reusing a nonsingularity verdict after the matrix changeslowA cached certificate is applied to a matrix whose entries have since been updated by a parameter change or a re-assembly.Tie the certificate to a version or hash of the matrix data and invalidate it on any modification.

FAQs

Why does rank n imply nullity zero for a square matrix?

Because rank and nullity always sum to the number of columns, which for a square matrix of size n is n. If the rank attains its maximum n, the nullity is forced to nn=0. The implication runs both ways, which is why either quantity alone settles the question.

Does this equivalence hold for rectangular matrices?

No. Nonsingularity is undefined for a rectangular matrix, and the two halves come apart. A tall matrix can have nullity zero while its column space is a proper subspace, so most systems are unsolvable. A wide matrix always has positive nullity, so solutions are never unique. Only in the square case do the two notions of full rank coincide.

What does a nullity of three tell me about a stiffness matrix?

That three independent displacement patterns produce no internal forces, which for an unrestrained plane structure are the two translations and one rotation. The remedy is to apply exactly three independent restraints. The null space basis identifies which motions are unconstrained, so the restraints can be chosen to remove precisely those.

Can a matrix be nonsingular and still unusable numerically?

Routinely. Nonsingularity is a discontinuous property that almost every floating-point matrix satisfies, while usefulness depends on the condition number. A matrix with κ(A)=1015 is nonsingular but leaves roughly one correct significant digit in binary64. Report the condition number with the verdict, and set a threshold appropriate to the application.

Why should I not just compute the determinant?

Because the determinant is the product of the singular values and therefore scales like the n-th power of a typical entry. For moderate n it overflows or underflows even for well-conditioned matrices, and its magnitude carries no information about conditioning. A diagonal matrix of size 200 with entries 102 has a determinant below the smallest representable double while being perfectly conditioned.

How many extra constraints do I need to fix a singular system?

Exactly the rank deficiency d, and they must be independent of the existing rows. Fewer leaves the matrix singular; more over-determines the system and introduces spurious reactions. Checking independence means confirming that each new constraint is not orthogonal to the null space, which the null space basis makes immediate.

Is there a cheap way to certify nonsingularity without factorising?

For structured matrices, yes. Strict diagonal dominance guarantees nonsingularity and can be checked in O(n2) by inspection, and a successful Cholesky factorisation certifies a symmetric matrix as positive definite and therefore nonsingular. Both are properties of whole families of matrices arising from a modelling assumption, so the certificate can be established once at design time.

References

  1. Beezer, R. A. A First Course in Linear Algebra, Version 0.70. University of Puget Sound, 2006. Section D, subsection RNNSM. Licensed under the GNU Free Documentation License v1.2.
  2. ISO 80000-2:2019, Quantities and units — Part 2: Mathematics. International Organization for Standardization.
  3. IEEE 754-2019, IEEE Standard for Floating-Point Arithmetic. Institute of Electrical and Electronics Engineers.
  4. IEEE 1788-2015, IEEE Standard for Interval Arithmetic. Institute of Electrical and Electronics Engineers.
  5. Higham, N. J. Accuracy and Stability of Numerical Algorithms, 2nd edition. Society for Industrial and Applied Mathematics, 2002.
  6. Anderson, E. et al. LAPACK Users' Guide, 3rd edition. Society for Industrial and Applied Mathematics, 1999.

AI Suggested Questions

  • Show me a 5x5 matrix that is nonsingular but has a condition number above 10^13, and demonstrate how far the computed solution drifts.
  • Assemble an unrestrained plane truss stiffness matrix and confirm that its nullity is exactly three, identifying each rigid-body mode.
  • Explain why strict diagonal dominance guarantees nonsingularity, and give a matrix that is nonsingular without being diagonally dominant.
  • Compare LU with a condition estimate against SVD for deciding whether a 1000x1000 system matrix should be trusted.
  • For a singular 6x6 matrix with deficiency 2, work out the minimal set of extra constraints that restores nonsingularity.
  • How does invertibility of a matrix over the integers modulo 26 differ from invertibility over the rationals, using a Hill cipher key as the example?

Related Calculators

Continue learning

Algebraic and Geometric Multiplicities of Eigenvalues | KEVOS® MathematicsArticle · Project ManagementAmitsur’s Theorem on the Radical of a Polynomial Ring | KEVOS®Article · Project ManagementAmitsur’s Theorem on the Radical of an Algebra of Small Dimension | KEVOS®Article · Project ManagementArchetypes: Reference Catalogue of Worked Systems | KEVOS® MathematicsArticle · Project Management