These notes are taken from the resource book and were originally written by Dr Erwin. I will be editing and adding to them throughout. Most mistakes within them can thus be presumed to be mine rather than Dr Erwin’s.
In this section we are going to develop a new set of methods to solve a type of problem we are relatively familiar with. We will find a way to translate between methods we know well, but which turn out not to be very efficient, methods which are graphically very intuitive, but not very calculationally useful, and methods which are computationally extremely powerful, but appear rather abstract compared with the other two ways of looking at these problems. These three methods which we will utilise in detail in the coming sections are shown in the following diagram:
As we go through I will try and show how we can go between these apparently different formalisms. To start with we won’t use matrices, but as we come on to them we will first think that they are horrible and abstract, and then realise that the machinery we develop for them is incredibly powerful.
Let’s start with a very simple example of a question which will be the type that we will eventually want to answer using matrices.
Suppose that we want to find all values of and for which
(to be clear: we wish to find the values of and that satisfy both of these equations simultaneously). This is a system of linear equations. Solving this system is easy: Rewrite the first equation as and substitute this into the second equation to get From this, it follows that and so
Here we have treated the system purely algebraically, but let’s see what we’ve done graphically. Each of these equations is a constraint on the points in the plane – this simply corresponds in this case to two lines. Which look like this:
What we mean by having solved the equations is to have converted them into two new equations, one which involves only x, and one which involves only y (note that we can’t think of the former as a function, because it’s not single valued). These two new equations and correspond to two new lines which we plot on the same graph:
In some way we’ve combined the two equations together to get two new equations which correspond to horizontal and vertical lines, where before we had intersecting slanted lines. The solution corresponds to the point of intersection of the two original lines, and of course to the intersection of the two new lines.
In two dimensions this is relatively easy to see, and indeed in three dimensions as we will see too, but in higher dimensions it is harder to visualise. However, we should still keep in mind what is happening geometrically in higher dimensions.
In principle, we can apply the same method as above (eliminating the variables) to any system of linear equations. However, if we are asked to solve a system like
then things are going to get messy, fast, unless we have a systematic method. In this section of the course, we shall develop some systematic methods for solving systems of linear equations.
Systems of linear equations
Definition: An equation of the form (where are variables and are real numbers) is called a linear equation in the variables .
Each of the following is either a linear equation or can be rewritten as one:
Each of the following is not a linear equation:
Suppose we are given several linear equations and asked to determine which values of the variables satisfy all of them simultaneously. To be specific, suppose that we are given linear equations in the variables :
This is called a system of linear equations. If are real numbers for which
(i.e., if satisfies every one of these linear equations), then the vector is a solution of this system of linear equations.
Consider the system of linear equations
the vector is a solution of this system. Note that here we are moving away from the notation for a vector as and interchangeably using the coordinate and the vector which goes from the origin to that coordinate.
Consider the system of linear equations
From the first equation, we have . Substituting into the second equation, we get which after simplification becomes which is not true. This system of linear equations therefore has no solution. We can see the reason for this when we plot these equations and see that they look like
They don’t intersect anywhere and thus they have no solution.
We can see from the example above that some systems of linear equations have no solution. And, while we found a solution to the system of linear equations in the first example, we do not know whether is the only solution or whether there are others. We shall therefore ask two, related, questions:
Given a system of linear equations:
1) Does the system have at least one solution?
2) If it does, how do we find all the solutions?
When we are asked to solve a system of linear equations, we must either show that the system has no solution, or we must find all the solutions of the system. The set of all such vectors is called the solution of that system.