Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Rank (linear algebra)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Dimension of the column space of a matrix}} In [[linear algebra]], the '''rank''' of a [[matrix (mathematics)|matrix]] {{mvar|A}} is the [[Dimension (vector space)|dimension]] of the [[vector space]] generated (or [[Linear span|spanned]]) by its columns.<ref>{{Harvard citation text|Axler|2015}} pp. 111-112, §§ 3.115, 3.119</ref><ref name=":0">{{Harvard citation text|Roman|2005}} p. 48, § 1.16</ref><ref>Bourbaki, ''Algebra'', ch. II, §10.12, p. 359</ref> This corresponds to the maximal number of [[linearly independent]] columns of {{mvar|A}}. This, in turn, is identical to the dimension of the vector space spanned by its rows.<ref name="mackiw">{{Citation| last=Mackiw| first=G. | title=A Note on the Equality of the Column and Row Rank of a Matrix | year=1995| journal=[[Mathematics Magazine]] | volume=68| issue=4 | pages=285–286 | doi=10.1080/0025570X.1995.11996337 }}</ref> Rank is thus a measure of the "[[Degenerate form|nondegenerateness]]" of the [[system of linear equations]] and [[linear transformation]] encoded by {{mvar|A}}. There are multiple equivalent definitions of rank. A matrix's rank is one of its most fundamental characteristics. The rank is commonly denoted by {{math|rank(''A'')}} or {{math|rk(''A'')}};<ref name=":0" /> sometimes the parentheses are not written, as in {{math|rank ''A''}}.<ref group="lower-roman">Alternative notation includes <math>\rho (\Phi)</math> from {{Harvard citation text|Katznelson|Katznelson|2008|p=52, §2.5.1}} and {{Harvard citation text|Halmos|1974|p=90, § 50}}.</ref> == Main definitions == In this section, we give some definitions of the rank of a matrix. Many definitions are possible; see [[#Alternative definitions|Alternative definitions]] for several of these. The '''column rank''' of {{mvar|A}} is the [[dimension (linear algebra)|dimension]] of the [[column space]] of {{mvar|A}}, while the '''row rank''' of {{mvar|A}} is the dimension of the [[row space]] of {{mvar|A}}. A fundamental result in linear algebra is that the column rank and the row rank are always equal. (Three proofs of this result are given in {{slink||2=Proofs that column rank = row rank}}, below.) This number (i.e., the number of linearly independent rows or columns) is simply called the '''rank''' of {{mvar|A}}. A matrix is said to have '''full rank''' if its rank equals the largest possible for a matrix of the same dimensions, which is the lesser of the number of rows and columns. A matrix is said to be '''rank-deficient''' if it does not have full rank. The '''rank deficiency''' of a matrix is the difference between the lesser of the number of rows and columns, and the rank. The rank of a [[linear map]] or operator <math>\Phi</math> is defined as the dimension of its [[Image (mathematics)|image]]:<ref>{{Harvard citation text|Hefferon|2020}} p. 200, ch. 3, Definition 2.1</ref><ref>{{Harvard citation text|Katznelson|Katznelson|2008}} p. 52, § 2.5.1</ref><ref>{{Harvard citation text|Valenza|1993}} p. 71, § 4.3</ref><ref>{{Harvard citation text|Halmos|1974}} p. 90, § 50</ref><math display="block">\operatorname{rank} (\Phi) := \dim (\operatorname{img} (\Phi))</math>where <math>\dim</math> is the dimension of a vector space, and <math>\operatorname{img}</math> is the image of a map. == Examples == The matrix <math display="block">\begin{bmatrix} 1 & 0 & 1\\ 0 & 1 & 1\\ 0 & 1 & 1 \end{bmatrix}</math> has rank 2: the first two columns are [[linear dependence|linearly independent]], so the rank is at least 2, but since the third is a linear combination of the first two (the first column plus the second), the three columns are linearly dependent so the rank must be less than 3. The matrix <math display="block">A=\begin{bmatrix}1&1&0&2\\-1&-1&0&-2\end{bmatrix}</math> has rank 1: there are nonzero columns, so the rank is positive, but any pair of columns is linearly dependent. Similarly, the [[transpose]] <math display="block">A^{\mathrm T} = \begin{bmatrix}1&-1\\1&-1\\0&0\\2&-2\end{bmatrix}</math> of {{mvar|A}} has rank 1. Indeed, since the column vectors of {{mvar|A}} are the row vectors of the [[transpose]] of {{mvar|A}}, the statement that the column rank of a matrix equals its row rank is equivalent to the statement that the rank of a matrix is equal to the rank of its transpose, i.e., {{math|1=rank(''A'') = rank(''A''<sup>T</sup>)}}. ==Computing the rank of a matrix== === Rank from row echelon forms === {{main|Gaussian elimination}} A common approach to finding the rank of a matrix is to reduce it to a simpler form, generally [[row echelon form]], by [[elementary row operations]]. Row operations do not change the row space (hence do not change the row rank), and, being invertible, map the column space to an isomorphic space (hence do not change the column rank). Once in row echelon form, the rank is clearly the same for both row rank and column rank, and equals the number of [[Pivot_element|pivots]] (or basic columns) and also the number of non-zero rows. For example, the matrix {{mvar|A}} given by <math display="block">A=\begin{bmatrix}1&2&1\\-2&-3&1\\3&5&0\end{bmatrix}</math> can be put in reduced row-echelon form by using the following elementary row operations: <math display="block">\begin{align} \begin{bmatrix}1&2&1\\-2&-3&1\\3&5&0\end{bmatrix} &\xrightarrow{2R_1 + R_2 \to R_2} \begin{bmatrix}1&2&1\\0&1&3\\3&5&0\end{bmatrix} \xrightarrow{-3R_1 + R_3 \to R_3} \begin{bmatrix}1&2&1\\0&1&3\\0&-1&-3\end{bmatrix} \\ &\xrightarrow{R_2 + R_3 \to R_3} \,\, \begin{bmatrix}1&2&1\\0&1&3\\0&0&0\end{bmatrix} \xrightarrow{-2R_2 + R_1 \to R_1} \begin{bmatrix}1&0&-5\\0&1&3\\0&0&0\end{bmatrix}~. \end{align}</math> The final matrix (in reduced row echelon form) has two non-zero rows and thus the rank of matrix {{mvar|A}} is 2. === Computation === When applied to [[floating point]] computations on computers, basic Gaussian elimination ([[LU decomposition]]) can be unreliable, and a rank-revealing decomposition should be used instead. An effective alternative is the [[singular value decomposition]] (SVD), but there are other less computationally expensive choices, such as [[QR decomposition]] with pivoting (so-called [[rank-revealing QR factorization]]), which are still more numerically robust than Gaussian elimination. Numerical determination of rank requires a criterion for deciding when a value, such as a singular value from the SVD, should be treated as zero, a practical choice which depends on both the matrix and the application. == Proofs that column rank = row rank == ===Proof using row reduction=== The fact that the column and row ranks of any matrix are equal forms is fundamental in linear algebra. Many proofs have been given. One of the most elementary ones has been sketched in {{slink||Rank from row echelon forms}}. Here is a variant of this proof: It is straightforward to show that neither the row rank nor the column rank are changed by an [[elementary row operation]]. As [[Gaussian elimination]] proceeds by elementary row operations, the [[reduced row echelon form]] of a matrix has the same row rank and the same column rank as the original matrix. Further elementary column operations allow putting the matrix in the form of an [[identity matrix]] possibly bordered by rows and columns of zeros. Again, this changes neither the row rank nor the column rank. It is immediate that both the row and column ranks of this resulting matrix is the number of its nonzero entries. We present two other proofs of this result. The first uses only basic properties of [[linear combination]]s of vectors, and is valid over any [[field (mathematics)|field]]. The proof is based upon Wardlaw (2005).<ref name="wardlaw"> {{Citation| last=Wardlaw| first=William P.| title=Row Rank Equals Column Rank| year=2005| journal=[[Mathematics Magazine]]| volume=78| issue=4| pages=316–318| doi=10.1080/0025570X.2005.11953349| s2cid=218542661}}</ref> The second uses [[orthogonality]] and is valid for matrices over the [[real numbers]]; it is based upon Mackiw (1995).<ref name="mackiw" /> Both proofs can be found in the book by Banerjee and Roy (2014).<ref name="banerjee-roy">{{Citation | last1 = Banerjee | first1 = Sudipto | last2 = Roy | first2 = Anindya | date = 2014 | title = Linear Algebra and Matrix Analysis for Statistics | series = Texts in Statistical Science | publisher = Chapman and Hall/CRC | edition = 1st | isbn = 978-1420095388}}</ref> ===Proof using linear combinations=== Let {{mvar|A}} be an {{math|''m'' × ''n''}} matrix. Let the column rank of {{mvar|A}} be {{mvar|r}}, and let {{math|'''c'''<sub>1</sub>, ..., '''c'''<sub>''r''</sub>}} be any basis for the column space of {{mvar|A}}. Place these as the columns of an {{math|''m'' × ''r''}} matrix {{mvar|C}}. Every column of {{mvar|A}} can be expressed as a linear combination of the {{mvar|r}} columns in {{mvar|C}}. This means that there is an {{math|''r'' × ''n''}} matrix {{mvar|R}} such that {{math|1=''A'' = ''CR''}}. {{mvar|R}} is the matrix whose {{mvar|i}}th column is formed from the coefficients giving the {{mvar|i}}th column of {{mvar|A}} as a linear combination of the {{mvar|r}} columns of {{mvar|C}}. In other words, {{mvar|R}} is the matrix which contains the multiples for the bases of the column space of {{mvar|A}} (which is {{mvar|C}}), which are then used to form {{mvar|A}} as a whole. Now, each row of {{mvar|A}} is given by a linear combination of the {{mvar|r}} rows of {{mvar|R}}. Therefore, the rows of {{mvar|R}} form a spanning set of the row space of {{mvar|A}} and, by the [[Steinitz exchange lemma]], the row rank of {{mvar|A}} cannot exceed {{mvar|r}}. This proves that the row rank of {{mvar|A}} is less than or equal to the column rank of {{mvar|A}}. This result can be applied to any matrix, so apply the result to the transpose of {{mvar|A}}. Since the row rank of the transpose of {{mvar|A}} is the column rank of {{mvar|A}} and the column rank of the transpose of {{mvar|A}} is the row rank of {{mvar|A}}, this establishes the reverse inequality and we obtain the equality of the row rank and the column rank of {{mvar|A}}. (Also see [[Rank factorization]].) ===Proof using orthogonality=== Let {{mvar|A}} be an {{math|''m'' × ''n''}} matrix with entries in the [[real number]]s whose row rank is {{mvar|r}}. Therefore, the dimension of the row space of {{mvar|A}} is {{mvar|r}}. Let {{math|'''x'''<sub>1</sub>, '''x'''<sub>2</sub>, …, '''x'''<sub>''r''</sub>}} be a [[basis (linear algebra)|basis]] of the row space of {{mvar|A}}. We claim that the vectors {{math|''A'''''x'''<sub>1</sub>, ''A'''''x'''<sub>2</sub>, …, ''A'''''x'''<sub>''r''</sub>}} are [[linearly independent]]. To see why, consider a linear homogeneous relation involving these vectors with scalar coefficients {{math|''c''<sub>1</sub>, ''c''<sub>2</sub>, …, ''c<sub>r</sub>''}}: <math display="block">0 = c_1 A\mathbf{x}_1 + c_2 A\mathbf{x}_2 + \cdots + c_r A\mathbf{x}_r = A(c_1 \mathbf{x}_1 + c_2 \mathbf{x}_2 + \cdots + c_r \mathbf{x}_r) = A\mathbf{v}, </math> where {{math|1='''v''' = ''c''<sub>1</sub>'''x'''<sub>1</sub> + ''c''<sub>2</sub>'''x'''<sub>2</sub> + ⋯ + ''c<sub>r</sub>'''''x'''<sub>''r''</sub>}}. We make two observations: (a) {{math|'''v'''}} is a linear combination of vectors in the row space of {{mvar|A}}, which implies that {{math|'''v'''}} belongs to the row space of {{mvar|A}}, and (b) since {{math|1=''A'''''v''' = 0}}, the vector {{math|'''v'''}} is [[orthogonal]] to every row vector of {{mvar|A}} and, hence, is orthogonal to every vector in the row space of {{mvar|A}}. The facts (a) and (b) together imply that {{math|'''v'''}} is orthogonal to itself, which proves that {{math|1='''v''' = 0}} or, by the definition of {{math|'''v'''}}, <math display="block">c_1\mathbf{x}_1 + c_2\mathbf{x}_2 + \cdots + c_r \mathbf{x}_r = 0.</math> But recall that the {{math|'''x'''<sub>''i''</sub>}} were chosen as a basis of the row space of {{mvar|A}} and so are linearly independent. This implies that {{math|1=''c''<sub>1</sub> = ''c''<sub>2</sub> = ⋯ = ''c<sub>r</sub>'' = 0}}. It follows that {{math|''A'''''x'''<sub>1</sub>, ''A'''''x'''<sub>2</sub>, …, ''A'''''x'''<sub>''r''</sub>}} are linearly independent. Now, each {{math|''A'''''x'''<sub>''i''</sub>}} is obviously a vector in the column space of {{mvar|A}}. So, {{math|''A'''''x'''<sub>1</sub>, ''A'''''x'''<sub>2</sub>, …, ''A'''''x'''<sub>''r''</sub>}} is a set of {{mvar|r}} linearly independent vectors in the column space of {{mvar|A}} and, hence, the dimension of the column space of {{mvar|A}} (i.e., the column rank of {{mvar|A}}) must be at least as big as {{mvar|r}}. This proves that row rank of {{mvar|A}} is no larger than the column rank of {{mvar|A}}. Now apply this result to the transpose of {{mvar|A}} to get the reverse inequality and conclude as in the previous proof. == Alternative definitions == In all the definitions in this section, the matrix {{mvar|A}} is taken to be an {{math|''m'' × ''n''}} matrix over an arbitrary [[Field (mathematics)|field]] {{mvar|F}}. === Dimension of image === Given the matrix <math>A</math>, there is an associated [[linear mapping]] <math display="block">f : F^n \to F^m</math> defined by <math display="block">f(x) = Ax.</math> The rank of <math>A</math> is the dimension of the image of <math>f</math>. This definition has the advantage that it can be applied to any linear map without need for a specific matrix. === Rank in terms of nullity === Given the same linear mapping {{mvar|f}} as above, the rank is {{mvar|n}} minus the dimension of the [[kernel (algebra)|kernel]] of {{mvar|f}}. The [[rank–nullity theorem]] states that this definition is equivalent to the preceding one. === Column rank – dimension of column space === The rank of {{mvar|A}} is the maximal number of linearly independent columns <math>\mathbf{c}_1,\mathbf{c}_2,\dots,\mathbf{c}_k</math> of {{mvar|A}}; this is the [[dimension of a vector space|dimension]] of the [[column space]] of {{mvar|A}} (the column space being the subspace of {{math|''F''<sup>''m''</sup>}} generated by the columns of {{mvar|A}}, which is in fact just the image of the linear map {{mvar|f}} associated to {{mvar|A}}). === Row rank – dimension of row space === The rank of {{mvar|A}} is the maximal number of linearly independent rows of {{mvar|A}}; this is the dimension of the [[row space]] of {{mvar|A}}. === Decomposition rank === The rank of {{mvar|A}} is the smallest positive integer {{mvar|k}} such that {{mvar|A}} can be factored as <math>A = CR</math>, where {{mvar|C}} is an {{math|''m'' × ''k''}} matrix and {{mvar|R}} is a {{math|''k'' × ''n''}} matrix. In fact, for all integers {{mvar|k}}, the following are equivalent: # the column rank of {{mvar|A}} is less than or equal to {{mvar|k}}, # there exist {{mvar|k}} columns <math>\mathbf{c}_1,\ldots,\mathbf{c}_k</math> of size {{mvar|m}} such that every column of {{mvar|A}} is a linear combination of <math>\mathbf{c}_1,\ldots,\mathbf{c}_k</math>, # there exist an <math>m \times k</math> matrix {{mvar|C}} and a <math>k \times n</math> matrix {{mvar|R}} such that <math>A = CR</math> (when {{mvar|k}} is the rank, this is a [[rank factorization]] of {{mvar|A}}), # there exist {{mvar|k}} rows <math>\mathbf{r}_1,\ldots,\mathbf{r}_k</math> of size {{mvar|n}} such that every row of {{mvar|A}} is a linear combination of <math>\mathbf{r}_1,\ldots,\mathbf{r}_k</math>, # the row rank of {{mvar|A}} is less than or equal to {{mvar|k}}. Indeed, the following equivalences are obvious: <math>(1)\Leftrightarrow(2)\Leftrightarrow(3)\Leftrightarrow(4)\Leftrightarrow(5)</math>. For example, to prove (3) from (2), take {{mvar|C}} to be the matrix whose columns are <math>\mathbf{c}_1,\ldots,\mathbf{c}_k</math> from (2). To prove (2) from (3), take <math>\mathbf{c}_1,\ldots,\mathbf{c}_k</math> to be the columns of {{mvar|C}}. It follows from the equivalence <math>(1)\Leftrightarrow(5)</math> that the row rank is equal to the column rank. As in the case of the "dimension of image" characterization, this can be generalized to a definition of the rank of any linear map: the rank of a linear map {{math|''f'' : ''V'' → ''W''}} is the minimal dimension {{mvar|k}} of an intermediate space {{mvar|X}} such that {{mvar|f}} can be written as the composition of a map {{math|''V'' → ''X''}} and a map {{math|''X'' → ''W''}}. Unfortunately, this definition does not suggest an efficient manner to compute the rank (for which it is better to use one of the alternative definitions). See [[rank factorization]] for details. === Rank in terms of singular values === The rank of {{mvar|A}} equals the number of non-zero [[Singular value decomposition|singular values]], which is the same as the number of non-zero diagonal elements in Σ in the [[singular value decomposition]] {{nowrap|<math>A = U \Sigma V^*</math>.}} === Determinantal rank – size of largest non-vanishing minor === The rank of {{mvar|A}} is the largest order of any non-zero [[Minor (linear algebra)|minor]] in {{mvar|A}}. (The order of a minor is the side-length of the square sub-matrix of which it is the determinant.) Like the decomposition rank characterization, this does not give an efficient way of computing the rank, but it is useful theoretically: a single non-zero minor witnesses a lower bound (namely its order) for the rank of the matrix, which can be useful (for example) to prove that certain operations do not lower the rank of a matrix. A non-vanishing {{mvar|p}}-minor ({{math|''p'' × ''p''}} submatrix with non-zero determinant) shows that the rows and columns of that submatrix are linearly independent, and thus those rows and columns of the full matrix are linearly independent (in the full matrix), so the row and column rank are at least as large as the determinantal rank; however, the converse is less straightforward. The equivalence of determinantal rank and column rank is a strengthening of the statement that if the span of {{mvar|n}} vectors has dimension {{mvar|p}}, then {{mvar|p}} of those vectors span the space (equivalently, that one can choose a spanning set that is a ''subset'' of the vectors): the equivalence implies that a subset of the rows and a subset of the columns simultaneously define an invertible submatrix (equivalently, if the span of {{mvar|n}} vectors has dimension {{mvar|p}}, then {{mvar|p}} of these vectors span the space ''and'' there is a set of {{mvar|p}} coordinates on which they are linearly independent). === Tensor rank – minimum number of simple tensors === {{Main|Tensor rank decomposition|Tensor rank}} The rank of {{mvar|A}} is the smallest number {{mvar|k}} such that {{mvar|A}} can be written as a sum of {{mvar|k}} rank 1 matrices, where a matrix is defined to have rank 1 if and only if it can be written as a nonzero product <math>c \cdot r</math> of a column vector {{mvar|c}} and a row vector {{mvar|r}}. This notion of rank is called [[tensor rank]]; it can be generalized in the [[Singular value decomposition#Separable models|separable models]] interpretation of the [[singular value decomposition]]. == Properties == We assume that {{mvar|A}} is an {{math|''m'' × ''n''}} matrix, and we define the linear map {{mvar|f}} by {{math|1=''f''('''x''') = ''A'''''x'''}} as above. * The rank of an {{math|1=''m'' × ''n''}} matrix is a [[nonnegative]] [[integer]] and cannot be greater than either {{mvar|m}} or {{mvar|n}}. That is, <math display="block">\operatorname{rank}(A) \le \min(m, n).</math> A matrix that has rank {{math|min(''m'', ''n'')}} is said to have ''full rank''; otherwise, the matrix is ''rank deficient''. * Only a [[zero matrix]] has rank zero. * {{mvar|f}} is [[injective function|injective]] (or "one-to-one") if and only if {{mvar|A}} has rank {{mvar|n}} (in this case, we say that {{mvar|A}} has ''full column rank''). * {{mvar|f}} is [[surjective function|surjective]] (or "onto") if and only if {{mvar|A}} has rank {{mvar|m}} (in this case, we say that {{mvar|A}} has ''full row rank''). * If {{mvar|A}} is a square matrix (i.e., {{math|1=''m'' = ''n''}}), then {{mvar|A}} is [[invertible matrix|invertible]] if and only if {{mvar|A}} has rank {{mvar|n}} (that is, {{mvar|A}} has full rank). * If {{mvar|B}} is any {{math|''n'' × ''k''}} matrix, then <math display="block">\operatorname{rank}(AB) \leq \min(\operatorname{rank}(A), \operatorname{rank}(B)).</math> * If {{mvar|B}} is an {{math|''n'' × ''k''}} matrix of rank {{mvar|n}}, then <math display="block">\operatorname{rank}(AB) = \operatorname{rank}(A).</math> * If {{mvar|C}} is an {{math|''l'' × ''m''}} matrix of rank {{mvar|m}}, then <math display="block">\operatorname{rank}(CA) = \operatorname{rank}(A).</math> * The rank of {{mvar|A}} is equal to {{mvar|r}} if and only if there exists an invertible {{math|''m'' × ''m''}} matrix {{mvar|X}} and an invertible {{math|''n'' × ''n''}} matrix {{mvar|Y}} such that <math display="block"> XAY = \begin{bmatrix} I_r & 0 \\ 0 & 0 \end{bmatrix},</math> where {{math|''I''<sub>''r''</sub>}} denotes the {{math|''r'' × ''r''}} [[identity matrix]] and the three [[zero matrix|zero matrices]] have the sizes {{math|''r'' × (''n'' − ''r'')}}, {{math|(''m'' − ''r'') × ''r''}} and {{math|(''m'' − ''r'') × (''n'' − ''r'')}}. * '''[[James Joseph Sylvester|Sylvester]]’s rank inequality''': if {{mvar|A}} is an {{math|''m'' × ''n''}} matrix and {{mvar|B}} is {{math|''n'' × ''k''}}, then<ref group="lower-roman">Proof: Apply the [[rank–nullity theorem]] to the inequality <math display="block">\dim \ker(AB) \le \dim \ker(A) + \dim \ker(B).</math></ref> <math display="block">\operatorname{rank}(A) + \operatorname{rank}(B) - n \leq \operatorname{rank}(A B).</math> This is a special case of the next inequality. * The inequality due to [[Ferdinand Georg Frobenius|Frobenius]]: if {{math|''AB''}}, {{math|''ABC''}} and {{math|''BC''}} are defined, then<ref group="lower-roman">Proof. The map<math display="block">C: \ker(ABC) / \ker(BC) \to \ker(AB) / \ker(B)</math>is well-defined and injective. We thus obtain the inequality in terms of dimensions of kernel, which can then be converted to the inequality in terms of ranks by the [[rank–nullity theorem]]. Alternatively, if <math>M</math> is a linear subspace then <math>\dim (AM) \leq \dim (M)</math>; apply this inequality to the subspace defined by the orthogonal complement of the image of <math>BC</math> in the image of <math>B</math>, whose dimension is <math>\operatorname{rank} (B) - \operatorname{rank} (BC)</math>; its image under <math>A</math> has dimension <math>\operatorname{rank} (AB) - \operatorname{rank} (ABC)</math>.</ref> <math display="block">\operatorname{rank}(AB) + \operatorname{rank}(BC) \le \operatorname{rank}(B) + \operatorname{rank}(ABC).</math> * Subadditivity: <math display="block">\operatorname{rank}(A+ B) \le \operatorname{rank}(A) + \operatorname{rank}(B) </math> when {{mvar|A}} and {{mvar|B}} are of the same dimension. As a consequence, a rank-{{mvar|k}} matrix can be written as the sum of {{mvar|k}} rank-1 matrices, but not fewer. * The rank of a matrix plus the [[Kernel (matrix)|nullity]] of the matrix equals the number of columns of the matrix. (This is the [[rank–nullity theorem]].) * If {{mvar|A}} is a matrix over the [[real numbers]] then the rank of {{mvar|A}} and the rank of its corresponding [[Gram matrix]] are equal. Thus, for real matrices <math display="block">\operatorname{rank}(A^\mathrm{T} A) = \operatorname{rank}(A A^\mathrm{T}) = \operatorname{rank}(A) = \operatorname{rank}(A^\mathrm{T}).</math> This can be shown by proving equality of their [[kernel (matrix)|null spaces]]. The null space of the Gram matrix is given by vectors {{math|'''x'''}} for which <math>A^\mathrm{T} A \mathbf{x} = 0.</math> If this condition is fulfilled, we also have <math>0 = \mathbf{x}^\mathrm{T} A^\mathrm{T} A \mathbf{x} = \left| A \mathbf{x} \right| ^2.</math><ref>{{cite book| last = Mirsky| first = Leonid| title = An introduction to linear algebra| year = 1955| publisher = Dover Publications| isbn = 978-0-486-66434-7 }}</ref> * If {{mvar|A}} is a matrix over the [[complex numbers]] and <math>\overline{A}</math> denotes the complex conjugate of {{mvar|A}} and {{math|''A''<sup>∗</sup>}} the conjugate transpose of {{mvar|A}} (i.e., the [[Hermitian adjoint|adjoint]] of {{mvar|A}}), then <math display="block">\operatorname{rank}(A) = \operatorname{rank}(\overline{A}) = \operatorname{rank}(A^\mathrm{T}) = \operatorname{rank}(A^*) = \operatorname{rank}(A^*A) = \operatorname{rank}(AA^*).</math> == Applications == One useful application of calculating the rank of a matrix is the computation of the number of solutions of a [[system of linear equations]]. According to the [[Rouché–Capelli theorem]], the system is inconsistent if the rank of the [[augmented matrix]] is greater than the rank of the [[coefficient matrix]]. If on the other hand, the ranks of these two matrices are equal, then the system must have at least one solution. The solution is unique if and only if the rank equals the number of variables. Otherwise the general solution has {{mvar|k}} free parameters where {{mvar|k}} is the difference between the number of variables and the rank. In this case (and assuming the system of equations is in the real or complex numbers) the system of equations has infinitely many solutions. In [[control theory]], the rank of a matrix can be used to determine whether a [[linear system]] is [[controllability|controllable]], or [[observability|observable]]. In the field of [[communication complexity]], the rank of the communication matrix of a function gives bounds on the amount of communication needed for two parties to compute the function. ==Generalization== There are different generalizations of the concept of rank to matrices over arbitrary [[ring (mathematics)|ring]]s, where column rank, row rank, dimension of column space, and dimension of row space of a matrix may be different from the others or may not exist. Thinking of matrices as [[tensors]], the [[tensor rank]] generalizes to arbitrary tensors; for tensors of order greater than 2 (matrices are order 2 tensors), rank is very hard to compute, unlike for matrices. There is a notion of [[rank (differential topology)|rank]] for [[smooth map]]s between [[smooth manifold]]s. It is equal to the linear rank of the [[pushforward (differential)|derivative]]. ==Matrices as tensors== Matrix rank should not be confused with [[tensor order]], which is called tensor rank. Tensor order is the number of indices required to write a [[tensor]], and thus matrices all have tensor order 2. More precisely, matrices are tensors of type (1,1), having one row index and one column index, also called covariant order 1 and contravariant order 1; see [[Tensor (intrinsic definition)]] for details. The tensor rank of a matrix can also mean the minimum number of [[simple tensor]]s necessary to express the matrix as a linear combination, and that this definition does agree with matrix rank as here discussed. == See also == * [[Matroid rank]] * [[Nonnegative rank (linear algebra)]] * [[Rank (differential topology)]] * [[Multicollinearity]] * [[Linear dependence]] ==Notes== {{notelist-lr}} ==References== {{reflist}} == Sources == * {{Cite book|last=Axler|first=Sheldon|title=Linear Algebra Done Right|publisher=[[Springer Science+Business Media | Springer]]| year=2015|isbn=978-3-319-11079-0|edition=3rd|series=[[Undergraduate Texts in Mathematics]]|location=|pages=|author-link=Sheldon Axler}} * {{Cite book|last=Halmos|first=Paul Richard|title=Finite-Dimensional Vector Spaces|publisher=[[Springer Science+Business Media | Springer]]|year=1974|isbn=0-387-90093-4|edition=2nd|series=[[Undergraduate Texts in Mathematics]]| volume=|location=|pages=| author-link=Paul Halmos|orig-year=1958}} * {{Cite book|last=Hefferon|first=Jim|url=|title=Linear Algebra|publisher=Orthogonal Publishing L3C|year=2020|isbn=978-1-944325-11-4|edition=4th|series=| location=|pages=|author-link=Jim Hefferon}} * {{Cite book|last1=Katznelson|first1=Yitzhak|title=A (Terse) Introduction to Linear Algebra|last2=Katznelson|first2=Yonatan R.| year=2008|publisher=[[American Mathematical Society]]|isbn=978-0-8218-4419-9|volume=|publication-date=2008|pages=|author-link=Yitzhak Katznelson}} * {{Cite book|last=Roman|first=Steven|title=Advanced Linear Algebra|publisher=[[Springer Science+Business Media|Springer]]| year=2005|isbn=0-387-24766-1|edition=2nd|series=[[Undergraduate Texts in Mathematics]]|location=|pages=|author-link=Steven Roman}} * {{Cite book|last=Valenza|first=Robert J.|title=Linear Algebra: An Introduction to Abstract Mathematics|publisher=[[Springer Science+Business Media | Springer]]|year=1993|isbn=3-540-94099-5|edition=3rd|series=[[Undergraduate Texts in Mathematics]]| location=|pages=|orig-year=1951}} ==Further reading== * {{cite book| author = Roger A. Horn and Charles R. Johnson| title = Matrix Analysis| year = 1985| publisher = Cambridge University Press| isbn = 978-0-521-38632-6 }} * Kaw, Autar K. Two Chapters from the book Introduction to Matrix Algebra: 1. Vectors [http://numericalmethods.eng.usf.edu/mws/che/04sle/mws_che_sle_bck_vectors.pdf] and System of Equations [http://numericalmethods.eng.usf.edu/mws/che/04sle/mws_che_sle_bck_system.pdf] * Mike Brookes: Matrix Reference Manual. [http://www.ee.ic.ac.uk/hp/staff/dmb/matrix/property.html#rank] {{linear algebra}} {{DEFAULTSORT:Rank (Linear Algebra)}} [[Category:Linear algebra]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Citation
(
edit
)
Template:Cite book
(
edit
)
Template:Harvard citation text
(
edit
)
Template:Linear algebra
(
edit
)
Template:Main
(
edit
)
Template:Math
(
edit
)
Template:Mvar
(
edit
)
Template:Navbox
(
edit
)
Template:Notelist-lr
(
edit
)
Template:Nowrap
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)
Template:Slink
(
edit
)