Systems of Equations
1Introduction
Systems of equations are a common school topic, where we learn many common methods. However, there are many interesting problems where these methods lead to a very complicated procedure or fail completely; yet these problems have very elegant unexpected solutions. Let's take for example
The school approach for this system is to use the substitution method
. However, when we express from the first equation and substitute it into the second, we get a fourth-degree equation after a series of adjustments. This can be solved by guessing roots and subsequent polynomial division, but the procedure is tedious†. In this material, however, we will show three other more elegant and generally useful methods for solving this example.
2Theory
There are many possible procedures that can be chosen when solving systems of equations. In this material, we will focus on three very frequent techniques:
- Subtracting equations
- Adding equations
- Ordering variables
Very often we will build upon the techniques of factorization or completing the square, which we practiced in the previous material.
Before we start solving, one important practical piece of advice: The check – it is always good to do it and write in the solution that you have done it. Often it is much faster than precisely justifying that it is not needed.
2.1Subtracting equations
The most common method for more interesting systems consists of subtracting equations and subsequently factoring. Let's return to the example from the introduction:
Example 1
Solve the system in the set of real numbers using the method of subtracting equations:
✓Solution
Subtracting the second equation from the first, we get
Thus, either or .
- If , then from it follows that , that is, .
- If , then by substituting into we get , which simplifies to . We easily find that this equation has no solution in real numbers.
The system therefore has a single solution , of which we can easily convince ourselves by checking.
The situation is more complex when we have more equations, then we often need to subtract more pairs of equations and we often cannot avoid case analysis:
Example 2
Solve the system in the set of real numbers using the method of subtracting equations:
✓Solution
Subtracting the first and second equation, we get
After moving to one side, we have
Cyclically, we also obtain
Thus, for every pair of variables it holds: either they are equal, or their sum is .
- If , then from any equation , i.e., , which gives .
- If , then from the equations it follows . By substituting and into the third equation:which simplifies to , so and . We thus have the solution . Cyclically in cases and we get solutions and .
- If no pair were equal, then from and we have and . By comparison we have , so , which is a contradiction with the assumption.
The solutions are the triples , , , and , of which we can easily convince ourselves by checking.
You can practice subtracting equations on the following examples:
Exercise 1
Solve the system of equations in the domain of real numbers:
✓Solution
Subtracting the equations we get , which we adjust to
This gives us two possibilities:
- If , by substituting into the first equation we have . This equation has roots and . We thus obtain two solutions: and . The check works.
- If , the first equation transforms to , from which after adjustment we get , thus . This case leads to no solution.
The system has exactly two solutions: and .
Exercise 2
Solve the system of equations in the domain of real numbers:
✓Solution
Subtracting the second equation from the first, we get
which we adjust to
Similarly, we also get
If any variable is equal to , for example , then in the first equation we have a contradiction . Similarly, the remaining variables cannot be equal to either. Necessarily, all three are therefore equal.
Substituting into the first equation we obtain , which is a quadratic equation with solutions and .
We can convince ourselves by checking that both found solutions and satisfy the system.
Exercise 3
58th year, home round B, problem 2Determine all triples of real numbers for which it holds
✓Solution
Subtracting the second equation from the first we get
From there, either , or .
- If , then from the first equation , i.e., . If , any satisfies. If , we get for any real .
- If , substituting into the first equation we getFrom there and , so the solutions are for any real .
All solutions are exactly the triples , and for any real , of which we can easily convince ourselves by checking.
2.2Adding equations
Besides subtracting, it is sometimes a good idea to add the equations as well. There are examples where the resulting equation either suggests something or gives up immediately. Let's return to the example from the introduction:
Example 3
Solve the system in the set of real numbers using the method of adding equations:
✓Solution
Adding the equations from the problem statement, we get
At first glance, we haven't helped ourselves. However, it is necessary to notice that after moving all terms to one side, we have nothing more than a sum of squares:
From that we immediately have that it must hold and . By checking, we convince ourselves that the pair is indeed a solution.
We will show an even more complex example with actually three variables:
Example 4
Solve the system in the set of real numbers:
✓Solution
After adjusting equations to the form
and their subsequent addition we get , which is equivalent to
We can multiply this equality by two and rewrite it as a sum of squares:
Since we are summing three non-negative numbers, the equality holds only if all three are zero, thus , and . From this, it follows that .
By substituting into the original equations, we easily verify that every triple for is a solution.
Exercise 4
In the domain of real numbers, solve the system of equations:
✓Solution
Adding the given three equations we have
from which after adjustment we get
From that we necessarily have , and , which means .
By substituting into the system, we verify that is indeed a solution.
Exercise 5
In the domain of real numbers, solve the system
✓Solution
Adding the equations we get
Now we move everything to the left side, write as and complete the square:
This sum should be equal to zero, necessarily therefore each of the three non-negative addends is equal to . By checking we verify that the triple also satisfies the original system.
Exercise 6
Solve the system in real numbers:
✓Solution
Let's notice that in all three equations a common factor occurs, thus by adding the equations we will be able to factor it out:
From there we get two possibilities for the value of the sum :
We will analyze both cases.
- If , substituting into the original equations we get:We obtained the solution .
- If , similarly .
By checking we convince ourselves that both triples and satisfy the system.
2.3Ordering variables
Seemingly the trickiest method is to use symmetry and without loss of generality
order the variables and use estimates.
Without much talk, we will show this on our example:
Example 5
Solve the system in the set of real numbers using the method of ordering variables:
✓Solution
Let's realize that the system is symmetric in variables and , since by swapping variables and we get the same problem. In other words, the pair is a solution if and only if the pair is also. Thus, it suffices to find those pairs where , and in the result add pairs with swapped elements to these pairs. Let's do it:
If we have , then , so , which gives . From this, it does not follow in general that , this holds only for positive and . However, our and are certainly positive, for example in the first equation we have , on the left is a positive number, so is also positive, so as well, and similarly too. Thus, from it really follows that . We thus have and , which together gives . We then finish the solution as before and obtain the single solution .
Let us note that this system has no solution where the variables would not be equal, so we did not have to add others to the found solution . In the following very simple example, it will not be so:
Example 6
Solve the system in real numbers:
✓Solution
The system is symmetric, so without loss of generality . Thereby we get a system of two linear equations with two unknowns:
of which we can easily convince ourselves that it has the unique solution . The original system therefore has two solutions, and .
Symmetry is a fascinating thing. Its use by ordering variables is a very strong technique used in all areas of mathematics. When can we actually do this? In general: When by swapping variables and we get the same problem, it suffices to solve the problem in the case and argue that in the case the problem is symmetric.
In the context of systems of equations, we might have a case where we have an equation with multiple variables, which is symmetric if and only if by swapping any two variables we get the same problem: In such a case we can order all variables, for example for a problem with variables it suffices to solve the case and permute the final solutions, for example if we had the solution , then we have another 5 solutions , , , .
In the next example, we will show that we can order something even when we do not have complete symmetry:
Example 7
Solve the system in real numbers:
✓Solution
This system is not symmetric: by swapping variables and we do not get exactly the same set of three equations. However, we see that it still exhibits a form of symmetry — the equations somehow repeat the variables in a circle
in this order. More precisely: If we replace variables with variables , we get the same system (verify this). We call such systems cyclic. In them, we cannot afford to order all variables as in symmetric ones, however, we can afford without loss of generality to assume that one of the variables is the largest/smallest. If e.g. is the maximum of and we find a solution for example , then thanks to the cyclicity of the system we obtain another two solutions and .
After a long introduction, let's finally get into the example. Since our system is cyclic, it suffices to solve the case where . Then it holds , thus (since the function is increasing). But from the comparison of the first and third equation this means that , or . This together with gives . This allows us to use in a similar way, , so , thus , altogether .
All equations therefore have the form , equivalently . Although this is a cubic equation, fortunately we can easily guess its root , so by the standard method of polynomial division we arrive at the factorization:
We solve the last equation playfully and find that it has three solutions and , which thanks to the equivalence of the used adjustments also satisfy the original equation .
The system has three solutions of the form , where .
Exercise 7
In the domain of real numbers solve the system of equations
✓Solution
The system is symmetric, without loss of generality let us assume that . Since the function is increasing, it holds
so using the system we have . From and it necessarily follows .
By substituting into the first equation we get . After squaring we have , which is a quadratic equation with roots and , so is either or . However, only the first pair passes the check.
The system has a unique solution .
Exercise 8
Determine all triples of real numbers for which it holds
✓Solution
The system is symmetric, therefore without loss of generality let us assume that . Then also , according to the system we therefore have
Since the function is increasing, we get from this
resp. from the first and from the second. Together with the assumption this means . Substituting into the first equation we get .
so or .
We can convince ourselves by checking that the found solutions and indeed satisfy the system.
Exercise 9
Determine all triples of real numbers for which it holds
✓Solution
The system is not symmetric, so we cannot assume . However, it is cyclic, without loss of generality let . Thus , and therefore . Let's look at what the first and third equations tell us:
Since however also , then also , so the last inequality means even , thus . Thus . Let's look at what the second and third equations tell us:
Similar to the previous comparison we have . Together with this however means . The last inequality then means , so , which gives , which together with means also . Necessarily therefore .
Substituting into the first equation we get , i.e., . We see that is a root, thus we have . The polynomial is obviously quadratic in the variable , by solving the equation we easily find roots and . Our equation can therefore be factored as , so in the end it has 5 roots: , , .
We can convince ourselves by checking that all 5 found solutions , , , , satisfy the system.
3What to remember
3.1Solving Techniques
- Add and subtract equations. In some problems, it may also help to multiply or divide them.
- Look for factorizations of expressions.
- Observe symmetry or cyclicity and without loss of generality order the variables or assume which is the largest or smallest. Do not forget to include symmetric or cyclic solutions in the final answer.
- Notice if expressions cannot be adjusted to sums of squares.
- Do not forget the check – even if technically not necessary, often it is easier to do it than to precisely justify that it is not needed.
Note. There are many techniques which we did not get to – the most common of them is the use of more complex inequalities. We will return to such systems in the material on inequalities.
3.2General useful knowledge
- Whenever we see , it immediately means (actually the left side is always at least as large as the right and equality occurs only for )
- Symmetry and cyclicity are not tied only to systems of equations – in all parts of mathematics it is very important to assume something without loss of generality and thereby simplify the problem.
4Further Problems
So that it's not too little, here are a few more problems. All combine in various ways the methods which we have learned or seen along the way (such as factorization, completing the square, case analysis, adding/subtracting equations, etc.). Problems are ordered approximately by difficulty.
Problem 1
74th year MO, regional round B, problem 1In the domain of real numbers solve the system of equations
1Hint
Notice that the second equation can actually be factored. This helps in simplifying the first equation.
2Hint
The second equation gives us . This gives two cases, and . Substitute into the first equation and let's notice that it looks very square-like.
✓Solution
We factor the second equation by successive factoring out:
This equality occurs if and only if or . We will analyze both cases.
- If , substituting into the first equation we getwhich after adjustment changes toSince this is a sum of two non-negative numbers, equality can occur only if both addends are zero. Thus and . Since , we have the solution .
- If , substituting into the first equation we getwhich after adjustment and completing the square givesSimilar to the first case, from here it follows and . Since we assumed , we have the solution .
By checking we convince ourselves that both found triples and are solutions of the system.
Problem 2
57th year MO, national round A in Czechia†, problem 1Solve the system in real numbers:
1Hint
Subtract the equations and factor.
2Hint
After subtracting the equations and factoring we have that either or . The second equation is non-evident. A straightforward way to solve it is to consider one variable (e.g., ) as an unknown and the second (e.g., ) as a parameter and solve the quadratic equation. However, a nicer way is to find a factorization into a sum of squares, for which similar to the analysis of we first need to multiply by two.
✓Solution
Subtracting the equations we get , which after factoring out the term leads to
This gives us two possibilities.
- If , substituting into the first equation of the system we have , i.e., . The solutions are and the roots of the equation , thus . We thus obtain three solutions: , and .
- If , we multiply the equation by two and appropriately rearrange the terms into a sum of three squares:The sum of three non-negative numbers is zero if and only if all three are zero. It would therefore have to hold , and . The first two equations give and , which is in contradiction with the third equation. This case therefore has no solution.
The system therefore has exactly the three solutions listed in the first case.
Problem 3
70th year MO, school round B, problem 1For real numbers , , it holds
Find out what values the sum can take. For each complying sum, give an example of corresponding numbers , , .
1Hint
Squaring works well with absolute values, thanks to that they disappear.
2Hint
After removing absolute values, it is possible for example to subtract each pair of equations and factor (our goal is not to find all solutions, but only possible values of the sum , which will help us in the discussion). An even faster solution is surprisingly to add all equations. In any case, do not forget to verify that for the found candidates for there indeed exist for which the sum is attainable.
✓Solution
To get rid of absolute values, we square each of the three equations:
Adding these three equations and expanding all brackets we get:
We simplify this equation by subtracting the expression from both sides. We are left with:
The expression on the left side is exactly the formula for . If we denote the sum , the equation transforms to , i.e., . By factoring we find two possible values for the sum: and .
We still must verify if both these values are truly attainable.
- For we can choose . We easily verify that this satisfies the system.
- For it suffices to take .
Possible values of the sum are therefore and .
Let us add that the problem has other possible ways of solution, we can for example discuss signs of expressions , , .
Problem 4
71st year MO, regional round A, problem 2In the domain of positive† real numbers solve the system of equations
1Hint
Notice that after adding all equations we have on the right side , which is somewhat suspiciously similar to the right side of one of our equations.
2Hint
The trick is to add all equations and subtract twice the second equation, thereby completely zeroing out the right side and leaving on the left, which thanks to the positivity of gives .
✓Solution
Adding all three equations we get
The right side is exactly three times the right side of the second equation. Subtracting three times the second equation from the sum of all equations we thus obtain an equation with a zero right side:
After adjustment we have , i.e., . Since are positive real numbers, it follows from this that .
Substituting into the first two equations of the system we get:
We see that , from which , thus from positivity we have . By backward substitution into e.g. the first equation we get , thus , so either or .
Altogether we have two candidates for solutions: , . By checking we easily verify that both triples satisfy the system.
Problem 5
In the domain of real numbers solve the system of equations
1Hint
The system is cyclic, so it suffices to solve the case when . Thus etc., we have more options how to use it. One of them gives us another inequality between .
2Hint
The key is to use , this gives us , which after adjustment means , so necessarily . What does give us?
✓Solution
The system is cyclic, therefore it suffices to solve . Then , so also . From the first and third equation we thus get , which we adjust to . Since , the right side is non-negative, thus .
From the inequality we similarly derive , which after substitution from the second and fourth equation gives , thus . But , thus , which together with gives , and subsequently gives , so .
By substituting into the system we reduce it to
Adding the equations we get , so , from which . By substituting we now have only one equation , which is equivalent to , so or .
By checking we easily verify that all quadruples
are a solution.
Problem 6
Find the smallest four-digit natural number , for which the system
has only integer solutions.
1Hint
The first step is to notice that the left side of the equation can actually be factored into a product of expressions suspiciously similar to those in the second equation.
2Hint
It holds . The second equation is meanwhile . The numbers , therefore satisfy , . Which ones can they be? Formally we can derive them either by realizing that from Vieta's† formulas must be roots of the quadratic equation and solving it; or we can substitute into the first equation, etc. In any case we obtain two possibilities for . One of them can be excluded quickly (let's not forget that is a four-digit number, thus it is positive).
✓Solution
It holds . If we denote and , the system can be equivalently rewritten to the form and . From Vieta's formulas it follows that and are roots of the quadratic equation , which we can factor as . Possible values for the pair are therefore . We will analyze both cases.
- Let and . Since are integers, from the second equation we have . The sum equal to will therefore certainly not be a four-digit number.
- Let and . At least one of the numbers is positive (otherwise ), without loss of generality let it be .Substituting into the second equation we get , thus . The function is obviously increasing for . The goal is to find the smallest for which is four-digit. This can be done by solving the inequality , or by trying, the answer is , since and .On the other hand, for the equation has two solutions and , to which correspond and , so both are integer.The answer is .
Problem 7
64th year MO, national round A, problem 4In the domain of real numbers solve the system of equations
1Hint
Adding and subtracting leads to nothing factorable. The trick in this problem is to use multiplication of equations. For example, if we multiply the equations as they are, we can cancel in the case . This gives us something, but I will reveal that nothing extra useful. The key is to multiply the equations after a minor adjustment of each of them.
2Hint
We adjust the first equation by rearranging terms:
Now we can multiply and assuming mutual distinctness of and their non-zero status it yields useful things. It will not be the end, but we will be close.
✓Solution
We adjust the first equation by rearranging terms:
When we adjust the remaining equations in this way, we get:
We will analyze several cases.
- If any variable is zero, for example , then from the first equation we have , so , which then in the third equation gives . We have , which is indeed a solution. Let us assume therefore that are non-zero.
- If all variables are non-zero, but some two are equal, for example , then from the second equation gives thanks to non-zero the equality , so all three variables are equal. We easily verify that every triple is a solution of the system (it includes already the found solution ). Let us assume therefore that are pairwise distinct. Multiplying equations (1), (2), (3) we getSince the variables are distinct and non-zero, we can divide by the expression and we get . We use this to adjust equations (1), (2), (3) by multiplying them successively by , , :This will lead to a contradiction: The system is cyclic, so it suffices to solve . Then , so from the first equation , so from the last equation , contradiction.
Summing up all cases we obtain that the only solutions are triples for any real number .