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

Linear Algebra - Mock Exam 3

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 Algebra Lineare e Geometria papers of 5 July 2022, 1 September 2022 and 20 June 2023 (Information Engineering, UniPD; the Italian-language equivalent of this course). It is not an official paper: the exercises are new. Like the real papers it has four exercises, each with several parts and no separate theory section. The original sheets do not print the points, so here each exercise is worth 8 points (32 in total, pass mark 18) and the suggested time is 2 hours. Allowed: pen and paper only, no notes, no calculator. Every answer must be justified. How to use it: solve it under exam conditions, then open the result of each exercise to check your numbers, and only then the full solution and the self-assessment grid at the end.

Exercise 1 (points 8)

Let V=Mat2×2(R)V=\mathrm{Mat}_{2\times 2}(\mathbb{R}) be the vector space of real 2×22\times 2 matrices, and let A=(1122).A=\begin{pmatrix}1&1\\2&2\end{pmatrix}. Let C={X∈V∣AX=XA}C=\{X\in V\mid AX=XA\} be the set of matrices that commute with AA, and let S⊆VS\subseteq V be the set of symmetric matrices.

(a) Show that CC is a subspace of VV and find its dimension and a basis. (2 points)

(b) Find the dimension and a basis of SS and of C∩SC\cap S. Compute dim⁡(C+S)\dim(C+S). Is the sum C+SC+S direct? (3 points)

(c) Extend a basis of CC to a basis of VV. (1.5 points)

(d) Find the coordinates of M=(2345)M=\begin{pmatrix}2&3\\4&5\end{pmatrix} in the basis found in (c). Does MM belong to CC? (1.5 points)

Show the result

(a) C={(ab2ba+b)}C=\left\{\begin{pmatrix}a&b\\2b&a+b\end{pmatrix}\right\}, dim⁡C=2\dim C=2, basis I=(1001)I=\begin{pmatrix}1&0\\0&1\end{pmatrix}, B=(0121)B=\begin{pmatrix}0&1\\2&1\end{pmatrix}.

(b) dim⁡S=3\dim S=3, basis E11E_{11}, E12+E21E_{12}+E_{21}, E22E_{22}. C∩S=⟨I⟩C\cap S=\langle I\rangle, dimension 11. dim⁡(C+S)=4\dim(C+S)=4, so C+S=VC+S=V; the sum is not direct.

(c) For example I, B, E11, E12I,\ B,\ E_{11},\ E_{12}.

(d) Coordinates (3, 2, −1, 1)(3,\,2,\,-1,\,1), i.e. M=3I+2B−E11+E12M=3I+2B-E_{11}+E_{12}. M∉CM\notin C.

Show the full solution

Identification with R4\mathbb{R}^4. A matrix X=(abcd)X=\begin{pmatrix}a&b\\c&d\end{pmatrix} is determined by the four numbers (a,b,c,d)(a,b,c,d), and sum and scalar multiplication of matrices act entrywise, so VV behaves exactly like R4\mathbb{R}^4 (see 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 →): dim⁡V=4\dim V=4, with the standard basis E11,E12,E21,E22E_{11},E_{12},E_{21},E_{22} (a 11 in one position, 00 elsewhere).

(a) Compute both products: AX=(1122)(abcd)=(a+cb+d2a+2c2b+2d),XA=(abcd)(1122)=(a+2ba+2bc+2dc+2d).AX=\begin{pmatrix}1&1\\2&2\end{pmatrix}\begin{pmatrix}a&b\\c&d\end{pmatrix}=\begin{pmatrix}a+c&b+d\\2a+2c&2b+2d\end{pmatrix},\qquad XA=\begin{pmatrix}a&b\\c&d\end{pmatrix}\begin{pmatrix}1&1\\2&2\end{pmatrix}=\begin{pmatrix}a+2b&a+2b\\c+2d&c+2d\end{pmatrix}. The condition AX=XAAX=XA is the homogeneous linear system (one equation for each entry) {a+c=a+2bb+d=a+2b2a+2c=c+2d2b+2d=c+2d  ⟺  {c=2bd=a+b2a+c−2d=0c=2b.\begin{cases}a+c=a+2b\\ b+d=a+2b\\ 2a+2c=c+2d\\ 2b+2d=c+2d\end{cases}\iff\begin{cases}c=2b\\ d=a+b\\ 2a+c-2d=0\\ c=2b.\end{cases} The third equation is a consequence of the first two: 2a+2b−2(a+b)=02a+2b-2(a+b)=0. So only two independent equations remain, and the solution set of a homogeneous system is a subspace (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 →, solution sets of homogeneous systems). Directly, CC is also closed under sums and multiples: if AX=XAAX=XA and AY=YAAY=YA then A(X+Y)=(X+Y)AA(X+Y)=(X+Y)A and A(rX)=(rX)AA(rX)=(rX)A, and 0∈C0\in C.

The free variables are a,ba,b and X=(ab2ba+b)=a(1001)+b(0121).X=\begin{pmatrix}a&b\\2b&a+b\end{pmatrix}=a\begin{pmatrix}1&0\\0&1\end{pmatrix}+b\begin{pmatrix}0&1\\2&1\end{pmatrix}. So II and BB generate CC; they are independent (not proportional), hence a basis and dim⁡C=2\dim C=2 (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: B=A−IB=A-I, so AB=A2−A=BAAB=A^2-A=BA, and AI=IAAI=IA. Typical mistake: writing the system with only two of the four entries, or forgetting that a redundant equation does not lower the dimension further.

(b) A matrix is symmetric when b=cb=c: (xyyz)=xE11+y(E12+E21)+zE22\begin{pmatrix}x&y\\y&z\end{pmatrix}=xE_{11}+y(E_{12}+E_{21})+zE_{22}. The three matrices generate SS and are independent, so dim⁡S=3\dim S=3.

For C∩SC\cap S impose both conditions: X∈CX\in C gives c=2bc=2b, and symmetry gives c=bc=b. Hence b=2bb=2b, so b=0b=0, c=0c=0, d=ad=a: X=aIX=aI. Thus C∩S=⟨I⟩C\cap S=\langle I\rangle with basis II and dimension 11.

By 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 → (Grassmann), dim⁡(C+S)=dim⁡C+dim⁡S−dim⁡(C∩S)=2+3−1=4=dim⁡V,\dim(C+S)=\dim C+\dim S-\dim(C\cap S)=2+3-1=4=\dim V, and a subspace of VV of dimension dim⁡V\dim V is VV itself: C+S=VC+S=V. The sum is not direct, because C∩S≠{0}C\cap S\ne\{0\} (a sum is direct exactly when the intersection is {0}\{0\}, equivalently when the dimensions add up: 2+3≠42+3\ne4). Typical mistake: concluding "direct" because the sum is the whole space.

(c) Start from I,BI,B and add two standard matrices; take E11,E12E_{11},E_{12}. They form a basis of VV if and only if they are independent (four independent vectors in a 44-dimensional space). Suppose xI+yB+zE11+wE12=0xI+yB+zE_{11}+wE_{12}=0, i.e. (x+zy+w2yx+y)=(0000).\begin{pmatrix}x+z&y+w\\2y&x+y\end{pmatrix}=\begin{pmatrix}0&0\\0&0\end{pmatrix}. Entry (2,1)(2,1) gives y=0y=0; entry (2,2)(2,2) gives x=0x=0; entry (1,1)(1,1) gives z=0z=0; entry (1,2)(1,2) gives w=0w=0. So only the trivial combination vanishes and B=(I,B,E11,E12)\mathcal{B}=(I,B,E_{11},E_{12}) is a basis of VV. (Other choices work too, e.g. E11,E22E_{11},E_{22} instead; the point is to check independence, not to guess.)

(d) Solve M=xI+yB+zE11+wE12M=xI+yB+zE_{11}+wE_{12} entry by entry, using the same expression as in (c): x+z=2,y+w=3,2y=4,x+y=5.x+z=2,\qquad y+w=3,\qquad 2y=4,\qquad x+y=5. From the third equation y=2y=2; then x=3x=3, z=2−3=−1z=2-3=-1, w=3−2=1w=3-2=1. Coordinates (3,2,−1,1)(3,2,-1,1). Check: 3I+2B−E11+E12=(3−12+143+2)=(2345)3I+2B-E_{11}+E_{12}=\begin{pmatrix}3-1&2+1\\4&3+2\end{pmatrix}=\begin{pmatrix}2&3\\4&5\end{pmatrix}.

M∈CM\in C would need c=2bc=2b in the form found in (a), but here c=4c=4 and 2b=62b=6: M∉CM\notin C. Equivalently the coordinates on E11,E12E_{11},E_{12} are not both 00.

Exercise 2 (points 8)

Let P3P_3 and P2P_2 be the real vector spaces of polynomials of degree at most 33 and at most 22 respectively. Consider the maps f:P3→P2,f(p)(x)=p′(x)−p′(1),g:P2→R2,g(q)=(q(1), q(−1)).f:P_3\to P_2,\quad f(p)(x)=p'(x)-p'(1),\qquad g:P_2\to\mathbb{R}^2,\quad g(q)=\bigl(q(1),\,q(-1)\bigr). (a) Show that ff is linear and write its matrix with respect to the bases (1,x,x2,x3)(1,x,x^2,x^3) of P3P_3 and (1,x,x2)(1,x,x^2) of P2P_2. (2 points)

(b) Find a basis of ker⁡f\ker f and of im⁡f\operatorname{im} f, and check the rank-nullity theorem. Is ff injective? Is it surjective? (2 points)

(c) Write the matrix of gg with respect to (1,x,x2)(1,x,x^2) and the standard basis of R2\mathbb{R}^2, and the matrix of g∘fg\circ f. Find the kernel and the image of g∘fg\circ f. (2.5 points)

(d) Find all p∈P3p\in P_3 with f(p)=x2−1f(p)=x^2-1. Is there a p∈P3p\in P_3 with f(p)=xf(p)=x? (1.5 points)

Show the result

(a) (00−2−300200003)\begin{pmatrix}0&0&-2&-3\\0&0&2&0\\0&0&0&3\end{pmatrix}.

(b) ker⁡f=⟨1, x⟩\ker f=\langle 1,\,x\rangle (dimension 22); im⁡f={q∈P2∣q(1)=0}=⟨x−1, x2−1⟩\operatorname{im} f=\{q\in P_2\mid q(1)=0\}=\langle x-1,\,x^2-1\rangle (dimension 22); 2+2=4=dim⁡P32+2=4=\dim P_3. Neither injective nor surjective.

(c) G=(1111−11)G=\begin{pmatrix}1&1&1\\1&-1&1\end{pmatrix}, GF=(000000−40)GF=\begin{pmatrix}0&0&0&0\\0&0&-4&0\end{pmatrix}, i.e. (g∘f)(a0+a1x+a2x2+a3x3)=(0,−4a2)(g\circ f)(a_0+a_1x+a_2x^2+a_3x^3)=(0,-4a_2). ker⁡(g∘f)=⟨1,x,x3⟩\ker(g\circ f)=\langle1,x,x^3\rangle (dimension 33), im⁡(g∘f)=⟨(0,1)⟩\operatorname{im}(g\circ f)=\langle(0,1)\rangle (dimension 11).

(d) f(p)=x2−1f(p)=x^2-1 exactly for p=13x3+a1x+a0p=\tfrac13x^3+a_1x+a_0 with a0,a1∈Ra_0,a_1\in\mathbb{R}. No pp has f(p)=xf(p)=x.

Show the full solution

(a) Linearity. Derivative and evaluation at a point are linear (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 →, example of the derivative): (p+q)′=p′+q′(p+q)'=p'+q', (rp)′=rp′(rp)'=rp', and (p+q)′(1)=p′(1)+q′(1)(p+q)'(1)=p'(1)+q'(1), (rp)′(1)=rp′(1)(rp)'(1)=rp'(1). Hence f(p+q)=f(p)+f(q)f(p+q)=f(p)+f(q) and f(rp)=rf(p)f(rp)=rf(p). Note also that f(p)f(p) really lies in P2P_2 since p′p' has degree at most 22 and p′(1)p'(1) is a constant.

Matrix. The columns are the coordinates of ff of the basis vectors (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 →):

  • f(1)=0−0=0f(1)=0-0=0;
  • f(x)=1−1=0f(x)=1-1=0;
  • f(x2)=2x−2f(x^2)=2x-2, coordinates (−2,2,0)(-2,2,0);
  • f(x3)=3x2−3f(x^3)=3x^2-3, coordinates (−3,0,3)(-3,0,3).

So F=(00−2−300200003).F=\begin{pmatrix}0&0&-2&-3\\0&0&2&0\\0&0&0&3\end{pmatrix}. In general for p=a0+a1x+a2x2+a3x3p=a_0+a_1x+a_2x^2+a_3x^3 one has p′=a1+2a2x+3a3x2p'=a_1+2a_2x+3a_3x^2 and f(p)=(−2a2−3a3)+2a2x+3a3x2f(p)=(-2a_2-3a_3)+2a_2x+3a_3x^2, which is F(a0,a1,a2,a3)TF(a_0,a_1,a_2,a_3)^T.

(b) Kernel. F a=0F\,a=0 gives 3a3=03a_3=0, 2a2=02a_2=0, and then −2a2−3a3=0-2a_2-3a_3=0 holds automatically: a2=a3=0a_2=a_3=0 with a0,a1a_0,a_1 free. So ker⁡f={a0+a1x}\ker f=\{a_0+a_1x\} with basis 1, x1,\ x (the polynomials whose derivative is constant, as expected), dimension 22.

Image. The image is generated by the columns of FF (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 →, image of a matrix): (−2,2,0)↔2x−2(-2,2,0)\leftrightarrow 2x-2 and (−3,0,3)↔3x2−3(-3,0,3)\leftrightarrow 3x^2-3; the first two columns are zero. These two are independent, so a basis of im⁡f\operatorname{im} f is x−1, x2−1x-1,\ x^2-1 (dividing by 22 and 33) and dim⁡im⁡f=2=rk⁡F\dim\operatorname{im} f=2=\operatorname{rk}F. Geometrically im⁡f={q∈P2∣q(1)=0}\operatorname{im} f=\{q\in P_2\mid q(1)=0\}: indeed f(p)(1)=p′(1)−p′(1)=0f(p)(1)=p'(1)-p'(1)=0, and x−1,x2−1x-1,x^2-1 span this 22-dimensional space.

Rank-nullity: dim⁡ker⁡f+dim⁡im⁡f=2+2=4=dim⁡P3\dim\ker f+\dim\operatorname{im} f=2+2=4=\dim P_3. Since ker⁡f≠{0}\ker f\ne\{0\}, ff is not injective; since dim⁡im⁡f=2<3=dim⁡P2\dim\operatorname{im} f=2<3=\dim P_2, it is not surjective.

(c) g(1)=(1,1)g(1)=(1,1), g(x)=(1,−1)g(x)=(1,-1), g(x2)=(1,1)g(x^2)=(1,1), so G=(1111−11).G=\begin{pmatrix}1&1&1\\1&-1&1\end{pmatrix}. The matrix of the composition is the product of the matrices, in the order "first ff, then gg" (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 →): GF=(1111−11)(00−2−300200003)=(000000−40).GF=\begin{pmatrix}1&1&1\\1&-1&1\end{pmatrix}\begin{pmatrix}0&0&-2&-3\\0&0&2&0\\0&0&0&3\end{pmatrix}=\begin{pmatrix}0&0&0&0\\0&0&-4&0\end{pmatrix}. (Column 3: (−2+2+0, −2−2+0)=(0,−4)(-2+2+0,\ -2-2+0)=(0,-4); column 4: (−3+0+3, −3−0+3)=(0,0)(-3+0+3,\ -3-0+3)=(0,0).) So (g∘f)(p)=(0,−4a2)(g\circ f)(p)=(0,-4a_2). A direct check: f(p)=(−2a2−3a3)+2a2x+3a3x2f(p)=(-2a_2-3a_3)+2a_2x+3a_3x^2 at x=1x=1 gives 00, at x=−1x=-1 gives −2a2−3a3−2a2+3a3=−4a2-2a_2-3a_3-2a_2+3a_3=-4a_2.

Kernel: a2=0a_2=0, so ker⁡(g∘f)={a0+a1x+a3x3}\ker(g\circ f)=\{a_0+a_1x+a_3x^3\}, basis 1,x,x31,x,x^3, dimension 33. Image: all (0,−4a2)(0,-4a_2), i.e. ⟨(0,1)⟩\langle(0,1)\rangle, dimension 11. Rank-nullity again: 3+1=43+1=4. Note ker⁡f⊊ker⁡(g∘f)\ker f\subsetneq\ker(g\circ f): the composition loses more information than ff, because gg is not injective (g(x2−1)=0g(x^2-1)=0, and x2−1∈im⁡fx^2-1\in\operatorname{im} f). Typical mistake: multiplying the matrices in the wrong order (the product FGFG is not even defined here).

(d) We need Fa=(−1,0,1)TF a=(-1,0,1)^T (the coordinates of x2−1x^2-1): −2a2−3a3=−1,2a2=0,3a3=1.-2a_2-3a_3=-1,\qquad 2a_2=0,\qquad 3a_3=1. So a3=13a_3=\tfrac13, a2=0a_2=0, and the first equation is satisfied: 0−1=−10-1=-1. The coefficients a0,a1a_0,a_1 are free. The set of solutions is p=13x3+a1x+a0p=\tfrac13x^3+a_1x+a_0: one particular solution 13x3\tfrac13x^3 plus the kernel ker⁡f=⟨1,x⟩\ker f=\langle1,x\rangle (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 →, structure of the solutions of f(p)=qf(p)=q; it is a 22-dimensional affine set). Check: p′=x2+a1p'=x^2+a_1, p′(1)=1+a1p'(1)=1+a_1, f(p)=x2−1f(p)=x^2-1.

For f(p)=xf(p)=x, i.e. Fa=(0,1,0)TF a=(0,1,0)^T: 3a3=03a_3=0, 2a2=12a_2=1, and then −2a2−3a3=−1≠0-2a_2-3a_3=-1\ne0. Contradiction, so no such pp exists. A quicker reason: every element of im⁡f\operatorname{im} f vanishes at x=1x=1, while the polynomial xx takes the value 11 there, so x∉im⁡fx\notin\operatorname{im} f.

Exercise 3 (points 8)

For k∈Rk\in\mathbb{R} consider the matrix Mk=(2100030000k10001).M_k=\begin{pmatrix}2&1&0&0\\0&3&0&0\\0&0&k&1\\0&0&0&1\end{pmatrix}. (a) Compute the characteristic polynomial of MkM_k and the eigenvalues, with their algebraic multiplicities, for each kk. (2 points)

(b) For which values of kk is MkM_k diagonalizable? Justify with the dimension of the eigenspaces. (3 points)

(c) For k=2k=2 find the eigenspaces, an invertible matrix QQ and a diagonal matrix DD with Q−1M2Q=DQ^{-1}M_2Q=D. (1.5 points)

(d) For k=2k=2 compute M2 nM_2^{\,n} for every integer n≥1n\ge1. (1.5 points)

Show the result

(a) pMk(λ)=(2−λ)(3−λ)(k−λ)(1−λ)p_{M_k}(\lambda)=(2-\lambda)(3-\lambda)(k-\lambda)(1-\lambda); eigenvalues 2,3,1,k2,3,1,k. For k∉{1,2,3}k\notin\{1,2,3\} all four are distinct (multiplicity 11); for k=1,2,3k=1,2,3 the value kk is a double eigenvalue and the other two have multiplicity 11.

(b) MkM_k is diagonalizable exactly for k≠1k\neq1. For k=1k=1: dim⁡E1=1<2\dim E_1=1<2.

(c) E2=⟨(1,0,0,0),(0,0,1,0)⟩E_2=\langle(1,0,0,0),(0,0,1,0)\rangle, E3=⟨(1,1,0,0)⟩E_3=\langle(1,1,0,0)\rangle, E1=⟨(0,0,1,−1)⟩E_1=\langle(0,0,1,-1)\rangle. Q=(101000100101000−1)Q=\begin{pmatrix}1&0&1&0\\0&0&1&0\\0&1&0&1\\0&0&0&-1\end{pmatrix}, D=diag(2,2,3,1)D=\mathrm{diag}(2,2,3,1).

(d) M2 n=(2n3n−2n0003n00002n2n−10001)M_2^{\,n}=\begin{pmatrix}2^n&3^n-2^n&0&0\\0&3^n&0&0\\0&0&2^n&2^n-1\\0&0&0&1\end{pmatrix}.

Show the full solution

(a) The matrix is block diagonal with the two triangular blocks A1=(2103)A_1=\begin{pmatrix}2&1\\0&3\end{pmatrix} and Ck=(k101)C_k=\begin{pmatrix}k&1\\0&1\end{pmatrix}, so Mk−λIM_k-\lambda I is block diagonal too and its determinant is the product of the determinants of the blocks (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 →; for triangular matrices the determinant is the product of the diagonal entries): pMk(λ)=det⁡(A1−λI)det⁡(Ck−λI)=(2−λ)(3−λ)⋅(k−λ)(1−λ).p_{M_k}(\lambda)=\det(A_1-\lambda I)\det(C_k-\lambda I)=(2-\lambda)(3-\lambda)\cdot(k-\lambda)(1-\lambda). The eigenvalues are the roots (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 →): 2,3,k,12,3,k,1. They are four distinct numbers unless k∈{1,2,3}k\in\{1,2,3\}, and in those three cases kk coincides with one of the other roots and that eigenvalue has algebraic multiplicity 22.

(b) If k∉{1,2,3}k\notin\{1,2,3\} there are 44 distinct eigenvalues, so MkM_k is diagonalizable (corollary in 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 →). For k∈{1,2,3}k\in\{1,2,3\} only the double eigenvalue needs a check: it must have dim⁡E=2\dim E=2 (it is always at least 11 and at most the multiplicity), and dim⁡E=4−rk⁡(Mk−λI)\dim E=4-\operatorname{rk}(M_k-\lambda I).

  • k=1k=1, λ=1\lambda=1: M1−I=(1100020000010000)M_1-I=\begin{pmatrix}1&1&0&0\\0&2&0&0\\0&0&0&1\\0&0&0&0\end{pmatrix}. The rows (1,1,0,0),(0,2,0,0),(0,0,0,1)(1,1,0,0),(0,2,0,0),(0,0,0,1) are independent, the fourth is zero: rank 33, so dim⁡E1=1<2\dim E_1=1<2. Not diagonalizable.
  • k=2k=2, λ=2\lambda=2: M2−2I=(010001000001000−1)M_2-2I=\begin{pmatrix}0&1&0&0\\0&1&0&0\\0&0&0&1\\0&0&0&-1\end{pmatrix}: the rows span only ⟨(0,1,0,0),(0,0,0,1)⟩\langle(0,1,0,0),(0,0,0,1)\rangle, rank 22, so dim⁡E2=2\dim E_2=2: the dimensions 2+1+1=42+1+1=4 add up, diagonalizable.
  • k=3k=3, λ=3\lambda=3: M3−3I=(−110000000001000−2)M_3-3I=\begin{pmatrix}-1&1&0&0\\0&0&0&0\\0&0&0&1\\0&0&0&-2\end{pmatrix}: rank 22, dim⁡E3=2\dim E_3=2, diagonalizable.

Conclusion: MkM_k is diagonalizable for every k≠1k\ne1 and not diagonalizable for k=1k=1. Typical mistake: saying that a repeated eigenvalue always breaks diagonalizability (here k=2k=2 and k=3k=3 show it does not), or, conversely, never checking the eigenspace of the repeated one.

(c) Take k=2k=2, so M2=(2100030000210001)M_2=\begin{pmatrix}2&1&0&0\\0&3&0&0\\0&0&2&1\\0&0&0&1\end{pmatrix}.

  • λ=2\lambda=2: (M2−2I)v=0(M_2-2I)v=0 is v2=0v_2=0, v4=0v_4=0 (from the matrix above), v1,v3v_1,v_3 free: E2=⟨e1,e3⟩E_2=\langle e_1,e_3\rangle.
  • λ=3\lambda=3: M2−3I=(−1100000000−11000−2)M_2-3I=\begin{pmatrix}-1&1&0&0\\0&0&0&0\\0&0&-1&1\\0&0&0&-2\end{pmatrix} gives v4=0v_4=0, then v3=0v_3=0 and v1=v2v_1=v_2: E3=⟨(1,1,0,0)⟩E_3=\langle(1,1,0,0)\rangle.
  • λ=1\lambda=1: M2−I=(1100020000110000)M_2-I=\begin{pmatrix}1&1&0&0\\0&2&0&0\\0&0&1&1\\0&0&0&0\end{pmatrix} gives v2=0v_2=0, v1=0v_1=0, v3=−v4v_3=-v_4: E1=⟨(0,0,1,−1)⟩E_1=\langle(0,0,1,-1)\rangle.

Dimensions 2+1+1=42+1+1=4. Put the eigenvectors as columns, in the order e1,e3,(1,1,0,0),(0,0,1,−1)e_1,e_3,(1,1,0,0),(0,0,1,-1) (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 →, Method 1): Q=(101000100101000−1),D=(2000020000300001),Q−1=(1−10000110100000−1).Q=\begin{pmatrix}1&0&1&0\\0&0&1&0\\0&1&0&1\\0&0&0&-1\end{pmatrix},\qquad D=\begin{pmatrix}2&0&0&0\\0&2&0&0\\0&0&3&0\\0&0&0&1\end{pmatrix},\qquad Q^{-1}=\begin{pmatrix}1&-1&0&0\\0&0&1&1\\0&1&0&0\\0&0&0&-1\end{pmatrix}. Check on one column: M2(1,1,0,0)T=(2+1, 3, 0, 0)T=3 (1,1,0,0)TM_2(1,1,0,0)^T=(2+1,\,3,\,0,\,0)^T=3\,(1,1,0,0)^T. The columns of DD must follow the order of the columns of QQ.

(d) From Q−1M2Q=DQ^{-1}M_2Q=D we get M2=QDQ−1M_2=QDQ^{-1} and M2 n=QDnQ−1M_2^{\,n}=QD^nQ^{-1} (the factors Q−1QQ^{-1}Q cancel; 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 →, why diagonalizing matters). With Dn=diag(2n,2n,3n,1)D^n=\mathrm{diag}(2^n,2^n,3^n,1): QDn=(2n03n0003n002n01000−1),M2 n=QDnQ−1=(2n3n−2n0003n00002n2n−10001).QD^n=\begin{pmatrix}2^n&0&3^n&0\\0&0&3^n&0\\0&2^n&0&1\\0&0&0&-1\end{pmatrix},\qquad M_2^{\,n}=QD^nQ^{-1}=\begin{pmatrix}2^n&3^n-2^n&0&0\\0&3^n&0&0\\0&0&2^n&2^n-1\\0&0&0&1\end{pmatrix}. Checks: n=1n=1 returns M2M_2; n=0n=0 would give the identity; for n=2n=2 the entry (1,2)(1,2) is 9−4=59-4=5, and indeed (M22)12=2⋅1+1⋅3=5(M_2^2)_{12}=2\cdot1+1\cdot3=5. The matrix is block diagonal like M2M_2, as it must be, and each block is the power of the corresponding 2×22\times2 block.

Exercise 4 (points 8)

In R3\mathbb{R}^3, with the standard scalar product, consider the lines r: {x=ty=0z=3−t (t∈R),s: {2x+y=7z=4.r:\ \begin{cases}x=t\\y=0\\z=3-t\end{cases}\ (t\in\mathbb{R}),\qquad\qquad s:\ \begin{cases}2x+y=7\\z=4.\end{cases} (a) Show that rr and ss are skew. (2 points)

(b) Find the distance d(r,s)d(r,s), the points x∈rx\in r and x′∈sx'\in s that realize it, and parametric equations of the line through xx and x′x'. (3 points)

(c) Find a Cartesian equation of the plane π\pi through R=(1,0,1)R=(1,0,1) parallel to both rr and ss. (1.5 points)

(d) Let A=(4,1,2)A=(4,1,2). Find the orthogonal projection of AA on π\pi, the distance d(A,π)d(A,\pi) and the point A′A' symmetric to AA with respect to π\pi. (1.5 points)

Show the result

(a) r=(0,0,3)+L((1,0,−1))r=(0,0,3)+L\bigl((1,0,-1)\bigr), s=(2,3,4)+L((1,−2,0))s=(2,3,4)+L\bigl((1,-2,0)\bigr): directions independent, no common point.

(b) d(r,s)=3d(r,s)=3, attained at x=(1,0,2)x=(1,0,2) (for t=1t=1) and x′=(3,1,4)x'=(3,1,4); the line through them is (1+2μ, μ, 2+2μ)(1+2\mu,\ \mu,\ 2+2\mu).

(c) π: 2x+y+2z=4\pi:\ 2x+y+2z=4.

(d) Projection (2,0,0)(2,0,0), d(A,π)=3d(A,\pi)=3, A′=(0,−1,−2)A'=(0,-1,-2).

Show the full solution

(a) Parametric form of ss. Put x=2+λx=2+\lambda; the first equation gives y=7−2x=3−2λy=7-2x=3-2\lambda, and z=4z=4: s={(2+λ, 3−2λ, 4)}=(2,3,4)+L((1,−2,0))s=\{(2+\lambda,\ 3-2\lambda,\ 4)\}=(2,3,4)+L\bigl((1,-2,0)\bigr) (conversion from Cartesian to parametric form, 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 direction vectors are u=(1,0,−1)u=(1,0,-1) for rr and w=(1,−2,0)w=(1,-2,0) for ss. They are not proportional (look at the second component), so the lines are not parallel.

No common point. A point of rr on ss needs z=3−t=4z=3-t=4, so t=−1t=-1 and the point is (−1,0,4)(-1,0,4); but then 2x+y=−2≠72x+y=-2\ne7. So r∩s=∅r\cap s=\emptyset. Independent directions and empty intersection mean that rr and ss are skew (definition of skew in Section 3 of the same note). Typical mistake: stopping after "not parallel" (two non-parallel lines in space may still meet), or after "no intersection" (parallel lines do not meet either).

(b) Use the distance theorem (Section 4 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 →), criterion (4): x∈rx\in r and x′∈sx'\in s realize the minimal distance exactly when x−x′x-x' is orthogonal to uu and ww. General points: x=(t,0,3−t)x=(t,0,3-t), x′=(2+λ, 3−2λ, 4)x'=(2+\lambda,\,3-2\lambda,\,4), so x−x′=(t−2−λ, 2λ−3, −1−t).x-x'=(t-2-\lambda,\ 2\lambda-3,\ -1-t). ⟨x−x′,u⟩=(t−2−λ)+(1+t)=2t−λ−1=0,\langle x-x',u\rangle=(t-2-\lambda)+(1+t)=2t-\lambda-1=0, ⟨x−x′,w⟩=(t−2−λ)−2(2λ−3)=t+4−5λ=0.\langle x-x',w\rangle=(t-2-\lambda)-2(2\lambda-3)=t+4-5\lambda=0. The first gives λ=2t−1\lambda=2t-1; into the second: t+4−10t+5=0t+4-10t+5=0, so t=1t=1 and λ=1\lambda=1. Then x=(1,0,2)x=(1,0,2), x′=(3,1,4)x'=(3,1,4), x−x′=(−2,−1,−2)x-x'=(-2,-1,-2) and d(r,s)=∥x−x′∥=4+1+4=3.d(r,s)=\lVert x-x'\rVert=\sqrt{4+1+4}=3. Cross-check with the formula m=pZ⊥(d)m=p_{Z^\perp}(d), where d=P−Q=(0,0,3)−(2,3,4)=(−2,−3,−1)d=P-Q=(0,0,3)-(2,3,4)=(-2,-3,-1) and Z=L(u,w)Z=L(u,w). A generator of Z⊥Z^\perp solves ⟨y,u⟩=0\langle y,u\rangle=0, ⟨y,w⟩=0\langle y,w\rangle=0, i.e. y1=y3y_1=y_3 and y1=2y2y_1=2y_2: n=(2,1,2)n=(2,1,2) (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). Then m=⟨d,n⟩⟨n,n⟩ n=−4−3−29 n=−n=(−2,−1,−2)=x−x′,m=\frac{\langle d,n\rangle}{\langle n,n\rangle}\,n=\frac{-4-3-2}{9}\,n=-n=(-2,-1,-2)=x-x', the same vector, with length 33.

The common perpendicular passes through xx with direction x′−x=(2,1,2)=nx'-x=(2,1,2)=n: (1+2μ, μ, 2+2μ)(1+2\mu,\ \mu,\ 2+2\mu), μ∈R\mu\in\mathbb{R}. It meets rr at μ=0\mu=0 and ss at μ=1\mu=1.

(c) The plane must have direction W=L(u,w)=ZW=L(u,w)=Z, so its normal vector is a generator of Z⊥Z^\perp, which we already know: n=(2,1,2)n=(2,1,2) (check: ⟨n,u⟩=2−2=0\langle n,u\rangle=2-2=0, ⟨n,w⟩=2−2=0\langle n,w\rangle=2-2=0). By the Proposition on hyperplanes in Section 3.2, π={⟨x,n⟩=c}\pi=\{\langle x,n\rangle=c\}, and R∈πR\in\pi fixes c=2⋅1+0+2⋅1=4c=2\cdot1+0+2\cdot1=4: π: 2x+y+2z=4.\pi:\ 2x+y+2z=4. Since π=R+L(u,w)\pi=R+L(u,w) it is parallel to both lines, and it is the only such plane through RR because the lines are skew (so u,wu,w are independent and determine the direction of the plane). Neither line lies in π\pi: the point (0,0,3)(0,0,3) of rr gives 2⋅0+0+2⋅3=6≠42\cdot0+0+2\cdot3=6\ne4, the point (2,3,4)(2,3,4) of ss gives 15≠415\ne4.

(d) The projection of AA on π\pi is the foot of the perpendicular from AA: A−τnA-\tau n with τ\tau chosen so that the point lies on π\pi. We have ⟨n,A⟩=8+1+4=13\langle n,A\rangle=8+1+4=13 and ⟨n,n⟩=9\langle n,n\rangle=9, so τ=⟨n,A⟩−4⟨n,n⟩=13−49=1,H=A−n=(4,1,2)−(2,1,2)=(2,0,0).\tau=\frac{\langle n,A\rangle-4}{\langle n,n\rangle}=\frac{13-4}{9}=1,\qquad H=A-n=(4,1,2)-(2,1,2)=(2,0,0). Check: 2⋅2+0+0=42\cdot2+0+0=4, so H∈πH\in\pi. The distance is d(A,π)=∥A−H∥=∥n∥=3=∣13−4∣∥n∥d(A,\pi)=\lVert A-H\rVert=\lVert n\rVert=3=\frac{|13-4|}{\lVert n\rVert} (the Hesse-form distance of the hyperplane proposition, applied after translating). The symmetric point is the reflection through the foot: A′=2H−A=(4,0,0)−(4,1,2)=(0,−1,−2)A'=2H-A=(4,0,0)-(4,1,2)=(0,-1,-2). Checks: the midpoint of A,A′A,A' is H∈πH\in\pi, and A−A′=(4,2,4)=2nA-A'=(4,2,4)=2n is orthogonal to π\pi; also ⟨n,A′⟩=−1−4=−5\langle n,A'\rangle=-1-4=-5, which is as far below 44 as 1313 is above it (13−4=913-4=9, 4−(−5)=94-(-5)=9). Typical mistake: using 2H−A2H-A with HH taken as the projection onto the normal direction instead of onto the plane, or forgetting the constant cc when computing τ\tau.

Self-assessment grid
exercise points what you need for full marks typical mistakes
1 8 (a) the commuting condition written entry by entry and solved, basis I,BI,B, dimension 22 (2); (b) dim⁡S=3\dim S=3, C∩S=⟨I⟩C\cap S=\langle I\rangle, dim⁡(C+S)=4\dim(C+S)=4 by the dimension formula, sum not direct (3); (c) a basis of VV containing the basis of CC, with independence checked (1.5); (d) coordinates (3,2,−1,1)(3,2,-1,1) and M∉CM\notin C (1.5) writing only two of the four entry equations; thinking the sum is direct because it equals VV; adding vectors to the basis without checking independence
2 8 (a) linearity and the matrix with columns f(1),…,f(x3)f(1),\dots,f(x^3) (2); (b) kernel ⟨1,x⟩\langle1,x\rangle, image ⟨x−1,x2−1⟩\langle x-1,x^2-1\rangle, rank-nullity, neither injective nor surjective (2); (c) GG, the product GFGF in the right order, kernel of dimension 33 and image of dimension 11 (2.5); (d) the solution set 13x3+ker⁡f\tfrac13x^3+\ker f and the reason why xx is not in the image (1.5) wrong order of the product; reading the rows of FF instead of the columns for the image; solving f(p)=x2−1f(p)=x^2-1 and forgetting the free part a0+a1xa_0+a_1x
3 8 (a) factorization of the characteristic polynomial through the blocks (2); (b) rank of Mk−λIM_k-\lambda I for k=1,2,3k=1,2,3, conclusion diagonalizable iff k≠1k\ne1 (3); (c) three eigenspaces, QQ and DD with matching column order (1.5); (d) M2n=QDnQ−1M_2^n=QD^nQ^{-1} with the explicit matrix (1.5) saying that repeated eigenvalues always prevent diagonalization; forgetting to treat k=1,2,3k=1,2,3 separately; DD in a different order from the columns of QQ
4 8 (a) both conditions: independent directions and empty intersection (2); (b) orthogonality of x−x′x-x' to both directions, t=λ=1t=\lambda=1, d=3d=3, common perpendicular (3); (c) normal vector (2,1,2)(2,1,2) and constant 44 (1.5); (d) foot (2,0,0)(2,0,0), distance 33, symmetric point (0,−1,−2)(0,-1,-2) (1.5) skew checked with only one of the two conditions; sign errors in x−x′x-x'; forgetting the constant of the plane when projecting; A′=H−AA'=H-A instead of 2H−A2H-A