MTH 215 — Intro to Linear Algebra
Homework 6
Suggested Deadline: Wednesday, April 29 at 11:59pm
Last Possible Deadline: Friday, May 1 at 11:59pm
Your work must follow the homework policies and submission guidelines in the Syllabus and on Brightspace.
- Solve the problems in this document. Your work must be handwritten (not typed).
- You need to show all your work. Correct answers without supporting work will not receive credit.
- Using techniques, theorems, definitions, etc. from material not covered in this assignment will not receive credit.
- Your work must be written on the pdf document provided. You can get another copy in class if needed.
- Submit your work as a pdf on Brightspace in the assignment titled “Homework 6-Written (pdf)”.
- Use the filename YourLastName.pdf in your submission.
- Solve the problems on the software Edfinity. Edfinity grades are computed at the semester's end.
- You do not show your work for these problems; the software only takes the final answer.
- This portion—and only this portion—is submitted entirely on Edfinity.
Both sections (in their respective formats and locations described above) are due:
Wednesday, April 29 at 11:59pm or Friday, May 1 at 11:59pm
Late work will not be considered!
-
If possible, diagonalize \[ A = \mat{rrrr} 5 & -3 & 0 & 9 \\ 0 & 3 & 1 & -2 \\ 0 & 0 & 2 & 0 \\ 0 & 0 & 0 & 2 \rix \] and show all your work. If it's not possible, explain why not by quoting a result from the notes.
Note: You can use MATLAB to aid with row operations, but need to write the RREF's here.
-
Define the vectors \[ \vec{x} \eq \mat{r} 2 \\ 5 \\ 1 \rix, \qquad \vec{y} \eq \mat{r} -1 \\ -4 \\ 6 \rix .\]
- Compute $\vec{x} \bullet \vec{y}$ (the inner product)
- Compute $\norm{\vec{x}}$ and $\norm{\vec{y}}$.
- Find the angle between $\vec{x}$ and $\vec{y}$, in degrees.
- Compute $\vec{x} \vec{y}^T$, which is called the outer product and can be found using normal matrix multiplication.
-
An $n\times n$ matrix $Q$ is called orthogonal if the following two conditions hold:
- The norm of each column is $1$. That is, the columns are unit vectors.
- All columns are orthogonal to each other.
For example, this matrix (with the columns indicated) \[ Q \eq \mat{ccc} \vec{q}_1 & \vec{q}_2 & \vec{q}_3 \rix \eq \mat{ccc} 1 / \sqrt{2} & -1 /\sqrt{2} & 0 \\ 1 / \sqrt{2} & 1 /\sqrt{2} & 0 \\ 0 & 0 & -1 \rix \] is orthogonal because 1) $\norm{\vec{q}_1} = \norm{\vec{q}_2} = \norm{\vec{q}_3} = 1$, and 2) $\vec{q}_1^T \vec{q}_2 = 0$, $\vec{q}_1^T \vec{q}_3 = 0$, and $\vec{q}_2^T \vec{q}_3 = 0$.
- For the matrix $Q$ above, compute $Q^T Q$. Show all steps.
- Explain why $Q$ must be invertible. Clearly justify your reasoning.
- Let $\vec{x} = \mat{r} 2 \\ 3 \\ 0 \rix$. Find $Q \vec{x}$ where $Q$ is defined above.
- Compute $\norm{\vec{x}}$ and $\norm{Q \vec{x}}$ using your answer from part (c).
-
MATLAB Question
Consider the matrix \[ A \eq \mat{rrrr} -6 & -3 & 6 & 1 \\ -1 & 2 & 1 & -6 \\ 3 & 6 & 3 & -2 \\ 6 & -3 & 6 & -1 \\ 2 & -1 & 2 & 3 \\ -3 & 6 & 3 & 2 \\ -2 & -1 & 2 & -3 \\ 1 & 2 & 1 & 6 \rix .\]
- In MATLAB, define a new matrix $Q$ formed by normalizing the columns of $A$ so they have norm $1$. You can compute the norm of a column vector
xin MATLAB simply bynorm(x). You do not have to write this matrix below. - Compute $Q^T Q$ and $Q Q^T$ in MATLAB, and display these to the command window. You do not have to copy these matrices here. Briefly summarize your findings, including the sizes of these matrices. How do $Q^TQ$ and $Q Q^T$ differ?
- Let $\vec{y} = (1,2,3,4,5,6,7,8)^T$ be a vector in $\R^8$. In MATLAB, compute $\vec{p} = Q Q^T \vec{y}$. Then, form the augmented matrix $\mat{c|c} A & \vec{p} \rix$ and compute its rank using the
rankfunction in MATLAB. Display this number to the command window, and write it below. Explain, in words, why this means $\vec{p}$ is in $\Col (A)$.Hint: There is something else you need to compute to fully, correctly answer this question.
- Let $\vec{z} = \vec{y} - \vec{p}$, and then compute $\vec{z}^T \vec{p}$ in MATLAB. Recall that the transpose operation is done by the apostrophe as in
x'. Is $\vec{z}$ orthogonal to $\vec{p}$?
- In MATLAB, define a new matrix $Q$ formed by normalizing the columns of $A$ so they have norm $1$. You can compute the norm of a column vector