## An easier solution of a Diophantine problem about triangles, in which those lines from the vertices which bisect the opposite sides may be expressed rationally$\text{}*\text{}$$\text{}*\text{}$Delivered to the St.-Petersburg Academy on August 12, 1779. Originally published as Solutio facilior problematis Diophantei circa triangulum, in quo rectae ex angulis latera opposita bisecantes rationaliter exprimantur, Mémoires de l'Académie Impériale des Sciences de St.-Pétersbourg 2 (1810), 10-16, and reprinted in Leonhard Euler, Opera Omnia, Series 1: Opera mathematica, Volume 4, Birkhäuser, 1992. A copy of the original text is available electronically at the Euler Archive, at www.eulerarchive.org. This paper is E732 in the Eneström index.

### Leonhard Euler † † Date of translation: March 2, 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. Translation written under Dr. B. Mortimer.

1. The sides of a triangle having been placed as $AB=2c$  , $AC=2b$  and $BC=2a$  , if the bisecting lines are called $AX=x$  , $BY=y$  and $CZ=z$  , it is apparent from Geometry for the squares of these three lines to be expressed in the following way:
 $\begin{array}{cc}xx=2bb+2cc-aa& \end{array}$
 $\begin{array}{cc}yy=2cc+2aa-bb& \end{array}$
 $\begin{array}{cc}zz=2aa+2bb-cc,& \end{array}$
 $\begin{array}{}\end{array}$
and these equations are thus to be resolved through rational numbers.
2. From these three equations, the following three are formed:
 $\begin{array}{cc}\text{I.}& xx-yy=3\left(bb-aa\right)\end{array}$
 $\begin{array}{cc}\text{II.}& xx+yy=4cc+aa+bb\end{array}$
 $\begin{array}{cc}\text{III.}& zz=2aa+2bb-cc.\end{array}$
 $\begin{array}{}\end{array}$
We deal with these equations in the following way.
3. We start with the first of these equations, and so that we can avoid fractions, we set $xx-yy=3\left(bb-aa\right)=12fg\left(pp-qq\right)$  ; from this, with it $bb-aa=4fg\left(pp-qq\right)$  , we make it $b+a=2f\left(p+q\right)$  and $b-a=2g\left(p-q\right)$  , from which it will be $b=\left(f+g\right)p+\left(f-g\right)q$  and $a=\left(f-g\right)p+\left(f+g\right)q$  . Indeed, with the previous equation $xx-yy=12fg\left(pp-qq\right)$  , we take $x+y=6g\left(p+q\right)$  and $x-y=2f\left(p-q\right)$  , from which it will be $x=\left(3g+f\right)p+\left(3g-f\right)q$  and $y=\left(3g-f\right)p+\left(3g+f\right)q$  .
4. The second equation is now approached: $xx+yy=4cc+aa+bb,$  and together with the values that have just been determined, it is discovered that: $xx+yy=2\left(9gg+ff\right)\left(pp+qq\right)+4\left(9gg-ff\right)pq.$  Then indeed it will be: $bb+aa=2\left(ff+gg\right)\left(pp+qq\right)+4\left(ff-gg\right)pq.$  Therefore, with it $4cc=xx+yy-\left(bb+aa\right)$  , it will be: $4cc=16gg\left(pp+qq\right)+\left(40gg-8ff\right)pq,$  on account of which we have $cc=4gg\left(pp+qq\right)+\left(10gg-2ff\right)pq$  , so that therefore this formula is to be transformed into a square.
5. From here the third equation is proceded to, which is $zz=2\left(aa+bb\right)-cc$  , from which it will be:
 $\begin{array}{cc}2\left(aa+bb\right)=4\left(ff+gg\right)\left(pp+qq\right)+8\left(ff-gg\right)pq\text{and}& \end{array}$
 $\begin{array}{cc}cc=4gg\left(pp+qq\right)+\left(10gg-2ff\right)pq,\text{and it will be}& \end{array}$
 $\begin{array}{cc}zz=4ff\left(pp+qq\right)+\left(10ff-18gg\right)pq,& \end{array}$
 $\begin{array}{}\end{array}$
which is thus another formula that we must reduce to a square.
6. We divide the former of these two equations by $4gg$  and the latter indeed by $4ff$  , so that we may have the following formulas, reduced into squares:
 $\begin{array}{cc}\frac{cc}{4gg}=pp+qq+2pq\left(\frac{5gg-ff}{4gg}\right)& \end{array}$
 $\begin{array}{cc}\frac{zz}{4ff}=pp+qq+2pg\left(\frac{5ff-9gg}{4ff}\right).& \end{array}$
 $\begin{array}{}\end{array}$
7. For briefness, here we put $\frac{5gg-ff}{4gg}=m$  and $\frac{5ff-9gg}{4ff}=n$  , so that now the entire problem is brought to the resolution of these two formulas:
 $\begin{array}{cc}\frac{cc}{4gg}=pp+qq+2mpq=tt& \end{array}$
 $\begin{array}{cc}\frac{zz}{4ff}=pp+qq+2npq=uu,& \end{array}$
 $\begin{array}{}\end{array}$
and with this we will have $c=2gt$  and $z=2fu$  . At this point, in order for these two formulas to be reduced to squares, it is noted to be that $tt-uu=2\left(m-n\right)pq$  , and for convenience it is thus permitted to treat this such that it is set $t+u=\left(m-n\right)p$  and $t-u=2q$  , from which is gathered $t=\frac{1}{2}\left(m-n\right)p+q$  and $u=\frac{1}{2}\left(m-n\right)p-q$  .
8. But if these values are now substituted in place of $t$  and $u$  , it comes about that squares simultaneously arise on both sides of the equation: $pp\left(1-\frac{1}{4}\left(m-n{\right)}^{2}\right)+\left(m+n\right)pq=0,$  and when this equation is divided by $p$  it is: $p\left(1-\frac{1}{4}\left(m-n{\right)}^{2}\right)+\left(m+n\right)q=0,$  from which the ratio between the letters $p$  and $q$  freely comes forth: $\frac{p}{q}=\frac{4\left(m+n\right)}{\left(m-n{\right)}^{2}-4}$  , on account of which it will be possible for it to be taken $p=4\left(m+n\right)$  and $q=\left(m-n{\right)}^{2}-4$  , or equivalent multiples, so that it is to be held in general that $p=4\left(m+n\right)M$  and $q=\left(\left(m-n{\right)}^{2}-4\right)N$  , and in this way all the conditions are fully satisfied.
9. Now with the letters $p$  and $q$  that have been worked out, it will be $t=2\left(m+n\right)\left(m-n\right)+\left(m-n{\right)}^{2}-4=\left(m-n\right)\left(3m+n\right)-4$  and $u=\left(m-n\right)\left(m+3n\right)+4$  , from which as before we infer these determinations:
 $\begin{array}{cc}c=2g\left(m-n\right)\left(3m+n\right)-8g\text{and}& \end{array}$
 $\begin{array}{cc}z=2f\left(m-n\right)\left(m+3n\right)+8f.& \end{array}$
 $\begin{array}{}\end{array}$
Moreover, it is helpful to sum in the $p$  and $q$  places the values of them from §7, so that it will thus be $c=g\left(m-n\right)p+2gq$  and $z=f\left(m-n\right)p-2fq$  .
10. Now therefore a solution of our problem is able to be constructed in the following way:
1.) Both the letters $f$  and $g$  are allowed to be at our choice, from which the letters $m$  and $n$  may be defined by means of the formulas $m=\frac{5gg-ff}{4ff}$  and $n=\frac{5ff-9gg}{4ff}$  .
2.) Now as before the letters $p$  and $q$  are sought through the power of the formulas $p=4\left(m+n\right)$  and $q=\left(m-n{\right)}^{2}-4$  , with which having been obtained, the lines bisecting the sides of the triangle can be expressed in the following way.
3.) Of course the sides are found with these formulas:
 $\begin{array}{cc}a=\left(f-g\right)p+\left(f+g\right)q& \end{array}$
 $\begin{array}{cc}b=\left(f+g\right)p+\left(f-g\right)q& \end{array}$
 $\begin{array}{cc}c=2g\left(m-n\right)\left(3m+n\right)-8g=g\left(m-n\right)p+2gq& \end{array}$
 $\begin{array}{}\end{array}$
4.) Finally therefore, the bisecting lines themselves will be had:
 $\begin{array}{cc}x=\left(3g+f\right)p+\left(3g-f\right)q& \end{array}$
 $\begin{array}{cc}y=\left(3g-f\right)p+\left(3g+f\right)q& \end{array}$
 $\begin{array}{cc}z=2f\left(m-n\right)\left(m+3n\right)+8f=f\left(m-n\right)p-2fg.& \end{array}$
 $\begin{array}{}\end{array}$
11. So that we can illustrate an example of this, we suppose that $f=2$  and $g=1$  , and it will then be $m=\frac{1}{4}$  and $n=\frac{11}{16}$  . From this as before it is gathered that $p=\frac{15}{4}$  and $q=-\frac{975}{256}$  , whose values, to be reduced to integral numbers, are given as $p=64$  and $q=-65$  . Then our triangle will now be determined in this way:
 $\begin{array}{cc}a=131;b=127;c=158;\text{then indeed,}& \end{array}$
 $\begin{array}{cc}x=255;y=261;z=204.& \end{array}$
 $\begin{array}{}\end{array}$
12. On this occasion as has been noted for the example, it will be helpful now too for the letters $x,y,z$  to be taken for the sides, with in general it being:
 $\begin{array}{cc}2xx-2yy-zz=9cc& \end{array}$
 $\begin{array}{cc}2yy+2zz--xx=9aa& \end{array}$
 $\begin{array}{cc}2zz+2xx-yy=9bb,& \end{array}$
 $\begin{array}{}\end{array}$
from which it follows, with it permitted for the numbers yielding $x,y,z$  to be reduced by 3, then a very simple triangle is able to be formed, of which the sides are 136, 170, 174. 13. At this point, with it $m=\frac{5gg-ff}{4gg}$  and $n=\frac{5ff-9gg}{4ff}$  , it will first be $m+n=\frac{10ffgg-{f}^{4}-9{g}^{4}}{4ffgg}=-\frac{\left(gg-ff\right)\left(9gg-ff\right)}{4ffgg}$  . Then indeed it will be had that $m-n=\frac{9{g}^{4}-{f}^{4}}{4ffgg}=\frac{\left(3gg+ff\right)\left(3gg-ff\right)}{4ffgg}$  , from which it is gathered that $m-n+2=\frac{9{g}^{4}+8ffgg-{f}^{4}}{4ffgg}=\frac{\left(gg+ff\right)\left(9gg-ff\right)}{4ffgg}$  and $m-n-2=\frac{9{g}^{4}-8ffgg-{f}^{4}}{4ffgg}=\frac{\left(gg-ff\right)\left(9gg+ff\right)}{4ffgg}$  .
By means of this, with it having been found that $p=4\left(m+n\right)M$  , it will now be:
 $\begin{array}{cc}p=-\frac{\left(gg-ff\right)\left(9gg-ff\right)M}{4ffgg}\text{and,}& \end{array}$
 $\begin{array}{cc}q=\left(\left(m-n{\right)}^{2}-4\right)M=\frac{\left({g}^{4}-{f}^{4}\right)\left(81{g}^{4}-{f}^{4}\right)}{16{f}^{4}{g}^{4}}M.& \end{array}$
 $\begin{array}{}\end{array}$
14. Therefore we now reduce the ratio of the letters $p$  and $q$  to minimum terms, and we take $M=\frac{16{f}^{4}{g}^{4}}{\left(gg-ff\right)\left(9gg-ff\right)}$  , and thus it comes forth that $p=-16ffgg$  and $q=\left(gg+ff\right)\left(9gg+ff\right)$  . From this, because it was $t=\frac{1}{2}\left(m-n\right)p+q$  , it now follows that, $t=\left(gg+ff\right)\left(9gg+ff\right)-2\left(3gg+ff\right)\left(3gg-ff\right).$  In a similar way it will be $u=\frac{1}{2}\left(m-n\right)p-q$  , from which it is gathered that: $u=-\left(gg+ff\right)\left(9gg+ff\right)-2\left(3gg+ff\right)\left(3gg-ff\right).$  Then because of this it will be $c=2gt$  and $z=2fu$  .
15. For the remaining letters, it will first be $a+b=2f\left(p+q\right)$  and $b-a=2g\left(p-q\right)$  ; then indeed it will be $x+y=6g\left(p+q\right)$  and $x-y=2f\left(p-q\right)$  .
It is no problem for however many examples to be resolved readily enough by means of these formulas, to such a degree as they are according to integers; since they are in every respect determined by the ratio of the integral numbers $f$  and $g$  , these are therefore always allowed to be assumed integers.
16. It will be $f=1$  and $g=2$  , and it will be $p=-64$  and $q=185$  .
Hence now it is gathered $t=-101$  and $u=-471$  ; then indeed $c=-404$  and $z=-942$  . To be sure, as before it will be $b-a=-996$  and $b+a=+242$  ; $x+y=1452$  and $x-y=-498$  . It will therefore be:
 $\begin{array}{cc}a=619;b=377;c=404& \end{array}$
 $\begin{array}{cc}x=477;y=975;z=942.& \end{array}$
 $\begin{array}{}\end{array}$
It is observed that the numbers $x,y,z$  are able moreover to be used instead of $a,b,c$  , with these divided by 3, so that it becomes:
 $\begin{array}{cc}a=159;b=325;c=314,\text{then also it will be,}& \end{array}$
 $\begin{array}{cc}x=619;y=377;z=404.& \end{array}$
 $\begin{array}{}\end{array}$