Linear Algebra - Mock Exam 2
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 for Engineering at UniPD (the equivalent course taught in Italian; sessions of 1 September 2022, 5 July 2022 and 20 June 2023). It is a new paper, not a copy of a real one: all matrices, parameters and data are original. Like the real papers it has four exercises, each with four or five questions (a), (b), (c), ...; the questions of theory are inside the exercises. The real sheets do not state points or duration, so we assign 8 points per exercise (32 in total) and suggest 2 hours; these values are our choice. Allowed material: none (no notes, no calculator). Justify every answer: a bare result does not earn full marks.
Contents: Exercise 1 is a linear system with parameters and a change of basis in the space of polynomials; Exercise 2 is a linear map given on a non-standard basis; Exercise 3 is a symmetric matrix and its quadratic form; Exercise 4 is geometry of lines and planes in (the type of exercise that closes the real papers).
How to use it: first solve under exam conditions and write every step. Then open only Result to check your final answers, and only afterwards Solution for the full method and the typical mistakes.
Exercise 1 (points 8)
Let be parameters and consider the linear system in the unknowns : where is the matrix of coefficients and is the column of constant terms.
(a) Compute and determine for every . (1 point)
(b) For which values of and does the system have exactly one solution, infinitely many solutions, no solution? (2 points)
(c) Solve the system for and for . (2 points)
Let be the vector space of polynomials of degree at most , with canonical basis , and let
(d) Show that is a basis of and find the coordinates of with respect to . (2 points)
(e) Write the change-of-basis matrix from to and its inverse. Use them to find the polynomial whose coordinates with respect to are . (1 point)
Show the result
(a) . for ; for and for .
(b) If : exactly one solution for every , namely If : infinitely many solutions (one free parameter) for , no solution for . If : infinitely many solutions (one free parameter) for , no solution for .
(c) For : the unique solution is . For : the solutions are , (equivalently ).
(d) is a basis (the matrix of its coordinates has determinant ). The coordinates of are .
(e) Change of basis from to : The polynomial with -coordinates is .
Show the full solution
(a) Determinant and rank. The matrix of coefficients is Expand along the first row (see 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 →): A square matrix has rank exactly when its determinant is nonzero, so for and . For and the rank is at most ; it is exactly because the first two rows and are never proportional: a relation would need and , which is impossible. Hence the rank is for and .
Typical mistake: concluding "rank " at the values where without checking that the rank is not even smaller.
(b) Number of solutions. Write the system as with , : it is solvable exactly when , and the solution set is then a particular solution plus (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 →, section on linear systems, and 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 →).
Case . , so is invertible, is bijective and there is exactly one solution for every . The formulas in the Result come from Cramer's rule (or from ; 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 → and 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 instance
Case . The system is From the first two equations and . Substitute in the third: , that is . So if the third equation is a consequence of the first two and the system has the solutions with free (infinitely many, one parameter); if the third equation contradicts the first two and there is no solution. In the language of rank: the matrix of coefficients has rank , the augmented matrix has rank if and rank otherwise.
Case . The system is , , . Then , , and the third equation becomes , i.e. . So gives infinitely many solutions (one parameter), none.
Typical mistake: dividing by or by before treating separately the values and .
(c) Solutions. For : , so the solution is unique. The system is , , . The second equation gives ; then ; then . Check in the formulas of (b): , , . Solution .
For we are in the consistent case with one free parameter. Take as parameter: (from ), . So the solutions are Check: the vector solves the homogeneous system (, , ) and solves the system with (, , ).
(d) is a basis; coordinates. has dimension (basis ), so four vectors form a basis exactly when they are linearly independent, equivalently when the matrix of their coordinates in is invertible (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 → 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 coordinates in of the four polynomials, written as columns, give upper triangular with . So is a basis.
Coordinates of : we look for with . Comparing the coefficients of the powers of :
- : ;
- : , so ;
- : , so ;
- : , so .
Coordinates . Check: has constant term , coefficient of equal to , of equal to , of equal to .
(e) Change of basis. The matrix above sends the -coordinates of a polynomial to its -coordinates (its columns are the -coordinates of the vectors of ; 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 →, section on change of basis). Its inverse sends -coordinates to -coordinates: (Check with (d): . This also explains the pattern: each -coordinate is the difference of two consecutive -coordinates.)
Polynomial with -coordinates : . The polynomial is . Direct check: .
Exercise 2 (points 8)
Let be the canonical basis of and let , , , . Let be the linear map with
(a) Show that is a basis of . Write the matrix of with respect to the basis in the domain and in the codomain, and the matrix of with respect to in both. (3 points)
(b) Find a basis of and a basis of . Is injective? Is it surjective? Does the vector belong to ? (3 points)
(c) Let , that is . Show that is invertible and compute the matrix of with respect to . (2 points)
Show the result
(a) is a basis ().
(b) , so . , . is neither injective nor surjective. .
(c) The matrix of is with , so is invertible and
Show the full solution
(a) Basis and matrices. Put (vectors as columns): Expand along the first row: . Three vectors of with invertible matrix are linearly independent, hence 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 → and 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 →).
The matrix has as columns the coordinates, in the codomain basis , of the images of the vectors of the domain basis: are already written in , so (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 →, section 1: the matrix associated to a linear map; and 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).
For , the matrix of in the canonical basis, use the change of basis in the domain. The matrix sends -coordinates to -coordinates, so for every , i.e. and . The inverse of (by Gauss-Jordan, or by cofactors, using ) is (Check: the first row of times the first column of gives ; the second row of times the same column gives ; and so on.) Then For example, the entry in row , column is . Check on a vector: .
Typical mistake: using instead of (writing ): the result would not return on . A useful check is always to apply the matrix to one of the vectors of .
(b) Kernel, image, injectivity, surjectivity. Solve : The third equation gives . In the first, . The second then reads , true. So , of dimension . (In -coordinates this vector is : indeed .)
By rank-nullity (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 →, the rank-nullity theorem) . The image is spanned by the columns of ; the third column is times the first, so a basis of is given by the first two columns and (they are not proportional). A Cartesian equation of the image: a normal vector is the cross product , so ; both generators satisfy it ( and ).
is injective if and only if (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 →, injectivity is measured by the kernel); here , so is not injective. is surjective if and only if , i.e. if the rank is ; the rank is , so is not surjective (for an endomorphism of a finite-dimensional space the two properties are equivalent, as rank-nullity shows).
The vector satisfies , so it does not belong to : the system has no solution.
Typical mistake: taking as basis of the image columns of the reduced (Gauss) matrix instead of columns of the original matrix ; the columns of the reduced matrix generally span a different subspace.
(c) The map . The matrix of in is , so the matrix of is Determinant, expanding along the first row: . So is invertible and is an isomorphism (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 →, isomorphisms, 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 →, invertible matrices). (Equivalently: is not an eigenvalue of .)
The inverse by cofactors, . The cofactors are The adjugate is the transpose of the matrix of cofactors, so Check: first row of times first column of : ; first row of times second column: .
Exercise 3 (points 8)
Let
(a) Compute the characteristic polynomial of and its eigenvalues. (2 points)
(b) For each eigenvalue find a basis of the eigenspace. (2 points)
(c) Explain why is diagonalizable by an orthogonal matrix and find an orthogonal matrix and a diagonal matrix with . (2 points)
(d) Consider the quadratic form . Write explicitly. Is positive definite? Is positive definite, negative definite or indefinite? (2 points)
Show the result
(a) , i.e. . Eigenvalues , , , all simple.
(b) , , .
(c) is symmetric, so it has an orthonormal eigenbasis. For instance
(d) . Not positive definite (the leading minors are ). In the orthonormal coordinates one has : is indefinite.
Show the full solution
(a) Characteristic polynomial. (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 →, the characteristic polynomial.) Expand along the first row: The three brackets are , and , so This factors as (check: ; the trace is and ). Eigenvalues: , , , each with algebraic multiplicity .
(b) Eigenspaces. Each one is the kernel of (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 →, eigenspaces).
: . The first and third row are proportional. From we get ; in this gives , so and . Basis .
: . Subtract the first equation from the second : , so and then . Taking : basis .
: . The second row gives ; the first row then gives , so , . Basis .
Each eigenspace has dimension (equal to the algebraic multiplicity). Check: , , . All three equal .
(c) Orthogonal diagonalization. is symmetric (), so by the theorem on symmetric matrices (see 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 2) it has an orthonormal eigenbasis, i.e. it is orthogonally diagonalizable. Eigenvectors of different eigenvalues of a symmetric matrix are orthogonal; indeed Here the three eigenvalues are distinct, so no Gram-Schmidt step is needed: it is enough to normalize. The norms are , , (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 →). The columns of form an orthonormal basis, so is orthogonal () and , with the eigenvalues in the same order as the columns of .
Typical mistakes: forgetting to normalize (the matrix with columns has orthogonal but not unit columns, so ); writing the eigenvalues in in a different order than the eigenvectors in .
(d) The quadratic form. Multiplying out, By the criterion of the leading principal minors (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 →, positive definite matrices), is positive definite only if , and are all positive; the last one is not, so is not positive definite.
More precisely, substitute : then . Since the eigenvalues have both signs, takes positive and negative values, so it is indefinite (neither positive nor negative definite). Explicit vectors: , and for the eigenvector of the eigenvalue : .
Typical mistake: concluding "negative definite" or "positive definite" from the sign of the determinant alone; all the leading minors (or all the eigenvalues) must be considered.
Exercise 4 (points 8)
In with the standard scalar product consider the planes the line and the point .
(a) Check that and intersect in a line and write in parametric form . (2 points)
(b) Write the equations of all the planes containing and find the equation of the plane containing and passing through . (2 points)
(c) Find the line through which is orthogonal to and meets (give its parametric and its Cartesian equations). Show that lies in the plane of (b). (3 points)
(d) Compute the distance from to . (1 point)
Show the result
(a) The normal vectors and are independent, so the planes meet in a line:
(b) The planes through are with . The plane through is (obtained with , ).
(c) The foot of the perpendicular is . , with Cartesian equations , . .
(d) .
Show the full solution
(a) Parametric form of . (See 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, lines in .) The normals and are not proportional, so the system of the two equations has rank and its solution set is an affine subspace of dimension , a line. Solve the system: subtracting the equations and gives , so ; then . Setting (so that gives the point with ) we get So . Checks: the point satisfies and ; the direction is orthogonal to both normals: and (and indeed ).
Typical mistake: giving as direction vector one of the normal vectors, instead of a vector orthogonal to both.
(b) The pencil of planes through . The planes containing are exactly those with equation because every point of satisfies both equations and hence their linear combinations (see 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, planes containing a line). Equivalently, the plane has normal , orthogonal to , and passes through .
Impose that belongs to the plane. The first expression at is , the second is . Hence , e.g. , . The plane is Checks: : ; the point of : ; the direction : , so contains .
(c) The perpendicular through meeting . The line must pass through and through a point , with . A general point of is , so . Impose : (This is criterion (4) of the distance theorem, applied to the point and the line ; see 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 4.) So and . Check the orthogonality: .
The line is Cartesian equations: the second coordinate is always , so ; eliminating in gives . Thus .
: the point (shown in (b)) and the direction satisfies the homogeneous equation of : . Therefore the whole line lies in . (Geometrically: contains and , and the perpendicular from to lies in the plane determined by them.)
Typical mistake: taking as the line through with direction orthogonal to chosen at random: infinitely many lines through are orthogonal to (they fill a plane), but only one of them also meets .
(d) Distance. The distance from to is the length of the segment realizing the minimum (see 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 4, 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 → for the norm): Check with the cross product formula: with and , whose norm is , divided by gives .
Self-assessment grid
| Exercise | Points | What you need for full marks | Typical mistakes |
|---|---|---|---|
| 1 (a)-(c) | 5 | and rank at (not lower); the cases and treated separately, with the conditions and ; the unique solution for ; the one-parameter family for | dividing by or before discussing them; forgetting to say that the other values of give no solution; solution set not written as particular solution plus kernel |
| 1 (d)-(e) | 3 | proved a basis (triangular matrix, ); coordinates checked by expansion; and in the right direction; polynomial | confusing and ; computing coordinates by guessing instead of comparing coefficients; forgetting to prove independence or invertibility |
| 2 (a) | 3 | a basis; with the images as columns; computed correctly and checked on | writing ; putting rows instead of columns |
| 2 (b) | 3 | ; basis of the image taken from columns of ; rank-nullity; neither injective nor surjective; with a justification | basis of the image from the reduced matrix; claiming surjective without computing the rank |
| 2 (c) | 2 | , , inverse computed and checked () | forgetting the factor ; sign errors in the cofactors; using as if it were a number |
| 3 (a)-(b) | 4 | characteristic polynomial with the three simple eigenvalues (trace and determinant as check); an eigenvector for each | sign errors in the determinant; eigenvectors not checked with |
| 3 (c) | 2 | reason (symmetric implies orthogonally diagonalizable); orthogonality of the eigenvectors; normalization; orthogonal, in the same order | not normalizing; and in a different order |
| 3 (d) | 2 | written correctly (cross terms doubled); not positive definite by the minors or by the eigenvalues; indefinite with a justification | cross terms not doubled; deducing the sign of from one minor only |
| 4 (a)-(b) | 4 | independent normals, direction and a point of ; pencil with parameters ; the plane checked on and | direction taken from a normal vector; pencil with only one parameter; not verifying that contains |
| 4 (c)-(d) | 4 | from the orthogonality condition, , in parametric and Cartesian form, ; distance | arithmetic errors in ; confusing the perpendicular through that meets with an arbitrary orthogonal line |