Each class is a short animated explainer with narration and illustrations, plus quick checks and a mastery quiz. Your progress saves automatically as you complete classes.
▶ Watch class 1 free — no sign-upEvery class is 13 cards · narrated film + illustration · 3 quick checks · an interactive · a 5-question mastery quiz. Nothing hidden — this is the complete text of Why Does Linear Algebra Matter?.
What does a Netflix recommendation have in common with a CT scan? Or the search results from Google with the physics of a subatomic particle? They seem entirely unrelated, operating in different domains of science and technology. Yet they all share a common mathematical foundation. They are all, at their core, problems of linear algebra. This field is more than just a prerequisite for higher mathematics. It is the language we use to describe and manipulate systems of interconnected data. It is the framework that turns vast, high-dimensional problems into solvable, structured equations. Over the next several weeks, we will build this framework from the ground up, starting not with abstract axioms, but with the fundamental question that drove its discovery: how do we solve for many unknowns at once?
What happens when we have millions of data points and thousands of variables?
The central problem that linear algebra addresses is complexity at scale. The algebra you learned in high school is excellent for solving for one or two variables. You can find where two lines intersect. With some effort, you can find where three planes intersect in 3D space. But what about a system with a thousand variables, describing a thousand interacting components? Imagine modeling a national economy, analyzing a genetic dataset, or training a neural network. Our geometric intuition completely fails in a thousand-dimensional space. We can't visualize it. We can't solve it by simple substitution. This is often called the 'curse of dimensionality.' Without a systematic language to organize this complexity, we are paralyzed. The problem isn't just computational; it's conceptual. How do we even reason about the properties of such a system? How do we describe its state, its transformations, and its solutions in a way that is both precise and manageable? This is the gap that linear algebra fills. It provides the notation, the concepts, and the algorithms to conquer this complexity.
At its core, it's about two simple rules and what they preserve.
Formally, linear algebra is the study of vectors, vector spaces, and the linear maps between them. A vector space is a collection of objects called vectors, which can be added together and multiplied by scalars. The crucial concept here is linearity. A transformation, T, is linear if it satisfies two properties for any vectors u and v and any scalar c. First, additivity: T of u plus v equals T of u plus T of v. Second, homogeneity: T of c times u equals c times T of u. Intuitively, this means the transformation preserves the structure of the space. It keeps grid lines parallel and evenly spaced. It doesn't curve or tear the space; it only stretches, shrinks, reflects, or rotates it. This property of structure preservation is what makes linear systems so tractable. They behave predictably. We are, in essence, studying the geometry of flat surfaces—lines, planes, and their higher-dimensional analogues called hyperplanes—and the transformations that map these flat surfaces onto one another.
The ideas we'll study are both thousands of years old and at the bleeding edge of physics.
The roots of linear algebra are ancient. The problem of solving systems of simultaneous linear equations appears in the Chinese text 'The Nine Chapters on the Mathematical Art,' compiled around 200 BCE. They used a method on counting boards that is strikingly similar to what we now call Gaussian elimination. However, the modern, more abstract formulation took centuries to develop. In the 17th century, Leibniz studied determinants, but it was in the 19th century that the field truly coalesced. In 1858, the English mathematician Arthur Cayley published 'A Memoir on the Theory of Matrices,' which for the first time treated matrices as distinct algebraic objects. Around the same time, the German polymath Hermann Grassmann developed the abstract notion of a vector space. For decades, this work was considered pure, abstract mathematics. Its profound utility wasn't realized until the early 20th century with the birth of two fields: quantum mechanics and modern computing. Werner Heisenberg's matrix formulation of quantum mechanics in 1925 was a watershed moment, demonstrating that the physical world, at its most fundamental level, was described by the rules of linear algebra.
Everything begins with a simple, ancient problem: finding where lines intersect.
So how does it work? Let's start with the concrete. Consider a system of linear equations, say 2x plus 3y equals 8, and x minus y equals 1. Geometrically, we are looking for the point (x, y) where two lines intersect on a plane. We can solve this through substitution or elimination. Now, imagine three equations with three unknowns. This is the intersection point of three planes in 3D space. The algebra gets more tedious, but it's still manageable. But for a system of N equations in N unknowns, our geometric picture fades. The core mechanic of linear algebra is to systematize the process of elimination. We first encode the system into a matrix of coefficients and a vector of constants. For our simple example, the matrix would be [[2, 3], [1, -1]], and the vector would be [8, 1]. The process we use, called Gaussian elimination or row reduction, is a precise algorithm of elementary row operations: swapping two rows, multiplying a row by a non-zero scalar, and adding a multiple of one row to another. These operations do not change the solution set of the system. The goal is to transform the matrix into an upper triangular form, or 'row echelon form,' from which the solution can be found by back-substitution. This mechanical procedure is the engine room of linear algebra.
This is the central equation of the entire field.
The syntax that encapsulates this entire process is the deceptively simple matrix equation: A times x equals b. Let's dissect it. 'A' is an m-by-n matrix, called the coefficient matrix. It contains all the coefficients of our variables. More deeply, we can view 'A' as a linear transformation, an operator that takes a vector from n-dimensional space and maps it to a vector in m-dimensional space. 'x' is a column vector of our n unknown variables. This is the object we are trying to solve for. It represents a point, or a direction and magnitude, in n-dimensional space. 'b' is an m-dimensional column vector of the constants on the right-hand side of our equations. We can think of it as the target vector. So, the equation Ax = b is asking a question. In the language of transformations, it asks: 'Is there a vector x that, when transformed by A, lands precisely on the vector b?' Alternatively, in the language of vector combinations, it asks: 'Can the vector b be written as a linear combination of the column vectors of A, with the weights given by the elements of x?' This single equation holds these dual interpretations, and switching between them is a key skill.
Linear algebra gives us a new set of eyes to see mathematical structure.
Beyond solving equations, linear algebra introduces several powerful, recurring concepts. The first is duality. As we just saw with Ax=b, we can view the problem from two perspectives: the 'row picture,' which sees the system as an intersection of hyperplanes, and the 'column picture,' which sees it as a combination of vectors. This ability to switch perspectives is a constant theme. The second key feature is the formalization of dimensionality and basis. A basis for a vector space is a set of linearly independent vectors that span the entire space. The number of vectors in the basis is the dimension of the space. This gives us a rigorous way to define what we mean by 2D, 3D, or n-dimensional space, and it provides a coordinate system for every vector. Finally, the idea of decomposition is central. We can often factorize a complex matrix into the product of simpler, more fundamental matrices. Decompositions like the LU decomposition, the QR decomposition, or the singular value decomposition (SVD) reveal the intrinsic properties of the transformation the matrix represents. They are the workhorses of numerical computation.
Let's model a simple traffic network using these ideas.
Let's make this concrete with a network flow problem. Imagine a small network of one-way streets. At each intersection, the number of cars entering must equal the number of cars exiting. This is a conservation law. Let's say we have two intersections. At intersection 1, a known 100 cars/hour enter from the outside, and the flow splits into two streets, x1 and x2. So, our first equation is x1 plus x2 equals 100. At intersection 2, flows x1 and a known 50 cars/hour enter, and flow x3 exits. So, our second equation is x1 plus 50 equals x3. Finally, at a third intersection, x2 and x3 combine to exit the network. Let's say the total exit flow is y. So, x2 plus x3 equals y. We can arrange these equations: x1 plus x2 equals 100, and x1 minus x3 equals negative 50. We can write this in Ax=b form. The matrix A would be [[1, 1, 0], [1, 0, -1]], the vector of unknowns x would be [x1, x2, x3], and the vector b would be [100, -50]. By performing Gaussian elimination on the augmented matrix, we can find the relationships between the flows. This same principle applies to electrical circuits (Kirchhoff's Laws), financial flows, and data packets on the internet.
The world is not always straight. When does our beautiful machinery break?
The primary limitation of linear algebra is right in its name: it assumes linearity. Many systems in the real world are fundamentally non-linear. The weather, fluid dynamics, population growth, and financial markets exhibit chaotic and complex behaviors that cannot be accurately captured by linear models. A linear model is often just a first-order approximation of a non-linear reality, valid only over a small local region. Think of it as the tangent line to a curve; it's a good approximation near the point of tangency, but it diverges quickly. Another significant tradeoff is numerical stability. When working with computers, we are limited by floating-point arithmetic. For certain types of matrices, known as 'ill-conditioned' matrices—where columns are nearly parallel—small rounding errors during computation can lead to massive errors in the final solution. An answer might be produced, but it could be meaningless. Finally, there's the issue of interpretability. We can solve a system with a million variables, but what does the solution, a vector with a million components, actually mean? The mathematical solution does not automatically confer understanding.
If calculus is the mathematics of change, linear algebra is the mathematics of structure.
How does linear algebra relate to other mathematical fields? Its closest counterpart in the undergraduate curriculum is calculus. Where calculus deals with continuous functions, rates of change, and curves, linear algebra deals with discrete systems, flat spaces, and transformations. Calculus is the mathematics of 'becoming,' while linear algebra is the mathematics of 'being.' However, the two are deeply intertwined. In multivariable calculus, the derivative of a function at a point is not a number but a linear transformation—the best linear approximation of the function at that point. This transformation is represented by the Jacobian matrix. Thus, we use the tools of linear algebra to understand the local behavior of non-linear functions. Compared to abstract algebra, linear algebra is a more concrete specialization. A vector space is a specific type of algebraic structure, but our focus is less on proving theorems from axioms and more on the geometric intuition and computational power that this structure provides. It sits in a beautiful sweet spot between the abstract and the applied.
Here are the three most common traps to avoid.
As you begin your study, there are several common conceptual pitfalls to be aware of. The first is treating matrices like ordinary numbers. Students often assume that matrix multiplication is commutative—that A times B is the same as B times A. It is not, in general. There is also no direct matrix division. Instead, we use the matrix inverse, A inverse, which only exists for certain square matrices. The second pitfall is getting lost in the algebraic manipulation and losing the geometric intuition. Performing row operations can feel like a rote procedure, but you should always keep the geometric picture in mind. What does this operation correspond to in terms of intersecting planes or transforming vectors? Maintaining this connection is crucial. A third common mistake is over-relying on the determinant. While theoretically important for understanding invertibility, calculating the determinant for large matrices is computationally inefficient and numerically unstable. In practice, we rarely use it to solve systems. Methods like Gaussian elimination or matrix decompositions are far more robust and practical.
Theory is essential, but we solve real problems with software and books.
To put these ideas into practice, you'll need the right tools. For computation, the world runs on libraries like BLAS (from the late 1970s) and LAPACK (released in 1992), which are Fortran libraries that contain highly optimized routines for matrix operations. You will likely interact with them through higher-level environments. MATLAB was the original standard for numerical computing. Today, the open-source ecosystem, particularly Python with the NumPy and SciPy libraries, is equally powerful and widely used. For textbooks, the classic for an intuitive, application-focused approach is Gilbert Strang's 'Introduction to Linear Algebra.' It emphasizes the 'four fundamental subspaces' and the column-space view of Ax=b. For a more rigorous, proof-based perspective, Sheldon Axler's 'Linear Algebra Done Right' is an excellent choice. It builds the theory from the ground up, focusing on linear operators and famously postponing determinants to the final chapter. Finally, to appreciate the broader context, reading Eugene Wigner's 1960 essay, 'The Unreasonable Effectiveness of Mathematics in the Natural Sciences,' is an enlightening experience.
Let's move beyond theory. Your task this week is to make something move.
For your first problem set, you will not just solve a static system of equations. You will apply a transformation. Your task is to take a simple two-dimensional shape—for instance, a square defined by its four corner vertices (0,0), (1,0), (1,1), and (0,1). Represent each of these four points as a 2-by-1 column vector. Next, you will construct a 2-by-2 transformation matrix, A. Start with a rotation matrix: the first column is [cos(theta), sin(theta)] and the second is [-sin(theta), cos(theta)]. Pick an angle, say 45 degrees or pi over 4 radians. Apply your matrix A to each of the four vertex vectors by computing the matrix-vector product Ax. This will give you four new vectors. Plot the original square and the new shape formed by these four transformed vertices. Then, experiment. What matrix stretches the square only in the x-direction? What matrix shears it, turning the square into a parallelogram? This exercise is designed to build a direct, tangible link between the abstract algebra of matrix multiplication and the concrete geometry of transforming space.
Linear algebra provides the language for describing systems of relationships and the tools for solving them at scale. It is the bridge between abstract geometric structure and concrete computational problems.