Finding Set of Solutions From Rref
Determinants and Eigenvalues
Stephen Andrilli , David Hecker , in Elementary Linear Algebra (Fifth Edition), 2016
Determinant Criterion for Matrix Singularity
The next theorem gives an alternative way of determining whether the inverse of a given square matrix exists.
Theorem 3.5
An n × n matrix A is nonsingular if and only if
Proof
Let D be the unique matrix in reduced row echelon form for A. Now, using Theorem 3.3, we see that a single row operation of any type cannot convert a matrix having a nonzero determinant to a matrix having a zero determinant (why?). Because A is converted to D using a finite number of such row operations, Theorem 3.3 assures us that and are either both zero or both nonzero.
Now, if A is nonsingular (which implies D =I n ), we know that and therefore and we have completed half of the proof.
For the other half, assume that . Then . Because D is a square matrix with a staircase pattern of pivots, it is upper triangular. Because , Theorem 3.2 asserts that all main diagonal entries of D are nonzero. Hence, they are all pivots, and D =I n . Therefore, row reduction transforms A to I n , so A is nonsingular.
Notice that Theorem 3.5 agrees with Theorem 2.14 in asserting that an inverse for exists if and only if
Theorems 2.15 and 3.5 together imply the following:
Corollary 3.6
Let A be an n × n matrix. Then rank(A) = n if and only if
Example 6
Consider the matrix Now, Hence, rank(A) = 2 by Corollary 3.6. Also, because A is the coefficient matrix of the system
and this system has a unique solution by Theorem 2.16. In fact, the solution is (2,3).
On the other hand, for the matrix
we have |B|=0. Thus, rank(B) < 3. Also, because B is the coefficient matrix for the homogeneous system
this system has nontrivial solutions by Theorem 2.2. You can verify that its complete solution set is
For reference, we summarize many of the results obtained in Chapters 2 and 3 in Table 3.1. You should be able to justify each equivalence in Table 3.1 by citing a relevant definition or result.
Table 3.1. Equivalent conditions for singular and nonsingular matrices
For an n×n matrix A, the following are all equivalent: | For an n×n matrix A, the following are all equivalent: |
---|---|
A is singular (A −1 does not exist). | A is nonsingular (A −1 exists). |
Rank(A)≠n. | Rank(A) = n. |
A is not row equivalent to I n . | A is row equivalent to I n . |
AX = 0 has a nontrivial solution for X. | AX = 0 has only the trivial solution for X. |
AX = B does not have a unique solution (no solutions or infinitely many solutions). | AX = B has a unique solution for X (namely, X =A −1 B). |
Read full chapter
URL:
https://www.sciencedirect.com/science/article/pii/B9780128008539000037
Determinants and Eigenvalues
Stephen Andrilli , David Hecker , in Elementary Linear Algebra (Fourth Edition), 2010
Determinant Criterion for Matrix Singularity
The next theorem gives an alternative way of determining whether the inverse of a given square matrix exists.
Theorem 3.5
An n × n matrix A is nonsingular if and only if |A| ≠ 0.
Proof
Let D be the unique matrix in reduced row echelon form for A. Now, using Theorem 3.3, we see that a single row operation of type (I), (II), or (III) cannot convert a matrix having a nonzero determinant to a matrix having a zero determinant (why?). Because A is converted to D using a finite number of such row operations, Theorem 3.3 assures us that |A| and |D| are either both zero or both nonzero.
Now, if A is nonsingular (which implies D = I n ), we know that |D| = 1 ≠ 0 and therefore |A| ≠ 0, and we have completed half of the proof.
For the other half, assume that |A| ≠ 0. Then |D| ≠ 0. Because D is a square matrix with a staircase pattern of pivots, it is upper triangular. Because |D| ≠ 0, Theorem 3.2 asserts that all main diagonal entries of D are nonzero. Hence, they are all pivots, and D = I n . Therefore, row reduction transforms A to I n , so A is nonsingular.
Notice that Theorem 3.5 agrees with Theorem 2.13 in asserting that an inverse for exists if and only if .
Theorem 2.14 and Theorem 3.5 together imply the following:
Corollary 3.6
Let A be an n × n matrix. Then rankA = n if and only if |A| ≠ 0.
Example 6
Consider the matrix . Now, |A| = 23 ≠ 0. Hence, rank(A) = 2 by Corollary 3.6. Also, because A is the coefficient matrix of the system
and |A| ≠ 0, this system has a unique solution by Theorems 3.5 and 2.15. In fact, the solution is (2, 3).
On the other hand, the matrix
has determinant zero. Thus, rank(B) < 3. Also, because B is the coefficient matrix for the homogeneous system
this system has nontrivial solutions by Theorem 2.5. You can verify that its solution set is
For reference, we summarize many of the results obtained in Chapters 2 and 3 in Table 3.1. You should be able to justify each equivalence in Table 3.1 by citing a relevant definition or result.
Table 3.1. Equivalent conditions for singular and nonsingular matrices
Assume that A is an n × n matrix. Then the following are all equivalent: | Assume that A is an n × n matrix. Then the following are all equivalent: |
---|---|
A is singular (A −1 does not exist). | A is nonsingular (A −1 exists). |
Rank(A) ≠ n. | Rank(A) = n. |
|A = 0|. | |A ≠ 0|. |
A is not row equivalent to I n . | A is row equivalent to I n . |
AX = O has a nontrivial solution for X. | AX = O has only the trivial solution for X. |
AX = B does not have a unique solution (no solutions or infinitely many solutions). | AX = B has a unique solution for X (namely, X = A −1 B). |
Highlights
- ■
-
The determinant of an upper (or lower) triangular matrix is the product of the main diagonal entries.
- ■
-
A row operation of type (I) involving multiplication by c multiplies the determinant by c.
- ■
-
A row operation of type (II) has no effect on the determinant.
- ■
-
A row operation of type (III) negates the determinant.
- ■
-
If an n × n matrix A is multiplied by c to produce B, then |B| = cn |A|.
- ■
-
The determinant of a matrix can be found by row reducing the matrix to upper triangular form and keeping track of the row operations performed and their effects on the determinant.
- ■
-
An n × n matrix A is nonsingular iff |A| ≠ 0 iff rank(A) = n.
Read full chapter
URL:
https://www.sciencedirect.com/science/article/pii/B9780123747518000226
Systems of Linear Equations
Stephen Andrilli , David Hecker , in Elementary Linear Algebra (Fourth Edition), 2010
Homogeneous Systems
Definition
A system of linear equations having matrix form AX = O, where O represents a zero column matrix, is called a homogeneous system.
For example, the following are homogeneous systems:
Notice that homogeneous systems are always consistent. This is because all of the variables can be set equal to zero to satisfy all of the equations. This special solution, (0,0,…,0), is called the trivial solution. Any other solution of a homogeneous system is called a nontrivial solution. For example, (0,0) is the trivial solution to the first homogeneous system shown, but (9,6) is a nontrivial solution. Whenever a homogeneous system has a nontrivial solution, it actually has infinitely many solutions (why?).
An important result about homogeneous systems is the following:
If the reduced row echelon form augmented matrix for a homogeneous system in n variables has fewer than n nonzero pivot entries, then the system has a nontrivial solution.
Example 3
Consider the following 3 × 3 homogeneous systems:
After Gauss-Jordan row reduction, the final augmented matrices for these systems are, respectively,
The first system has only the trivial solution because all three columns are pivot columns. However, the second system has a nontrivial solution because only two of its three variable columns are pivot columns (that is, there is at least one nonpivot column). The complete solution set for the second system is
Notice that if there are fewer equations than variables in a homogeneous system, we are bound to get at least one nonpivot column. Therefore, such a homogeneous system always has nontrivial solutions.
Example 4
Consider the following homogeneous system:
Because this homogeneous system has fewer equations than variables, it has a nontrivial solution. To find all the solutions, we row reduce to obtain the final augmented matrix
The second, fourth, and fifth columns are nonpivot columns, so we can let x 2, x 4, and x 5 take on any real values — say, b, d, and e, respectively. The values of the remaining variables are then determined by solving the equations x 1 − 3b + 2d + 4e = 0, x 3 − 3d + 2e = 0, and x 6 = 0. The complete solution set is
The solutions for the homogeneous system in Example 4 can be expressed as linear combinations of three particular solutions as follows:
Each particular solution was found by setting one independent variable equal to 1 and the others equal to 0. We will frequently find it useful to express solutions in this way.
Read full chapter
URL:
https://www.sciencedirect.com/science/article/pii/B9780123747518000184
Systems of Linear Equations
Stephen Andrilli , David Hecker , in Elementary Linear Algebra (Fifth Edition), 2016
Homogeneous Systems
Definition
A system of linear equations having matrix form AX = 0, where 0 represents a zero column matrix, is called a homogeneous system.
For example, the following are homogeneous systems:
Notice that homogeneous systems are always consistent. This is because all of the variables can be set equal to zero to satisfy all of the equations. This special solution, (0,0,…,0), is called the trivial solution. Any other solution of a homogeneous system is called a nontrivial solution. For example, for the first homogeneous system shown, (0,0) is the trivial solution, but (9,6) is a nontrivial solution. Whenever a homogeneous system has a nontrivial solution, it actually has infinitely many solutions (why?).
An important result about homogeneous systems is the following:
Theorem 2.2
Let AX = 0 be a homogeneous system in n variables.
- (1)
-
If the reduced row echelon form for A has fewer than n nonzero pivot entries then the system has a nontrivial solution (and hence an infinite number of solutions).
- (2)
-
If the reduced row echelon form for A has exactly n nonzero pivot entries then the system has only the trivial solution.
Proof
Note that the augmented matrix for AX = 0 is . When row reducing this augmented matrix, the column of zeroes beyond the augmentation bar never changes. Hence, the pivots will be the same whether we are row reducing A or row reducing . Now, if there are fewer than n nonzero pivots for A, then some variable of the system is an independent variable, and so there are infinitely many solutions. That is, there are nontrivial solutions in addition to the trivial solution, which proves part (1) of the theorem. If there is a nonzero pivot for every column of A, then there is a unique solution — that is, the trivial solution — which proves part (2) of the theorem.
Example 3
Consider the following 3 ×3 homogeneous systems:
Applying Gauss-Jordan row reduction to the coefficient matrices for these systems, we obtain, respectively,
By part (1) of Theorem 2.2, the first system has a nontrivial solution because only 2 of the 3 columns of the coefficient matrix are pivot columns (that is, the coefficient matrix has at least one nonpivot column). Since the column of zeroes in the augmented matrix for this system is not affected by row reduction, the complete solution set for the first system is
On the other hand, by part (2) of Theorem 2.2, the second system has only the trivial solution because all 3 columns of the coefficient matrix are pivot columns.
Notice that if there are fewer equations than variables in a homogeneous system, we are bound to get at least one nonpivot column. Therefore, we have
Corollary 2.3
Let AX = 0 be a homogeneous system of m linear equations in n variables. If m < n, then the system has a nontrivial solution.
Example 4
Consider the following homogeneous system:
Because this homogeneous system has fewer equations than variables, it has a nontrivial solution. To find all the solutions, we row reduce to obtain the final augmented matrix
The 2nd, 4th, and 5th columns are nonpivot columns, so we can let x 2,x 4, and x 5 take on any real values — say, b,d, and e, respectively. The values of the remaining variables are then determined by solving the equations x 1 −3b + 2d + 4e = 0,x 3 −3d + 2e = 0, and x 6 = 0. The complete solution set is
Notice that the solutions for the homogeneous system in Example 4 can be expressed as linear combinations of three particular solutions as follows:
Each particular solution was found by setting one independent variable equal to 1 and the others equal to 0. We will frequently find it useful to express solutions to homogeneous systems in this way.
Read full chapter
URL:
https://www.sciencedirect.com/science/article/pii/B9780128008539000025
Distances Between Bent Functions
Natalia Tokareva , in Bent Functions, 2015
11.2 Classification of Bent Functions at the Minimal Distance from the Quadratic Bent Function
It is well known that extended affine equivalence preserves Hamming distances between Boolean functions—that is,
where A(⋅) is an arbitrary nondegenerate affine transformation of a Boolean function (i.e., a nondegenerate affine transformation of variables and adding an affine Boolean function; see Section 5.2).
According to Theorem 18, any quadratic bent function in n variables is equivalent to the function q(x) = x 1 x (n/2)+1 ⊕ x 2 x (n/2)+2 ⊕⋯ ⊕ x n/2 x n . It is convenient for us to deal with a quadratic bent function of this form. Thus, it is interesting to study bent functions at the minimal distance from only one bent function q.
To classify all bent functions at distance 2 n/2 from q let us introduce some notation. Let M be a binary k × n matrix in reduced row echelon form without zero rows. This means that
- •
-
the leading number (the first nonzero number from the left) of a nonzero row is always strictly to the right of the leading coefficient of the row above it;
- •
-
all entries in a column above a leading entry are zeroes;
- •
-
there are exactly k leading numbers.
Such a matrix is called also a Gaussian-Jordan matrix (without zero rows). So, M looks like
Note that for every linear subspace of dimension k there is a unique matrix M in the reduced row echelon form with rows being basic vectors. Then the matrix is usually called the Gaussian-Jordan matrix of a subspace L.
Denote by ℓ(M) the subset of positions of leading numbers of rows in a matrix M. For instance, in our example given above, ℓ(M) = {1,3,4,6,…}.
In general, let the Gaussian-Jordan matrix have the form
Let us call a Gaussian-Jordan n/2 × n matrix Madmissible of order t if the following conditions hold:
- •
-
A is a Gaussian-Jordan t × n/2 matrix.
- •
-
C is a Gaussian-Jordan (n/2 − t) × n/2 matrix.
- •
-
Linear subspaces of with Gaussian-Jordan matrices A and C are orthogonal—that is, A ⋅ C T is the zero matrix.
- •
-
All columns of B with numbers from ℓ(C) are zero.
- •
-
A′ and B′ are matrices of size t × t obtained from A and B, respectively, after elimination of columns with numbers from ℓ(C). Then if t > 1,
where a′ (i) and b′ (i) are the ith rows of A′ and B′, respectively.
Kolomeec proved [208] the following theorem (see also [210]):
Theorem 75
Let V be an affine subspace of of dimension n/2. Then the bent function q(x) = x 1 x (n/2)+1 ⊕ x 2 x (n/2)+2 ⊕⋯ ⊕ x n/2 x n is affine on V if and only if V is a shift of a linear subspace with an admissible Gaussian-Jordan matrix.
For instance, if n = 4, the bent function x 1 x 2 ⊕ x 3 x 4 is affine on all linear subspaces (and all their shifts) with Gaussian-Jordan matrices
Thus, by Theorems 74 and 75 in order to count the number of bent functions at a distance 2 n/2 from the quadratic bent function one has to enumerate all the affine subspaces of dimension n/2 with admissible Gaussian-Jordan matrices. This is done in [208], where the following theorem is proven:
Theorem 76
Any quadratic bent function in n variables has exactly bent functions at the minimal possible distance 2 n/2 from it.
For instance, there are 60 bent functions at the minimal possible distance 4 from a bent function in four variables (since every such bent function is quadratic).
The number from Theorem 76 can be estimated as
Note that asymptotically
It is interesting that more than one-third of admissible Gaussian-Jordan matrices (that we use in Theorem 75) can be constructed in a very simple manner. Namely, all matrices of the form , where E is the identity matrix of size n/2 × n/2 and matrix T is an arbitrary symmetric matrix of size n/2 × n/2, are admissible Gaussian-Jordan matrices.
Note also that every bent function at the minimal distance 2 n/2 from the quadratic bent function in n variables is equivalent to a McFarland bent function.
Read full chapter
URL:
https://www.sciencedirect.com/science/article/pii/B978012802318100011X
R
Fred E. Szabo PhD , in The Linear Algebra Survival Guide, 2015
Reduced Row Echelon Matrix
The leading entry of a nonzero row of a matrix in row echelon form is called a pivot of the matrix. An m-by-n row echelon matrix is in reduced row echelon form if it has the following properties: Either the matrix is a zero matrix or all of its pivots are 1 and all entries above its pivots are 0.
The RowReduce function of Mathematica reduces a matrix to its reduced row echelon form.
Illustration
- ■
-
A 4-by-5 reduced row echelon matrix
The matrix is a matrix in row echelon form, but is not in reduced row echelon form.
- ■
-
Reduction of a 4-by-5 matrix to reduced row echelon form
{{0, 0, 1, 8, 1}, {0, 0, 0, 5, 4}, {0, 0, 0, 0, 6}, {0, 0, 0, 0, 0}}
MatrixForm [B = RowReduce [A]]
- ■
-
Reduction of a random 3-by-3 real matrix to reduced row echelon form
MatrixForm [B = RowReduce [A]]
Read full chapter
URL:
https://www.sciencedirect.com/science/article/pii/B9780124095205500254
Linear Equations and Eigensystems
G.R. Lindfield , J.E.T. Penny , in Numerical Methods (Third Edition), 2012
2.2 Linear Equation Systems
In general, a linear equation system can be written in matrix form as
(2.5)
where A is an n × n matrix of known coefficients, b is a column vector of n known coefficients, and x is the column vector of n unknowns. We have already seen an example of this type of equation system in Section 2.1 where the matrix equation (2.2) is the matrix equivalent of the linear equations (2.1).
The equation system (2.5) is called homogeneous if b = 0 and inhomogeneous if b ≠ 0. Before attempting to solve an equation system it is reasonable to ask if it has a solution and if so is it unique? A linear inhomogeneous equation system may be consistent and have one or an infinity of solutions or be inconsistent and have no solution. This is illustrated in Figure 2.2 for a system of three equations in three variables x 1, x 2, and x 3. Each equation represents a plane surface in the x 1, x 2, x 3 space. In Figure 2.2(a) the three planes have a common point of intersection. The coordinates of the point of intersection give the unique solution for the three equations. In Figure 2.2(b) the three planes intersect in a line. Any point on the line of intersection represents a solution so there is no unique solution but an infinite number of solutions satisfying the three equations. In Figure 2.2(c) two of the surfaces are parallel to each other and therefore they never intersect, while in Figure 2.2(d) the line of intersection of each pair of surfaces is different. In both of these cases there is no solution and the equations these surfaces represent are inconsistent.
To obtain an algebraic solution to the inhomogeneous equation system (2.5) we multiply both sides of (2.5) by a matrix called the inverse of A, denoted by A −1:
(2.6)
where A −1 is defined by
(2.7)
and I is the identity matrix. Thus we obtain
(2.8)
The standard algebraic formula for the inverse of A is
(2.9)
where |A| is the determinant of A and adj(A) is the adjoint of A. The determinant and the adjoint of a matrix are defined in Appendix A. Equations (2.8) and (2.9) are algebraic statements allowing us to determine x but they do not provide an efficient means of solving the system because computing A −1 using (2.9) is extremely inefficient, involving order multiplications where n is the number of equations. However, (2.9) is theoretically important because it shows that if |A| = 0 then A does not have an inverse. The matrix A is then said to be singular and a unique solution for x does not exist. Thus establishing that |A| is nonzero is one way of showing that an inhomogeneous equation system is a consistent system with a unique solution. It is shown in Sections 2.6 and 2.7 that (2.5) can be solved without formally determining the inverse of A.
An important concept in linear algebra is the rank of a matrix. For a square matrix, the rank is the number of independent rows or columns in the matrix. Independence can be explained as follows. The rows (or columns) of a matrix can clearly be viewed as a set of vectors. A set of vectors is said to be linearly independent if none of them can be expressed as a linear combination of any of the others. By linear combination we mean a sum of scalar multiples of the vectors. For example, the matrix
has linearly dependent rows and columns. This is because and . There is only one equation relating the rows (or columns) and thus there are two independent rows (or columns). Hence this matrix has a rank of 2. Now consider
Here and . There are two equations relating the rows and hence only one row is independent and the matrix has a rank of 1. Note that the number of independent rows and columns in a square matrix is identical; that is, its row rank and column rank are equal. In general matrices may be nonsquare and the rank of an m × n matrix A is written rank(A). Matrix A is said to be of full rank if rank(A) = min(m, n); otherwise and A is said to be rank deficient. Matlab provides the function rank, which works with both square and nonsquare matrices. In practice, Matlab determines the rank of a matrix from its singular values; see Section 2.10.
For example, consider the following Matlab statements:
>> D = [1 2 3;3 4 7;4 -3 1;-2 5 3;1 -7 6]
D =
1 2 3
3 4 7
4 -3 1
-2 5 3
1 -7 6
>> rank(D)
ans =
3
Thus D is of full rank since the rank equals the minimum size of the matrix.
A useful operation in linear algebra is the conversion of a matrix to its reduced row echelon form (RREF). The RREF is defined in Appendix A. In Matlab we can use the rref function to compute the RREF of a matrix as follows:
>> rref(D)
ans =
1 0 0
0 1 0
0 0 1
0 0 0
0 0 0
It is a property of the RREF of a matrix that the number of rows with at least one nonzero element equals the rank of the matrix. In this example we see that there are three rows in the RREF of the matrix containing a nonzero element, confirming that the matrix rank is 3. The RREF also allows us to determine whether a system has a unique solution or not.
We have discussed a number of important concepts relating to the nature of linear equations and their solutions. We now summarize the equivalencies between these concepts. Let A be an n × n matrix. If Ax = b is consistent and has a unique solution, then all of the following statements are true:
-
Ax = 0 has only the trivial solution x = 0.
-
A is nonsingular and .
-
The RREF of A is the identity matrix.
-
A has n linearly independent rows and columns.
-
A has full rank, i.e., rank(A) = n.
In contrast, if Ax = b is either inconsistent or consistent but with more than one solution, then all of the following statements are true:
-
Ax = 0 has more than one solution.
-
A is singular and .
-
The RREF of A contains at least one zero row.
-
A has linearly dependent rows and columns.
-
A is rank deficient, i.e., .
So far we have only considered the case where there are as many equations as unknowns. Now we consider the cases where there are fewer or more equations than unknown variables.
If there are fewer equations than unknowns, then the system is said to be underdetermined. The equation system does not have a unique solution; it is either consistent with an infinity of solutions, or inconsistent with no solution. These conditions are illustrated by Figure 2.3. The diagram shows two plane surfaces in three-dimensional space, representing two equations in three variables. It is seen that the planes either intersect in a line so that the equations are consistent with an infinity of solutions represented by the line of intersection, or the surfaces do not intersect and the equations they represent are inconsistent.
Consider the following system of equations:
This underdetermined system can be rearranged as follows:
or
Thus we have reduced this to a system of two equations in two unknowns, provided values are assumed for x 3 and x 4. Thus the problem has an infinity of solutions, depending on the values chosen for x 3 and x 4.
If a system has more equations than unknowns, then the system is said to be overdetermined. Figure 2.4 shows four plane surfaces in three-dimensional space, representing four equations in three variables. Figure 2.4(a) shows all four planes intersecting in a single point so that the system of equations is consistent with a unique solution. Figure 2.4(b) shows all the planes intersecting in a line and this represents a consistent system with an infinity of solutions. Figure 2.4(d) shows planes that represent an inconsistent system of equations with no solution. In Figure 2.4(c) the planes do not intersect in a single point and so the system of equations is inconsistent. However, in this example the points of intersection of groups of three planes (i.e., (S1, S2, S3), (S1, S2, S4), (S1, S3, S4), and (S2, S3, S4)) are close to each other and a mean point of intersection could be determined and used as an approximate solution. This example of marginal inconsistency often arises because the coefficients in the equations are determined experimentally; if the coefficients were known exactly, it is likely that the equations would be consistent with a unique solution. Rather than accepting that the system is inconsistent we may ask what the best solution is that satisfies the equations approximately. In Sections 2.11 and 2.12 we deal with the problem of overdetermined and underdetermined systems in more detail.
Read full chapter
URL:
https://www.sciencedirect.com/science/article/pii/B9780123869425000023
Linear Transformations
Stephen Andrilli , David Hecker , in Elementary Linear Algebra (Fifth Edition), 2016
Finding the Range From the Matrix of a Linear Transformation
Next, we determine a method for finding a basis for the range of L: given by L(X) = AX. In Section 1.5 we saw that AX can be expressed as a linear combination of the columns of A. In particular, if X = [x 1,…,x n ], then . Thus, range(L) is spanned by the set of columns of A; that is, range(L) = span({columns of A}). Note that L(e i ) equals the ith column of A. Thus, we can also say that {L(e 1),…,L(e n )} spans range(L).
The fact that the columns of A span range(L) combined with the Independence Test Method yields the following general technique for finding a basis for the range:
Method for Finding a Basis for the Range of a Linear Transformation (Range Method)
Let L: be a linear transformation given by L(X) = A X, for some m × n matrix A. To find a basis for range(L), perform the following steps:
- Step 1:
-
Find B , the reduced row echelon form of A.
- Step 2:
-
Form the set of those columns of A whose corresponding columns in B have nonzero pivots. This set is a basis for range(L).
Example 5
Consider the linear transformation L: given in Example 4. After row reducing the matrix A for L we obtained a matrix B in reduced row echelon form having nonzero pivots in columns 1, 3, and 5. Hence, columns 1, 3, and 5 of A form a basis for range(L). In particular, we get the basis {[8,4,−2,6], [16,10,−5,15],[0,−4,7,−7]}, and so .
From Examples 4 and 5, we see that , for the given linear transformation L. We can understand why this works by examining our methods for calculating bases for the kernel and range. For , we get one basis vector for each independent variable, which corresponds to a nonpivot column of A after row reducing. For range(L), we get one basis vector for each pivot column of A. Together, these account for the total number of columns of A, which is the dimension of the domain.
The fact that the number of nonzero pivots of A equals the number of nonzero rows in the reduced row echelon form matrix for A shows that . This result is stated in the following theorem, which also holds when bases other than the standard bases are used (see Exercise 17).
Theorem 5.9
If is a linear transformation with matrix A with respect to any bases for and , then
- (1)
-
- (2)
-
- (3)
-
.
Read full chapter
URL:
https://www.sciencedirect.com/science/article/pii/B9780128008539000050
Matrices and vectors: topics from linear algebra and vector calculus
Martha L. Abell , James P. Braselton , in Mathematica by Example (Sixth Edition), 2022
5.3.1 Fundamental subspaces associated with matrices
Let be an matrix with entry in the ith row and jth column. The row space of A, , is the spanning set of the rows of A; the column space of A, , is the spanning set of the columns of A. If A is any matrix, then the dimension of the column space of A is equal to the dimension of the row space of A. The dimension of the row space (column space) of a matrix A is called the rank of A. The nullspace of A is the set of solutions to the system of equations . The nullspace of A is a subspace, and its dimension is called the nullity of A. The rank of A is equal to the number of nonzero rows in the row echelon form of A; the nullity of A is equal to the number of zero rows in the row echelon form of A. Thus if A is a square matrix, the sum of the rank of A and the nullity of A is equal to the number of rows (columns) of A.
- 1.
-
NullSpace[A] returns a list of vectors, which form a basis for the nullspace (or kernel) of the matrix A.
- 2.
-
RowReduce[A] yields the reduced row echelon form of the matrix A.
Example 5.23
Place the matrix
in reduced row echelon form. What is the rank of A? Find a basis for the nullspace of A.
Solution
We begin by defining the matrix matrixa. Then RowReduce is used to place matrixa in reduced row echelon form.
Because the row-reduced form of matrixa contains four nonzero rows, the rank of A is 4, and thus the nullity is 1. We obtain a basis for the nullspace with NullSpace.
As expected, because the nullity is 1, a basis for the nullspace contains one vector. □
Example 5.24
Find a basis for the column space of
Solution
A basis for the column space of B is the same as a basis for the row space of the transpose of B. We begin by defining matrixb, and then using Transpose to compute the transpose of matrixb, naming the resulting output tb.
Next, we use RowReduce to row reduce tb and name the result rrtb. A basis for the column space consists of the first four elements of rrtb. We also use Transpose to show that the first four elements of rrtb are the same as the first four columns of the transpose of rrtb. Thus the jth column of a matrix A can be extracted from A with Transpose [A][[j]].
We extract the first four elements of rrtb with Take. The results correspond to a basis for the column space of B.
□
Read full chapter
URL:
https://www.sciencedirect.com/science/article/pii/B9780128241639000100
Linear Equations and Eigensystems
George Lindfield , John Penny , in Numerical Methods (Fourth Edition), 2019
2.10 Singular Value Decomposition
The singular value decomposition (SVD) of an matrix A is given by
(2.23)
where U is an orthogonal matrix and V is an orthogonal matrix. If A is complex then U and V are unitary matrices. In all cases S is a real diagonal matrix. The elements of the leading diagonal of this matrix are called the singular values of A. Normally they are arranged in decreasing value so that . Thus,
The singular values are the non-negative square roots of the eigenvalues of . Because is symmetric or Hermitian these eigenvalues are real and non-negative so that the singular values are also real and non-negative. Algorithms for computing the SVD of a matrix are given by Golub and Van Loan (1989).
The SVD of a matrix has several important applications. In Section 2.4 , we introduced the reduced row echelon form of a matrix and explained how the Matlab function rref gave information from which the rank of a matrix can be deduced. However, rank can be more effectively determined from the SVD of a matrix since its rank is equal to the number of its non-zero singular values. Thus, for a matrix of rank 3, and would be zero. In practice, rather than counting the non-zero singular values, Matlab determines rank from the SVD by counting the number of singular values greater than some tolerance value. This is a more realistic approach to determining rank than counting any non-zero value, however small.
To illustrate how singular value decomposition helps us to examine the properties of a matrix we will use the Matlab function svd to carry out a singular value decomposition and compare it with the function rref. Consider the following example in which a Vandermonde matrix is created using the Matlab function vander. The Vandermonde matrix is known to be ill-conditioned. SVD allows us to examine the nature of this ill-conditioning. In particular a zero or a very small singular value indicates rank deficiency and this example shows that the singular values are becoming relatively close to this condition. In addition SVD allows us to compute the condition number of the matrix. In fact, the Matlab function cond uses SVD to compute the condition number and this gives the same values as obtained by dividing the largest singular value by the smallest singular value. Additionally, the Euclidean norm of the matrix is supplied by the first singular value. Comparing the SVD with the RREF process in the following script, we see that the result of using the Matlab functions rref and rank give the rank of this special Vandermonde matrix as 5 but tells us nothing else. There is no warning that the matrix is badly conditioned.
>> c = [1 1.01 1.02 1.03 1.04];
>> V = vander(c)
V =
1.0000 1.0000 1.0000 1.0000 1.0000
1.0406 1.0303 1.0201 1.0100 1.0000
1.0824 1.0612 1.0404 1.0200 1.0000
1.1255 1.0927 1.0609 1.0300 1.0000
1.1699 1.1249 1.0816 1.0400 1.0000
>> format long
>> s = svd(V)
s =
5.210367051037899
0.101918335876689
0.000699698839445
0.000002352380295
0.000000003294983
>> norm(V)
ans =
5.210367051037898
>> cond(V)
ans =
1.581303244929480e+09
>> s(1)/s(5)
ans =
1.581303244929480e+09
>> rank(V)
ans =
5
>> rref(V)
ans =
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
The following example is very similar to the preceding one but the Vandermonde matrix has now been generated to be rank deficient. The smallest singular value, although not zero, is zero to machine precision and rank returns the value of 4.
>> c = [1 1.01 1.02 1.03 1.03];
>> V = vander(c)
V =
1.0000 1.0000 1.0000 1.0000 1.0000
1.0406 1.0303 1.0201 1.0100 1.0000
1.0824 1.0612 1.0404 1.0200 1.0000
1.1255 1.0927 1.0609 1.0300 1.0000
1.1255 1.0927 1.0609 1.0300 1.0000
>> format long e
>> s = svd(V)
s =
5.187797954424026e+00
8.336322098941423e-02
3.997349250041025e-04
8.462129966394409e-07
1.261104176071465e-23
>> format short
>> rank(V)
ans =
4
>> rref(V)
ans =
1.0000 0 0 0 -0.9424
0 1.0000 0 0 3.8262
0 0 1.0000 0 -5.8251
0 0 0 1.0000 3.9414
0 0 0 0 0
>> cond(V)
ans =
4.1137e+23
The rank function does allow the user to vary the tolerance using a second parameter, that is rank(A,tol) where tol gives the tolerance for acceptance of the singular values of A to be taken as non-zero. However, tolerance should be used with care since the rank function counts the number of singular values greater than tolerance and this gives the rank of the matrix. If tolerance is very small, that is, smaller than the machine precision, the rank may be miscounted.
Read full chapter
URL:
https://www.sciencedirect.com/science/article/pii/B9780128122563000117
Finding Set of Solutions From Rref
Source: https://www.sciencedirect.com/topics/mathematics/reduced-row-echelon-form