Normal Equations - Linear Algebra

  1. Let x^\hat{\mathbf{x}} be the least-squares solution to Ax=bA\mathbf{x} = \mathbf{b}, and let W=Col(A)W = \mathrm{Col}(A). Which of the following vectors must lie in the orthogonal complement of WW, denoted W⊥W^\perp?
    Answer: The residual vector b−Ax^\mathbf{b} - A\hat{\mathbf{x}}. The fundamental principle of least squares is that the error vector (or residual vector) b−Ax^\mathbf{b} - A\hat{\mathbf{x}} is orthogonal to the subspace onto which we are projecting, which is the column space WW. Therefore, b−Ax^\mathbf{b} - A\hat{\mathbf{x}} is in W⊥W^\perp. The vector Ax^A\hat{\mathbf{x}} is in WW itself. The vector x^\hat{\mathbf{x}} is in Rn\mathbb{R}^n (domain of the transformation), not necessarily related orthogonally to WW. The vector b\mathbf{b} is generally not in W⊥W^\perp.
  2. The system ATAx=ATbA^T A \mathbf{x} = A^T \mathbf{b} is called the 'normal equations' because its solution x^\hat{\mathbf{x}} ensures a specific orthogonality condition, from which the name is derived. What is this condition?
    Answer: The residual vector (b−Ax^)(\mathbf{b} - A\hat{\mathbf{x}}) is normal (orthogonal) to the column space of AA. The term 'normal' is synonymous with 'orthogonal'. The normal equations are derived by enforcing the condition that the residual vector b−Ax^\mathbf{b} - A\hat{\mathbf{x}} must be orthogonal to every column of AA, and thus to the entire column space of AA. 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.
  3. Suppose the system Ax=bA\mathbf{x} = \mathbf{b} is consistent, which implies that b\mathbf{b} is already in the column space of AA. If the normal equations are used to find a least-squares solution x^\hat{\mathbf{x}}, what is the value of the least-squares error, defined as ∥b−Ax^∥\|\mathbf{b} - A\hat{\mathbf{x}}\|?
    Answer: 00 If the system Ax=bA\mathbf{x} = \mathbf{b} is consistent, it means there exists an exact solution. The least-squares method finds the vector in Col(A)\mathrm{Col}(A) closest to b\mathbf{b}. Since b\mathbf{b} is already in Col(A)\mathrm{Col}(A), the closest vector is b\mathbf{b} itself. Therefore, the projection of b\mathbf{b} is b\mathbf{b}, meaning Ax^=bA\hat{\mathbf{x}} = \mathbf{b}. The error ∥b−Ax^∥=∥b−b∥=0\|\mathbf{b} - A\hat{\mathbf{x}}\| = \|\mathbf{b} - \mathbf{b}\| = 0.
  4. Consider the quadratic form Q(x)=∣∣Ax−b∣∣2Q(\mathbf{x}) = ||A\mathbf{x} - \mathbf{b}||^2 where AA is m×nm \times n with linearly independent columns. The normal equations arise from setting ∇Q(x)=0\nabla Q(\mathbf{x}) = \mathbf{0}. Which expression correctly represents the gradient ∇Q(x)\nabla Q(\mathbf{x})?
    Answer: ∇Q(x)=2AT(Ax−b)\nabla Q(\mathbf{x}) = 2A^T(A\mathbf{x} - \mathbf{b}) When you encounter quadratic forms involving matrix norms like Q(x)=∣∣Ax−b∣∣2Q(\mathbf{x}) = ||A\mathbf{x} - \mathbf{b}||^2, 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 ∇Q(x)\nabla Q(\mathbf{x}), first expand the squared norm: Q(x)=(Ax−b)T(Ax−b)Q(\mathbf{x}) = (A\mathbf{x} - \mathbf{b})^T(A\mathbf{x} - \mathbf{b}). This gives you Q(x)=xTATAx−2bTAx+bTbQ(\mathbf{x}) = \mathbf{x}^TA^TA\mathbf{x} - 2\mathbf{b}^TA\mathbf{x} + \mathbf{b}^T\mathbf{b}. Taking the gradient term by term: the gradient of xTATAx\mathbf{x}^TA^TA\mathbf{x} is 2ATAx2A^TA\mathbf{x}, the gradient of −2bTAx-2\mathbf{b}^TA\mathbf{x} is −2ATb-2A^T\mathbf{b}, and the constant term disappears. This yields ∇Q(x)=2ATAx−2ATb=2AT(Ax−b)\nabla Q(\mathbf{x}) = 2A^TA\mathbf{x} - 2A^T\mathbf{b} = 2A^T(A\mathbf{x} - \mathbf{b}). Choice C is correct with this factor of 2 included. Choice A incorrectly places AA instead of ATA^T 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 (ATA^T) appears in the gradient due to the chain rule.
  5. Let WW be the column space of a matrix AA. For a vector b\mathbf{b}, the least-squares solution x^\hat{\mathbf{x}} to Ax=bA\mathbf{x} = \mathbf{b} is found. What is the geometric meaning of the vector b^=Ax^\hat{\mathbf{b}} = A\hat{\mathbf{x}}?
    Answer: b^\hat{\mathbf{b}} is the orthogonal projection of b\mathbf{b} onto the column space WW. By definition, the vector Ax^A\hat{\mathbf{x}} is the orthogonal projection of b\mathbf{b} onto the column space of AA. This vector is the point in WW that is closest to b\mathbf{b}. The vector described in (A) is the error vector b−b^\mathbf{b} - \hat{\mathbf{b}}. The subspaces in (C) and (D) are incorrect.
  6. Given the matrix equation Ax=bA\mathbf{x} = \mathbf{b} where AA is m×nm \times n with m>nm > n, suppose the normal equations yield x^=(2−1)\hat{\mathbf{x}} = \begin{pmatrix} 2 \\ -1 \end{pmatrix}. If the residual vector is r=b−Ax^=(10−2)\mathbf{r} = \mathbf{b} - A\hat{\mathbf{x}} = \begin{pmatrix} 1 \\ 0 \\ -2 \end{pmatrix}, what can be concluded about the relationship between r\mathbf{r} and the columns of AA?
    Answer: The residual r\mathbf{r} is orthogonal to every column of AA because ATr=0A^T\mathbf{r} = \mathbf{0} is satisfied by the normal equations The normal equations ATAx^=ATbA^TA\hat{\mathbf{x}} = A^T\mathbf{b} can be rewritten as AT(Ax^−b)=0A^T(A\hat{\mathbf{x}} - \mathbf{b}) = \mathbf{0}, which means ATr=0A^T\mathbf{r} = \mathbf{0}. This implies that r\mathbf{r} is orthogonal to every column of AA. Choice B is incorrect because the sign of components in x^\hat{\mathbf{x}} doesn't determine parallelism with columns. Choice C is wrong because r\mathbf{r} lies in the orthogonal complement of the column space. Choice D is incorrect because orthogonality to b\mathbf{b} is not guaranteed, and orthogonality to columns is guaranteed.
  7. Let P=A(ATA)−1ATP = A(A^T A)^{-1} A^T be the projection matrix that projects vectors in Rm\mathbb{R}^m onto the column space of an m×nm \times n matrix AA. Which of the following expressions must evaluate to the n×1n \times 1 zero vector for any vector b\mathbf{b} in Rm\mathbb{R}^m?
    Answer: AT(b−Pb)A^T (\mathbf{b} - P\mathbf{b}) The vector PbP\mathbf{b} is the projection of b\mathbf{b} onto Col(A)\mathrm{Col}(A), which we denote as b^\hat{\mathbf{b}}. The vector b−Pb\mathbf{b} - P\mathbf{b} is the error vector e\mathbf{e}, which is orthogonal to Col(A)\mathrm{Col}(A). The condition that e\mathbf{e} is orthogonal to Col(A)\mathrm{Col}(A) is precisely that it is orthogonal to every column of AA. This can be written as ATe=0A^T \mathbf{e} = \mathbf{0}, which is AT(b−Pb)=0A^T (\mathbf{b} - P\mathbf{b}) = \mathbf{0}.
  8. Consider two overdetermined systems: System 1 has matrix A1A_1 and right-hand side b1\mathbf{b}_1, while System 2 has matrix A2=A1A_2 = A_1 and right-hand side b2=2b1\mathbf{b}_2 = 2\mathbf{b}_1. If x^1\hat{\mathbf{x}}_1 and x^2\hat{\mathbf{x}}_2 are the respective least squares solutions, what is the relationship between the residual norms ∣∣b1−A1x^1∣∣||\mathbf{b}_1 - A_1\hat{\mathbf{x}}_1|| and ∣∣b2−A2x^2∣∣||\mathbf{b}_2 - A_2\hat{\mathbf{x}}_2||?
    Answer: ∣∣b2−A2x^2∣∣=2∣∣b1−A1x^1∣∣||\mathbf{b}_2 - A_2\hat{\mathbf{x}}_2|| = 2||\mathbf{b}_1 - A_1\hat{\mathbf{x}}_1|| 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: A1x^1≈b1A_1\hat{\mathbf{x}}_1 \approx \mathbf{b}_1, and for System 2: A2x^2≈b2A_2\hat{\mathbf{x}}_2 \approx \mathbf{b}_2 where A2=A1A_2 = A_1 and b2=2b1\mathbf{b}_2 = 2\mathbf{b}_1. 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: x^2=2x^1\hat{\mathbf{x}}_2 = 2\hat{\mathbf{x}}_1. You can verify this because if x^1\hat{\mathbf{x}}_1 minimizes ∣∣A1x−b1∣∣2||A_1\mathbf{x} - \mathbf{b}_1||^2, then 2x^12\hat{\mathbf{x}}_1 minimizes ∣∣A1x−2b1∣∣2||A_1\mathbf{x} - 2\mathbf{b}_1||^2. The residual for System 2 becomes: b2−A2x^2=2b1−A1(2x^1)=2(b1−A1x^1)\mathbf{b}_2 - A_2\hat{\mathbf{x}}_2 = 2\mathbf{b}_1 - A_1(2\hat{\mathbf{x}}_1) = 2(\mathbf{b}_1 - A_1\hat{\mathbf{x}}_1) Taking norms: ∣∣b2−A2x^2∣∣=∣∣2(b1−A1x^1)∣∣=2∣∣b1−A1x^1∣∣||\mathbf{b}_2 - A_2\hat{\mathbf{x}}_2|| = ||2(\mathbf{b}_1 - A_1\hat{\mathbf{x}}_1)|| = 2||\mathbf{b}_1 - A_1\hat{\mathbf{x}}_1|| This confirms answer B is correct. A incorrectly squares the scaling factor (22=42^2 = 4), confusing linear scaling with quadratic relationships. C suggests no relationship, ignoring the scaling entirely. D uses 2\sqrt{2}, 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.
  9. The normal equations ATAx^=ATbA^T A \hat{\mathbf{x}} = A^T \mathbf{b} produce the set of all least-squares solutions. Under what geometric condition will there be infinitely many least-squares solutions x^\hat{\mathbf{x}}?
    Answer: When the columns of the matrix AA are linearly dependent. The set of least-squares solutions is unique if and only if the matrix ATAA^T A is invertible. This occurs if and only if the columns of AA are linearly independent. If the columns of AA are linearly dependent, then ATAA^T A is singular, and the system ATAx^=ATbA^T A \hat{\mathbf{x}} = A^T \mathbf{b} 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.
  10. The normal equations ATAx^=ATbA^T A \hat{\mathbf{x}} = A^T \mathbf{b} are used to find the least-squares solution to an inconsistent system Ax=bA\mathbf{x} = \mathbf{b}. A unique least-squares solution x^\hat{\mathbf{x}} is guaranteed to exist if and only if:
    Answer: the columns of the matrix AA are linearly independent. A unique least-squares solution exists if and only if the matrix ATAA^T A is invertible. The matrix ATAA^T A is invertible if and only if the columns of AA are linearly independent. Choice (A) and (B) are sufficient conditions but not necessary. Choice (D) means the system Ax=bA\mathbf{x}=\mathbf{b} is consistent and has an exact solution, but it does not guarantee the solution is unique unless the columns of AA are linearly independent.
  11. In a least squares problem, suppose A=QRA = QR where QQ has orthonormal columns and RR is upper triangular and invertible. How do the normal equations ATAx=ATbA^TA\mathbf{x} = A^T\mathbf{b} simplify when expressed in terms of the QR decomposition?
    Answer: Rx=QTbR\mathbf{x} = Q^T\mathbf{b} 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 QQ. Starting with the normal equations ATAx=ATbA^TA\mathbf{x} = A^T\mathbf{b} and substituting A=QRA = QR, you get: (QR)T(QR)x=(QR)Tb(QR)^T(QR)\mathbf{x} = (QR)^T\mathbf{b} This expands to: RTQTQRx=RTQTbR^TQ^TQR\mathbf{x} = R^TQ^T\mathbf{b} Here's the key insight: since QQ has orthonormal columns, QTQ=IQ^TQ = I (the identity matrix). This dramatically simplifies the equation to: RTRx=RTQTbR^TR\mathbf{x} = R^TQ^T\mathbf{b} Since RR is invertible, you can multiply both sides by (RT)−1(R^T)^{-1} to get: Rx=QTbR\mathbf{x} = Q^T\mathbf{b} This is answer C. Looking at the wrong choices: A) QRx=QTbQR\mathbf{x} = Q^T\mathbf{b} incorrectly keeps the original A=QRA = QR without accounting for the ATAA^TA structure. B) RTRx=RTQTbR^TR\mathbf{x} = R^TQ^T\mathbf{b} stops one step short of the full simplification—it's correct but not simplified. D) QTQRx=RTbQ^TQR\mathbf{x} = R^T\mathbf{b} has the wrong right-hand side and fails to use the orthonormality property. Study tip: Remember that QTQ=IQ^TQ = I for orthonormal columns is the magic that makes QR decomposition so useful—it eliminates the problematic ATAA^TA multiplication that can cause numerical instability.
  12. Let WW be a subspace of Rm\mathbb{R}^m and let b\mathbf{b} be a vector in Rm\mathbb{R}^m. The least-squares solution x^\hat{\mathbf{x}} to Ax=bA\mathbf{x}=\mathbf{b} (where W=Col(A)W=\mathrm{Col}(A)) minimizes the distance ∥b−w∥\|\mathbf{b} - \mathbf{w}\| for all w∈W\mathbf{w} \in W. Which expression represents the square of this minimum distance?
    Answer: ∥b−A(ATA)−1ATb∥2\|\mathbf{b} - A(A^T A)^{-1} A^T \mathbf{b}\|^2 When you encounter least-squares problems, you're dealing with finding the best approximation to a vector b\mathbf{b} within a subspace WW. The key insight is that the minimum distance occurs when we project b\mathbf{b} onto WW, and the distance we want is from b\mathbf{b} to this projection. The projection of b\mathbf{b} onto the column space of AA is given by Pb=A(ATA)−1ATbP\mathbf{b} = A(A^T A)^{-1} A^T \mathbf{b}, where P=A(ATA)−1ATP = A(A^T A)^{-1} A^T is the projection matrix. The minimum distance is the length of the error vector: b−Pb=b−A(ATA)−1ATb\mathbf{b} - P\mathbf{b} = \mathbf{b} - A(A^T A)^{-1} A^T \mathbf{b}. Therefore, the square of this minimum distance is ∥b−A(ATA)−1ATb∥2\|\mathbf{b} - A(A^T A)^{-1} A^T \mathbf{b}\|^2, which is answer D. Let's examine why the other options are incorrect. Option A represents ∥b∥2\|\mathbf{b}\|^2 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 b\mathbf{b} to the projection. Option C represents the square of the length of the least-squares solution vector x^=(ATA)−1ATb\hat{\mathbf{x}} = (A^T A)^{-1} A^T \mathbf{b}, 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 b−projection\mathbf{b} - \text{projection}, not just the projection itself.
  13. For the linear system Ax=bA\mathbf{x} = \mathbf{b} with AA being m×nm \times n and m>nm > n, let x0\mathbf{x}_0 be any particular solution to the normal equations ATAx=ATbA^TA\mathbf{x} = A^T\mathbf{b}. If AA has rank r<nr < n, what is the general form of all solutions to the normal equations?
    Answer: x=x0+y\mathbf{x} = \mathbf{x}_0 + \mathbf{y} where y∈null(ATA)\mathbf{y} \in \text{null}(A^TA) 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 ATAx=ATbA^TA\mathbf{x} = A^T\mathbf{b} form a homogeneous system when you consider the difference between any two solutions. If x1\mathbf{x}_1 and x2\mathbf{x}_2 are both solutions, then ATAx1=ATbA^TA\mathbf{x}_1 = A^T\mathbf{b} and ATAx2=ATbA^TA\mathbf{x}_2 = A^T\mathbf{b}. Subtracting these equations gives ATA(x1−x2)=0A^TA(\mathbf{x}_1 - \mathbf{x}_2) = \mathbf{0}, meaning x1−x2∈null(ATA)\mathbf{x}_1 - \mathbf{x}_2 \in \text{null}(A^TA). Therefore, all solutions have the form x=x0+y\mathbf{x} = \mathbf{x}_0 + \mathbf{y} where y∈null(ATA)\mathbf{y} \in \text{null}(A^TA), confirming answer B. Answer A incorrectly uses null(A)\text{null}(A) instead of null(ATA)\text{null}(A^TA). While null(A)⊆null(ATA)\text{null}(A) \subseteq \text{null}(A^TA), this gives only a subset of solutions when AA is rank-deficient. Answer C suggests col(AT)=row(A)\text{col}(A^T) = \text{row}(A), which is the orthogonal complement of null(A)\text{null}(A), not the space of homogeneous solutions. Answer D uses row(A)\text{row}(A) directly, which is the same incorrect reasoning as C. Study tip: For any linear system Mx=cM\mathbf{x} = \mathbf{c}, the general solution is always "particular solution plus null space of the coefficient matrix." Here, the coefficient matrix is ATAA^TA, so you need null(ATA)\text{null}(A^TA).
  14. Consider the overdetermined system Ax=bA\mathbf{x} = \mathbf{b} where A=(120110)A = \begin{pmatrix} 1 & 2 \\ 0 & 1 \\ 1 & 0 \end{pmatrix} and b=(312)\mathbf{b} = \begin{pmatrix} 3 \\ 1 \\ 2 \end{pmatrix}. If x^\hat{\mathbf{x}} is the least squares solution obtained from the normal equations, what is the geometric interpretation of Ax^A\hat{\mathbf{x}}?
    Answer: Ax^A\hat{\mathbf{x}} is the orthogonal projection of b\mathbf{b} onto the column space of AA The least squares solution x^\hat{\mathbf{x}} minimizes ∣∣Ax−b∣∣2||A\mathbf{x} - \mathbf{b}||^2, which means Ax^A\hat{\mathbf{x}} is the point in the column space of AA closest to b\mathbf{b}. This is precisely the orthogonal projection of b\mathbf{b} onto Col(A)\text{Col}(A). Choice B is incorrect because the null space of ATA^T 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.
  15. Consider fitting a line y=ax+by = ax + b to the data points (0,1)(0,1), (1,3)(1,3), and (2,4)(2,4) using least squares. The normal equations for this problem take the form (∑xi2∑xi∑xin)(ab)=(∑xiyi∑yi)\begin{pmatrix} \sum x_i^2 & \sum x_i \\ \sum x_i & n \end{pmatrix}\begin{pmatrix} a \\ b \end{pmatrix} = \begin{pmatrix} \sum x_i y_i \\ \sum y_i \end{pmatrix}. What is the coefficient matrix of the normal equations?
    Answer: (5333)\begin{pmatrix} 5 & 3 \\ 3 & 3 \end{pmatrix} For the data points (0,1)(0,1), (1,3)(1,3), (2,4)(2,4), we have n=3n = 3 points. Calculate: ∑xi2=02+12+22=5\sum x_i^2 = 0^2 + 1^2 + 2^2 = 5, ∑xi=0+1+2=3\sum x_i = 0 + 1 + 2 = 3, and n=3n = 3. The coefficient matrix is (5333)\begin{pmatrix} 5 & 3 \\ 3 & 3 \end{pmatrix}. Choice B swaps the positions of ∑xi2\sum x_i^2 and nn. Choice C incorrectly uses ∑yi=8\sum y_i = 8 in place of n=3n = 3. Choice D incorrectly uses ∑yi=8\sum y_i = 8 in the (1,1) position instead of ∑xi2=5\sum x_i^2 = 5.
  16. To find the best-fit line of the form y=c0+c1xy = c_0 + c_1 x for the data points (0,1)(0, 1), (1,3)(1, 3), and (2,4)(2, 4), one must find the least-squares solution to the system Ac=yA\mathbf{c} = \mathbf{y}. What are the normal equations ATAc=ATyA^T A \mathbf{c} = A^T \mathbf{y} for this problem?
    Answer: (3335)c=(811)\begin{pmatrix} 3 & 3 \\ 3 & 5 \end{pmatrix} \mathbf{c} = \begin{pmatrix} 8 \\ 11 \end{pmatrix} 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 Ac=yA\mathbf{c} = \mathbf{y} and then finding the normal equations ATAc=ATyA^T A \mathbf{c} = A^T \mathbf{y}. For the line y=c0+c1xy = c_0 + c_1 x through points (0,1)(0,1), (1,3)(1,3), and (2,4)(2,4), you need matrix AA where each row corresponds to a data point. The first column represents the coefficient of c0c_0 (always 1), and the second column represents the coefficient of c1c_1 (the xx-value): A=(101112),y=(134)A = \begin{pmatrix} 1 & 0 \\ 1 & 1 \\ 1 & 2 \end{pmatrix}, \quad \mathbf{y} = \begin{pmatrix} 1 \\ 3 \\ 4 \end{pmatrix} Computing ATAA^T A: ATA=(111012)(101112)=(3335)A^T A = \begin{pmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 1 & 1 \\ 1 & 2 \end{pmatrix} = \begin{pmatrix} 3 & 3 \\ 3 & 5 \end{pmatrix} Computing ATyA^T \mathbf{y}: ATy=(111012)(134)=(811)A^T \mathbf{y} = \begin{pmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \end{pmatrix} \begin{pmatrix} 1 \\ 3 \\ 4 \end{pmatrix} = \begin{pmatrix} 8 \\ 11 \end{pmatrix} This confirms answer D is correct. Option A has the wrong ATyA^T \mathbf{y} vector (14 instead of 11). Option B shows the original system Ac=yA\mathbf{c} = \mathbf{y}, not the normal equations. Option C has incorrect entries in ATAA^T A - the computation errors likely come from mishandling the matrix multiplication. Study tip: Always double-check your matrix multiplications when computing normal equations. Set up AA systematically: first column all 1's for the constant term, subsequent columns for the xx-coefficients.
  17. Consider the problem of finding the least-squares solution to the system of equations: −-x + y = 3$$ x+y=0\quad x + y = 0 y=4\quad y = 4 $$\ Which of the following represents the corresponding normal equations ATAx^=ATbA^T A \hat{\mathbf{x}} = A^T \mathbf{b}?
    Answer: (2003)x^=(−37)\begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix} \hat{\mathbf{x}} = \begin{pmatrix} -3 \\ 7 \end{pmatrix} The system can be written as Ax=bA\mathbf{x}=\mathbf{b} where A=(−111101)A = \begin{pmatrix} -1 & 1 \\ 1 & 1 \\ 0 & 1 \end{pmatrix}, x=(xy)\mathbf{x} = \begin{pmatrix} x \\ y \end{pmatrix}, and b=(304)\mathbf{b} = \begin{pmatrix} 3 \\ 0 \\ 4 \end{pmatrix}. We compute ATAA^T A and ATbA^T \mathbf{b}. AT=(−110111)A^T = \begin{pmatrix} -1 & 1 & 0 \\ 1 & 1 & 1 \end{pmatrix}. ATA=(−110111)(−111101)=(2003)A^T A = \begin{pmatrix} -1 & 1 & 0 \\ 1 & 1 & 1 \end{pmatrix} \begin{pmatrix} -1 & 1 \\ 1 & 1 \\ 0 & 1 \end{pmatrix} = \begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix}. ATb=(−110111)(304)=(−37)A^T \mathbf{b} = \begin{pmatrix} -1 & 1 & 0 \\ 1 & 1 & 1 \end{pmatrix} \begin{pmatrix} 3 \\ 0 \\ 4 \end{pmatrix} = \begin{pmatrix} -3 \\ 7 \end{pmatrix}. Thus, the normal equations are (2003)x^=(−37)\begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix} \hat{\mathbf{x}} = \begin{pmatrix} -3 \\ 7 \end{pmatrix}.
  18. Let AA be an m×nm \times n matrix and b\mathbf{b} be a vector in Rm\mathbb{R}^m. If x^\hat{\mathbf{x}} is the least-squares solution to the system Ax=bA\mathbf{x} = \mathbf{b}, which statement best describes the geometric relationship involving the error vector e=b−Ax^\mathbf{e} = \mathbf{b} - A\hat{\mathbf{x}}?
    Answer: The error vector e\mathbf{e} is orthogonal to the column space of AA. The normal equations ATAx^=ATbA^T A \hat{\mathbf{x}} = A^T \mathbf{b} are derived from the orthogonality condition AT(b−Ax^)=0A^T(\mathbf{b} - A\hat{\mathbf{x}}) = \mathbf{0}. This condition means that the error vector e=b−Ax^\mathbf{e} = \mathbf{b} - A\hat{\mathbf{x}} is orthogonal to every column of AA. Therefore, the error vector is orthogonal to the entire column space of AA.
  19. A researcher sets up normal equations to solve an overdetermined linear system, but discovers that the coefficient matrix ATAA^TA is singular. Given that the original matrix AA is 4×34 \times 3, what is the most likely explanation for this singularity, and what does it imply about the solution?
    Answer: The columns of AA are linearly dependent; the normal equations have infinitely many solutions lying on an affine subspace When you encounter normal equations and a singular ATAA^TA matrix, you're dealing with fundamental concepts about linear independence and the least squares solution structure. The key insight is understanding what makes ATAA^TA singular. Since AA is 4×34 \times 3, we have more equations than unknowns (overdetermined system). The matrix ATAA^TA becomes singular precisely when the columns of AA are linearly dependent. This happens because ATAA^TA inherits the rank deficiency from AA - if rank(A)<3\text{rank}(A) < 3, then rank(ATA)<3\text{rank}(A^TA) < 3, making it non-invertible. When ATAA^TA is singular, the normal equations ATAx=ATbA^TA\mathbf{x} = A^T\mathbf{b} 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 ATbA^T\mathbf{b} lies in the column space of ATAA^TA. Choice C misunderstands the relationship between b\mathbf{b} and solvability - even when b\mathbf{b} isn't in AA's column space, least squares solutions still exist and are meaningful. Study tip: Remember that ATAA^TA singular always means linearly dependent columns in AA, which leads to infinitely many least squares solutions. This is a structural property of the matrix, not the right-hand side vector.
  20. For the overdetermined system Ax=bA\mathbf{x} = \mathbf{b}, let PP be the orthogonal projection matrix onto the column space of AA. If the normal equations have solution x^\hat{\mathbf{x}}, which of the following expressions correctly represents the squared norm of the residual ∣∣b−Ax^∣∣2||\mathbf{b} - A\hat{\mathbf{x}}||^2?
    Answer: ∣∣b∣∣2−∣∣Pb∣∣2||\mathbf{b}||^2 - ||P\mathbf{b}||^2 When you encounter questions about least squares and projection matrices, remember that the residual represents the "leftover" part of b\mathbf{b} that cannot be expressed in the column space of AA. The key insight is understanding what happens geometrically. The vector Ax^A\hat{\mathbf{x}} is the orthogonal projection of b\mathbf{b} onto the column space of AA, which we can write as PbP\mathbf{b}. The residual b−Ax^=b−Pb\mathbf{b} - A\hat{\mathbf{x}} = \mathbf{b} - P\mathbf{b} is orthogonal to the column space. By the Pythagorean theorem in this orthogonal decomposition: ∣∣b∣∣2=∣∣Pb∣∣2+∣∣b−Pb∣∣2||\mathbf{b}||^2 = ||P\mathbf{b}||^2 + ||\mathbf{b} - P\mathbf{b}||^2 Rearranging gives us ∣∣b−Ax^∣∣2=∣∣b∣∣2−∣∣Pb∣∣2||\mathbf{b} - A\hat{\mathbf{x}}||^2 = ||\mathbf{b}||^2 - ||P\mathbf{b}||^2, which is answer D. Let's see why the other options fail: A bTAx^−∣∣Ax^∣∣2\mathbf{b}^T A \hat{\mathbf{x}} - ||A\hat{\mathbf{x}}||^2 incorrectly assumes you can factor the squared norm as a difference involving the inner product. B ∣∣Pb∣∣2−∣∣b∣∣2||P\mathbf{b}||^2 - ||\mathbf{b}||^2 has the terms reversed and would give a negative value, which is impossible for a squared norm. C ∣∣b∣∣2−bTAx^||\mathbf{b}||^2 - \mathbf{b}^T A \hat{\mathbf{x}} mixes a squared norm with an inner product without proper justification. Study tip: Always remember that in least squares problems, b\mathbf{b} decomposes orthogonally into its projection onto the column space (PbP\mathbf{b}) plus the residual. Use the Pythagorean theorem to relate their squared norms.

Start this quiz