Let's start super basic with a single linear equation.
Two variables:
Three variables:
variables:
In two variables, the equation represents a line, that is solutions to the equation form a line. It is equivalent to the form.
In three variables, the equation represents a plane. This is where the physical imagery ends, but the geometric intuition can extend to arbitrary number of variables.
The number on the right hand side (RHS) of these equations contain information about the displacement of the line/plane. For example, if the RHS is zero, then the line/plane contains the origin.
We can combine linear equations to form a systems of linear equations.
A linear system in variables and equations is a collection of linear equations, each with variables:
It is convenient to call such a system an system.
The solution to a linear system in variables is a point which satisfies every equation in the system.
is a solution to
The geometric interpretation is that a system of equations is the intersection of different lines/planes. Depending on how these lines/planes intersect, we can have different number of solutions.
Linear systems are not just for solving geometric questions. They can also arise in many scientific contexts. For example, suppose we want to balance a chemical reaction like the combustion of methane:
In particular, we want to find values such that the atoms (in both number and type) contained in
are exactly the same (in both number and type) as the atoms contained in
Equivalently, we have the following equations we want to solve
We can rewrite these three equations as a system:



We will learn through the study of linear algebra why this is the case. For a direct answer, think about how we can get new solutions from existing ones, which will contradict finiteness of solutions. Hint: is the average of two solutions a solution?
Find solutions to:
Solution: An approach many students learn first is to "isolate" a variable in one of the equations. For example,
Then, we "plug" that variable into the other equation. Using , we get
This allows us to first determine that or rather . This can be plugged into either of the original equations to get . So the solution is .
The process we used in the previous example can be extremely tedious and inefficient when we have a large number of equations and unknowns. Instead, we want to be able to systematically solve these linear systems. Two observations will give us a nice way of doing this.
Note that if , then and have the same solutions because we can multiply/divide by as needed to show that a solution to one equation is a solution to the other. Geometrically, the two equations represent the same exact "plane".
The system
has the same solutions as
because we can add/subtract the first equation as needed to show that a solution to one system is a solution to the other system. Geometrically, the second plane is being rotated about the intersection.
The fact that these two "operations" of scaling and adding equations are reversible or "invertible" is what makes them preserve the solutions. We can use these two operations to simplyify our systems into equivalent systems whose solution is very easy to determine.
Find solutions to
Solution: If we multiply the first equation by and add it to the second equation we can get a new equation .
By the two observations, the original system has the same solutions as the new system
Then we can immediate solve for and then plug this into the first equation to get .
While the solution method isn't much different from the first method, it is generalizable to arbitrary linear systems. To be more specific, what we did was use multiples of the first equation to reduce the number of variables in the remaining equations. We can do this for each equation to get an equivalent system where the last equation has 1 variable and is thus easy to solve. Then by repeatedly plugging in our results, we can solve the remaining equations in reverse order.
Find solutions to
Solution: Using the above method, we can replace with
and with
This gives us an equivalent system
where the last two equations form an easier to solve system. In particular, we can add the second equation to the third equation to get another equivalent system
Then we can easily solve the equations in reverse order to get , and then so the solution is .
When solving linear systems, as long as each equation has the same order of variables, we can declutter our arithmetic by only working with the coefficients. More specifically, we can represent a linear system
by its so-called augmented matrix:
Then any operations that we perform on the linear system (adding equations, scaling equations, etc.) can be done on the rows of the augmented matrix.
Find solutions to
Solution: Using the method above, we will end up adding the first equation to the third equation which will result in ,
which is not true. Thus the system has no solutions. We can also recognize that the first and third equations give before we try the method. Such a linear system where some equations are "inconsistent" with each other is called an inconsistent system.
Find solutions to
Solution: Note that geoemtrically, we are looking for the intersection of two planes in three-dimensional space. Since the two planes are not parallel, this intersection will be a line. So we should expect infinitely many solutions. Indeed, if we proceed with the method and add the first equation to the second equation, we get an equivalent system
So we have any solution will have . Moreover, as long as we have , then we have a solution. Thus a formula for the solution is
where is any number. Alternatively, we have that
is a solution for any .
A system that has no solution is called inconsistent.
A system with more variables/unknowns than equations (like in the last example) is called underdetermined.
A system with more equations than unknowns/variables is called overdetermined.