<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://miguelcaro.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Pythagorean_theorem_and_law_of_cosines</id>
	<title>Pythagorean theorem and law of cosines - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://miguelcaro.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Pythagorean_theorem_and_law_of_cosines"/>
	<link rel="alternate" type="text/html" href="https://miguelcaro.org/wiki/index.php?title=Pythagorean_theorem_and_law_of_cosines&amp;action=history"/>
	<updated>2026-06-20T16:06:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://miguelcaro.org/wiki/index.php?title=Pythagorean_theorem_and_law_of_cosines&amp;diff=19&amp;oldid=prev</id>
		<title>Miguel Caro: Created page with &quot;''You can also download a &lt;html&gt;&lt;a href=&quot;/wiki/pdf/pythagoras.pdf&quot;&gt;PDF&lt;/a&gt;&lt;/html&gt; version of this article.''  ===Proof of Pythagorean theorem===  File:Pythagoras01.png|thumb...&quot;</title>
		<link rel="alternate" type="text/html" href="https://miguelcaro.org/wiki/index.php?title=Pythagorean_theorem_and_law_of_cosines&amp;diff=19&amp;oldid=prev"/>
		<updated>2020-12-23T15:35:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;You can also download a &amp;lt;html&amp;gt;&amp;lt;a href=&amp;quot;/wiki/pdf/pythagoras.pdf&amp;quot;&amp;gt;PDF&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt; version of this article.&amp;#039;&amp;#039;  ===Proof of Pythagorean theorem===  File:Pythagoras01.png|thumb...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;''You can also download a &amp;lt;html&amp;gt;&amp;lt;a href=&amp;quot;/wiki/pdf/pythagoras.pdf&amp;quot;&amp;gt;PDF&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt; version of this article.''&lt;br /&gt;
&lt;br /&gt;
===Proof of Pythagorean theorem===&lt;br /&gt;
&lt;br /&gt;
[[File:Pythagoras01.png|thumb|width=100px|Fig. 1: Geometrical construction made to prove the Pythagorean theorem.]]&lt;br /&gt;
&lt;br /&gt;
Based on geometric considerations, we are going to give proof for&lt;br /&gt;
one of the most widely known identities in mathematics - the Pythagorean theorem. It states that the sides of a&lt;br /&gt;
right triangle (that is, a triangle&lt;br /&gt;
for which one of the inner angles measures &amp;lt;math&amp;gt;90^\circ&amp;lt;/math&amp;gt; or&lt;br /&gt;
&amp;lt;math&amp;gt;\pi/2&amp;lt;/math&amp;gt; radians) of lengths &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; satisfy the following identity:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c^2 = a^2 + b^2.\qquad\qquad(1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Consider the triangle of sides &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; marked in bold&lt;br /&gt;
of Fig. 1. If we construct the system of triangles shown in&lt;br /&gt;
the figure, then it is clear that the area of the bigger square&lt;br /&gt;
is &amp;lt;math&amp;gt;(a+b)^2&amp;lt;/math&amp;gt;. The area of all the elements contained within must&lt;br /&gt;
of course equal &amp;lt;math&amp;gt;(a+b)^2&amp;lt;/math&amp;gt;. There are four triangles of area&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{1}{2} a b&amp;lt;/math&amp;gt; and one square of area &amp;lt;math&amp;gt;c^2&amp;lt;/math&amp;gt;. Hence, it must be&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;(a+b)^2 = 4 \frac{1}{2} a b + c^2.\qquad\qquad(2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Expanding the parenthesis in Eq. (2) we have&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;a^2 + b^2 + \cancel{2ab} = \cancel{2 a b} + c^2,\qquad\qquad(3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;a^2 + b^2 = c^2,\qquad\qquad(4)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
as we wanted to prove.&lt;br /&gt;
&lt;br /&gt;
===Law of cosines===&lt;br /&gt;
&lt;br /&gt;
[[File:Pythagoras02.png|thumb|width=100px|Fig. 2: Non right triangle to which the law of cosines applies.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Pythagoras03.png|thumb|width=100px|Fig. 3: Geometric proof that &amp;lt;math&amp;gt;\sin (\pi - \alpha) = \sin \alpha&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;\cos (\pi - \alpha) = - \cos\alpha&amp;lt;/math&amp;gt;.]]&lt;br /&gt;
&lt;br /&gt;
The Pythagorean theorem is only valid for right triangles. There is&lt;br /&gt;
a more general theorem, the ''law of cosines'', that relates the lengths&lt;br /&gt;
of the sides of any given triangle as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c^2 = a^2 + b^2 - 2ab \cos\alpha,\qquad\qquad(5)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the angle formed by the sides of lengths &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;, and&lt;br /&gt;
opposite &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;, as shown in Fig. 2. In that figure, the side of&lt;br /&gt;
length &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; is extended to form a right triangle that will help&lt;br /&gt;
prove the identity given by Eq. (5).&lt;br /&gt;
&lt;br /&gt;
It is clear from Fig. 2 that &amp;lt;math&amp;gt;\beta = \pi - \alpha&amp;lt;/math&amp;gt;, in radians,&lt;br /&gt;
or &amp;lt;math&amp;gt;\beta = 180^\circ - \alpha&amp;lt;/math&amp;gt; in degrees. Here&lt;br /&gt;
we prefer to work in radians, and so will use the former expression.&lt;br /&gt;
Although usually it would suffice to say that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\cos \beta = \cos \left( \pi - \alpha \right) = - \cos \alpha \qquad \text{and}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sin \beta = \sin \left( \pi - \alpha \right) = \sin \alpha,\qquad\qquad(6)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
we are trying to&lt;br /&gt;
make as few assumptions as possible. Therefore the geometric proof to&lt;br /&gt;
Eq. (6) is given in Fig. 3.&lt;br /&gt;
Having constructed a right triangle in Fig. 2&lt;br /&gt;
we can now relate the length of &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; to the other sides of&lt;br /&gt;
the bigger triangle through the Pythagorean theorem:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c^2 = \left( a - b\cos\alpha \right)^2 + \left( b\sin\alpha \right)^2.\qquad\qquad(7)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Expanding the powers in parenthesis, one easily gets to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c^2 = a^2 + b^2 \cos^2 \alpha -2ab\cos\alpha + b^2\sin^2\alpha.\qquad\qquad(8)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given the well known trigonometric relation&lt;br /&gt;
&amp;lt;math&amp;gt;\cos^2\alpha + \sin^2\alpha = 1&amp;lt;/math&amp;gt; (the relation&lt;br /&gt;
&amp;lt;math&amp;gt;\cos^2\alpha + \sin^2\alpha = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
can easily be proven using the Pythagorean theorem for a triangle for&lt;br /&gt;
which &amp;lt;math&amp;gt;c=1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt; is the angle between &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt;. It follows&lt;br /&gt;
immediately that &amp;lt;math&amp;gt;a=\cos\alpha&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b=\sin\alpha&amp;lt;/math&amp;gt;.),&lt;br /&gt;
Eq. (8) reduces to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c^2 = a^2 + b^2 - 2ab\cos\alpha,\qquad\qquad(9)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is the relation we wanted to prove.&lt;/div&gt;</summary>
		<author><name>Miguel Caro</name></author>
		
	</entry>
</feed>