Exploring
Integer Triangles
When you learn trigonometry, you learn a lot about the properties of triangles. But such understanding can lead to even more questions. This article will explore some interesting properties of triangles whose sides have integer ratios.
Is there anything special about triangles with three integer sides, other than the fact that their sides are integers? Did you know that the common right triangles that have 45-degree angles or 30- and 60-degree angles cannot have three integer sides? Are only certain angles possible in triangles that have three integer sides? If so, can we predict whether or not an angle can be part of an integer triangle? How many different (non-similar) triangles can be formed which have integer sides and which all contain the same angle?
I will use an informal theorem/proof/discussion style to present some surprising insights into the nature of integer triangles. This will lead to Theorem 10, a clever formula for computing the lengths of sides of integer triangles having certain angles. We'll work on the most general kind of triangle, which has three unequal sides and three unequal angles. Such a triangle is called scalene.
Here are the theorems (T), proofs (P), and discussions (D).
T1 For any triangle having all three sides of rational length, there is a similar triangle having sides of integer length.
P1 Given
triangle T having side lengths a/b, c/d, e/f , where letters "a" through "f"
represent integers, multiplying the side lengths by the factor b*d*f will
result in a triangle with integer-length sides. Such a triangle is similar to triangle T.
D1 Recall that triangles are called "similar" if the sides of one are proportional to the sides of the other. Furthermore, the angles of any similar triangle are congruent to those of the original triangle.
T2 A triangle that has three rational sides also has three angles whose cosines are rational.
P2 The
law of cosines states that for any triangle (see drawing at bottom),
,
where 'a' is the length of the side opposite angle A, etc. Rearranging, we get:
.
By (T1), we can assume that a,b,c are integers. So, Cos(C) is rational by definition. The same is true for angles A and B.
T3 A triangle that has three rational sides has three angles whose sines divide each other rationally. That is, sin(A) / sin(B) = rational number, sin(A) / sin(C) = rational number.
P3 The "Law of Sines" for any triangle states:
Sin(A) / a = Sin(B) / b = Sin(C) / c
So, Sin (A) / Sin(B) = a/b. Sin(A) / Sin(C) = a/c
These are rational because a, b, and c are rational.
T4 The sines of all three angles of a rational triangle will contain the same square root as a factor.
P4 Use
the identity
. Let cos(A) = b/c, which is valid for
any rational triangle. Then
. Taking the
square root will give a value of
, This can be
reduced to
, where r and s are integers. (The number "r" will be = 1 in some cases.)
Sin(A) / Sin(B) = rational value by (T3). So, if
and
then
. This will be rational only if q = r.
D4 We will define the Class of an angle to be "r", the portion of the sine-squared value that has an irrational square root.
For example, consider the triangle a=7, b=5, c=8. These angles are Class 3 by our definition, as will be shown below.
By the law of sines,
Sin(A) / Sin(B) = 7/5
By the law of cosines,
Cos(A) = (5*5 + 8*8 – 7*7)/2*5*8
Cos(A) = 1/2
Use the identity
to find Sin(A):
, so
This shows that angle A is Class 3.
In a similar way, we can find ![]()
Now, compute the ratio:![]()
The same approach can show that angle C is also Class 3.
So we can also say that triangle 5-7-8 is Class 3 because it contains Class 3 angles.
Here is a small table of triangle sides (abc) with their Class:
a,b,c Class
1,2,2 15
2,2,3 7
2,3,4 15
3,4,5 1
3,7,8 3
5,7,8 3
2,7,7 3
5,5,6 1
T5 A right triangle that has three rational sides contains angles which have both rational cosines and rational sines.
P5 Consider triangle ABC having integer sides where C is 90 degrees.
Side a is opposite angle A; side b is opposite angle B; side c is opposite angle C.
Sin(A) = a/c Sin(B) = b/c Sin(C) = 1
Cos(A) = b/c Cos(B) = a/c Cos(C) = 0
Because a,b,c are integers, the sines and cosines are rational.
By (T1), the sides do not need to be integers, as long as
they are rational.
D5 Angles such as those described in (T5) belong to Class 1. Notice the 3,4,5 triangle in the table in (D4).
There are non-right triangles that have Class-1 angles. The integer triangle having sides a=5, b=5, c=6 is an isoceles triangle with angle C at the apex. Erecting an altitude from C produces an altitude of 4.
Sin(A) = 4/5, Sin(B) = 4/5, Sin(C) = 24/25
Cos(A) = 3/5, Cos(B)= 3/5, Cos(C) = 7/25
These are all rational values and so the angles are Class 1 but the triangle is not a right triangle.
T6 If a triangle contains two angles that have rational cosines, then the third angle will also have a rational cosine if and only if the two angles are of the same Class.
P6 Consider triangle ABC, where angles A and B have rational cosines. Trig identities will show that Cos(C) = Sin(A)*Sin(B) – Cos(A)*Cos(B)
Since A and B have rational cosines, the second term is rational.
The first term will be rational if and only if Sin(A) and
Sin(B) contain the same square-root part.
For example, if
and
, then
.
This is rational only if r*q is a perfect square, which implies that r=q and therefore A and B must be of the same Class.
T7 If a triangle contains two rational-cosine angles of the same Class, then the third angle will also be an angle of the same Class.
P7 For any triangle:
Sin(C) = Sin(B)*Cos(A) + Sin(A)*Cos(B)
By T6, if A and B are of the same class, then the cosines are rational and
and
. So, ![]()
T8 A triangle having two rational-cosine angles of the same Class will have either three rational sides or three irrational sides.
P8 By (T7), the third angle also has a rational cosine and is of the same Class. By (T2), the triangle can have three rational sides. Call these sides a,b,c which are rational numbers.
Then, there exists a similar triangle whose sides are i*a, i*b, i*c where "i" is an irrational number.
T9 Any angle which has a rational cosine can be partitioned into two angles where both angles have rational cosines of the same Class as the original.
P9 Consider the formula for the sum of two angles:
Cos(A+B) = Cos(A)*Cos(B) – Sin(A)*Sin(B)
Rearrange:
Cos(A) = (Cos(A+B) + Sin(A)*Sin(B))/Cos(B)
By definition, Cos(A+B) is rational. So Cos(A) cannot be rational if Cos(B) is irrational. If Cos(B) is rational, Sin(A)*Sin(B) will be rational if A and B are of the same Class.
Sin(A+B) = Sin(A)*Cos(B) + Sin(B)*Cos(A)
Since A and B contain the same irrational square root, then Sin(A+B) will be of the same Class as angles A and B.
D9 Refer to the drawing at the end of this article. An analysis of the triangle having sides 5,7,8 will show that the angles have the following cosines, as described in (D4):
Cos(C) = 1/2 Sin(C) = sqrt(3) * 1/2
Cos(B) = 1/7 Sin(B) = sqrt(3) * 4/7
Cos(A) = 11/14 Sin(A) = sqrt(3) * 5/14
By laying out the isosceles triangle 7,7,2 with apex at A, the angle A is partitioned into two angles, U and V where:
Cos(U) = 47/49 Sin(U) = sqrt(3) * 8/49
Cos(V) = 13/14 Sin(V) = sqrt(3) * 3/14
Note that these are all Class 3 angles.
This can be checked by solving for Cos(U+V) and finding that it equals 11/14.
T10 For any acute angle having a rational cosine, triangles with rational sides can be generated using two integer variables, M and N, where M and N have no common factors. Here are the formulas for finding sides c, b, and a:
![]()
![]()
(for obtuse angle B)
(for acute angle
B)
(See the drawing which shows the relation between the two lengths for 'a'.)
P10 The equations can be checked by substitution into the Law of Cosines:
D10 Notice that these equations also work when Cos(C) = 0 (right angle). Also notice that, except for Cos(C)=0, the solutions come in pairs, where only the length of 'a' differs between an obtuse and acute angle B.
If you use the value of Cos(C)=.5, the formula gives the sides of scalene triangles that have angle C = 60 degrees.
See the end of this article for a diagram and for the derivation of these equations.
T11 There are an uncountable number of Classes.
P11 For an arbitrary positive integer r, show that there are rational cosines of Class 'r'.
By definition, a Class-r angle has sqrt( r ) as a factor in the sine. Consider angle 'A' whose cosine is rational. Since the cosine is always less than 1 and both numerator and denominator are integers, we will define the denominator of the cosine as u + v where u and v are both integers > 0. Similarly, make the numerator = u – v.
Define:
![]()
![]()
But
. So
Equating the numerators, we have: ![]()
Which simplifies to:
![]()
This shows that for every value of r, there is a u and v, and therefore a rational cosine!
D12 Here are some examples of solutions to the above equation:
r,u,v,n cos(A)
1,4,1,4 3/5
1,9,1,6 4/5
2,2,1,2 1/3
2,9,2,6 7/11
3,3,1,2 1/2
3,4,3,4 1/7
5,5,1,2 2/3
5,5,4,4 1/9
6,3,2,2 1/5
6,6,1,2 5/7
7,7,1,2 3/4
7,7,4,4 3/11
T12 Every Class contains an uncountable number of angles with rational cosines.
P12 To prove this, we need a more clever description of the numerator and denominator of the rational cosine.
Let: ![]()
By using positive values for M,N,r and limiting M>N, we can generate any rational number for the cosine. A little math will show that this results in the value for the sine that we need:
![]()
So by assigning a fixed value to 'r', all the ratios for cosines of Class r angles can be generated through the choice of integers M and N. There are an uncountable number of values for M and N and therefore there's an uncountable number of angles in each Class!
T13 For any acute angle that has a rational cosine, there are an uncountable number of triangles that contain that angle and which have rational sides and distinct ratios of side lengths.
P13 Use the formulas from (T10), and a rational value for cos( C ) = n/d. Compute the ratio c/b:
![]()
This ratio can take on an unlimited range of values as determined by the integers M, N, n, and d. The only limitation is 0<n<d.
Summary
All acute angles
Angles that have rational cosines
A particular Class of rational-cosine angles
A particular angle in the Class
A particular triangle having the angle
We've shown that each of the subsets above contains an uncountable number of members! Notice that we haven't discussed the measures of the angles (in degrees or radians) of those angles that have rational cosines. That is a matter for a separate article.
--------
Derivation
of the formulas of Theorem 10
Law
of Cosines
Let a = b*cos(C) – x Substitute for 'a' (see diagram)
Rearrange
Let c = u + v New variables
Let x = u – v
Want
to solve for 'b'
Let
To
clear the sine part of b's equation
Let
To
force ![]()
=b
=c
Need 'x' to
find 'a'
=a
=other 'a'
