CACrown ArchivesThe cinema collection
Menu
Research dossier · General Reference

Law of cosines

property of all triangles on a Euclidean plane

Cross-disciplinary reference desk with index cards, atlas, dictionary and catalogue
General referenceInterpretive dossier study · Crown Archives visual atlas
Record originEnglish Wikipedia
Text licenseCC BY-SA 4.0
Source revisionJun 1, 2026
Entity authorityQ164321 ↗
Source-derived summary

In trigonometry, the law of cosines (also known as the cosine formula or cosine rule or Al-Kashi’s theorem) relates the lengths of the sides of a triangle to the cosine of one of its angles. For a triangle with sides ⁠

a

{\displaystyle a}

⁠, ⁠

b

{\displaystyle b}

⁠, and ⁠

c

{\displaystyle c}

⁠, opposite respective angles ⁠

α

{\displaystyle \alpha }

⁠, ⁠

β

{\displaystyle \beta }

⁠, and ⁠

γ

{\displaystyle \gamma }

⁠ (see Fig. 1), the law of cosines states:

c

2

=

a

2

+

b

2

−

2

a

b

cos

⁡

γ

,

a

2

=

b

2

+

c

2

−

2

b

c

cos

⁡

α

,

b

2

=

a

2

+

c

2

−

2

a

c

cos

⁡

β

.

{\displaystyle {\begin{aligned}c^{2}&=a^{2}+b^{2}-2ab\cos \gamma ,\\[3mu]a^{2}&=b^{2}+c^{2}-2bc\cos \alpha ,\\[3mu]b^{2}&=a^{2}+c^{2}-2ac\cos \beta .\end{aligned}}}

The law of cosines generalizes the Pythagorean theorem, which holds only for right triangles: if ⁠

γ

{\displaystyle \gamma }

⁠ is a right angle then ⁠

cos

⁡

γ

=

0

{\displaystyle \cos \gamma =0}

⁠, and the law of cosines reduces to ⁠

c

2

=

a

2

+

b

2

{\displaystyle c^{2}=a^{2}+b^{2}}

⁠.

The law of cosines is useful for solving a triangle when all three sides or two sides and their included angle are given.

Use in solving triangles

The theorem is used in solution of triangles, i.e., to find (see Figure 3):

the third side of a triangle if two sides and the angle between them is known:

c

=

a

2

+

b

2

−

2

a

b

cos

⁡

γ

;

{\displaystyle c={\sqrt {a^{2}+b^{2}-2ab\cos \gamma }}\,;}

the angles of a triangle if the three sides are known:

γ

=

arccos

⁡

(

a

2

+

b

2

−

c

2

2

a

b

)

;

{\displaystyle \gamma =\arccos \left({\frac {a^{2}+b^{2}-c^{2}}{2ab}}\right)\,;}

the third side of a triangle if two sides and an angle opposite to one of them is known (this side can also be found by two applications of the law of sines):

a

=

b

cos

⁡

γ

±

c

2

−

b

2

sin

2

⁡

γ

.

{\displaystyle a=b\cos \gamma \pm {\sqrt {c^{2}-b^{2}\sin ^{2}\gamma }}\,.}

These formulas produce high round-off errors in floating point calculations if the triangle is very acute, i.e., if c is small relative to a and b or γ is small compared to 1. It is even possible to obtain a result slightly greater than one for the cosine of an angle.

The third formula shown is the result of solving for a in the quadratic equation a2 − 2ab cos γ + b2 − c2 = 0. This equation can have 2, 1, or 0 positive solutions corresponding to the number of possible triangles given the data.

Editorial summary

This brief starts where responsible research should: with the source description of “Law of cosines” as property of all triangles on a Euclidean plane. Everything that follows is an evidence route, not borrowed authority.

Editorial reviewA dependable orientation record for establishing vocabulary, names and a first evidence trail. The current 464-word lead offers orientation but no explicit four-digit date, so chronology should not be assumed. The selected authority fields contribute no independent date. The account is most persuasive where cosines, property and triangles can be independently traced.
Editorial analysis

Why this record matters

The subject matters to the general reference register because the source frames it as property of all triangles on a Euclidean plane. Its deeper value depends on whether names, dates, institutions and citations support that framing.

Evidence profile

Vocabulary and entity names are the principal evidence signals here, because they determine the precision of every later search. The source revision retrieved here is dated Jun 1, 2026. The linked authority identifier is Q164321. None of the 0 selected statements returned an explicit reference.

Critical limits

A concise general-reference account can conceal disagreements about scope, terminology or the weight assigned to individual sources. The lead is largely declarative, so disagreement and counter-evidence require a deliberate search beyond the opening account. Authority statements aid reconciliation but still require their own references, qualifiers and ranks to be checked.

How to read it

Use the entry as an orientation point, then follow its citations and revision history. Names, dates and institutional relationships should be checked against the original record.

Best used for
  • Subject orientation
  • Search vocabulary
  • Locating named sources
Verify next

The closest primary source, responsible institution and strongest cited specialist reference.

Three-step research path

  1. Establish the record: confirm the title “Law of cosines”, its source revision and the description used here.
  2. Expand the search: follow Law of cosines primary sources, Law of cosines archive and cosines research across catalogues and specialist indexes.
  3. Test the account: compare the strongest cited source with the responsible institution’s current record and note any disagreement.

Questions for further research

  1. Which source most directly establishes the central claim about “Law of cosines”?
  2. Which cited source is closest to the event, object or claim?
  3. What terminology or title could unlock a more precise catalogue search?
Subject index

Search terms from this dossier

Source & attribution

This entry incorporates text from “Law of cosines” on English Wikipedia. Contributors are listed in the page history. Text is available under the Creative Commons Attribution-ShareAlike 4.0 License. Selected authority identifiers and statements are retrieved from Wikidata under CC0; their references and qualifiers remain part of the verification path.