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 , , . Let be the linear map such that , is an eigenvector of eigenvalue , and .
(a) Write the matrix of with respect to the basis (both in the domain and in the codomain).
(b) Write the matrix of with respect to the standard basis of (both in the domain and in the codomain).
(c) Find bases of the kernel and of the image of , using first the matrix and then the matrix . How come that using or one finds different results for the bases of and , although both matrices correspond to the same function ?
(d) Let . Using the matrix , determine for which value of one has . For that value of find all the vectors such that .
Show the result
(a) .
(b) .
(c) With : has basis the coordinate vector (that is the vector ), and has basis the coordinate vectors and (the vectors and ). With : has basis , and has basis and . The results differ only in appearance: gives coordinates with respect to , gives coordinates with respect to the standard basis. , .
(d) ; the set of solutions is .
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 , , as a combination of .
- . Componentwise this is a linear system: second component ; first component ; third component . From and we get , . Check: . First column: .
- , because is an eigenvector of eigenvalue . Second column: .
- : second component ; first , so ; third . Again , . Check: . Third column: .
(b) Now we need . We know only on , so we write the standard vectors using the 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).
- . Hence .
- , so and .
- , so and .
The columns of are these three images: Check by change of basis: with (columns) one must have ; this gives the same matrix.
(c) Using . Row reduction: subtracting twice the first row from the third gives , so . 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 →) and . The system reads , , so , : a basis of the kernel is (taking ). A basis of the image is given by the columns of in the pivot positions, columns 1 and 2: and .
Warning. These are coordinates with respect to , not vectors of yet. The kernel vector is . The image vectors are and .
Using . Row reduction: add twice the first row to the second and five times the first to the third: , then subtract times the second row from the third: . So , again , . The system gives and : a basis of the kernel is , 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 : and .
Why the results look different. A matrix always works with coordinates, and coordinates depend on the basis. The kernel vector found with and found with are the same vector of written in two bases. The same happens for the image: the two bases found with are the vectors and , and the two obtained from are and ; these are two different bases of the same plane, because for example and . The typical mistake is to forget to convert the coordinates found with back to the standard basis.
(d) We study the system . 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 has the same rank as , which is . Row reduction of the augmented matrix: The last row says , so the rank is only for (for the rank is and there is no solution). Thus .
For the system is , . The second equation gives , and then . With free: This is a particular solution plus the kernel , 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: .
Exercise 2 (points not stated)
Consider the matrix
(a) Determine the value of for which is not invertible.
(b) From now on set for the rest of the exercise. Determine the value of for which the vector is an eigenvector of . What is the corresponding eigenvalue?
(c) Determine all the eigenvalues of and decide whether is similar to a diagonal matrix.
(d) Say whether is similar to the matrix (the answer must be justified).
Show the result
(a) (indeed ).
(b) , with eigenvalue .
(c) Characteristic polynomial ; eigenvalues (algebraic multiplicity , geometric multiplicity ) and (multiplicities and ). is not diagonalizable, so it is not similar to a diagonal matrix.
(d) No: but (equivalently, the eigenvalues of are , not ).
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 as a function of . Expanding along the first row: Then . So is not invertible exactly for . 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 the matrix is . 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 →), is an eigenvector if for some . Here always (its first entry is ). Compute This gives the system , , . The second equation gives ; the first gives ; the third becomes , true. Hence is an eigenvector with eigenvalue , and is the only value that works.
(c) Characteristic polynomial. We compute (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 replace the first column by (first column minus second column): the first column becomes . Then replace the second row by (second row plus first row): the matrix becomes Expanding along the first column: (Expanding directly along the first row gives , the same polynomial. We also knew from (b) that is a root, which is a quick check.)
The eigenvalues are the roots: with algebraic multiplicity , and with .
Diagonalizability. is diagonalizable if and only if, for each eigenvalue, geometric and algebraic multiplicities coincide. For we always have , so . The only thing to check is : Rank , hence . The matrix is not diagonalizable: it is not similar to any diagonal matrix. (The eigenspace is generated by , the vector found in (b); for the eigenspace is generated by : indeed reduces to , so , .) Typical mistake: concluding that is diagonalizable because the eigenvalues are real, or because 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 are the squares of those of : . They differ from , so and are not similar. The same conclusion from the determinant: (from (a): ) while by Binet's theorem . We checked explicitly: its trace is as expected.
Warning: the converse of "similar implies same characteristic polynomial" is false. For example and 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 , with the usual scalar product, let be the subspace spanned by the vectors , .
(a) Find an orthogonal basis of .
(b) Find a basis of .
(c) Find the orthogonal projection of onto .
(d) Let . Say whether there exists a subspace such that the orthogonal projection of onto is the vector .
Show the result
(a) For example and .
(b) For example and , or, with integer entries, and .
(c) .
(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 and with chosen so that . We have and , so Check: . The vectors and are orthogonal and span the same plane (they are non-zero and orthogonal, hence independent). If an orthonormal basis were asked one would divide by the norms and , but here only orthogonality is required.
(b) A vector lies in if and only if it is orthogonal to a basis of (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 and : The matrix has rank , so . Solve for in terms of the free variables : , then , so . Taking and : Multiplying by removes fractions: and . Check against the original generators: , , , . Any other basis of this plane is correct too.
(c) Because , is an orthogonal basis of , 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): Here , , , . So both coefficients are and Check: must lie in : its scalar product with is and with is . The formula above is valid only for an orthogonal basis, which is why (a) comes first; using directly would give a wrong result.
(d) Suppose such an exists. Then with and , where (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 must be orthogonal to , because and . But This is a contradiction, so there is no such subspace . (Equivalently, a vector can be the projection of on some subspace only if ; in this case while .)
Exercise 4 (points not stated)
In the affine space consider the two lines
(a) Determine whether and are incident, parallel or skew.
(b) Write the Cartesian equation of the plane containing the line and parallel to .
(c) Given the point , find a point such that the line through and is parallel to the plane of equation .
(d) Consider the family of planes , for every . Let and . Let be the midpoint of the segment with endpoints and . Verify that the points all lie on one line and write the parametric equations of that line.
Show the result
(a) and are skew (not incident, not parallel). Directions: , .
(b) .
(c) .
(d) , , : the line with parametric equations , , (direction ).
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 ). A line is given by Cartesian equations , with independent; its direction space is the solution space of the associated homogeneous system, and a plane is a hyperplane with normal vector . Two lines are parallel if one direction space contains the other, and skew if 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 has coefficient matrix of rank (four equations, three unknowns) and augmented matrix of rank . Concretely: from and we get , , then from the second equation; the fourth equation would require , but it says . So the system is inconsistent (ranks ): the lines are not incident.
Parallel? Two lines are parallel if and only if their directions are proportional. The direction of solves , : . The direction of solves , : . They are not proportional, so the lines are not parallel. Since they are neither incident nor parallel, they are skew.
(Check of points: and lie on and , lie on ; and .)
(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 must contain and be parallel to , so both directions and must lie in the plane. A plane has normal vector , and a direction lies in the plane if and only if . So solves the homogeneous system Adding the equations: , so ; then . Taking : . (This agrees with the cross product , which is a multiple of .) The plane is . It contains if it contains one point of , for example : , so : Check with the second point : . The plane does not contain (the point gives ), as it should for a skew line.
(c) A line is parallel to the plane when its direction is orthogonal to the normal , i.e. when . This says that the linear expression takes the same value at as at . At : . So must satisfy and lie on . Solve From the last two equations and , so , i.e. , , , . Hence (the unique solution: the matrix of this system has rank ). Check: (, ) and with .
(d) The points and . Adding to the equations of : , , so , : Adding to the equations of : , : The midpoint. Componentwise average: Each coordinate is a polynomial of degree in , so the points are exactly the points with and , i.e. they lie on the line with direction proportional to . Every point of the line is a midpoint (take ).
Self-assessment grid
| Exercise | Points | What must be there for full marks | Typical errors |
|---|---|---|---|
| 1 | not stated | (a) obtained by writing each image in the basis (columns), with the three small systems solved correctly; (b) obtained through in terms of the (or ); (c) rank 2, kernel and image bases from both matrices, with kernel vector in the -coordinates converted to and the explanation that the coordinates depend on the basis; (d) from the rank of the augmented matrix and the full solution set particular solution plus | giving coordinates in basis as if they were vectors of ; writing rows instead of columns in and ; for not saying the system is impossible; forgetting the free parameter in |
| 2 | not stated | (a) , ; (b) , from the system; (c) , 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, ; (b) two independent vectors orthogonal to ; (c) projection with the orthogonal basis; (d) the necessary condition fails () | projecting with the non-orthogonal basis ; wrong sign of ; stopping at without writing vectors; in (d) saying "no" without the argument |
| 4 | not stated | (a) inconsistent system plus non-proportional directions, so skew; (b) normal from orthogonality and ; (c) condition and ; (d) , , midpoint and the parametric line | concluding "parallel" or "incident" from a single check; forgetting that the point must be on in (c); algebra slips in the midpoint |