# Talk:Law of cosines

Page contents not supported in other languages. Vital articles: Level 5 / Mathematics C‑class Law of cosines has been listed as a level-5 vital article in Mathematics. If you can improve it, please do.Vital articlesWikipedia:WikiProject Vital articlesTemplate:Vital articlevital articles .mw-parser-output td.assess,.mw-parser-output th.assess{font-weight:bold;text-align:center;white-space:nowrap}.mw-parser-output td.assess-unbold,.mw-parser-output th.assess-unbold{font-weight:inherit}.mw-parser-output .assess-fa,.mw-parser-output .assess-fl,.mw-parser-output .assess-fm,.mw-parser-output .assess-fpo{background-color:#9cbdff}.mw-parser-output .assess-a,.mw-parser-output .assess-al{background-color:#66ffff}.mw-parser-output .assess-ga{background-color:#66ff66}.mw-parser-output .assess-b,.mw-parser-output .assess-bl,.mw-parser-output .assess-complete{background-color:#b2ff66}.mw-parser-output .assess-c,.mw-parser-output .assess-cl,.mw-parser-output .assess-substantial{background-color:#ffff66}.mw-parser-output .assess-start,.mw-parser-output .assess-basic{background-color:#ffaa66}.mw-parser-output .assess-stub,.mw-parser-output .assess-sl{background-color:#ffa4a4}.mw-parser-output .assess-list{background-color:#c7b1ff}.mw-parser-output .assess-na{background-color:#f5f5f5}.mw-parser-output .assess-unassessed,.mw-parser-output .assess-default{background-color:#dcdcdc}.mw-parser-output .assess-current{background-color:#e6a4ff}.mw-parser-output .assess-deferred{background-color:#d1bcac}.mw-parser-output .assess-future{background-color:#b4bbff}.mw-parser-output .assess-sia{background-color:#e9daff}.mw-parser-output .assess-category{background-color:#ffdb58}.mw-parser-output .assess-disambig{background-color:#00fa9a}.mw-parser-output .assess-draft{background-color:#e7b198}.mw-parser-output .assess-file{background-color:#ddccff}.mw-parser-output .assess-merge{background-color:#add8e6}.mw-parser-output .assess-needed{background-color:#dcdcdc}.mw-parser-output .assess-portal{background-color:#ddb1bc}.mw-parser-output .assess-project{background-color:#c0c090}.mw-parser-output .assess-redirect{background-color:#c0c0c0}.mw-parser-output .assess-template{background-color:#fbceb1}.mw-parser-output .assess-user{background-color:#ddd06a}C This article has been rated as C-class on Wikipedia's content assessment scale. Mathematics C‑class High‑priority .mw-parser-output .portalbox{padding:0;margin:0.5em 0;display:table;box-sizing:border-box;max-width:175px;list-style:none}.mw-parser-output .portalborder{border:solid #aaa 1px;padding:0.1em;background:#f9f9f9}.mw-parser-output .portalbox-entry{display:table-row;font-size:85%;line-height:110%;height:1.9em;font-style:italic;font-weight:bold}.mw-parser-output .portalbox-image{display:table-cell;padding:0.2em;vertical-align:middle;text-align:center}.mw-parser-output .portalbox-link{display:table-cell;padding:0.2em 0.2em 0.2em 0.3em;vertical-align:middle}@media(min-width:720px){.mw-parser-output .portalleft{clear:left;float:left;margin:0.5em 1em 0.5em 0}.mw-parser-output .portalright{clear:right;float:right;margin:0.5em 0 0.5em 1em}}This article is within the scope of WikiProject Mathematics, a collaborative effort to improve the coverage of mathematics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.MathematicsWikipedia:WikiProject MathematicsTemplate:WikiProject Mathematicsmathematics articles C This article has been rated as C-class on Wikipedia's content assessment scale. High This article has been rated as High-priority on the project's priority scale.

## Pythagorean Theorem bit

The bit in the Ptolemy's theorem section references the Pythagorean theorem, citing it as $a^{2}+c^{2}=b^{2}.\quad$ . I'm no mathematics scholar, but I'm quite sure that isn't the theorem it speaks of. I could be dead wrong, I'm not the most educated fellow, but I think it's worth some speculation. Mason0190 (talk) 13:05, 6 May 2015 (UTC)

a²+c²=b² is the Pythagorean theorem. What do you mean? Jam ai qe ju shikoni (talk) 13:41, 24 November 2019 (UTC)
Yeesh! don't be obtuse. Standardization (i.e.: Mathematics)— given a right triangle, the square of the length of the hypothenuse c, opposite to the right angle, equals the sum of the squares of the lengths of the two legs a & b, adjacent to, rendering the right angle.
$c^{2}=a^{2}+b^{2}\quad$ 21:40, 3 December 2019 (UTC)
I don't see how that puts my argument down, however, I do not think that it is reasonable for me to argue about this. Jam ai qe ju shikoni (talk) 21:45, 22 April 2020 (UTC)

## Intended meaning of Euclid's Proposition should be made clear

The text quoted by Euclid concerning the geometric interpretation of the Law of Cosines is helpful but unclear in the sense that Euclid (or possibly Heath) did not name the thing Euclid meant to "namely" identify. In the quote Euclid states 'namely "that" on which the perpendicular falls', but it is unclear if by 'that' he means namely, 'the rectangle' or namely, 'the side about the obtuse angle' which he is describing. It seems to me either Euclid was not expressing himself clearly here or the translation by Heath is at fault but the end of the Euclid quote does not seem to describe a rectangle very well. It might have been clearer if Euclid had stated something closer to the following (CAPS mark my paraphrasing):

"Proposition 12 In obtuse-angled triangles the square on the side subtending the obtuse angle is greater than the EITHER OF 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 RECTANGLE on WHOSE LENGTH the SIDE SUBTENDING the perpendicular falls, and WHOSE WIDTH IS EQUAL TO the straight line SEGMENT cut off outside by the perpendicular towards the obtuse angle."

I am not suggesting that the quote be changed but only that a clarification be given by somebody more in the know on this than myself.

P.S. I only place this talk section above the others to more closely align it with the portion of the main article to which it pertains.

132.45.121.6 (talk) 17:48, 27 August 2012 (UTC)

## Proof "Using the distance formula" unclear

In "Using the distance formula" the article states as a fact that "We can place this triangle on the coordinate system by plotting..." and then proceeds to use some trigonometry in the coordinates, without any explanation for how those coordinates are derived / where they came from.

Just a comment about the readability- I can't actually see clearly the labels on Figure 2. 67.255.12.129 (talk) 20:52, 19 April 2011 (UTC)

## Pythagorean Theorem also Proved by Law of Cosines?

Okay, in the article, it states the since cos 90 is 0 the Law of Cosines is reduced to the Pythagorean Theorem. I don't think that's the case cause if $a^{2}=b^{2}+c^{2}-2bccosA$ , then wouldn't $a^{2}=b^{2}+c^{2}$ ? —Preceding unsigned comment added by 70.107.165.59 (talkcontribs)

Yes, and that's the Pythagorean theorem (in the case where the right angles is the angle between the sides of lengths b and c). Michael Hardy 23:20, 1 March 2007 (UTC)
The last time I checked, the Pythagorean theorem is $a^{2}+b^{2}=c^{2}$ . I put something about this near the top of the page. Mason0190 (talk) 13:08, 6 May 2015 (UTC)

It seems that your answer would technically be correct, Michael, but it's a bit unclear because the variables tend to be such that A and B are the legs and C is the hypotenuse. It's not a correctness issue, it's clarity. Mason0190 (talk) 13:10, 6 May 2015 (UTC)

## Circular proof?

In the dot product article, a dot b = a b cos theta is proved using the Law of Cosines. And the Law of Cosines is proved using vector dot products. Shouldn't somebody fix this? --Orborde 07:48, 9 September 2005 (UTC)

The dot product proof should be removed. It's circular. Law of cosines comes first historically and all of vector calculus is assumed to depend on it, not vice versa. Might as well use vectors to prove the pythagorean theorem. Pfalstad 10:22, 9 September 2005 (UTC)
I have hopefully solved this problem, by stating the law of cosines is equivalent to the dot product formula from theory of vectors. --345Kai 10:45, 30 March 2006 (UTC)
"a dot b = a b cos theta" is the definition of a vector dot product. No proof is not required. Jmheneghan (talk) 17:16, 20 May 2016 (UTC)

Jmheneghan (talk) 17:16, 20 May 2016 (UTC)

Wow that's pretty darn smart. --M1ss1ontomars2k4 | T | C | @ 04:04, 21 May 2006 (UTC)
If you define the dot product (a,b)*(c,d) as ac+bd (so it is linear) and then prove (a,b)*(c,d)=|(a,b)|*|(c,d)|*cos(α) then there is nothing circular. The definition used is a matter of taste, I guess some others are possible. I like the argument with dot product because it gives a different light on the cosine law and I think it deserves a place on this article. Ricardo sandoval 23:20, 12 April 2007 (UTC)
I never saw the story of the dot product but I would guess it came from the scalar product of physics (as in the definition of work done in a particle) is that right? Ricardo sandoval 23:20, 12 April 2007 (UTC)
I guess we could also define (a,b)*(c,d) as |(a,b)|*|(c,d)|*cos(α) prove the linearity by geometrical arguments and use it to prove the cosine law. right? Ricardo sandoval 23:20, 12 April 2007 (UTC)

## Section moving

I removed the following section because this is said in the first paragraph and follows from elementary algebra:

## Another use for Law of Cosines

The Law of Cosines can also be used to find the measure of the three angles in a triangle if you know the length of the three sides. This is how you do it: &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp

$a^{2}+b^{2}-2ab\cos C=c^{2}$ $-2ab\cos C=-a^{2}-b^{2}+c^{2}$ $\cos C=(-a^{2}-b^{2}+c^{2})/(-2ab)$ $\cos C=(a^{2}+b^{2}-c^{2})/(2ab)$ $C=\arccos[(a^{2}+b^{2}-c^{2})/(2ab)]$ Now you can find the measure of angle C!

— Sverdrup (talk) 21:00, 25 Feb 2004 (UTC)

If noone objects, I'm going to put the vector-based proof first and move the other one down since the former is more simple and universal as opposed to the latter.. or someone else could do it.. or whatever... - Evil saltine 00:33, 22 May 2005 (UTC)

As noted above, the vector-based proof is circular: the proof that the dot product of two vectors has a geometric interpretation in Euclidian space is itself based on the law of cosines. So using the geometric interpretation of a dot product to prove the law of cosines is a bit problematic... --Delirium 03:17, 13 November 2005 (UTC)
see above --345Kai 10:45, 30 March 2006 (UTC)

## We?

Is the usage of "we" throughout this article proper? Shouldn't "we can easily prove" be "can be proved" (wlong with some sentence rearrangement). BrokenSegue 04:00, 30 March 2006 (UTC)

## Rewrite

I have rewritten the article and expanded it considerably. I have taken a lot of material from the French article, according to the above suggestion. I hope you like it!!! Please improve further... (and sorry that in the history of this page the big change was signed "Euklid". That was me and and I know we shouldn't use these kinds of names on Wikipedia, so I've changed my login. --345Kai 10:45, 30 March 2006 (UTC)

Great work!! The French article was way better by any standards, I fell bad I can't understand it. I only see the general flow of ideas. Now it is all clear I will read in finer detail, Thanks!!! Ricardo sandoval 23:42, 12 April 2007 (UTC)

## Faster demonstrations

The last demonstrations using the power of a point can be simplified, all of them can be worked out with just one application of the power point theorem, and the the first two cases can be made one by considering b<c(always can be done by flipping the sides). Someone willing to make new pictures? Ricardo sandoval 08:02, 16 April 2007 (UTC)

If you need any diagrams drawn, altered, fixed etc. Please post a request at the Graphics Lab. Please read instructions at the top of the page before posting. Thank you! XcepticZP 18:20, 15 November 2007 (UTC)

## Alternative proof using Power of a Point Theorem

This proof along with that using Pythagoras theorem are of considerable historical significance since both have their origins in Euclid's Elements and both are referred to in the ground breaking work of Nicolaus Copernicus: "De Revolutionibus Orbium Coelestium". On Page 20 and Page 21 of Book 1 Copernicus describes two techniques for determining angles given all three sides of a triangle. These techniques correspond respectively to the Pythagorean and Power of Points derivations of the Law of Cosines.

Fig 1 and Fig 2 are replicas of the diagrams from Page 21 of De Revolutionibus Orbium Coelestium.In Fig 1 triangle ABC is drawn with B an acute angle. With C as centre and BC (=a) as radius semi-circle DBF is constructed with DF a diameter and D a point on AC. The circle meets side AB at E and EC is joined forming isosceles triangle ECB with EB = 2acos(B).Power of Points Theorem (intersecting secants theorem) is applied to point A outside the circle:

${\begin{array}{lcl}\quad \quad AD\times AF=AB\times AE\\\Rightarrow (b-a)(b+a)=c(c-2a\cos {\hat {B}})\\\Rightarrow \quad b^{2}-a^{2}=c^{2}-2ac.\cos {\hat {B}}\\\Rightarrow \quad \quad b^{2}=a^{2}+c^{2}-2ac\cos {\hat {B}}\end{array}}$ It will be no different in the case of Fig 2 where angle B is obtuse:

${\begin{array}{lcl}\quad \quad AD\times AF=AB\times AE\\\Rightarrow (b-a)(b+a)=c(c+2a\cos(180-{\hat {B}}))\\\Rightarrow \quad b^{2}-a^{2}=c^{2}-2ac.\cos {\hat {B}}\\\Rightarrow \quad \quad b^{2}=a^{2}+c^{2}-2ac\cos {\hat {B}}\end{array}}$ In addition to the two cases dealt with above, we also need to consider the situation shown in the diagram where Power of Point theorem is applied about point B inside the construction circle.

Triangle ABC is drawn with side AB=c,BC=a and CA=b. With A as centre construct circle DCE with radius b and diameter DE passing through B. CB produced meets the circle at F. Since triangle CAF is isosceles:

$CF=2b\cos {\hat {C}}\quad$ .

Now apply the Power of a Point Theorem (intersecting chords theorem) to point B inside the circle:

${\begin{array}{lcl}\quad \quad BD\times BE=BC\times BF\\\Rightarrow (b-c)(b+c)=a(2b\cos {\hat {C}}-a)\\\Rightarrow \quad b^{2}-c^{2}=2ab.\cos {\hat {C}}-a^{2}\\\Rightarrow \quad \quad c^{2}=b^{2}+a^{2}-2ab\cos {\hat {C}}\end{array}}$ —Preceding unsigned comment added by Neil Parker (talkcontribs) 10:28, 17 December 2007 (UTC)

## Distance Proof

I really like this proof, but it seems to be there are multiple cases. All of which work out to the same correct result.

I will ignore cases when any of the angles are right angles, as then the distance formula simply leads to the Pathagorian Theorem, which is a special case of the law of cosines.

The proof given works when angle at vertex C is acute and angle at vertex B is acute. Below are the other cases:

1) The angle at vertex C is acute, and the angle at vertex B is obtuse. a - b*cos(theta) becomes b*cos(theta) - a. (where as in the original theta is the angle at vertex C). Since the term is squared the result is the same since x**2 = (-x)**2

2) The angle at vertex C is obtuse. in this case the side:

 a - b*cos(theta)  becomes a + b*cos(180-theta) which is


equal to a + b*(-cos(theta)) or a - b*cos(theta). Again leading to the same result.

Does this seem reasonable to anyone? —Preceding unsigned comment added by NeilAFraser (talkcontribs) 01:30, 12 July 2008 (UTC)

## Alternate forms

{\begin{aligned}c^{2}&=a^{2}+b^{2}-2ab\cos \theta \\&=(a+b)^{2}-4ab\cos ^{2}{\tfrac {\theta }{2}}\\&=(a-b)^{2}+4ab\sin ^{2}{\tfrac {\theta }{2}}\\\end{aligned}} The alternate forms were found after reading about rounding errors in spherical triangles, as mentioned in the great-circle distance article.

The arithmetic and geometric mean lengths of the known sides are:

{\begin{aligned}m_{a}&=(a+b)/2\\m_{g}&={\sqrt {ab}}\\\end{aligned}} And

{\begin{aligned}c^{2}&=(a+b)^{2}-4ab\cos ^{2}{\tfrac {\theta }{2}}\\&=4m_{a}^{2}-4m_{g}^{2}\cos ^{2}{\tfrac {\theta }{2}}\\&=4(m_{a}+m_{g}\cos {\tfrac {\theta }{2}})(m_{a}-m_{g}\cos {\tfrac {\theta }{2}})\\&=(2m_{a}+2m_{g}\cos {\tfrac {\theta }{2}})(2m_{a}-2m_{g}\cos {\tfrac {\theta }{2}})\\\end{aligned}} Or

{\begin{aligned}({\tfrac {c}{2}})^{2}&=m_{a}^{2}-m_{g}^{2}\cos ^{2}{\tfrac {\theta }{2}}\\&=(m_{a}+m_{g}\cos {\tfrac {\theta }{2}})(m_{a}-m_{g}\cos {\tfrac {\theta }{2}})\\\end{aligned}} - Ac44ck (talk) 23:40, 10 December 2008 (UTC)

## Proof using distance formula moved to talk page.

I moved the following here to the talk page. This proof combines trigonometry and the Pythagorean theorem and quite a bit of algebra of real numbers. It is not nearly as elementary as some of the other proofs presented. I don't see what is gained by including it in the article.--345Kai (talk) 05:40, 8 September 2009 (UTC)

Consider a triangle with sides of length a, b, c, where $\theta$ is the measurement of the angle opposite the side of length c. We can place this triangle on the coordinate system by plotting
$A=(b\cos \theta ,\ b\sin \theta ),\ B=(a,0),\ {\text{and}}\ C=(0,0).$ By the distance formula, we have
$c={\sqrt {(b\cos \theta -a)^{2}+(b\sin \theta -0)^{2}}}.$ Now, we just work with that equation:
{\begin{aligned}c^{2}&{}=(b\cos \theta -a)^{2}+(b\sin \theta )^{2}\\c^{2}&{}=b^{2}\cos ^{2}\theta -2ab\cos \theta +a^{2}+b^{2}\sin ^{2}\theta \\c^{2}&{}=a^{2}+b^{2}(\sin ^{2}\theta +\cos ^{2}\theta )-2ab\cos \theta \\c^{2}&{}=a^{2}+b^{2}-2ab\cos \theta .\end{aligned}} An advantage of this proof is that it does not require the consideration of different cases for when the triangle is acute vs. obtuse.
Why banish this one? It sets up one equation and grinds it out. The trig proof that is left requires looking at the triangle in three different ways to come up with three different equations to mash together. It, too, seems to involve "quite a bit of algebra of real numbers."
I don't see what is gained by moving it. - Ac44ck (talk) 01:18, 9 September 2009 (UTC)

## Law of Cosines is plural, NOT singular

11-03-09: Apparently NorweigianBlue and HambergerRadio don't know their Trigonometry. There are three Cosine formulas, NOT one formula.

$a^{2}=b^{2}+c^{2}-2bc\cos(\alpha )\,$ $b^{2}=a^{2}+c^{2}-2ac\cos(\beta )\,$ $c^{2}=a^{2}+b^{2}-2ab\cos(\gamma )\,$ If you Google "Law of Cosines", you will find the above three formulas, which corresponts to the article's triangle figure.

All three are the same formula. Therefore there is just one Cosine Law. Martin451 (talk) 23:27, 3 November 2009 (UTC)

All triangles have three Sines, three Cosines, and three Tangents. The same goes for their inverses too. The article's triangular drawing displays three angles, therefore three Cosine identies exists, as I have shown above ... Mike —Preceding unsigned comment added by 169.230.110.161 (talk) 00:54, 4 November 2009 (UTC)

In the French Wikipedia, the Law (singular) of cosines, is a featured article. The law is stated there only once, not three times as is it is here after 169.230.110.161 changed the article. I suggest that someone reverts the change, unless there is consensus to do otherwise. I have already reverted a couple of times, but don't want to engage in an edit war, so I'm taking the article off my watchlist. --NorwegianBlue talk 10:49, 4 November 2009 (UTC)

All three say the same thing. Michael Hardy (talk) 17:22, 4 November 2009 (UTC)

The identity

$a^{2}=b^{2}+c^{2}-2bc\cos(\alpha )\,$ applies if a is any of the three sides, and α the angle opposite it, and b and c the other two sides. Thus it can be applied first with one side labeled a, then with a second side labeled a, then with the third side labeled a, so stating the formula just once covers all three sides of the triangle (and also all other triangles). Michael Hardy (talk) 17:34, 4 November 2009 (UTC)

## Adjusted line "CH = a cos(π – γ) = −a cos(γ)" in history

I changed the line "CH = a cos(π – γ) = −a cos(γ)" in the history subsection to "CH = (CB) cos(π – γ) = −(CB) cos(γ)". In the equations used in this section and the diagram there is no "a" side. Danshil (talk) 21:39, 19 December 2009 (UTC)

## Make consistent with "Law of sines"

The diagram and symbols used for angles on the "Law of cosines" page are not the same as those on the "Law of sines" page. Would it be reasonable to change this page to match those on the "Law of sines" page? — Preceding unsigned comment added by 209.98.145.235 (talk) 14:36, 30 January 2013 (UTC)

## relation between the law of sin and cosine

$\arccos {\frac {1}{2.5}}$ $\arccos {\frac {1}{2.5}}$ $\arccos {\frac {4.25}{6.25}}$ consecutive numbers.

$1.5,2.5,3.5$ $4.25,5.25,6.25$ ${\frac {1}{2.5}}$ $1.5\times 3.5=5.25$ 1-0.68=0.32 change between the law of sin and the law of cosine

${\frac {\sin A}{\frac {1}{2.5}}}={\sqrt {5}}.25$ ${\frac {\sin B}{\frac {1}{2.5}}}{\sqrt {5}}.25$ ${\frac {\sin C}{\frac {1}{6.25/2}}}={\sqrt {5}}.25$ consecutive numbers.

$1.5,2.5,3.5$ $4.25,5.25,6.25$ ${\frac {1}{2.5}}$ $1.5\times 3.5=5.25$ — Preceding unsigned comment added by 199.119.233.245 (talk) 19:12, 7 November 2015 (UTC)

199.119.233.215 (talk) 04:21, 16 January 2016 (UTC)

## Correction for solving angle-side-side triangles

In the section where you use the quadratic equation to make a form of the law of cosines that solves angle-side-side triangles, there is an error on the bounds checking. You say that if c>=b, there are no solutions. However:

- If c=b, there is one solution. It is an isosceles triangle with b=c, B=C. The triangle itself is twice the size as the right triangle formed by c=b*sin(C) & B = 90. B and C are acute.

- If c>b, there is also one solution. It is a scalene triangle with B and C being acute. — Preceding unsigned comment added by 69.159.12.95 (talk) 01:35, 26 January 2020 (UTC)

For future reference, WP:SOFIXIT applies. –Deacon Vorbis (carbon • videos) 01:51, 26 January 2020 (UTC)

## Another small addition on the angle-side-side solution

Right now it says, "only one positive solution if c = b sin γ". It should say "only one positive solution if c = b sin γ OR if c>=b" — Preceding unsigned comment added by 69.159.12.95 (talk) 06:06, 26 January 2020 (UTC)

WP:SOFIXIT. Also, please place new comments at the end and sign your posts. See Help:Talk for more info. –Deacon Vorbis (carbon • videos) 12:44, 26 January 2020 (UTC)

## Demonstration by Chasles relation and scalar product

Will it make sense to add a demonstration with Chasles relation and scalar product? Even if historically it was after, it is a simple and powerful tool to demonstrate it. — Preceding unsigned comment added by 103.139.171.78 (talk) 17:49, 15 July 2020 (UTC)

## Proof by application of dot product

Could there be a valid proof using the definition of a dot product. With triangle having side C as the vector A-B, where A,B are the vectors of the triangle legs: then length |C|^2 could be written as |A|^2+|B|^2-2A(dot)B. A(dot)B is defined as |A||B|cos(theta) giving the law of cosines formula. If other editors think this is valid, I could add a formatted proof. Nikolaih☎️📖 21:40, 6 August 2020 (UTC)

    Absolutely. It should be added --83.56.100.228 (talk) 18:37, 10 October 2020 (UTC)Reply[reply]