Linear Algebra - Mock Exam 1
Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.
In questa pagina 5
Mock exam built on the model of the Linear Algebra and Geometry exams of 20 June 2023, 5 July 2022 and 1 September 2022 (Information Engineering, UniPD, Italian-taught equivalent course): four exercises with several questions each, no separate theory part (theory questions are inside the exercises, as "justify your answer"). The original sheets do not show the points, so here we assign 8 points per exercise, 32 in total (pass mark 18). Suggested time: 2 hours. No notes and no calculator. How to use it: solve it in one go, writing everything out as in a real exam; only then compare with the Result and finally read the Solution and the grid at the end.
Exercise 1 (points 8)
In let be the subspace generated by the vectors and let be the subspace of equations
(a) Find the dimension and a basis of and of , and write Cartesian equations of . (b) Find the dimension and a basis of . (c) Find . Is ? Is the sum direct? (d) Find a one-dimensional subspace such that .
Show the result
(a) , basis ; equation of : . , basis , .
(b) , basis .
(c) , so ; the sum is not direct.
(d) For example (any line of other than works).
Show the full solution
(a) The generators are not independent: , since . So . These three are independent: a relation forces and then . Hence with 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 →). Typical mistake: counting the four generators and answering ; the dimension is the number of vectors of a basis, so redundant generators must be discarded.
A generic element of is . Its third coordinate is the sum of the first two, and the fourth is free (because of ): so is described by the single equation Check: a single equation in gives dimensions, as found.
For solve the homogeneous system (Systems of Linear EquationsA linear system is solved by elementary operations on its augmented matrix; Gaussian elimination brings any matrix to reduced row-echelon form, from which the (empty, unique or infinite) solution set with its free variables can be read off.Systems of Linear Equations →): the second equation gives , the first . With free parameters , : The two vectors are independent (look at the last two coordinates), so and they are a basis. The two equations are independent, so again.
(b) A vector is in exactly when it satisfies the equations of both. The system is From the third, ; the first becomes ; the second gives . With : . So and a basis is . (It is indeed in and in : it equals with , .)
(c) By the dimension formula (Grassmann, see Bases and DimensionA basis is a linearly independent generating system; all bases of a vector space have the same number of vectors, the dimension, and the dimensions of intersection and sum of two subspaces are linked by dim(A cap B) = dim A + dim B - dim(A+B).Bases and Dimension →) A subspace of of dimension is itself, so . The sum is direct if and only if , equivalently ; here , so it is not direct. Note that already forces a nonzero intersection.
(d) We need with : then , hence . Take with . It is not in , because the equation of gives ; so (a line is either contained in or meets it only in ). Any vector of outside the line works; the choice would be wrong since then the intersection is not zero.
Exercise 2 (points 8)
For let be the linear map
(a) Write the matrix of with respect to the standard bases and compute its rank as varies. (b) For each find a basis of and a basis of . For which is injective? For which is it surjective? (c) Let . For which does ? For those describe the preimage .
Show the result
(a) ; if , .
(b) : , . : , . Never injective; surjective iff .
(c) for every . For : . For : .
Show the full solution
(a) The columns of the matrix are the images of the standard basis vectors (see Linear MapsA linear map between vector spaces preserves sums and scalar multiples; its kernel and image are subspaces whose dimensions add up to the dimension of the domain (rank-nullity), and a linear map is determined by its values on a basis.Linear Maps → and Matrices and Change of BasisEvery linear map between finite-dimensional spaces is described by a matrix once bases are chosen, composition of maps corresponds to the matrix product, invertible matrices are those reducible to the identity, and a change of basis conjugates the matrix by the base change matrix.Matrices and Change of Basis →): The rank is at most . The second column is minus the first, so we may drop it and look at the columns : expanding along the last column (DeterminantsThe determinant is the unique function of a square matrix that equals 1 on the identity, changes sign when two rows are swapped and is linear in each row; it is computed by row reduction, Sarrus rule or cofactor expansion, and a matrix is invertible exactly when its determinant is non-zero.Determinants →). If the determinant is nonzero, so the rank is . If the last column is zero and the first two columns are proportional, so the rank is that of the columns , , which are independent: rank .
Case . The rank is , so and ; . Solve : the first two equations and involve only and : , , whose only solution is , . The third equation then reads , so . Hence and .
Case . The rank is , so . The same computation gives and from the first two equations, while the third is now , already satisfied; is free. So . The image is generated by the columns, and the independent ones are and : a basis of . A Cartesian equation: a vector orthogonal to both generators is found by solving , (subtracting: , so and ; take ), so . Check on the first column: ; on the second: .
Injectivity and surjectivity. is injective iff , but for every (a map from to is never injective). It is surjective iff iff the rank is iff .
(c) For the map is surjective, so . For we check the equation of the image: , so as well. Hence the answer is: every .
Preimage: solve . The first two equations, in the unknowns and : , . From the second ; substituting, , so and . The third equation is , i.e. , i.e. .
- If : and : .
- If : is free: .
In both cases the preimage is a particular solution plus the kernel. Typical mistake: forgetting that the equation for degenerates when and stating the same preimage for all .
Exercise 3 (points 8)
For consider the matrix
(a) Compute the characteristic polynomial and the eigenvalues of . (b) For each value of determine algebraic and geometric multiplicity of the eigenvalues and decide whether is diagonalizable. (c) For find an invertible matrix and a diagonal matrix with .
Show the result
(a) ; eigenvalues , , .
(b) : three distinct eigenvalues, diagonalizable. : eigenvalue with algebraic multiplicity and geometric multiplicity , not diagonalizable. : eigenvalue with algebraic and geometric multiplicity , diagonalizable.
(c) , .
Show the full solution
(a) See Eigenvalues and EigenvectorsAn eigenvector of a square matrix is a nonzero vector that the matrix only rescales; eigenvalues are the roots of the characteristic polynomial, and a matrix is diagonalizable exactly when the eigenspaces together have dimension n.Eigenvalues and Eigenvectors →. Expanding along the first column, which has only the entry : The characteristic polynomial is therefore (up to the sign convention) and the eigenvalues are , , . A check: the determinant is the product of the eigenvalues, , and indeed .
(b) Generic case, . The three eigenvalues are distinct, so each has algebraic multiplicity , hence geometric multiplicity (always between and the algebraic one), and is diagonalizable: eigenvectors for distinct eigenvalues are independent.
Case . The eigenvalues are (algebraic multiplicity ) and (multiplicity ). The geometric multiplicity of is : The first column is zero; the other two columns and are independent, so the rank is and the kernel has dimension : it is . Since , the matrix is not diagonalizable. (The sum of the geometric multiplicities is : not enough independent eigenvectors.)
Case . The eigenvalues are (algebraic multiplicity ) and (multiplicity ). Now has rank (all rows are multiples of ), so the kernel has dimension : the equation gives the basis , . The geometric multiplicity is , equal to the algebraic one, and the eigenvalue gives one more eigenvector: the matrix is diagonalizable. This is the point of the exercise: a repeated eigenvalue does not by itself prevent diagonalizability; only the comparison of the multiplicities decides it.
(c) For the eigenvalues are , , , all distinct. Eigenvectors, solving :
- : gives , hence : .
- : , : ; then , so : .
- : , hence , : .
Putting them as columns, in the same order as the eigenvalues in (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 →): Here , and , equivalently (check the second column: ; third: ). Typical mistake: putting the eigenvectors in in an order different from the eigenvalues in .
Exercise 4 (points 8)
In consider the point , the point and the line For let be the line , .
(a) Write a Cartesian equation of the plane through orthogonal to . (b) Write a Cartesian equation of the plane through containing . (c) Determine, as varies, the relative position of and (coincident, parallel, intersecting, skew); when they intersect find the intersection point. (d) Find the orthogonal projection of onto and the distance of from .
Show the result
(a) .
(b) .
(c) : parallel and distinct. : intersecting, at the point . All other : skew. (Never coincident.)
(d) Projection ; distance .
Show the full solution
Relevant theory: Orthogonal and Symmetric MatricesOrthogonal matrices have orthonormal rows and columns, symmetric matrices are exactly those with an orthonormal eigenbasis, and affine subspaces (lines, planes, hyperplanes) are studied with orthogonal projections to compute distances.Orthogonal and Symmetric Matrices → (sections on hyperplanes, lines in , distance between affine subspaces).
(a) The plane orthogonal to has as normal vector the direction of , . So , and imposing : . Hence .
(b) Convert to Cartesian equations by eliminating the parameter: , , give The planes containing are exactly those of the pencil with . Imposing the passage through : so , and : Check: : ; the point of : ; the direction of is orthogonal to the normal : . (The point is not on , otherwise the plane would not be unique.)
(c) The directions are and . They are proportional exactly when , since ; for they are independent.
Case . The lines are parallel. They coincide iff a point of is on : on would need , , then . So is parallel to and distinct from it.
Case . The lines intersect iff the system has a solution: The third equation gives ; substituting in the second: , i.e. . So for the system has no solution: the lines (not parallel, not intersecting) are skew. For the first equation becomes ; with it gives , so , (all three equations hold): a unique solution, intersection point , which is also . Check.
Summary: parallel distinct; incident in ; skew. A shortcut for the same result: the triple product , with and the base points, equals , which vanishes exactly for ; at the directions are parallel, at the lines are coplanar and not parallel, hence incident.
(d) The plane has normal vector , with . The projection of is where (so that the result satisfies the equation). Here , so Check: , so , and is orthogonal to . The distance is Typical mistake: dividing by in the distance (that is correct only for the coefficient ) or forgetting the term .
Self-assessment grid
| exercise | points | what must be there for full marks | typical mistakes |
|---|---|---|---|
| 1 | 8 | dimension of with the redundant generator discarded and the equation (2); basis and dimension of (1); by joining the equations (2); Grassmann and direct-sum argument (2); a correct with justification (1) | counting four generators as ; stating the sum is direct without checking the intersection; choosing inside |
| 2 | 8 | matrix and rank with singled out (2); kernel and image bases in both cases (3); injective/surjective with rank-nullity (1); preimage as particular solution plus kernel in both cases (2) | forgetting the case ; wrong image equation; same preimage for all |
| 3 | 8 | characteristic polynomial and eigenvalues (2); comparison of multiplicities at and with the ranks computed (3); eigenvectors and , for in matching order (3) | declaring a repeated eigenvalue non-diagonalizable without computing the eigenspace; eigenvector columns in the wrong order |
| 4 | 8 | plane (1); plane through containing (2); all three cases of (c) with the intersection point (3); projection and distance of (2) | forgetting that must lie on the plane; missing the parallel case ; mixing the formula of with the distance |