Exercises – Long Day#

Exercise 1: Linear combinations#

We are given the following vectors in \(\mathbb{R}^3\):

\[\begin{split} \mathbf u=\left[ \begin{array}{c} 4\\ -2\\ 0\\ \end{array} \right], \quad \mathbf v=\left[ \begin{array}{c} 7\\ 4\\ 3\\ \end{array} \right], \quad \mathbf w=\left[ \begin{array}{c} 1\\ 7\\ 3\\ \end{array} \right]. \end{split}\]

Question a#

Calculate the following linear combinations of the three vectors \(\mathbf u\), \(\mathbf v\) and \(\mathbf w\):

  1. \(4\mathbf v\).

  2. \(2\mathbf u-3\mathbf w\).

  3. \(3\mathbf u-2\mathbf v+2\mathbf w\).

Question b#

Determine whether the vectors \(\mathbf u\), \(\mathbf v\) and \(\mathbf w\) are linearly independent based on your answers to Question a.

Question c#

Show that the vectors \(\mathbf u\) and \(\mathbf v\) are linearly independent.

Exercise 2: Linearly independent vectors in \(\mathbb{R}^4\)#

We are given the following three vectors in \(\mathbb{R}^4\):

\[\begin{split} \mathbf u=\left[ \begin{array}{c} 1\\ 1\\ 0\\ 0\\ \end{array} \right], \quad \mathbf v=\left[ \begin{array}{c} 0\\ 1\\ 1\\ 0\\ \end{array} \right], \quad \mathbf w=\left[ \begin{array}{c} 0\\ 0\\ 1\\ 1\\ \end{array} \right]. \end{split}\]

Question a#

Show that the vectors \(\mathbf u\), \(\mathbf v\) and \(\mathbf w\) are linearly independent.

Question b#

Assume that \(\mathbf c \in \mathbb{R}^4\) is a vector such that \(\mathbf u\), \(\mathbf v\), \(\mathbf w\) and \(\mathbf c\) are linearly independent. Show that \(\mathbf c\) then cannot be written as a linear combination of \(\mathbf u\), \(\mathbf v\) and \(\mathbf w\).

Question c#

Find a vector \(\mathbf b \in \mathbb R^4\) such that the vectors \(\mathbf u\), \(\mathbf v\), \(\mathbf w\) and \(\mathbf b\) are linearly independent.

Exercise 3: Linear independence and reduced row-echelon form#

We are given the following three vectors in \(\mathbb R^3\):

\[\begin{split} \mathbf v_1=\left[ \begin{array}{c} 1\\ 0\\ 4\\ \end{array} \right], \quad \mathbf v_2=\left[ \begin{array}{c} 1\\ 1\\ 7\\ \end{array} \right], \quad \mathbf v_3=\left[ \begin{array}{c} 1\\ 2\\ 3\\ \end{array} \right]. \end{split}\]

Question a#

Let \(\mathbf A\) be the \(3 \times 3\) matrix that has \(\mathbf v_1\), \(\mathbf v_2\) and \(\mathbf v_3\) as columns. Calculate the reduced row-echelon form of the matrix and use this form to determine the rank of \(\mathbf A\).

Question b#

Are the given vectors \(\mathbf v_1\), \(\mathbf v_2\) and \(\mathbf v_3\) linearly independent?

Question c#

Can four vectors \(\mathbf w_1\), \(\mathbf w_2\), \(\mathbf w_3\) and \(\mathbf w_4\) in \(\mathbb R^3\) be linearly independent?

Exercise 4: Matrix products#

We are given the following three matrices:

\[\begin{split} \mathbf A=\left[ \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ \end{array} \right], \quad \mathbf B=\left[ \begin{array}{cc} 1 & 4\\ 2 & 1\\ 3 & 0\\ \end{array} \right], \quad \mathbf C=\left[ \begin{array}{ccc} 1 & 0 & 0 \\ 0 & -1 & 0 \\ 2 & 0 & 0 \\ \end{array} \right]. \end{split}\]

Question a#

Which of the nine matrix products \(\mathbf A\cdot\mathbf A\), \(\mathbf A\cdot\mathbf B\), \(\mathbf A\cdot\mathbf C\), \(\mathbf B\cdot\mathbf A\), \(\mathbf B\cdot\mathbf B\), \(\mathbf B\cdot\mathbf C\), \(\mathbf C\cdot\mathbf A\), \(\mathbf C\cdot\mathbf B\) and \(\mathbf C\cdot\mathbf C\) are defined?

Question b#

Calculate the matrix products \(\mathbf A\cdot\mathbf B\) and \(\mathbf B\cdot\mathbf A\). Does it hold that \(\mathbf A\cdot\mathbf B=\mathbf B\cdot\mathbf A\)?

Question c#

Calculate the product of the scalar \(-1/2\) with the matrix \(\mathbf C\). In other words, calculate \((-1/2) \cdot \mathbf C\).

Question d#

Determine whether the following sums of matrices are defined, and calculate those that are: \((-1/2) \cdot \mathbf C+\mathbf A \cdot \mathbf B\) and \((-1/2) \cdot \mathbf C+\mathbf B \cdot \mathbf A.\)

Exercise 5: Matrix-vector product and systems of linear equations#

We are given the following system of linear equations:

\[\begin{split} \left\{ \begin{array}{ccc} x_1 + x_4 & = & 0\\ -2x_1+x_2 +3x_4 & = & 1\\ 5x_1 +x_3 -4x_4 & = & 1\\ 4x_1 +x_2 +x_3 & = & 2\\ \end{array} \right. \end{split}\]

Question a#

Write the system in the same form as Equation (7.5) in the textbook.

Question b#

We define

\[\begin{split}\mathbf A=\left[ \begin{array}{cccc} 1 & 0 & 0 & 1 \\ -2 & 1 & 0 & 3 \\ 5 & 0 & 1 & -4 \\ 4 & 1 & 1 & 0 \\ \end{array} \right], \quad \mathbf b=\left[ \begin{array}{c} 0 \\ 1 \\ 1 \\ 2 \\ \end{array} \right].\end{split}\]

Check that the given system of linear equations has the augmented matrix \([\mathbf A|\mathbf b]\). In Exercise 3b from Short Day in Week 6 we checked that the system of linear equations whose augmented matrix is \([\mathbf A|\mathbf b]\) has the following particular solution:

\[\begin{split} \mathbf v=\left[ \begin{array}{c} 0 \\ 1 \\ 1 \\ 0 \\ \end{array} \right]. \end{split}\]

Check this again, but this time by calculating the product \(\mathbf A\cdot\mathbf v\).

Exercise 6: Finding inverse matrices#

We are given the following square matrix:

\[\begin{split}\mathbf A=\left[ \begin{array}{ccc} 1 & 1 & 0 \\ -1 & 1 & 0 \\ 5 & 0 & 1 \\ \end{array} \right].\end{split}\]

Determine whether the matrix \(\mathbf A^{-1}\) exists, and if so, find it.

Exercise 7: Inverse matrices and systems of linear equations#

Let \(n\) be a natural number and \(\mathbf A \in \mathbb{C}^{n \times n}\) an invertible square matrix. Furthermore, let \(\mathbf b \in \mathbb{C}^n\) be a vector.

Question a#

Show that the vector \(\mathbf A^{-1}\cdot \mathbf b \in \mathbb{C}^n\) is a solution to the system of linear equations whose augmented matrix is \([\mathbf A|\mathbf b].\)

Question b#

Show that the vector \(\mathbf A^{-1} \cdot \mathbf b\) is the only solution to the system of linear equations whose augmented matrix is \([\mathbf A|\mathbf b].\)

Exercise 8: Systems with variable coefficients#

For each real number \(a\), we are given the following system of linear equations:

\[\begin{align*} ax_1 + x_2 + x_3 &= 1\\ x_1 + ax_2 + x_3 &= 1\\ x_1 + x_2 + ax_3 &= 1 \end{align*}\]

Question a#

State the augmented matrix of the system.

Question b#

What is the solution set to the system for \(a=-2\)?

Question c#

Solve the system of linear equations for all \(a\in \Bbb R\).

Thematic Python Module 1#

The Jupyter Notebook for module 1 will be released today at 15:30 on the course’s DTU Learn module.

Next Wednesday at 15:30, a 1.5-hour Python test on module 1 will take place in your study area. Work through today’s Notebook to prepare.

Have you finished all the exercises and the Jupyter Notebook?#

Are you done with the exercises of the day and just waiting for the Python module to be released, then click here for some challenging optional extra exercises.