# Pythagorean trigonometric identity

The Pythagorean trigonometric identity is a trigonometric identity expressing the Pythagorean theorem in terms of trigonometric functions. Along with the sum-of-angles formulae, it is one of the basic relations between the sine and cosine functions.

The identity is given by the formula:

${\displaystyle \sin ^{2}\theta +\cos ^{2}\theta =1.}$ for a right angle of triangles. And for all triangles the following list apply:

${\displaystyle (c\times \sin B)^{2}+(b\times \cos C)^{2}=b^{2}}$

${\displaystyle (c\times \sin A)^{2}+(a\times \cos C)^{2}=a^{2}}$

${\displaystyle (c\times \sin B)^{2}+(c\times \cos B)^{2}=c^{2}}$

${\displaystyle (c\times \sin A)^{2}+(c\times \cos A)^{2}=c^{2}}$

${\displaystyle (\sin B)^{2}+(\cos B)^{2}=c^{2}}$

${\displaystyle (\sin A)^{2}+(\cos A)^{2}=c^{2}}$

${\displaystyle (b\times \cos C)+(c\times \cos B)=a}$

${\displaystyle (a\times \cos C)+(c\times \cos A)=b}$

${\displaystyle (a\times \cos B)+(b\times \cos A)=c}$

${\displaystyle (c\times \cos B)+(b\times \cos C)=}$

${\displaystyle (c\times \cos A)+(a\times \cos C)=b}$

and to find one of the altitude:

${\displaystyle h_{a}={\frac {\sqrt {2(a^{2}b^{2}+a^{2}c^{2}+b^{2}c^{2})-a^{4}-b^{4}-c^{4}}}{2a}}}$

${\displaystyle h_{b}={\frac {\sqrt {2(a^{2}b^{2}+a^{2}c^{2}+b^{2}c^{2})-a^{4}-b^{4}-c^{4}}}{2b}}}$

${\displaystyle h_{c}={\frac {\sqrt {2(a^{2}b^{2}+a^{2}c^{2}+b^{2}c^{2})-a^{4}-b^{4}-c^{4}}}{2c}}}$

${\displaystyle (\sin A)^{2}+(\sin B)^{2}+(\sin C)^{2}+(\cos A)^{2}+(\cos B)^{2}+(\cos C)^{2}=3}$

(Note that sin2 θ means (sin θ)2). This relation between sine and cosine is sometimes called the fundamental Pythagorean trigonometric identity.[1]

## Proofs and their relationships to the Pythagorean theorem

Similar right triangles showing sine and cosine of angle θ

### Proof based on right-angle triangles

Any similar triangles have the property that if we select the same angle in all of them, the ratio of the two sides defining the angle is the same regardless of which similar triangle is selected, regardless of its actual size: the ratios depend upon the three angles, not the lengths of the sides. Thus for either of the similar right triangles in the figure, the ratio of its horizontal side to its hypotenuse is the same, namely cos θ.

The elementary definitions of the sine and cosine functions in terms of the sides of a right triangle are:

${\displaystyle \sin \theta ={\frac {\mathrm {opposite} }{\mathrm {hypotenuse} }}={\frac {b}{c}}}$
${\displaystyle \cos \theta ={\frac {\mathrm {adjacent} }{\mathrm {hypotenuse} }}={\frac {a}{c}}}$

The Pythagorean identity follows by squaring both definitions above, and adding; the left-hand side of the identity then becomes

${\displaystyle {\frac {\mathrm {opposite} ^{2}+\mathrm {adjacent} ^{2}}{\mathrm {hypotenuse} ^{2}}}}$

which by the Pythagorean theorem is equal to 1. This definition is valid for all angles, due to the definition of defining ${\displaystyle x=\cos \theta }$  and ${\displaystyle y=\sin \theta }$  for the unit circle and thus ${\displaystyle x=c\cos \theta }$  and ${\displaystyle y=c\sin \theta }$  for a circle of radius c and reflecting our triangle in the y axis and setting ${\displaystyle a=x}$  and ${\displaystyle b=y}$ .

Alternatively, the identities found at Trigonometric symmetry, shifts, and periodicity may be employed. By the periodicity identities we can say if the formula is true for −π < θ ≤ π then it is true for all real θ. Next we prove the range π/2 < θ ≤ π, to do this we let t = θ − π/2, t will now be in the range 0 < t ≤ π/2. We can then make use of squared versions of some basic shift identities (squaring conveniently removes the minus signs):

${\displaystyle \sin ^{2}\theta +\cos ^{2}\theta =\sin ^{2}\left(t+{\frac {1}{2}}\pi \right)+\cos ^{2}\left(t+{\frac {1}{2}}\pi \right)=\cos ^{2}t+\sin ^{2}t=1.}$

All that remains is to prove it for −π < θ < 0; this can be done by squaring the symmetry identities to get

${\displaystyle \sin ^{2}\theta =\sin ^{2}(-\theta ){\text{ and }}\cos ^{2}\theta =\cos ^{2}(-\theta ).}$

#### Related identities

Similar right triangles illustrating the tangent and secant trigonometric functions.

The identities

${\displaystyle 1+\tan ^{2}\theta =\sec ^{2}\theta }$

and

${\displaystyle 1+\cot ^{2}\theta =\csc ^{2}\theta }$

are also called Pythagorean trigonometric identities.[1] If one leg of a right triangle has length 1, then the tangent of the angle adjacent to that leg is the length of the other leg, and the secant of the angle is the length of the hypotenuse.

${\displaystyle \tan \theta ={\frac {b}{a}}\ ,}$

and:

${\displaystyle \sec \theta ={\frac {c}{a}}\ .}$

In this way, this trigonometric identity involving the tangent and the secant follows from the Pythagorean theorem. The angle opposite the leg of length 1 (this angle can be labeled φ = π/2 − θ) has cotangent equal to the length of the other leg, and cosecant equal to the length of the hypotenuse. In that way, this trigonometric identity involving the cotangent and the cosecant also follows from the Pythagorean theorem.

The following table gives the identities with the factor or divisor that relates them to the main identity.

Original Identity Divisor Divisor Equation Derived Identity Derived Identity (Alternate)
${\displaystyle \sin ^{2}\theta +\cos ^{2}\theta =1}$  ${\displaystyle \cos ^{2}\theta }$  ${\displaystyle {\frac {\sin ^{2}\theta }{\cos ^{2}\theta }}+{\frac {\cos ^{2}\theta }{\cos ^{2}\theta }}={\frac {1}{\cos ^{2}\theta }}}$  ${\displaystyle \tan ^{2}\theta +1=\sec ^{2}\theta }$  ${\displaystyle \tan ^{2}\theta =\sec ^{2}\theta -1}$
${\displaystyle \sin ^{2}\theta +\cos ^{2}\theta =1}$  ${\displaystyle \sin ^{2}\theta }$  ${\displaystyle {\frac {\sin ^{2}\theta }{\sin ^{2}\theta }}+{\frac {\cos ^{2}\theta }{\sin ^{2}\theta }}={\frac {1}{\sin ^{2}\theta }}}$  ${\displaystyle 1+\cot ^{2}\theta =\csc ^{2}\theta }$  ${\displaystyle \cot ^{2}\theta =\csc ^{2}\theta -1}$

### Proof using the unit circle

Point P(x,y) on the circle of unit radius at an obtuse angle θ > π/2

Sine function on unit circle (top) and its graph (bottom)

The unit circle centered at the origin in the Euclidean plane is defined by the equation:[2]

${\displaystyle x^{2}+y^{2}=1.}$

Given an angle θ, there is a unique point P on the unit circle at an angle θ from the x-axis, and the x- and y-coordinates of P are:[3]

${\displaystyle x=\cos \theta \ \mathrm {and} \ y=\sin \theta \ .}$

Consequently, from the equation for the unit circle:

${\displaystyle \cos ^{2}\theta +\sin ^{2}\theta =1\ ,}$

the Pythagorean identity.

In the figure, the point P has a negative x-coordinate, and is appropriately given by x = cosθ, which is a negative number: cosθ = −cos(π−θ ). Point P has a positive y-coordinate, and sinθ = sin(π−θ ) > 0. As θ increases from zero to the full circle θ = 2π, the sine and cosine change signs in the various quadrants to keep x and y with the correct signs. The figure shows how the sign of the sine function varies as the angle changes quadrant.

Because the x- and y-axes are perpendicular, this Pythagorean identity is equivalent to the Pythagorean theorem for triangles with hypotenuse of length 1 (which is in turn equivalent to the full Pythagorean theorem by applying a similar-triangles argument). See unit circle for a short explanation.

### Proof using power series

The trigonometric functions may also be defined using power series, namely (for x an angle measured in radians):[4][5]

{\displaystyle {\begin{aligned}\sin x&=\sum _{n=0}^{\infty }{\frac {(-1)^{n}}{(2n+1)!}}x^{2n+1},\\\cos x&=\sum _{n=0}^{\infty }{\frac {(-1)^{n}}{(2n)!}}x^{2n}.\end{aligned}}}

Using the formal multiplication law for power series at Multiplication and division of power series (suitably modified to account for the form of the series here) we obtain

{\displaystyle {\begin{aligned}\sin ^{2}x&=\sum _{i=0}^{\infty }\sum _{j=0}^{\infty }{\frac {(-1)^{i}}{(2i+1)!}}{\frac {(-1)^{j}}{(2j+1)!}}x^{(2i+1)+(2j+1)}\\&=\sum _{n=1}^{\infty }\left(\sum _{i=0}^{n-1}{\frac {(-1)^{n-1}}{(2i+1)!(2(n-i-1)+1)!}}\right)x^{2n}\\&=\sum _{n=1}^{\infty }\left(\sum _{i=0}^{n-1}{2n \choose 2i+1}\right){\frac {(-1)^{n-1}}{(2n)!}}x^{2n},\\\cos ^{2}x&=\sum _{i=0}^{\infty }\sum _{j=0}^{\infty }{\frac {(-1)^{i}}{(2i)!}}{\frac {(-1)^{j}}{(2j)!}}x^{(2i)+(2j)}\\&=\sum _{n=0}^{\infty }\left(\sum _{i=0}^{n}{\frac {(-1)^{n}}{(2i)!(2(n-i))!}}\right)x^{2n}\\&=\sum _{n=0}^{\infty }\left(\sum _{i=0}^{n}{2n \choose 2i}\right){\frac {(-1)^{n}}{(2n)!}}x^{2n}.\end{aligned}}}

Note that in the expression for sin2, n must be at least 1, while in the expression for cos2, the constant term is equal to 1. The remaining terms of their sum are (with common factors removed)

${\displaystyle \sum _{i=0}^{n}{2n \choose 2i}-\sum _{i=0}^{n-1}{2n \choose 2i+1}=\sum _{j=0}^{2n}(-1)^{j}{2n \choose j}=(1-1)^{2n}=0}$

by the binomial theorem. Consequently,

${\displaystyle \sin ^{2}x+\cos ^{2}x=1\ ,}$

which is the Pythagorean trigonometric identity.

The Pythagorean theorem is not closely related to the Pythagorean identity when the trigonometric functions are defined in this way; instead, in combination with the theorem, the identity now shows that these power series parameterize the unit circle, which we used in the previous section. Note that this definition actually constructs the sin and cos functions in a rigorous fashion and proves that they are differentiable, so that in fact it subsumes the previous two.

### Proof using the differential equation

Sine and cosine can be defined as the two solutions to the differential equation:[6]

${\displaystyle y''+y=0}$

satisfying respectively y(0) = 0, y′(0) = 1 and y(0) = 1, y′(0) = 0. It follows from the theory of ordinary differential equations that the first solution, sine, has the second, cosine, as its derivative, and it follows from this that the derivative of cosine is the negative of the sine. The identity is equivalent to the assertion that the function

${\displaystyle z=\sin ^{2}x+\cos ^{2}x}$

is constant and equal to 1. Differentiating using the chain rule gives:

${\displaystyle {\frac {d}{dx}}z=2\sin x\ \cos x+2\cos x\ (-\sin x)=0\ ,}$

so z is constant by the mean value theorem. A calculation confirms that z(0) = 1, and z is a constant so z = 1 for all x, so the Pythagorean identity is established.

A similar proof can be completed using power series as above to establish that the sine has as its derivative the cosine, and the cosine has as its derivative the negative sine. In fact, the definitions by ordinary differential equation and by power series lead to similar derivations of most identities.

This proof of the identity has no direct connection with Euclid's demonstration of the Pythagorean theorem.

2. ^ This result can be found using the distance formula ${\displaystyle d={\sqrt {x^{2}+y^{2}}}}$  for the distance from the origin to the point ${\displaystyle (x,\ y)}$ . See Cynthia Y. Young (2009). Algebra and Trigonometry (2nd ed.). Wiley. p. 210. ISBN 0-470-22273-5. This approach assumes Pythagoras' theorem. Alternatively, one could simply substitute values and determine that the graph is a circle.