Trigonometric identity

In mathematics, trigonometric identities are equations involving trigonometric functions that are true for all values of the occurring variables. 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 trick involves first using the substitution rule with a trigonometric function, and then simplifying the resulting integral with a trigonometric identity.

 Contents

Notation

The following notations hold for all six trigonometric functions: sine (sin), cosine (cos), tangent (tan), cotangent (cot), secant (sec), and cosecant (csc). For brevity, only the sine case is given in the table.

sin2(x) "sine squared [of] x" the square of sine; sine to the second power sin2(x) = (sin(x))2
arcsin(x) "arcsine [of] x" the inverse function for sine arcsin(x) = y  if and only if  sin(y) = x and [itex]-{\pi \over 2} \le y \le {\pi \over 2}[itex]
(sin(x))−1 "sine [of] x, to the negative-one power" the reciprocal of sine; the multiplicative inverse of sine (sin(x))−1 = 1 / sin(x)

arcsin(x) can also be written sin−1(x)

Definitions

[itex] \tan (x) = \frac {\sin (x)} {\cos(x)} \qquad \operatorname{cot}(x) = \frac {\cos (x)} {\sin(x)} = \frac{1} {\tan(x)} [itex]
[itex] \operatorname{sec}(x) = \frac{1} {\cos(x)} \qquad \operatorname{csc}(x) = \frac{1} {\sin(x)} [itex]

For more information, including definitions based on the sides of a right triangle, see Trigonometric functions.

Periodicity, symmetry, and shifts

These are most easily shown from the unit circle:

[itex] \sin(x) = \sin(x + 2\pi)
\qquad \sin(x) = \cos\left(\frac{\pi}{2} - x\right)


[itex]

[itex] \cos(x) = \cos(x + 2\pi)
\qquad \cos(x) = \sin\left(\frac{\pi}{2}-x\right)


[itex]

[itex] \tan(x) = \tan(x + \pi)
\qquad \tan(x) = \cot\left(\frac{\pi}{2} - x\right)


[itex]

[itex] \sin(-x) = -\sin(x) \qquad\; \cos(-x) =\; \cos(x) [itex]
[itex] \tan(-x) = -\tan(x) \qquad \cot(-x) = -\cot(x) [itex]

For some purposes it is important to know that any linear combination of sine waves of the same period but different phase shifts is also a sine wave with the same period, but a different phase shift. In other words, we have

[itex]a\sin x+b\cos x=\sqrt{a^2+b^2}\cdot\sin(x+\varphi)[itex]

where

[itex]
 \varphi=
\left\{
\begin{matrix}
{\rm arctan}(b/a),&&\mbox{if }a\ge0; \;
\\
\pi+{\rm arctan}(b/a),&&\mbox{if }a<0. \;
\end{matrix}
\right. \;
[itex]


Pythagorean identities

These identities are based on the Pythagorean theorem. The first is sometimes simply called the Pythagorean trigonometric identity.

[itex] \sin^2(x) + \cos^2(x) = 1 \;[itex]
[itex] \tan^2(x) + 1 = \sec^2(x) \;[itex]
[itex] 1 + \cot^2(x) = \csc^2(x) \;[itex]

Note that the second equation is obtained from the first by dividing both sides by cos²(x). To get the third equation, divide the first by sin²(x) instead.

Angle sum and difference identities

These are also known as the addition and subtraction theorems or formulas. The quickest way to prove these is Euler's formula. The tangent formula follows from the other two. A geometric proof of the sin(x + y) identity is given at the end of this article.

[itex]\sin(x \pm y) = \sin(x) \cos(y) \pm \cos(x) \sin(y)\,[itex]
[itex]\cos(x \pm y) = \cos(x) \cos(y) \mp \sin(x) \sin(y)\,[itex]
[itex]\tan(x \pm y) = \frac{\tan(x) \pm \tan(y)}{1 \mp \tan(x)\tan(y)}[itex]
[itex]{\rm cis}(x+y)={\rm cis}(x)\,{\rm cis}(y)[itex]
[itex]{\rm cis}(x-y)={{\rm cis}(x)\over{\rm cis}(y)}[itex]

where

[itex]{\rm cis}(x)=e^{ix}=\cos(x)+i\sin(x)\, [itex]

and

[itex]i=\sqrt{-1}.\, [itex]

Double-angle formulas

These can be shown by substituting x = y in the addition theorems, and using the Pythagorean formula for the latter two. Or use de Moivre's formula with n = 2.

[itex]\sin(2x) = 2 \sin (x) \cos(x) \,[itex]
[itex]\cos(2x) = \cos^2(x) - \sin^2(x)
 = 2 \cos^2(x) - 1 = 1 - 2 \sin^2(x) \,[itex]

[itex] \tan(2x) = \frac{2 \tan (x)} {1 - \tan^2(x)} [itex]

The double-angle formulas can also be used to find Pythagorean triples. If (a, b, c) are the lengths of the sides of a right triangle, then (a2 − b2, 2ab, c2) also form a right triangle, where angle B is the angle being doubled. If a2 − b2 is negative, take its opposite and use the supplement of B.

Multiple-angle formulas

If Tn is the nth Chebyshev polynomial then

[itex]\cos(nx)=T_n(\cos(x)). \,[itex]
[itex]\cos(nx)+i\sin(nx)=(\cos(x)+i\sin(x))^n \,[itex]

The Dirichlet kernel Dn(x) is the function occurring on both sides of the next identity:

[itex]1+2\cos(x)+2\cos(2x)+2\cos(3x)+\cdots+2\cos(nx) \;[itex]
[itex] = \frac{ \sin\left(\left(n+\frac{1}{2}\right)x\right) }
               { \sin(x/2) } \;[itex]


The convolution of any integrable function of period 2π with the Dirichlet kernel coincides with the function's nth-degree Fourier approximation. The same holds for any measure or generalized function.

Power-reduction formulas

Solve the second and third versions of the cosine double-angle formula for cos2(x) and sin2(x), respectively.

[itex]\cos^2(x) = {1 + \cos(2x) \over 2}[itex]
[itex]\sin^2(x) = {1 - \cos(2x) \over 2}[itex]
[itex]\sin^2(x) \cos^2(x) = {1 - \cos(4x) \over 8}[itex]

Half-angle formulas

Sometimes the formulas in the previous section are called half-angle formulas. To see why, substitute x/2 for x in the power reduction formulas, then solve for cos(x/2) and sin(x/2) to get:

[itex]\cos\left(\frac{x}{2}\right) = \pm\, \sqrt{\frac{1 + \cos(x)}{2}}[itex]
[itex]\sin\left(\frac{x}{2}\right) = \pm\, \sqrt{\frac{1 - \cos(x)}{2}}[itex]

These may also be called the half-angle formulas. Then

[itex] \tan\left(\frac{x}{2}\right) = {\sin (x/2) \over \cos (x/2)} = \pm\, \sqrt{1 - \cos x \over 1 + \cos x}. \qquad \qquad (1) [itex]

Multiply both numerator and denominator inside the radical by 1 + cos x, then simplify (using a Pythagorean identity):

[itex] \tan\left(\frac{x}{2}\right) = \pm\, \sqrt{(1 - \cos x) (1 + \cos x) \over (1 + \cos x) (1 + \cos x)} = \pm\, \sqrt{1 - \cos^2 x \over (1 + \cos x)^2} [itex]
[itex] = {\sin x \over 1 + \cos x}. [itex]

Likewise, multiplying both numerator and denominator inside the radical — in equation (1) — by
1 − cos x, then simplifying:

[itex] \tan\left(\frac{x}{2}\right) = \pm\, \sqrt{(1 - \cos x) (1 - \cos x) \over (1 + \cos x) (1 - \cos x)} = \pm\, \sqrt{(1 - \cos x)^2 \over (1 - \cos^2 x)} [itex]
[itex] = {1 - \cos x \over \sin x}. [itex]

Thus, the pair of half-angle formulas for the tangent are:

[itex]\tan\left(\frac{x}{2}\right) = \frac{\sin(x)}{1 + \cos(x)} = \frac{1-\cos(x)}{\sin(x)}.[itex]

If we set

[itex]t = \tan\left(\frac{x}{2}\right),[itex]

then

 [itex]\sin(x) = \frac{2t}{1 + t^2}[itex] and [itex]\cos(x) = \frac{1 - t^2}{1 + t^2}[itex] and [itex]e^{i x} = \frac{1 + i t}{1 - i t}.[itex]

This substitution of t for tan(x/2), with the consequent replacement of sin(x) by 2t/(1 + t2) and cos(x) by (1 − t2)/(1 + t2) is useful in calculus for converting rational functions in sin(x) and cos(x) to functions of t in order to find their antiderivatives. For more information see tangent half-angle formula.

Product-to-sum identities

These can be proven by expanding their right-hand sides using the addition theorems.

[itex]\sin\left (x\right ) \sin\left (y\right ) = {\cos\left (x - y\right ) - \cos\left (x + y\right ) \over 2} \;[itex]
[itex]\sin\left (x\right ) \cos\left (y\right ) = {\sin\left (x + y\right ) + \sin\left (x - y\right ) \over 2} \;[itex]
[itex]\cos\left (x\right ) \cos\left (y\right ) = {\cos\left (x + y\right ) + \cos\left (x - y\right ) \over 2} \;[itex]
[itex]\cos\left (x\right ) \sin\left (y \right ) = \frac{\sin\left (x + y\right ) - \sin\left (x - y\right )}{2}\;[itex]

Sum-to-product identities

Replace x by (x + y) / 2 and y by (xy) / 2 in the product-to-sum formulas.

[itex]\sin(x) + \sin(y) = 2 \sin\left( \frac{x + y}{2} \right) \cos\left( \frac{x - y}{2} \right) \;[itex]
[itex]\cos(x) + \cos(y) = 2 \cos\left( \frac{x + y}{2} \right) \cos\left( \frac{x - y}{2} \right) \;[itex]

Inverse trigonometric functions

[itex] \arcsin(x)+\arccos(x)=\pi/2\;[itex]
[itex] \arctan(x)+\arccot(x)=\pi/2.\;[itex]
[itex]\arctan(x)+\arctan(1/x)=\left\{\begin{matrix} \pi/2, & \mbox{if }x > 0 \\ -\pi/2, & \mbox{if }x < 0 \end{matrix}\right..[itex]
[itex]\arctan(x)+\arctan(y)=\arctan\left(\frac{x+y}{1-xy}\right) \;[itex]
[itex]\sin(\arccos(x))=\sqrt{1-x^2} \,[itex]
[itex]\cos(\arcsin(x))=\sqrt{1-x^2} \,[itex]
[itex]\sin(\arctan(x))=\frac{x}{\sqrt{1+x^2}}[itex]
[itex]\cos(\arctan(x))=\frac{1}{\sqrt{1+x^2}}[itex]

Every trigonometric function can be related directly to every other trigonometric function. Such relations can be expressed by means of inverse trigonometric functions as follows: let φ and ψ represent a pair of trigonometric functions, and let arcψ be the inverse of ψ, such that ψ(arcψ(x))=x. Then φ(arcψ(x)) can be expressed as an algebraic formula in terms of x. Such formulas are shown in the table below: φ can be made equal to the head of one of the rows, and ψ can be equated to the head of a column:

 sin cos tan csc sec cot φ / ψ sin cos tan csc sec cot [itex]x\ [itex] [itex] \sqrt{1 - x^2} [itex] [itex] {x \over \sqrt{1 + x^2}} [itex] [itex] {1 \over x} [itex] [itex] {\sqrt{x^2 - 1} \over x} [itex] [itex] {1 \over \sqrt{1 + x^2}} [itex] [itex] \sqrt{1 - x^2} [itex] [itex]x\ [itex] [itex] {1 \over \sqrt{1 + x^2}} [itex] [itex] {\sqrt{x^2 - 1} \over x} [itex] [itex] {1 \over x} [itex] [itex] {x \over \sqrt{1 + x^2}} [itex] [itex] {x \over \sqrt{1 - x^2}} [itex] [itex] {\sqrt{1 - x^2} \over x} [itex] [itex]x\ [itex] [itex] {1 \over \sqrt{x^2 - 1}} [itex] [itex] \sqrt{x^2 - 1} [itex] [itex] {1 \over x} [itex] [itex] {1 \over x} [itex] [itex] {1 \over \sqrt{1 - x^2}} [itex] [itex] {\sqrt{1 + x^2} \over x} [itex] [itex]x\ [itex] [itex] {x \over \sqrt{x^2 - 1}} [itex] [itex] \sqrt{1 + x^2} [itex] [itex] {1 \over \sqrt{1 - x^2}} [itex] [itex] {1 \over x} [itex] [itex] \sqrt{1 + x^2} [itex] [itex] {x \over \sqrt{x^2 - 1}} [itex] [itex]x\ [itex] [itex] {\sqrt{1 + x^2} \over x} [itex] [itex] {\sqrt{1 - x^2} \over x} [itex] [itex] {x \over \sqrt{1 - x^2}} [itex] [itex] {1 \over x} [itex] [itex] \sqrt{x^2 - 1} [itex] [itex] {1 \over \sqrt{x^2 - 1}} [itex] [itex]x\ [itex]

One procedure that can be used to obtain the elements of this table is as follows:
Given trigonometric functions φ and ψ, what is φ(arcψ(x)) equal to?

1. Find an equation that relates φ(u) and ψ(u) to each other:
[itex] f(\varphi(u), \psi(u)) = 0 \ [itex]
2. Let u = arc ψ(x), so that:
[itex] f(\varphi({\rm arc}\psi(x)),\psi({\rm arc}\psi(x)) = 0 \ [itex]
[itex] f(\varphi({\rm arc}\psi(x)),x) = 0 \ [itex]
3. Solve the last equation for φ(arcψ(x)).

Example. What is cot(arccsc(x)) equal to? First, find an equation which relations the functions cot and csc to each other, such as

[itex] \cot^2 u + 1 = \csc^2 u \ [itex].

Second, let u = arccsc(x):

[itex] \cot^2(\arccsc(x)) + 1 = \csc^2(\arccsc(x)) \ [itex],
[itex] \cot^2(\arccsc(x)) + 1 = x^2 \ [itex].

Third, solve this equation for cot(arccsc(x)):

[itex] \cot^2(\arccsc(x)) = x^2 - 1, \ [itex]
[itex] \cot(\arccsc(x)) = \pm\sqrt{x^2 - 1}, [itex]

and this is the formula which shows up in the sixth row and fourth column of the table.

Exponential forms

[itex]\cos(x) = \frac{e^{ix} + e^{-ix}}{2} \;[itex]
[itex]\sin(x) = \frac{e^{ix} - e^{-ix}}{2i} \;[itex]

where [itex] i^{2}=-1.\,[itex]

Infinite product formulas

For applications to special functions, the following infinite product formulas for trigonometric functions are useful:

[itex]\sin x = x \prod_{n = 1}^\infty\left(1 - \frac{x^2}{\pi^2 n^2}\right)[itex]
[itex]\sinh x = x \prod_{n = 1}^\infty\left(1 + \frac{x^2}{\pi^2 n^2}\right)[itex]
[itex]\cos x = \prod_{n = 1}^\infty\left(1 - \frac{x^2}{\pi^2(n - \frac{1}{2})^2}\right)[itex]
[itex]\cosh x = \prod_{n = 1}^\infty\left(1 + \frac{x^2}{\pi^2(n - \frac{1}{2})^2}\right)[itex]
[itex]\frac{\sin x}{x} = \prod_{n = 1}^\infty\cos\left(\frac{x}{2^n}\right)[itex]

The Gudermannian function

The Gudermannian function relates the circular and hyperbolic trigonometric functions without resorting to complex numbers -- see that article for details.

Identities without variables

Richard Feynman is reputed to have learned as a boy, and always remembered, the following curious identity:

[itex]\cos 20^\circ\cdot\cos 40^\circ\cdot\cos 80^\circ=\frac{1}{8}.[itex]

However, this is a special case of an identity that contains one variable:

[itex]\prod_{j=0}^{k-1}\cos(2^j x)=\frac{\sin(2^k x)}{2^k\sin(x)}.[itex]

The following are perhaps not as readily generalized to identities containing variables:

[itex]\cos 36^\circ+\cos 108^\circ=\frac{1}{2}[itex]
[itex]\cos 24^\circ+\cos 48^\circ+\cos 96^\circ+\cos 168^\circ=\frac{1}{2}.[itex]

Degree measure ceases to be more felicitous than radian measure when we consider this identity with 21 in the denominators:

[itex] \cos\left( \frac{2\pi}{21}\right)
 \,+\, \cos\left(2\cdot\frac{2\pi}{21}\right)
\,+\, \cos\left(4\cdot\frac{2\pi}{21}\right)[itex]

[itex]
 \,+\, \cos\left( 5\cdot\frac{2\pi}{21}\right)
\,+\, \cos\left( 8\cdot\frac{2\pi}{21}\right)
\,+\, \cos\left(10\cdot\frac{2\pi}{21}\right)=\frac{1}{2}.[itex]


The factors 1, 2, 4, 5, 8, 10 may start to make the pattern clear: they are those integers less than 21/2 that 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 Mbius 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.

An efficient way to compute π is based on the following identity without variables, due to Machin:

[itex]\frac{\pi}{4} = 4 \arctan\frac{1}{5} - \arctan\frac{1}{239}[itex]

or, alternatively, by using Euler's formula:

[itex]\frac{\pi}{4} = 5 \arctan\frac{1}{7} + 2 \arctan\frac{3}{79}.[itex]

Under this heading, there are also "special values" of trigonometric functions, including the ones that every student of trigonometry learns:

[itex]\sin 0=0=\cos 90^\circ,\,[itex]
[itex]\sin 30^\circ=1/2=\cos 60^\circ,\,[itex]
[itex]\sin 45^\circ=\sqrt{2}/2=\cos 45^\circ,\,[itex]
[itex]\sin 60^\circ=\sqrt{3}/2=\cos 30^\circ,\,[itex]
[itex]\sin 90^\circ=1=\cos 0.\,[itex]

Some are less well-known:

[itex]\cos 36^\circ=\cos(\pi/5)={1+\sqrt{5} \over 4}\,[itex]

(this one is related to the golden ratio).

[itex]\sin{\frac{\pi}{7}}=\frac{\sqrt{7}}{6}-

\frac{\sqrt{7}}{189} \sum_{j=0}^{\infty} \frac{(3j+1)!}{189^j j!\,(2j+2)!} \![itex]

[itex]\sin{\frac{\pi}{18}}=

\frac{1}{6} \sum_{j=0}^{\infty} \frac{(3j)!}{27^j j!\,(2j+1)!} \![itex]

Calculus

In calculus the relations stated below require angles to be measured in radians; the relations would become more complicated if angles were measured in another unit such as degrees. If the trigonometric functions are defined in terms of geometry, then their derivatives can be found by verifying two limits. The first is:

[itex]\lim_{x\rightarrow 0}\frac{\sin(x)}{x}=1,[itex]

verified using the unit circle and squeeze theorem. It may be tempting to propose to use L'Hpital's rule to establish this limit. However, if one uses this limit in order to prove that the derivative of the sine is the cosine, and then uses the fact that the derivative of the sine is the cosine in applying L'Hpital's rule, one is reasoning circularly—a logical fallacy. The second limit is:

[itex]\lim_{x\rightarrow 0}\frac{1-\cos(x)}{x}=0,[itex]

verified using the identity tan(x/2) = (1 − cos(x))/sin(x). Having established these two limits, one can use the limit definition of the derivative and the addition theorems to show that sin′(x) = cos(x) and cos′(x) = −sin(x). If the sine and cosine functions are defined by their Taylor series, then the derivatives can be found by differentiating the power series term-by-term.

[itex]{d \over dx}\sin(x) = \cos(x)[itex]

The rest of the trigonometric functions can be differentiated using the above identities and the rules of differentiation. We have:

[itex]{d \over dx}\cos(x) = -\sin(x)[itex]
[itex]{d \over dx}\tan(x) = \sec^2(x)[itex]
[itex]{d \over dx}\cot(x) = -\csc^2(x) [itex]
[itex]{d \over dx}\sec(x) = \sec(x) \tan(x)[itex]
[itex]{d \over dx}\csc(x) = - \csc(x)\cot(x)[itex]
[itex]{d \over dx}\arcsin(x)=\frac{1}{\sqrt{1-x^2}}[itex]
[itex]{d \over dx}\arctan(x)=\frac{1}{1+x^2}[itex]

The integral identities can be found in Wikipedia's table of integrals.

Geometric proofs

sin(x + y) = sin(x) cos(y) + cos(x) sin(y)

In the figure the angle x is part of right angled triangle ABC, and the angle y part of right angled triangle ACD. Then construct DG perpendicular to AB and construct CE parallel to AB.

Angle x = Angle BAC = Angle ACE = Angle CDE.

EG = BC.

[itex] \sin(x + y) \,[itex]
[itex] = DG / AD \,[itex]
[itex] = (EG + DE) / AD \,[itex]
[itex] = (BC + DE) / AD \,[itex]
[itex] = \sin( x ) \cos( y ) + \cos( x ) \sin( y ). \,[itex]

cos(x + y) = cos(x) cos(y) − sin(x) sin(y)

Using the above figure:

[itex] \cos(x + y) \,[itex]
[itex] = AG / AD \,[itex]
[itex] = (AB - GB) / AD \,[itex]
[itex] = (AB - EC) / AD \,[itex]
[itex] = \cos( x ) \cos( y ) - \sin( x ) \sin( y ). \,[itex]

• Art and Cultures
• Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
• Space and Astronomy