Law of cosines
Encyclopedia : L : LA : LAW : 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.
- [c^2 = a^2 + b^2 - 2ab\cos(\gamma) . \;]
The law of cosines generalizes the Pythagorean theorem, which holds only in right triangles. For, if the angle γ is a right angle, its cosine is 0, and so the law of cosines reduces to
- [c^2 = a^2 + b^2 , \;]
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
History
Euclid's Elements, dating back to the 3rd century BC, contains a version of the law of cosines. The case of obtuse triangle and acute triangle (corresponding to the two cases of negative or positive cosine) are treated separately, in Propositions 12 and 13 of Book 2. Trigonometric functions and algebra (in particular negative numbers) being absent in Euclid's time, the statement has a more geometric flavor:
- Proposition 12
- In obtuse-angled triangles the square on the side subtending the obtuse angle is greater than the squares on the sides containing the obtuse angle by twice the rectangle contained by one of the sides about the obtuse angle, namely that on which the perpendicular falls, and the straight line cut off outside by the perpendicular towards the obtuse angle. --- Euclid's Elements, translation by Thomas L. Heath.[link]
- AB² = CA² + CB² + 2 CA CH.
Proposition 13 contains an entirely analogous statement for acute triangles.
It was not until the development of modern trigonometry in the Middle Ages by Muslim mathematicians that the law of cosines evolved beyond Euclid's two theorems. The astronomer and mathematician al-Battani generalized Euclid's result to spherical geometry at the beginning of the 10th century, which permitted him to calculate the angular distances between stars. During the 15th century, al-Kashi in Samarcand computed trigonometric tables to great accuracy and put the theorem into a form suitable for triangulation. In French, the law of cosines is up to this day referred to as the [theorem of Al-Kashi].
The theorem was popularised in the Western world by François Viète, who, apparently, discovered it independently. At the beginning of the 19th century modern algebraic notation allowed the law of cosines to be written in its current form.
Applications
The theorem is used in triangulation, for solving a triangle, i.e., to find (see Figure 3)
- the third side of a triangle if one knows an angle and its adjacent sides:
- :[\,c = \sqrt;]
Proofs
Using trigonometry
Drop the perpendicular onto the side c to get (see Fig. 4)
- [c=a\cos(\beta)+b\cos(\alpha)\,.]
- [c^2 = ac\cos(\beta) + bc\cos(\alpha)\,.]
- [a^2 = ac\cos(\beta) + ab\cos(\gamma)\,,]
- [b^2 = bc\cos(\alpha) + ab\cos(\gamma)\,.]
- [a^2 + b^2 = c^2 + 2ab\cos(\gamma)\,.]
Many proofs deal with the case of obtuse and acute angle γ separately.
Using the Pythagorean theorem
Case of an obtuse angle. Euclid proves this theorem by applying the Pythagorean theorem to each of the two right triangles in Fig. 4. Using [d] to denote the line segment CH and [h] for the height BH, triangle AHB gives us
- [(b+d)^2 + h^2 = c^2,]
- [d^2 + h^2 = a^2.]
- [c^2 = a^2 + b^2 + 2bd.]
- [d = a\cos(\pi-\gamma)= -a\cos(\gamma).]
Another proof in the acute case. Using a little more trigonometry, the law of cosines by applying can be deduced by using the Pythatorean theorem only once. In fact, by using the right triangle on the left hand side of Fig. 5 it can be shown that:
[c^2\,] [ = (b-a\cos(\gamma))^2 + (a\sin(\gamma))^2 \,] [= b^2 - 2ab\cos(\gamma) + a^2(\cos^2(\gamma)+\sin^2(\gamma)) \,] [= b^2 + a^2 - 2ab\cos(\gamma),\,]
upon using the trigonometric identity- [\cos^2(\gamma) + \sin^2(\gamma) = 1. \,]
By comparing areas
One can also prove the law of cosines by calculating areas. The change of sign as the angle [\gamma] becomes obtuse, makes a case distinction necessary.
Recall that
- [a^2], [b^2] et [c^2] are the areas of the squares with sides [a], [b] and [c], respectively;
- if [\gamma] is acute, [ab\cos(\gamma)] is the area of the parallelogram with sides [a] and [b] forming an angle of [\gamma' = \pi/2 - \gamma];
- if [\gamma] is obtuse, and so [\cos(\gamma)] is negative, [-ab\cos(\gamma)] is the area of the parallelogram with sides [a] and [b] forming an angle of [\gamma' = \gamma - \pi/2].
Fig. 6a - Proof of the law of cosines for acute angle γ by "cutting and pasting".
Acute case. Figure 6a shows a heptagon cut into smaller pieces (in two different ways) to yield a proof of the law of cosines. The various pieces are- in pink, the areas [a^2], [b^2] on the left and the areas [2ab \cos(\gamma)] and [c^2] on the right;
- in blue, the triangle ABC, on the left and on the right;
- en grey, auxiliary triangles, all congruent to ABC, an equal number (namely 2) both on the left and on the right.
- [\,a^2 + b^2 = c^2 + 2ab\cos(\gamma).]
Fig. 6b - Proof of the law of cosines for obtuse angle γ by "cutting and pasting".
Obtuse case. Figure 6b cuts a hexagon in two different ways into smaller pieces, yielding a proof of the law of cosines in the case that the angle [\gamma] is obtuse. We have- in pink, the areas [a^2], [b^2] and [-2ab\cos(\gamma)] on the left and [c^2] on the right;
- in blue, the triangle ABC twice, on the left, as well as on the right.
- [\,a^2 + b^2 - 2ab\cos(\gamma) = c^2.]
Using geometry of the circle
Using the geometry of the circle it is possible to give a more geometric proof than using the Pythagorean theorem alone. Algebraic manipulations (in particular the binomial theorem) are avoided.
Case of acute angle γ, where a > 2 b cos(γ). Drop the perpendicular from A onto a = BC, creating a line segment of length b cos(γ). Duplicate the right triangle to form the isosceles triangle ACP. Construct the circle with center A and radius b, and its tangent h = BH through B. The tangent h forms a right angle with the radius b (Euclid's Elements: Book 3, Proposition 18; or see here), so the yellow triangle in Figure 7 is right. Apply the Pythagorean theorem to obtain
- [c^2 = b^2 + h^2\,.]
- [h^2 = a(a - 2b\cos(\gamma))\,.]
- [c^2 = b^2 + a(a - 2b\cos(\gamma)) \,.]
Case of acute angle γ, where a < 2 b cos γ. Drop the perpendicular from A onto a = BC, creating a line segment of length b cos(γ). Duplicate the right triangle to form the isosceles triangle ACP. Construct the circle with center A and radius b, and a chord through B perpendicular to c = AB, half of which is h = BH. Apply the Pythagorean theorem to obtain
- [b^2 = c^2 + h^2\,.]
- [h^2 = a(2b\cos(\gamma) - a)\,.]
- [b^2 = c^2 + a(2b\cos(\gamma) - a) \,.]
Fig. 8 - Proof of the law of cosines using the power of a point theorem.Case of obtuse angle γ. This proof uses the power of a point theorem directly, without the auxiliary triangles obtained by constructing a tangent or a chord. Construct a circle with center B and radius a (see Figure 8), which intersects the secant through A and C in C and K. The power of the point A with respect to the circle is equal to both AB² - BC² and ACˑAK. Therefore,
[c^2 - a^2\,] [= b(b + 2a\cos(\pi - \gamma))\,] [= b(b - 2a\cos(\gamma))\,,] which is the law of cosines.
Using algebraic measures for line segments (allowing negative numbers as lengths of segments) the case of obtuse angle (CK > 0) and acute angle (CK < 0) can be treated simultaneously.
Vector formulation
The law of cosines is equivalent to the formula
- [\vec b\cdot \vec c = \Vert \vec b\Vert\Vert\vec c\Vert\cos \theta]
Proof of equivalence. Referring to Figure 9, note that
- [\vec a=\vec b-\vec c\,,]
[\Vert\vec a\Vert^2\,] [= \Vert\vec b - \vec c\Vert^2 ,] [= (\vec b - \vec c)\cdot(\vec b - \vec c)\,] [= \Vert\vec b \Vert^2 + \Vert\vec c \Vert^2 - 2 \vec b\cdot\vec c \,.] The law of cosines formulated in this context states:
- [\Vert\vec a\Vert^2 = \Vert\vec b \Vert^2 + \Vert\vec c \Vert^2 - 2 \Vert \vec b\Vert\Vert\vec c\Vert\cos(\theta) \,,]
Isosceles case
When [a = b], i.e., when the triangle is isosceles with the two sides incident to the angle [\gamma] equal, the law of cosines simplifies significantly. Namely, because [a^2 + b^2 = 2a^2 = 2ab], the law of cosines becomes
- [\cos(\gamma) = 1 - \frac. \;]
See also
External links
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
