Normal Equations - Linear Algebra
- Let be the least-squares solution to , and let . Which of the following vectors must lie in the orthogonal complement of , denoted ? Answer: The residual vector . The fundamental principle of least squares is that the error vector (or residual vector) is orthogonal to the subspace onto which we are projecting, which is the column space . Therefore, is in . The vector is in itself. The vector is in (domain of the transformation), not necessarily related orthogonally to . The vector is generally not in .
- The system is called the 'normal equations' because its solution ensures a specific orthogonality condition, from which the name is derived. What is this condition? Answer: The residual vector is normal (orthogonal) to the column space of . The term 'normal' is synonymous with 'orthogonal'. The normal equations are derived by enforcing the condition that the residual vector must be orthogonal to every column of , and thus to the entire column space of . This is the core geometric principle. The other options describe conditions that are not generally true or are special cases not central to the name's origin.
- Suppose the system is consistent, which implies that is already in the column space of . If the normal equations are used to find a least-squares solution , what is the value of the least-squares error, defined as ? Answer: If the system is consistent, it means there exists an exact solution. The least-squares method finds the vector in closest to . Since is already in , the closest vector is itself. Therefore, the projection of is , meaning . The error .
- Consider the quadratic form where is with linearly independent columns. The normal equations arise from setting . Which expression correctly represents the gradient ? Answer: When you encounter quadratic forms involving matrix norms like , you're dealing with least squares optimization. The key insight is recognizing this as a composite function that requires the chain rule for differentiation. To find , first expand the squared norm: . This gives you . Taking the gradient term by term: the gradient of is , the gradient of is , and the constant term disappears. This yields . Choice C is correct with this factor of 2 included. Choice A incorrectly places instead of in front, which would give the wrong dimensions. Choice B has the right structure but missing the factor of 2 that comes from differentiating the squared term. Choice D shows the expanded form before factoring, which is mathematically equivalent to C but doesn't match the standard factored form asked for. Remember: when differentiating squared norms, always expect a factor of 2, and the transpose of the coefficient matrix () appears in the gradient due to the chain rule.
- Let be the column space of a matrix . For a vector , the least-squares solution to is found. What is the geometric meaning of the vector ? Answer: is the orthogonal projection of onto the column space . By definition, the vector is the orthogonal projection of onto the column space of . This vector is the point in that is closest to . The vector described in (A) is the error vector . The subspaces in (C) and (D) are incorrect.
- Given the matrix equation where is with , suppose the normal equations yield . If the residual vector is , what can be concluded about the relationship between and the columns of ? Answer: The residual is orthogonal to every column of because is satisfied by the normal equations The normal equations can be rewritten as , which means . This implies that is orthogonal to every column of . Choice B is incorrect because the sign of components in doesn't determine parallelism with columns. Choice C is wrong because lies in the orthogonal complement of the column space. Choice D is incorrect because orthogonality to is not guaranteed, and orthogonality to columns is guaranteed.
- Let be the projection matrix that projects vectors in onto the column space of an matrix . Which of the following expressions must evaluate to the zero vector for any vector in ? Answer: The vector is the projection of onto , which we denote as . The vector is the error vector , which is orthogonal to . The condition that is orthogonal to is precisely that it is orthogonal to every column of . This can be written as , which is .
- Consider two overdetermined systems: System 1 has matrix and right-hand side , while System 2 has matrix and right-hand side . If and are the respective least squares solutions, what is the relationship between the residual norms and ? Answer: When you encounter problems comparing least squares solutions with scaled right-hand sides, the key insight is that least squares solutions and residuals both scale linearly with the right-hand side vector. For System 1: , and for System 2: where and . Since the matrix is identical in both systems, but the right-hand side is scaled by 2, the least squares solution also scales by the same factor: . You can verify this because if minimizes , then minimizes . The residual for System 2 becomes: Taking norms: This confirms answer B is correct. A incorrectly squares the scaling factor (), confusing linear scaling with quadratic relationships. C suggests no relationship, ignoring the scaling entirely. D uses , which would arise from some geometric relationship but doesn't apply here. Study tip: Remember that least squares solutions scale linearly with the right-hand side when the coefficient matrix stays the same. Both the solution and residual scale by the same factor as the right-hand side.
- The normal equations produce the set of all least-squares solutions. Under what geometric condition will there be infinitely many least-squares solutions ? Answer: When the columns of the matrix are linearly dependent. The set of least-squares solutions is unique if and only if the matrix is invertible. This occurs if and only if the columns of are linearly independent. If the columns of are linearly dependent, then is singular, and the system will have infinitely many solutions. Geometrically, this means that a vector in the column space can be formed as a linear combination of the columns in more than one way.
- The normal equations are used to find the least-squares solution to an inconsistent system . A unique least-squares solution is guaranteed to exist if and only if: Answer: the columns of the matrix are linearly independent. A unique least-squares solution exists if and only if the matrix is invertible. The matrix is invertible if and only if the columns of are linearly independent. Choice (A) and (B) are sufficient conditions but not necessary. Choice (D) means the system is consistent and has an exact solution, but it does not guarantee the solution is unique unless the columns of are linearly independent.
- In a least squares problem, suppose where has orthonormal columns and is upper triangular and invertible. How do the normal equations simplify when expressed in terms of the QR decomposition? Answer: When you encounter QR decomposition in least squares problems, you're looking at a powerful way to simplify the normal equations by exploiting the orthogonal structure of matrix . Starting with the normal equations and substituting , you get: This expands to: Here's the key insight: since has orthonormal columns, (the identity matrix). This dramatically simplifies the equation to: Since is invertible, you can multiply both sides by to get: This is answer C. Looking at the wrong choices: A) incorrectly keeps the original without accounting for the structure. B) stops one step short of the full simplification—it's correct but not simplified. D) has the wrong right-hand side and fails to use the orthonormality property. Study tip: Remember that for orthonormal columns is the magic that makes QR decomposition so useful—it eliminates the problematic multiplication that can cause numerical instability.
- Let be a subspace of and let be a vector in . The least-squares solution to (where ) minimizes the distance for all . Which expression represents the square of this minimum distance? Answer: When you encounter least-squares problems, you're dealing with finding the best approximation to a vector within a subspace . The key insight is that the minimum distance occurs when we project onto , and the distance we want is from to this projection. The projection of onto the column space of is given by , where is the projection matrix. The minimum distance is the length of the error vector: . Therefore, the square of this minimum distance is , which is answer D. Let's examine why the other options are incorrect. Option A represents plus the square of the projection length, which doesn't correspond to any meaningful geometric quantity in this context. Option B gives you the square of the length of the projection itself, not the distance from to the projection. Option C represents the square of the length of the least-squares solution vector , which lives in the domain space, not the distance we're measuring. Remember: in least-squares problems, you're always measuring the distance between the original vector and its projection onto the subspace. The answer will involve the difference , not just the projection itself.
- For the linear system with being and , let be any particular solution to the normal equations . If has rank , what is the general form of all solutions to the normal equations? Answer: where When you encounter normal equations with a rank-deficient matrix, you're dealing with an underdetermined system that has infinitely many solutions. The key insight is understanding which null space governs the solution structure. The normal equations form a homogeneous system when you consider the difference between any two solutions. If and are both solutions, then and . Subtracting these equations gives , meaning . Therefore, all solutions have the form where , confirming answer B. Answer A incorrectly uses instead of . While , this gives only a subset of solutions when is rank-deficient. Answer C suggests , which is the orthogonal complement of , not the space of homogeneous solutions. Answer D uses directly, which is the same incorrect reasoning as C. Study tip: For any linear system , the general solution is always "particular solution plus null space of the coefficient matrix." Here, the coefficient matrix is , so you need .
- Consider the overdetermined system where and . If is the least squares solution obtained from the normal equations, what is the geometric interpretation of ? Answer: is the orthogonal projection of onto the column space of The least squares solution minimizes , which means is the point in the column space of closest to . This is precisely the orthogonal projection of onto . Choice B is incorrect because the null space of is orthogonal to the column space. Choice C is wrong because the left null space consists of vectors orthogonal to the row space. Choice D is incorrect because this describes a reflection, not a projection.
- Consider fitting a line to the data points , , and using least squares. The normal equations for this problem take the form . What is the coefficient matrix of the normal equations? Answer: For the data points , , , we have points. Calculate: , , and . The coefficient matrix is . Choice B swaps the positions of and . Choice C incorrectly uses in place of . Choice D incorrectly uses in the (1,1) position instead of .
- To find the best-fit line of the form for the data points , , and , one must find the least-squares solution to the system . What are the normal equations for this problem? Answer: When you encounter a least-squares problem, you're solving an overdetermined system where you have more equations than unknowns. The key is setting up the correct matrix equation and then finding the normal equations . For the line through points , , and , you need matrix where each row corresponds to a data point. The first column represents the coefficient of (always 1), and the second column represents the coefficient of (the -value): Computing : Computing : This confirms answer D is correct. Option A has the wrong vector (14 instead of 11). Option B shows the original system , not the normal equations. Option C has incorrect entries in - the computation errors likely come from mishandling the matrix multiplication. Study tip: Always double-check your matrix multiplications when computing normal equations. Set up systematically: first column all 1's for the constant term, subsequent columns for the -coefficients.
- Consider the problem of finding the least-squares solution to the system of equations:
x + y = 3$$ $$\ Which of the following represents the corresponding normal equations ? Answer: The system can be written as where , , and . We compute and . . . . Thus, the normal equations are .
- Let be an matrix and be a vector in . If is the least-squares solution to the system , which statement best describes the geometric relationship involving the error vector ? Answer: The error vector is orthogonal to the column space of . The normal equations are derived from the orthogonality condition . This condition means that the error vector is orthogonal to every column of . Therefore, the error vector is orthogonal to the entire column space of .
- A researcher sets up normal equations to solve an overdetermined linear system, but discovers that the coefficient matrix is singular. Given that the original matrix is , what is the most likely explanation for this singularity, and what does it imply about the solution? Answer: The columns of are linearly dependent; the normal equations have infinitely many solutions lying on an affine subspace When you encounter normal equations and a singular matrix, you're dealing with fundamental concepts about linear independence and the least squares solution structure. The key insight is understanding what makes singular. Since is , we have more equations than unknowns (overdetermined system). The matrix becomes singular precisely when the columns of are linearly dependent. This happens because inherits the rank deficiency from - if , then , making it non-invertible. When is singular, the normal equations have infinitely many solutions forming an affine subspace (a translated version of the null space). This means multiple parameter vectors can minimize the least squares objective function equally well. Choice A incorrectly suggests a unique exact solution exists - but overdetermined systems rarely have exact solutions, and singularity indicates non-uniqueness. Choice B wrongly claims the normal equations are inconsistent; they're actually always consistent since lies in the column space of . Choice C misunderstands the relationship between and solvability - even when isn't in 's column space, least squares solutions still exist and are meaningful. Study tip: Remember that singular always means linearly dependent columns in , which leads to infinitely many least squares solutions. This is a structural property of the matrix, not the right-hand side vector.
- For the overdetermined system , let be the orthogonal projection matrix onto the column space of . If the normal equations have solution , which of the following expressions correctly represents the squared norm of the residual ? Answer: When you encounter questions about least squares and projection matrices, remember that the residual represents the "leftover" part of that cannot be expressed in the column space of . The key insight is understanding what happens geometrically. The vector is the orthogonal projection of onto the column space of , which we can write as . The residual is orthogonal to the column space. By the Pythagorean theorem in this orthogonal decomposition: Rearranging gives us , which is answer D. Let's see why the other options fail: A incorrectly assumes you can factor the squared norm as a difference involving the inner product. B has the terms reversed and would give a negative value, which is impossible for a squared norm. C mixes a squared norm with an inner product without proper justification. Study tip: Always remember that in least squares problems, decomposes orthogonally into its projection onto the column space () plus the residual. Use the Pythagorean theorem to relate their squared norms.