Law of cosines

Relates the lengths of the three sides of any triangle to the cosine of one of its angles. It is used to find a missing side when two sides and the included angle are known, or a missing angle when all three sides are known.

c^2 = a^2 + b^2 - 2ab\cos C

What the symbols mean

length of the side opposite angle A
length of the side opposite angle B
length of the side opposite angle C
angle opposite side c

About this formula

  • FieldMathematics
  • TopicTrigonometry
  • LevelHigh school
  • Also calledcosine law, cosine formula, cosine rule, Al-Kashi theorem, generalized Pythagorean theorem, Al-Kashi Theorem
  • SourceWikidata Q164321

Write it in Obsidian

MathLive is a free visual math editor for Obsidian. Run Find a formula, type “law of cosines”, and it goes into your note as editable LaTeX. You can also scan formulas from screenshots, PDFs and handwriting.

Related formulas