## An algebraic problem of finding four numbers, given the products of each of the numbers with the sum of the three others $\text{}*\text{}$$\text{}*\text{}$Originally published as Problema algebraicum de inveniendis quatuor numeris, ex datis totidem productis uniuscuiusque horum numerorum in summas trium reliquorum, Opera Posthuma 1 (1862), 282–287, and reprinted in Leonhard Euler, Opera Omnia, Series 1: Opera mathematica, Volume 6, Birkhäuser, 1992. A copy of the original text is available electronically at the Euler Archive, at http://www.eulerarchive.org. This paper is E808 in the Eneström index.

### Leonhard Euler † † Date of translation: April 8, 2005. Translated from the Latin by Jordan Bell, 2nd year undergraduate in Honours Mathematics, School of Mathematics and Statistics, Carleton University, Ottawa, Ontario, Canada. Email: jbell3@connect.carleton.ca

If the four numbers that are to be searched for are given as $v,x,y,z$  , the following four equations will be considered:
 $\begin{array}{cc}v\left(x+y+z\right)=a& \end{array}$
 $\begin{array}{cc}x\left(v+y+z\right)=b& \end{array}$
 $\begin{array}{cc}y\left(v+x+z\right)=c& \end{array}$
 $\begin{array}{cc}z\left(v+x+y\right)=d& \end{array}$
 $\begin{array}{}\end{array}$
From these equations, with basic methods three unknowns could be successively eliminated, and the fourth would be able to be dealt with according to the resolution of an equation. However, there is no reason why we would choose one as preferrable to the others to be ultimately determined. Indeed, it is suitable for none of these equations to be the final one determined, but in fact for a new unknown to be introduced that relates to each equally and by which the unknowns would be able to be defined. Therefore we sum the numbers that are to be found in this formula, $v+x+y+z=2t,$  and so then the above equations are changed into these:
 $\begin{array}{cccc}v\left(2t-v\right)=a=2tv-{v}^{2},& \text{from which}& v=t-✓\left(tt-a\right)& \end{array}$
 $\begin{array}{cccc}x\left(2t-x\right)=b=2tx-{x}^{2}& & x=t-✓\left(tt-b\right)& \end{array}$
 $\begin{array}{cccc}y\left(2t-y\right)=c=2ty-{y}^{2}& & y=t-✓\left(tt-c\right)& \end{array}$
 $\begin{array}{cccc}z\left(2t-z\right)=d=2tz-{z}^{2}& & z=t-✓\left(tt-d\right).& \end{array}$
 $\begin{array}{}\end{array}$
We have the beginning of a solution now, such that from the single quantity $t$  we have the power to determine all four numbers that are being searched for, whereby all that remains is for us to investigate this quantity $t$  . With respect to the equation $v+x+y+z=2t,$  by substituting in place of $v,x,y,z$  , the values formed with $t$  it will be: $4t-✓\left(tt-a\right)-✓\left(tt-b\right)-✓\left(tt-c\right)-✓\left(tt-d\right)=2t,$  from which this equation follows: $2t=✓\left(tt-a\right)+✓\left(tt-b\right)+✓\left(tt-c\right)+✓\left(tt-d\right),$  which indeed could be worked through by the method of Newton for rationalization, but this would be a most tiresome labor. Therefore we will try resolving this equation with another method.
 We put $✓\left(tt-a\right)=p$  , it will be $v=t-p$  ; in a similar way $✓\left(tt-b\right)=q$  , $x=t-q$ $✓\left(tt-c\right)=r$  , $y=t-r$ $✓\left(tt-d\right)=s$  , $z=t-s$
and it will be $p+q+r+s=2t$  ; because of the irrationals $p,q,r$  and $s$  , this equation should be changed into another, in which the letters $p,q,r$  and $s$  correspond to powers of exponentials, from which by taking the place of the letters $p,q,r$  and $s$  that are to be made, a rational equation comes into existence, by which the value of the unknown $t$  can be defined. To this end, we form this equation: ${X}^{4}-A{X}^{3}+B{X}^{2}-CX+D=0,$  whose four roots are given by the quantities $a,b,c,d$  . Therefore it will be by the nature of equations:
 $\begin{array}{cc}A=a+b+c+d& \end{array}$
 $\begin{array}{cc}B=ab+ac+ad+bc+bd+cd& \end{array}$
 $\begin{array}{cc}C=abc+abd+acd+bcd& \end{array}$
 $\begin{array}{cc}D=abcd.& \end{array}$
 $\begin{array}{}\end{array}$
Now it is put $Y=tt-X$  , that is $X=-Y+tt$  , so that we will have made by substituting this into the former equation:
$\begin{array}{c}{Y}^{4}-4tt{Y}^{3}+6{t}^{4}{Y}^{2}-4{t}^{6}Y+{t}^{8}\\ +A{Y}^{3}-3Att{Y}^{2}+3A{t}^{4}Y-A{t}^{6}\\ +B{Y}^{2}-2BttY+B{t}^{4}\\ +CY-Ctt\\ +D\end{array}\right\}=0.$
The four roots of this equation of $Y$  will be: $tt-a,tt-b,tt-c,tt-d.$  In place of this equation, we put for the sake of brevity this: ${Y}^{4}-P{Y}^{3}+Q{Y}^{2}-RS+S=0,$  so that it will be:
 $\begin{array}{cc}R=4tt-A& \end{array}$
 $\begin{array}{cc}Q=6{t}^{4}-3Att+B& \end{array}$
 $\begin{array}{cc}R=4{t}^{6}-3A{t}^{4}+2Btt-C& \end{array}$
 $\begin{array}{cc}S={t}^{8}-A{t}^{6}+B{t}^{4}-Ctt+D.& \end{array}$
 $\begin{array}{}\end{array}$
Next it will be $Y={Z}^{2}$  , that is $Z=±✓Y$  , so that we will have: ${Z}^{8}-P{Z}^{6}+Q{Z}^{4}-R{Z}^{2}+S=0.$  The following will be the eight roots of this equation:
 $\begin{array}{cc}+✓\left(tt-a\right)=+p& -✓\left(tt-a\right)=-p\end{array}$
 $\begin{array}{cc}+✓\left(tt-b\right)=+q& -✓\left(tt-b\right)=-q\end{array}$
 $\begin{array}{cc}+✓\left(tt-c\right)=+r& -✓\left(tt-c\right)=-r\end{array}$
 $\begin{array}{cc}+✓\left(tt-d\right)=+s& -✓\left(tt-d\right)=-s.\end{array}$
 $\begin{array}{}\end{array}$
This equation in eight dimensions is resolved into two biquadratics where for one the roots are $+p,+q,+r,+s$  , while for the other the roots are $-p,-q,-r,-s$  , which are:
 $\begin{array}{cc}{Z}^{4}-\alpha {Z}^{3}+\beta {Z}^{2}-\gamma Z+d\delta =0& \end{array}$
 $\begin{array}{cc}{Z}^{4}+\alpha {Z}^{3}+\beta {Z}^{2}+\gamma Z+\delta =0,& \end{array}$
 $\begin{array}{}\end{array}$
for which it will be by the nature of equations:
 $\begin{array}{cc}\alpha =p+q+r+s& \end{array}$
 $\begin{array}{cc}\beta =pq+pr+ps+qr+qs+rs& \end{array}$
 $\begin{array}{cc}\gamma =pqr+pqs+prs+qrs& \end{array}$
 $\begin{array}{cc}\delta =pqrs.& \end{array}$
 $\begin{array}{}\end{array}$
Since the product of these two biquadratic equations should be equal to the former equation of eight dimensions, it will be:
 $\begin{array}{cc}P={\alpha }^{2}-2\beta & \end{array}$
 $\begin{array}{cc}Q={\beta }^{2}-2\alpha \gamma +2\delta & \end{array}$
 $\begin{array}{cc}R={\gamma }^{2}-2\beta \delta & \end{array}$
 $\begin{array}{cc}S={\delta }^{2}.& \end{array}$
 $\begin{array}{}\end{array}$
Also with it $\alpha =p+q+r+s$  , it will be $\alpha =2t$  , and then ${\alpha }^{2}=4tt$  , from which it will be: ${\alpha }^{2}-2\beta =4tt-2\beta =P=4tt-A,$  therefore $\beta =\frac{A}{2}$  . The second equation $Q={\beta }^{2}-2\alpha \gamma +2\delta$  gives: $6{t}^{4}-3Att+B=\frac{{A}^{2}}{4}-4\gamma t+2\delta ,$  that is, $\delta =3{t}^{4}-\frac{3}{2}Att+2\gamma t-\frac{{A}^{2}}{8}+\frac{B}{2}.$  Certainly the third equation $R={\gamma }^{2}-2\beta \delta$  will yield $4{t}^{6}-3A{t}^{4}+2Btt-C={\gamma }^{2}-A\delta ,$  that is, $A\delta =-4{t}^{6}+3A{t}^{4}-2Btt+c+{\gamma }^{2},$  then with the above it will be:
$\begin{array}{c}4{t}^{6}-\frac{3}{2}{A}^{2}tt+2A\gamma t-\frac{{A}^{3}}{8}\\ +2Btt+\frac{AB}{2}\\ -C\end{array}\right\}={\gamma }^{2}.$
By having extracted the square root, it will be obtained that, $\gamma =At±✓\left(4{t}^{6}+\left(2B-\frac{1}{2}{A}^{2}\right)tt-\frac{1}{8}{A}^{3}+\frac{1}{2}AB-C\right)$  and then $\delta =3{t}^{4}+\frac{1}{2}Att-\frac{1}{8}{A}^{2}+\frac{1}{2}B±2t✓\left(4{t}^{6}+\left(2B-\frac{1}{2}{A}^{2}\right)tt-\frac{1}{8}{A}^{3}+\frac{1}{2}AB-C\right),$  of which the square will be
 $\begin{array}{cccc}\begin{array}{c}25{t}^{8}+3A{t}^{6}-\frac{5}{2}{A}^{2}{t}^{4}-\frac{5}{8}{A}^{3}tt+\frac{1}{64}{A}^{4}\\ +11B{t}^{4}+\frac{5}{2}ABtt-\frac{1}{8}{A}^{2}B\\ -4Ctt+\frac{1}{4}{B}^{2}\end{array}& \left\{\begin{array}{c}±12{t}^{5}\\ ±2AA{t}^{3}\\ ±\frac{1}{2}{A}^{2}t\\ ±2Bt\end{array}\right\}& ✓\left(4{t}^{6}+\left(2B-\frac{1}{2}{A}^{2}\right)tt-\frac{1}{8}{A}^{3}+\frac{1}{2}AB-C\right)& \end{array}$
 $\begin{array}{}\end{array}$
which should be equal to $S$  itself, that is this expression: ${t}^{8}-A{t}^{6}+B{t}^{4}-Ctt+D$  , from which results this equation:
 $\begin{array}{cccc}\begin{array}{c}24{t}^{8}+4A{t}^{6}-\frac{5}{2}{A}^{2}{t}^{4}-\frac{5}{8}{A}^{3}tt+\frac{1}{64}{A}^{4}\\ +10B{t}^{4}+\frac{5}{2}ABtt-\frac{1}{8}{A}^{2}B\\ -3Ctt+\frac{1}{4}{B}^{2}\\ -D\end{array}=& \left\{\begin{array}{c}+12{t}^{5}\\ +2A{t}^{3}\\ -\frac{1}{2}{A}^{2}t\\ +2Bt\end{array}\right\}& ✓\left(4{t}^{6}+\left(2B-\frac{1}{2}{A}^{2}\right)tt-\frac{1}{8}{A}^{3}+\frac{1}{2}AB-C\right),& \end{array}$
 $\begin{array}{}\end{array}$
which reduced to rationals gives:
 $\begin{array}{cccccc}\begin{array}{c}+3{A}^{4}\\ -12{A}^{2}B\\ +24AC\\ -48D\end{array}\right\}{t}^{8}& \begin{array}{c}+\frac{5}{4}{A}^{5}\\ -8{A}^{3}B\\ +7{A}^{2}C\\ +12A{B}^{2}\\ -8AD\\ -12BC\end{array}\right\}{t}^{6}& \begin{array}{c}+\frac{3}{16}{A}^{6}\\ -\frac{27}{16}{A}^{4}B\\ +\frac{7}{4}{A}^{3}C\\ +\frac{9}{2}{A}^{2}{B}^{2}\\ +5{A}^{2}D\\ -7ABC\\ -3{B}^{3}\\ +9{C}^{2}\\ -20BC\end{array}\right\}{t}^{4}& \begin{array}{c}+\frac{3}{256}{A}^{7}\\ -\frac{9}{64}{A}^{5}B\\ +\frac{5}{32}{A}^{4}C\\ +\frac{9}{16}{A}^{3}{B}^{2}\\ +\frac{5}{4}{A}^{3}D\\ -\frac{5}{4}{A}^{2}BC\\ -\frac{3}{4}A{B}^{3}\\ -5ABD\\ +\frac{5}{2}{B}^{2}C\\ +6CD\end{array}\right\}tt& \begin{array}{c}+\frac{1}{4096}{A}^{8}\\ -\frac{1}{256}{A}^{6}B\\ +\frac{3}{128}{A}^{4}{B}^{2}\\ -\frac{1}{32}{A}^{4}D\\ -\frac{1}{16}{A}^{2}{B}^{3}\\ +\frac{1}{4}{A}^{2}BD\\ +\frac{1}{16}{B}^{4}\\ -\frac{1}{2}{B}^{2}D\\ +{D}^{2}\end{array}\right\}=0& \end{array}$
 $\begin{array}{}\end{array}$
It put for the sake of brevity $E=\frac{1}{4}{A}^{2}-B$  and $u=2t$  , and it will be:
 $\begin{array}{cccccc}\begin{array}{c}+3{A}^{2}E\\ +6AC\\ -12D\end{array}\right\}{u}^{8}& \begin{array}{c}+2{A}^{3}E\\ +4{A}^{2}C\\ +12A{E}^{2}\\ -8AD\\ +12CE\end{array}\right\}{u}^{6}& \begin{array}{c}+9{A}^{2}{E}^{2}\\ +28ACE\\ +80DE\\ +36{C}^{2}\\ +12{E}^{3}\end{array}\right\}{u}^{4}& \begin{array}{c}+12A{E}^{3}\\ +80ADE\\ +96CD\\ +40C{E}^{2}\end{array}\right\}uu& \begin{array}{c}+4{E}^{4}\\ -32D{E}^{2}\\ +64{D}^{2}\end{array}\right\}=0.& \end{array}$
 $\begin{array}{}\end{array}$
This equation then has four positive roots and the same number of negative roots, which are equal to each other; thus the resolution of the equation can be accomplished by a biquadratic equation. Moreover, $A,B,C,D$  and $E$  are known quantities determined by the given $a,b,c,d$  , with it of course
 $\begin{array}{cc}A=a+b+c+d& \end{array}$
 $\begin{array}{cc}B=ab+ac+ad+bc+bd+cd& \end{array}$
 $\begin{array}{cc}C=abc+abd+acd+bcd& \end{array}$
 $\begin{array}{cc}D=abcd& \end{array}$
 $\begin{array}{}\end{array}$
and likewise $E=\frac{1}{4}{A}^{2}-B.$  With this having been discovered indeed, whatever the value of $u$  the quantities being searched for are:
 $\begin{array}{cc}v=\frac{u-✓\left(uu-4a\right)}{2},& x=\frac{u-✓\left(uu-4b\right)}{2}\end{array}$
 $\begin{array}{cc}y=\frac{u-✓\left(uu-4c\right)}{2},& z=\frac{u-✓\left(uu-4d\right)}{2}.\end{array}$
 $\begin{array}{}\end{array}$
Another solution
Furthermore, this problem can be solved in another way: From the first equations it is
 $\begin{array}{cc}a-b=\left(v-x\right)\left(y+z\right)& b-c=\left(x-y\right)\left(v+z\right)\end{array}$
 $\begin{array}{cc}a-c=\left(v-y\right)9x+z\right)& b-d=\left(x-z\right)\left(v+y\right)\end{array}$
 $\begin{array}{cc}a-d=\left(v-z\right)\left(x+y\right)& c-d=\left(y-z\right)\left(v+x\right)\end{array}$
 $\begin{array}{}\end{array}$
from the first and last of the equations is we obtain, $v-x=\frac{a-b}{y+z},v+x=\frac{c-d}{y-z}.$  Were it $\frac{a+b-c-d}{2}=h$  it will be $h=vx-yz$  , and by making it $\frac{a+b+c+d}{2}=k$  it will be $k=vx+vy+vz+xy+xz+yz,$  therefore $k-h=2yz+\left(v+x\right)\left(y+z\right),$  that is, $k-h=2yz-\frac{\left(c-d\right)\left(y+z\right)}{y-z}=c+d$  , therefore $2yz=\frac{2dy-2cz}{y-z}$  , i.e.
$yyz-yzz=dy-cz$  ; with it set $yz=t$  this equations changes into this: $\left(d-t\right)y-\left(c-t\right)z=0.$  It is not taken $dy-cz=u$  , and it will be $y=\frac{\left(c-t\right)u}{\left(c-d\right)t}\text{and}z=\frac{\left(d-t\right)u}{\left(c-d\right)t},$  for which substituting $t=yz$  in the values yields $t=\frac{\left(c-t\right)\left(d-t\right)uu}{\left(c-d{\right)}^{2}tt},$  from which comes $u=\frac{\left(c-d\right)t✓t}{✓\left(cd-\left(c+d\right)t+tt\right)}.$  By substituting this into the values of $y$  and $z$  formed above we will have:
 $\begin{array}{cc}I.y=\frac{\left(c-d\right)✓t}{✓\left(cd-\left(c+d\right)t+tt\right)}\text{and}& \end{array}$
 $\begin{array}{cc}II.z=\frac{\left(d-t\right)✓t}{✓\left(cd-\left(c+d\right)t+tt\right)};& \end{array}$
 $\begin{array}{}\end{array}$
and then by adding and subtracting, $y+z=\frac{\left(c+d-2t\right)✓t}{✓\left(cd-\left(c+d\right)t+tt\right)}\text{and}y-z\frac{\left(c-d\right)✓t}{✓\left(cd-\left(c+d\right)t+tt\right)}.$  Then as formerly it is deduced, $v+x=\frac{✓\left(cd-\left(c+d\right)t+tt\right)}{✓t}\text{and}v-x=\frac{\left(a-b\right)✓\left(cd-\left(c+d\right)t+tt\right)}{\left(c+d-2t\right)✓t}$  from which, by once more adding and subtracting, with it put for the sake of previty $b+c+d-a=m\text{and}a+c+d-b=n,$  the following values are produced for $v$  and $x$  :
 $\begin{array}{cc}III.v=\frac{\left(n-2t\right)✓\left(cd-\left(c+d\right)t+tt\right)}{2\left(c+d-2t\right)✓t}\text{and}& \end{array}$
 $\begin{array}{cc}IV.x=\frac{\left(m-2t\right)✓\left(cd-\left(c+d\right)t+tt\right)}{2\left(c+d-2t\right)✓t}.& \end{array}$
 $\begin{array}{}\end{array}$
With what we have discovered above and also that $h=vx-yz$  , by now substituting in the values of $v,x,y,z$  and unravelling their expansion for the purpose of determining the value of $t$  , this equation of four dimensions is formed: $4t\left(h+t\right)\left(c+d-2t{\right)}^{2}=\left(m-2t\right)\left(n-2t\right)\left(c-t\right)\left(d-t\right).$