Systems of linear equations: Systems of linear equations
Elementary operations on systems of linear equations
We now discuss a general system of linear equations with unknowns in the following form Here all and with are real or complex numbers.
We have already noted that such a system has no solution, one solution, or multiple solutions. For example, it is easy to check that and are solutions of the following system: The question is, whether there are any more solutions, and, if so, how they can be determined in a systematic manner.
We first discuss the elimination method for solving systems of linear equations. The strategy is to apply the following elementary operations to systems of linear equations, so as to obtain a simpler system step by step:
Elementary operations on systems of linear equations In addition to expanding brackets, simplifying and regrouping subexpressions, we distinguish the following three elementary operations on systems of linear equations:
- multiplication of both sides of an equation by the same nonzero number;
- addition of a multiple of one equation to one of the other equations;
- interchange of two equations.
We speak of an elementary reduction if all steps in the reduction are elementary operations (we always allow for the expansion of brackets, simplification and regrouping of subexpressions in each equation).
If a system of linear equations is obtained through elementary reduction of another system, then the two systems are equivalent and they have the same set of solutions.
We illustrate the elimination method in the example below, and then provide a description of the reduction process for systems with two equations and two unknowns.
When we add in the system the first equation times to the second equation (in other words, we subtract twice the first equation of the second equation), we get Next we add in the system just obtained the second equation to the first equation: Finally we multiply the second equation by : Now the system has been brought into a form in which we can easily read off the solutions and also immediately realise that there are infinitely many solutions: you can freely choose and , say and for certain and , and express and in terms of these: In this case, and are the free parameters; we also say that there are two degrees of freedom.
You can also omit the final steps in the previous example, and stop when you have arrived at Here it is already clear that and can be freely chosen and that and can be expressed in terms of these: if, in the second equation, we consider as the unknown and consider as a parameter, then the solution of this equation is . Substitution of this expression for into the first equation then gives and thus .
- Make sure occurs in the first equation. If that is not the case, then we let swap the two equations, so that occurs in the first equation.
- Replace the second equation by the difference of this equation and a suitably selected multiple of the first equation, so that no longer appears in the second equation.
- Replace the first equation by the difference of this equation with an appropriate multiple of the second equation, so that no longer occurs in the first equation.
- Multiply the first and second equation each by an appropriate number, so that the left-hand sides become and , respectively, and the solution appears.
Have a look at some examples of systems with two or three unknowns to get a taste of the elimination method. In the next section, we introduce a shorthand notation of system of linear equations using matrices and the elimination method is defined more succinctly by row reduction of matrices.
To see this, we begin with the original system of equations and we replace the second equation by the difference of the second equation and the multiple of the first equation that makes disappear (by substracting 3 times the first equation for the second equation). In this way, the system becomes It follows from the second equation that . Substitution of this value for in the first equation turns that equation into a linear equation for only, with solution .