Skip to content
Maths and science

Linear Algebra

A first course in linear algebra built on pictures as much as formulas. You work with vectors and dot products, solve systems by row reduction, treat matrices as moves of space, and learn determinants, inverses, span, basis, rank and eigenvalues. The last lesson shows how diagonalisation, Markov chains and principal components use the same ideas in graphics and machine learning. It includes worked examples, a slider-driven playground and two short code exercises.

Linear Algebra 9 lessons 4 hours of lessons 45 practice questions Free
The course

Every lesson, in order

Planned as 9 weeks at 4 sessions a week, about 40 minutes each. Each lesson opens here in full; in BiliMind your answers are marked and your flashcards come back before you forget them.

9 topics · 3 hr 32m
0% done
Recommended Alternative Learn anytimeChecked from memory Checked from memoryRead ReadLearning LearningNot started Not started

Linear Algebra

Start here The finish line
  1. Vectors

    20 min

    Add, scale and measure vectors, compute dot products and angles, and project one vector onto another.

    • A linear combination uses only vector addition and scalar multiplication.
    • |v| = √(sum of squares); divide by it to get a unit vector.
    • u · v = Σ uᵢvᵢ = |u||v| cos θ.
    • u · v = 0 means u and v are perpendicular.
    • proj_u(v) = [(u · v)/(u · u)] u.
  2. Solve systems of linear equations by Gaussian elimination, read the result from the reduced form, and tell unique, infinite and no-solution cases apart.

    • Row operations (swap, scale, add a multiple) never change the solution set.
    • A pivot is the first nonzero entry in a row of echelon form; the number of pivots is the rank.
    • [0 0 0 | c] with c ≠ 0 means no solution.
    • A variable column without a pivot is free and gives infinitely many solutions.
    • For a consistent system: free variables = unknowns − rank.
  3. Multiply matrices, read a matrix-vector product as a combination of columns, and know the rules that differ from ordinary numbers.

    • AB is defined only when the inner sizes match; the result is (rows of A) × (columns of B).
    • Entry (i, j) of AB is row i of A dotted with column j of B.
    • Ax is a linear combination of the columns of A, weighted by x.
    • Matrix multiplication is not commutative, and (AB)ᵀ = BᵀAᵀ.
    • Ax = b asks whether b is in the span of A's columns.
  4. See a matrix as a function that moves space: rotations, scalings, shears and reflections, built column by column, and composed by multiplication.

    • Every linear transformation of the plane is x → Ax for a 2 × 2 matrix A.
    • Column 1 of A is where e₁ lands; column 2 is where e₂ lands.
    • Doing T then S is multiplication by ST: order matters.
    • A scales areas by |det A|.
    • Rotations, scalings, reflections, shears and projections are all linear.
  5. Compute determinants and inverses, understand them as area scaling and as an 'undo' operation, and know exactly when an inverse exists.

    • det [a b; c d] = ad − bc; it is the area scale factor, with a sign for orientation.
    • A is invertible exactly when det A ≠ 0.
    • 2 × 2 inverse: swap a and d, negate b and c, divide by ad − bc.
    • det(AB) = det A · det B and (AB)⁻¹ = B⁻¹A⁻¹.
    • If A is invertible, Ax = b has the unique solution x = A⁻¹b.
  6. Describe which vectors a set can build (span), decide whether they are redundant (independence), and choose a basis and dimension.

    • Span: all linear combinations. To test membership, solve a linear system.
    • Independent: only the trivial combination gives 0; no vector is redundant.
    • A basis is an independent spanning set; dimension is the size of any basis.
    • n vectors in Rⁿ form a basis exactly when det ≠ 0.
    • A subspace contains 0 and is closed under addition and scaling.
  7. Find a matrix's rank, column space and null space, and use the rank-nullity theorem to count solutions.

    • Col(A) is the set of reachable outputs b; Null(A) is the set of inputs sent to 0.
    • Rank = number of pivots = dimension of Col(A).
    • Rank + nullity = number of columns.
    • All solutions of Ax = b are one solution plus anything in Null(A).
    • A square matrix is invertible exactly when its rank equals its size.
  8. Find the directions a matrix only stretches, compute eigenvalues from the characteristic polynomial, and check them with trace and determinant.

    • Av = λv: an eigenvector keeps its line; λ is the stretch factor.
    • Eigenvalues solve det(A − λI) = 0; for 2 × 2 that is λ² − (trace)λ + det = 0.
    • Sum of eigenvalues = trace; product = determinant.
    • Triangular matrices have their diagonal as eigenvalues.
    • A singular matrix has 0 as an eigenvalue.
  9. Use eigenvectors to compute powers of a matrix, follow a Markov chain to its steady state, and see how the same ideas drive graphics and machine learning.

    • A = PDP⁻¹ gives Aᵏ = PDᵏP⁻¹: power the eigenvalues, not the matrix.
    • A steady state is an eigenvector with eigenvalue 1.
    • In a Markov chain the other eigenvalues have size below 1 and fade away.
    • Graphics, PCA and ranking all rest on matrices and eigenvectors.
    • Symmetric matrices always diagonalise, with perpendicular eigenvectors.
01What do I need before linear algebra?

Comfortable algebra and coordinates in the plane. No calculus is required for this course.

02Why is linear algebra important for machine learning?

Data is stored as vectors and matrices, models are matrix products, and methods like principal component analysis and recommender systems are eigenvector problems.

03What is the difference between a vector and a matrix?

A vector is a list of numbers (one column). A matrix is a grid of numbers. A matrix acts on vectors, turning one vector into another.

04Why is matrix multiplication defined in such a strange way?

Because it makes the product of matrices equal to the composition of the transformations they represent. The first column of AB is A applied to the first column of B.

05What does it mean that a matrix is singular?

It has no inverse: its determinant is 0, its columns are dependent, and it squashes space onto something smaller, so information is lost.

Study it properly, free

Start the course in BiliMind and it's yours: 45 questions marked as you go, 54 flashcards on spaced review, a plan around your week, and an assistant that can change any lesson.