MathComps LogoMathComps
ProblemsHandoutsGuideNews
Sign in

Systems of Equations

Algebra
Author
Patrik Bak

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

x2+1=2y,y2+1=2x.\begin{align*} x^2+1 &= 2y, \\ y^2+1 &= 2x. \end{align*}x2+1y2+1​=2y,=2x.​

The school approach for this system is to use the substitution method. However, when we express yyy 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:

x2+1=2y,y2+1=2x.\begin{align*} x^2+1 &= 2y, \\ y^2+1 &= 2x. \\ \end{align*}x2+1y2+1​=2y,=2x.​
✓Solution

Subtracting the second equation from the first, we get

x2+1−(y2+1)=2y−2x,(x−y)(x+y)=−2(x−y),(x−y)(x+y+2)=0.\begin{align*} x^2+1-(y^2+1)&=2y-2x,\\ (x-y)(x+y)&=-2(x-y),\\ (x-y)(x+y+2)&=0. \end{align*}x2+1−(y2+1)(x−y)(x+y)(x−y)(x+y+2)​=2y−2x,=−2(x−y),=0.​

Thus, either x=yx=yx=y or x+y=−2x+y=-2x+y=−2.

  • If x=yx=yx=y, then from x2+1=2xx^2+1=2xx2+1=2x it follows that (x−1)2=0(x-1)^2=0(x−1)2=0, that is, x=y=1x=y=1x=y=1.
  • If x+y=−2x+y=-2x+y=−2, then by substituting into x2+1=2yx^2+1=2yx2+1=2y we get x2+1=2(−2−x)x^2+1=2(-2-x)x2+1=2(−2−x), which simplifies to x2+2x+5=0x^2+2x+5=0x2+2x+5=0. We easily find that this equation has no solution in real numbers.

The system therefore has a single solution (x,y)=(1,1)(x,y)=(1,1)(x,y)=(1,1), 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:

x2−1=y+z,y2−1=z+x,z2−1=x+y.\begin{align*} x^2-1 &= y+z, \\ y^2-1 &= z+x, \\ z^2-1 &= x+y. \\ \end{align*}x2−1y2−1z2−1​=y+z,=z+x,=x+y.​
✓Solution

Subtracting the first and second equation, we get

x2−y2=(y+z)−(z+x)=y−x.x^2-y^2=(y+z)-(z+x)=y-x.x2−y2=(y+z)−(z+x)=y−x.

After moving to one side, we have

x2−y2+(x−y)=0,(x−y)(x+y)+(x−y)=0,(x−y)(x+y+1)=0.\begin{align*} x^2-y^2 + (x-y) &= 0, \\ (x-y)(x+y) + (x-y) &= 0, \\ (x-y)(x+y+1) &= 0. \end{align*}x2−y2+(x−y)(x−y)(x+y)+(x−y)(x−y)(x+y+1)​=0,=0,=0.​

Cyclically, we also obtain

(y−z)(y+z+1)=0,(z−x)(z+x+1)=0.\begin{align*} (y-z)(y+z+1)&=0,\\ (z-x)(z+x+1)&=0. \end{align*}(y−z)(y+z+1)(z−x)(z+x+1)​=0,=0.​

Thus, for every pair of variables it holds: either they are equal, or their sum is −1-1−1.

  • If x=y=z=tx=y=z=tx=y=z=t, then from any equation t2−1=2tt^2-1=2tt2−1=2t, i.e., t2−2t−1=0t^2-2t-1=0t2−2t−1=0, which gives t=1±2t=1\pm\sqrt2t=1±2​.
  • If x=y≠zx=y\neq zx=y=z, then from the equations it follows x+z=−1x+z=-1x+z=−1. By substituting y=xy=xy=x and z=−1−xz=-1-xz=−1−x into the third equation:
    (−1−x)2−1=2x(-1-x)^2-1= 2x(−1−x)2−1=2x
    which simplifies to x2=0x^2=0x2=0, so x=0x=0x=0 and z=−1z=-1z=−1. We thus have the solution (0,0,−1)(0,0,-1)(0,0,−1). Cyclically in cases y=z≠xy=z\neq xy=z=x and z=x≠yz=x \neq yz=x=y we get solutions (−1,0,0)(-1,0,0)(−1,0,0) and (0,−1,0)(0,-1,0)(0,−1,0).
  • If no pair were equal, then from x≠yx\neq yx=y and x≠zx \neq zx=z we have x+y=−1x+y=-1x+y=−1 and x+z=−1x+z=-1x+z=−1. By comparison we have x+y=x+zx+y=x+zx+y=x+z, so y=zy=zy=z, which is a contradiction with the assumption.

The solutions are the triples (1+2,1+2,1+2)(1+\sqrt2,1+\sqrt2,1+\sqrt2)(1+2​,1+2​,1+2​), (1−2,1−2,1−2)(1-\sqrt2,1-\sqrt2,1-\sqrt2)(1−2​,1−2​,1−2​), (−1,0,0)(-1,0,0)(−1,0,0), (0,−1,0)(0,-1,0)(0,−1,0) and (0,0,−1)(0,0,-1)(0,0,−1), 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:

x2+xy=x+1,y2+xy=y+1.\begin{align*} x^2 + xy &= x + 1,\\ y^2 + xy &= y + 1. \end{align*}x2+xyy2+xy​=x+1,=y+1.​
✓Solution

Subtracting the equations we get x2−y2=x−yx^2-y^2=x-yx2−y2=x−y, which we adjust to

(x−y)(x+y−1)=0.(x-y)(x+y-1)=0.(x−y)(x+y−1)=0.

This gives us two possibilities:

  • If x=yx=yx=y, by substituting into the first equation we have 2x2−x−1=02x^2-x-1=02x2−x−1=0. This equation has roots x=1x=1x=1 and x=−1/2x=-1/2x=−1/2. We thus obtain two solutions: (1,1)(1,1)(1,1) and (−1/2,−1/2)(-1/2, -1/2)(−1/2,−1/2). The check works.
  • If y=1−xy=1-xy=1−x, the first equation transforms to x2+x(1−x)=x+1x^2+x(1-x)=x+1x2+x(1−x)=x+1, from which after adjustment we get x=x+1x=x+1x=x+1, thus 0=10=10=1. This case leads to no solution.

The system has exactly two solutions: (1,1)(1,1)(1,1) and (−1/2,−1/2)(-1/2, -1/2)(−1/2,−1/2).

Exercise 2

Solve the system of equations in the domain of real numbers:

xy+x+y=3,yz+y+z=3,zx+z+x=3.\begin{align*} xy+x+y &= 3, \\ yz+y+z &= 3, \\ zx+z+x &= 3. \\ \end{align*}xy+x+yyz+y+zzx+z+x​=3,=3,=3.​
✓Solution

Subtracting the second equation from the first, we get

(xy+x+y)−(yz+y+z)=0,(xy+x+y) - (yz+y+z) = 0,(xy+x+y)−(yz+y+z)=0,

which we adjust to

y(x−z)+(x−z)=0,(x−z)(y+1)=0.\begin{align*} y(x-z) + (x-z) &= 0, \\ (x-z)(y+1) &=0. \\ \end{align*}y(x−z)+(x−z)(x−z)(y+1)​=0,=0.​

Similarly, we also get

(y−x)(y+1)=0,(z−y)(z+1)=0.\begin{align*} (y-x)(y+1) &= 0, \\ (z-y)(z+1) &= 0. \\ \end{align*}(y−x)(y+1)(z−y)(z+1)​=0,=0.​

If any variable is equal to −1-1−1, for example yyy, then in the first equation we have a contradiction −1=3-1=3−1=3. Similarly, the remaining variables cannot be equal to −1-1−1 either. Necessarily, all three are therefore equal.

Substituting x=y=z=tx=y=z=tx=y=z=t into the first equation we obtain t2+2t−3=0t^2+2t-3=0t2+2t−3=0, which is a quadratic equation with solutions 111 and −3-3−3.

We can convince ourselves by checking that both found solutions (1,1,1)(1,1,1)(1,1,1) and (−3,−3,−3)(-3,-3,-3)(−3,−3,−3) satisfy the system.

Exercise 3

58th year, home round B, problem 2

Determine all triples (x,y,z)(x,y,z)(x,y,z) of real numbers for which it holds

x2+xy=y2+z2,z2+zy=y2+x2.\begin{align*} x^2+xy&=y^2+z^2,\\ z^2+zy&=y^2+x^2. \\ \end{align*}x2+xyz2+zy​=y2+z2,=y2+x2.​
✓Solution

Subtracting the second equation from the first we get

(x2+xy)−(z2+zy)=(y2+z2)−(y2+x2),2(x2−z2)+y(x−z)=0,2(x−z)(x+z)+y(x−z)=0,(x−z)(2(x+z)+y)=0.\begin{align*} (x^2+xy)-(z^2+zy)&=(y^2+z^2)-(y^2+x^2),\\ 2(x^2-z^2)+y(x-z)&=0,\\ 2(x-z)(x+z)+y(x-z)&=0,\\ (x-z)\left(2(x+z)+y\right)&=0. \end{align*}(x2+xy)−(z2+zy)2(x2−z2)+y(x−z)2(x−z)(x+z)+y(x−z)(x−z)(2(x+z)+y)​=(y2+z2)−(y2+x2),=0,=0,=0.​

From there, either x=zx=zx=z, or y=−2(x+z)y=-2(x+z)y=−2(x+z).

  • If x=zx=zx=z, then from the first equation xy=y2xy=y^2xy=y2, i.e., y(y−x)=0y(y-x)=0y(y−x)=0. If y=0y=0y=0, any (x,0,x)(x,0,x)(x,0,x) satisfies. If y=xy=xy=x, we get (x,x,x)(x,x,x)(x,x,x) for any real xxx.
  • If y=−2(x+z)y=-2(x+z)y=−2(x+z), substituting into the first equation we get
    x2−2x(x+z)=(−2(x+z))2+z2,x2−2x2−2xz=4x2+8xz+4z2+z2,−5x2−10xz−5z2=0,−5(x+z)2=0.\begin{align*} x^2-2x(x+z)&=(-2(x+z))^2+z^2, \\ x^2-2x^2-2xz &= 4x^2+8xz+4z^2+z^2, \\ -5x^2 - 10xz - 5z^2 &= 0, \\ -5(x+z)^2 &= 0. \end{align*}x2−2x(x+z)x2−2x2−2xz−5x2−10xz−5z2−5(x+z)2​=(−2(x+z))2+z2,=4x2+8xz+4z2+z2,=0,=0.​
    From there z=−xz=-xz=−x and y=0y=0y=0, so the solutions are (x,0,−x)(x,0,-x)(x,0,−x) for any real xxx.

All solutions are exactly the triples (t,t,t)(t,t,t)(t,t,t), (t,0,t)(t,0,t)(t,0,t) and (t,0,−t)(t,0,-t)(t,0,−t) for any real ttt, 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:

x2+1=2y,y2+1=2x.\begin{align*} x^2+1 &= 2y, \\ y^2+1 &= 2x. \\ \end{align*}x2+1y2+1​=2y,=2x.​
✓Solution

Adding the equations from the problem statement, we get

x2+1+y2+1=2y+2x.x^2+1+y^2+1 = 2y+2x.x2+1+y2+1=2y+2x.

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:

x2+1+y2+1=2y+2x,(x2−2x+1)+(y2−2y+1)=0,(x−1)2+(y−1)2=0.\begin{align*} x^2+1+y^2+1 &= 2y+2x, \\ (x^2-2x+1) + (y^2-2y+1) &=0, \\ (x-1)^2 + (y-1)^2 &= 0. \end{align*}x2+1+y2+1(x2−2x+1)+(y2−2y+1)(x−1)2+(y−1)2​=2y+2x,=0,=0.​

From that we immediately have that it must hold x=1x=1x=1 and y=1y=1y=1. By checking, we convince ourselves that the pair (1,1)(1,1)(1,1) 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:

x2=y(2z−x),y2=z(2x−y),z2=x(2y−z).\begin{align*} x^2 &= y(2z-x), \\ y^2 &= z(2x-y), \\ z^2 &= x(2y-z). \\ \end{align*}x2y2z2​=y(2z−x),=z(2x−y),=x(2y−z).​
✓Solution

After adjusting equations to the form

x2+xy=2yz,y2+yz=2zx,z2+zx=2xyx^2+xy=2yz,\qquad y^2+yz=2zx,\qquad z^2+zx=2xyx2+xy=2yz,y2+yz=2zx,z2+zx=2xy

and their subsequent addition we get x2+y2+z2+xy+yz+zx=2(xy+yz+zx)x^2+y^2+z^2+xy+yz+zx = 2(xy+yz+zx)x2+y2+z2+xy+yz+zx=2(xy+yz+zx), which is equivalent to

x2+y2+z2−xy−yz−zx=0.x^2+y^2+z^2-xy-yz-zx=0.x2+y2+z2−xy−yz−zx=0.

We can multiply this equality by two and rewrite it as a sum of squares:

(x−y)2+(y−z)2+(z−x)2=0.(x-y)^2+(y-z)^2+(z-x)^2=0.(x−y)2+(y−z)2+(z−x)2=0.

Since we are summing three non-negative numbers, the equality holds only if all three are zero, thus x−y=0x-y=0x−y=0, y−z=0y-z=0y−z=0 and z−x=0z-x=0z−x=0. From this, it follows that x=y=zx=y=zx=y=z.

By substituting into the original equations, we easily verify that every triple (t,t,t)(t,t,t)(t,t,t) for t∈Rt\in\mathbb{R}t∈R is a solution.

Exercise 4

In the domain of real numbers, solve the system of equations:

a2+b=c,b2+c=a,c2+a=b.\begin{align*} a^2+b&=c, \\ b^2+c&=a, \\ c^2+a&=b. \end{align*}a2+bb2+cc2+a​=c,=a,=b.​
✓Solution

Adding the given three equations we have

a2+b2+c2+a+b+c=a+b+c,a^2+b^2+c^2+a+b+c = a+b+c,a2+b2+c2+a+b+c=a+b+c,

from which after adjustment we get

a2+b2+c2=0.a^2+b^2+c^2 = 0.a2+b2+c2=0.

From that we necessarily have a2=0a^2=0a2=0, b2=0b^2=0b2=0 and c2=0c^2=0c2=0, which means a=b=c=0a=b=c=0a=b=c=0.

By substituting into the system, we verify that (0,0,0)(0,0,0)(0,0,0) is indeed a solution.

Exercise 5

In the domain of real numbers, solve the system

z2=4(x−1),x2=4(y−1),y2=4(z−1).\begin{align*} z^2 &= 4(x-1),\\ x^2 &= 4(y-1),\\ y^2 &= 4(z-1).\\ \end{align*}z2x2y2​=4(x−1),=4(y−1),=4(z−1).​
✓Solution

Adding the equations we get

x2+y2+z2=4(x+y+z−3).x^2+y^2+z^2=4(x+y+z-3).x2+y2+z2=4(x+y+z−3).

Now we move everything to the left side, write 121212 as 4+4+44+4+44+4+4 and complete the square:

=x2−4x+y2−4y+z2−4z+12=(x2−4x+4)+(y2−4y+4)+(z2−4z+4)=(x−2)2+(y−2)2+(z−2)2.\begin{align*} &\hphantom{=}x^2-4x+y^2-4y+z^2-4z+12\\ &=(x^2-4x+4)+(y^2-4y+4)+(z^2-4z+4)\\ &=(x-2)^2+(y-2)^2+(z-2)^2. \end{align*}​=x2−4x+y2−4y+z2−4z+12=(x2−4x+4)+(y2−4y+4)+(z2−4z+4)=(x−2)2+(y−2)2+(z−2)2.​

This sum should be equal to zero, necessarily therefore each of the three non-negative addends is equal to 000. By checking we verify that the triple (2,2,2)(2,2,2)(2,2,2) also satisfies the original system.

Exercise 6

Solve the system in real numbers:

x(x+y+z)=20,y(x+y+z)=30,z(x+y+z)=50.\begin{align*} x(x+y+z)&=20,\\ y(x+y+z)&=30,\\ z(x+y+z)&=50.\\ \end{align*}x(x+y+z)y(x+y+z)z(x+y+z)​=20,=30,=50.​
✓Solution

Let's notice that in all three equations a common factor x+y+zx+y+zx+y+z occurs, thus by adding the equations we will be able to factor it out:

x(x+y+z)+y(x+y+z)+z(x+y+z)=20+30+50,(x+y+z)(x+y+z)=100,(x+y+z)2=100.\begin{align*} x(x+y+z)+y(x+y+z)+z(x+y+z) &= 20+30+50, \\ (x+y+z)(x+y+z) &= 100, \\ (x+y+z)^2&=100. \\ \end{align*}x(x+y+z)+y(x+y+z)+z(x+y+z)(x+y+z)(x+y+z)(x+y+z)2​=20+30+50,=100,=100.​

From there we get two possibilities for the value of the sum x+y+zx+y+zx+y+z:

x+y+z=10orx+y+z=−10.x+y+z = 10 \quad \text{or} \quad x+y+z = -10.x+y+z=10orx+y+z=−10.

We will analyze both cases.

  • If x+y+z=10x+y+z=10x+y+z=10, substituting into the original equations we get:
    x⋅10=20from whichx=2,y⋅10=30from whichy=3,z⋅10=50from whichz=5.\begin{align*} x \cdot 10 &= 20 \quad\text{from which}\quad x=2, \\ y \cdot 10 &= 30 \quad\text{from which}\quad y=3, \\ z \cdot 10 &= 50 \quad\text{from which}\quad z=5. \end{align*}x⋅10y⋅10z⋅10​=20from whichx=2,=30from whichy=3,=50from whichz=5.​
    We obtained the solution (2,3,5)(2,3,5)(2,3,5).
  • If x+y+z=−10x+y+z=-10x+y+z=−10, similarly (−2,−3,−5)(-2,-3,-5)(−2,−3,−5).

By checking we convince ourselves that both triples (2,3,5)(2,3,5)(2,3,5) and (−2,−3,−5)(-2,-3,-5)(−2,−3,−5) 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:

x2+1=2y,y2+1=2x.\begin{align*} x^2+1 &= 2y, \\ y^2+1 &= 2x. \\ \end{align*}x2+1y2+1​=2y,=2x.​
✓Solution

Let's realize that the system is symmetric in variables xxx and yyy, since by swapping variables xxx and yyy we get the same problem. In other words, the pair (x,y)(x,y)(x,y) is a solution if and only if the pair (y,x)(y,x)(y,x) is also. Thus, it suffices to find those pairs where x≥yx \ge yx≥y, and in the result add pairs with swapped elements to these pairs. Let's do it:

If we have x≥yx \ge yx≥y, then 2x≥2y2x \ge 2y2x≥2y, so y2+1≥x2+1y^2+1 \ge x^2+1y2+1≥x2+1, which gives y2≥x2y^2 \ge x^2y2≥x2. From this, it does not follow in general that y≥xy \ge xy≥x, this holds only for positive xxx and yyy. However, our xxx and yyy are certainly positive, for example in the first equation we have x2+1=2yx^2+1=2yx2+1=2y, on the left is a positive number, so 2y2y2y is also positive, so yyy as well, and similarly xxx too. Thus, from y2≥x2y^2 \ge x^2y2≥x2 it really follows that y≥xy \ge xy≥x. We thus have x≥yx \ge yx≥y and y≥xy \ge xy≥x, which together gives x=yx=yx=y. We then finish the solution as before and obtain the single solution (1,1)(1,1)(1,1).

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 (1,1)(1,1)(1,1). In the following very simple example, it will not be so:

Example 6

Solve the system in real numbers:

∣x−y∣=2,x+y=4.\begin{align*} |x-y| &= 2, \\ x+y &=4. \\ \end{align*}∣x−y∣x+y​=2,=4.​
✓Solution

The system is symmetric, so without loss of generality x≥yx \ge yx≥y. Thereby we get a system of two linear equations with two unknowns:

x−y=2,x+y=4,\begin{align*} x-y &= 2, \\ x+y &=4, \\ \end{align*}x−yx+y​=2,=4,​

of which we can easily convince ourselves that it has the unique solution (3,1)(3,1)(3,1). The original system therefore has two solutions, (3,1)(3,1)(3,1) and (1,3)(1,3)(1,3).

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 XXX and YYY we get the same problem, it suffices to solve the problem in the case X≥YX \ge YX≥Y and argue that in the case Y≥XY \ge XY≥X 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 x,y,zx,y,zx,y,z it suffices to solve the case x≥y≥zx \ge y \ge zx≥y≥z and permute the final solutions, for example if we had the solution (3,2,1)(3,2,1)(3,2,1), then we have another 5 solutions (3,1,2)(3,1,2)(3,1,2), (2,1,3)(2,1,3)(2,1,3), (2,3,1)(2,3,1)(2,3,1), (1,3,2)(1,3,2)(1,3,2).

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:

x3+1=2y,y3+1=2z,z3+1=2x.\begin{align*} x^3 + 1 &=2y, \\ y^3 + 1 &=2z, \\ z^3 + 1 &=2x. \\ \end{align*}x3+1y3+1z3+1​=2y,=2z,=2x.​
✓Solution

This system is not symmetric: by swapping variables xxx and yyy 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 x,y,zx,y,zx,y,z in a circle in this order. More precisely: If we replace variables (x,y,z)(x,y,z)(x,y,z) with variables (z,x,y)(z,x,y)(z,x,y), 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. xxx is the maximum of x,y,zx,y,zx,y,z and we find a solution for example (3,2,1)(3,2,1)(3,2,1), then thanks to the cyclicity of the system we obtain another two solutions (2,1,3)(2,1,3)(2,1,3) and (1,2,3)(1,2,3)(1,2,3).

After a long introduction, let's finally get into the example. Since our system is cyclic, it suffices to solve the case where x=max⁡{x,y,z}x=\max\{x,y,z\}x=max{x,y,z}. Then it holds x≥zx \ge zx≥z, thus x3+1≥z3+1x^3+1 \ge z^3+1x3+1≥z3+1 (since the function f ⁣:x→x3f\colon x\rightarrow x^3f:x→x3 is increasing). But from the comparison of the first and third equation this means that 2y≥2x2y \ge 2x2y≥2x, or y≥xy \ge xy≥x. This together with x≥yx \ge yx≥y gives x=yx=yx=y. This allows us to use y≥zy \ge zy≥z in a similar way, 2z=y3+1≥z3+1=2x2z=y^3+1 \ge z^3+1 = 2x2z=y3+1≥z3+1=2x, so z≥xz \ge xz≥x, thus z=xz=xz=x, altogether x=y=zx=y=zx=y=z.

All equations therefore have the form t3+1=2tt^3+1=2tt3+1=2t, equivalently t3−2t+1=0t^3-2t+1=0t3−2t+1=0. Although this is a cubic equation, fortunately we can easily guess its root t=1t=1t=1, so by the standard method of polynomial division we arrive at the factorization:

t3−2t+1=(t−1)(t2+t−1)t^3-2t+1 =(t-1)(t^2+t-1)t3−2t+1=(t−1)(t2+t−1)

We solve the last equation playfully and find that it has three solutions t=1t=1t=1 and t=12(−1±5)t=\frac12(-1\pm\sqrt5)t=21​(−1±5​), which thanks to the equivalence of the used adjustments also satisfy the original equation t3+1=2tt^3+1=2tt3+1=2t.

The system has three solutions of the form (x,y,z)=(t,t,t)(x,y,z)=(t,t,t)(x,y,z)=(t,t,t), where t∈{1,12(−1±5)}t \in \{1, \frac12(-1\pm\sqrt5)\}t∈{1,21​(−1±5​)}.

Exercise 7

In the domain of real numbers solve the system of equations

x=y+2,y=x+2.\begin{align*} x &= \sqrt{y+2},\\ y &= \sqrt{x+2}.\\ \end{align*}xy​=y+2​,=x+2​.​
✓Solution

The system is symmetric, without loss of generality let us assume that x≥yx \ge yx≥y. Since the function f(t)=t+2f(t)=\sqrt{t+2}f(t)=t+2​ is increasing, it holds

x≥y  ⟹  x+2≥y+2,x \ge y \implies \sqrt{x+2} \ge \sqrt{y+2},x≥y⟹x+2​≥y+2​,

so using the system we have y≥xy \ge xy≥x. From x≥yx \ge yx≥y and y≥xy \ge xy≥x it necessarily follows x=yx=yx=y.

By substituting into the first equation we get x=x+2x=\sqrt{x+2}x=x+2​. After squaring we have x2=x+2x^2=x+2x2=x+2, which is a quadratic equation with roots x=2x=2x=2 and x=−1x=-1x=−1, so (x,y)(x,y)(x,y) is either (2,2)(2,2)(2,2) or (−1,−1)(-1,-1)(−1,−1). However, only the first pair passes the check.

The system has a unique solution (x,y)=(2,2)(x,y)=(2,2)(x,y)=(2,2).

Exercise 8

Determine all triples (x,y,z)(x,y,z)(x,y,z) of real numbers for which it holds

(x+y)5=32z,(y+z)5=32x,(z+x)5=32y.\begin{align*} (x+y)^5 &= 32z, \\ (y+z)^5 &= 32x, \\ (z+x)^5 &= 32y. \\ \end{align*}(x+y)5(y+z)5(z+x)5​=32z,=32x,=32y.​
✓Solution

The system is symmetric, therefore without loss of generality let us assume that x≥y≥zx \ge y \ge zx≥y≥z. Then also 32x≥32y≥32z32x \ge 32y \ge 32z32x≥32y≥32z, according to the system we therefore have

(y+z)5≥(z+x)5≥(x+y)5.(y+z)^5 \ge (z+x)^5 \ge (x+y)^5.(y+z)5≥(z+x)5≥(x+y)5.

Since the function f ⁣:t→t5f\colon t \rightarrow t^5f:t→t5 is increasing, we get from this

y+z≥z+x≥x+y,y+z \ge z+x \ge x+y,y+z≥z+x≥x+y,

resp. y≥xy \ge xy≥x from the first and z≥yz \ge yz≥y from the second. Together with the assumption x≥y≥zx \ge y \ge zx≥y≥z this means x=y=zx=y=zx=y=z. Substituting into the first equation we get (2x)5=32x(2x)^5=32x(2x)5=32x.

32x5−32x=0  ⟹  x(x5−1)=0,32x^5-32x=0 \implies x(x^5-1)=0,32x5−32x=0⟹x(x5−1)=0,

so x=0x=0x=0 or x=1x=1x=1.

We can convince ourselves by checking that the found solutions (0,0,0)(0,0,0)(0,0,0) and (1,1,1)(1,1,1)(1,1,1) indeed satisfy the system.

Exercise 9

Determine all triples (x,y,z)(x,y,z)(x,y,z) of real numbers for which it holds

x5=5y3−4z,y5=5z3−4x,z5=5x3−4y.\begin{align*} x^5 &= 5y^3 - 4z, \\ y^5 &= 5z^3 - 4x, \\ z^5 &= 5x^3 - 4y. \\ \end{align*}x5y5z5​=5y3−4z,=5z3−4x,=5x3−4y.​
✓Solution

The system is not symmetric, so we cannot assume x≥y≥zx \ge y \ge zx≥y≥z. However, it is cyclic, without loss of generality let x=max⁡{x,y,z}x=\max\{x,y,z\}x=max{x,y,z}. Thus x≥zx \ge zx≥z, and therefore x5≥z5x^5 \ge z^5x5≥z5. Let's look at what the first and third equations tell us:

5y3−4z≥5x3−4y,4y−4z≥5x3−5y3.\begin{align*} 5y^3 - 4z &\ge 5x^3 - 4y, \\ 4y - 4z &\ge 5x^3 - 5y^3. \end{align*}5y3−4z4y−4z​≥5x3−4y,≥5x3−5y3.​

Since however also x≥yx \ge yx≥y, then also 5x3≥5y35x^3 \ge 5y^35x3≥5y3, so the last inequality means even 4y−4z≥04y-4z \ge 04y−4z≥0, thus y≥zy \ge zy≥z. Thus y5≥z5y^5 \ge z^5y5≥z5. Let's look at what the second and third equations tell us:

5z3−4x≥5x3−4y4y−4x≥5x3−5z3.\begin{align*} 5z^3-4x &\ge 5x^3 - 4y\\ 4y - 4x &\ge 5x^3-5z^3. \end{align*}5z3−4x4y−4x​≥5x3−4y≥5x3−5z3.​

Similar to the previous comparison we have y≥xy \ge xy≥x. Together with x≥yx \ge yx≥y this however means x=yx=yx=y. The last inequality then means 0≥5x3−5z30 \ge 5x^3-5z^30≥5x3−5z3, so z3≥x3z^3 \ge x^3z3≥x3, which gives z≥xz \ge xz≥x, which together with x≥zx \ge zx≥z means also x=zx=zx=z. Necessarily therefore x=y=zx=y=zx=y=z.

Substituting x=y=zx=y=zx=y=z into the first equation we get x5=5x3−4xx^5 = 5x^3 - 4xx5=5x3−4x, i.e., x5−5x3+4x=0x^5-5x^3+4x=0x5−5x3+4x=0. We see that x=0x=0x=0 is a root, thus we have x(x4−5x2+4)=0x(x^4-5x^2+4)=0x(x4−5x2+4)=0. The polynomial x4−5x2+4x^4-5x^2+4x4−5x2+4 is obviously quadratic in the variable t=x2t=x^2t=x2, by solving the equation t2−5t+4=0t^2-5t+4=0t2−5t+4=0 we easily find roots t=4t=4t=4 and t=1t=1t=1. Our equation can therefore be factored as x(x2−4)(x2−1)=0x(x^2-4)(x^2-1)=0x(x2−4)(x2−1)=0, so in the end it has 5 roots: 000, ±1\pm 1±1, ±2\pm 2±2.

We can convince ourselves by checking that all 5 found solutions (0,0,0)(0,0,0)(0,0,0), (−1,−1,−1)(-1,-1,-1)(−1,−1,−1), (1,1,1)(1,1,1)(1,1,1), (−2,−2,−2)(-2,-2,-2)(−2,−2,−2), (2,2,2)(2,2,2)(2,2,2) 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 x2+y2+z2=xy+yz+zxx^2+y^2+z^2 = xy+yz+zxx2+y2+z2=xy+yz+zx, it immediately means x=y=zx=y=zx=y=z (actually the left side is always at least as large as the right and equality occurs only for x=y=zx=y=zx=y=z)
  • 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 1

In the domain of real numbers solve the system of equations

x2+4y2+z2−4xy−2z+1=0,y2−xy−2y+2x=0.\begin{align*} x^2+4y^2+z^2-4xy-2z+1&=0,\\ y^2-xy-2y+2x&=0. \end{align*}x2+4y2+z2−4xy−2z+1y2−xy−2y+2x​=0,=0.​
1Hint

Notice that the second equation can actually be factored. This helps in simplifying the first equation.

2Hint

The second equation gives us (y−x)(y−2)=0(y-x)(y-2)=0(y−x)(y−2)=0. This gives two cases, y=xy=xy=x and y=2y=2y=2. 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:

y(y−2)−x(y−2)=0  ⟹  (y−x)(y−2)=0.y(y-2) - x(y-2) = 0 \implies (y-x)(y-2) = 0.y(y−2)−x(y−2)=0⟹(y−x)(y−2)=0.

This equality occurs if and only if y=xy=xy=x or y=2y=2y=2. We will analyze both cases.

  • If y=xy=xy=x, substituting into the first equation we get
    x2+4x2+z2−4x2−2z+1=0,x^2+4x^2+z^2-4x^2-2z+1=0,x2+4x2+z2−4x2−2z+1=0,
    which after adjustment changes to
    x2+(z−1)2=0.x^2 + (z-1)^2 = 0.x2+(z−1)2=0.
    Since this is a sum of two non-negative numbers, equality can occur only if both addends are zero. Thus x=0x=0x=0 and z=1z=1z=1. Since y=xy=xy=x, we have the solution (0,0,1)(0,0,1)(0,0,1).
  • If y=2y=2y=2, substituting into the first equation we get
    x2+4(22)+z2−4x(2)−2z+1=0,x^2+4(2^2)+z^2-4x(2)-2z+1 = 0,x2+4(22)+z2−4x(2)−2z+1=0,
    which after adjustment and completing the square gives
    x2−8x+16+z2−2z+1=0,(x−4)2+(z−1)2=0.\begin{align*} x^2-8x+16+z^2-2z+1&=0,\\ (x-4)^2 + (z-1)^2 &= 0. \end{align*}x2−8x+16+z2−2z+1(x−4)2+(z−1)2​=0,=0.​
    Similar to the first case, from here it follows x=4x=4x=4 and z=1z=1z=1. Since we assumed y=2y=2y=2, we have the solution (4,2,1)(4,2,1)(4,2,1).

By checking we convince ourselves that both found triples (0,0,1)(0,0,1)(0,0,1) and (4,2,1)(4,2,1)(4,2,1) are solutions of the system.

Problem 2

57th year MO, national round A in Czechia†, problem 1

Solve the system in real numbers:

x+y2=y3,y+x2=x3.\begin{align*} x + y^2 &= y^3, \\ y + x^2 &= x^3. \\ \end{align*}x+y2y+x2​=y3,=x3.​
1Hint

Subtract the equations and factor.

2Hint

After subtracting the equations and factoring we have that either x=yx=yx=y or x2+xy+y2−x−y+1=0x^2+xy+y^2-x-y+1=0x2+xy+y2−x−y+1=0. The second equation is non-evident. A straightforward way to solve it is to consider one variable (e.g., xxx) as an unknown and the second (e.g., yyy) 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 x2+y2+z2−xy−yz−zxx^2+y^2+z^2-xy-yz-zxx2+y2+z2−xy−yz−zx we first need to multiply by two.

✓Solution

Subtracting the equations we get x−y−(x2−y2)=y3−x3x-y-(x^2-y^2)=y^3-x^3x−y−(x2−y2)=y3−x3, which after factoring out the term (x−y)(x-y)(x−y) leads to

(x−y)(1−x−y+x2+xy+y2)=0.(x-y)(1 - x - y + x^2+xy+y^2) = 0.(x−y)(1−x−y+x2+xy+y2)=0.

This gives us two possibilities.

  • If x=yx=yx=y, substituting into the first equation of the system we have x+x2=x3x+x^2=x^3x+x2=x3, i.e., x(x2−x−1)=0x(x^2-x-1)=0x(x2−x−1)=0. The solutions are x=0x=0x=0 and the roots of the equation x2−x−1=0x^2-x-1=0x2−x−1=0, thus x=1±52x=\frac{1\pm\sqrt{5}}{2}x=21±5​​. We thus obtain three solutions: (0,0)(0,0)(0,0), (1+52,1+52)(\frac{1+\sqrt{5}}{2}, \frac{1+\sqrt{5}}{2})(21+5​​,21+5​​) and (1−52,1−52)(\frac{1-\sqrt{5}}{2}, \frac{1-\sqrt{5}}{2})(21−5​​,21−5​​).
  • If x2+xy+y2−x−y+1=0x^2+xy+y^2-x-y+1=0x2+xy+y2−x−y+1=0, we multiply the equation by two and appropriately rearrange the terms into a sum of three squares:
    2x2+2xy+2y2−2x−2y+2=0,(x2−2x+1)+(y2−2y+1)+(x2+2xy+y2)=0,(x−1)2+(y−1)2+(x+y)2=0.\begin{align*} 2x^2+2xy+2y^2-2x-2y+2&=0, \\ (x^2-2x+1) + (y^2-2y+1) + (x^2+2xy+y^2) &= 0, \\ (x-1)^2 + (y-1)^2 + (x+y)^2 &= 0. \end{align*}2x2+2xy+2y2−2x−2y+2(x2−2x+1)+(y2−2y+1)+(x2+2xy+y2)(x−1)2+(y−1)2+(x+y)2​=0,=0,=0.​
    The sum of three non-negative numbers is zero if and only if all three are zero. It would therefore have to hold x−1=0x-1=0x−1=0, y−1=0y-1=0y−1=0 and x+y=0x+y=0x+y=0. The first two equations give x=1x=1x=1 and y=1y=1y=1, 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 1

For real numbers xxx, yyy, zzz it holds

∣x+y∣=1−z,∣y+z∣=1−x,∣z+x∣=1−y.\begin{align*} |x+y|&=1-z,\\ |y+z|&=1-x,\\ |z+x|&=1-y. \end{align*}∣x+y∣∣y+z∣∣z+x∣​=1−z,=1−x,=1−y.​

Find out what values the sum x+y+zx+y+zx+y+z can take. For each complying sum, give an example of corresponding numbers xxx, yyy, zzz.

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 x+y+zx+y+zx+y+z, 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 x+y+zx+y+zx+y+z there indeed exist x,y,zx,y,zx,y,z for which the sum is attainable.

✓Solution

To get rid of absolute values, we square each of the three equations:

(x+y)2=(1−z)2,(y+z)2=(1−x)2,(z+x)2=(1−y)2.\begin{align*} (x+y)^2 &= (1-z)^2, \\ (y+z)^2 &= (1-x)^2, \\ (z+x)^2 &= (1-y)^2. \end{align*}(x+y)2(y+z)2(z+x)2​=(1−z)2,=(1−x)2,=(1−y)2.​

Adding these three equations and expanding all brackets we get:

2x2+2y2+2z2+2xy+2yz+2zx=3−2(x+y+z)+x2+y2+z2.2x^2 + 2y^2 + 2z^2 + 2xy + 2yz + 2zx = 3 - 2(x+y+z) + x^2 + y^2 + z^2.2x2+2y2+2z2+2xy+2yz+2zx=3−2(x+y+z)+x2+y2+z2.

We simplify this equation by subtracting the expression x2+y2+z2x^2+y^2+z^2x2+y2+z2 from both sides. We are left with:

x2+y2+z2+2xy+2yz+2zx=3−2(x+y+z).x^2+y^2+z^2 + 2xy+2yz+2zx = 3 - 2(x+y+z).x2+y2+z2+2xy+2yz+2zx=3−2(x+y+z).

The expression on the left side is exactly the formula for (x+y+z)2(x+y+z)^2(x+y+z)2. If we denote the sum S=x+y+zS = x+y+zS=x+y+z, the equation transforms to S2=3−2SS^2 = 3 - 2SS2=3−2S, i.e., S2+2S−3=0S^2 + 2S - 3 = 0S2+2S−3=0. By factoring (S+3)(S−1)=0(S+3)(S-1)=0(S+3)(S−1)=0 we find two possible values for the sum: S=1S=1S=1 and S=−3S=-3S=−3.

We still must verify if both these values are truly attainable.

  • For S=1S=1S=1 we can choose (x,y,z)=(1,0,0)(x,y,z)=(1,0,0)(x,y,z)=(1,0,0). We easily verify that this satisfies the system.
  • For S=−3S=-3S=−3 it suffices to take (x,y,z)=(−1,−1,−1)(x,y,z)=(-1,-1,-1)(x,y,z)=(−1,−1,−1).

Possible values of the sum x+y+zx+y+zx+y+z are therefore 111 and −3-3−3.

Let us add that the problem has other possible ways of solution, we can for example discuss signs of expressions x+yx+yx+y, y+zy+zy+z, z+xz+xz+x.

Problem 4

71st year MO, regional round A, problem 2

In the domain of positive† real numbers solve the system of equations

x2+2y2=1x+2y+3z,y2+2z2=2x+3y+4z,z2+2x2=3x+4y+5z.\begin{align*} x^2 + 2y^2 &= \hphantom{1}x + 2y + 3z, \\ y^2 + 2z^2 &= 2x + 3y + 4z, \\ z^2 + 2x^2 &= 3x + 4y + 5z. \end{align*}x2+2y2y2+2z2z2+2x2​=1x+2y+3z,=2x+3y+4z,=3x+4y+5z.​
1Hint

Notice that after adding all equations we have on the right side 6x+9y+12z6x+9y+12z6x+9y+12z, 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 x2=z2x^2=z^2x2=z2 on the left, which thanks to the positivity of x,y,zx,y,zx,y,z gives x=zx=zx=z.

✓Solution

Adding all three equations we get

3x2+3y2+3z2=6x+9y+12z.3x^2+3y^2+3z^2 = 6x+9y+12z.3x2+3y2+3z2=6x+9y+12z.

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:

(3x2+3y2+3z2)−3(y2+2z2)=0.(3x^2+3y^2+3z^2) - 3(y^2+2z^2) = 0.(3x2+3y2+3z2)−3(y2+2z2)=0.

After adjustment we have 3x2−3z2=03x^2 - 3z^2 = 03x2−3z2=0, i.e., x2=z2x^2=z^2x2=z2. Since x,y,zx,y,zx,y,z are positive real numbers, it follows from this that x=zx=zx=z.

Substituting z=xz=xz=x into the first two equations of the system we get:

x2+2y2=4x+2y=2(2x+y),y2+2x2=6x+3y=3(2x+y),\begin{align*} x^2 + 2y^2 &= 4x + 2y = 2(2x+y), \\ y^2 + 2x^2 &= 6x + 3y = 3(2x+y), \\ \end{align*}x2+2y2y2+2x2​=4x+2y=2(2x+y),=6x+3y=3(2x+y),​

We see that 3(x2+2y2)=2(y2+2x2)3(x^2+2y^2) = 2(y^2+2x^2)3(x2+2y2)=2(y2+2x2), from which 4y2=x24y^2=x^24y2=x2, thus from positivity we have 2y=x2y=x2y=x. By backward substitution into e.g. the first equation we get (2y)2+2y2=2(4y+y)(2y)^2 + 2y^2 = 2(4y+y)(2y)2+2y2=2(4y+y), thus 6y2=10y6y^2=10y6y2=10y, so either y=0y=0y=0 or y=5/3y=5/3y=5/3.

Altogether we have two candidates for solutions: (0,0,0)(0,0,0)(0,0,0), (10/3,5/3,10/3)(10/3,5/3,10/3)(10/3,5/3,10/3). By checking we easily verify that both triples satisfy the system.

Problem 5

In the domain of real numbers solve the system of equations

a3+b=c,b3+c=d,c3+d=a,d3+a=b.\begin{align*} a^3+b &= c, \\ b^3+c &= d, \\ c^3+d &= a, \\ d^3+a &= b. \end{align*}a3+bb3+cc3+dd3+a​=c,=d,=a,=b.​
1Hint

The system is cyclic, so it suffices to solve the case when a=max⁡{a,b,c,d}a=\max\{a,b,c,d\}a=max{a,b,c,d}. Thus a3≥b3a^3 \ge b^3a3≥b3 etc., we have more options how to use it. One of them gives us another inequality between a,b,c,da,b,c,da,b,c,d.

2Hint

The key is to use a3≥c3a^3 \ge c^3a3≥c3, this gives us c−b≥a−dc-b \ge a-dc−b≥a−d, which after adjustment means d−b≥a−cd-b \ge a-cd−b≥a−c, so necessarily d≥bd \ge bd≥b. What does d3≥b3d^3 \ge b^3d3≥b3 give us?

✓Solution

The system is cyclic, therefore it suffices to solve a=max⁡{a,b,c,d}a=\max\{a,b,c,d\}a=max{a,b,c,d}. Then a≥ca \ge ca≥c, so also a3≥c3a^3 \ge c^3a3≥c3. From the first and third equation we thus get c−b≥a−dc-b \ge a-dc−b≥a−d, which we adjust to d−b≥a−cd-b \ge a-cd−b≥a−c. Since a≥ca \ge ca≥c, the right side is non-negative, thus d≥bd \ge bd≥b.

From the inequality d≥bd \ge bd≥b we similarly derive d3≥b3d^3 \ge b^3d3≥b3, which after substitution from the second and fourth equation gives b−a≥d−cb-a \ge d-cb−a≥d−c, thus b−d≥a−cb-d \ge a-cb−d≥a−c. But a≥ca \ge ca≥c, thus b≥db \ge db≥d, which together with d≥bd \ge bd≥b gives d=bd=bd=b, and subsequently b−d≥a−cb-d \ge a-cb−d≥a−c gives 0≥a−c0 \ge a-c0≥a−c, so c=ac=ac=a.

By substituting into the system we reduce it to

a3+b=a,b3+a=b.\begin{align*} a^3+b &= a, \\ b^3+a &= b. \end{align*}a3+bb3+a​=a,=b.​

Adding the equations we get a3+b3=0a^3+b^3=0a3+b3=0, so a3=(−b)3a^3=(-b)^3a3=(−b)3, from which b=−ab=-ab=−a. By substituting we now have only one equation a3−a=aa^3-a=aa3−a=a, which is equivalent to a(a2−2)=0a(a^2-2)=0a(a2−2)=0, so a=0a=0a=0 or a=±2a=\pm \sqrt2a=±2​.

By checking we easily verify that all quadruples

(0,0,0,0),(2,−2,2,−2),(−2,2,−2,2)(0,0,0,0), (\sqrt{2}, -\sqrt{2}, \sqrt{2}, -\sqrt{2}), (-\sqrt{2}, \sqrt{2}, -\sqrt{2}, \sqrt{2})(0,0,0,0),(2​,−2​,2​,−2​),(−2​,2​,−2​,2​)

are a solution.

Problem 6

Find the smallest four-digit natural number nnn, for which the system

x3+y3+x2y+y2x=n,x2+y2+x+y=n+1\begin{align*} x^3+y^3+x^2y+y^2x&=n,\\ x^2+y^2+x+y&=n+1 \end{align*}x3+y3+x2y+y2xx2+y2+x+y​=n,=n+1​

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 x3+y3+x2y+y2x=(x+y)(x2+y2)x^3+y^3+x^2y+y^2x=(x+y)(x^2+y^2)x3+y3+x2y+y2x=(x+y)(x2+y2). The second equation is meanwhile (x+y)+(x2+y2)=n+1(x+y)+(x^2+y^2)=n+1(x+y)+(x2+y2)=n+1. The numbers A=x+yA=x+yA=x+y, B=x2+y2B=x^2+y^2B=x2+y2 therefore satisfy AB=nAB=nAB=n, A+B=n+1A+B=n+1A+B=n+1. Which ones can they be? Formally we can derive them either by realizing that from Vieta's† formulas A,BA,BA,B must be roots of the quadratic equation t2−(n+1)t+n=0t^2-(n+1)t+n=0t2−(n+1)t+n=0 and solving it; or we can substitute B=n+1−AB=n+1-AB=n+1−A into the first equation, etc. In any case we obtain two possibilities for (A,B)(A,B)(A,B). One of them can be excluded quickly (let's not forget that nnn is a four-digit number, thus it is positive).

✓Solution

It holds x3+y3+x2y+y2x=(x+y)(x2+y2)x^3+y^3+x^2y+y^2x=(x+y)(x^2+y^2)x3+y3+x2y+y2x=(x+y)(x2+y2). If we denote A=x+yA=x+yA=x+y and B=x2+y2B=x^2+y^2B=x2+y2, the system can be equivalently rewritten to the form AB=nAB=nAB=n and A+B=n+1A+B=n+1A+B=n+1. From Vieta's formulas it follows that AAA and BBB are roots of the quadratic equation t2−(n+1)t+n=0t^2-(n+1)t+n=0t2−(n+1)t+n=0, which we can factor as (t−1)(t−n)=0(t-1)(t-n)=0(t−1)(t−n)=0. Possible values for the pair {A,B}\{A,B\}{A,B} are therefore {1,n}\{1,n\}{1,n}. We will analyze both cases.

  • Let x+y=nx+y=nx+y=n and x2+y2=1x^2+y^2=1x2+y2=1. Since x,yx,yx,y are integers, from the second equation we have x,y≤1x,y \leq 1x,y≤1. The sum x+yx+yx+y equal to nnn will therefore certainly not be a four-digit number.
  • Let x+y=1x+y=1x+y=1 and x2+y2=nx^2+y^2=nx2+y2=n. At least one of the numbers x,yx,yx,y is positive (otherwise x+y≤0x+y \leq 0x+y≤0), without loss of generality let it be xxx.Substituting y=1−xy=1-xy=1−x into the second equation we get x2+(1−x)2=nx^2+(1-x)^2=nx2+(1−x)2=n, thus n=2x2−2x+1n=2x^2-2x+1n=2x2−2x+1. The function f(x)=2x2−2x+1f(x)=2x^2-2x+1f(x)=2x2−2x+1 is obviously increasing for x≥1x \ge 1x≥1. The goal is to find the smallest xxx for which f(x)f(x)f(x) is four-digit. This can be done by solving the inequality 2x2−2x+1≥10002x^2-2x+1 \ge 10002x2−2x+1≥1000, or by trying, the answer is x=23x=23x=23, since f(22)=925f(22)=925f(22)=925 and f(23)=1013f(23)=1013f(23)=1013.On the other hand, for n=1013n=1013n=1013 the equation 2x2−2x+1=10132x^2-2x+1=10132x2−2x+1=1013 has two solutions x=23x=23x=23 and x=−22x=-22x=−22, to which correspond y=−22y=-22y=−22 and y=23y=23y=23, so both are integer.The answer is n=1013n=1013n=1013.

Problem 7

64th year MO, national round A, problem 4

In the domain of real numbers solve the system of equations

a(b2+c)=c(c+ab),b(c2+a)=a(a+bc),c(a2+b)=b(b+ca).\begin{align*} a(b^2 + c) &= c(c + ab),\\ b(c^2 + a) &= a(a + bc),\\ c(a^2 + b) &= b(b + ca). \end{align*}a(b2+c)b(c2+a)c(a2+b)​=c(c+ab),=a(a+bc),=b(b+ca).​
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 abc≠0abc \neq 0abc=0. 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:

a(b2+c)=c(c+ab),ab2+ac=c2+abc,ab2−abc=c2−ac,ab(b−c)=c(c−a).\begin{align*} a(b^2+c) &= c(c+ab), \\ ab^2 + ac &= c^2 + abc, \\ ab^2 - abc &= c^2 - ac, \\ ab(b-c) &= c(c-a). \end{align*}a(b2+c)ab2+acab2−abcab(b−c)​=c(c+ab),=c2+abc,=c2−ac,=c(c−a).​

Now we can multiply and assuming mutual distinctness of a,b,ca,b,ca,b,c 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:

a(b2+c)=c(c+ab),ab2+ac=c2+abc,ab2−abc=c2−ac,ab(b−c)=c(c−a).\begin{align*} a(b^2+c) &= c(c+ab), \\ ab^2 + ac &= c^2 + abc, \\ ab^2 - abc &= c^2 - ac, \\ ab(b-c) &= c(c-a). \end{align*}a(b2+c)ab2+acab2−abcab(b−c)​=c(c+ab),=c2+abc,=c2−ac,=c(c−a).​

When we adjust the remaining equations in this way, we get:

ab(b−c)=c(c−a),bc(c−a)=a(a−b),ca(a−b)=b(b−c).\begin{align*} ab(b-c) &= c(c-a), \tag1 \\ bc(c-a) &= a(a-b), \tag2 \\ ca(a-b) &= b(b-c). \tag3 \end{align*}ab(b−c)bc(c−a)ca(a−b)​=c(c−a),=a(a−b),=b(b−c).​(1)(2)(3)​

We will analyze several cases.

  • If any variable is zero, for example a=0a=0a=0, then from the first equation we have 0=c20=c^20=c2, so c=0c=0c=0, which then in the third equation gives b=0b=0b=0. We have (0,0,0)(0,0,0)(0,0,0), which is indeed a solution. Let us assume therefore that a,b,ca,b,ca,b,c are non-zero.
  • If all variables are non-zero, but some two are equal, for example a=ba=ba=b, then from the second equation bc(c−a)=0bc(c-a)=0bc(c−a)=0 gives thanks to non-zero b,cb,cb,c the equality c=ac=ac=a, so all three variables are equal. We easily verify that every triple (t,t,t)(t,t,t)(t,t,t) is a solution of the system (it includes already the found solution (0,0,0)(0,0,0)(0,0,0)). Let us assume therefore that a,b,ca,b,ca,b,c are pairwise distinct. Multiplying equations (1), (2), (3) we get
    a2b2c2(a−b)(b−c)(c−a)=abc(a−b)(b−c)(c−a).a^2b^2c^2(a-b)(b-c)(c-a) = abc(a-b)(b-c)(c-a).a2b2c2(a−b)(b−c)(c−a)=abc(a−b)(b−c)(c−a).
    Since the variables are distinct and non-zero, we can divide by the expression abc(a−b)(b−c)(c−a)abc(a-b)(b-c)(c-a)abc(a−b)(b−c)(c−a) and we get abc=1abc=1abc=1. We use this to adjust equations (1), (2), (3) by multiplying them successively by ccc, aaa, bbb:
    (b−c)=c2(c−a),(c−a)=a2(a−b),(a−b)=b2(b−c).\begin{align*} (b-c) &= c^2(c-a), \\ (c-a) &= a^2(a-b), \\ (a-b) &= b^2(b-c). \end{align*}(b−c)(c−a)(a−b)​=c2(c−a),=a2(a−b),=b2(b−c).​
    This will lead to a contradiction: The system is cyclic, so it suffices to solve a=max⁡{a,b,c}a=\max\{a,b,c\}a=max{a,b,c}. Then c−a<0c-a<0c−a<0, so from the first equation b−c<0b-c<0b−c<0, so from the last equation a−b<0a-b<0a−b<0, contradiction.

Summing up all cases we obtain that the only solutions are triples (t,t,t)(t,t,t)(t,t,t) for any real number ttt.

Comments

Obsah

  • 1Introduction
  • 2Theory
  • 2.1Subtracting equations
  • 2.2Adding equations
  • 2.3Ordering variables
  • 3What to remember
  • 3.1Solving Techniques
  • 3.2General useful knowledge
  • 4Further Problems
  • Comments
MathComps LogoMathComps

The long-term vision of the project is to create a platform for beginners and advanced solvers of mathematical competitions, their tutors, and all supporters.

Navigation

  • Problems
  • Handouts
  • Guide

Project

  • About
  • Sponsors

© 2026 MathComps•Patrik Bak•Privacy and terms

MathComps LogoMathComps
ProblemsHandoutsGuideNews
Sign in