In trigonometry, trigonometric identities are equalities that involve trigonometric functions and are true for every value of the occurring variables for which both sides of the equality are defined. Geometrically, these are identities involving certain functions of one or more angles. They are distinct from triangle identities, which are identities potentially involving angles but also involving side lengths or other lengths of a triangle.
These identities are useful whenever expressions involving trigonometric functions need to be simplified. An important application is the integration of non-trigonometric functions: a common technique involves first using the substitution rule with a trigonometric function, and then simplifying the resulting integral with a trigonometric identity.
Trigonometric functions and their reciprocals on the unit circle. All of the right-angled triangles are similar, i.e. the ratios between their corresponding sides are the same. For sin, cos and tan the unit-length radius forms the hypotenuse of the triangle that defines them. The reciprocal identities arise as ratios of sides in the triangles where this unit line is no longer the hypotenuse. The triangle shaded blue illustrates the identity , and the red triangle shows that .
The basic relationship between the sine and cosine is given by the Pythagorean identity:
where means and means
This can be viewed as a version of the Pythagorean theorem, and follows from the equation for the unit circle. This equation can be solved for either the sine or the cosine:
Dividing this identity by , , or both yields the following identities:
Using these identities, it is possible to express any trigonometric function in terms of any other (up to a plus or minus sign):
Reflections, shifts, and periodicity
By examining the unit circle, one can establish the following properties of the trigonometric functions.
Reflections
Transformation of coordinates (a,b) when shifting the reflection angle in increments of
When the direction of a Euclidean vector is represented by an angle this is the angle determined by the free vector (starting at the origin) and the positive -unit vector. The same concept may also be applied to lines in an Euclidean space, where the angle is that determined by a parallel to the given line through the origin and the positive -axis. If a line (vector) with direction is reflected about a line with direction then the direction angle of this reflected line (vector) has the value
The values of the trigonometric functions of these angles for specific angles satisfy simple identities: either they are equal, or have opposite signs, or employ the complementary trigonometric function. These are also known as reduction formulae.
Shifts and periodicity
Transformation of coordinates (a,b) when shifting the angle in increments of
Signs
The sign of trigonometric functions depends on quadrant of the angle. If and sgn is the sign function,
The trigonometric functions are periodic with common period so for values of θ outside the interval they take repeating values (see § Shifts and periodicity above).
Geometric construction to derive angle sum trigonometric identities.Diagram showing the angle difference identities for and
These are also known as the angle addition and subtraction theorems (or formulae).
The angle difference identities for and can be derived from the angle sum versions by substituting for and using the facts that and . They can also be derived by using a slightly modified version of the figure for the angle sum identities, both of which are shown here.
These identities are summarized in the first two rows of the following table, which also includes sum and difference identities for the other trigonometric functions.
Sines and cosines of sums of infinitely many angles
Because the series converges absolutely, it is necessarily the case that and In particular, in these two identities an asymmetry appears that is not seen in the case of sums of finitely many angles: in each product, there are only finitely many sine factors but there are cofinitely many cosine factors. Terms with infinitely many sine factors would necessarily be equal to zero.
When only finitely many of the angles are nonzero then only finitely many of the terms on the right side are nonzero because all but finitely many sine factors vanish. Furthermore, in each term all but finitely many of the cosine factors are unity.
The number of terms on the right side depends on the number of terms on the left side.
For example:
and so on. The case of only finitely many terms can be proved by mathematical induction. The case of infinitely many terms can be proved by using some elementary inequalities.
Secants and cosecants of sums
where is the kth-degree elementary symmetric polynomial in the n variables and the number of terms in the denominator and the number of factors in the product in the numerator depend on the number of terms in the sum on the left. The case of only finitely many terms can be proved by mathematical induction on the number of such terms.
Diagram illustrating the relation between Ptolemy's theorem and the angle sum trig identity for sine. Ptolemy's theorem states that the sum of the products of the lengths of opposite sides is equal to the product of the lengths of the diagonals. When those side-lengths are expressed in terms of the sin and cos values shown in the figure above, this yields the angle sum trigonometric identity for sine: sin(α + β) = sin α cos β + cos α sin β.
Ptolemy's theorem is important in the history of trigonometric identities, as it is how results equivalent to the sum and difference formulas for sine and cosine were first proved. It states that in a cyclic quadrilateral , as shown in the accompanying figure, the sum of the products of the lengths of opposite sides is equal to the product of the lengths of the diagonals. In the special cases of one of the diagonals or sides being a diameter of the circle, this theorem gives rise directly to the angle sum and difference trigonometric identities. The relationship follows most easily when the circle is constructed to have a diameter of length one, as shown here.
By Thales's theorem, and are both right angles. The right-angled triangles and both share the hypotenuse of length 1. Thus, the side , , and .
By the inscribed angle theorem, the central angle subtended by the chord at the circle's center is twice the angle , i.e. . Therefore, the symmetrical pair of red triangles each has the angle at the center. Each of these triangles has a hypotenuse of length , so the length of is , i.e. simply . The quadrilateral's other diagonal is the diameter of length 1, so the product of the diagonals' lengths is also .
When these values are substituted into the statement of Ptolemy's theorem that , this yields the angle sum trigonometric identity for sine: . The angle difference formula for can be similarly derived by letting the side serve as a diameter instead of .
Multiple-angle and half-angle formulae
Multiple-angle formulae
Double-angle formulae
Visual demonstration of the double-angle formula for sine. For the above isosceles triangle with unit sides and angle , the area1/2 × base × height is calculated in two orientations. When upright, the area is . When on its side, the same area is . Therefore,
Formulae for twice an angle.
Triple-angle formulae
Formulae for triple angles.
Multiple-angle formulae
Formulae for multiple angles.
Chebyshev method
The Chebyshev method is a recursivealgorithm for finding the nth multiple angle formula knowing the th and th values.
can be computed from , , and with
This can be proved by adding together the formulae
A formula for computing the trigonometric identities for the one-third angle exists, but it requires finding the zeroes of the cubic equation4x3 − 3x + d = 0, where is the value of the cosine function at the one-third angle and d is the known value of the cosine function at the full angle. However, the discriminant of this equation is positive, so this equation has three real roots (of which only one is the solution for the cosine of the one-third angle). None of these solutions are reducible to a real algebraic expression, as they use intermediate complex numbers under the cube roots.
Power-reduction formulae
Obtained by solving the second and third versions of the cosine double-angle formula.
Cosine power-reduction formula: an illustrative diagram. The red, orange and blue triangles are all similar, and the red and orange triangles are congruent. The hypotenuse of the blue triangle has length . The angle is , so the base of that triangle has length . That length is also equal to the summed lengths of and , i.e. . Therefore, . Dividing both sides by yields the power-reduction formula for cosine: . The half-angle formula for cosine can be obtained by replacing with and taking the square-root of both sides:
Sine power-reduction formula: an illustrative diagram. The shaded blue and green triangles, and the red-outlined triangle are all right-angled and similar, and all contain the angle . The hypotenuse of the red-outlined triangle has length , so its side has length . The line segment has length and sum of the lengths of and equals the length of , which is 1. Therefore, . Subtracting from both sides and dividing by 2 by two yields the power-reduction formula for sine: . The half-angle formula for sine can be obtained by replacing with and taking the square-root of both sides: Note that this figure also illustrates, in the vertical line segment , that .
Proof of the sum-and-difference-to-product cosine identity for prosthaphaeresis calculations using an isosceles triangle
The product-to-sum identities or prosthaphaeresis formulae can be proven by expanding their right-hand sides using the angle addition theorems. Historically, the first four of these were known as Werner's formulas, after Johannes Werner who used them for astronomical calculations. See amplitude modulation for an application of the product-to-sum formulae, and beat (acoustics) and phase detector for applications of the sum-to-product formulae.
Product-to-sum identities
Sum-to-product identities
Diagram illustrating sum-to-product identities for sine and cosine. The blue right-angled triangle has angle and the red right-angled triangle has angle . Both have a hypotenuse of length 1. Auxiliary angles, here called and , are constructed such that and . Therefore, and . This allows the two congruent purple-outline triangles and to be constructed, each with hypotenuse and angle at their base. The sum of the heights of the red and blue triangles is , and this is equal to twice the height of one purple triangle, i.e. . Writing and in that equation in terms of and yields a sum-to-product identity for sine: . Similarly, the sum of the widths of the red and blue triangles yields the corresponding identity for cosine.
For some purposes it is important to know that any linear combination of sine waves of the same period or frequency but different phase shifts is also a sine wave with the same period or frequency, but a different phase shift. This is useful in sinusoiddata fitting, because the measured or observed data are linearly related to the a and b unknowns of the in-phase and quadrature components basis below, resulting in a simpler Jacobian, compared to that of and .
Sine and cosine
The linear combination, or harmonic addition, of sine and cosine waves is equivalent to a single sine wave with a phase shift and scaled amplitude,
where and are defined as so:
given that
Arbitrary phase shift
More generally, for arbitrary phase shifts, we have
Euler's formula states that, for any real number x: where i is the imaginary unit. Substituting −x for x gives us:
These two equations can be used to solve for cosine and sine in terms of the exponential function. Specifically,
These formulae are useful for proving many other trigonometric identities. For example, that ei(θ+φ) = eiθeiφ means that
cos(θ + φ) + i sin(θ + φ) = (cos θ + i sin θ) (cos φ + i sin φ) = (cos θ cos φ − sin θ sin φ) + i (cos θ sin φ + sin θ cos φ).
That the real part of the left hand side equals the real part of the right hand side is an angle addition formula for cosine. The equality of the imaginary parts gives an angle addition formula for sine.
The following table expresses the trigonometric functions and their inverses in terms of the exponential function and the complex logarithm.
Relation to complex hyperbolic functions
Trigonometric functions may be deduced from hyperbolic functions with complex arguments. The formulae for the relations are shown below.
Series expansion
When using a power series expansion to define trigonometric functions, the following identities are obtained:
The following identities give the result of composing a trigonometric function with an inverse trigonometric function.
Taking the multiplicative inverse of both sides of the each equation above results in the equations for The right hand side of the formula above will always be flipped. For example, the equation for is: while the equations for and are:
The following identities are implied by the reflection identities. They hold whenever are in the domains of the relevant functions.
Also,
The arctangent function can be expanded as a series:
is a special case of an identity that contains one variable:
Similarly, is a special case of an identity with :
For the case ,
For the case ,
The same cosine identity is
Similarly,
Similarly,
The following is perhaps not as readily generalized to an identity containing variables (but see explanation below):
Degree measure ceases to be more felicitous than radian measure when we consider this identity with 21 in the denominators:
The factors 1, 2, 4, 5, 8, 10 may start to make the pattern clear: they are those integers less than21/2 that are relatively prime to (or have no prime factors in common with) 21. The last several examples are corollaries of a basic fact about the irreducible cyclotomic polynomials: the cosines are the real parts of the zeroes of those polynomials; the sum of the zeroes is the Möbius function evaluated at (in the very last case above) 21; only half of the zeroes are present above. The two identities preceding this last one arise in the same fashion with 21 replaced by 10 and 15, respectively.
Other cosine identities include: and so forth for all odd numbers, and hence
Many of those curious identities stem from more general facts like the following: and
Combining these gives us
If n is an odd number () we can make use of the symmetries to get
The transfer function of the Butterworth low pass filter can be expressed in terms of polynomial and poles. By setting the frequency as the cutoff frequency, the following identity can be proved:
Generally, for numbers t1, ..., tn−1 ∈ (−1, 1) for which θn = Σn−1 k=1 arctan tk ∈ (π/4, 3π/4), let tn = tan(π/2 − θn) = cot θn. This last expression can be computed directly using the formula for the cotangent of a sum of angles whose tangents are t1, ..., tn−1 and its value will be in (−1, 1). In particular, the computed tn will be rational whenever all the t1, ..., tn−1 values are rational. With these values,
where in all but the first expression, we have used tangent half-angle formulae. The first two formulae work even if one or more of the tk values is not within (−1, 1). Note that if t = p/q is rational, then the (2t, 1 − t2, 1 + t2) values in the above formulae are proportional to the Pythagorean triple (2pq, q2 − p2, q2 + p2).
For example, for n = 3 terms, for any a, b, c, d > 0.
An identity of Euclid
Euclid showed in Book XIII, Proposition 10 of his Elements that the area of the square on the side of a regular pentagon inscribed in a circle is equal to the sum of the areas of the squares on the sides of the regular hexagon and the regular decagon inscribed in the same circle. In the language of modern trigonometry, this says:
Further "conditional" identities for the case α + β + γ = 180°
A conditional trigonometric identity is a trigonometric identity that holds if specified conditions on the arguments to the trigonometric functions are satisfied. The following formulae apply to arbitrary plane triangles and follow from as long as the functions occurring in the formulae are well-defined (the latter applies only to the formulae in which tangents and cotangents occur).
The versine, coversine, haversine, and exsecant were used in navigation. For example, the haversine formula was used to calculate the distance between two points on a sphere. They are rarely used today.
If we set then where sometimes abbreviated to cisx.
When this substitution of for tanx/2 is used in calculus, it follows that is replaced by 2t/1 + t2, is replaced by 1 − t2/1 + t2 and the differential dx is replaced by 2 dt/1 + t2. Thereby one converts rational functions of and to rational functions of in order to find their antiderivatives.