QR Factorization - Linear Algebra
- A matrix has QR factorization where is and is . If for some vector , what is the value of ? Answer: Since and has orthonormal columns, . Therefore, . Choice B incorrectly takes a square root. Choice C fails to recognize that orthonormality of makes the result independent of the specific form of . Choice D incorrectly suggests the relationship depends on the specific vector rather than being a general property.
- Let be a matrix with QR factorization , where is with orthonormal columns and is upper triangular. If the second column of is orthogonal to the first column of , which of the following must be true about the matrix ? Answer: only In the Gram-Schmidt process, for . Since , we have , so . Since is upper triangular, by definition, not due to orthogonality. Choice A incorrectly suggests both are consequences of orthogonality. Choice C misses the key implication. Choice D makes an unrelated claim about diagonal entries.
- A matrix has rank 2. When computing the QR factorization using Gram-Schmidt orthogonalization, what happens during the process when reaching the third column? Answer: The third column becomes a zero vector after orthogonalization, requiring special handling to complete the factorization When you encounter QR factorization problems involving rank-deficient matrices, focus on what happens during the Gram-Schmidt orthogonalization process when columns are linearly dependent. In Gram-Schmidt, each new column is made orthogonal to all previous columns by subtracting their projections. For a matrix with rank 2, the first two columns are linearly independent and will orthogonalize normally. However, the third column must be a linear combination of the first two (since the column space is only 2-dimensional). When you apply Gram-Schmidt to the third column, you subtract its projections onto the first two orthogonal vectors. Since the third column lies entirely in the span of the first two, these projections account for the entire vector - leaving nothing behind. The result is the zero vector, which cannot be normalized to create a unit vector for the matrix. This is why answer C is correct: special handling is needed to complete the factorization, typically by adding an orthonormal vector to span the full space. Answer A is wrong because QR factorization can handle rank-deficient matrices with modifications. Answer B is incorrect because if the third column were already orthogonal to the first two, the matrix would have rank 3, not 2. Answer D mischaracterizes the process - the algorithm doesn't arbitrarily replace columns; it follows the mathematical consequence of linear dependence. Study tip: Remember that Gram-Schmidt reveals linear dependence by producing zero vectors - this is your signal that special techniques are needed for completion.
- Let be an matrix with linearly independent columns. Its QR factorization is , where is an matrix and is an matrix. Which statement most accurately describes the columns of the matrix ? Answer: They form an orthonormal basis for the column space of . The QR factorization is constructed by applying the Gram-Schmidt process to the columns of . This process explicitly creates a set of orthonormal vectors that span the same space as the original set of vectors. Therefore, the columns of are an orthonormal set of vectors that form a basis for the column space of . Distractor C is incorrect because the columns of Q are normalized to have unit length, making them orthonormal, not just orthogonal. The other distractors refer to incorrect fundamental subspaces.
- Given the QR factorization of a matrix , a linear system can be solved more easily. The first step is to transform the system into an equivalent upper triangular system. What is this equivalent system? Answer: Starting with , we substitute to get . Since the columns of are orthonormal, . We can multiply both sides of the equation on the left by : , which simplifies to , and then . This gives the equivalent system . This system is easy to solve using back substitution because is upper triangular.
- Let be a matrix with linearly independent columns, and let be its QR factorization. If is a vector in such that , what is the solution to the least squares problem ? Answer: When you encounter QR factorization in least squares problems, you're dealing with an elegant computational shortcut that avoids the numerical instability of the normal equations. The key insight is that for the least squares problem , the normal equations give us . When , we can substitute: , which simplifies to . Since is upper triangular and invertible (because has linearly independent columns), we can multiply both sides by to get . Therefore, . Since we're given that , the solution is , making C correct. Option A represents the traditional normal equations approach but incorrectly applies to instead of . Option B gives you a vector in , but must be in to match 's column space. Option D ignores the matrix entirely, which would only work if were the identity matrix. Remember: QR factorization transforms least squares into the simpler system . This is computationally superior to forming explicitly.
- Consider the matrix . If is the QR factorization where has orthonormal columns, what is the entry in position of the matrix ? Answer: To find Q, we apply Gram-Schmidt to the columns of A. Let the columns be , , . First, with , so . The entry of Q is the second component of , which is . Choice B gives the incorrect normalization factor. Choice C involves an erroneous calculation mixing norms. Choice D uses the wrong denominator from incomplete normalization.
- Let . In the QR factorization , the first column of is . What is the value of the entry in the matrix ? Answer: The entries of the matrix in the QR factorization are given by . To find , we compute the dot product of the first column of and the second column of . Given and , the calculation is: .
- Let be an invertible matrix with QR factorization , where is an orthogonal matrix and is an upper triangular matrix with positive diagonal entries. Which expression correctly gives the determinant of ? Answer: Using the property that the determinant of a product of matrices is the product of their determinants, we have . Since is an orthogonal matrix, its columns are orthonormal. This means . Taking the determinant gives , which is . Therefore, must be either or . Substituting this into the equation for gives .
- Consider a matrix whose columns have norms , , and . After applying Gram-Schmidt orthogonalization, the resulting orthogonal vectors have norms , , and . In the QR factorization , what is ? Answer: In the QR factorization, the diagonal entries of are the norms of the orthogonalized vectors from Gram-Schmidt: . Therefore, . Choice A incorrectly uses the original norm of . Choice C uses the norm of . Choice D incorrectly attempts to normalize by the original norm of , which is not how the QR factorization works.
- Let be an matrix with linearly independent columns, and let be its QR factorization. Which of the following statements is always true? Answer: The columns of form an orthonormal basis for the column space of . The QR factorization is constructed using the Gram-Schmidt process on the columns of . This process generates an orthonormal set of vectors that spans the same subspace as the original columns. Therefore, the columns of form an orthonormal basis for the column space of . Distractor A is false because is only square (and thus invertible) if . Distractor B is false; is upper triangular, not necessarily symmetric. Distractor D is false because , and is not always 1 (it can be -1).
- Let and . When applying the Gram-Schmidt process to the set of vectors , what is the resulting second orthogonal vector ? Answer: The Gram-Schmidt process sets . The second orthogonal vector is found by subtracting the projection of onto from . The projection is . Then, .
- Let have the QR factorization . In this context, what is the geometric interpretation of the vector ? Answer: The projection of the vector onto the subspace spanned by . From the definition of the QR factorization, . Since is a unit vector (), this dot product is the scalar projection of onto . Multiplying this scalar by the unit vector gives the vector projection of onto the line (subspace) spanned by . This is a key step in the Gram-Schmidt process, where this projection is subtracted from to find a vector orthogonal to .
- Let be a matrix with QR factorization . A new matrix is formed by scaling the second column: . If the QR factorization of is , how do and relate to and ? Answer: , and the second column of is 3 times the second column of . The first step of the Gram-Schmidt process depends only on , so and . We have and . For , we have . This can be written as . Thus, and the second column of is 3 times the second column of .
- In the QR factorization , the Gram-Schmidt process is used to generate an orthogonal set of vectors from the columns of . How are the diagonal entries of the matrix related to these vectors? Answer: The columns of are the normalized versions of the orthogonal vectors , so . The relationship between the columns of and the columns of is given by . The Gram-Schmidt process defines as the component of orthogonal to the subspace spanned by . This component is . Therefore, , and taking the norm of both sides gives . By convention, is chosen to be positive, so .
- Consider the matrix . Let be its QR factorization. What are the first column of , denoted , and the entry of ? Answer: and The first step in the Gram-Schmidt process is to set . Next, we find the norm of , which is . The first diagonal entry of is this norm, so . The first column of is found by normalizing : . Since the first column of was already a unit vector, the process is simplified for the first step.
- Consider the matrix . In any QR factorization of this matrix, what can be concluded about the matrix ? Answer: must be a matrix with positive diagonal entries Since has rank 2 (two linearly independent columns), the reduced QR factorization gives as and as upper triangular. The diagonal entries of are the norms of the orthogonalized vectors, which are positive. Choice A describes the wrong dimension of . Choice B is incorrect because the columns of are not orthonormal (the first column has norm 2, not 1). Choice C is wrong because but equals the norm of the component of orthogonal to , which is not 3.
- The QR factorization of a matrix with linearly independent columns is . Under which condition is this factorization guaranteed to be unique? Answer: The factorization is unique if the diagonal entries of are required to be positive. The QR factorization is not strictly unique because of sign choices. If we have a factorization , we can define a diagonal matrix with entries . Then is another valid QR factorization. The matrix still has orthonormal columns, and is still upper triangular. To ensure uniqueness, a convention is adopted: requiring all diagonal entries of to be positive. This constraint fixes the signs of the columns in .
- A matrix has the property that its first two columns are orthogonal unit vectors, and its third column is orthogonal to the first column but not to the second. In the QR factorization , which entry of represents the component of the third column of in the direction of the second column of ? Answer: When you encounter QR factorization questions, remember that the process systematically orthogonalizes columns using the Gram-Schmidt procedure, and the matrix stores the "memory" of how each original column relates to the orthogonal basis being built. In QR factorization, each entry represents how the -th original column projects onto the -th orthogonal vector. Since the first two columns of are already orthogonal unit vectors, they become the first two columns of directly. When processing the third column, the algorithm computes its projections onto all previous orthogonal vectors. The component of the third column in the direction of the second column is exactly what captures - this is the projection coefficient of column 3 onto the second orthogonal basis vector. This makes **(D) ** correct. **(A) would represent how a hypothetical fourth column projects onto the first basis vector, but we only have three columns. (B) ** reverses the indices - this entry doesn't exist in the standard QR decomposition since is upper triangular. **(C) ** represents how the third column projects onto the first column, not the second. Study tip: In , think "column projected onto basis vector ." The upper triangular structure means , and each column index corresponds to an original column of while each row index corresponds to a basis vector in .