Introductory college-level practice for students heading into these classes. Try each problem first, then open the worked solution.
Linear Algebra8 problems
First-year course for math, engineering, and computer science majors: matrices, vector spaces, and eigenvalues — the language behind computer graphics, data science, and quantum mechanics.
Problem 1Matrix multiplication
Let A = [[1, 2], [3, 4]] and B = [[2, 0], [1, 2]]. Compute AB.
Worked solution
Multiply row by column: the (i, j) entry is row i of A dotted with column j of B.
(1, 1): 1·2 + 2·1 = 4. (1, 2): 1·0 + 2·2 = 4.
(2, 1): 3·2 + 4·1 = 10. (2, 2): 3·0 + 4·2 = 8.
Answer: AB = [[4, 4], [10, 8]]
Problem 2Determinants
Compute the determinant of [[2, 1, 0], [3, −1, 2], [0, 1, 1]].
A nonzero determinant means only the trivial combination gives the zero vector.
Answer: Yes, they are linearly independent
Problem 7Rank and nullity
For A = [[1, 2, 1], [2, 4, 2], [1, 1, 0]], find the rank and the nullity.
Worked solution
Row 2 is twice row 1, so it adds nothing; rows 1 and 3 are independent.
Rank = 2. By rank–nullity, nullity = 3 − 2.
So the null space is one-dimensional.
Answer: Rank 2, nullity 1
Problem 8Linear transformations
Let T(x, y) = (x + y, x − y). By what factor does T scale areas?
Worked solution
The matrix of T is [[1, 1], [1, −1]].
Its determinant is (1)(−1) − (1)(1) = −2.
Area scales by the absolute value of the determinant.
Answer: 2
Multivariable Calculus8 problems
The third calculus course: functions of several variables, gradients, multiple integrals, and optimization — the math behind physics, economics, and machine learning.
Problem 1Partial derivatives
Let f(x, y) = x³y + 2xy². Find fx(1, 2) and fy(1, 2).
Worked solution
fx = 3x²y + 2y², so fx(1, 2) = 6 + 8 = 14.
fy = x³ + 4xy, so fy(1, 2) = 1 + 8 = 9.
Answer: (14, 9)
Problem 2Directional derivatives
Let f(x, y) = x² + 3xy. Find the directional derivative at (1, 1) in the direction of (3, 4).
Worked solution
∇f = (2x + 3y, 3x), so ∇f(1, 1) = (5, 3).
The unit vector in direction (3, 4) is (3/5, 4/5).
The course where calculus models the real world: population growth, circuits, springs, and mixing tanks — solved with separable, linear, and second-order methods.
Use Euler's method with step h = 0.5 to estimate y(1) for y′ = x + y, y(0) = 1.
Worked solution
Step 1: y(0.5) ≈ 1 + 0.5·(0 + 1) = 1.5.
Step 2: y(1) ≈ 1.5 + 0.5·(0.5 + 1.5) = 1.5 + 1.0.
Two steps of size 0.5 reach x = 1.
Answer: ≈ 2.5
Problem 7Mixing problems
A tank holds 100 L of water with 10 kg of salt dissolved. Brine at 0.5 kg/L flows in at 4 L/min, and the well-mixed solution drains at 4 L/min. How much salt is in the tank after t minutes?
Worked solution
Salt changes at (inflow rate) − (outflow rate): dA/dt = 4·0.5 − (4/100)A = 2 − A/25.
Solve the linear equation: A(t) = 50 + Ce−t/25.
A(0) = 10 gives C = −40. As t → ∞, the salt approaches 50 kg.
Answer: A(t) = 50 − 40e−t/25 kg
Problem 8Repeated roots
Solve y″ − 4y′ + 4y = 0.
Worked solution
Characteristic equation: r² − 4r + 4 = (r − 2)² = 0, a repeated root r = 2.
One solution is e2x; for a repeated root the second is xe2x.
General solution: any combination of the two.
Answer: y = (C₁ + C₂x)e2x
All problems are original practice written for these classes, not past exam questions. Video walkthroughs for these problems are coming — for now, try each problem first, then open the worked solution.