All courses › Linear Algebra and Differential Equations

Linear Algebra and Differential Equations: free practice, theory and problems

A matrix is a table of numbers, but its most important interpretation is as a linear map: takes a vector and returns a new vector . A truss, an electric circuit or a finite element model eventually becomes a large matrix system. The determinant tells you whether the map can be reversed, and the inverse matrix reverses it.

3 parts57 problems9 concepts explainedPractice examFree
Start practising for free →

Contents

  1. Matrices
  2. Linear systems and eigenvalues
  3. Differential equations

1. Matrices

What is it about?

A matrix is a table of numbers, but its most important interpretation is as a linear map: AA takes a vector x⃗\vec x and returns a new vector Ax⃗A\vec x. A truss, an electric circuit or a finite element model eventually becomes a large matrix system. The determinant tells you whether the map can be reversed, and the inverse matrix reverses it.

Key concepts and formulas

How to solve the problems

  1. Write down the dimensions first, so you can see whether the product is defined and how large it is.
  2. Compute products element by element: row times column.
  3. 3×33\times 3 determinant: expand along the row or column with the most zeros. For triangular matrices the determinant is the product of the diagonal.
  4. Inverse: check that det⁡A≠0\det A \neq 0 first, and verify the answer with AA−1=IAA^{-1} = I.
  5. Small systems Ax⃗=b⃗A\vec x = \vec b can be solved with x⃗=A−1b⃗\vec x = A^{-1}\vec b. Large systems are solved by elimination.

Example

Solve Ax⃗=b⃗A\vec x = \vec b with A=(3152)A = \begin{pmatrix}3&1\\5&2\end{pmatrix} and b⃗=(4,7)\vec b = (4, 7).

  1. det⁡A=3⋅2−1⋅5=1≠0\det A = 3\cdot 2 - 1\cdot 5 = 1 \neq 0, so AA is invertible.
  2. A−1=11(2−1−53)A^{-1} = \frac11\begin{pmatrix}2&-1\\-5&3\end{pmatrix}.
  3. x⃗=A−1b⃗=(2⋅4−1⋅7, −5⋅4+3⋅7)=(1,1)\vec x = A^{-1}\vec b = (2\cdot 4 - 1\cdot 7,\ -5\cdot 4 + 3\cdot 7) = (1, 1).
  4. Check: 3+1=43 + 1 = 4 and 5+2=75 + 2 = 7. Correct.

Common mistakes

Row times column, and the order matters. det⁡A≠0\det A \neq 0 means that AA is invertible and that Ax⃗=b⃗A\vec x = \vec b has exactly one solution.

Concepts in this part

Practise matrices in the app →

2. Linear systems and eigenvalues

What is it about?

Many engineering problems end up as a system of linear equations Ax⃗=b⃗A\vec x = \vec b: currents in a circuit, member forces in a truss, temperatures at a grid of points. Gaussian elimination solves such systems systematically and tells you whether there is one solution, none or infinitely many.

Eigenvalues are about the special directions in which a matrix only stretches or shrinks: Av⃗=λv⃗A\vec v = \lambda\vec v. They determine natural frequencies of vibrating systems, stability of control systems and the long-term behavior of models that are updated step by step.

Key concepts and formulas

How to solve the problems

  1. Write the augmented matrix [A∣b⃗][A \mid \vec b] and eliminate downward to echelon form.
  2. Read off the result: a contradiction, free variables or a unique solution. Back-substitute from the bottom row.
  3. Eigenvalues: set up the characteristic equation and solve it.
  4. For each eigenvalue: find a nonzero vector with (A−λI)v⃗=0⃗(A - \lambda I)\vec v = \vec 0. The rows are then linearly dependent, so one of them is enough for a 2×22\times 2 matrix.
  5. Check with the trace and determinant, and by computing Av⃗A\vec v.

Example

Find the eigenvalues and eigenvectors of A=(5222)A = \begin{pmatrix}5&2\\2&2\end{pmatrix}.

  1. tr⁡A=7\operatorname{tr}A = 7 and det⁡A=10−4=6\det A = 10 - 4 = 6, so λ2−7λ+6=(λ−1)(λ−6)=0\lambda^2 - 7\lambda + 6 = (\lambda - 1)(\lambda - 6) = 0.
  2. λ=6\lambda = 6: A−6I=(−122−4)A - 6I = \begin{pmatrix}-1&2\\2&-4\end{pmatrix}. The first row gives −v1+2v2=0-v_1 + 2v_2 = 0, so v⃗=(2,1)\vec v = (2, 1).
  3. λ=1\lambda = 1: A−I=(4221)A - I = \begin{pmatrix}4&2\\2&1\end{pmatrix} gives 2v1+v2=02v_1 + v_2 = 0, so v⃗=(1,−2)\vec v = (1, -2).
  4. Check: A(2,1)=(12,6)=6⋅(2,1)A(2, 1) = (12, 6) = 6\cdot(2, 1). The eigenvectors are perpendicular, as expected for a symmetric matrix.

Common mistakes

Elimination decides how many solutions a system has. Eigenvalues come from det⁡(A−λI)=0\det(A - \lambda I) = 0, and their sum and product must match the trace and the determinant.

Concepts in this part

Practise linear systems and eigenvalues in the app →

3. Differential equations

What is it about?

A differential equation relates an unknown function to its own derivatives. It describes how something changes: a capacitor being charged, a cup of coffee cooling down, a mass oscillating on a spring. Solving the equation means finding the function. The initial conditions pick out the one solution that fits the situation.

Key concepts and formulas

How to solve the problems

  1. Determine the type: separable, first-order linear, or linear with constant coefficients.
  2. Find the general solution, with constants.
  3. If the equation is nonhomogeneous, find ypy_p and add it to yhy_h.
  4. Apply the initial conditions last, to the complete solution yh+ypy_h + y_p.
  5. Check by substituting the solution into the equation.

Example

Solve y′′+3y′+2y=4y'' + 3y' + 2y = 4 with y(0)=0y(0) = 0 and y′(0)=0y'(0) = 0.

  1. Homogeneous part: r2+3r+2=(r+1)(r+2)=0r^2 + 3r + 2 = (r + 1)(r + 2) = 0 gives yh=C1e−x+C2e−2xy_h = C_1e^{-x} + C_2e^{-2x}.
  2. The right-hand side is constant, so try yp=Ky_p = K: 2K=42K = 4 gives K=2K = 2.
  3. y=C1e−x+C2e−2x+2y = C_1e^{-x} + C_2e^{-2x} + 2. The initial conditions give C1+C2+2=0C_1 + C_2 + 2 = 0 and −C1−2C2=0-C_1 - 2C_2 = 0.
  4. This gives C2=2C_2 = 2 and C1=−4C_1 = -4, so y=2−4e−x+2e−2xy = 2 - 4e^{-x} + 2e^{-2x}.

The solution starts at 0 and approaches the equilibrium y=2y = 2 without oscillating, because the roots are real and negative.

Common mistakes

The characteristic equation gives the form of the solution: real roots give exponentials, complex roots give oscillations. The initial conditions are applied at the very end.

Concepts in this part

Practise differential equations in the app →

Example problems with solutions

Here are some of the problems in linear Algebra and Differential Equations. In the app, calculation problems get new numbers every time, so you can practise until it sticks – and take a graded practice exam before the real one.

Matrices: det⁡(2134)=\det\begin{pmatrix}2&1\\3&4\end{pmatrix} =

Answer: 5

2⋅4−1⋅3=52\cdot 4 - 1\cdot 3 = 5.

Linear systems and eigenvalues: What is the largest eigenvalue of (4123)\begin{pmatrix}4&1\\2&3\end{pmatrix}?

Answer: 5

λ2−7λ+10=0\lambda^2 - 7\lambda + 10 = 0 gives λ=5\lambda = 5 and 22.

Differential equations: What is the general solution of y′=kyy' = ky?

Answer: y=Cekxy = Ce^{kx}

Solved by separation of variables.

Matrices: A square matrix AA is invertible if and only if …

Answer: det⁡A≠0\det A \neq 0

This is also equivalent to the columns being linearly independent.

Practise all the problems →

Matches these university courses

The content covers the syllabus found in engineering degrees, for example: