Homework 12

Table of Contents

The following assignment is due Tuesday 12/10 by 11:59 PM. You should submit all your written solutions to Gradescope as a single pdf. Follow the instructions in the programming problem for code solutions.

1. Least Squares

\begin{align*} A = \begin{bmatrix} 1 & 2 \\ 1 & -1 \\ 1 & -1 \\ \end{bmatrix} \qquad \mathbf b = \begin{bmatrix} 4 \\ 2 \\ 0 \end{bmatrix} \end{align*}

For this problem, you must do all calculations by hand and show your work.

1.1. (2 points)

Determine the normal equations of \(A\mathbf x = \mathbf b\).

1.2. (2 points)

Determine a least-squares solution of \(A \mathbf x = \mathbf b\).

1.3. (1 points)

Is the least-squares solution you determined in the previous part unique? Justify your answer.

2. Linear Models

We will use the following dataset for this problem.

\begin{align*} \{(-2, 0), (-1, 5), (0, 13), (1, 9), (2, 5), (3, 0)\} \end{align*}

2.1. (2 points)

Set up a linear system whose least-squares solution determines the parameters for the least-squares fit model of the form \(f(x) = \beta_1 \cos x + \beta_2 \sin x + \beta_3 x + \beta_4\) (in other words, determine the design matrix and the vector of labels for the given data and model). Round the entries of the design matrix to the nearest hundredth.

2.2. (2 points)

Determine the least-squares fit model for the given data. Round the parameters to the nearest hundredth.

3. Quadratic Forms

Consider the following quadratic form.

\begin{align*} 3x_1^2 + 3x_2^2 + 5x_3^2 + 6x_1 x_2 + 2x_1 x_3 + 2x_2 x_3 \end{align*}

3.1. (2 points)

Determine the underlying matrix for \(A\).

3.2. (2 points)

Determine \(\mathsf{max}_{\|\mathbf x\| = 1} \mathbf x^TA\mathbf x\), that is the maximum value of \(\mathbf x^TA\mathbf x\). You may use a computer for this part, but you must describe your process and justify your answer.

3.3. (2 points)

Determine \(\mathsf{argmax}_{\|\mathbf x\| = 1} \mathbf x^TA\mathbf x\), that is unit vector which attains the maximum value. For this part, you must do calculations by hand and show your work.

4. SVD (Extra Credit)

\begin{align*} A = \begin{bmatrix} 3 & 2 \\ 2 & 3 \\ 2 & -2 \end{bmatrix} \end{align*}

4.1. (1 point)

Determine a singular value decomposition of \(A\). For this part, you must do calculations by hand and show your work.

4.2. (1 point)

Determine a singular value decomposition of \(A^T\). (Hint. Don't do all the work again)