In trigonometry, the **law of cosines** (also known as the **cosine formula** or **cosine rule**) relates the lengths of the sides of a plane triangle to the cosine of one of its angles. Using notation as in Fig. 1, the law of cosines says

where *γ* denotes the angle contained between sides of lengths *a* and *b* and opposite the side of length *c*.

Some schools also describe the notation as follows:

Where *C* represents the same as *γ* and the rest of the parameters are the same.

The formula above could also be represented in other form:

The law of cosines generalizes the Pythagorean theorem, which holds only for right triangles: if the angle *γ* is a right angle (of measure 90° or π/2 radians), then cos *γ* = 0, and thus the law of cosines reduces to 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.

By changing which sides of the triangle play the roles of *a*, *b*, and *c* in the original formula, one discovers that the following two formulas also state the law of cosines:

Though the notion of the cosine was not yet developed in his time, Euclid's *Elements*, dating back to the 3rd century BC, contains an early geometric theorem almost equivalent to 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

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.

*Elements*, translation by Thomas L. Heath.

Using notation as in Fig. 2, Euclid's statement can be represented by the formula

This formula may be transformed into the law of cosines by noting that *CH* = (*CB*) cos(*π* − *γ*) = −(*CB*) cos *γ*. Proposition 13 contains an entirely analogous statement for acute triangles.

The theorem was popularized in the Western world by François Viète in the 16th century. At the beginning of the 19th century, modern algebraic notation allowed the law of cosines to be written in its current symbolic form.

Read more about Law Of Cosines: Applications, Vector Formulation, Isosceles Case, Analog For Tetrahedra, Law of Cosines in Non-Euclidean Geometry

### Other articles related to "law of cosines, cosine, cosines":

**Law Of Cosines**-

**Law of Cosines**in Non-Euclidean Geometry

... A version of the

**law of cosines**also holds in non-Euclidean geometry ... If these great circles make angles A, B, and C with opposite sides a, b, c then the spherical

**law of cosines**asserts that each of the following ... first is where sinh and cosh are the hyperbolic sine and

**cosine**, and the second is Like in Euclidean geometry, one can use the

**law of cosines**to determine the angles A, B, C from the ...

**Law of Cosines**

... The

**law of cosines**(also known as the

**cosine**formula or

**cosine**rule) is an extension of the Pythagorean theorem or equivalently, In this formula the angle at C is ... The

**law of cosines**can be used to determine a side of a triangle if two sides and the angle between them are known ... It can also be used to find the

**cosines**of an angle (and consequently the angles themselves) if the lengths of all the sides are known ...

### Famous quotes containing the words law of and/or law:

“The *law of* nature is alternation for evermore. Each electrical state superinduces the opposite. The soul environs itself with friends, that it may enter into a grander self-acquaintance or solitude; and it goes alone for a season, that it may exalt its conversation or society.”

—Ralph Waldo Emerson (1803–1882)

“It is a *law* of life that human beings, even the geniuses among them, do not pride themselves on their actual achievements but that they want to impress others, want to be admired and respected because of things of much lower import and value.”

—Stefan Zweig (18811942)