Linear Algebra Quiz: Normal Equations
20 questions · exam conditions
0:00
Normal EquationsQuestion 1 of 20

Consider the problem of finding the least-squares solution to the system of equations: -x + y = 3 \quad x + y = 0 \quad y = 4 \ Which of the following represents the corresponding normal equations ATAx^=ATbA^T A \hat{\mathbf{x}} = A^T \mathbf{b}?

(2003)x^=(37)\begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix} \hat{\mathbf{x}} = \begin{pmatrix} -3 \\ 7 \end{pmatrix}
(2003)x^=(37)\begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix} \hat{\mathbf{x}} = \begin{pmatrix} 3 \\ 7 \end{pmatrix}
(3112)x^=(37)\begin{pmatrix} 3 & 1 \\ 1 & 2 \end{pmatrix} \hat{\mathbf{x}} = \begin{pmatrix} -3 \\ 7 \end{pmatrix}
(211121111)x^=(304)\begin{pmatrix} 2 & 1 & 1 \\ 1 & 2 & 1 \\ 1 & 1 & 1 \end{pmatrix} \hat{\mathbf{x}} = \begin{pmatrix} 3 \\ 0 \\ 4 \end{pmatrix}
← Back to quizzes

Linear Algebra Quiz

Linear Algebra Quiz: Normal Equations

Practice Normal Equations in Linear Algebra with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Normal Equations, giving you a quick way to practice the rules, question types, and explanations that matter most for Linear Algebra.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

Consider the problem of finding the least-squares solution to the system of equations: -x + y = 3 \quad x + y = 0 \quad y = 4 \ Which of the following represents the corresponding normal equations ATAx^=ATbA^T A \hat{\mathbf{x}} = A^T \mathbf{b}?

  1. (2003)x^=(37)\begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix} \hat{\mathbf{x}} = \begin{pmatrix} -3 \\ 7 \end{pmatrix} (correct answer)
  2. (2003)x^=(37)\begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix} \hat{\mathbf{x}} = \begin{pmatrix} 3 \\ 7 \end{pmatrix}
  3. (3112)x^=(37)\begin{pmatrix} 3 & 1 \\ 1 & 2 \end{pmatrix} \hat{\mathbf{x}} = \begin{pmatrix} -3 \\ 7 \end{pmatrix}
  4. (211121111)x^=(304)\begin{pmatrix} 2 & 1 & 1 \\ 1 & 2 & 1 \\ 1 & 1 & 1 \end{pmatrix} \hat{\mathbf{x}} = \begin{pmatrix} 3 \\ 0 \\ 4 \end{pmatrix}
Explanation: 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}.

Question 2

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 WW^\perp?

  1. The vector b\mathbf{b} being approximated.
  2. The least-squares solution vector x^\hat{\mathbf{x}}.
  3. The projection vector Ax^A\hat{\mathbf{x}}.
  4. The residual vector bAx^\mathbf{b} - A\hat{\mathbf{x}}. (correct answer)
Explanation: The fundamental principle of least squares is that the error vector (or residual vector) bAx^\mathbf{b} - A\hat{\mathbf{x}} is orthogonal to the subspace onto which we are projecting, which is the column space WW. Therefore, bAx^\mathbf{b} - A\hat{\mathbf{x}} is in WW^\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 WW^\perp.

Question 3

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?

  1. The solution vector x^\hat{\mathbf{x}} is normal (orthogonal) to the vector b\mathbf{b}.
  2. The columns of the matrix AA are required to be normal (orthogonal) to each other.
  3. The residual vector (bAx^)(\mathbf{b} - A\hat{\mathbf{x}}) is normal (orthogonal) to the column space of AA. (correct answer)
  4. The projection of b\mathbf{b} onto Col(A)\mathrm{Col}(A) is normal (orthogonal) to b\mathbf{b} itself.
Explanation: The term 'normal' is synonymous with 'orthogonal'. The normal equations are derived by enforcing the condition that the residual vector bAx^\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.

Question 4

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 bAx^\|\mathbf{b} - A\hat{\mathbf{x}}\|?

  1. 00 (correct answer)
  2. 11
  3. b\|\mathbf{b}\|
  4. It cannot be determined without knowing the matrix AA.
Explanation: 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 bAx^=bb=0\|\mathbf{b} - A\hat{\mathbf{x}}\| = \|\mathbf{b} - \mathbf{b}\| = 0.

Question 5

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?

  1. (3335)c=(814)\begin{pmatrix} 3 & 3 \\ 3 & 5 \end{pmatrix} \mathbf{c} = \begin{pmatrix} 8 \\ 14 \end{pmatrix}
  2. (111012)c=(134)\begin{pmatrix} 1 & 1 & 1 \\ 0 & 1 & 2 \end{pmatrix} \mathbf{c} = \begin{pmatrix} 1 \\ 3 \\ 4 \end{pmatrix}
  3. (3559)c=(811)\begin{pmatrix} 3 & 5 \\ 5 & 9 \end{pmatrix} \mathbf{c} = \begin{pmatrix} 8 \\ 11 \end{pmatrix}
  4. (3335)c=(811)\begin{pmatrix} 3 & 3 \\ 3 & 5 \end{pmatrix} \mathbf{c} = \begin{pmatrix} 8 \\ 11 \end{pmatrix} (correct answer)
Explanation: 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): Computing ATAA^T A: Computing ATyA^T \mathbf{y}: 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.

Question 6

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?

  1. ATPbA^T P \mathbf{b}
  2. AT(bPb)A^T (\mathbf{b} - P\mathbf{b}) (correct answer)
  3. P(bATb)P(\mathbf{b} - A^T \mathbf{b})
  4. A(Pbb)A(P\mathbf{b} - \mathbf{b})
Explanation: 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 bPb\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(bPb)=0A^T (\mathbf{b} - P\mathbf{b}) = \mathbf{0}.

Question 7

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 bw\|\mathbf{b} - \mathbf{w}\| for all wW\mathbf{w} \in W. Which expression represents the square of this minimum distance?

  1. b2+A(ATA)1ATb2\|\mathbf{b}\|^2 + \|A(A^T A)^{-1} A^T \mathbf{b}\|^2
  2. A(ATA)1ATb2\|A(A^T A)^{-1} A^T \mathbf{b}\|^2
  3. (ATA)1ATb2\|(A^T A)^{-1} A^T \mathbf{b}\|^2
  4. bA(ATA)1ATb2\|\mathbf{b} - A(A^T A)^{-1} A^T \mathbf{b}\|^2 (correct answer)
Explanation: 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: bPb=bA(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 bA(ATA)1ATb2\|\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 b2\|\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 bprojection\mathbf{b} - \text{projection}, not just the projection itself.

Question 8

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=bAx^\mathbf{e} = \mathbf{b} - A\hat{\mathbf{x}}?

  1. The error vector e\mathbf{e} is orthogonal to the column space of AA. (correct answer)
  2. The error vector e\mathbf{e} is parallel to the projection of b\mathbf{b} onto the column space of AA.
  3. The error vector e\mathbf{e} is orthogonal to the solution vector x^\hat{\mathbf{x}}.
  4. The error vector e\mathbf{e} is an element of the column space of AA.
Explanation: The normal equations ATAx^=ATbA^T A \hat{\mathbf{x}} = A^T \mathbf{b} are derived from the orthogonality condition AT(bAx^)=0A^T(\mathbf{b} - A\hat{\mathbf{x}}) = \mathbf{0}. This condition means that the error vector e=bAx^\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.

Question 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}}?

  1. When the vector b\mathbf{b} is orthogonal to the column space of AA.
  2. When the columns of the matrix AA are linearly dependent. (correct answer)
  3. When the number of rows in AA is greater than the number of its columns.
  4. When the system Ax=bA\mathbf{x} = \mathbf{b} is consistent (i.e., has an exact solution).
Explanation: 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.

Question 10

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}}?

  1. b^\hat{\mathbf{b}} is the component of b\mathbf{b} that is orthogonal to the column space WW.
  2. b^\hat{\mathbf{b}} is the orthogonal projection of b\mathbf{b} onto the column space WW. (correct answer)
  3. b^\hat{\mathbf{b}} is the orthogonal projection of b\mathbf{b} onto the null space of AA.
  4. b^\hat{\mathbf{b}} is a vector in the row space of AA that is closest to b\mathbf{b}.
Explanation: 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 bb^\mathbf{b} - \hat{\mathbf{b}}. The subspaces in (C) and (D) are incorrect.

Question 11

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:

  1. the matrix AA is a square and invertible matrix.
  2. the columns of the matrix AA are orthogonal to each other.
  3. the columns of the matrix AA are linearly independent. (correct answer)
  4. the vector b\mathbf{b} is in the column space of AA.
Explanation: 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.

Question 12

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^=(21)\hat{\mathbf{x}} = \begin{pmatrix} 2 \\ -1 \end{pmatrix} . If the residual vector is r=bAx^=(102)\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?

  1. 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 (correct answer)
  2. The residual r\mathbf{r} is parallel to the first column of AA since the first component of x^\hat{\mathbf{x}} is positive
  3. The residual r\mathbf{r} lies in the column space of AA because it can be written as a linear combination of AA's columns
  4. The residual r\mathbf{r} is orthogonal to b\mathbf{b} but not necessarily to the individual columns of AA
Explanation: 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.

Question 13

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 $$ \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}

  1. (5333)\begin{pmatrix} 5 & 3 \\ 3 & 3 \end{pmatrix} (correct answer)
  2. (3335)\begin{pmatrix} 3 & 3 \\ 3 & 5 \end{pmatrix}
  3. (5338)\begin{pmatrix} 5 & 3 \\ 3 & 8 \end{pmatrix}
  4. (8333)\begin{pmatrix} 8 & 3 \\ 3 & 3 \end{pmatrix}
Explanation: 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.

Question 14

Consider the quadratic form Q(x)=Axb2Q(\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})?

  1. Q(x)=2A(ATxb)\nabla Q(\mathbf{x}) = 2A(A^T\mathbf{x} - \mathbf{b})
  2. Q(x)=AT(Axb)\nabla Q(\mathbf{x}) = A^T(A\mathbf{x} - \mathbf{b})
  3. Q(x)=2AT(Axb)\nabla Q(\mathbf{x}) = 2A^T(A\mathbf{x} - \mathbf{b}) (correct answer)
  4. Q(x)=(ATA)xATb\nabla Q(\mathbf{x}) = (A^TA)\mathbf{x} - A^T\mathbf{b}
Explanation: When you encounter quadratic forms involving matrix norms like Q(x)=Axb2Q(\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)=(Axb)T(Axb)Q(\mathbf{x}) = (A\mathbf{x} - \mathbf{b})^T(A\mathbf{x} - \mathbf{b}). This gives you Q(x)=xTATAx2bTAx+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)=2ATAx2ATb=2AT(Axb)\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.

Question 15

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?

  1. QRx=QTbQR\mathbf{x} = Q^T\mathbf{b}
  2. RTRx=RTQTbR^TR\mathbf{x} = R^TQ^T\mathbf{b}
  3. Rx=QTbR\mathbf{x} = Q^T\mathbf{b} (correct answer)
  4. QTQRx=RTbQ^TQ R\mathbf{x} = R^T\mathbf{b}
Explanation: 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.

Question 16

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 b1A1x^1||\mathbf{b}_1 - A_1\hat{\mathbf{x}}_1|| and b2A2x^2||\mathbf{b}_2 - A_2\hat{\mathbf{x}}_2||?

  1. b2A2x^2=4b1A1x^1||\mathbf{b}_2 - A_2\hat{\mathbf{x}}_2|| = 4||\mathbf{b}_1 - A_1\hat{\mathbf{x}}_1||
  2. b2A2x^2=2b1A1x^1||\mathbf{b}_2 - A_2\hat{\mathbf{x}}_2|| = 2||\mathbf{b}_1 - A_1\hat{\mathbf{x}}_1|| (correct answer)
  3. b2A2x^2=b1A1x^1||\mathbf{b}_2 - A_2\hat{\mathbf{x}}_2|| = ||\mathbf{b}_1 - A_1\hat{\mathbf{x}}_1||
  4. b2A2x^2=2b1A1x^1||\mathbf{b}_2 - A_2\hat{\mathbf{x}}_2|| = \sqrt{2}||\mathbf{b}_1 - A_1\hat{\mathbf{x}}_1||
Explanation: 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^1b1A_1\hat{\mathbf{x}}_1 \approx \mathbf{b}_1, and for System 2: A2x^2b2A_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 A1xb12||A_1\mathbf{x} - \mathbf{b}_1||^2, then 2x^12\hat{\mathbf{x}}_1 minimizes A1x2b12||A_1\mathbf{x} - 2\mathbf{b}_1||^2. The residual for System 2 becomes: b2A2x^2=2b1A1(2x^1)=2(b1A1x^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: b2A2x^2=2(b1A1x^1)=2b1A1x^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.

Question 17

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?

  1. The system is overdetermined with m>nm > n; singular ATAA^TA indicates the original system has a unique exact solution
  2. The matrix AA has more rows than columns; the normal equations are inconsistent and have no solution
  3. The vector b\mathbf{b} lies outside the column space of AA; the least squares problem has no meaningful solution
  4. The columns of AA are linearly dependent; the normal equations have infinitely many solutions lying on an affine subspace (correct answer)
Explanation: 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.

Question 18

For an inconsistent linear system Ax=bA\mathbf{x} = \mathbf{b}, the normal equations ATAx=ATbA^TA\mathbf{x} = A^T\mathbf{b} always have a solution. If AA has linearly independent columns, which statement best explains why the normal equations are consistent while the original system is not?

  1. The matrix ATAA^TA is always invertible when AA has linearly independent columns, guaranteeing a unique solution regardless of b\mathbf{b} (correct answer)
  2. The vector ATbA^T\mathbf{b} automatically lies in the column space of ATAA^TA because ATAA^TA has the same column space as ATA^T
  3. The normal equations project the inconsistent system onto a consistent subspace by ensuring the residual is orthogonal to the column space
  4. The transformation ATA^T maps any vector b\mathbf{b} into the row space of AA, which is always compatible with the column space of ATAA^TA
Explanation: When AA has linearly independent columns, ATAA^TA is invertible (positive definite), so ATAx=ATbA^TA\mathbf{x} = A^T\mathbf{b} has the unique solution x=(ATA)1ATb\mathbf{x} = (A^TA)^{-1}A^T\mathbf{b} for any b\mathbf{b}. Choice B is incorrect because ATAA^TA has the same column space as ATA^T, but this doesn't automatically guarantee ATbA^T\mathbf{b} lies in it. Choice C describes what the solution does but not why the equations are consistent. Choice D incorrectly describes the relationship between row and column spaces.

Question 19

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 bAx^2||\mathbf{b} - A\hat{\mathbf{x}}||^2?

  1. bTAx^Ax^2\mathbf{b}^T A \hat{\mathbf{x}} - ||A\hat{\mathbf{x}}||^2
  2. Pb2b2||P\mathbf{b}||^2 - ||\mathbf{b}||^2
  3. b2bTAx^||\mathbf{b}||^2 - \mathbf{b}^T A \hat{\mathbf{x}}
  4. b2Pb2||\mathbf{b}||^2 - ||P\mathbf{b}||^2 (correct answer)
Explanation: 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 bAx^=bPb\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: b2=Pb2+bPb2||\mathbf{b}||^2 = ||P\mathbf{b}||^2 + ||\mathbf{b} - P\mathbf{b}||^2 Rearranging gives us bAx^2=b2Pb2||\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 Pb2b2||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 b2bTAx^||\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.

Question 20

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}}?

  1. Ax^A\hat{\mathbf{x}} is the orthogonal projection of b\mathbf{b} onto the column space of AA (correct answer)
  2. Ax^A\hat{\mathbf{x}} is the orthogonal projection of b\mathbf{b} onto the null space of ATA^T
  3. Ax^A\hat{\mathbf{x}} is the component of b\mathbf{b} that lies in the left null space of AA
  4. Ax^A\hat{\mathbf{x}} is the reflection of b\mathbf{b} across the hyperplane defined by ATy=0A^T\mathbf{y} = \mathbf{0}
Explanation: The least squares solution x^\hat{\mathbf{x}} minimizes Axb2||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.