Salta al contenuto
Note per Studenti Linear Algebra - Exam of 20 June 2023 Report

Linear Algebra - Exam of 20 June 2023

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

In questa pagina 5

Exam of Linear Algebra and Geometry, first sitting of 20 June 2023 (Engineering, UniPD), version A of the sheet. This is the paper of the equivalent course taught in Italian at the University of Padova, translated into English, because the English-taught course does not publish its own exams. The sheet shows neither the points of each exercise nor the duration, so none are invented here: all four exercises are written out in full and none is optional. No calculator or notes are mentioned on the sheet.

Exercise 4 is about lines and planes in space (affine subspaces, relative position, planes through a line): the theory is in 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 3 and 4, and every part reduces to a linear 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 →) or to an orthogonality condition (Euclidean SpacesA scalar product gives vectors a length and an orthogonality relation; with it every subspace has an orthogonal complement, vectors can be projected orthogonally, and Gram-Schmidt builds orthonormal bases.Euclidean Spaces →).

Exercise 1 (points not stated)

Let v1=(1,0,−1)v_1=(1,0,-1), v2=(1,1,0)v_2=(1,1,0), v3=(1,0,−2)∈R3v_3=(1,0,-2)\in\mathbb{R}^3. Let f:R3→R3f:\mathbb{R}^3\to\mathbb{R}^3 be the linear map such that f(v1)=(3,0,−5)f(v_1)=(3,0,-5), v2v_2 is an eigenvector of eigenvalue 22, and f(v3)=(5,2,−5)f(v_3)=(5,2,-5).

(a) Write the matrix AA of ff with respect to the basis {v1,v2,v3}\{v_1,v_2,v_3\} (both in the domain and in the codomain).

(b) Write the matrix BB of ff with respect to the standard basis of R3\mathbb{R}^3 (both in the domain and in the codomain).

(c) Find bases of the kernel and of the image of ff, using first the matrix AA and then the matrix BB. How come that using AA or BB one finds different results for the bases of ker⁡f\ker f and Im⁡f\operatorname{Im} f, although both matrices correspond to the same function ff?

(d) Let w=(3,t,−5)w=(3,t,-5). Using the matrix BB, determine for which value of tt one has w∈Im⁡(f)w\in\operatorname{Im}(f). For that value of tt find all the vectors v∈R3v\in\mathbb{R}^3 such that f(v)=wf(v)=w.

Show the result

(a) A=(101022202)A=\begin{pmatrix}1&0&1\\0&2&2\\2&0&2\end{pmatrix}.

(b) B=(11−2−24−2−550)B=\begin{pmatrix}1&1&-2\\-2&4&-2\\-5&5&0\end{pmatrix}.

(c) With AA: ker⁡f\ker f has basis the coordinate vector (1,1,−1)(1,1,-1) (that is the vector v1+v2−v3=(1,1,1)v_1+v_2-v_3=(1,1,1)), and Im⁡f\operatorname{Im} f has basis the coordinate vectors (1,0,2)(1,0,2) and (0,2,0)(0,2,0) (the vectors (3,0,−5)(3,0,-5) and (2,2,0)(2,2,0)). With BB: ker⁡f\ker f has basis (1,1,1)(1,1,1), and Im⁡f\operatorname{Im} f has basis (1,−2,−5)(1,-2,-5) and (1,4,5)(1,4,5). The results differ only in appearance: AA gives coordinates with respect to {v1,v2,v3}\{v_1,v_2,v_3\}, BB gives coordinates with respect to the standard basis. dim⁡ker⁡f=1\dim\ker f=1, dim⁡Im⁡f=2\dim\operatorname{Im} f=2.

(d) t=0t=0; the set of solutions is f−1(w)={(2,1,0)+x3(1,1,1)∣x3∈R}f^{-1}(w)=\{(2,1,0)+x_3(1,1,1)\mid x_3\in\mathbb{R}\}.

Show the full solution

(a) The columns of the matrix of a linear map with respect to a basis are the coordinates of the images of the basis vectors, expressed in the same basis (see 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 →). So we must write each of f(v1)f(v_1), f(v2)f(v_2), f(v3)f(v_3) as a combination of v1,v2,v3v_1,v_2,v_3.

  • f(v1)=(3,0,−5)=a1v1+a2v2+a3v3f(v_1)=(3,0,-5)=a_1v_1+a_2v_2+a_3v_3. Componentwise this is a linear system: second component a2=0a_2=0; first component a1+a2+a3=3a_1+a_2+a_3=3; third component −a1−2a3=−5-a_1-2a_3=-5. From a1+a3=3a_1+a_3=3 and a1+2a3=5a_1+2a_3=5 we get a3=2a_3=2, a1=1a_1=1. Check: v1+2v3=(1,0,−1)+(2,0,−4)=(3,0,−5)v_1+2v_3=(1,0,-1)+(2,0,-4)=(3,0,-5). First column: (1,0,2)(1,0,2).
  • f(v2)=2v2=0 v1+2 v2+0 v3f(v_2)=2v_2=0\,v_1+2\,v_2+0\,v_3, because v2v_2 is an eigenvector of eigenvalue 22. Second column: (0,2,0)(0,2,0).
  • f(v3)=(5,2,−5)=a1v1+a2v2+a3v3f(v_3)=(5,2,-5)=a_1v_1+a_2v_2+a_3v_3: second component a2=2a_2=2; first a1+2+a3=5a_1+2+a_3=5, so a1+a3=3a_1+a_3=3; third −a1−2a3=−5-a_1-2a_3=-5. Again a3=2a_3=2, a1=1a_1=1. Check: v1+2v2+2v3=(1,0,−1)+(2,2,0)+(2,0,−4)=(5,2,−5)v_1+2v_2+2v_3=(1,0,-1)+(2,2,0)+(2,0,-4)=(5,2,-5). Third column: (1,2,2)(1,2,2).

A=(101022202).A=\begin{pmatrix}1&0&1\\0&2&2\\2&0&2\end{pmatrix}.

(b) Now we need f(e1),f(e2),f(e3)f(e_1),f(e_2),f(e_3). We know ff only on v1,v2,v3v_1,v_2,v_3, so we write the standard vectors using the viv_i and use linearity (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 →, section on maps defined on a basis).

  • v1−v3=(1,0,−1)−(1,0,−2)=(0,0,1)=e3v_1-v_3=(1,0,-1)-(1,0,-2)=(0,0,1)=e_3. Hence f(e3)=f(v1)−f(v3)=(3,0,−5)−(5,2,−5)=(−2,−2,0)f(e_3)=f(v_1)-f(v_3)=(3,0,-5)-(5,2,-5)=(-2,-2,0).
  • v1=e1−e3v_1=e_1-e_3, so e1=v1+e3e_1=v_1+e_3 and f(e1)=f(v1)+f(e3)=(3,0,−5)+(−2,−2,0)=(1,−2,−5)f(e_1)=f(v_1)+f(e_3)=(3,0,-5)+(-2,-2,0)=(1,-2,-5).
  • v2=e1+e2v_2=e_1+e_2, so e2=v2−e1e_2=v_2-e_1 and f(e2)=f(v2)−f(e1)=(2,2,0)−(1,−2,−5)=(1,4,5)f(e_2)=f(v_2)-f(e_1)=(2,2,0)-(1,-2,-5)=(1,4,5).

The columns of BB are these three images: B=(11−2−24−2−550).B=\begin{pmatrix}1&1&-2\\-2&4&-2\\-5&5&0\end{pmatrix}. Check by change of basis: with P=(v1  v2  v3)P=(v_1\;v_2\;v_3) (columns) one must have B=PAP−1B=PAP^{-1}; this gives the same matrix.

(c) Using AA. Row reduction: subtracting twice the first row from the third gives (101022000)\begin{pmatrix}1&0&1\\0&2&2\\0&0&0\end{pmatrix}, so rank⁡A=2\operatorname{rank}A=2. By the rank-nullity theorem (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⁡Im⁡f=2\dim\operatorname{Im}f=2 and dim⁡ker⁡f=3−2=1\dim\ker f=3-2=1. The system A′X=0A'X=0 reads x1+x3=0x_1+x_3=0, 2x2+2x3=02x_2+2x_3=0, so x1=−x3x_1=-x_3, x2=−x3x_2=-x_3: a basis of the kernel is (1,1,−1)(1,1,-1) (taking x3=−1x_3=-1). A basis of the image is given by the columns of AA in the pivot positions, columns 1 and 2: (1,0,2)(1,0,2) and (0,2,0)(0,2,0).

Warning. These are coordinates with respect to {v1,v2,v3}\{v_1,v_2,v_3\}, not vectors of R3\mathbb{R}^3 yet. The kernel vector is 1 v1+1 v2−1 v3=(1,0,−1)+(1,1,0)−(1,0,−2)=(1,1,1)1\,v_1+1\,v_2-1\,v_3=(1,0,-1)+(1,1,0)-(1,0,-2)=(1,1,1). The image vectors are 1 v1+0 v2+2 v3=(3,0,−5)1\,v_1+0\,v_2+2\,v_3=(3,0,-5) and 2 v2=(2,2,0)2\,v_2=(2,2,0).

Using BB. Row reduction: add twice the first row to the second and five times the first to the third: (11−206−6010−10)\begin{pmatrix}1&1&-2\\0&6&-6\\0&10&-10\end{pmatrix}, then subtract 106\tfrac{10}{6} times the second row from the third: B′=(11−206−6000)B'=\begin{pmatrix}1&1&-2\\0&6&-6\\0&0&0\end{pmatrix}. So rank⁡B=2\operatorname{rank}B=2, again dim⁡Im⁡f=2\dim\operatorname{Im}f=2, dim⁡ker⁡f=1\dim\ker f=1. The system B′X=0B'X=0 gives 6x2=6x36x_2=6x_3 and x1=−x2+2x3=x3x_1=-x_2+2x_3=x_3: a basis of the kernel is (1,1,1)(1,1,1), and these are coordinates in the standard basis, i.e. the vector itself. A basis of the image is given by the pivot columns of BB: (1,−2,−5)(1,-2,-5) and (1,4,5)(1,4,5).

Why the results look different. A matrix always works with coordinates, and coordinates depend on the basis. The kernel vector (1,1,−1)(1,1,-1) found with AA and (1,1,1)(1,1,1) found with BB are the same vector of R3\mathbb{R}^3 written in two bases. The same happens for the image: the two bases found with BB are the vectors (1,−2,−5)(1,-2,-5) and (1,4,5)(1,4,5), and the two obtained from AA are (3,0,−5)(3,0,-5) and (2,2,0)(2,2,0); these are two different bases of the same plane, because for example (3,0,−5)=2(1,−2,−5)+(1,4,5)(3,0,-5)=2(1,-2,-5)+(1,4,5) and (2,2,0)=(1,−2,−5)+(1,4,5)(2,2,0)=(1,-2,-5)+(1,4,5). The typical mistake is to forget to convert the coordinates found with AA back to the standard basis.

(d) We study the system BX=wBX=w. By the solvability criterion for linear systems (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 →, also known as the Rouché-Capelli theorem), it has a solution if and only if the augmented matrix (B∣w)(B\mid w) has the same rank as BB, which is 22. Row reduction of the augmented matrix: (11−23−24−2t−550−5)→(11−2306−6t+6010−1010)→(11−2306−6t+6000−53t).\left(\begin{array}{ccc|c}1&1&-2&3\\-2&4&-2&t\\-5&5&0&-5\end{array}\right)\to\left(\begin{array}{ccc|c}1&1&-2&3\\0&6&-6&t+6\\0&10&-10&10\end{array}\right)\to\left(\begin{array}{ccc|c}1&1&-2&3\\0&6&-6&t+6\\0&0&0&-\tfrac{5}{3}t\end{array}\right). The last row says 0=−53t0=-\tfrac53t, so the rank is 22 only for t=0t=0 (for t≠0t\neq0 the rank is 33 and there is no solution). Thus w∈Im⁡f  ⟺  t=0w\in\operatorname{Im}f\iff t=0.

For t=0t=0 the system is x1+x2−2x3=3x_1+x_2-2x_3=3, 6x2−6x3=66x_2-6x_3=6. The second equation gives x2=1+x3x_2=1+x_3, and then x1=3−x2+2x3=2+x3x_1=3-x_2+2x_3=2+x_3. With x3x_3 free: f−1(w)={(2,1,0)+x3(1,1,1)∣x3∈R}.f^{-1}(w)=\{(2,1,0)+x_3(1,1,1)\mid x_3\in\mathbb{R}\}. This is a particular solution plus the kernel ker⁡f=⟨(1,1,1)⟩\ker f=\langle(1,1,1)\rangle, as it must be (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 →, linear systems revisited). Check: B(2,1,0)T=(2+1,−4+4,−10+5)=(3,0,−5)=wB(2,1,0)^T=(2+1,-4+4,-10+5)=(3,0,-5)=w.

Exercise 2 (points not stated)

Consider the matrix A=(02t−3−56−2−25).A=\begin{pmatrix}0&2&t\\-3&-5&6\\-2&-2&5\end{pmatrix}.

(a) Determine the value of tt for which AA is not invertible.

(b) From now on set t=2t=2 for the rest of the exercise. Determine the value of aa for which the vector v=(2,0,a)v=(2,0,a) is an eigenvector of AA. What is the corresponding eigenvalue?

(c) Determine all the eigenvalues of AA and decide whether AA is similar to a diagonal matrix.

(d) Say whether AA is similar to the matrix A2A^2 (the answer must be justified).

Show the result

(a) t=32t=\tfrac32 (indeed det⁡A=6−4t\det A=6-4t).

(b) a=1a=1, with eigenvalue λ=1\lambda=1.

(c) Characteristic polynomial pA(λ)=−(λ−1)2(λ+2)p_A(\lambda)=-(\lambda-1)^2(\lambda+2); eigenvalues λ=1\lambda=1 (algebraic multiplicity 22, geometric multiplicity 11) and λ=−2\lambda=-2 (multiplicities 11 and 11). AA is not diagonalizable, so it is not similar to a diagonal matrix.

(d) No: det⁡A=−2\det A=-2 but det⁡A2=4\det A^2=4 (equivalently, the eigenvalues of A2A^2 are 1,1,41,1,4, not 1,1,−21,1,-2).

Show the full solution

(a) A square matrix is invertible if and only if its determinant is non-zero (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 →), so we compute det⁡A\det A as a function of tt. Expanding along the first row: det⁡A=0⋅(… )−2det⁡(−36−25)+tdet⁡(−3−5−2−2)=−2(−15+12)+t(6−10)=6−4t.\det A=0\cdot(\dots)-2\det\begin{pmatrix}-3&6\\-2&5\end{pmatrix}+t\det\begin{pmatrix}-3&-5\\-2&-2\end{pmatrix}=-2(-15+12)+t(6-10)=6-4t. Then det⁡A=0  ⟺  t=32\det A=0\iff t=\tfrac32. So AA is not invertible exactly for t=32t=\tfrac32. The signs of the cofactors are +,−,++,-,+ along the first row: the common slip is to forget the minus in front of the middle term.

(b) With t=2t=2 the matrix is A=(022−3−56−2−25)A=\begin{pmatrix}0&2&2\\-3&-5&6\\-2&-2&5\end{pmatrix}. By definition (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 →), v≠0v\neq0 is an eigenvector if Av=λvAv=\lambda v for some λ\lambda. Here v=(2,0,a)≠0v=(2,0,a)\neq0 always (its first entry is 22). Compute Av=(0⋅2+2⋅0+2a−6+0+6a−4+0+5a)=(2a−6+6a−4+5a)=!λ(20a).Av=\begin{pmatrix}0\cdot2+2\cdot0+2a\\-6+0+6a\\-4+0+5a\end{pmatrix}=\begin{pmatrix}2a\\-6+6a\\-4+5a\end{pmatrix}\overset{!}{=}\lambda\begin{pmatrix}2\\0\\a\end{pmatrix}. This gives the system 2a=2λ2a=2\lambda, −6+6a=0-6+6a=0, −4+5a=λa-4+5a=\lambda a. The second equation gives a=1a=1; the first gives λ=a=1\lambda=a=1; the third becomes −4+5=1⋅1-4+5=1\cdot1, true. Hence v=(2,0,1)v=(2,0,1) is an eigenvector with eigenvalue λ=1\lambda=1, and a=1a=1 is the only value that works.

(c) Characteristic polynomial. We compute pA(λ)=det⁡(A−λI)p_A(\lambda)=\det(A-\lambda I) (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 →, section on the characteristic polynomial). The cleanest way uses operations that do not change the determinant. In det⁡(−λ22−3−5−λ6−2−25−λ)\det\begin{pmatrix}-\lambda&2&2\\-3&-5-\lambda&6\\-2&-2&5-\lambda\end{pmatrix} replace the first column by (first column minus second column): the first column becomes (−λ−2,  λ+2,  0)T(-\lambda-2,\;\lambda+2,\;0)^T. Then replace the second row by (second row plus first row): the matrix becomes (−λ−2220−3−λ80−25−λ).\begin{pmatrix}-\lambda-2&2&2\\0&-3-\lambda&8\\0&-2&5-\lambda\end{pmatrix}. Expanding along the first column: pA(λ)=(−λ−2)[(−3−λ)(5−λ)+16]=−(λ+2)(λ2−2λ+1)=−(λ+2)(λ−1)2.p_A(\lambda)=(-\lambda-2)\big[(-3-\lambda)(5-\lambda)+16\big]=-(\lambda+2)(\lambda^2-2\lambda+1)=-(\lambda+2)(\lambda-1)^2. (Expanding directly along the first row gives −λ3+3λ−2-\lambda^3+3\lambda-2, the same polynomial. We also knew from (b) that 11 is a root, which is a quick check.)

The eigenvalues are the roots: λ=1\lambda=1 with algebraic multiplicity ma(1)=2m_a(1)=2, and λ=−2\lambda=-2 with ma(−2)=1m_a(-2)=1.

Diagonalizability. AA is diagonalizable if and only if, for each eigenvalue, geometric and algebraic multiplicities coincide. For λ=−2\lambda=-2 we always have 1≤mg(−2)≤ma(−2)=11\le m_g(-2)\le m_a(-2)=1, so mg(−2)=1m_g(-2)=1. The only thing to check is mg(1)=dim⁡ker⁡(A−I)m_g(1)=\dim\ker(A-I): A−I=(−122−3−66−2−24)→(−1220−1200−60)→(−1220−10000).A-I=\begin{pmatrix}-1&2&2\\-3&-6&6\\-2&-2&4\end{pmatrix}\to\begin{pmatrix}-1&2&2\\0&-12&0\\0&-6&0\end{pmatrix}\to\begin{pmatrix}-1&2&2\\0&-1&0\\0&0&0\end{pmatrix}. Rank 22, hence dim⁡ker⁡(A−I)=3−2=1<2=ma(1)\dim\ker(A-I)=3-2=1<2=m_a(1). The matrix AA is not diagonalizable: it is not similar to any diagonal matrix. (The eigenspace is generated by (2,0,1)(2,0,1), the vector found in (b); for λ=−2\lambda=-2 the eigenspace is generated by (1,−1,0)(1,-1,0): indeed A+2IA+2I reduces to (111009000)\begin{pmatrix}1&1&1\\0&0&9\\0&0&0\end{pmatrix}, so z=0z=0, y=−xy=-x.) Typical mistake: concluding that AA is diagonalizable because the eigenvalues are real, or because −2-2 behaves well; one must test the repeated eigenvalue.

(d) Similar matrices have the same characteristic polynomial, the same eigenvalues and the same determinant (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 →, section on similar matrices). The eigenvalues of A2A^2 are the squares of those of AA: 1,1,41,1,4. They differ from 1,1,−21,1,-2, so AA and A2A^2 are not similar. The same conclusion from the determinant: det⁡A=−2\det A=-2 (from (a): 6−4⋅26-4\cdot2) while by Binet's theorem det⁡(A2)=(det⁡A)2=4\det(A^2)=(\det A)^2=4. We checked A2=(−10−142237−6−4−49)A^2=\begin{pmatrix}-10&-14&22\\3&7&-6\\-4&-4&9\end{pmatrix} explicitly: its trace is 6=1+1+46=1+1+4 as expected.

Warning: the converse of "similar implies same characteristic polynomial" is false. For example (1101)\begin{pmatrix}1&1\\0&1\end{pmatrix} and (1001)\begin{pmatrix}1&0\\0&1\end{pmatrix} have the same characteristic polynomial but are not similar, since the identity is similar only to itself. So to prove "similar" one must exhibit a change of basis; to prove "not similar" one invariant that differs suffices.

Exercise 3 (points not stated)

In the Euclidean vector space R4\mathbb{R}^4, with the usual scalar product, let UU be the subspace spanned by the vectors u1=(1,2,0,−1)u_1=(1,2,0,-1), u2=(0,−4,3,4)u_2=(0,-4,3,4).

(a) Find an orthogonal basis of UU.

(b) Find a basis of U⊥U^\perp.

(c) Find the orthogonal projection of v=(0,5,3,4)v=(0,5,3,4) onto UU.

(d) Let w=(2,−1,0,2)w=(2,-1,0,2). Say whether there exists a subspace L⊂R4L\subset\mathbb{R}^4 such that the orthogonal projection of ww onto LL is the vector ℓ=(1,1,2,0)\ell=(1,1,2,0).

Show the result

(a) For example u1′=(1,2,0,−1)u_1'=(1,2,0,-1) and u2′=(2,0,3,2)u_2'=(2,0,3,2).

(b) For example (1,0,−43,1)(1,0,-\tfrac43,1) and (0,1,−43,2)(0,1,-\tfrac43,2), or, with integer entries, (3,0,−4,3)(3,0,-4,3) and (0,3,−4,6)(0,3,-4,6).

(c) proj⁡U(v)=(3,2,3,1)\operatorname{proj}_U(v)=(3,2,3,1).

(d) No such subspace exists.

Show the full solution

(a) We use Gram-Schmidt orthogonalization (Euclidean SpacesA scalar product gives vectors a length and an orthogonality relation; with it every subspace has an orthogonal complement, vectors can be projected orthogonally, and Gram-Schmidt builds orthonormal bases.Euclidean Spaces →, section on Gram-Schmidt). Take u1′=u1=(1,2,0,−1)u_1'=u_1=(1,2,0,-1) and u2′=u2+αu1u_2'=u_2+\alpha u_1 with α\alpha chosen so that u1′⋅u2′=0u_1'\cdot u_2'=0. We have u1⋅u2=0−8+0−4=−12u_1\cdot u_2=0-8+0-4=-12 and u1⋅u1=1+4+0+1=6u_1\cdot u_1=1+4+0+1=6, so α=−u1⋅u2u1⋅u1=126=2,u2′=u2+2u1=(0+2, −4+4, 3, 4−2)=(2,0,3,2).\alpha=-\frac{u_1\cdot u_2}{u_1\cdot u_1}=\frac{12}{6}=2,\qquad u_2'=u_2+2u_1=(0+2,\,-4+4,\,3,\,4-2)=(2,0,3,2). Check: u1′⋅u2′=2+0+0−2=0u_1'\cdot u_2'=2+0+0-2=0. The vectors u1′u_1' and u2′u_2' are orthogonal and span the same plane UU (they are non-zero and orthogonal, hence independent). If an orthonormal basis were asked one would divide by the norms ∥u1′∥=6\|u_1'\|=\sqrt6 and ∥u2′∥=17\|u_2'\|=\sqrt{17}, but here only orthogonality is required.

(b) A vector x=(x1,x2,x3,x4)x=(x_1,x_2,x_3,x_4) lies in U⊥U^\perp if and only if it is orthogonal to a basis of UU (orthogonality to the two generators is enough, by bilinearity; see Euclidean SpacesA scalar product gives vectors a length and an orthogonality relation; with it every subspace has an orthogonal complement, vectors can be projected orthogonally, and Gram-Schmidt builds orthonormal bases.Euclidean Spaces →, orthogonal complement). Using u1′u_1' and u2′u_2': {x1+2x2−x4=02x1+3x3+2x4=0.\begin{cases}x_1+2x_2-x_4=0\\2x_1+3x_3+2x_4=0.\end{cases} The matrix has rank 22, so dim⁡U⊥=4−2=2\dim U^\perp=4-2=2. Solve for x3,x4x_3,x_4 in terms of the free variables x1,x2x_1,x_2: x4=x1+2x2x_4=x_1+2x_2, then 3x3=−2x1−2x4=−4x1−4x23x_3=-2x_1-2x_4=-4x_1-4x_2, so x3=−43x1−43x2x_3=-\tfrac43x_1-\tfrac43x_2. Taking (x1,x2)=(1,0)(x_1,x_2)=(1,0) and (0,1)(0,1): (1,0,−43,1),(0,1,−43,2).\Big(1,0,-\tfrac43,1\Big),\qquad\Big(0,1,-\tfrac43,2\Big). Multiplying by 33 removes fractions: (3,0,−4,3)(3,0,-4,3) and (0,3,−4,6)(0,3,-4,6). Check against the original generators: (3,0,−4,3)⋅u1=3−3=0(3,0,-4,3)\cdot u_1=3-3=0, (3,0,−4,3)⋅u2=−12+12=0(3,0,-4,3)\cdot u_2=-12+12=0, (0,3,−4,6)⋅u1=6−6=0(0,3,-4,6)\cdot u_1=6-6=0, (0,3,−4,6)⋅u2=−12−12+24=0(0,3,-4,6)\cdot u_2=-12-12+24=0. Any other basis of this plane is correct too.

(c) Because u1′u_1', u2′u_2' is an orthogonal basis of UU, the projection is a sum of one-dimensional projections (Euclidean SpacesA scalar product gives vectors a length and an orthogonality relation; with it every subspace has an orthogonal complement, vectors can be projected orthogonally, and Gram-Schmidt builds orthonormal bases.Euclidean Spaces →, orthogonal projection): proj⁡U(v)=v⋅u1′u1′⋅u1′ u1′+v⋅u2′u2′⋅u2′ u2′.\operatorname{proj}_U(v)=\frac{v\cdot u_1'}{u_1'\cdot u_1'}\,u_1'+\frac{v\cdot u_2'}{u_2'\cdot u_2'}\,u_2'. Here v⋅u1′=0+10+0−4=6v\cdot u_1'=0+10+0-4=6, u1′⋅u1′=6u_1'\cdot u_1'=6, v⋅u2′=0+0+9+8=17v\cdot u_2'=0+0+9+8=17, u2′⋅u2′=4+0+9+4=17u_2'\cdot u_2'=4+0+9+4=17. So both coefficients are 11 and proj⁡U(v)=u1′+u2′=(1,2,0,−1)+(2,0,3,2)=(3,2,3,1).\operatorname{proj}_U(v)=u_1'+u_2'=(1,2,0,-1)+(2,0,3,2)=(3,2,3,1). Check: v−proj⁡U(v)=(−3,3,0,3)v-\operatorname{proj}_U(v)=(-3,3,0,3) must lie in U⊥U^\perp: its scalar product with u1u_1 is −3+6−3=0-3+6-3=0 and with u2u_2 is 0−12+0+12=00-12+0+12=0. The formula above is valid only for an orthogonal basis, which is why (a) comes first; using u1,u2u_1,u_2 directly would give a wrong result.

(d) Suppose such an LL exists. Then w=ℓ+ℓ~w=\ell+\tilde\ell with ℓ∈L\ell\in L and ℓ~∈L⊥\tilde\ell\in L^\perp, where ℓ=proj⁡L(w)\ell=\operatorname{proj}_L(w) (Euclidean SpacesA scalar product gives vectors a length and an orthogonality relation; with it every subspace has an orthogonal complement, vectors can be projected orthogonally, and Gram-Schmidt builds orthonormal bases.Euclidean Spaces →, orthogonal decomposition). Hence ℓ~=w−ℓ=(1,−2,−2,2)\tilde\ell=w-\ell=(1,-2,-2,2) must be orthogonal to ℓ\ell, because ℓ∈L\ell\in L and ℓ~∈L⊥\tilde\ell\in L^\perp. But ℓ⋅ℓ~=1−2−4+0=−5≠0.\ell\cdot\tilde\ell=1-2-4+0=-5\neq0. This is a contradiction, so there is no such subspace LL. (Equivalently, a vector ℓ\ell can be the projection of ww on some subspace only if ℓ⋅(w−ℓ)=0\ell\cdot(w-\ell)=0; in this case ℓ⋅w=1\ell\cdot w=1 while ℓ⋅ℓ=6\ell\cdot\ell=6.)

Exercise 4 (points not stated)

In the affine space AR3\mathbb{A}^3_{\mathbb{R}} consider the two lines r:{x+y−1=02x−z−1=0s:{x−2y−1=0y−z+2=0.r:\begin{cases}x+y-1=0\\2x-z-1=0\end{cases}\qquad s:\begin{cases}x-2y-1=0\\y-z+2=0.\end{cases}

(a) Determine whether rr and ss are incident, parallel or skew.

(b) Write the Cartesian equation of the plane containing the line ss and parallel to rr.

(c) Given the point R=(0,1,−1)∈rR=(0,1,-1)\in r, find a point S∈sS\in s such that the line through RR and SS is parallel to the plane of equation 3x−z=03x-z=0.

(d) Consider the family of planes πt:z=t\pi_t:z=t, for every t∈Rt\in\mathbb{R}. Let Rt=r∩πtR_t=r\cap\pi_t and St=s∩πtS_t=s\cap\pi_t. Let MtM_t be the midpoint of the segment with endpoints RtR_t and StS_t. Verify that the points MtM_t all lie on one line and write the parametric equations of that line.

Show the result

(a) rr and ss are skew (not incident, not parallel). Directions: vr=(1,−1,2)v_r=(1,-1,2), vs=(2,1,1)v_s=(2,1,1).

(b) x−y−z+1=0x-y-z+1=0.

(c) S=(1,0,2)S=(1,0,2).

(d) Rt=(1+t2,1−t2,t)R_t=\big(\tfrac{1+t}{2},\tfrac{1-t}{2},t\big), St=(2t−3, t−2, t)S_t=(2t-3,\,t-2,\,t), Mt=(−54+54t, −34+14t, t)M_t=\big(-\tfrac54+\tfrac54t,\,-\tfrac34+\tfrac14t,\,t\big): the line with parametric equations x=−54+54tx=-\tfrac54+\tfrac54t, y=−34+14ty=-\tfrac34+\tfrac14t, z=tz=t (direction (5,1,4)(5,1,4)).

Show the full solution

The theory used here is in 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 →, section 3 (affine subspaces, hyperplanes, lines in R3\mathbb{R}^3). A line X=v+WX=v+W is given by Cartesian equations ⟨x,a⟩=b\langle x,a\rangle=b, ⟨x,a′⟩=b′\langle x,a'\rangle=b' with a,a′a,a' independent; its direction space WW is the solution space of the associated homogeneous system, and a plane is a hyperplane ⟨x,a⟩=b\langle x,a\rangle=b with normal vector aa. Two lines are parallel if one direction space contains the other, and skew if W∩W′={0}W\cap W'=\{0\} and the lines do not meet. Each question below then becomes a linear 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 →) or an orthogonality condition (Euclidean SpacesA scalar product gives vectors a length and an orthogonality relation; with it every subspace has an orthogonal complement, vectors can be projected orthogonally, and Gram-Schmidt builds orthonormal bases.Euclidean Spaces →).

(a) Incident? The lines meet if and only if the four equations have a common solution. The system {x+y=12x−z=1x−2y=1y−z=−2\begin{cases}x+y=1\\2x-z=1\\x-2y=1\\y-z=-2\end{cases} has coefficient matrix of rank 33 (four equations, three unknowns) and augmented matrix of rank 44. Concretely: from x+y=1x+y=1 and x−2y=1x-2y=1 we get y=0y=0, x=1x=1, then z=2x−1=1z=2x-1=1 from the second equation; the fourth equation would require y−z=0−1=−1y-z=0-1=-1, but it says −2-2. So the system is inconsistent (ranks 3≠43\neq4): the lines are not incident.

Parallel? Two lines are parallel if and only if their directions are proportional. The direction of rr solves x+y=0x+y=0, 2x−z=02x-z=0: vr=(1,−1,2)v_r=(1,-1,2). The direction of ss solves x−2y=0x-2y=0, y−z=0y-z=0: vs=(2,1,1)v_s=(2,1,1). They are not proportional, so the lines are not parallel. Since they are neither incident nor parallel, they are skew.

(Check of points: R1=(0,1,−1)R_1=(0,1,-1) and R2=(1,0,1)R_2=(1,0,1) lie on rr and S1=(1,0,2)S_1=(1,0,2), S2=(3,1,3)S_2=(3,1,3) lie on ss; R2−R1=(1,−1,2)R_2-R_1=(1,-1,2) and S2−S1=(2,1,1)S_2-S_1=(2,1,1).)

(b) This is the "plane through a line parallel to another line" construction of 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 →, section 3.3: the plane π\pi must contain ss and be parallel to rr, so both directions vrv_r and vsv_s must lie in the plane. A plane ax+by+cz+d=0ax+by+cz+d=0 has normal vector n=(a,b,c)n=(a,b,c), and a direction vv lies in the plane if and only if n⋅v=0n\cdot v=0. So nn solves the homogeneous system {a−b+2c=02a+b+c=0.\begin{cases}a-b+2c=0\\2a+b+c=0.\end{cases} Adding the equations: 3a+3c=03a+3c=0, so c=−ac=-a; then b=−2a−c=−ab=-2a-c=-a. Taking a=1a=1: n=(1,−1,−1)n=(1,-1,-1). (This agrees with the cross product vr×vs=(−3,3,3)v_r\times v_s=(-3,3,3), which is a multiple of (1,−1,−1)(1,-1,-1).) The plane is x−y−z+d=0x-y-z+d=0. It contains ss if it contains one point of ss, for example S1=(1,0,2)S_1=(1,0,2): 1−0−2+d=01-0-2+d=0, so d=1d=1: π:  x−y−z+1=0.\pi:\;x-y-z+1=0. Check with the second point S2=(3,1,3)S_2=(3,1,3): 3−1−3+1=03-1-3+1=0. The plane does not contain rr (the point R1=(0,1,−1)R_1=(0,1,-1) gives 0−1+1+1=1≠00-1+1+1=1\neq0), as it should for a skew line.

(c) A line is parallel to the plane 3x−z=03x-z=0 when its direction S−RS-R is orthogonal to the normal (3,0,−1)(3,0,-1), i.e. when 3(Sx−Rx)−(Sz−Rz)=03(S_x-R_x)-(S_z-R_z)=0. This says that the linear expression 3x−z3x-z takes the same value at SS as at RR. At R=(0,1,−1)R=(0,1,-1): 3⋅0−(−1)=13\cdot0-(-1)=1. So SS must satisfy 3x−z=13x-z=1 and lie on ss. Solve {3x−z=1x−2y=1y−z=−2.\begin{cases}3x-z=1\\x-2y=1\\y-z=-2.\end{cases} From the last two equations x=1+2yx=1+2y and z=y+2z=y+2, so 3(1+2y)−(y+2)=13(1+2y)-(y+2)=1, i.e. 5y+1=15y+1=1, y=0y=0, x=1x=1, z=2z=2. Hence S=(1,0,2)S=(1,0,2) (the unique solution: the matrix of this system has rank 33). Check: S∈sS\in s (1−0−1=01-0-1=0, 0−2+2=00-2+2=0) and S−R=(1,−1,3)S-R=(1,-1,3) with 3⋅1−3=03\cdot1-3=0.

(d) The points RtR_t and StS_t. Adding z=tz=t to the equations of rr: x+y=1x+y=1, 2x=1+t2x=1+t, so x=1+t2x=\tfrac{1+t}2, y=1−x=1−t2y=1-x=\tfrac{1-t}2: Rt=(1+t2, 1−t2, t).R_t=\Big(\frac{1+t}{2},\,\frac{1-t}{2},\,t\Big). Adding z=tz=t to the equations of ss: y=z−2=t−2y=z-2=t-2, x=1+2y=2t−3x=1+2y=2t-3: St=(2t−3,  t−2,  t).S_t=(2t-3,\;t-2,\;t). The midpoint. Componentwise average: Mt=Rt+St2=(12(1+t2+2t−3),  12(1−t2+t−2),  t)=(−54+54t,  −34+14t,  t).M_t=\frac{R_t+S_t}{2}=\Big(\frac12\Big(\frac{1+t}{2}+2t-3\Big),\;\frac12\Big(\frac{1-t}{2}+t-2\Big),\;t\Big)=\Big(-\frac54+\frac54t,\;-\frac34+\frac14t,\;t\Big). Each coordinate is a polynomial of degree 11 in tt, so the points MtM_t are exactly the points P0+t dP_0+t\,d with P0=(−54,−34,0)P_0=\big(-\tfrac54,-\tfrac34,0\big) and d=(54,14,1)d=\big(\tfrac54,\tfrac14,1\big), i.e. they lie on the line {x=−54+54ty=−34+14tz=tt∈R,\begin{cases}x=-\tfrac54+\tfrac54t\\y=-\tfrac34+\tfrac14t\\z=t\end{cases}\qquad t\in\mathbb{R}, with direction proportional to (5,1,4)(5,1,4). Every point of the line is a midpoint MtM_t (take t=zt=z).

Self-assessment grid
Exercise Points What must be there for full marks Typical errors
1 not stated (a) AA obtained by writing each image in the basis viv_i (columns), with the three small systems solved correctly; (b) BB obtained through e1,e2,e3e_1,e_2,e_3 in terms of the viv_i (or B=PAP−1B=PAP^{-1}); (c) rank 2, kernel and image bases from both matrices, with kernel vector (1,1,−1)(1,1,-1) in the vv-coordinates converted to (1,1,1)(1,1,1) and the explanation that the coordinates depend on the basis; (d) t=0t=0 from the rank of the augmented matrix and the full solution set particular solution plus ker⁡f\ker f giving coordinates in basis viv_i as if they were vectors of R3\mathbb{R}^3; writing rows instead of columns in AA and BB; for t≠0t\neq0 not saying the system is impossible; forgetting the free parameter in f−1(w)f^{-1}(w)
2 not stated (a) det⁡A=6−4t\det A=6-4t, t=32t=\tfrac32; (b) a=1a=1, λ=1\lambda=1 from the system; (c) pA=−(λ−1)2(λ+2)p_A=-(\lambda-1)^2(\lambda+2), mg(1)=1<2m_g(1)=1<2 so not diagonalizable; (d) not similar, justified by determinant or eigenvalues sign errors in the cofactor expansion; computing the eigenspace only for the simple eigenvalue; claiming diagonalizable from real eigenvalues; justifying "not similar" with something that is not an invariant (or "similar" with only equal eigenvalues)
3 not stated (a) orthogonal basis by Gram-Schmidt, α=2\alpha=2; (b) two independent vectors orthogonal to UU; (c) projection (3,2,3,1)(3,2,3,1) with the orthogonal basis; (d) the necessary condition ℓ⋅(w−ℓ)=0\ell\cdot(w-\ell)=0 fails (−5-5) projecting with the non-orthogonal basis u1,u2u_1,u_2; wrong sign of α\alpha; stopping at dim⁡U⊥\dim U^\perp without writing vectors; in (d) saying "no" without the argument
4 not stated (a) inconsistent system plus non-proportional directions, so skew; (b) normal (1,−1,−1)(1,-1,-1) from orthogonality and d=1d=1; (c) condition 3x−z=13x-z=1 and S=(1,0,2)S=(1,0,2); (d) RtR_t, StS_t, midpoint and the parametric line concluding "parallel" or "incident" from a single check; forgetting that the point must be on ss in (c); algebra slips in the midpoint