Linear equations
A linear equation in a set of variables is a equation of the form for constant numbers .
So, for example, would be a linear equation in 4 unknowns.
Most equations you have seen are not linear. For example, or
In general, linear equations are the simplest types of mathematical equations so we better be able to handle them quickly and efficiently.
Solving a single linear equation
Say we wanted to solve the equation How would we go about doing this?
First, we need to be a bit more precise about what we mean to “solve the equation”. What we want here is often called a *parametric” representation of the solution. We want to identify some free variables that can be used to determine all the solutions explicitly.
As you might have done or seen before, this can be accomplished by “solving out” a variable using the equation. We can rewrite the equation as
Now, given any possible values of , we can use the new form of the equation to find a value for so that we solve the equation. For example, if we take , then plug in to get and is a solution to the equation.
Great! You might think we have mastered single linear equations. To find the solution to in general, we pick some and then we can solve for as
We can try another example to test our understanding. How about solving
One possible point of confusion is: how many variables are we using? We only see 2 in the equation but the biggest index is a 4. So are we using 2 unknowns or 4 unknowns? We will often infer the number of unknowns in the linear equation (and system) from the context. The convention we will use will be this is an equation in 4 unknowns. But, do not be afraid to ask for clarification.
Back to the example. Let us pick to solve out Then, our general (parametric) solution would look like .
We might be satisfied with our understanding but there is actually one case that breaks our algorithm.
What happens if all and , say ? Then, we are looking at an immediate problem is not satisfiable for any values of our unknowns. In this case, there are no solutions.
This situation may seem contrived. Often in mathematics, a general understanding often hinges on properly understanding the edge cases of a problem. Linear algebra is no different. Encountering will be a natural possibility once we have developed enough tools.
Before we turn to systems of linear equations, let’s recap some important points:
Algorithm for solving a linear equation:
We can summarize the algorithm for solving described above.
Step 1
If we have an equation of the form with , then output “No Solution”.
Step 2
Otherwise, identify some with and solve for in terms of the other variables.
Dichotomy of solutions:
For a linear equation, , we have three possibilities
- there can be infinitely-many solutions (if and either not all are or ),
- there can be a unique solution (if and either not all are or ), or
- there can be no solutions at all (if all are and ).
We will see this dichotomy continues to hold for systems of linear equations.