Salta al contenuto
Note per Studenti Linear Algebra - Mock Exam 1 Report

Linear Algebra - Mock Exam 1

Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.

In questa pagina 5

Mock exam built on the model of the Linear Algebra and Geometry exams of 20 June 2023, 5 July 2022 and 1 September 2022 (Information Engineering, UniPD, Italian-taught equivalent course): four exercises with several questions each, no separate theory part (theory questions are inside the exercises, as "justify your answer"). The original sheets do not show the points, so here we assign 8 points per exercise, 32 in total (pass mark 18). Suggested time: 2 hours. No notes and no calculator. How to use it: solve it in one go, writing everything out as in a real exam; only then compare with the Result and finally read the Solution and the grid at the end.

Exercise 1 (points 8)

In R4\mathbb{R}^4 let UU be the subspace generated by the vectors u1=(1,0,1,1),u2=(0,1,1,−1),u3=(1,1,2,0),u4=(0,0,0,1),u_1=(1,0,1,1),\quad u_2=(0,1,1,-1),\quad u_3=(1,1,2,0),\quad u_4=(0,0,0,1), and let WW be the subspace of equations W: {x1+x3+x4=0x2−x3=0.W:\ \begin{cases} x_1+x_3+x_4=0\\ x_2-x_3=0.\end{cases}

(a) Find the dimension and a basis of UU and of WW, and write Cartesian equations of UU. (b) Find the dimension and a basis of U∩WU\cap W. (c) Find dim⁡(U+W)\dim(U+W). Is U+W=R4U+W=\mathbb{R}^4? Is the sum U+WU+W direct? (d) Find a one-dimensional subspace L⊆WL\subseteq W such that U⊕L=R4U\oplus L=\mathbb{R}^4.

Show the result

(a) dim⁡U=3\dim U=3, basis u1,u2,u4u_1,u_2,u_4; equation of UU: x1+x2−x3=0x_1+x_2-x_3=0. dim⁡W=2\dim W=2, basis (−1,1,1,0)(-1,1,1,0), (−1,0,0,1)(-1,0,0,1).

(b) dim⁡(U∩W)=1\dim(U\cap W)=1, basis (0,1,1,−1)(0,1,1,-1).

(c) dim⁡(U+W)=4\dim(U+W)=4, so U+W=R4U+W=\mathbb{R}^4; the sum is not direct.

(d) For example L=L((−1,1,1,0))L=L\bigl((-1,1,1,0)\bigr) (any line of WW other than U∩WU\cap W works).

Show the full solution

(a) The generators are not independent: u3=u1+u2u_3=u_1+u_2, since (1,0,1,1)+(0,1,1,−1)=(1,1,2,0)(1,0,1,1)+(0,1,1,-1)=(1,1,2,0). So U=L(u1,u2,u4)U=L(u_1,u_2,u_4). These three are independent: a relation αu1+βu2+γu4=(α,β,α+β,α−β+γ)=0\alpha u_1+\beta u_2+\gamma u_4=(\alpha,\beta,\alpha+\beta,\alpha-\beta+\gamma)=0 forces α=β=0\alpha=\beta=0 and then γ=0\gamma=0. Hence dim⁡U=3\dim U=3 with basis u1,u2,u4u_1,u_2,u_4 (see Bases and DimensionA basis is a linearly independent generating system; all bases of a vector space have the same number of vectors, the dimension, and the dimensions of intersection and sum of two subspaces are linked by dim(A cap B) = dim A + dim B - dim(A+B).Bases and Dimension →). Typical mistake: counting the four generators and answering dim⁡U=4\dim U=4; the dimension is the number of vectors of a basis, so redundant generators must be discarded.

A generic element of UU is αu1+βu2+γu4=(α,β,α+β,α−β+γ)\alpha u_1+\beta u_2+\gamma u_4=(\alpha,\beta,\alpha+\beta,\alpha-\beta+\gamma). Its third coordinate is the sum of the first two, and the fourth is free (because of γ\gamma): so UU is described by the single equation x1+x2−x3=0.x_1+x_2-x_3=0. Check: a single equation in R4\mathbb{R}^4 gives 4−1=34-1=3 dimensions, as found.

For WW solve the homogeneous system (Systems of Linear EquationsA linear system is solved by elementary operations on its augmented matrix; Gaussian elimination brings any matrix to reduced row-echelon form, from which the (empty, unique or infinite) solution set with its free variables can be read off.Systems of Linear Equations →): the second equation gives x2=x3x_2=x_3, the first x1=−x3−x4x_1=-x_3-x_4. With free parameters x3=ax_3=a, x4=bx_4=b: (x1,x2,x3,x4)=(−a−b, a, a, b)=a(−1,1,1,0)+b(−1,0,0,1).(x_1,x_2,x_3,x_4)=(-a-b,\ a,\ a,\ b)=a(-1,1,1,0)+b(-1,0,0,1). The two vectors are independent (look at the last two coordinates), so dim⁡W=2\dim W=2 and they are a basis. The two equations are independent, so 4−2=24-2=2 again.

(b) A vector is in U∩WU\cap W exactly when it satisfies the equations of both. The system is {x1+x2−x3=0x1+x3+x4=0x2−x3=0.\begin{cases}x_1+x_2-x_3=0\\ x_1+x_3+x_4=0\\ x_2-x_3=0.\end{cases} From the third, x2=x3x_2=x_3; the first becomes x1=0x_1=0; the second gives x4=−x3x_4=-x_3. With x3=sx_3=s: (0,s,s,−s)=s(0,1,1,−1)(0,s,s,-s)=s(0,1,1,-1). So dim⁡(U∩W)=1\dim(U\cap W)=1 and a basis is (0,1,1,−1)=u2(0,1,1,-1)=u_2. (It is indeed in UU and in WW: it equals a(−1,1,1,0)+b(−1,0,0,1)a(-1,1,1,0)+b(-1,0,0,1) with a=1a=1, b=−1b=-1.)

(c) By the dimension formula (Grassmann, see Bases and DimensionA basis is a linearly independent generating system; all bases of a vector space have the same number of vectors, the dimension, and the dimensions of intersection and sum of two subspaces are linked by dim(A cap B) = dim A + dim B - dim(A+B).Bases and Dimension →) dim⁡(U+W)=dim⁡U+dim⁡W−dim⁡(U∩W)=3+2−1=4.\dim(U+W)=\dim U+\dim W-\dim(U\cap W)=3+2-1=4. A subspace of R4\mathbb{R}^4 of dimension 44 is R4\mathbb{R}^4 itself, so U+W=R4U+W=\mathbb{R}^4. The sum is direct if and only if U∩W={0}U\cap W=\{0\}, equivalently dim⁡(U+W)=dim⁡U+dim⁡W\dim(U+W)=\dim U+\dim W; here 4≠54\neq5, so it is not direct. Note that dim⁡U+dim⁡W=5>4\dim U+\dim W=5>4 already forces a nonzero intersection.

(d) We need L⊆WL\subseteq W with L∩U={0}L\cap U=\{0\}: then dim⁡(U+L)=3+1=4\dim(U+L)=3+1=4, hence U⊕L=R4U\oplus L=\mathbb{R}^4. Take L=L(w)L=L(w) with w=(−1,1,1,0)∈Ww=(-1,1,1,0)\in W. It is not in UU, because the equation of UU gives −1+1−1=−1≠0-1+1-1=-1\neq 0; so L∩U={0}L\cap U=\{0\} (a line is either contained in UU or meets it only in 00). Any vector of WW outside the line U∩W=L((0,1,1,−1))U\cap W=L\bigl((0,1,1,-1)\bigr) works; the choice L=W∩UL=W\cap U would be wrong since then the intersection is not zero.

Exercise 2 (points 8)

For t∈Rt\in\mathbb{R} let ft:R4→R3f_t:\mathbb{R}^4\to\mathbb{R}^3 be the linear map ft(x1,x2,x3,x4)=(−x1+x2+3x3,  2x1−2x2+x3,  −2x1+2x2−2x3+t x4).f_t(x_1,x_2,x_3,x_4)=(-x_1+x_2+3x_3,\ \ 2x_1-2x_2+x_3,\ \ -2x_1+2x_2-2x_3+t\,x_4).

(a) Write the matrix of ftf_t with respect to the standard bases and compute its rank as tt varies. (b) For each tt find a basis of ker⁡ft\ker f_t and a basis of Im⁡ft\operatorname{Im} f_t. For which tt is ftf_t injective? For which is it surjective? (c) Let v=(2,3,−4)v=(2,3,-4). For which tt does v∈Im⁡ftv\in\operatorname{Im} f_t? For those tt describe the preimage ft−1(v)f_t^{-1}(v).

Show the result

(a) At=(−11302−210−22−2t)A_t=\begin{pmatrix}-1&1&3&0\\2&-2&1&0\\-2&2&-2&t\end{pmatrix}; rank⁡At=3\operatorname{rank}A_t=3 if t≠0t\neq0, rank⁡A0=2\operatorname{rank}A_0=2.

(b) t≠0t\neq0: ker⁡ft=L((1,1,0,0))\ker f_t=L\bigl((1,1,0,0)\bigr), Im⁡ft=R3\operatorname{Im}f_t=\mathbb{R}^3. t=0t=0: ker⁡f0=L((1,1,0,0),(0,0,0,1))\ker f_0=L\bigl((1,1,0,0),(0,0,0,1)\bigr), Im⁡f0=L((−1,2,−2),(3,1,−2))={2a+8b+7c=0}\operatorname{Im}f_0=L\bigl((-1,2,-2),(3,1,-2)\bigr)=\{2a+8b+7c=0\}. Never injective; surjective iff t≠0t\neq0.

(c) v∈Im⁡ftv\in\operatorname{Im}f_t for every tt. For t≠0t\neq0: ft−1(v)={(1+a,a,1,0)∣a∈R}f_t^{-1}(v)=\{(1+a,a,1,0)\mid a\in\mathbb{R}\}. For t=0t=0: f0−1(v)=(1,0,1,0)+L((1,1,0,0),(0,0,0,1))f_0^{-1}(v)=(1,0,1,0)+L\bigl((1,1,0,0),(0,0,0,1)\bigr).

Show the full solution

(a) The columns of the matrix are the images of the standard basis vectors (see Linear MapsA linear map between vector spaces preserves sums and scalar multiples; its kernel and image are subspaces whose dimensions add up to the dimension of the domain (rank-nullity), and a linear map is determined by its values on a basis.Linear Maps → and Matrices and Change of BasisEvery linear map between finite-dimensional spaces is described by a matrix once bases are chosen, composition of maps corresponds to the matrix product, invertible matrices are those reducible to the identity, and a change of basis conjugates the matrix by the base change matrix.Matrices and Change of Basis →): At=(−11302−210−22−2t).A_t=\begin{pmatrix}-1&1&3&0\\2&-2&1&0\\-2&2&-2&t\end{pmatrix}. The rank is at most 33. The second column is minus the first, so we may drop it and look at the columns 1,3,41,3,4: det⁡(−130210−2−2t)=t (−1⋅1−3⋅2)=−7t,\det\begin{pmatrix}-1&3&0\\2&1&0\\-2&-2&t\end{pmatrix}=t\,(-1\cdot1-3\cdot2)=-7t, expanding along the last column (DeterminantsThe determinant is the unique function of a square matrix that equals 1 on the identity, changes sign when two rows are swapped and is linear in each row; it is computed by row reduction, Sarrus rule or cofactor expansion, and a matrix is invertible exactly when its determinant is non-zero.Determinants →). If t≠0t\neq0 the determinant is nonzero, so the rank is 33. If t=0t=0 the last column is zero and the first two columns are proportional, so the rank is that of the columns (−1,2,−2)(-1,2,-2), (3,1,−2)(3,1,-2), which are independent: rank 22.

(b) By rank-nullity (Linear MapsA linear map between vector spaces preserves sums and scalar multiples; its kernel and image are subspaces whose dimensions add up to the dimension of the domain (rank-nullity), and a linear map is determined by its values on a basis.Linear Maps →) dim⁡ker⁡ft=4−rank⁡At\dim\ker f_t=4-\operatorname{rank}A_t.

Case t≠0t\neq0. The rank is 33, so dim⁡Im⁡ft=3\dim\operatorname{Im}f_t=3 and Im⁡ft=R3\operatorname{Im}f_t=\mathbb{R}^3; dim⁡ker⁡ft=1\dim\ker f_t=1. Solve Atx=0A_tx=0: the first two equations −x1+x2+3x3=0-x_1+x_2+3x_3=0 and 2x1−2x2+x3=02x_1-2x_2+x_3=0 involve only s=x1−x2s=x_1-x_2 and x3x_3: −s+3x3=0-s+3x_3=0, 2s+x3=02s+x_3=0, whose only solution is s=0s=0, x3=0x_3=0. The third equation then reads t x4=0t\,x_4=0, so x4=0x_4=0. Hence x1=x2x_1=x_2 and ker⁡ft=L((1,1,0,0))\ker f_t=L\bigl((1,1,0,0)\bigr).

Case t=0t=0. The rank is 22, so dim⁡ker⁡f0=2\dim\ker f_0=2. The same computation gives x3=0x_3=0 and x1=x2x_1=x_2 from the first two equations, while the third is now −2x1+2x2−2x3=0-2x_1+2x_2-2x_3=0, already satisfied; x4x_4 is free. So ker⁡f0=L((1,1,0,0),(0,0,0,1))\ker f_0=L\bigl((1,1,0,0),(0,0,0,1)\bigr). The image is generated by the columns, and the independent ones are (−1,2,−2)(-1,2,-2) and (3,1,−2)(3,1,-2): a basis of Im⁡f0\operatorname{Im}f_0. A Cartesian equation: a vector (2,8,7)(2,8,7) orthogonal to both generators is found by solving −p+2q−2r=0-p+2q-2r=0, 3p+q−2r=03p+q-2r=0 (subtracting: 4p−q=04p-q=0, so q=4pq=4p and r=3.5pr=3.5p; take p=2p=2), so Im⁡f0={(a,b,c)∣2a+8b+7c=0}\operatorname{Im}f_0=\{(a,b,c)\mid2a+8b+7c=0\}. Check on the first column: −2+16−14=0-2+16-14=0; on the second: 6+8−14=06+8-14=0.

Injectivity and surjectivity. ftf_t is injective iff ker⁡ft={0}\ker f_t=\{0\}, but dim⁡ker⁡ft≥1\dim\ker f_t\ge1 for every tt (a map from R4\mathbb{R}^4 to R3\mathbb{R}^3 is never injective). It is surjective iff Im⁡ft=R3\operatorname{Im}f_t=\mathbb{R}^3 iff the rank is 33 iff t≠0t\neq0.

(c) For t≠0t\neq0 the map is surjective, so v∈Im⁡ftv\in\operatorname{Im}f_t. For t=0t=0 we check the equation of the image: 2⋅2+8⋅3+7⋅(−4)=4+24−28=02\cdot2+8\cdot3+7\cdot(-4)=4+24-28=0, so v∈Im⁡f0v\in\operatorname{Im}f_0 as well. Hence the answer is: every tt.

Preimage: solve Atx=vA_tx=v. The first two equations, in the unknowns s=x1−x2s=x_1-x_2 and x3x_3: −s+3x3=2-s+3x_3=2, 2s+x3=32s+x_3=3. From the second x3=3−2sx_3=3-2s; substituting, −s+9−6s=2-s+9-6s=2, so s=1s=1 and x3=1x_3=1. The third equation is −2s−2x3+t x4=−4-2s-2x_3+t\,x_4=-4, i.e. −4+t x4=−4-4+t\,x_4=-4, i.e. t x4=0t\,x_4=0.

  • If t≠0t\neq0: x4=0x_4=0 and x1=x2+1x_1=x_2+1: ft−1(v)={(1+a,a,1,0)}=(1,0,1,0)+L((1,1,0,0))f_t^{-1}(v)=\{(1+a,a,1,0)\}=(1,0,1,0)+L\bigl((1,1,0,0)\bigr).
  • If t=0t=0: x4x_4 is free: f0−1(v)=(1,0,1,0)+L((1,1,0,0),(0,0,0,1))f_0^{-1}(v)=(1,0,1,0)+L\bigl((1,1,0,0),(0,0,0,1)\bigr).

In both cases the preimage is a particular solution plus the kernel. Typical mistake: forgetting that the equation for x4x_4 degenerates when t=0t=0 and stating the same preimage for all tt.

Exercise 3 (points 8)

For k∈Rk\in\mathbb{R} consider the matrix Ak=(k−120−1−20−10).A_k=\begin{pmatrix}k&-1&2\\0&-1&-2\\0&-1&0\end{pmatrix}.

(a) Compute the characteristic polynomial and the eigenvalues of AkA_k. (b) For each value of kk determine algebraic and geometric multiplicity of the eigenvalues and decide whether AkA_k is diagonalizable. (c) For k=0k=0 find an invertible matrix PP and a diagonal matrix DD with P−1A0P=DP^{-1}A_0P=D.

Show the result

(a) pk(x)=(x−k)(x−1)(x+2)p_k(x)=(x-k)(x-1)(x+2); eigenvalues kk, 11, −2-2.

(b) k≠1,−2k\neq1,-2: three distinct eigenvalues, diagonalizable. k=1k=1: eigenvalue 11 with algebraic multiplicity 22 and geometric multiplicity 11, not diagonalizable. k=−2k=-2: eigenvalue −2-2 with algebraic and geometric multiplicity 22, diagonalizable.

(c) P=(1300−12011)P=\begin{pmatrix}1&3&0\\0&-1&2\\0&1&1\end{pmatrix}, D=diag⁡(0,1,−2)D=\operatorname{diag}(0,1,-2).

Show the full solution

(a) See Eigenvalues and EigenvectorsAn eigenvector of a square matrix is a nonzero vector that the matrix only rescales; eigenvalues are the roots of the characteristic polynomial, and a matrix is diagonalizable exactly when the eigenspaces together have dimension n.Eigenvalues and Eigenvectors →. Expanding det⁡(Ak−xI)\det(A_k-xI) along the first column, which has only the entry k−xk-x: det⁡(k−x−120−1−x−20−1−x)=(k−x)[(−1−x)(−x)−(−2)(−1)]=(k−x)(x2+x−2)=(k−x)(x−1)(x+2).\det\begin{pmatrix}k-x&-1&2\\0&-1-x&-2\\0&-1&-x\end{pmatrix}=(k-x)\bigl[(-1-x)(-x)-(-2)(-1)\bigr]=(k-x)(x^2+x-2)=(k-x)(x-1)(x+2). The characteristic polynomial is therefore (x−k)(x−1)(x+2)(x-k)(x-1)(x+2) (up to the sign convention) and the eigenvalues are kk, 11, −2-2. A check: the determinant is the product of the eigenvalues, k⋅1⋅(−2)=−2kk\cdot1\cdot(-2)=-2k, and indeed det⁡Ak=k⋅[(−1)(0)−(−2)(−1)]=−2k\det A_k=k\cdot\bigl[(-1)(0)-(-2)(-1)\bigr]=-2k.

(b) Generic case, k∉{1,−2}k\notin\{1,-2\}. The three eigenvalues k,1,−2k,1,-2 are distinct, so each has algebraic multiplicity 11, hence geometric multiplicity 11 (always between 11 and the algebraic one), and AkA_k is diagonalizable: eigenvectors for distinct eigenvalues are independent.

Case k=1k=1. The eigenvalues are 11 (algebraic multiplicity 22) and −2-2 (multiplicity 11). The geometric multiplicity of 11 is dim⁡ker⁡(A1−I)\dim\ker(A_1-I): A1−I=(0−120−2−20−1−1).A_1-I=\begin{pmatrix}0&-1&2\\0&-2&-2\\0&-1&-1\end{pmatrix}. The first column is zero; the other two columns (−1,−2,−1)(-1,-2,-1) and (2,−2,−1)(2,-2,-1) are independent, so the rank is 22 and the kernel has dimension 3−2=13-2=1: it is L((1,0,0))L\bigl((1,0,0)\bigr). Since 1<21<2, the matrix is not diagonalizable. (The sum of the geometric multiplicities is 1+1=2<31+1=2<3: not enough independent eigenvectors.)

Case k=−2k=-2. The eigenvalues are −2-2 (algebraic multiplicity 22) and 11 (multiplicity 11). Now A−2+2I=(0−1201−20−12)A_{-2}+2I=\begin{pmatrix}0&-1&2\\0&1&-2\\0&-1&2\end{pmatrix} has rank 11 (all rows are multiples of (0,−1,2)(0,-1,2)), so the kernel has dimension 22: the equation x2=2x3x_2=2x_3 gives the basis (1,0,0)(1,0,0), (0,2,1)(0,2,1). The geometric multiplicity is 22, equal to the algebraic one, and the eigenvalue 11 gives one more eigenvector: the matrix is diagonalizable. This is the point of the exercise: a repeated eigenvalue does not by itself prevent diagonalizability; only the comparison of the multiplicities decides it.

(c) For k=0k=0 the eigenvalues are 00, 11, −2-2, all distinct. Eigenvectors, solving (A0−λI)v=0(A_0-\lambda I)v=0:

  • λ=0\lambda=0: A0v=0A_0v=0 gives −x2+2x3=0-x_2+2x_3=0, −x2−2x3=0-x_2-2x_3=0 hence x2=x3=0x_2=x_3=0: v=(1,0,0)v=(1,0,0).
  • λ=1\lambda=1: −x1−x2+2x3=0-x_1-x_2+2x_3=0, −2x2−2x3=0-2x_2-2x_3=0: x2=−x3x_2=-x_3; then −x1+x3+2x3=0-x_1+x_3+2x_3=0, so x1=3x3x_1=3x_3: v=(3,−1,1)v=(3,-1,1).
  • λ=−2\lambda=-2: 2x1−x2+2x3=02x_1-x_2+2x_3=0, x2−2x3=0x_2-2x_3=0 hence x2=2x3x_2=2x_3, x1=0x_1=0: v=(0,2,1)v=(0,2,1).

Putting them as columns, in the same order as the eigenvalues in DD (see Eigenvalues and EigenvectorsAn eigenvector of a square matrix is a nonzero vector that the matrix only rescales; eigenvalues are the roots of the characteristic polynomial, and a matrix is diagonalizable exactly when the eigenspaces together have dimension n.Eigenvalues and Eigenvectors →): P=(1300−12011),D=(00001000−2).P=\begin{pmatrix}1&3&0\\0&-1&2\\0&1&1\end{pmatrix},\qquad D=\begin{pmatrix}0&0&0\\0&1&0\\0&0&-2\end{pmatrix}. Here det⁡P=−3≠0\det P=-3\neq0, and P−1A0P=DP^{-1}A_0P=D, equivalently A0P=PDA_0P=PD (check the second column: A0(3,−1,1)T=(3,−1,1)TA_0(3,-1,1)^T=(3,-1,1)^T; third: A0(0,2,1)T=(0,−4,−2)T=−2(0,2,1)TA_0(0,2,1)^T=(0,-4,-2)^T=-2(0,2,1)^T). Typical mistake: putting the eigenvectors in PP in an order different from the eigenvalues in DD.

Exercise 4 (points 8)

In R3\mathbb{R}^3 consider the point P=(2,−1,0)P=(2,-1,0), the point Q=(5,0,3)Q=(5,0,3) and the line r: (x,y,z)=(1,0,2)+t (1,1,−1),t∈R.r:\ (x,y,z)=(1,0,2)+t\,(1,1,-1),\qquad t\in\mathbb{R}. For k∈Rk\in\mathbb{R} let sks_k be the line (x,y,z)=(0,k,1)+u (k,2,−2)(x,y,z)=(0,k,1)+u\,(k,2,-2), u∈Ru\in\mathbb{R}.

(a) Write a Cartesian equation of the plane π\pi through PP orthogonal to rr. (b) Write a Cartesian equation of the plane σ\sigma through PP containing rr. (c) Determine, as kk varies, the relative position of rr and sks_k (coincident, parallel, intersecting, skew); when they intersect find the intersection point. (d) Find the orthogonal projection of QQ onto σ\sigma and the distance of QQ from σ\sigma.

Show the result

(a) π: x+y−z=1\pi:\ x+y-z=1.

(b) σ: 3x−y+2z=7\sigma:\ 3x-y+2z=7.

(c) k=2k=2: parallel and distinct. k=1k=1: intersecting, at the point (−2,−3,5)(-2,-3,5). All other kk: skew. (Never coincident.)

(d) Projection (2,1,1)(2,1,1); distance 14\sqrt{14}.

Show the full solution

Relevant theory: Orthogonal and Symmetric MatricesOrthogonal matrices have orthonormal rows and columns, symmetric matrices are exactly those with an orthonormal eigenbasis, and affine subspaces (lines, planes, hyperplanes) are studied with orthogonal projections to compute distances.Orthogonal and Symmetric Matrices → (sections on hyperplanes, lines in R3\mathbb{R}^3, distance between affine subspaces).

(a) The plane orthogonal to rr has as normal vector the direction of rr, a=(1,1,−1)a=(1,1,-1). So π: x+y−z=c\pi:\ x+y-z=c, and imposing P∈πP\in\pi: c=2+(−1)−0=1c=2+(-1)-0=1. Hence π: x+y−z=1\pi:\ x+y-z=1.

(b) Convert rr to Cartesian equations by eliminating the parameter: y=ty=t, x=1+tx=1+t, z=2−tz=2-t give r: {x−y=1y+z=2.r:\ \begin{cases}x-y=1\\ y+z=2.\end{cases} The planes containing rr are exactly those of the pencil λ(x−y−1)+μ(y+z−2)=0\lambda(x-y-1)+\mu(y+z-2)=0 with (λ,μ)≠(0,0)(\lambda,\mu)\neq(0,0). Imposing the passage through P=(2,−1,0)P=(2,-1,0): λ(2+1−1)+μ(−1+0−2)=2λ−3μ=0,\lambda(2+1-1)+\mu(-1+0-2)=2\lambda-3\mu=0, so (λ,μ)=(3,2)(\lambda,\mu)=(3,2), and 3(x−y−1)+2(y+z−2)=3x−y+2z−7=03(x-y-1)+2(y+z-2)=3x-y+2z-7=0: σ: 3x−y+2z=7.\sigma:\ 3x-y+2z=7. Check: PP: 6+1+0=76+1+0=7; the point (1,0,2)(1,0,2) of rr: 3+4=73+4=7; the direction of rr is orthogonal to the normal (3,−1,2)(3,-1,2): 3−1−2=03-1-2=0. (The point PP is not on rr, otherwise the plane would not be unique.)

(c) The directions are (1,1,−1)(1,1,-1) and (k,2,−2)(k,2,-2). They are proportional exactly when k=2k=2, since (2,2,−2)=2(1,1,−1)(2,2,-2)=2(1,1,-1); for k≠2k\neq2 they are independent.

Case k=2k=2. The lines are parallel. They coincide iff a point of s2s_2 is on rr: (0,2,1)(0,2,1) on rr would need 1+t=01+t=0, t=−1t=-1, then y=−1≠2y=-1\neq2. So s2s_2 is parallel to rr and distinct from it.

Case k≠2k\neq2. The lines intersect iff the system (1,0,2)+t(1,1,−1)=(0,k,1)+u(k,2,−2)(1,0,2)+t(1,1,-1)=(0,k,1)+u(k,2,-2) has a solution: {1+t=kut=k+2u2−t=1−2u.\begin{cases}1+t=ku\\ t=k+2u\\ 2-t=1-2u.\end{cases} The third equation gives t=1+2ut=1+2u; substituting in the second: 1+2u=k+2u1+2u=k+2u, i.e. k=1k=1. So for k≠1k\neq1 the system has no solution: the lines (not parallel, not intersecting) are skew. For k=1k=1 the first equation becomes 1+t=u1+t=u; with t=1+2ut=1+2u it gives 2+2u=u2+2u=u, so u=−2u=-2, t=−3t=-3 (all three equations hold): a unique solution, intersection point (1,0,2)−3(1,1,−1)=(−2,−3,5)(1,0,2)-3(1,1,-1)=(-2,-3,5), which is also (0,1,1)−2(1,2,−2)(0,1,1)-2(1,2,-2). Check.

Summary: k=2k=2 parallel distinct; k=1k=1 incident in (−2,−3,5)(-2,-3,5); k∉{1,2}k\notin\{1,2\} skew. A shortcut for the same result: the triple product (Bk−A)⋅(dr×dk)(B_k-A)\cdot(d_r\times d_k), with A=(1,0,2)A=(1,0,2) and Bk=(0,k,1)B_k=(0,k,1) the base points, equals −(k−1)(k−2)-(k-1)(k-2), which vanishes exactly for k=1,2k=1,2; at k=2k=2 the directions are parallel, at k=1k=1 the lines are coplanar and not parallel, hence incident.

(d) The plane σ: 3x−y+2z=7\sigma:\ 3x-y+2z=7 has normal vector n=(3,−1,2)n=(3,-1,2), with ⟨n,n⟩=14\langle n,n\rangle=14. The projection of QQ is Q−λnQ-\lambda n where λ=⟨n,Q⟩−7⟨n,n⟩\lambda=\dfrac{\langle n,Q\rangle-7}{\langle n,n\rangle} (so that the result satisfies the equation). Here ⟨n,Q⟩=15−0+6=21\langle n,Q\rangle=15-0+6=21, so λ=21−714=1,p=Q−n=(5,0,3)−(3,−1,2)=(2,1,1).\lambda=\frac{21-7}{14}=1,\qquad p=Q-n=(5,0,3)-(3,-1,2)=(2,1,1). Check: 3⋅2−1+2⋅1=73\cdot2-1+2\cdot1=7, so p∈σp\in\sigma, and Q−p=nQ-p=n is orthogonal to σ\sigma. The distance is d(Q,σ)=∥Q−p∥=∥n∥=14=∣⟨n,Q⟩−7∣∥n∥=1414.d(Q,\sigma)=\lVert Q-p\rVert=\lVert n\rVert=\sqrt{14}=\frac{\lvert\langle n,Q\rangle-7\rvert}{\lVert n\rVert}=\frac{14}{\sqrt{14}}. Typical mistake: dividing by ∥n∥2\lVert n\rVert^2 in the distance (that is correct only for the coefficient λ\lambda) or forgetting the term −7-7.

Self-assessment grid
exercise points what must be there for full marks typical mistakes
1 8 dimension of UU with the redundant generator discarded and the equation x1+x2−x3=0x_1+x_2-x_3=0 (2); basis and dimension of WW (1); U∩WU\cap W by joining the equations (2); Grassmann and direct-sum argument (2); a correct LL with justification (1) counting four generators as dim⁡U=4\dim U=4; stating the sum is direct without checking the intersection; choosing LL inside UU
2 8 matrix and rank with t=0t=0 singled out (2); kernel and image bases in both cases (3); injective/surjective with rank-nullity (1); preimage as particular solution plus kernel in both cases (2) forgetting the case t=0t=0; wrong image equation; same preimage for all tt
3 8 characteristic polynomial and eigenvalues (2); comparison of multiplicities at k=1k=1 and k=−2k=-2 with the ranks computed (3); eigenvectors and PP, DD for k=0k=0 in matching order (3) declaring a repeated eigenvalue non-diagonalizable without computing the eigenspace; eigenvector columns in the wrong order
4 8 plane π\pi (1); plane σ\sigma through PP containing rr (2); all three cases of (c) with the intersection point (3); projection and distance of QQ (2) forgetting that PP must lie on the plane; missing the parallel case k=2k=2; mixing the formula of λ\lambda with the distance