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 be the vector space of real matrices, and let Let be the set of matrices that commute with , and let be the set of symmetric matrices.
(a) Show that is a subspace of and find its dimension and a basis. (2 points)
(b) Find the dimension and a basis of and of . Compute . Is the sum direct? (3 points)
(c) Extend a basis of to a basis of . (1.5 points)
(d) Find the coordinates of in the basis found in (c). Does belong to ? (1.5 points)
Show the result
(a) , , basis , .
(b) , basis , , . , dimension . , so ; the sum is not direct.
(c) For example .
(d) Coordinates , i.e. . .
Show the full solution
Identification with . A matrix is determined by the four numbers , and sum and scalar multiplication of matrices act entrywise, so behaves exactly like (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 →): , with the standard basis (a in one position, elsewhere).
(a) Compute both products: The condition is the homogeneous linear system (one equation for each entry) The third equation is a consequence of the first two: . 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, is also closed under sums and multiples: if and then and , and .
The free variables are and So and generate ; they are independent (not proportional), hence a basis and (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: , so , and . 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 : . The three matrices generate and are independent, so .
For impose both conditions: gives , and symmetry gives . Hence , so , , : . Thus with basis and dimension .
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), and a subspace of of dimension is itself: . The sum is not direct, because (a sum is direct exactly when the intersection is , equivalently when the dimensions add up: ). Typical mistake: concluding "direct" because the sum is the whole space.
(c) Start from and add two standard matrices; take . They form a basis of if and only if they are independent (four independent vectors in a -dimensional space). Suppose , i.e. Entry gives ; entry gives ; entry gives ; entry gives . So only the trivial combination vanishes and is a basis of . (Other choices work too, e.g. instead; the point is to check independence, not to guess.)
(d) Solve entry by entry, using the same expression as in (c): From the third equation ; then , , . Coordinates . Check: .
would need in the form found in (a), but here and : . Equivalently the coordinates on are not both .
Exercise 2 (points 8)
Let and be the real vector spaces of polynomials of degree at most and at most respectively. Consider the maps (a) Show that is linear and write its matrix with respect to the bases of and of . (2 points)
(b) Find a basis of and of , and check the rank-nullity theorem. Is injective? Is it surjective? (2 points)
(c) Write the matrix of with respect to and the standard basis of , and the matrix of . Find the kernel and the image of . (2.5 points)
(d) Find all with . Is there a with ? (1.5 points)
Show the result
(a) .
(b) (dimension ); (dimension ); . Neither injective nor surjective.
(c) , , i.e. . (dimension ), (dimension ).
(d) exactly for with . No has .
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): , , and , . Hence and . Note also that really lies in since has degree at most and is a constant.
Matrix. The columns are the coordinates of 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 →):
- ;
- ;
- , coordinates ;
- , coordinates .
So In general for one has and , which is .
(b) Kernel. gives , , and then holds automatically: with free. So with basis (the polynomials whose derivative is constant, as expected), dimension .
Image. The image is generated by the columns 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 →, image of a matrix): and ; the first two columns are zero. These two are independent, so a basis of is (dividing by and ) and . Geometrically : indeed , and span this -dimensional space.
Rank-nullity: . Since , is not injective; since , it is not surjective.
(c) , , , so The matrix of the composition is the product of the matrices, in the order "first , then " (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 →): (Column 3: ; column 4: .) So . A direct check: at gives , at gives .
Kernel: , so , basis , dimension . Image: all , i.e. , dimension . Rank-nullity again: . Note : the composition loses more information than , because is not injective (, and ). Typical mistake: multiplying the matrices in the wrong order (the product is not even defined here).
(d) We need (the coordinates of ): So , , and the first equation is satisfied: . The coefficients are free. The set of solutions is : one particular solution plus the kernel (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 ; it is a -dimensional affine set). Check: , , .
For , i.e. : , , and then . Contradiction, so no such exists. A quicker reason: every element of vanishes at , while the polynomial takes the value there, so .
Exercise 3 (points 8)
For consider the matrix (a) Compute the characteristic polynomial of and the eigenvalues, with their algebraic multiplicities, for each . (2 points)
(b) For which values of is diagonalizable? Justify with the dimension of the eigenspaces. (3 points)
(c) For find the eigenspaces, an invertible matrix and a diagonal matrix with . (1.5 points)
(d) For compute for every integer . (1.5 points)
Show the result
(a) ; eigenvalues . For all four are distinct (multiplicity ); for the value is a double eigenvalue and the other two have multiplicity .
(b) is diagonalizable exactly for . For : .
(c) , , . , .
(d) .
Show the full solution
(a) The matrix is block diagonal with the two triangular blocks and , so 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): 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 →): . They are four distinct numbers unless , and in those three cases coincides with one of the other roots and that eigenvalue has algebraic multiplicity .
(b) If there are distinct eigenvalues, so 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 only the double eigenvalue needs a check: it must have (it is always at least and at most the multiplicity), and .
- , : . The rows are independent, the fourth is zero: rank , so . Not diagonalizable.
- , : : the rows span only , rank , so : the dimensions add up, diagonalizable.
- , : : rank , , diagonalizable.
Conclusion: is diagonalizable for every and not diagonalizable for . Typical mistake: saying that a repeated eigenvalue always breaks diagonalizability (here and show it does not), or, conversely, never checking the eigenspace of the repeated one.
(c) Take , so .
- : is , (from the matrix above), free: .
- : gives , then and : .
- : gives , , : .
Dimensions . Put the eigenvectors as columns, in the order (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): Check on one column: . The columns of must follow the order of the columns of .
(d) From we get and (the factors 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 : Checks: returns ; would give the identity; for the entry is , and indeed . The matrix is block diagonal like , as it must be, and each block is the power of the corresponding block.
Exercise 4 (points 8)
In , with the standard scalar product, consider the lines (a) Show that and are skew. (2 points)
(b) Find the distance , the points and that realize it, and parametric equations of the line through and . (3 points)
(c) Find a Cartesian equation of the plane through parallel to both and . (1.5 points)
(d) Let . Find the orthogonal projection of on , the distance and the point symmetric to with respect to . (1.5 points)
Show the result
(a) , : directions independent, no common point.
(b) , attained at (for ) and ; the line through them is .
(c) .
(d) Projection , , .
Show the full solution
(a) Parametric form of . Put ; the first equation gives , and : (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 for and for . They are not proportional (look at the second component), so the lines are not parallel.
No common point. A point of on needs , so and the point is ; but then . So . Independent directions and empty intersection mean that and 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): and realize the minimal distance exactly when is orthogonal to and . General points: , , so The first gives ; into the second: , so and . Then , , and Cross-check with the formula , where and . A generator of solves , , i.e. and : (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 the same vector, with length .
The common perpendicular passes through with direction : , . It meets at and at .
(c) The plane must have direction , so its normal vector is a generator of , which we already know: (check: , ). By the Proposition on hyperplanes in Section 3.2, , and fixes : Since it is parallel to both lines, and it is the only such plane through because the lines are skew (so are independent and determine the direction of the plane). Neither line lies in : the point of gives , the point of gives .
(d) The projection of on is the foot of the perpendicular from : with chosen so that the point lies on . We have and , so Check: , so . The distance is (the Hesse-form distance of the hyperplane proposition, applied after translating). The symmetric point is the reflection through the foot: . Checks: the midpoint of is , and is orthogonal to ; also , which is as far below as is above it (, ). Typical mistake: using with taken as the projection onto the normal direction instead of onto the plane, or forgetting the constant when computing .
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 , dimension (2); (b) , , by the dimension formula, sum not direct (3); (c) a basis of containing the basis of , with independence checked (1.5); (d) coordinates and (1.5) | writing only two of the four entry equations; thinking the sum is direct because it equals ; adding vectors to the basis without checking independence |
| 2 | 8 | (a) linearity and the matrix with columns (2); (b) kernel , image , rank-nullity, neither injective nor surjective (2); (c) , the product in the right order, kernel of dimension and image of dimension (2.5); (d) the solution set and the reason why is not in the image (1.5) | wrong order of the product; reading the rows of instead of the columns for the image; solving and forgetting the free part |
| 3 | 8 | (a) factorization of the characteristic polynomial through the blocks (2); (b) rank of for , conclusion diagonalizable iff (3); (c) three eigenspaces, and with matching column order (1.5); (d) with the explicit matrix (1.5) | saying that repeated eigenvalues always prevent diagonalization; forgetting to treat separately; in a different order from the columns of |
| 4 | 8 | (a) both conditions: independent directions and empty intersection (2); (b) orthogonality of to both directions, , , common perpendicular (3); (c) normal vector and constant (1.5); (d) foot , distance , symmetric point (1.5) | skew checked with only one of the two conditions; sign errors in ; forgetting the constant of the plane when projecting; instead of |