Professional Documents
Culture Documents
Law of Cosines
Law of Cosines
This article is about the law of cosines in Euclidean geometry. For the corresponding
theorem in spherical geometry, see law of cosines (spherical). For the cosine law of
optics, see Lambert's cosine law.
In trigonometry, the law of cosines (also known as Al-Kashi law or the cosine formula
or cosine rule) is a statement about a general triangle which relates the lengths of its
sides to the cosine of one of its angles. Using notation as in Fig. 1, the law of cosines
states that
or, equivalently:
Note that c is the side opposite of angle , and that a and b are the two sides enclosing .
All three of the identities above say the same thing; they are listed separately only
because in solving triangles with three given sides one may apply the identity three times
with the roles of the three sides permuted.The law of cosines generalizes the Pythagorean
theorem, which holds only in right triangles: if the angle is a right angle (of measure
90° or radians), then , and thus the law of cosines reduces to
which is the Pythagorean theorem. The law of cosines is useful for computing the third
side of a triangle when two sides and their enclosed angle are known, and in computing
the angles of a triangle if all three sides are known.
Stewart's theorem
Stewart's Theorem
In geometry, Stewart's theorem yields a relation between the lengths of the sides of a
triangle and the length of segment from a vertex to a point on the opposite side.
Let a, b, c be the sides of a triangle. Let p be a segment from A to a point on a dividing a
itself in x and y. Then
or alternatively:
Stewart's Theorem
In geometry, Stewart's theorem yields a relation between the lengths of the sides of a
triangle and the length of segment from a vertex to a point on the opposite side.
Let a, b, c be the sides of a triangle. Let p be a segment from A to a point on a dividing a
itself in x and y. Then
or alternatively:
Proof: Call the point where a and p meet P. We start applying the law of cosines to the
supplementary angles APB and APC.
• When in addition AB = AC, that is, the triangle is isosceles, the theorem reduces to the
Pythagorean theorem,
To prove this theorem, let ' be a perpendicular dropped on from the point .
Then, in the right-angled triangles and , by Pythagoras' theorem, we
have
and
Adding equations (i) and (ii),
since
Menelaus' theorem
In this equation, AB, etc., represent measurements of line segments that are allowed
negative values. For example, the fraction AF / FB must be defined as having positive
value only when line DEF intersects side AB, and similarly for the other fractions. There
is a long-running joke amongst mathematicians that, if this theorem is used to solve a
problem, then the 'wrong theorem' was being used (implying that Ceva's theorem should
have been used instead).
Proof
Furthermore, we can prove by contradiction that if the theorem's equation holds, then D,
E, F must be collinear. Let there be a new point F' on AB different from F, and define the
measurements of AF, AF', and AB as n, n', and s. Suppose that F' also satisfies the
equation. Then the fractions have equal value:
which simplifies to n = n'. This proves that only one point on line AB can satisfy the
equation. With D and E fixed, if F satisfies the equation, then it must be the point
collinear with D and E. For reasons of symmetry, the same thing can be said about points
D and E.
Ptolemy used Menelaus' theorem as the basis for his spherical trigonometry in the
Almagest.
Ceva's theorem
Ceva's theorem, case 1: the three lines are concurrent at a point O inside ABC
Ceva's theorem, case 2: the three lines are concurrent at a point O outside ABC
Ceva's theorem is a well-known theorem in elementary geometry. Given a triangle ABC,
and points D, E, and F that lie on lines BC, CA, and AB respectively, the theorem states
that lines AD, BE and CF are concurrent if and only if
There is also an equivalent trigonometric form of Ceva's Theorem, that is, AD,BE,CF
concur if and only if
The theorem was proved by Giovanni Ceva in his 1678 work De lineis rectis, but it was
also proved much earlier by Al-Mu'taman ibn H d, an eleventh-century king of
Saragossa.
Associated with the figures are several terms derived from Ceva's name: cevian (the lines
AD, BE, CF are the cevians of O), cevian triangle (the triangle DEF is the cevian triangle
of O); cevian nest, anticevian triangle, Ceva conjugate. (Ceva is pronounced Chay'va;
cevian is pronounced chev'ian.)
Proof of the theorem
Suppose AD, BE and CF intersect at a point O. Because and have the
same height, we have
Similarly,
Similarly,
and
as required. Conversely, suppose that the points D, E and F satisfy the above equality.
Let AD and BE intersect at O, and let CO intersect AB at F'. By the direction we have just
proven,
Thus F'B = FB, so that F and F' coincide (recalling that the distances are directed).
Therefore AD, BE and CF = CF' intersect at O, and both implications are proven.
For the trigonometic form of the theorem, one approach is to view the three cevians,
concurrent at point O, as partitioning the triangle into three smaller triangles:
, , and .
Applying the law of sines to each triangle we get:
When we mutiply the three equations, the right side will equal 1. The six sines on the left
side, when rearranged, will yield the expression given in the theorem.