University

Linear Algebra Practice Exam — Free

Generate a realistic AI practice exam with worked solutions

Generate Your Free Practice Exam

Linear Algebra examines vectors, matrices, systems of equations, eigenvalues, and abstract vector spaces. Exams balance computational problems — row reduction, determinants, diagonalization — with proof-based questions on linear independence and transformations. Working through varied practice problems is essential for building the pattern recognition these exams demand.

Crameleon generates your practice exam from your own course materials — lecture notes, syllabi, past exams, or any combination. Upload what you have and get a fully formatted exam with the same structure as your professor's actual tests: multiple choice, short answer, and worked problems, all with step-by-step solutions (first 2 free; all with Premium).

Unlike generic question banks, every Crameleon exam reflects the specific framing, terminology, and difficulty level of your course. You'll practise answering questions that look and feel like the real thing — which is exactly what the research on retrieval practice says you should be doing. Students who test themselves with practice exams consistently outperform students who re-read notes, regardless of study time. The generation takes under 2 minutes and your first exam is completely free.

Topics typically tested

  • Row reduction & systems of equations
  • Determinants & matrix inverses
  • Eigenvalues & eigenvectors
  • Vector spaces & subspaces
  • Orthogonality & least squares
  • Linear transformations

Sample Linear Algebra exam questions

Three original questions in the style of a real Linear Algebra exam, each with a worked solution. Your own practice exam can be built from your course's notes and syllabus.

Question 1Multiple choiceEigenvalues & eigenvectors

Let

A=(4123).A = \begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}.

Which of the following is an eigenvalue of AA together with a corresponding eigenvector?

  1. A.

    λ=4\lambda = 4 with eigenvector (1,0)(1, 0)

  2. B.

    λ=2\lambda = 2 with eigenvector (1,1)(1, 1)

  3. C.

    λ=5\lambda = 5 with eigenvector (1,1)(1, 1)

  4. D.

    λ=5\lambda = 5 with eigenvector (1,−2)(1, -2)

Worked solution
Answer:C

Eigenvalues are the roots of the characteristic polynomial det⁡(A−λI)=0\det(A - \lambda I) = 0:

det⁡(4−λ123−λ)=(4−λ)(3−λ)−2=λ2−7λ+10=(λ−2)(λ−5).\det\begin{pmatrix} 4 - \lambda & 1 \\ 2 & 3 - \lambda \end{pmatrix} = (4-\lambda)(3-\lambda) - 2 = \lambda^2 - 7\lambda + 10 = (\lambda - 2)(\lambda - 5).

So the eigenvalues are λ=2\lambda = 2 and λ=5\lambda = 5 (their sum is the trace 7 and their product is the determinant 10, a quick sanity check). The diagonal entries 4 and 3 are not eigenvalues (reading eigenvalues off the diagonal only works for triangular matrices, and AA is not triangular); that rules out option A.

For each eigenvalue, solve (A−λI)v=0(A - \lambda I)\mathbf{v} = \mathbf{0}.

λ=5\lambda = 5: A−5I=(−112−2)A - 5I = \begin{pmatrix} -1 & 1 \\ 2 & -2 \end{pmatrix}, whose rows both say −x+y=0-x + y = 0, so y=xy = x and an eigenvector is (1,1)(1, 1).

λ=2\lambda = 2: A−2I=(2121)A - 2I = \begin{pmatrix} 2 & 1 \\ 2 & 1 \end{pmatrix}, giving 2x+y=02x + y = 0, so y=−2xy = -2x and an eigenvector is (1,−2)(1, -2).

Direct verification: A(11)=(55)=5(11)A\begin{pmatrix} 1 \\ 1 \end{pmatrix} = \begin{pmatrix} 5 \\ 5 \end{pmatrix} = 5\begin{pmatrix} 1 \\ 1 \end{pmatrix}, confirming option C.

Options B and D each pair a genuine eigenvector with the wrong eigenvalue, a common slip when the eigenvalues are found correctly but the null spaces are mixed up: A(1,1)T=(5,5)TA(1,1)^T = (5,5)^T is 5 times the vector, not 2 times, and A(1,−2)T=(2,−4)T=2(1,−2)TA(1,-2)^T = (2,-4)^T = 2(1,-2)^T, not 5 times.

λ=5\lambda = 5 with eigenvector (1,1)(1, 1) (option C).

Question 2Short answerDeterminants & matrix inverses

Let

A=(2013121−14).A = \begin{pmatrix} 2 & 0 & 1 \\ 3 & 1 & 2 \\ 1 & -1 & 4 \end{pmatrix}.

Compute det⁡(A)\det(A), and then find det⁡(3A−1)\det\left(3A^{-1}\right).

Worked solution
Answer:

det⁡(A)=8\det(A) = 8 and det⁡(3A−1)=278\det\left(3A^{-1}\right) = \dfrac{27}{8}

Expand along the first row, which contains a zero and so saves work (cofactor expansion along any row or column gives the same value):

det⁡(A)=2∣12−14∣−0∣3214∣+1∣311−1∣.\det(A) = 2\begin{vmatrix} 1 & 2 \\ -1 & 4 \end{vmatrix} - 0\begin{vmatrix} 3 & 2 \\ 1 & 4 \end{vmatrix} + 1\begin{vmatrix} 3 & 1 \\ 1 & -1 \end{vmatrix}.

Compute the 2×22\times 2 determinants: 1⋅4−2⋅(−1)=61\cdot 4 - 2\cdot(-1) = 6 and 3⋅(−1)−1⋅1=−43\cdot(-1) - 1\cdot 1 = -4. Hence

det⁡(A)=2(6)−0+1(−4)=12−4=8.\det(A) = 2(6) - 0 + 1(-4) = 12 - 4 = 8.

Since det⁡(A)≠0\det(A) \ne 0, AA is invertible and A−1A^{-1} exists.

For the second part use two determinant rules. First, det⁡(A−1)=1det⁡(A)\det(A^{-1}) = \dfrac{1}{\det(A)}, because det⁡(A)det⁡(A−1)=det⁡(I)=1\det(A)\det(A^{-1}) = \det(I) = 1. Second, multiplying an n×nn \times n matrix by a scalar cc multiplies every one of its nn rows by cc, so det⁡(cA)=cndet⁡(A)\det(cA) = c^n \det(A); here n=3n = 3. Therefore

det⁡(3A−1)=33det⁡(A−1)=27⋅18=278.\det\left(3A^{-1}\right) = 3^3 \det\left(A^{-1}\right) = 27 \cdot \frac{1}{8} = \frac{27}{8}.

The common mistake is to pull out a single factor of 3 and get 38\dfrac{3}{8}; the scalar must be raised to the power of the matrix size.

det⁡(A)=8\det(A) = 8 and det⁡(3A−1)=278\det\left(3A^{-1}\right) = \dfrac{27}{8}

Question 3Worked problemOrthogonality & least squares

Find the least-squares line y=c0+c1xy = c_0 + c_1 x that best fits the four data points (0,1)(0, 1), (1,2)(1, 2), (2,4)(2, 4), (3,5)(3, 5).

(a) Write the inconsistent system Ac=bA\mathbf{c} = \mathbf{b} for the unknowns c0,c1c_0, c_1 and form the normal equations ATA c=ATbA^{T}A\,\mathbf{c} = A^{T}\mathbf{b}.

(b) Solve the normal equations for c0c_0 and c1c_1.

(c) Compute the least-squares error ∥b−Ac^∥\lVert \mathbf{b} - A\hat{\mathbf{c}} \rVert.

Worked solution
Answer:

y=0.9+1.4xy = 0.9 + 1.4x; least-squares error 0.2≈0.447\sqrt{0.2} \approx 0.447

(a) Each data point gives one equation c0+c1xi=yic_0 + c_1 x_i = y_i:

A=(10111213),c=(c0c1),b=(1245).A = \begin{pmatrix} 1 & 0 \\ 1 & 1 \\ 1 & 2 \\ 1 & 3 \end{pmatrix}, \qquad \mathbf{c} = \begin{pmatrix} c_0 \\ c_1 \end{pmatrix}, \qquad \mathbf{b} = \begin{pmatrix} 1 \\ 2 \\ 4 \\ 5 \end{pmatrix}.

Four equations in two unknowns have no exact solution, so we minimize ∥b−Ac∥\lVert \mathbf{b} - A\mathbf{c}\rVert; the minimizer satisfies the normal equations, because the residual must be orthogonal to the column space of AA. Compute

ATA=(46614),ATb=(1+2+4+50+2+8+15)=(1225).A^{T}A = \begin{pmatrix} 4 & 6 \\ 6 & 14 \end{pmatrix}, \qquad A^{T}\mathbf{b} = \begin{pmatrix} 1 + 2 + 4 + 5 \\ 0 + 2 + 8 + 15 \end{pmatrix} = \begin{pmatrix} 12 \\ 25 \end{pmatrix}.

(b) Solve 4c0+6c1=124c_0 + 6c_1 = 12 and 6c0+14c1=256c_0 + 14c_1 = 25. From the first, c0=3−32c1c_0 = 3 - \tfrac32 c_1. Substituting into the second: 6(3−32c1)+14c1=256\left(3 - \tfrac32 c_1\right) + 14c_1 = 25, so 5c1=75c_1 = 7, c1=1.4c_1 = 1.4, and c0=3−2.1=0.9c_0 = 3 - 2.1 = 0.9. The least-squares line is y=0.9+1.4xy = 0.9 + 1.4x.

(c) The fitted values at x=0,1,2,3x = 0, 1, 2, 3 are 0.9, 2.3, 3.7 and 5.1, so the residual vector is

b−Ac^=(0.1−0.30.3−0.1).\mathbf{b} - A\hat{\mathbf{c}} = \begin{pmatrix} 0.1 \\ -0.3 \\ 0.3 \\ -0.1 \end{pmatrix}.

Its entries sum to zero, as they must (the residual is orthogonal to the all-ones column of AA). The error is the length of this vector:

∥b−Ac^∥=0.01+0.09+0.09+0.01=0.2≈0.447.\lVert \mathbf{b} - A\hat{\mathbf{c}}\rVert = \sqrt{0.01 + 0.09 + 0.09 + 0.01} = \sqrt{0.2} \approx 0.447.

y=0.9+1.4xy = 0.9 + 1.4x, with least-squares error 0.2≈0.447\sqrt{0.2} \approx 0.447.

Used by 3,000+ students across Canadian universities·Step-by-step solutions (first 2 free)·Works for any course

Ready to practice?

Generate Your Free Linear Algebra Practice Exam

Your first exam is free — just sign in, no credit card.