Salta al contenuto
Note per Studenti Linear Algebra - Exam of 1 September 2022 Report

Linear Algebra - Exam of 1 September 2022

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

In questa pagina 5

Written exam of Linear Algebra and Geometry, third appello of 1 September 2022 (Engineering, UniPD). This is the paper of the equivalent course taught in Italian, translated into English: the English-language course does not publish its exam papers, so this is the closest official paper available. The sheet (version A) has four exercises with several parts each. Duration, points per exercise and allowed material are not stated on the sheet. Exercise 4 is about lines and planes in space: it is covered by the section on affine subspaces 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 →, and every part is solved below with that material.

Exercise 1 (points not stated)

We identify R4\mathbb{R}^4 with the vector space VV of polynomials of degree ≤3\le 3, associating to a vector v=(a0,a1,a2,a3)v = (a_0, a_1, a_2, a_3) of R4\mathbb{R}^4 the polynomial pv(X)=a0+a1X+a2X2+a3X3p_v(X) = a_0 + a_1 X + a_2 X^2 + a_3 X^3.

(a) Let U⊂R4U \subset \mathbb{R}^4 be the subspace of the vectors v∈R4v \in \mathbb{R}^4 such that the corresponding polynomial vanishes at X=1X = 1: U={ v∈R4∣pv(1)=0 }.U = \{\, v \in \mathbb{R}^4 \mid p_v(1) = 0 \,\}. Determine the dimension and a basis of UU.

(b) Let W⊂R4W \subset \mathbb{R}^4 be the subspace spanned by the vectors w1=(2,0,0,1)w_1 = (2, 0, 0, 1) and w2=(1,0,−2,0)w_2 = (1, 0, -2, 0). Check that for every w∈Ww \in W the corresponding polynomial pw(X)p_w(X) is such that its derivative vanishes at X=0X = 0: pw′(0)=0p_w'(0) = 0. Say whether all the polynomials f(X)∈Vf(X) \in V such that f′(0)=0f'(0) = 0 are of the form f(X)=pw(X)f(X) = p_w(X), for some vector w∈Ww \in W.

(c) Determine the dimension and a basis of U∩WU \cap W.

(d) Say whether there exist two subspaces V1,V2⊂R4V_1, V_2 \subset \mathbb{R}^4 such that W⊕V1=R4W \oplus V_1 = \mathbb{R}^4, W⊕V2=R4W \oplus V_2 = \mathbb{R}^4 and also V1⊕V2=R4V_1 \oplus V_2 = \mathbb{R}^4. If the answer is yes, write bases of such subspaces.

Show the result

(a) dim⁡U=3\dim U = 3; a basis is (1,0,0,−1), (0,1,0,−1), (0,0,1,−1)(1,0,0,-1),\ (0,1,0,-1),\ (0,0,1,-1).

(b) For w=αw1+βw2=(2α+β, 0, −2β, α)w = \alpha w_1 + \beta w_2 = (2\alpha+\beta,\ 0,\ -2\beta,\ \alpha) we get pw′(X)=−4βX+3αX2p_w'(X) = -4\beta X + 3\alpha X^2, so pw′(0)=0p_w'(0) = 0. No: not every ff with f′(0)=0f'(0)=0 is a pwp_w with w∈Ww \in W (for instance f(X)=1f(X) = 1).

(c) U∩W=L((5,0,−6,1))U \cap W = L\bigl((5, 0, -6, 1)\bigr), so dim⁡(U∩W)=1\dim(U \cap W) = 1.

(d) Yes. For example V1=L((1,0,0,0),(0,1,0,0))V_1 = L\bigl((1,0,0,0),(0,1,0,0)\bigr) and V2=L((0,1,1,0),(0,0,0,1))V_2 = L\bigl((0,1,1,0),(0,0,0,1)\bigr).

Show the full solution

(a) The subspace UU. The polynomial of v=(a0,a1,a2,a3)v = (a_0,a_1,a_2,a_3) vanishes at X=1X=1 when pv(1)=a0+a1+a2+a3=0p_v(1) = a_0 + a_1 + a_2 + a_3 = 0. So UU is the solution set of a single homogeneous linear equation in four unknowns, i.e. the kernel of the 1×41\times 4 matrix (1 1 1 1)(1\ 1\ 1\ 1) (see 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 → and Vector SpacesVector spaces are sets with a sum and a scalar multiplication satisfying eight rules, with R^n, polynomials, direct sums and quotients as examples; subspaces, spans, linear combinations and linear independence are the tools to describe them.Vector Spaces →). This matrix has rank 11, so by the rank-nullity theorem of 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⁡U=4−1=3.\dim U = 4 - 1 = 3. Solve for the first unknown that is determined, here the last one: a3=−a0−a1−a2a_3 = -a_0 - a_1 - a_2, with a0,a1,a2a_0, a_1, a_2 free. Then v=(a0, a1, a2, −a0−a1−a2)=a0(1,0,0,−1)+a1(0,1,0,−1)+a2(0,0,1,−1).v = (a_0,\ a_1,\ a_2,\ -a_0-a_1-a_2) = a_0 (1,0,0,-1) + a_1 (0,1,0,-1) + a_2 (0,0,1,-1). These three vectors span UU and are linearly independent: looking only at the first three coordinates they give the identity matrix, so a vanishing combination has a0=a1=a2=0a_0 = a_1 = a_2 = 0. So they form a basis, 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 →. Check: each vector satisfies a0+a1+a2+a3=1−1=0a_0+a_1+a_2+a_3 = 1 - 1 = 0.

(b) The subspace WW and the derivative. A generic vector of WW is w=αw1+βw2=α(2,0,0,1)+β(1,0,−2,0)=(2α+β, 0, −2β, α),w = \alpha w_1 + \beta w_2 = \alpha(2,0,0,1) + \beta(1,0,-2,0) = (2\alpha+\beta,\ 0,\ -2\beta,\ \alpha), with α,β∈R\alpha, \beta \in \mathbb{R}. The corresponding polynomial is pw(X)=(2α+β)+0⋅X−2βX2+αX3,pw′(X)=−4βX+3αX2,p_w(X) = (2\alpha+\beta) + 0\cdot X - 2\beta X^2 + \alpha X^3,\qquad p_w'(X) = -4\beta X + 3\alpha X^2, and pw′(0)=0p_w'(0) = 0 for all α,β\alpha, \beta. Equivalently: the coefficient of XX (the second coordinate) is always 00 on WW.

Is every ff with f′(0)=0f'(0)=0 a pwp_w? The polynomials f∈Vf \in V with f′(0)=0f'(0)=0 are exactly those with a1=0a_1 = 0, i.e. the vectors (a0,0,a2,a3)(a_0, 0, a_2, a_3): a subspace of dimension 33. But WW has dimension 22 (the vectors w1,w2w_1, w_2 are not proportional), so WW is a proper subspace of that 33-dimensional space. Explicit counterexample: f(X)=1f(X) = 1 has f′(0)=0f'(0)=0, but it corresponds to the vector (1,0,0,0)(1,0,0,0), which is not in WW: it would need α=0\alpha = 0 (fourth coordinate), then β=0\beta = 0 (third coordinate), and then the first coordinate would be 0≠10 \ne 1. So the answer is no. The condition f′(0)=0f'(0)=0 is necessary to be a pwp_w, but not sufficient.

(c) The intersection U∩WU\cap W. A vector w∈Ww \in W lies in UU if its polynomial vanishes at X=1X=1, i.e. if its coordinates add up to 00: (2α+β)+0+(−2β)+α=3α−β=0⟹β=3α,(2\alpha+\beta) + 0 + (-2\beta) + \alpha = 3\alpha - \beta = 0 \quad\Longrightarrow\quad \beta = 3\alpha, with α\alpha free. So U∩W={αw1+3αw2}U \cap W = \{\alpha w_1 + 3\alpha w_2\} has dimension 11, in agreement with the dimension formula of 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−4=1\dim(U\cap W) = \dim U + \dim W - \dim(U+W) = 3 + 2 - 4 = 1 (here U+W=R4U + W = \mathbb{R}^4: W⊈UW \not\subseteq U, since w1∉Uw_1 \notin U, so U+WU+W is strictly larger than UU and has dimension at least 44). A basis is obtained with α=1\alpha = 1, β=3\beta = 3: w1+3w2=(2,0,0,1)+(3,0,−6,0)=(5,0,−6,1).w_1 + 3 w_2 = (2,0,0,1) + (3,0,-6,0) = (5, 0, -6, 1). Check: 5+0−6+1=05 + 0 - 6 + 1 = 0. Typical error: substituting into the equation of UU and forgetting that the coordinates of ww must be written in terms of α,β\alpha, \beta first.

(d) Common complements. Since dim⁡W=2\dim W = 2 and W⊕Vi=R4W \oplus V_i = \mathbb{R}^4 (see the definition of direct sum in 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⁡(W+Vi)=dim⁡W+dim⁡Vi\dim(W+V_i) = \dim W + \dim V_i), we need dim⁡V1=dim⁡V2=2\dim V_1 = \dim V_2 = 2. We also need V1⊕V2=R4V_1 \oplus V_2 = \mathbb{R}^4, which again requires V1∩V2={0}V_1 \cap V_2 = \{0\}. In terms of vectors: if v1,v2v_1, v_2 is a basis of V1V_1 and v1′,v2′v_1', v_2' a basis of V2V_2, we need that each of {w1,w2,v1,v2},{w1,w2,v1′,v2′},{v1,v2,v1′,v2′}\{w_1,w_2,v_1,v_2\},\qquad \{w_1,w_2,v_1',v_2'\},\qquad \{v_1,v_2,v_1',v_2'\} is a basis of R4\mathbb{R}^4 (four vectors in a 44-dimensional space are a basis if and only if they are independent, i.e. the matrix with these rows has rank 44, 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 →).

Choose v1=(1,0,0,0)v_1 = (1,0,0,0), v2=(0,1,0,0)v_2 = (0,1,0,0), v1′=(0,1,1,0)v_1' = (0,1,1,0), v2′=(0,0,0,1)v_2' = (0,0,0,1). We check the three conditions by showing that the pairwise intersections are {0}\{0\} (then dim⁡(A+B)=2+2−0=4\dim(A+B) = 2+2-0 = 4 by the dimension formula).

  • W∩V1W \cap V_1: a vector (2α+β, 0, −2β, α)(2\alpha+\beta,\ 0,\ -2\beta,\ \alpha) of WW lies in V1={(a,b,0,0)}V_1 = \{(a,b,0,0)\} only if −2β=0-2\beta = 0 and α=0\alpha = 0, so β=α=0\beta = \alpha = 0.
  • W∩V2W \cap V_2: V2={(0,c,c,d)}V_2 = \{(0,c,c,d)\}. We need 2α+β=02\alpha+\beta = 0, then 0=c=−2β0 = c = -2\beta so β=0\beta = 0, hence α=0\alpha = 0 and d=0d=0.
  • V1∩V2V_1 \cap V_2: (a,b,0,0)=(0,c,c,d)(a,b,0,0) = (0,c,c,d) gives a=0a=0, c=0c = 0 (third coordinate), b=c=0b = c = 0, d=0d = 0.

So all three sums are direct and have dimension 44: W⊕V1=W⊕V2=V1⊕V2=R4W\oplus V_1 = W \oplus V_2 = V_1 \oplus V_2 = \mathbb{R}^4. (Alternatively, reduce the three 4×44\times4 matrices by Gaussian elimination and find rank 44.)

Why not the simplest choice v1′=(0,0,1,0)v_1' = (0,0,1,0)? Because {w1,w2,(0,0,1,0),(0,0,0,1)}\{w_1, w_2, (0,0,1,0), (0,0,0,1)\} all have second coordinate 00: their span lies in the hyperplane x2=0x_2 = 0 and the matrix (200110−2000100001)\begin{pmatrix}2&0&0&1\\1&0&-2&0\\0&0&1&0\\0&0&0&1\end{pmatrix} has rank 33, not 44. A complement of WW must contain vectors with non-zero second coordinate, since WW itself has none.

Exercise 2 (points not stated)

Let ff be the endomorphism of R3\mathbb{R}^3 whose matrix with respect to the canonical basis is A=(1−122031−33).A = \begin{pmatrix} 1 & -1 & 2 \\ 2 & 0 & 3 \\ 1 & -3 & 3 \end{pmatrix}.

(a) Find a basis of ker⁡f\ker f and a basis of its orthogonal (ker⁡f)⊥(\ker f)^\perp.

(b) Let g ⁣:R3→R3g\colon \mathbb{R}^3 \to \mathbb{R}^3 be the linear function whose matrix with respect to the canonical basis is the transpose matrix of AA. Find a basis of im⁡g\operatorname{im} g and check that im⁡g=(ker⁡f)⊥\operatorname{im} g = (\ker f)^\perp.

(c) For which value of tt does the vector v=(1,t,−1)v = (1, t, -1) belong to the image of ff? For this value of tt determine the preimage f−1(v)f^{-1}(v).

(d) Consider now the basis {u1,u2,u3}\{u_1, u_2, u_3\} of R3\mathbb{R}^3, where u1=e3u_1 = e_3, u2=e2u_2 = e_2, u3=e1u_3 = e_1. What is the matrix of ff with respect to the basis {u1,u2,u3}\{u_1, u_2, u_3\}?

Show the result

(a) ker⁡f=L((−3,1,2))\ker f = L\bigl((-3,1,2)\bigr), dim⁡ker⁡f=1\dim\ker f = 1. (ker⁡f)⊥=L((1,3,0),(0,−2,1))(\ker f)^\perp = L\bigl((1,3,0),(0,-2,1)\bigr).

(b) im⁡g\operatorname{im} g has basis (1,−1,2), (2,0,3)(1,-1,2),\ (2,0,3) and im⁡g=(ker⁡f)⊥\operatorname{im} g = (\ker f)^\perp.

(c) t=4t = 4. f−1(v)=(5,0,−2)+L((−3,1,2))f^{-1}(v) = (5,0,-2) + L\bigl((-3,1,2)\bigr).

(d) (3−313022−11)\begin{pmatrix} 3 & -3 & 1 \\ 3 & 0 & 2 \\ 2 & -1 & 1 \end{pmatrix}

Show the full solution

(a) Kernel and its orthogonal. The kernel is the solution set of Ax=0Ax = 0 (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 →). Gaussian elimination (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 →): subtract 2×2\times row 1 from row 2 and row 1 from row 3, (1−122031−33)⇝(1−1202−10−21)⇝(1−1202−1000).\begin{pmatrix} 1&-1&2\\2&0&3\\1&-3&3\end{pmatrix}\rightsquigarrow\begin{pmatrix}1&-1&2\\0&2&-1\\0&-2&1\end{pmatrix}\rightsquigarrow\begin{pmatrix}1&-1&2\\0&2&-1\\0&0&0\end{pmatrix}. Rank 22, so dim⁡ker⁡f=3−2=1\dim\ker f = 3 - 2 = 1 (rank-nullity). The system is x−y+2z=0x - y + 2z = 0, 2y−z=02y - z = 0. Take zz free: y=z/2y = z/2, x=y−2z=−32zx = y - 2z = -\tfrac32 z. With z=2z = 2 (to avoid fractions): (x,y,z)=(−3,1,2)(x,y,z) = (-3, 1, 2). Check: A(−3,1,2)T=(−3−1+4, −6+0+6, −3−3+6)=(0,0,0)A(-3,1,2)^T = (-3-1+4,\ -6+0+6,\ -3-3+6) = (0,0,0). So ker⁡f=L((−3,1,2))\ker f = L\bigl((-3,1,2)\bigr).

The orthogonal complement (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 →, with the standard scalar product): x=(x,y,z)∈(ker⁡f)⊥x = (x,y,z) \in(\ker f)^\perp iff ⟨x,(−3,1,2)⟩=0\langle x, (-3,1,2)\rangle = 0, i.e. −3x+y+2z=0-3x + y + 2z = 0. It is a plane through the origin, with dim⁡(ker⁡f)⊥=3−1=2\dim(\ker f)^\perp = 3 - 1 = 2. Solve for y=3x−2zy = 3x - 2z with x,zx, z free: (x,3x−2z,z)=x(1,3,0)+z(0,−2,1).(x, 3x-2z, z) = x(1,3,0) + z(0,-2,1). A basis is (1,3,0),(0,−2,1)(1,3,0), (0,-2,1). Check: ⟨(1,3,0),(−3,1,2)⟩=−3+3=0\langle(1,3,0),(-3,1,2)\rangle = -3+3 = 0 and ⟨(0,−2,1),(−3,1,2)⟩=−2+2=0\langle(0,-2,1),(-3,1,2)\rangle = -2+2 = 0.

(b) The transpose. The matrix of gg is AT=(121−10−3233).A^T = \begin{pmatrix} 1&2&1\\-1&0&-3\\2&3&3\end{pmatrix}. Its image is the span of its columns (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 →), i.e. of (1,−1,2)(1,-1,2), (2,0,3)(2,0,3), (1,−3,3)(1,-3,3). Eliminate: row 2 plus row 1, row 3 minus 2×2\times row 1: (12102−20−11)⇝(12102−2000).\begin{pmatrix}1&2&1\\0&2&-2\\0&-1&1\end{pmatrix}\rightsquigarrow\begin{pmatrix}1&2&1\\0&2&-2\\0&0&0\end{pmatrix}. Rank 22 (as for AA: a matrix and its transpose have the same rank, 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 →). The pivots are in columns 1 and 2, so the columns of ATA^T (not of the reduced matrix) number 1 and 2 form a basis of im⁡g\operatorname{im} g: (1,−1,2)(1,-1,2) and (2,0,3)(2,0,3).

Proof that im⁡g=(ker⁡f)⊥\operatorname{im} g = (\ker f)^\perp. Both are subspaces of R3\mathbb{R}^3 of dimension 22. So it is enough to show one inclusion, e.g. im⁡g⊆(ker⁡f)⊥\operatorname{im} g \subseteq (\ker f)^\perp: a subspace contained in another subspace of the same dimension equals it (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 →). It suffices to check that the basis vectors of im⁡g\operatorname{im} g are orthogonal to the generator (−3,1,2)(-3,1,2) of ker⁡f\ker f: ⟨(1,−1,2),(−3,1,2)⟩=−3−1+4=0,⟨(2,0,3),(−3,1,2)⟩=−6+0+6=0.\langle(1,-1,2),(-3,1,2)\rangle = -3-1+4 = 0,\qquad\langle(2,0,3),(-3,1,2)\rangle = -6+0+6 = 0. (The third column too: −3−3+6=0-3-3+6 = 0.) The reason is general: the entries of the vector AxA x are the scalar products of the rows of AA with xx, so x∈ker⁡fx\in\ker f means xx is orthogonal to every row of AA, i.e. to every column of ATA^T.

(c) When is vv in the image? The image of ff is spanned by the columns of AA, and from the elimination in (a) the pivots are in columns 1 and 2, so a basis of im⁡f\operatorname{im} f is (1,2,1)(1,2,1), (−1,0,−3)(-1,0,-3) (columns of AA). We need α,β\alpha,\beta with (1,t,−1)=α(1,2,1)+β(−1,0,−3):α−β=1,2α=t,α−3β=−1.(1,t,-1) = \alpha(1,2,1) + \beta(-1,0,-3):\qquad \alpha - \beta = 1,\quad 2\alpha = t,\quad \alpha - 3\beta = -1. First and third: subtracting gives 2β=22\beta = 2, so β=1\beta = 1 and α=2\alpha = 2. The second equation gives t=4t = 4. For t=4t = 4 the system has a solution, for any other tt it has none, so v∈im⁡fv\in\operatorname{im} f exactly for t=4t = 4 (equivalently, the determinant of the matrix with columns (1,2,1),(−1,0,−3),(1,t,−1)(1,2,1),(-1,0,-3),(1,t,-1) is 2t−82t - 8, zero only for t=4t = 4).

The preimage f−1(v)f^{-1}(v) is the solution set of the non-homogeneous system Ax=(1,4,−1)TAx = (1,4,-1)^T: (1−12120341−33−1)⇝(1−12102−120−21−2)⇝(1−12102−120000).\left(\begin{array}{ccc|c}1&-1&2&1\\2&0&3&4\\1&-3&3&-1\end{array}\right)\rightsquigarrow\left(\begin{array}{ccc|c}1&-1&2&1\\0&2&-1&2\\0&-2&1&-2\end{array}\right)\rightsquigarrow\left(\begin{array}{ccc|c}1&-1&2&1\\0&2&-1&2\\0&0&0&0\end{array}\right). With zz free, y=1+z/2y = 1 + z/2 and x=1+y−2z=2−32zx = 1 + y - 2z = 2 - \tfrac32 z. Putting z=−2z = -2 gives a particular solution (5,0,−2)(5, 0, -2); check: A(5,0,−2)T=(5−4, 10−6, 5−6)=(1,4,−1)A(5,0,-2)^T = (5-4,\ 10-6,\ 5-6) = (1,4,-1). As explained in 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 → and Vector SpacesVector spaces are sets with a sum and a scalar multiplication satisfying eight rules, with R^n, polynomials, direct sums and quotients as examples; subspaces, spans, linear combinations and linear independence are the tools to describe them.Vector Spaces →, the set of all solutions is a particular solution plus the kernel: f−1(v)=(5,0,−2)+L((−3,1,2)).f^{-1}(v) = (5,0,-2) + L\bigl((-3,1,2)\bigr). (Another particular solution, (2,1,0)(2,1,0) for z=0z=0, gives the same set: (5,0,−2)−(2,1,0)=(3,−1,−2)∈ker⁡f(5,0,-2) - (2,1,0) = (3,-1,-2) \in \ker f.)

(d) Change of basis. The matrix of ff with respect to {u1,u2,u3}\{u_1,u_2,u_3\} has, in column jj, the coordinates of f(uj)f(u_j) in the basis {u1,u2,u3}\{u_1,u_2,u_3\} (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 →). The images f(ei)f(e_i) are the columns of AA: f(e1)=(1,2,1)=e1+2e2+e3,f(e2)=(−1,0,−3)=−e1−3e3,f(e3)=(2,3,3)=2e1+3e2+3e3.f(e_1) = (1,2,1) = e_1 + 2e_2 + e_3,\quad f(e_2) = (-1,0,-3) = -e_1 - 3e_3,\quad f(e_3) = (2,3,3) = 2e_1 + 3e_2 + 3e_3. Now e1=u3e_1 = u_3, e2=u2e_2 = u_2, e3=u1e_3 = u_1, so f(u1)=f(e3)=2u3+3u2+3u1=3u1+3u2+2u3,f(u_1) = f(e_3) = 2u_3 + 3u_2 + 3u_1 = 3u_1 + 3u_2 + 2u_3, f(u2)=f(e2)=−u3−3u1=−3u1+0u2−u3,f(u_2) = f(e_2) = -u_3 - 3u_1 = -3u_1 + 0u_2 - u_3, f(u3)=f(e1)=u3+2u2+u1=u1+2u2+u3.f(u_3) = f(e_1) = u_3 + 2u_2 + u_1 = u_1 + 2u_2 + u_3. The coordinates, written as columns, give M=(3−313022−11).M = \begin{pmatrix}3&-3&1\\3&0&2\\2&-1&1\end{pmatrix}. Check with the formula M=P−1APM = P^{-1}AP, where PP has the vectors uju_j as columns: P=(001010100)=P−1P = \begin{pmatrix}0&0&1\\0&1&0\\1&0&0\end{pmatrix} = P^{-1}. Conjugating by PP reverses the order of the rows and of the columns of AA, which gives exactly MM. Typical error: writing the coordinates as rows instead of columns.

Exercise 3 (points not stated)

Consider the matrix A=(10−1−12−110t).A = \begin{pmatrix} 1 & 0 & -1 \\ -1 & 2 & -1 \\ 1 & 0 & t \end{pmatrix}.

(a) Determine the value of tt for which the linear function represented by the matrix AA is not injective.

(b) Now set t=3t = 3. Determine the characteristic polynomial and the eigenvalues of AA.

(c) Still for t=3t = 3, determine a basis of the eigenspaces of AA. Say whether it is possible to find a diagonal matrix DD similar to AA.

Show the result

(a) det⁡A=2(t+1)\det A = 2(t+1); not injective exactly for t=−1t = -1.

(b) χA(x)=(2−x)3\chi_A(x) = (2-x)^3; the only eigenvalue is 22, with algebraic multiplicity 33.

(c) E2=L((1,0,−1),(0,1,0))E_2 = L\bigl((1,0,-1),(0,1,0)\bigr), of dimension 2<32 < 3. AA is not diagonalizable: no diagonal matrix is similar to AA.

Show the full solution

(a) Injectivity. The map is R3→R3\mathbb{R}^3\to\mathbb{R}^3, so 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 →) it is injective iff it is surjective iff it is bijective, i.e. iff AA is invertible, i.e. iff det⁡A≠0\det A\ne 0 (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 →). Expand the determinant along the second column, which has a single non-zero entry 22 in position (2,2)(2,2) (sign ++): det⁡A=2det⁡(1−11t)=2(t+1).\det A = 2\det\begin{pmatrix}1&-1\\1&t\end{pmatrix} = 2(t+1). So ff is not injective exactly for t=−1t = -1. (Check: for t=−1t=-1 the kernel is L((1,1,1))L\bigl((1,1,1)\bigr): A(1,1,1)T=(1−1, −1+2−1, 1−1)=0A(1,1,1)^T = (1-1,\ -1+2-1,\ 1-1) = 0.)

(b) Characteristic polynomial. With t=3t=3, A=(10−1−12−1103)A = \begin{pmatrix}1&0&-1\\-1&2&-1\\1&0&3\end{pmatrix} and (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 →) χA(x)=det⁡(A−x id)=det⁡(1−x0−1−12−x−1103−x).\chi_A(x) = \det(A - x\,\mathrm{id}) = \det\begin{pmatrix}1-x&0&-1\\-1&2-x&-1\\1&0&3-x\end{pmatrix}. Again expand along the second column: χA(x)=(2−x)det⁡(1−x−113−x)=(2−x)[(1−x)(3−x)+1]=(2−x)(x2−4x+4)=(2−x)3.\chi_A(x) = (2-x)\det\begin{pmatrix}1-x&-1\\1&3-x\end{pmatrix} = (2-x)\bigl[(1-x)(3-x)+1\bigr] = (2-x)(x^2 - 4x + 4) = (2-x)^3. The only root is x=2x = 2, with algebraic multiplicity 33. So 22 is the only eigenvalue.

(c) Eigenspace and diagonalizability. The eigenvectors for 22 are the solutions of (A−2 id)v=0(A - 2\,\mathrm{id})v = 0: (−10−1−10−1101)(xyz)=(000).\begin{pmatrix}-1&0&-1\\-1&0&-1\\1&0&1\end{pmatrix}\begin{pmatrix}x\\y\\z\end{pmatrix} = \begin{pmatrix}0\\0\\0\end{pmatrix}. All three rows are multiples of (1 0 1)(1\ 0\ 1), so the system reduces to the single equation x+z=0x + z = 0: the matrix has rank 11 and dim⁡E2=3−1=2\dim E_2 = 3 - 1 = 2. With yy and zz free, x=−zx = -z: (−z,y,z)=y(0,1,0)+z(−1,0,1).(-z, y, z) = y(0,1,0) + z(-1,0,1). A basis of E2E_2 is v1=(1,0,−1)v_1 = (1,0,-1), v2=(0,1,0)v_2 = (0,1,0) (any two independent vectors with x+z=0x+z=0 work). Check: A(1,0,−1)T=(1+1, −1+0+1, 1−3)T=(2,0,−2)T=2v1A(1,0,-1)^T = (1+1,\ -1+0+1,\ 1-3)^T = (2,0,-2)^T = 2v_1 and A(0,1,0)T=(0,2,0)T=2v2A(0,1,0)^T = (0,2,0)^T = 2v_2.

A matrix is diagonalizable iff the dimensions of its eigenspaces add up to 33 (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 →). Here dim⁡E2=2≠3\dim E_2 = 2 \ne 3 (strictly smaller than the algebraic multiplicity 33), so there are at most two independent eigenvectors: AA is not diagonalizable, and no diagonal matrix DD is similar to AA (if D=P−1APD = P^{-1}AP were diagonal, the columns of PP would be three independent eigenvectors). Typical error: stopping at "the only eigenvalue is 22, so A=2 idA = 2\,\mathrm{id}": if AA were similar to 2 id2\,\mathrm{id} it would equal 2 id2\,\mathrm{id}, which it does not.

Exercise 4 (points not stated)

In the affine space AR3\mathbb{A}^3_{\mathbb{R}} consider the plane π ⁣:2x−y+z=0\pi\colon 2x - y + z = 0 and the line rr of equations 3x−z−5=03x - z - 5 = 0 and y=0y = 0.

(a) Write the Cartesian equation of the plane σ\sigma that contains the line rr and forms a right angle with the plane π\pi.

(b) Let A=r∩πA = r\cap\pi. Write the parametric equations of the line r′r' through AA, contained in the plane π\pi and perpendicular to the line rr.

(c) Let P=(1,−1,3)P = (1,-1,3). Write the parametric equations of the line ss through PP, parallel to the plane π\pi and incident the line rr.

(d) Find a point RR on the line rr such that dist⁡(P,R)=dist⁡(P,π)\operatorname{dist}(P,R) = \operatorname{dist}(P,\pi) [there are two points that satisfy this request, it is enough to find one].

Show the result

(a) σ ⁣:3x+5y−z−5=0\sigma\colon 3x + 5y - z - 5 = 0.

(b) A=(1,0,−2)A = (1,0,-2) and r′ ⁣:x=1+3t, y=5t, z=−2−tr'\colon x = 1+3t,\ y = 5t,\ z = -2-t.

(c) s ⁣:x=1+65t, y=−1+t, z=3−75ts\colon x = 1 + \tfrac65 t,\ y = -1 + t,\ z = 3 - \tfrac75 t (it meets rr at the point with parameter t=115t=\tfrac{11}{5} of rr written as (t,0,3t−5)(t,0,3t-5)).

(d) dist⁡(P,π)=6\operatorname{dist}(P,\pi)=\sqrt6; the two points are R1=(2,0,1)R_1 = (2,0,1) and R2=(3,0,4)R_2 = (3,0,4).

Show the full solution

Throughout, π\pi has normal vector nπ=(2,−1,1)n_\pi = (2,-1,1), and rr is given as the intersection of the two planes 3x−z=53x - z = 5 (normal (3,0,−1)(3,0,-1)) and y=0y = 0 (normal (0,1,0)(0,1,0)). This is the Cartesian description of a line 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 →. To pass to parametric form, solve the system: y=0y = 0, z=3x−5z = 3x - 5 with xx free, so r=(0,0,−5)+L((1,0,3)),points (t, 0, 3t−5),vr=(1,0,3).r = (0,0,-5) + L\bigl((1,0,3)\bigr),\qquad\text{points }(t,\ 0,\ 3t-5),\qquad v_r = (1,0,3). (Check: (1,0,3)(1,0,3) satisfies the homogeneous equations 3x−z=03x - z = 0, y=0y = 0.)

(a) Plane through rr perpendicular to π\pi. The planes containing the line rr are exactly those with equation λ(3x−z−5)+μy=0,i.e. 3λx+μy−λz=5λ,(λ,μ)≠(0,0),\lambda(3x - z - 5) + \mu y = 0,\qquad\text{i.e. }3\lambda x + \mu y - \lambda z = 5\lambda,\quad(\lambda,\mu)\ne(0,0), as seen in the section on lines 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 →: every point of rr satisfies both equations, hence any linear combination of them. The normal vector of such a plane is n=(3λ,μ,−λ)n = (3\lambda,\mu,-\lambda). Two planes are perpendicular exactly when their normal vectors are orthogonal (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 →): ⟨n,nπ⟩=6λ−μ−λ=5λ−μ=0⟹μ=5λ.\langle n, n_\pi\rangle = 6\lambda - \mu - \lambda = 5\lambda - \mu = 0\quad\Longrightarrow\quad\mu = 5\lambda. With λ=1\lambda = 1, μ=5\mu = 5: σ ⁣: 3x+5y−z−5=0.\sigma\colon\ 3x + 5y - z - 5 = 0. Check: r⊂σr\subset\sigma because (t,0,3t−5)(t,0,3t-5) gives 3t−(3t−5)−5=03t - (3t-5) - 5 = 0; and ⟨(3,5,−1),(2,−1,1)⟩=6−5−1=0\langle(3,5,-1),(2,-1,1)\rangle = 6 - 5 - 1 = 0.

(b) Perpendicular to rr inside π\pi. The point AA. Substitute the points (t,0,3t−5)(t,0,3t-5) of rr into the equation of π\pi: 2t−0+(3t−5)=5t−5=02t - 0 + (3t-5) = 5t - 5 = 0, so t=1t = 1 and A=(1,0,−2)A = (1,0,-2). (This is a linear system: the three equations of π\pi and rr together have the unique solution AA.)

The direction. The direction w′w' of r′r' must satisfy two conditions: r′⊂πr'\subset\pi means w′⊥nπw'\perp n_\pi (the direction lies in the plane π\pi, which passes through AA), and r′⊥rr'\perp r means w′⊥vrw'\perp v_r. So w′∈L(nπ,vr)⊥w'\in L(n_\pi, v_r)^\perp, which is the situation of Task 5 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 →. Solve the homogeneous system ⟨w′,nπ⟩=0\langle w',n_\pi\rangle = 0, ⟨w′,vr⟩=0\langle w',v_r\rangle = 0, with w′=(a,b,c)w' = (a,b,c): 2a−b+c=0,a+3c=0 ⟹ a=−3c, b=2a+c=−5c.2a - b + c = 0,\qquad a + 3c = 0\ \Longrightarrow\ a = -3c,\ b = 2a + c = -5c. Taking c=−1c = -1 gives w′=(3,5,−1)w' = (3,5,-1). (This is also the cross product vr×nπv_r\times n_\pi, but the cross product is not needed.) Check: ⟨(3,5,−1),(2,−1,1)⟩=6−5−1=0\langle(3,5,-1),(2,-1,1)\rangle = 6-5-1 = 0 and ⟨(3,5,−1),(1,0,3)⟩=3−3=0\langle(3,5,-1),(1,0,3)\rangle = 3-3 = 0. So r′ ⁣:x=1+3t,y=5t,z=−2−t.r'\colon\quad x = 1 + 3t,\quad y = 5t,\quad z = -2 - t.

(c) Parallel to π\pi and incident to rr. The line ss passes through PP and must meet rr at some point R=(t,0,3t−5)R = (t, 0, 3t-5). So its direction is vs=R−P=(t−1, 1, 3t−8).v_s = R - P = (t - 1,\ 1,\ 3t - 8). Parallel to the plane π\pi means vs⊥nπv_s\perp n_\pi (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 →, Task 9): ⟨vs,nπ⟩=2(t−1)−1+(3t−8)=5t−11=0⟹t=115.\langle v_s, n_\pi\rangle = 2(t-1) - 1 + (3t - 8) = 5t - 11 = 0\quad\Longrightarrow\quad t = \tfrac{11}{5}. Then R=(115,0,185)R = (\tfrac{11}5, 0, \tfrac{18}5) and vs=(65,1,−75)v_s = (\tfrac65, 1, -\tfrac75). Check: 2⋅65−1−75=12−5−75=02\cdot\tfrac65 - 1 - \tfrac75 = \tfrac{12 - 5 - 7}{5} = 0. The parametric equations of ss: s ⁣:x=1+65t,y=−1+t,z=3−75t.s\colon\quad x = 1 + \tfrac65 t,\quad y = -1 + t,\quad z = 3 - \tfrac75 t. (Multiplying the direction by 55, (6,5,−7)(6,5,-7), gives integers.) Also check that P∉πP\notin\pi: 2+1+3=6≠02 + 1 + 3 = 6 \ne 0, so ss is parallel to π\pi but not contained in it.

(d) Points of rr at distance dist⁡(P,π)\operatorname{dist}(P,\pi) from PP. Distance of PP from π\pi. The plane π\pi is the subspace W=L(nπ)⊥W = L(n_\pi)^\perp, passing through the origin. Decompose P=pW(P)+pW⊥(P)P = p_W(P) + p_{W^\perp}(P) by the orthogonal projection theorem of 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 →. The distance from PP to π\pi is the norm of the component along nπn_\pi: pL(nπ)(P)=⟨P,nπ⟩⟨nπ,nπ⟩ nπ=2+1+36(2,−1,1)=(2,−1,1),dist⁡(P,π)=∥(2,−1,1)∥=6.p_{L(n_\pi)}(P) = \frac{\langle P, n_\pi\rangle}{\langle n_\pi, n_\pi\rangle}\,n_\pi = \frac{2 + 1 + 3}{6}(2,-1,1) = (2,-1,1),\qquad\operatorname{dist}(P,\pi) = \|(2,-1,1)\| = \sqrt6. (The same value is ∣2xP−yP+zP∣∥nπ∥=66\dfrac{|2x_P - y_P + z_P|}{\|n_\pi\|} = \dfrac{6}{\sqrt6}, the hyperplane formula 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 → applied after translating PP to the origin.)

Distance from PP to the points of rr. For R=(t,0,3t−5)R = (t,0,3t-5): ∥R−P∥2=(t−1)2+12+(3t−8)2=t2−2t+1+1+9t2−48t+64=10t2−50t+66.\|R - P\|^2 = (t-1)^2 + 1^2 + (3t-8)^2 = t^2 - 2t + 1 + 1 + 9t^2 - 48t + 64 = 10t^2 - 50t + 66. Impose ∥R−P∥2=dist⁡(P,π)2=6\|R - P\|^2 = \operatorname{dist}(P,\pi)^2 = 6: 10t2−50t+60=0 ⟺ t2−5t+6=0 ⟺ t=2 or t=3.10t^2 - 50t + 60 = 0\ \Longleftrightarrow\ t^2 - 5t + 6 = 0\ \Longleftrightarrow\ t = 2\ \text{or}\ t = 3. The points are R1=(2,0,1)R_1 = (2,0,1) and R2=(3,0,4)R_2 = (3,0,4). Check for R1R_1: R1−P=(1,1,−2)R_1 - P = (1,1,-2) with squared norm 1+1+4=61+1+4 = 6; for R2R_2: R2−P=(2,1,1)R_2 - P = (2,1,1), squared norm 4+1+1=64+1+1 = 6. Both satisfy the request; one is enough. Typical error: comparing ∥R−P∥\|R-P\| with 66 instead of 6\sqrt6, or forgetting the square on one side.

Self-assessment grid
Exercise Points What you need for full marks Typical errors
1(a) not stated UU is the kernel of (1 1 1 1)(1\ 1\ 1\ 1), dimension 33, three independent vectors Giving a basis of R4\mathbb{R}^4 or only two vectors; not checking independence
1(b) not stated pw′(0)=0p_w'(0)=0 shown for the generic ww; answer no, with the counterexample f=1f=1 or the dimension count (2<32<3) Saying yes because the condition holds on WW; no counterexample
1(c) not stated Condition β=3α\beta = 3\alpha, dimension 11, vector (5,0,−6,1)(5,0,-6,1) Not writing ww with α,β\alpha,\beta before imposing the equation of UU
1(d) not stated Dimensions 22 and 22; explicit bases; the three sums shown direct (rank 44 or trivial intersections) Choosing (0,0,1,0)(0,0,1,0) so that the rank drops to 33; checking only two of the three conditions
2(a) not stated ker⁡f=L((−3,1,2))\ker f=L((-3,1,2)) and the plane −3x+y+2z=0-3x+y+2z=0 with a basis of two vectors Wrong dimension of (ker⁡f)⊥(\ker f)^\perp (it is 22, not 11); a basis that does not solve the plane equation
2(b) not stated Basis of im⁡g\operatorname{im} g from the columns of ATA^T; inclusion plus equal dimensions Taking columns of the reduced matrix; checking orthogonality but not the dimensions
2(c) not stated t=4t=4; particular solution (5,0,−2)(5,0,-2) plus ker⁡f\ker f Forgetting to add the kernel; giving only one solution
2(d) not stated Coordinates of f(uj)f(u_j) in the basis uu, written as columns; final matrix Writing rows instead of columns; keeping the order e1,e2,e3e_1,e_2,e_3
3(a) not stated det⁡A=2(t+1)\det A = 2(t+1), hence t=−1t=-1, with the reason injective iff invertible Computing the determinant with a sign error; confusing injective with surjective
3(b) not stated χA(x)=(2−x)3\chi_A(x)=(2-x)^3, eigenvalue 22 with multiplicity 33 Expanding the determinant along the wrong column; forgetting multiplicity
3(c) not stated E2E_2 of dimension 22 with an explicit basis; conclusion not diagonalizable because 2<32<3 Concluding diagonalizable because there is one eigenvalue; wrong eigenvectors
4(a) not stated Plane through rr in the family with normal (3λ,μ,−λ)(3\lambda,\mu,-\lambda), orthogonality to nπn_\pi, equation 3x+5y−z−5=03x+5y-z-5=0 Using the direction of rr instead of the normal; losing the constant term
4(b) not stated A=(1,0,−2)A=(1,0,-2); direction orthogonal to both nπn_\pi and vrv_r Direction not orthogonal to nπn_\pi (line leaves the plane)
4(c) not stated Direction R−PR-P with RR on rr, condition vs⊥nπv_s\perp n_\pi, t=115t=\tfrac{11}5 Imposing vs∥nπv_s\parallel n_\pi instead of orthogonal; arithmetic errors with fractions
4(d) not stated dist⁡(P,π)=6\operatorname{dist}(P,\pi)=\sqrt6; equation 10t2−50t+60=010t^2-50t+60=0; one of the two points Comparing distance with squared distance; algebra errors in the square