List of trigonometric identities: Difference between revisions

Content deleted Content added
Icairns (talk | contribs)
Notation: fix links
it's probably clearer if we wrap more prose around the Sum-to-product section as well, and use latex to align the = signs. While we're at it let's use inline 1/2 fractions to save some vertical space.
 
Line 1:
{{Short description|none}}
In [[mathematics]], '''trigonometric identities''' are equalities that involve [[trigonometric function]]s that are true for all values of the occurring variables. These [[identity (mathematics)|identities]] are useful whenever expressions involving trigonometric functions need to be simplified. An important application is the [[integral|integration]] of non-trigonometric functions: a common trick involves first using the [[Trigonometric substitution|substitution rule with a trigonometric function]], and then simplifying the resulting integral with a trigonometric identity.
{{Trigonometry}}
In [[trigonometry]], '''trigonometric identities''' are [[Equality (mathematics)|equalities]] that involve [[trigonometric functions]] and are true for every value of the occurring [[Variable (mathematics)|variables]] for which both sides of the equality are defined. Geometrically, these are [[identity (mathematics)|identities]] involving certain functions of one or more [[angle]]s. They are distinct from [[Trigonometry#Triangle identities|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 [[integral|integration]] of non-trigonometric functions: a common technique involves first using the [[Trigonometric substitution|substitution rule with a trigonometric function]], and then simplifying the resulting integral with a trigonometric identity.
[[Image:Circle-trig6.svg|300px|right|thumb|All of the trigonometric functions of an angle θ can be constructed geometrically in terms of a unit circle centered at ''O''.]]
[[Image:Unit_circle_angles.svg|300px|thumb|right|The [[unit circle]]]]
 
== Pythagorean identities ==
==Notation==
{{Main|Pythagorean trigonometric identity}}
[[File:Trigonometric functions and their reciprocals on the unit circle.svg|class=skin-invert-image|thumb|400px|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 <math>1 + \cot^2\theta = \csc^2\theta</math>, and the red triangle shows that <math>\tan^2\theta + 1 = \sec^2\theta</math>.]]
 
The basic relationship between the [[sine and cosine]] is given by the Pythagorean identity:
To avoid the confusion caused by the ambiguity of <math>\,\sin^{-1} x</math>, the reciprocals and inverses of trigonometric functions are often displayed as in this table.
 
<math display="block">\sin^2\theta + \cos^2\theta = 1,</math>
{|class="wikitable" style="background-color:#FFFFFF"
 
!colspan="2"| Function
where <math>\sin^2 \theta</math> means <math>{(\sin \theta)}^2</math> and <math>\cos^2 \theta</math> means <math>{(\cos \theta)}^2.</math>
!colspan="2"| [[Inverse]]
 
!colspan="2"| [[Reciprocal]]
This can be viewed as a version of the [[Pythagorean theorem]], and follows from the equation <math>x^2 + y^2 = 1</math> for the [[unit circle]]. This equation can be solved for either the sine or the cosine:
!colspan="2"| Inverse Reciprocal
 
<math display=block>\begin{align}
\sin\theta &= \pm \sqrt{1 - \cos^2\theta}, \\
\cos\theta &= \pm \sqrt{1 - \sin^2\theta}.
\end{align}</math>
 
where the sign depends on the [[Quadrant (plane geometry)|quadrant]] of <math>\theta.</math>
 
Dividing this identity by <math>\sin^2 \theta</math>, <math>\cos^2 \theta</math>, or both yields the following identities:
<math display=block>\begin{align}
&1 + \cot^2\theta = \csc^2\theta \\
&1 + \tan^2\theta = \sec^2\theta \\
&\sec^2\theta + \csc^2\theta = \sec^2\theta\csc^2\theta
\end{align}</math>
 
Using these identities, it is possible to express any trigonometric function in terms of any other ([[up to]] a plus or minus sign):
 
{| class="wikitable" style="text-align:center"
|+ Each trigonometric function in terms of each of the other five.<ref name="AS4345">{{AS ref|4, eqn 4.3.45|73}}</ref>
! scope=row | in terms of
! scope="col"|<math>\sin \theta</math>
! scope="col" |<math>\csc \theta</math>
! scope="col"|<math>\cos \theta</math>
! scope="col" |<math>\sec \theta</math>
! scope="col"|<math>\tan \theta</math>
! scope="col"|<math>\cot \theta</math>
|-
! scope=row | <math>\sin \theta =</math>
| Sine
| <math>\,\sin \theta</math>
| <math>\frac{1}{\csc \theta}</math>
| Arcsine
| <math>\,pm\arcsinsqrt{1 - \cos^2 \theta}</math>
| <math>\pm\frac{\sqrt{\sec^2 \theta - 1}}{\sec \theta}</math>
| Cosecant
| <math>\,pm\cscfrac{\tan \theta}{\sqrt{1 + \tan^2 \theta}}</math>
| <math>\pm\frac{1}{\sqrt{1 + \cot^2 \theta}}</math>
| Arccosecant
| <math>\,\arccsc</math>
|-
! scope=row | <math>\csc \theta =</math>
| Cosine
| <math>\,frac{1}{\cossin \theta}</math>
| <math>\csc \theta</math>
| Arccosine
| <math>\,pm\arccosfrac{1}{\sqrt{1 - \cos^2 \theta}}</math>
| <math>\pm\frac{\sec \theta}{\sqrt{\sec^2 \theta - 1}}</math>
| Secant
| <math>\,pm\secfrac{\sqrt{1 + \tan^2 \theta}}{\tan \theta}</math>
| <math>\pm\sqrt{1 + \cot^2 \theta}</math>
| Arcsecant
| <math>\,\arcsec</math>
|-
! scope=row | <math>\cos \theta =</math>
| Tangent
| <math>\,pm\tansqrt{1 - \sin^2\theta}</math>
| <math>\pm\frac{\sqrt{\csc^2 \theta - 1}}{\csc \theta}</math>
| Arctangent
| <math>\,cos \arctantheta</math>
| <math>\frac{1}{\sec \theta}</math>
| Cotangent
| <math>\,pm\cotfrac{1}{\sqrt{1 + \tan^2 \theta}}</math>
| <math>\pm\frac{\cot \theta}{\sqrt{1 + \cot^2 \theta}}</math>
| Arccotangent
| <math>\,\arccot</math>
|}
 
Different angular measures can be appropriate in different situations. This table shows some of the more common systems.
 
{|class="wikitable" style="background-color: #FFFFFF; text-align: center;"
|-
! scope=row | <math>\sec \theta =</math>
! [[Degree (angle)|Degree]]s
| <math>\pm\frac{1}{\sqrt{1 - \sin^2 \theta}}</math>
| 30
| <math>\pm\frac{\csc \theta}{\sqrt{\csc^2 \theta - 1}}</math>
| 45
| <math>\frac{1}{\cos \theta}</math>
| 60
| <math>\sec \theta</math>
| 90
| <math>\pm\sqrt{1 + \tan^2 \theta}</math>
| 120
| <math>\pm\frac{\sqrt{1 + \cot^2 \theta}}{\cot \theta}</math>
| 180
| 270
! 360
|-
! scope=row | <math>\tan \theta =</math>
! [[Radian]]s
| <math>\pi/6pm\frac{\sin \theta}{\sqrt{1 - \sin^2 \theta}}</math>
| <math>\pi/4pm\frac{1}{\sqrt{\csc^2 \theta - 1}}</math>
| <math>\pi/3pm\frac{\sqrt{1 - \cos^2 \theta}}{\cos \theta}</math>
| <math>\pi/pm\sqrt{\sec^2 \theta - 1}</math>
| <math>2\pi/3tan \theta</math>
| <math>\pifrac{1}{\cot \theta}</math>
| <math>3\pi/2</math>
! <math>2\pi</math>
|-
! scope=row | <math>\cot \theta =</math>
! [[Grad]]s
| <math>\pm\frac{\sqrt{1 - \sin^2 \theta}}{\sin \theta}</math>
| 33 &#8531;
| <math>\pm\sqrt{\csc^2 \theta - 1}</math>
| 50
| <math>\pm\frac{\cos \theta}{\sqrt{1 - \cos^2 \theta}}</math>
| 66 &#8532;
| <math>\pm\frac{1}{\sqrt{\sec^2 \theta - 1}}</math>
| 100
| <math>\frac{1}{\tan \theta}</math>
| 133 &#8531;
| <math>\cot \theta</math>
| 200
| 300
! 400
|}
 
==Basic Relationships==
From a right angled triangle, the basic definitions for sine, cosine and tangent, and [[Pythagorean theorem|pythagoras' theorem]], it is possible to extrapolate the following sets of common relationships.
 
== Reflections, shifts, and periodicity ==
{|class="wikitable" style="background-color:#FFFFFF"
By examining the unit circle, one can establish the following properties of the trigonometric functions.
! From Pythagoras
! From Definitions
|-
|<math>\begin{align}
\sin^2 \theta + \cos^2 \theta &= 1 \\
\sec^2 \theta - \tan^2 \theta &= 1 \\
\csc^2 \theta - \cot^2 \theta &= 1
\end{align}</math>
|<math>\begin{align}
\tan \theta &= \frac{\sin \theta}{\cos \theta} \\
\cot \theta &= \frac{\cos \theta}{\sin \theta} \\
\end{align}
</math>
|}
 
=== Reflections ===
==Symmetry, Shifts and Periodicity==
[[File:Unit Circle - symmetry.svg|class=skin-invert-image|thumb|upright=1.5|alt=Unit circle with a swept angle theta plotted at coordinates (a,b). As the angle is reflected in increments of one-quarter pi (45 degrees), the coordinates are transformed. For a transformation of one-quarter pi (45 degrees, or 90 – theta), the coordinates are transformed to (b,a). Another increment of the angle of reflection by one-quarter pi (90 degrees total, or 180 – theta) transforms the coordinates to (-a,b). A third increment of the angle of reflection by another one-quarter pi (135 degrees total, or 270 – theta) transforms the coordinates to (-b,-a). A final increment of one-quarter pi (180 degrees total, or 360 – theta) transforms the coordinates to (a,-b).|Transformation of coordinates (''a'',''b'') when shifting the reflection angle <math>\alpha</math> in increments of <math>\frac{\pi}{4}</math>]]
By examining the unit circle, the following properties of the trigonometric functions can be established.
When the direction of a [[Euclidean vector]] is represented by an angle <math>\theta,</math> this is the angle determined by the free vector (starting at the origin) and the positive <math>x</math>-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 <math>x</math>-axis. If a line (vector) with direction <math>\theta</math> is reflected about a line with direction <math>\alpha,</math> then the direction angle <math>\theta^{\prime}</math> of this reflected line (vector) has the value
<math display="block">\theta^{\prime} = 2 \alpha - \theta.</math>
 
The values of the trigonometric functions of these angles <math>\theta,\;\theta^{\prime}</math> for specific angles <math>\alpha</math> satisfy simple identities: either they are equal, or have opposite signs, or employ the complementary trigonometric function. These are also known as {{em|reduction formulae}}.<ref>{{harvnb|Selby|1970|loc=p. 188}}</ref>
===Symmetry===
 
When the trigonometric functions are reflected from certain values of <math>\theta</math>, The result is often one of the other trigonometric functions. This leads to the following identities:
{|class="wikitable" style="background-color: #FFFFFF"
! <math>\theta</math> reflected in <math>\alpha = 0</math><ref>Abramowitz and Stegun, p.&nbsp;72, 4.3.13–15</ref><br /><span style="font-weight:normal">[[even and odd functions|odd/even]] identities</span>
! Reflected in <math>\theta=0</math>
! Reflected<math>\theta</math> reflected in <math>\thetaalpha = \frac{\pi/2}{4}</math>
! Reflected<math>\theta</math> reflected in <math>\thetaalpha = \frac{\pi}{2}</math>
! <math>\theta</math> reflected in <math>\alpha = \frac{3\pi}{4}</math>
! <math>\theta</math> reflected in <math>\alpha = \pi</math><br /><span style="font-weight:normal">compare to <math>\alpha = 0</math></span>
|-
|<math>\sin(-\theta) = -\sin \theta</math>
|<math>\sin\left(\tfrac{\pi}{2} - \theta\right) =\cos \theta</math>
|<math>\sin(\pi - \theta) = +\sin \theta</math>
|<math>\sin\left(\tfrac{3\pi}{2} - \theta\right) =-\cos \theta</math>
|<math>\sin(2\pi - \theta) = -\sin(\theta) = \sin(-\theta)</math>
|-
|<math>\cos(-\theta) =+ \cos \theta</math>
 
|<math>\cos\left(\tfrac{\pi}{2} - \theta\right) = \sin \theta</math>
|<math>
|<math>\cos(\pi - \theta) = -\cos \theta</math>
\begin{align}
|<math>\sincos\left(0\tfrac{3\pi}{2} - \theta\right) &= -\sin \theta \\</math>
|<math>\cos(02\pi - \theta) &= +\cos (\theta) = \cos(-\theta)</math>
|-
\tan(0-\theta) &= -\tan \theta \\
|<math>\csctan(0-\theta) &= -\csctan \theta \\</math>
|<math>\sectan\left(0\tfrac{\pi}{2} - \theta\right) &= +\seccot \theta \\</math>
|<math>\cottan(0\pi - \theta) &= -\cottan \theta</math>
|<math>\tan\left(\tfrac{3\pi}{2} - \theta\right) = +\cot \theta</math>
\end{align}
|<math>\tan(2\pi - \theta) = -\tan(\theta) = \tan(-\theta)</math>
</math>
|-
|<math>
|<math>\csc(-\theta) = -\csc \theta</math>
\begin{align}
|<math>\sincsc\left(\tfrac{\pi}{2} - \theta\right) &= +\cossec \theta \\</math>
|<math>\coscsc(\tfrac{\pi}{2} - \theta) &=+ +\sincsc \theta \\</math>
|<math>\tancsc\left(\tfrac{3\pi}{2} - \theta\right) &= +-\cotsec \theta \\</math>
|<math>\csc(\tfrac{2\pi}{2} - \theta) &= +-\sec csc(\theta) = \csc(-\theta)</math>
|-
\sec(\tfrac{\pi}{2} - \theta) &= +\csc \theta \\
|<math>\cotsec(\tfrac{\pi}{2} - \theta) &= +\tansec \theta</math>
|<math>\sec\left(\tfrac{\pi}{2} - \theta\right) = \csc \theta</math>
\end{align}
|<math>\sec(\pi - \theta) = -\sec \theta</math>
</math>
|<math>\sec\left(\tfrac{3\pi}{2} - \theta\right) = -\csc \theta</math>
|<math>
|<math>\sec(2\pi - \theta) = +\sec(\theta) = \sec(-\theta)</math>
\begin{align}
|-
\sin(\pi - \theta) &= +\sin \theta \\
|<math>\coscot(\pi - \theta) &= -\coscot \theta \\</math>
|<math>\tancot\left(\tfrac{\pi}{2} - \theta\right) &= -\tan \theta \\</math>
|<math>\csccot(\pi - \theta) &= +-\csccot \theta \\</math>
|<math>\seccot\left(\tfrac{3\pi}{2} - \theta\right) &= -+\sectan \theta \\</math>
|<math>\cot(2\pi - \theta) &= -\cot (\theta) = \cot(-\theta)</math>
\end{align}
</math>
|}
===Shifts and Periodicity===
 
=== Shifts and periodicity ===
By shifting the function round by certain angles, it is often possible to find different trigonometric functions that express the result more simply. Some examples of this are given shown by shifting functions round by π/2, π and 2π radians. Because the periods of these functions are either π or 2π, there are cases where the new function is exactly the same as the old function without the shift.
[[File:Unit Circle - shifts.svg|class=skin-invert-image|thumb|upright=1.5|alt=Unit circle with a swept angle theta plotted at coordinates (a,b). As the swept angle is incremented by one-half pi (90 degrees), the coordinates are transformed to (-b,a). Another increment of one-half pi (180 degrees total) transforms the coordinates to (-a,-b). A final increment of one-half pi (270 degrees total) transforms the coordinates to (b,a).|Transformation of coordinates (''a'',''b'') when shifting the angle <math>\theta</math> in increments of <math>\frac{\pi}{2}</math>]]
 
{|class="wikitable" style="background-color: #FFFFFF"
!Shift by π/2one quarter period
!Shift by πone <br/>half Period for tan and cotperiod
!Shift by full periods<br/ref>Abramowitz Periodand for sinStegun, cosp.&nbsp;72, csc and sec4.3.7–9</ref>
!Period
|-
|<math>\sin(\theta \pm \tfrac{\pi}{2}) = \pm\cos \theta</math>
|<math>\sin(\theta + \pi) = -\sin \theta</math>
|<math>\sin(\theta + k\cdot 2\pi) = +\sin \theta</math>
|style="text-align: center;"|<math>2\pi</math>
|-
|<math>\cos(\theta \pm \tfrac{\pi}{2}) = \mp\sin \theta</math>
|<math>
|<math>\cos(\theta + \pi) = -\cos \theta</math>
\begin{align}
|<math>\sincos(\theta + k\tfrac{cdot 2\pi}{2}) &= +\cos \theta \\</math>
|style="text-align: center;"|<math>2\pi</math>
\cos(\theta + \tfrac{\pi}{2}) &= -\sin \theta \\
|-
\tan(\theta + \tfrac{\pi}{2}) &= -\cot \theta \\
|<math>\csc(\theta +\pm \tfrac{\pi}{2}) &= +\pm\sec \theta \\</math>
|<math>\seccsc(\theta + \tfrac{\pi}{2}) &= -\csc \theta \\</math>
|<math>\cotcsc(\theta + k\tfrac{cdot 2\pi}{2}) &= -+\tancsc \theta</math>
|style="text-align: center;"|<math>2\pi</math>
\end{align}
|-
</math>
|<math>\sec(\theta \pm \tfrac{\pi}{2}) = \mp\csc \theta</math>
|<math>
|<math>\sec(\theta + \pi) = -\sec \theta</math>
\begin{align}
|<math>\sinsec(\theta + k\cdot 2\pi) &= -+\sinsec \theta \\</math>
|style="text-align: center;"|<math>2\pi</math>
\cos(\theta + \pi) &= -\cos \theta \\
|-
\tan(\theta + \pi) &= +\tan \theta \\
|<math>\csctan(\theta +\pm \tfrac{\pi}{4}) &= - \tfrac{\csctan \theta \pm 1}{1\mp \tan \theta}</math>
|<math>\sectan(\theta + \tfrac{\pi}{2}) &= -\seccot \theta \\</math>
|<math>\cottan(\theta + k\cdot \pi) &= +\cottan \theta \\</math>
|style="text-align: center;"|<math>\pi</math>
\end{align}
|-
</math>
|<math>\cot(\theta \pm \tfrac{\pi}{4}) = \tfrac{\cot \theta \mp 1}{1\pm \cot \theta}</math>
|<math>
|<math>\cot(\theta + \tfrac{\pi}{2}) = -\tan\theta</math>
\begin{align}
|<math>\sincot(\theta + 2k\cdot \pi) &= +\sincot \theta \\</math>
|style="text-align: center;"|<math>\pi</math>
\cos(\theta + 2\pi) &= +\cos \theta \\
\tan(\theta + 2\pi) &= +\tan \theta \\
\csc(\theta + 2\pi) &= +\csc \theta \\
\sec(\theta + 2\pi) &= +\sec \theta \\
\cot(\theta + 2\pi) &= +\cot \theta
\end{align}
</math>
|}
 
==Linear= combinationsSigns ===
 
The sign of trigonometric functions depends on quadrant of the angle. If <math>{-\pi} < \theta \leq \pi</math> and {{math|sgn}} is the [[sign function]],
For some purposes it is important to know that any linear combination of sine waves of the same period but different [[phase (waves)|phase shifts]] is also a sine wave with the same period, but a different phase shift. In the case of a linear combination of a sine and cosine wave, we have
 
<math display=block>\begin{align}
:<math>a\sin x+b\cos x=\sqrt{a^2+b^2}\cdot\sin(x+\varphi)\,</math>
\sgn(\sin \theta) = \sgn(\csc \theta) &= \begin{cases}
 
+1 & \text{if}\ \ 0 < \theta < \pi \\
where
-1 & \text{if}\ \ {-\pi} < \theta < 0 \\
 
0 & \text{if}\ \ \theta \in \{0, \pi \}
:<math>
\end{cases}
\varphi=
\\[5mu]
\left\{
\sgn(\cos \theta) = \sgn(\sec \theta) &= \begin{cases}
\begin{matrix}
+1 & \text{if}\ \ {-\tfrac12\pi} < \theta < \tfrac12\pi \\
{\rm arctan}(b/a),&&\mbox{if }a\ge0; \;
-1 & \text{if}\ \ {-\pi} < \theta < -\tfrac12\pi \ \ \text{or}\ \ \tfrac12\pi < \theta < \pi\\
\\
0 & \text{if}\ \ \theta \in \bigl\{{-\tfrac12\pi}, \tfrac12\pi \bigr\}
\arctan(b/a) \pm \pi,&&\mbox{if }a<0. \;
\end{matrixcases}
\\[5mu]
\right. \;
\sgn(\tan \theta) = \sgn(\cot \theta) &= \begin{cases}
</math>
+1 & \text{if}\ \ {-\pi} < \theta < -\tfrac12\pi \ \ \text{or}\ \ 0 < \theta < \tfrac12\pi \\
 
-1 & \text{if}\ \ {-\tfrac12\pi} < \theta < 0 \ \ \text{or}\ \ \tfrac12\pi < \theta < \pi \\
More generally, for an arbitrary phase shift, we have
0 & \text{if}\ \ \theta \in \bigl\{{-\tfrac12\pi}, 0, \tfrac12\pi, \pi \bigr\}
 
\end{cases}
:<math>a\sin x+b\sin(x+\alpha)= c \sin(x+\beta)\,</math>
 
where
 
:<math>
c = \sqrt{a^2 + b^2 -2ab\cos \alpha},</math>
 
and
 
:<math>
\beta = {\rm arctan} \left(\frac{b\sin \alpha}{a + b\cos \alpha}\right).
</math>
 
*note: arcsin, arccos, arctan are all inverses.
 
==Pythagorean identities==
These identities are based on the [[Pythagorean theorem]]. The first is sometimes simply called the [[Pythagorean trigonometric identity]].
 
:<math>\begin{align}
& \sin^2(x) + \cos^2(x) = 1 \\
& \tan^2(x) + 1 = \sec^2(x) \\
& \cot^2(x) + 1 = \csc^2(x)
\end{align}</math>
 
The trigonometric functions are periodic with common period <math>2\pi,</math> so for values of {{mvar|θ}} outside the interval <math>({-\pi}, \pi],</math> they take repeating values (see {{slink|#Shifts and periodicity}} above).
The second equation is obtained from the first by dividing both sides by cos<sup>2</sup>(''x''). To get the third equation, divide the first by sin<sup>2</sup>(''x'').
 
== Angle sum and difference identities ==
cos² x + sin² x is fundamentally defined as 1.
{{See also|Proofs of trigonometric identities#Angle sum identities|Small-angle approximation#Angle sum and difference}}
[[File:Angle sum.svg|thumb|Geometric construction to derive angle sum trigonometric identities]]
 
[[File:Diagram showing the angle difference trigonometry identities for sin(a-b) and cos(a-b).svg|class=skin-invert-image|thumb|350px|Diagram showing the angle difference identities for <math>\sin(\alpha - \beta)</math> and <math>\cos(\alpha - \beta)</math>]]
*Then divide everything by cosine and sine, in order to get the other identities.
 
These are also known as the {{em|angle addition and subtraction theorems}} (or {{em|formulae}}).
==Angle sum and difference identities==
<math display=block>\begin{align}
These are also known as the ''addition and subtraction theorems'' or ''formulæ''.
\sin(\alpha + \beta) &= \sin \alpha \cos \beta + \cos \alpha \sin \beta \\
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.
\sin(\alpha - \beta) &= \sin \alpha \cos \beta - \cos \alpha \sin \beta \\
 
:<math>\sincos(x \pmalpha y+ \beta) &= \sin(x)cos \alpha \cos(y) \pmbeta - \cos(x)sin \alpha \sin(y) \,</math>beta \\
\cos(\alpha - \beta) &= \cos \alpha \cos \beta + \sin \alpha \sin \beta
::(When "+" is on the left side, then "+" is on the right, and vice versa.)
 
:<math>\cos(x \pm y) = \cos(x) \cos(y) \mp \sin(x) \sin(y)\,</math>
::(When "+" is on the left side, then "-" is on the right, and vice versa.)
 
:<math>\tan(x \pm y) = \frac{\tan(x) \pm \tan(y)}{1 \mp \tan(x)\tan(y)}</math>
 
=== Tangents of sums of finitely many terms ===
 
Let ''x''<sub>''i''</sub> = tan(&theta;<sub>''i''</sub>&nbsp;), for ''i'' = 1,&nbsp;...,&nbsp;''n''. Let ''e''<sub>''k''</sub> be the ''k''th-degree [[elementary symmetric polynomial]] in the variables ''x''<sub>''i''</sub>, ''i''&nbsp;=&nbsp;1,&nbsp;...,&nbsp;''n'', ''k''&nbsp;=&nbsp;0,&nbsp;...,&nbsp;''n''. Then
 
: <math>\tan(\theta_1+\cdots+\theta_n) = \frac{e_1 - e_3 + e_5 -\cdots}{e_0 - e_2 + e_4 - \cdots}, </math>
 
the number of terms depending on ''n''.
 
For example,
 
:<math> \begin{align} \tan(\theta_1 + \theta_2 + \theta_3)
&{}= \frac{e_1 - e_3}{e_0 - e_2} = \frac{(x_1 + x_2 + x_3) \ - \ (x_1 x_2 x_3)}{
1 \ - \ (x_1 x_2 + x_1 x_3 + x_2 x_3)}, \\ \\
\tan(\theta_1 + \theta_2 + \theta_3 + \theta_4)
&{}= \frac{e_1 - e_3}{e_0 - e_2 + e_4} \\ \\
&{}= \frac{(x_1 + x_2 + x_3 + x_4) \ - \ (x_1 x_2 x_3 + x_1 x_2 x_4 + x_1 x_3 x_4 + x_2 x_3 x_4)}{
1 \ - \ (x_1 x_2 + x_1 x_3 + x_1 x_4 + x_2 x_3 + x_2 x_4 + x_3 x_4) \ + \ (x_1 x_2 x_3 x_4)},\end{align} </math>
 
and so on. The general case can be proved by [[mathematical induction]].
 
=== Sines and cosines of sums of infinitely many terms ===
 
: <math> \sin\left(\sum_{i=1}^\infty \theta_i\right)
=\sum_{\mathrm{odd}\ k \ge 1} (-1)^{(k-1)/2}
\sum_{ |A| = k }
\left(\prod_{i \in A} \sin\theta_i \prod_{i \not \in A} \cos\theta_i\right) </math>
 
: <math> \cos\left(\sum_{i=1}^\infty \theta_i\right)
=\sum_{\mathrm{even}\ k \ge 0} ~ (-1)^{k/2} ~~
\sum_{ |A| = k }
\left(\prod_{i \in A} \sin\theta_i \prod_{i \not \in A} \cos\theta_i\right) </math>
 
where "|''A''| = ''k''" means the index ''A'' runs through the set of all subsets of size ''k'' of the set {&nbsp;1,&nbsp;2,&nbsp;3,&nbsp;...&nbsp;}.
 
In these two identities an asymmetry appears that is not seen in the case of sums of finitely many terms: in each product, there are only finitely many sine factors and [[cofinite]]ly many cosine factors.
 
If only finitely many of the terms &theta;<sub>''i''</sub> are nonzero, then only finitely many of the terms on the right side will be nonzero because sine factors will vanish, and in each term, all but finitely many of the cosine factors will be unity.
 
==Double-angle formulae==
These can be shown by substituting ''x'' = ''y'' in the addition theorems, and using the Pythagorean formula. Or use [[de Moivre's formula]] with ''n'' = 2.
 
: <math>\sin(2x) = 2 \sin (x) \cos(x) \ = \frac{2 \tan(x)} {1 + \tan^2(x)} \, </math>
 
: <math>\cos(2x) = \cos^2(x) - \sin^2(x)
= 2 \cos^2(x) - 1 = 1 - 2 \sin^2(x) = \frac{1 - \tan^2(x)} {1 + \tan^2(x)} \, </math>
 
: <math> \tan(2x) = \frac{2 \tan (x)} {1 - \tan^2(x)}\, </math>
 
<!-- extra blank line between two fractions for legibility -->
 
: <math>\cot(2x) = \frac{\cot(x) - \tan(x)}{2}\,</math>
 
The double-angle formula can also be used to find [[Pythagorean triple]]s. If (''a'', ''b'', ''c'') are the lengths of the sides of a [[right triangle]], then (''a''<sup>2</sup>&nbsp;&minus;&nbsp;''b''<sup>2</sup>,&nbsp;2''ab'', ''c''<sup>2</sup>) also form a right triangle, where angle ''B'' is the angle being doubled. If ''a''<sup>2</sup>&nbsp;&minus;&nbsp;''b''<sup>2</sup> is negative, take its opposite and use the [[supplementary angles|supplement]] of 2''B'' in place of 2''B''.
 
==Triple-angle formulae==
 
:<math>\sin(3x)= 3 \sin(x)- 4 \sin^3(x) \,</math>
 
:<math>\cos(3x)= 4 \cos^3(x) - 3 \cos(x) \,</math>
 
:<math>\tan(3x)= \frac{3 \tan(x) - \tan^3(x)}{1 - 3 \tan^2(x)}</math>
 
==Multiple-angle formulae==
If ''T<sub>n</sub>'' is the ''n''th [[Chebyshev polynomials|Chebyshev polynomial]] then
:<math>\cos(nx)=T_n(\cos(x)). \,</math>
 
If ''S''<sub>''n''</sub> is the ''n''th [[spread polynomial]], then
 
:<math>\sin^2(n\theta) = S_n(\sin^2\theta).\,</math>
 
[[de Moivre's formula]]:
:<math>\cos(nx)+i\sin(nx)=(\cos(x)+i\sin(x))^n \,</math>
 
The '''[[Dirichlet kernel]]''' ''D<sub>n</sub>''(''x'') is the function occurring on both sides of the next identity:
 
:<math>1+2\cos(x)+2\cos(2x)+2\cos(3x)+\cdots+2\cos(nx) = \frac{ \sin\left(\left(n+\frac{1}{2}\right)x\right) }{ \sin(x/2) }. </math>
 
The [[convolution]] of any [[integrable function]] of period 2π with the Dirichlet kernel coincides with the function's ''n''th-degree Fourier approximation. The same holds for any [[Measure (mathematics)|measure]] or [[distribution (mathematics)|generalized function]].
 
==[Power-reduction formulae]==
Solve the second and third versions of the cosine double-angle formula for cos<sup>2</sup>(''x'') and sin<sup>2</sup>(''x''), respectively.
 
: <math>\sin^2(x) = {1 - \cos(2x) \over 2}</math>
 
: <math>\cos^2(x) = {1 + \cos(2x) \over 2}</math>
 
: <math>\sin^2(x) \cos^2(x) = {1 - \cos(4 x) \over 8}</math>
 
: <math>\sin^3(x) = \frac{3 \sin(x) - \sin(3 x)}{4}</math>
 
: <math>\cos^3(x) = \frac{3 \cos(x) + \cos(3 x)}{4}</math>
 
==Half-angle formula==
Sometimes the formulae in the previous section are called ''half-angle formulæ''. To see why, substitute ''x''/2 for ''x'' in the power reduction formulae, then solve for cos(''x''/2) and sin(''x''/2) to get:
 
:<math>\cos\left(\frac{x}{2}\right) = \pm\, \sqrt{\frac{1 + \cos(x)}{2}}</math>
 
:<math>\sin\left(\frac{x}{2}\right) = \pm\, \sqrt{\frac{1 - \cos(x)}{2}}</math>
 
These may also be called the ''half-angle formulae''. Then
 
:<math> \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) </math>
 
Multiply both numerator and denominator inside the radical by 1 + cos ''x'', then simplify (using a Pythagorean identity):
:<math> \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} </math>
::::<math> = {\sin x \over 1 + \cos x}. </math>
 
Likewise, multiplying both numerator and denominator inside the radical &mdash; in equation (1) &mdash; by <br> 1 &minus; cos ''x'', then simplifying:
:<math> \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)} </math>
::::<math> = {1 - \cos x \over \sin x}. </math>
 
Thus, the pair of half-angle formulæ for the tangent are:
 
:<math>\tan\left(\frac{x}{2}\right) = \frac{\sin(x)}{1 + \cos(x)} = \frac{1-\cos(x)}{\sin(x)}.</math>
 
We also have
 
:<math>\tan\left({x \over 2}\right) = \csc(x) - \cot(x),</math>
 
:<math>\cot\left({x \over 2}\right) = \csc(x) + \cot(x).</math>
 
If we set
 
:<math>t = \tan\left(\frac{x}{2}\right),</math>
 
then
{|
|&nbsp;&nbsp;&nbsp;||<math>\sin(x) = \frac{2t}{1 + t^2}</math>
|&nbsp; and &nbsp;||<math>\cos(x) = \frac{1 - t^2}{1 + t^2}</math>
|&nbsp; and &nbsp;||<math>e^{i x} = \frac{1 + i t}{1 - i t}.</math>
|}
 
This substitution of ''t'' for tan(''x''/2), with the consequent replacement of sin(''x'') by 2''t''/(1 + ''t''<sup>2</sup>) and cos(''x'') by (1 &minus; ''t''<sup>2</sup>)/(1 + ''t''<sup>2</sup>) 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 [[Trigonometric identity#Angle sum and difference identities|angle addition theorems]].
 
:<math>\cos\left (x\right ) \cos\left (y\right ) = {\cos\left (x - y\right ) + \cos\left (x + y\right ) \over 2} \;</math>
 
:<math>\sin\left (x\right ) \sin\left (y\right ) = {\cos\left (x - y\right ) - \cos\left (x + y\right ) \over 2} \;</math>
 
:<math>\sin\left (x\right ) \cos\left (y\right ) = {\sin\left (x + y\right ) + \sin\left (x - y\right ) \over 2} \;</math>
 
:<math>\cos\left (x\right ) \sin\left (y\right ) = {\sin\left (x + y\right ) - \sin\left (x - y\right ) \over 2} \;</math>
 
=== Ptolemy's theorem ===
 
:<math> \mbox{If }w + x + y + z = \pi = \mbox{half circle,} \, </math>
 
::<math>\begin{align} \mbox{then }
& \sin(w + x)\sin(x + y) \\
&{} = \sin(x + y)\sin(y + z) \\
&{} = \sin(y + z)\sin(z + w) \\
&{} = \sin(z + w)\sin(w + x) = \sin(w)\sin(y) + \sin(x)\sin(z).
\end{align}</math>
 
The angle difference identities for <math>\sin(\alpha - \beta)</math> and <math>\cos(\alpha - \beta)</math> can be derived from the angle sum versions by substituting <math>-\beta</math> for <math>\beta</math> and using the facts that <math>\sin(-\beta) = -\sin(\beta)</math> and <math>\cos(-\beta) = \cos(\beta)</math>. 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.
(The first three equalities are trivial; the fourth is the substance of this identity.) Essentially this is [[Ptolemy's theorem]] adapted to the language of trigonometry.
 
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.
==Sum-to-product identities==
Replace ''x'' by (''x'' + ''y'') / 2 and ''y'' by (''x'' &ndash; ''y'') / 2 in the product-to-sum formulæ.
 
{|class="wikitable" style=""
: <math>\cos(x) + \cos(y) = 2 \cos\left( \frac{x + y}{2} \right) \cos\left( \frac{x - y}{2} \right) \;</math>
! Sine
 
| colspan="3" style='border-style: solid none solid solid; text-align: right;' |<math>\sin(\alpha \pm \beta)</math>
: <math>\sin(x) + \sin(y) = 2 \sin\left( \frac{x + y}{2} \right) \cos\left( \frac{x - y}{2} \right) \;</math>
| style='border-style: solid none solid none; text-align: center;' |<math>=</math>
 
| style='border-style: solid solid solid none; text-align: left;' |<math>\sin \alpha \cos \beta \pm \cos \alpha \sin \beta</math><ref>Abramowitz and Stegun, p.&nbsp;72, 4.3.16</ref><ref name="mathworld_addition">{{MathWorld|title=Trigonometric Addition Formulas|urlname=TrigonometricAdditionFormulas}}</ref>
: <math> \cos(x) - \cos(y) = -2 \sin\left( {x + y \over 2}\right) \sin\left({x - y \over 2}\right) \; </math>
 
: <math> \sin(x) - \sin(y) = 2 \cos\left({x + y\over 2}\right) \sin\left({x - y\over 2}\right) \; </math>
 
If ''x'', ''y'', and ''z'' are the three angles of any triangle, or in other words
 
:<math>\mbox{if }x + y + z = \pi = \mbox{half circle,}\, </math>
 
::<math>\mbox{then }\tan(x) + \tan(y) + \tan(z) = \tan(x)\tan(y)\tan(z).\,</math>
 
(If any of ''x'', ''y'', ''z'' is a right angle, one should take both sides to be ∞. This is neither +∞ nor &minus;∞; for present purposes it makes sense to add just one point at infinity to the [[real number|real line]], that is approached by tan(θ) as tan(θ) either increases through positive values or decreases through negative values. This is a [[one-point compactification]] of the real line.)
 
:<math>\mbox{If }x + y + z = \pi = \mbox{half circle,}\, </math>
 
::<math>\mbox{then }\sin(2x) + \sin(2y) + \sin(2z) = 4\sin(x)\sin(y)\sin(z).\,</math>
 
==Other sums of trigonometric functions==
 
Sum of sines and cosines with arguments in arithmetic progression:
 
:<math>\sin{\varphi} + \sin{(\varphi + \alpha)} + \sin{(\varphi + 2\alpha)} +
\cdots + \sin{(\varphi + n\alpha)}=\frac{\sin{\left(\frac{(n+1) \alpha}{2}\right)} \cdot \sin{(\varphi + \frac{n \alpha}{2})}}{\sin{\frac{\alpha}{2}}}.</math>
 
:<math>\cos{\varphi} + \cos{(\varphi + \alpha)} + \cos{(\varphi + 2\alpha)} +
\cdots + \cos{(\varphi + n\alpha)}=\frac{\sin{\left(\frac{(n+1) \alpha}{2}\right)} \cdot \cos{(\varphi + \frac{n \alpha}{2})}}{\sin{\frac{\alpha}{2}}}.</math>
 
For any ''a'' and ''b'':
 
: <math>a \cos(x) + b \sin(x) = \sqrt{ a^2 + b^2 } \cos(x - \arctan(b, a)) \;</math>
 
where arctan(''y'', ''x'') is the generalization of arctan(''y''/''x'') which covers the entire circular range (see also the account of this same identity in "symmetry, periodicity, and shifts" above for this generalization of arctan).
 
:<math>\tan(x) + \sec(x) = \tan\left({x \over 2} + {\pi \over 4}\right).</math>
 
The above identity is sometimes convenient to know when thinking about the [[Gudermanian function]].
 
If <math>x</math>, <math>y</math>, and <math>z</math> are the three angles of any triangle, i.e. if <math>x + y + z = \pi</math>, then
 
:<math>\cot(x)\cot(y) + \cot(y)\cot(z) + \cot(z)\cot(x) = 1.\,</math>
 
==Inverse trigonometric functions==
:<math> \arcsin(x)+\arccos(x)=\pi/2\;</math>
 
:<math> \arctan(x)+\arccot(x)=\pi/2.\;</math>
 
:<math>\arctan(x)+\arctan(1/x)=\left\{\begin{matrix} \pi/2, & \mbox{if }x > 0 \\ -\pi/2, & \mbox{if }x < 0 \end{matrix}\right.</math>
 
:<math>\arctan(x)+\arctan(y)=\arctan\left(\frac{x+y}{1-xy}\right)+\left\{\begin{matrix} \pi, & \mbox{if }x,y>0 \\ -\pi, & \mbox{if }x,y<0 \\ 0, & \mbox{otherwise } \end{matrix}\right.</math>
 
:<math>\sin[\arccos(x)]=\sqrt{1-x^2} \,</math>
 
:<math>\cos[\arcsin(x)]=\sqrt{1-x^2} \,</math>
 
:<math>\sin[\arctan(x)]=\frac{x}{\sqrt{1+x^2}}</math>
 
:<math>\cos[\arctan(x)]=\frac{1}{\sqrt{1+x^2}}</math>
 
:<math>\tan[\arcsin (x)]=\frac{x}{\sqrt{1 - x^2}}</math>
 
:<math>\tan[\arccos (x)]=\frac{\sqrt{1 - x^2}}{x}</math>
 
==Trigonometric conversions==
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 formulæ 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.
 
'''Warning:''' In this table, the entries in any '''column''' ('''not''' in any ''row'') are the six trigonometric functions of one angle.
{| class="wikitable"
|+ Table of conversion formulæ <math>\varphi(\operatorname{arc}\,\psi(x))</math>
! φ \ ψ'''
! sin
! cos
! tan
! csc
! sec
! cot
|-
! sinCosine
| colspan="3" style='border-style: solid none solid solid; text-align: right;' |<math>\cos(\alpha \pm \beta)</math>
| <math>x\ </math>
| style='border-style: solid none solid none; text-align: center;' |<math>=</math>
| <math> \sqrt{1 - x^2} </math>
| style='border-style: solid solid solid none; text-align: left;' |<math>\cos \alpha \cos \beta \mp \sin \alpha \sin \beta</math><ref name="mathworld_addition" /><ref>Abramowitz and Stegun, p.&nbsp;72, 4.3.17</ref>
| <math> {x \over \sqrt{1 + x^2}} </math>
| <math> {1 \over x} </math>
| <math> {\sqrt{1 - x^2} \over x} </math>
| <math> {1 \over \sqrt{1+x^2}} </math>
|-
! cosTangent
| colspan="3" style='border-style: solid none solid solid; text-align: right;' |<math>\tan(\alpha \pm \beta)</math>
| <math> \sqrt{1 - x^2} </math>
| style='border-style: solid none solid none; text-align: center;' |<math>=</math>
| <math>x\ </math>
| style='border-style: solid solid solid none; text-align: left;' |<math>\frac{\tan \alpha \pm \tan \beta}{1 \mp \tan \alpha \tan \beta}</math><ref name="mathworld_addition" /><ref>Abramowitz and Stegun, p.&nbsp;72, 4.3.18</ref>
| <math> {1 \over \sqrt{1 + x^2}} </math>
| <math> {\sqrt{x^2 - 1} \over x} </math>
| <math> {1 \over x} </math>
| <math> {x \over \sqrt{1 + x^2}} </math>
|-
!Cosecant
! tan
| colspan="3" style='border-style: solid none solid solid; text-align: right;' |<math>\csc(\alpha \pm \beta)</math>
| <math> {x \over \sqrt{1 - x^2}} </math>
| style='border-style: solid none solid none; text-align: center;' |<math>=</math>
| <math> {\sqrt{1 - x^2} \over x} </math>
| style='border-style: solid solid solid none; text-align: left;' |<math>\frac{\sec \alpha \sec \beta \csc \alpha \csc \beta}{\sec \alpha \csc \beta \pm \csc \alpha \sec \beta}</math><ref name=":0">{{Cite web|url=http://www.milefoot.com/math/trig/22anglesumidentities.htm|title=Angle Sum and Difference Identities|website=www.milefoot.com|access-date=2019-10-12}}</ref>
| <math>x\ </math>
| <math> {1 \over \sqrt{x^2 - 1}} </math>
| <math> \sqrt{x^2 - 1} </math>
| <math> {1 \over x} </math>
|-
! cscSecant
| colspan="3" style='border-style: solid none solid solid; text-align: right;' |<math>\sec(\alpha \pm \beta)</math>
| <math> {1 \over x} </math>
| style='border-style: solid none solid none; text-align: center;' |<math>=</math>
| <math> {1 \over \sqrt{1 - x^2}} </math>
| style='border-style: solid solid solid none; text-align: left;' |<math>\frac{\sec \alpha \sec \beta \csc \alpha \csc \beta}{\csc \alpha \csc \beta \mp \sec \alpha \sec \beta}</math><ref name=":0" />
| <math> {\sqrt{1 + x^2} \over x} </math>
| <math>x\ </math>
| <math> {x \over \sqrt{x^2 - 1}} </math>
| <math> \sqrt{1 + x^2} </math>
|-
! Cotangent
! sec
| colspan="3" style='border-style: solid none solid solid; text-align: right;' |<math>\cot(\alpha \pm \beta)</math>
| <math> {1 \over \sqrt{1 - x^2}} </math>
| style='border-style: solid none solid none; text-align: center;' |<math>=</math>
| <math> {1 \over x} </math>
| style='border-style: solid solid solid none; text-align: left;' |<math>\frac{\cot \alpha \cot \beta \mp 1}{\cot \beta \pm \cot \alpha}</math><ref name="mathworld_addition" /><ref>Abramowitz and Stegun, p.&nbsp;72, 4.3.19</ref>
| <math> \sqrt{1 + x^2} </math>
| <math> {x \over \sqrt{x^2 - 1}} </math>
| <math>x\ </math>
| <math> {\sqrt{1 + x^2} \over x} </math>
|-
! cotArcsine
| colspan="3" style='border-style: solid none solid solid; text-align: right;' |<math>\arcsin x \pm \arcsin y</math>
| <math> {\sqrt{1 - x^2} \over x} </math>
| style='border-style: solid none solid none; text-align: center;' |<math>=</math>
| <math> {x \over \sqrt{1 - x^2}} </math>
| style='border-style: solid solid solid none; text-align: left;' |<math>\arcsin\left(x\sqrt{1-y^2} \pm y\sqrt{1-x^2\vphantom{y}}\right)</math><ref>Abramowitz and Stegun, p.&nbsp;80, 4.4.32</ref>
| <math> {1 \over x} </math>
|-
| <math> \sqrt{x^2 - 1} </math>
! Arccosine
| <math> {1 \over \sqrt{x^2 - 1}} </math>
| colspan="3" style='border-style: solid none solid solid; text-align: right;' |<math>\arccos x \pm \arccos y</math>
| <math>x\ </math>
| style='border-style: solid none solid none; text-align: center;' |<math>=</math>
| style='border-style: solid solid solid none; text-align: left;' |<math>\arccos\left(xy \mp \sqrt{\left(1-x^2\right)\left(1-y^2\right)}\right)</math><ref>Abramowitz and Stegun, p.&nbsp;80, 4.4.33</ref>
|-
! Arctangent
| colspan="3" style='border-style: solid none solid solid; text-align: right;' |<math>\arctan x \pm \arctan y</math>
| style='border-style: solid none solid none; text-align: center;' |<math>=</math>
| style='border-style: solid solid solid none; text-align: left;' |<math>\arctan\left(\frac{x \pm y}{1 \mp xy}\right)</math><ref>Abramowitz and Stegun, p.&nbsp;80, 4.4.34</ref>
|-
! Arccotangent
| colspan="3" style='border-style: solid none solid solid; text-align: right;' |<math>\arccot x \pm \arccot y</math>
| style='border-style: solid none solid none; text-align: center;' |<math>=</math>
| style='border-style: solid solid solid none; text-align: left;' |<math>\arccot\left(\frac{xy \mp 1}{y \pm x}\right)</math>
|}
 
=== Sines and cosines of sums of infinitely many angles ===
One procedure that can be used to obtain the elements of this table is as follows: <br>
When the series <math display="inline">\sum_{i=1}^\infty \theta_i</math> [[absolute convergence|converges absolutely]] then
Given trigonometric functions φ and ψ, what is φ(arcψ(''x'')) equal to?
# Find an equation that relates φ(''u'') and ψ(''u'') to each other:
#: <math> f(\varphi(u), \psi(u)) = 0 \ </math>
# Let <math> u = \operatorname{arc}\psi(x) </math>, so that:
#: <math> f(\varphi({\rm arc}\psi(x)),\psi({\rm arc}\psi(x)) = 0 \ </math>
#: <math> f(\varphi({\rm arc}\psi(x)),x) = 0 \ </math>
# Solve the last equation for φ(arcψ(''x'')).
 
<math display=block>\begin{align}
''Example.'' What is cot(arccsc(''x'')) equal to? First, find an equation which relations the functions cot and csc to each other, such as
{\sin}\biggl(\sum_{i=1}^\infty \theta_i\biggl)
&= \sum_{\text{odd}\ k \ge 1} (-1)^\frac{k-1}{2} \!\!
\sum_{\begin{smallmatrix} A \subseteq \{\,1,2,3,\dots\,\} \\
\left|A\right| = k\end{smallmatrix}}
\biggl(\prod_{i \in A} \sin\theta_i \prod_{i \not \in A} \cos\theta_i\biggr) \\
{\cos}\biggl(\sum_{i=1}^\infty \theta_i\biggr)
&= \sum_{\text{even}\ k \ge 0} (-1)^\frac{k}{2} \,
\sum_{\begin{smallmatrix} A \subseteq \{\,1,2,3,\dots\,\} \\ \left|A\right| = k\end{smallmatrix}}
\biggl(\prod_{i \in A} \sin\theta_i \prod_{i \not \in A} \cos\theta_i\biggr) .
\end{align}</math>
 
Because the series <math display="inline">\sum_{i=1}^\infty \theta_i</math> converges absolutely, it is necessarily the case that <math display="inline">\lim_{i \to \infty} \theta_i = 0,</math> <math display="inline">\lim_{i \to \infty} \sin \theta_i = 0,</math> and <math display="inline">\lim_{i \to \infty} \cos \theta_i = 1.</math> 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 [[Cofiniteness|cofinitely]] many cosine factors. Terms with infinitely many sine factors would necessarily be equal to zero.
:<math> \cot^2 u + 1 = \csc^2 u \ </math>.
 
When only finitely many of the angles <math>\theta_i</math> 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.
Second, let ''u'' = arccsc(''x''):
 
=== Tangents and cotangents of sums ===
:<math> \cot^2(\arccsc(x)) + 1 = \csc^2(\arccsc(x)) \ </math>,
Let <math>e_k</math> (for <math>k = 0, 1, 2, 3, \ldots</math>) be the {{mvar|k}}th-degree [[elementary symmetric polynomial]] in the variables
:<math> \cot^2(\arccsc(x)) + 1 = x^2 \ </math>.
<math display="block">x_i = \tan \theta_i</math>
for <math>i = 0, 1, 2, 3, \ldots,</math> that is,
 
<math display=block>\begin{align}
Third, solve this equation for cot(arccsc(''x'')):
e_0 &= 1 \\[6pt]
e_1 &= \sum_i x_i &&= \sum_i \tan\theta_i \\[6pt]
e_2 &= \sum_{i<j} x_i x_j &&= \sum_{i<j} \tan\theta_i \tan\theta_j \\[6pt]
e_3 &= \sum_{i<j<k} x_i x_j x_k &&= \sum_{i<j<k} \tan\theta_i \tan\theta_j \tan\theta_k \\
&\ \ \vdots &&\ \ \vdots
\end{align}</math>
 
Then
:<math> \cot^2(\arccsc(x)) = x^2 - 1, \ </math>
:<math> \cot(\arccsc(x)) = \pm\sqrt{x^2 - 1}, </math>
 
<math display=block>
and this is the formula which shows up in the sixth row and fourth column of the table.
\tan \Bigl(\sum_i \theta_i\Bigr)
<!-- hmm... a lot harder than just drawing a triangle so that csc = x
= \frac{e_1 - e_3 + e_5 -\cdots}{e_0 - e_2 + e_4 - \cdots}.
and using the pythagorean identity -- need an image showing this -->
</math>
This can be shown by using the sine and cosine sum formulae above:
<math display=block>\begin{align}
\tan \Bigl(\sum_i \theta_i\Bigr)
&= \frac{{\sin}\bigl(\sum_i \theta_i\bigr) / \prod_i \cos \theta_i}
{{\cos}\bigl(\sum_i \theta_i\bigr) / \prod_i \cos \theta_i} \\[10pt]
& = \frac
{\displaystyle
\sum_{\text{odd}\ k \ge 1} (-1)^\frac{k-1}{2}
\sum_{
\begin{smallmatrix} A \subseteq \{1,2,3,\dots\} \\
\left|A\right| = k\end{smallmatrix}}
\prod_{i \in A} \tan\theta_i}
{\displaystyle
\sum_{\text{even}\ k \ge 0} ~ (-1)^\frac{k}{2} ~~
\sum_{
\begin{smallmatrix} A \subseteq \{1,2,3,\dots\} \\
\left|A\right| = k\end{smallmatrix}}
\prod_{i \in A} \tan\theta_i}
= \frac{e_1 - e_3 + e_5 -\cdots}{e_0 - e_2 + e_4 - \cdots} \\[10pt]
 
\cot\Bigl(\sum_i \theta_i\Bigr)
==Relation to the complex exponential function==
&= \frac{e_0 - e_2 + e_4 - \cdots}{e_1 - e_3 + e_5 -\cdots}
\end{align}</math>
 
The number of terms on the right side depends on the number of terms on the left side.
:<math>e^{ix} = \cos(x) + i\sin(x)\,</math> ([[Euler's formula]]),
 
For example:
:<math>e^{-ix} = \cos(x) - i\sin(x)\,</math>
<math display="block">\begin{align}
\tan(\theta_1 + \theta_2) &
= \frac{ e_1 }{ e_0 - e_2 }
= \frac{ x_1 + x_2 }{ 1 \ - \ x_1 x_2 }
= \frac{ \tan\theta_1 + \tan\theta_2 }{ 1 \ - \ \tan\theta_1 \tan\theta_2 },
\\[8pt]
\tan(\theta_1 + \theta_2 + \theta_3) &
= \frac{ e_1 - e_3 }{ e_0 - e_2 }
= \frac{ (x_1 + x_2 + x_3) \ - \ (x_1 x_2 x_3) }{ 1 \ - \ (x_1x_2 + x_1 x_3 + x_2 x_3) },
\\[8pt]
\tan(\theta_1 + \theta_2 + \theta_3 + \theta_4) &
= \frac{ e_1 - e_3 }{ e_0 - e_2 + e_4 } \\[8pt] &
= \frac{ (x_1 + x_2 + x_3 + x_4) \ - \ (x_1 x_2 x_3 + x_1 x_2 x_4 + x_1 x_3 x_4 + x_2 x_3 x_4) }{ 1 \ - \ (x_1 x_2 + x_1 x_3 + x_1 x_4 + x_2 x_3 + x_2 x_4 + x_3 x_4) \ + \ (x_1 x_2 x_3 x_4) },
\end{align}</math>
 
and so on. The case of only finitely many terms can be proved by [[mathematical induction]].<ref>{{cite conference |last=Bronstein |first=Manuel |title=Simplification of real elementary functions |pages=207–211 |doi=10.1145/74540.74566 |book-title=Proceedings of the ACM-[[SIGSAM]] 1989 International Symposium on Symbolic and Algebraic Computation |editor-first= G. H. |editor-last=Gonnet |conference=ISSAC '89 (Portland US-OR, 1989-07) |___location=New York |publisher=[[Association for Computing Machinery|ACM]] |year=1989 |isbn=0-89791-325-6}}</ref> The case of infinitely many terms can be proved by using some elementary inequalities.<ref>Michael Hardy. (2016). "On Tangents and Secants of Infinite Sums." ''The American Mathematical Monthly'', volume 123, number 7, 701–703. https://doi.org/10.4169/amer.math.monthly.123.7.701</ref>
:<math>e^{i\pi} = -1\,</math>
 
=== Linear fractional transformations of tangents, related to tangents of sums ===
: <math>\cos(x) = \frac{e^{ix} + e^{-ix}}{2} \;</math>
 
Suppose <math display=inline> a,b,c,d,p,q\in\mathbb R</math> and <math display=inline> i = \sqrt{-1}</math> and
: <math>\sin(x) = \frac{e^{ix} - e^{-ix}}{2i} \;</math>
: <math> \frac{ai+b}{ci+d} = pi +q </math>
and let <math display=inline> \varphi </math> be any number for which <math display=inline> \tan\varphi = c/d. </math>
Suppose that <math display=inline> a/c\ne b/d </math> so that the forgoing fraction cannot be <math display=inline> 0/0 </math>. Then for all <math display=inline> \theta\in\mathbb R </math><ref>Michael Hardy (2025), "[https://doi.org/10.1080/00029890.2025.2459048 Invariance of the Cauchy Family Under Linear Fractional Transformations]," ''The American Mathematical Monthly'', 132:5, 453–455, DOI: 10.1080/00029890.2025.2459048</ref>
: <math> \frac{a\tan\theta + b}{c\tan\theta+d} = p\tan(\theta-\varphi) + q. </math>
(In case the denominator of this fraction is 0, we take the value of the fraction to be <math display=inline> \infty </math>, where the symbol <math display=inline> \infty </math> does not mean either <math display=inline> +\infty </math> or <math display=inline> -\infty </math>, but is the <math display=inline> \infty </math> that is approached by going in either the positive or the negative direction, making the completion of the line <math display=inline> \mathbb R \cup \{\,\infty\,\} </math> topologically a circle.)
 
From this identity it can be shown to follow quickly that the family of all [[Cauchy distribution|Cauchy-distributed]] random variables is closed under linear fractional tranformations, a result known since 1976.<ref> Knight F. B., "A characterization of the Cauchy type." ''Proceedings of the American Mathematical Society'', 1976:130–135. </ref>
where ''i''<sup>2</sup> = &minus;1.
 
=== PedagogySecants and "cis"cosecants of sums ===
<math display=block>\begin{align}
{\sec}\Bigl(\sum_i \theta_i \Bigr) &= \frac{\prod_i \sec\theta_i}{e_0 - e_2 + e_4 - \cdots} \\[8pt]
{\csc}\Bigl(\sum_i \theta_i \Bigr) &= \frac{\prod_i \sec\theta_i }{e_1 - e_3 + e_5 - \cdots}
\end{align}</math>
 
where <math>e_k</math> is the {{mvar|k}}th-degree [[elementary symmetric polynomial]] in the {{mvar|n}} variables <math>x_i = \tan \theta_i,</math> <math>i = 1, \ldots, n,</math> 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.<ref>{{cite journal |last=Hardy |first=Michael |year=2016 |title=On Tangents and Secants of Infinite Sums |journal=American Mathematical Monthly |volume=123 |issue=7 |pages=701–703 |doi=10.4169/amer.math.monthly.123.7.701 |url=https://zenodo.org/record/1000408 }}</ref> The case of only finitely many terms can be proved by mathematical induction on the number of such terms.
Occasionally one sees the notation
 
For example,
:<math>\operatorname{cis}(x) = \cos(x) + i\sin(x),\,</math>
 
<math display=block>\begin{align}
i.e. "cis" abbreviates "cos&nbsp;+&nbsp;''i''&nbsp;sin".
\sec(\alpha+\beta+\gamma)
&= \frac{\sec\alpha \sec\beta \sec\gamma}
{1 - \tan\alpha\tan\beta - \tan\alpha\tan\gamma - \tan\beta\tan\gamma} \\[8pt]
\csc(\alpha+\beta+\gamma)
&= \frac{\sec\alpha \sec\beta \sec\gamma}
{\tan\alpha + \tan\beta + \tan\gamma - \tan\alpha\tan\beta\tan\gamma}.
\end{align}</math>
 
=== Ptolemy's theorem ===
"Why", a mathematician may ask, "should one introduce such a notation, rather than writing simply ''e''<sup>''ix''</sup>?". In some contexts, this notation may serve the pedagogical purpose of emphasizing that one has not yet proved that this is an exponential function. In doing trigonometry without complex numbers, one may prove the two identities
{{Main|Ptolemy's theorem}}
{{See also|History of trigonometry#Classical antiquity}}
 
[[File:Diagram illustrating the relation between Ptolemy's theorem and the angle sum trig identity for sin.svg|class=skin-invert-image|thumb|upright=1.5|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: {{math|1=sin(''α'' + ''β'') = sin ''α'' cos ''β'' + cos ''α'' sin ''β''}}.]]
:<math>\cos(x+y) = \cos(x)\cos(y) - \sin(x)\sin(y) = c_1 c_2 - s_1 s_2,\,</math>
:<math>\sin(x+y) = \sin(x)\cos(y) + \cos(x)\sin(y) = s_1 c_2 + c_1 s_2.\,</math>
 
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]] <math>ABCD</math>, 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.<ref name="cut-the-knot.org">{{cite web | url=https://www.cut-the-knot.org/proofs/sine_cosine.shtml | title=Sine, Cosine, and Ptolemy's Theorem }}</ref> The relationship follows most easily when the circle is constructed to have a diameter of length one, as shown here.
Similarly in treating multiplication of complex numbers (with no involvement of trigonometry), one may observe that the real and imaginary parts of the product of ''c''<sub>1</sub>&nbsp;+&nbsp;''is''<sub>1</sub> and ''c''<sub>2</sub>&nbsp;+&nbsp;''is''<sub>2</sub> are respectively
 
By [[Thales's theorem]], <math> \angle DAB</math> and <math> \angle DCB</math> are both right angles. The right-angled triangles <math>DAB</math> and <math>DCB</math> both share the hypotenuse <math>\overline{BD}</math> of length 1. Thus, the side <math>\overline{AB} = \sin \alpha</math>, <math>\overline{AD} = \cos \alpha</math>, <math>\overline{BC} = \sin \beta</math> and <math>\overline{CD} = \cos \beta</math>.
:<math>c_1 c_2 - s_1 s_2,\,</math>
:<math>s_1 c_2 + c_1 s_2.\,</math>
 
By the [[inscribed angle]] theorem, the [[central angle]] subtended by the chord <math>\overline{AC}</math> at the circle's center is twice the angle <math> \angle ADC</math>, i.e. <math>2(\alpha + \beta)</math>. Therefore, the symmetrical pair of red triangles each has the angle <math>\alpha + \beta</math> at the center. Each of these triangles has a hypotenuse of length <math display="inline">\frac{1}{2}</math>, so the length of <math>\overline{AC}</math> is <math display="inline">2 \times \frac{1}{2} \sin(\alpha + \beta)</math>, i.e. simply <math>\sin(\alpha + \beta)</math>. The quadrilateral's other diagonal is the diameter of length 1, so the product of the diagonals' lengths is also <math>\sin(\alpha + \beta)</math>.
Thus one sees this same pattern arising in two disparate contexts:
 
When these values are substituted into the statement of Ptolemy's theorem that <math>|\overline{AC}|\cdot |\overline{BD}|=|\overline{AB}|\cdot |\overline{CD}|+|\overline{AD}|\cdot |\overline{BC}|</math>, this yields the angle sum trigonometric identity for sine: <math> \sin(\alpha + \beta) = \sin \alpha \cos \beta + \cos \alpha \sin \beta </math>. The angle difference formula for <math> \sin(\alpha - \beta)</math> can be similarly derived by letting the side <math>\overline{CD}</math> serve as a diameter instead of <math>\overline{BD}</math>.<ref name="cut-the-knot.org"/>
* trigonometry without complex numbers, and
* complex numbers without trigonometry.
 
== Multiple-angle and half-angle formulae ==
This coincidence can serve as a motivation for conjoining the two contexts and thereby discovering the trigonometric identity
{|class="wikitable" style="color: inherit; background-color:var(--background-color-base);"
! {{mvar|T<sub>n</sub>}} is the {{mvar|n}}th [[Chebyshev polynomials|Chebyshev polynomial]]
| <math>\cos (n\theta) = T_n (\cos \theta )</math><ref name="mathworld_multiple_angle">{{MathWorld|title=Multiple-Angle Formulas|urlname=Multiple-AngleFormulas}}</ref>
|-
! [[de Moivre's formula]], {{mvar|i}} is the [[imaginary unit]]
| <math>\cos (n\theta) +i\sin (n\theta)=(\cos \theta +i\sin \theta)^n</math><ref>Abramowitz and Stegun, p.&nbsp;74, 4.3.48</ref>
|}
 
=== Multiple-angle formulae ===
:<math>\operatorname{cis}(x+y) = \operatorname{cis}(x)\operatorname{cis}(y),\,</math>
 
==== Double-angle formulae ====
and observing that this identity for cis of a sum is simpler than the identities for sin and cos of a sum. Having proved this identity, one can challenge the students to recall which familiar sort of function satisfies this same [[functional equation]]
[[File:Visual demonstration of the double-angle trigonometric identity for sine.svg|class=skin-invert-image|thumb|upright=1.5|Visual demonstration of the double-angle formula for sine. For the above isosceles triangle with unit sides and angle <math>2\theta</math>, the area {{sfrac|1|2}} × base × height is calculated in two orientations. When upright, the area is <math>\sin \theta \cos \theta</math>. When on its side, the same area is <math display="inline">\frac{1}{2} \sin 2\theta</math>. Therefore, <math>\sin 2\theta = 2 \sin \theta \cos \theta.</math>]]
 
Formulae for twice an angle.<ref name=STM1>{{harvnb|Selby|1970|loc=pg. 190}}</ref>
:<math>f(x+y) = f(x)f(y).\,</math>
 
{{startplainlist}}
The answer is [[exponential function]]s. That suggests that cis may be an exponential function
* <math>\sin (2\theta) = 2 \sin \theta \cos \theta = (\sin \theta +\cos \theta)^2 - 1 = \frac{2 \tan \theta} {1 + \tan^2 \theta}</math>
* <math>\cos (2\theta) = \cos^2 \theta - \sin^2 \theta = 2 \cos^2 \theta - 1 = 1 - 2 \sin^2 \theta = \frac{1 - \tan^2 \theta} {1 + \tan^2 \theta}</math>
* <math>\tan (2\theta) = \frac{2 \tan \theta} {1 - \tan^2 \theta}</math>
* <math>\cot (2\theta) = \frac{\cot^2 \theta - 1}{2 \cot \theta} = \frac{1 - \tan^2 \theta} {2 \tan \theta}</math>
* <math>\sec (2\theta) = \frac{\sec^2 \theta}{2 - \sec^2 \theta} = \frac{1 + \tan^2 \theta} {1 - \tan^2 \theta}</math>
* <math>\csc (2\theta) = \frac{\sec \theta \csc \theta}{2} = \frac{1 + \tan^2 \theta} {2 \tan \theta}</math>
{{endplainlist}}
 
==== Triple-angle formulae ====
:<math>\operatorname{cis}(x) = b^x.\,</math>
Formulae for triple angles.<ref name=STM1 />
 
{{startplainlist}}
Then the question is: what is the base ''b''? The definition of cis and the local behavior of sin and cos near zero suggest that
* <math>\sin (3\theta) =3\sin\theta - 4\sin^3\theta = 4\sin\theta\sin\left(\frac{\pi}{3} -\theta\right)\sin\left(\frac{\pi}{3} + \theta\right)</math>
* <math>\cos (3\theta) = 4 \cos^3\theta - 3 \cos\theta =4\cos\theta\cos\left(\frac{\pi}{3} -\theta\right)\cos\left(\frac{\pi}{3} + \theta\right)</math>
* <math>\tan (3\theta) = \frac{3 \tan\theta - \tan^3\theta}{1 - 3 \tan^2\theta} = \tan \theta\tan\left(\frac{\pi}{3} - \theta\right)\tan\left(\frac{\pi}{3} + \theta\right)</math>
* <math>\cot (3\theta) = \frac{3 \cot\theta - \cot^3\theta}{1 - 3 \cot^2\theta}</math>
* <math>\sec (3\theta) = \frac{\sec^3\theta}{4-3\sec^2\theta}</math>
* <math>\csc (3\theta) = \frac{\csc^3\theta}{3\csc^2\theta-4}</math>
{{endplainlist}}
 
==== Multiple-angle formulae ====
:<math>\operatorname{cis}(0+dx) = \operatorname{cis}(0) + i\,dx,</math>
Formulae for multiple angles.<ref>{{Cite web |last=Weisstein |first=Eric W. |title=Multiple-Angle Formulas |url=https://mathworld.wolfram.com/Multiple-AngleFormulas.html |access-date=2022-02-06 |website=mathworld.wolfram.com |language=en}}</ref>
 
{{startplainlist}}
(where ''dx'' is an [[infinitesimal]] increment of ''x''). Thus the rate of change at 0 is ''i'', so the base should be ''e''<sup>''i''</sup>. Thus if this is an exponential function, then it must be
* <math>\begin{align}
\sin(n\theta) &= \sum_{k\text{ odd}} (-1)^\frac{k-1}{2} {n \choose k}\cos^{n-k} \theta \sin^k \theta =
\sin\theta\sum_{i=0}^{(n+1)/2}\sum_{j=0}^{i} (-1)^{i-j} {n \choose 2i + 1}{i \choose j}
\cos^{n-2(i-j)-1} \theta \\
{}&=\sin(\theta)\cdot\sum_{k=0}^{\left\lfloor\frac{n-1}{2}\right\rfloor}(-1)^k\cdot {(2\cdot \cos(\theta))}^{n-2k-1}\cdot {n-k-1 \choose k} \\
{}&=2^{(n-1)} \prod_{k=0}^{n-1} \sin(k\pi/n+\theta)
\end{align}</math>
* <math> \begin{align}\cos(n\theta) &= \sum_{k\text{ even}} (-1)^\frac{k}{2} {n \choose k}\cos^{n-k} \theta \sin^k \theta =
\sum_{i=0}^{n/2}\sum_{j=0}^{i} (-1)^{i-j} {n \choose 2i}{i \choose j} \cos^{n-2(i-j)} \theta \\
{} &= \sum_{k=0}^{\left\lfloor\frac{n}{2}\right\rfloor} (-1)^k\cdot {(2\cdot \cos(\theta))}^{n-2k}\cdot {n-k \choose k}\cdot\frac{n}{2n-2k}
\end{align}</math>
* <math>\cos((2n+1)\theta)=(-1)^n 2^{2n}\prod_{k=0}^{2n}\cos(k\pi/(2n+1)-\theta)</math>
* <math>\cos(2 n \theta)=(-1)^n 2^{2n-1} \prod_{k=0}^{2n-1} \cos((1+2k)\pi/(4n)-\theta)</math>
* <math>\tan(n\theta) = \frac{\sum_{k\text{ odd}} (-1)^\frac{k-1}{2} {n \choose k}\tan^k \theta}{\sum_{k\text{ even}} (-1)^\frac{k}{2} {n \choose k}\tan^k \theta}</math>
{{endplainlist}}
 
==== Chebyshev method ====
:<math>\operatorname{cis}(x) = e^{ix}.\,</math>
The [[Pafnuty Chebyshev|Chebyshev]] method is a [[Recursion|recursive]] [[algorithm]] for finding the {{mvar|n}}th multiple angle formula knowing the <math>(n-1)</math>th and <math>(n-2)</math>th values.<ref>{{cite web|last=Ward|first=Ken|website=Ken Ward's Mathematics Pages|title=Multiple angles recursive formula|url=http://trans4mind.com/personal_development/mathematics/trigonometry/multipleAnglesRecursiveFormula.htm}}</ref>
 
<math>\cos(nx)</math> can be computed from <math>\cos((n-1)x)</math>, <math>\cos((n-2)x)</math>, and <math>\cos(x)</math> with
==Infinite product formula==
For applications to [[special function]]s, the following [[infinite product]] formulæ for trigonometric functions are useful:
 
: <math display="block">\sin x cos(nx)= x2 \prod_{ncos =x 1}^\infty\leftcos((n-1)x) - \frac{x^2}{\pi^2 cos((n^-2}\right)x).</math>
 
This can be proved by adding together the formulae
: <math>\sinh x = x \prod_{n = 1}^\infty\left(1 + \frac{x^2}{\pi^2 n^2}\right)</math>
 
<math display="block">\begin{align}
: <math>\cos x = \prod_{n = 1}^\infty\left(1 - \frac{x^2}{\pi^2(n - \frac{1}{2})^2}\right)</math>
\cos ((n-1)x + x) &= \cos ((n-1)x) \cos x-\sin ((n-1)x) \sin x \\
\cos ((n-1)x - x) &= \cos ((n-1)x) \cos x+\sin ((n-1)x) \sin x
\end{align}</math>
 
It follows by induction that <math>\cos(nx)</math> is a polynomial of <math>\cos x,</math> the so-called Chebyshev polynomial of the first kind, see [[Chebyshev polynomials#Trigonometric definition]].
: <math>\cosh x = \prod_{n = 1}^\infty\left(1 + \frac{x^2}{\pi^2(n - \frac{1}{2})^2}\right)</math>
 
Similarly, <math>\sin(nx)</math> can be computed from <math>\sin((n-1)x),</math> <math>\sin((n-2)x),</math> and <math>\cos x</math> with
: <math>\frac{\sin x}{x} = \prod_{n = 1}^\infty\cos\left(\frac{x}{2^n}\right)</math>
<math display="block">\sin(nx)=2 \cos x \sin((n-1)x)-\sin((n-2)x)</math>
This can be proved by adding formulae for <math>\sin((n-1)x+x)</math> and <math>\sin((n-1)x-x).</math>
 
Serving a purpose similar to that of the Chebyshev method, for the tangent we can write:
==The Gudermannian function==
The [[Gudermannian function]] relates the [[trigonometric function|circular]] and [[hyperbolic function|hyperbolic]] trigonometric functions without resorting to [[complex numbers]]; see that article for details.
 
<math display="block">\tan (nx) = \frac{\tan ((n-1)x) + \tan x}{1- \tan ((n-1)x) \tan x}\,.</math>
==Identities without variables==
The curious identity
 
=== Half-angle formulae ===
:<math>\cos 20^\circ\cdot\cos 40^\circ\cdot\cos 80^\circ=\frac{1}{8}</math>
 
<math display=block>\begin{align}
is a special case of an identity that contains one variable:
\sin \frac{\theta}{2} &= \sgn\left(\sin\frac\theta2\right) \sqrt{\frac{1 - \cos \theta}{2}} \\[3pt]
 
\cos \frac{\theta}{2} &= \sgn\left(\cos\frac\theta2\right) \sqrt{\frac{1 + \cos\theta}{2}} \\[3pt]
:<math>\prod_{j=0}^{k-1}\cos(2^j x)=\frac{\sin(2^k x)}{2^k\sin(x)}.</math>
 
\tan \frac{\theta}{2}
A similar-looking identity is
&= \frac{1 - \cos \theta}{\sin \theta}
= \frac{\sin \theta}{1 + \cos \theta}
= \csc \theta - \cot \theta
= \frac{\tan\theta}{1 + \sec{\theta}} \\[6mu]
 
:<math>&= \cossgn(\frac{sin \pi}{7}theta) \cossqrt\frac{2\pi}{7}1 - \cos \frac{3\pitheta}{7}1 =+ \frac{1cos \theta}{8}. </math>
= \frac{-1 + \sgn(\cos \theta) \sqrt{1+\tan^2\theta}}{\tan\theta} \\[3pt]
 
\cot \frac{\theta}{2}
The following is perhaps not as readily generalized to an identity containing variables:
&= \frac{1 + \cos \theta}{\sin \theta}
= \frac{\sin \theta}{1 - \cos \theta}
= \csc \theta + \cot \theta
= \sgn(\sin \theta) \sqrt\frac{1 + \cos \theta}{1 - \cos \theta} \\
 
\sec \frac{\theta}{2}
:<math>\cos 24^\circ+\cos 48^\circ+\cos 96^\circ+\cos 168^\circ=\frac{1}{2}.</math>
&= \sgn\left(\cos\frac\theta2\right) \sqrt{\frac{2}{1 + \cos\theta}} \\
 
\csc \frac{\theta}{2}
Degree measure ceases to be more felicitous than radian measure when we consider this identity with 21 in the denominators:
:<math>&= \cossgn\left( \sin\frac\theta2\right) \sqrt{\frac{2\pi}{211 - \cos\theta}} \\right)
\,+\, \cos\left(2\cdot\frac{2\pi}{21}\right)
\,+\, \cos\left(4\cdot\frac{2\pi}{21}\right)</math>
::<math>
\,+\, \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}.</math>
 
\end{align}</math>
The factors 1, 2, 4, 5, 8, 10&nbsp;may start to make the pattern clear: they are those integers less than 21/2 that are [[relatively prime]] to (or have no [[prime factor]]s in common with) 21. The last several examples are corollaries of a basic fact about the irreducible [[cyclotomic polynomial]]s: 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.
<ref name="ReferenceA">{{AS ref|4, eqn 4.3.20-22|72}}</ref><ref name="mathworld_half_angle">{{MathWorld|title=Half-Angle Formulas|urlname=Half-AngleFormulas}}</ref>
 
Also
An efficient way to [[pi|compute π]] is based on the following identity without variables, due to [[John Machin|Machin]]:
<math display=block>\begin{align}
\tan\frac{\eta\pm\theta}{2} &= \frac{\sin\eta \pm \sin\theta}{\cos\eta + \cos\theta} \\[3pt]
\tan\left(\frac{\theta}{2} + \frac{\pi}{4}\right) &= \sec\theta + \tan\theta \\[3pt]
\sqrt{\frac{1 - \sin\theta}{1 + \sin\theta}} &= \frac{\left|1 - \tan\frac{\theta}{2}\right|}{\left|1 + \tan\frac{\theta}{2}\right|}
\end{align}</math>
 
=== Table ===
:<math>\frac{\pi}{4} = 4 \arctan\frac{1}{5} - \arctan\frac{1}{239}</math>
<!-- [[Double-angle formula]], [[Double-angle formula]], [[Triple-angle formula]], [[Triple-angle formula]], [[Half-angle formula]], and [[Half-angle formula]] redirect here -->
{{See also|Tangent half-angle formula}}
These can be shown by using either the sum and difference identities or the multiple-angle formulae.
 
<div style="overflow-x:auto;">
or, alternatively, by using [[Euler]]'s formula:
{|class="wikitable"
! !! Sine !! Cosine !! Tangent !! Cotangent
|-
! Double-angle formula<ref>Abramowitz and Stegun, p.&nbsp;72, 4.3.24–26</ref><ref name="mathworld_double_angle">{{MathWorld|title=Double-Angle Formulas|urlname=Double-AngleFormulas}}</ref>
| <math>\begin{align}
\sin (2\theta) &= 2 \sin \theta \cos \theta \ \\
&= \frac{2 \tan \theta} {1 + \tan^2 \theta}
\end{align}</math>
| <math>\begin{align}
\cos (2\theta) &= \cos^2 \theta - \sin^2 \theta \\
&= 2 \cos^2 \theta - 1 \\
&= 1 - 2 \sin^2 \theta \\
&= \frac{1 - \tan^2 \theta} {1 + \tan^2 \theta}
\end{align}</math>
| <math>\tan (2\theta) = \frac{2 \tan \theta} {1 - \tan^2 \theta}</math>
| <math>\cot (2\theta) = \frac{\cot^2 \theta - 1}{2 \cot \theta}</math>
|-
! Triple-angle formula<ref name="mathworld_multiple_angle" /><ref name="Stegun p. 72, 4">Abramowitz and Stegun, p.&nbsp;72, 4.3.27–28</ref>
| <math>\begin{align}
\sin (3\theta) &= - \sin^3\theta + 3 \cos^2\theta \sin\theta\\
&= - 4\sin^3\theta + 3\sin\theta
\end{align}</math>
| <math>\begin{align}
\cos (3\theta) &= \cos^3\theta - 3 \sin^2 \theta\cos \theta \\
&= 4 \cos^3\theta - 3 \cos\theta
\end{align}</math>
| <math>\tan (3\theta) = \frac{3 \tan\theta - \tan^3\theta}{1 - 3 \tan^2\theta}</math>
| <math>\cot (3\theta) = \frac{3 \cot\theta - \cot^3\theta}{1 - 3 \cot^2\theta}</math>
|-
! Half-angle formula<ref name="ReferenceA" /><ref name="mathworld_half_angle" />
| <math>\begin{align}
&\sin \frac{\theta}{2} = \sgn\left(\sin\frac\theta2\right) \sqrt{\frac{1 - \cos \theta}{2}} \\ \\
&\left(\text{or }\sin^2\frac{\theta}{2} = \frac{1 - \cos\theta}{2}\right)
\end{align}</math>
| <math>\begin{align}
&\cos \frac{\theta}{2} = \sgn\left(\cos\frac\theta2\right) \sqrt{\frac{1 + \cos\theta}{2}} \\ \\
&\left(\text{or } \cos^2\frac{\theta}{2} = \frac{1 + \cos\theta}{2}\right)
\end{align}</math>
| <math>\begin{align}
\tan \frac{\theta}{2}
&= \csc \theta - \cot \theta \\
&= \pm\, \sqrt\frac{1 - \cos \theta}{1 + \cos \theta} \\[3pt]
&= \frac{\sin \theta}{1 + \cos \theta} \\[3pt]
&= \frac{1 - \cos \theta}{\sin \theta} \\[5pt]
\tan\frac{\eta + \theta}{2} &= \frac{\sin\eta + \sin\theta}{\cos\eta + \cos\theta} \\[5pt]
\tan\left(\frac{\theta}{2} + \frac{\pi}{4}\right) &= \sec\theta + \tan\theta \\[5pt]
\sqrt{\frac{1 - \sin\theta}{1 + \sin\theta}}
&= \frac{\left|1 - \tan\frac{\theta}{2}\right|}{\left|1 + \tan\frac{\theta}{2}\right|} \\[5pt]
\tan\frac{\theta}{2} &= \frac{\tan\theta}{1 + \sqrt{1 + \tan^2\theta}} \\
&\text{for } \theta \in \left(-\tfrac{\pi}{2},\tfrac{\pi}{2} \right)
\end{align}</math>
| <math>\begin{align}
\cot \frac{\theta}{2}
&= \csc \theta + \cot \theta \\
&= \pm\, \sqrt\frac{1 + \cos \theta}{1 - \cos \theta} \\[3pt]
&= \frac{\sin \theta}{1 - \cos \theta} \\[4pt]
&= \frac{1 + \cos \theta}{\sin \theta}
\end{align}</math>
|}
</div>
The fact that the triple-angle formula for sine and cosine only involves powers of a single function allows one to relate the geometric problem of a [[Compass and straightedge constructions|compass and straightedge construction]] of [[angle trisection]] to the algebraic problem of solving a [[Cubic function|cubic equation]], which allows one to prove that [[Angle_trisection#Proof_of_impossibility|trisection is in general impossible]] using the given tools.
 
A formula for computing the trigonometric identities for the one-third angle exists, but it requires finding the zeroes of the [[Cubic function|cubic equation]] {{math|1=4''x''<sup>3</sup> − 3''x'' + ''d'' = 0}}, where <math>x</math> is the value of the cosine function at the one-third angle and {{mvar|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). [[Casus irreducibilis|None of these solutions are reducible]] to a real [[algebraic expression]], as they use intermediate complex numbers under the [[cube root]]s.
:<math>\frac{\pi}{4} = 5 \arctan\frac{1}{7} + 2 \arctan\frac{3}{79}.</math>
 
== Power-reduction formulae ==
<!-- extra blank space between two TeX displays for legibility -->
 
Obtained by solving the second and third versions of the cosine double-angle formula.
:<math>
\begin{matrix}
\sin 0 & = & \sin 0^\circ & = & 0 & = & \cos 90^\circ & = & \cos \left( \frac {\pi} {2} \right) \\ \\
\sin \left( \frac {\pi} {6} \right) & = & \sin 30^\circ & = & 1/2 & = & \cos 60^\circ & = & \cos \left( \frac {\pi} {3} \right) \\ \\
\sin \left( \frac {\pi} {4} \right) & = & \sin 45^\circ & = & \sqrt{2}/2 & = & \cos 45^\circ & = & \cos \left( \frac {\pi} {4} \right) \\ \\
\sin \left( \frac {\pi} {3} \right) & = & \sin 60^\circ & = & \sqrt{3}/2 & = & \cos 30^\circ & = & \cos \left( \frac {\pi} {6} \right) \\ \\
\sin \left( \frac {\pi} {2} \right) & = & \sin 90^\circ & = & 1 & = & \cos 0^\circ & = & \cos 0
\end{matrix}
</math>
 
<div class="noresize">
:<math>\sin{\frac{\pi}{7}}=\frac{\sqrt{7}}{6}-
{|class="wikitable"
\frac{\sqrt{7}}{189} \sum_{j=0}^{\infty} \frac{(3j+1)!}{189^j j!\,(2j+2)!}
!Sine
\!</math>
!Cosine
!Other
|-
|<math>\sin^2\theta = \frac{1 - \cos (2\theta)}{2}</math>
|<math>\cos^2\theta = \frac{1 + \cos (2\theta)}{2}</math>
|<math>\sin^2\theta \cos^2\theta = \frac{1 - \cos (4\theta)}{8}</math>
|-
|<math>\sin^3\theta = \frac{3 \sin\theta - \sin (3\theta)}{4}</math>
|<math>\cos^3\theta = \frac{3 \cos\theta + \cos (3\theta)}{4}</math>
|<math>\sin^3\theta \cos^3\theta = \frac{3\sin (2\theta) - \sin (6\theta)}{32}</math>
|-
|<math>\sin^4\theta = \frac{3 - 4 \cos (2\theta) + \cos (4\theta)}{8}</math>
|<math>\cos^4\theta = \frac{3 + 4 \cos (2\theta) + \cos (4\theta)}{8}</math>
|<math>\sin^4\theta \cos^4\theta = \frac{3-4\cos (4\theta) + \cos (8\theta)}{128}</math>
|-
|<math>\sin^5\theta = \frac{10 \sin\theta - 5 \sin (3\theta) + \sin (5\theta)}{16}</math>
|<math>\cos^5\theta = \frac{10 \cos\theta + 5 \cos (3\theta) + \cos (5\theta)}{16}</math>
|<math>\sin^5\theta \cos^5\theta = \frac{10\sin (2\theta) - 5\sin (6\theta) + \sin (10\theta)}{512}</math>
|}
</div>
 
{{stack |float=left |[[File:Diagram showing how to derive the power reduction formula for cosine.svg|class=skin-invert-image|thumb|left|upright=1.3|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 <math>\overline{AD}</math> of the blue triangle has length <math>2 \cos \theta</math>. The angle <math>\angle DAE</math> is <math>\theta</math>, so the base <math>\overline{AE}</math> of that triangle has length <math>2 \cos^2 \theta</math>. That length is also equal to the summed lengths of <math>\overline{BD}</math> and <math>\overline{AF}</math>, i.e. <math>1 + \cos (2\theta)</math>. Therefore, <math>2 \cos^2\theta = 1 + \cos (2\theta)</math>. Dividing both sides by <math>2</math> yields the power-reduction formula for cosine: <math>\cos^2\theta =</math> <math display="inline">\frac{1}{2}(1 + \cos (2\theta)) </math>. The half-angle formula for cosine can be obtained by replacing <math>\theta</math> with <math>\theta/2</math> and taking the square-root of both sides: <math display="inline">\cos \left(\theta / 2\right) = \pm \sqrt{\left(1 + \cos \theta\right) /2}.</math>]] }}
:<math>\sin{\frac{\pi}{18}}=
{{stack |float=left |[[File:Diagram showing how to derive the power reducing formula for sine.svg|class=skin-invert-image|thumb|left|upright=1.3|Sine power-reduction formula: an illustrative diagram. The shaded blue and green triangles, and the red-outlined triangle <math>EBD</math> are all right-angled and similar, and all contain the angle <math>\theta</math>. The hypotenuse <math>\overline{BD}</math> of the red-outlined triangle has length <math>2 \sin \theta</math>, so its side <math>\overline{DE}</math> has length <math>2 \sin^2 \theta</math>. The line segment <math>\overline{AE}</math> has length <math>\cos 2 \theta</math> and sum of the lengths of <math>\overline{AE}</math> and <math>\overline{DE}</math> equals the length of <math>\overline{AD}</math>, which is 1. Therefore, <math>\cos 2 \theta + 2 \sin^2 \theta = 1 </math>. Subtracting <math>\cos 2 \theta</math> from both sides and dividing by 2 by two yields the power-reduction formula for sine: <math> \sin^2 \theta = </math> <math display="inline">\frac{1}{2} (1 - \cos (2\theta))</math>. The half-angle formula for sine can be obtained by replacing <math>\theta</math> with <math>\theta/2</math> and taking the square-root of both sides: <math display="inline">\sin \left(\theta/2\right) = \pm \sqrt{\left(1 - \cos \theta\right)/2}.</math> Note that this figure also illustrates, in the vertical line segment <math>\overline{EB}</math>, that <math>\sin 2 \theta = 2 \sin \theta \cos \theta</math>.]] }}
\frac{1}{6} \sum_{j=0}^{\infty} \frac{(3j)!}{27^j j!\,(2j+1)!}
{{clear}}
\!</math>
 
In general terms of powers of <math>\sin \theta</math> or <math>\cos \theta</math> the following is true, and can be deduced using [[De Moivre's formula]], [[Euler's formula]] and the [[binomial theorem]].
With the [[golden ratio]] φ:
 
{|class="wikitable"
:<math>\cos \left( \frac {\pi} {5} \right) = \cos 36^\circ={\sqrt{5}+1 \over 4} = \varphi /2
! scope="col" | if ''n'' is&nbsp;...
</math>
! scope="col" | <math>\cos^n \theta</math>
! scope="col" | <math>\sin^n \theta</math>
|-
! scope="row" | ''n'' is odd
|<math>\cos^n\theta = \frac{2}{2^n} \sum_{k=0}^{\frac{n-1}{2}} \binom{n}{k} \cos{\big((n-2k)\theta\big)}</math>
|<math>\sin^n\theta = \frac{2}{2^n} \sum_{k=0}^{\frac{n-1}{2}} (-1)^{\left(\frac{n-1}{2}-k\right)} \binom{n}{k} \sin{\big((n-2k)\theta\big)}</math>
|-
! scope="row" | ''n'' is even
|<math>\cos^n\theta = \frac{1}{2^n} \binom{n}{\frac{n}{2}} + \frac{2}{2^n} \sum_{k=0}^{\frac{n}{2}-1} \binom{n}{k} \cos{\big((n-2k)\theta\big)}</math>
|<math>\sin^n\theta = \frac{1}{2^n} \binom{n}{\frac{n}{2}} + \frac{2}{2^n} \sum_{k=0}^{\frac{n}{2}-1} (-1)^{\left(\frac{n}{2}-k\right)} \binom{n}{k} \cos{\big((n-2k)\theta\big)}</math>
|}
 
==Product-to-sum and sum-to-product identities==<!-- [[Standing wave]] links to this section -->
:<math>\sin \left( \frac {\pi} {10} \right) = \sin 18^\circ = {\sqrt{5}-1 \over 4} = {\varphi - 1 \over 2} = {1 \over 2\varphi}</math>
[[File:visual_proof_prosthaphaeresis_cosine_formula.svg|class=skin-invert-image|thumb|upright|Proof of the sum-and-difference-to-product cosine identity for prosthaphaeresis calculations using an [[isosceles triangle]] ]]
The product-to-sum identities<ref>Abramowitz and Stegun, p.&nbsp;72, 4.3.31–33</ref> or [[prosthaphaeresis]] formulae can be proven by expanding their right-hand sides using the [[#Angle sum and difference identities|angle addition theorems]]. Historically, the first four of these were known as '''Werner's formulas''', after [[Johannes Werner]] who used them for astronomical calculations.<ref>{{Cite book |last=Eves |first=Howard |title=An introduction to the history of mathematics |date=1990 |publisher=Saunders College Pub |isbn=0-03-029558-0 |edition=6th |___location=Philadelphia |page=309 |oclc=20842510}}</ref> See [[Amplitude modulation#Simplified analysis of standard AM|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===
Also see [[exact trigonometric constants]].
 
The product of two sines or cosines of different angles can be converted to a sum of trigonometric functions of a sum and difference of those angles:
==Calculus==
In [[calculus]] the relations stated below require angles to be measured in [[radian]]s; 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, their derivatives can be found by verifying two limits. The first is:
 
<math display=block>\begin{align}
:<math>\lim_{x\rightarrow 0}\frac{\sin(x)}{x}=1,</math>
\cos \theta\, \cos \varphi &= \tfrac12\bigl(\!\!~\cos(\theta - \varphi) + \cos(\theta + \varphi)\bigr), \\[5mu]
\sin \theta\, \sin \varphi &= \tfrac12\bigl(\!\!~\cos(\theta - \varphi) - \cos(\theta + \varphi)\bigr), \\[5mu]
\sin \theta\, \cos \varphi &= \tfrac12\bigl(\!\!~\sin(\theta + \varphi) + \sin(\theta - \varphi)\bigr), \\[5mu]
\cos \theta\, \sin \varphi &= \tfrac12\bigl(\!\!~\sin(\theta + \varphi) - \sin(\theta - \varphi)\bigr).
\end{align}</math>
As a corollary, the product or quotient of tangents can be converted to a quotient of sums of cosines or sines, respectively,
<math display=block>\begin{align}
\tan \theta\, \tan \varphi &= \frac{\cos(\theta-\varphi)-\cos(\theta+\varphi)}
{\cos(\theta-\varphi)+\cos(\theta+\varphi)}, \\[5mu]
\frac{\tan \theta}{\tan \varphi} &= \frac{\sin(\theta + \varphi) + \sin(\theta - \varphi)}
{\sin(\theta + \varphi) - \sin(\theta - \varphi)}.
\end{align}</math>
 
More generally, for a product of any number of sines or cosines,{{cn|date=August 2025}}
verified using the [[unit circle]] and [[squeeze theorem]]. It may be tempting to propose to use [[L'Hôpital'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'Hôpital's rule, one is reasoning circularly&mdash;a logical fallacy. The second limit is:
<math display=block>\begin{align}
\prod_{k=1}^n \cos \theta_k
&= \frac{1}{2^n}\sum_{e\in S} \cos(e_1\theta_1+\cdots+e_n\theta_n) \\[5mu]
& \text{where }e = (e_1,\ldots,e_n) \in S=\{1,-1\}^n, \\
 
\prod_{k=1}^n \sin\theta_k
:<math>\lim_{x\rightarrow 0}\frac{1-\cos(x)}{x}=0,</math>
&=\frac{(-1)^{\left\lfloor\frac
{n}{2}\right\rfloor}}{2^n}\begin{cases}
\displaystyle\sum_{e\in S}\cos(e_1\theta_1+\cdots+e_n\theta_n)\prod_{j=1}^n e_j \;\text{if}\; n\; \text{is even},\\
\displaystyle\sum_{e\in S}\sin(e_1\theta_1+\cdots+e_n\theta_n)\prod_{j=1}^n e_j \;\text{if}\; n\; \text{is odd}.
\end{cases}
\end{align}</math>
 
===Sum-to-product identities===
verified using the identity tan(''x''/2)&nbsp;=&nbsp;(1&nbsp;&minus;&nbsp;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&prime;(''x'')&nbsp;=&nbsp;cos(''x'') and cos&prime;(''x'')&nbsp;=&nbsp;&minus;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.
[[File:Diagram illustrating sum to product identities for sine and cosine.svg|class=skin-invert-image|thumb|400px|Diagram illustrating sum-to-product identities for sine and cosine. The blue right-angled triangle has angle <math>\theta</math> and the red right-angled triangle has angle <math>\varphi</math>. Both have a hypotenuse of length 1. Auxiliary angles, here called <math>p</math> and <math>q</math>, are constructed such that <math>p=\tfrac12(\theta+\varphi)</math> and <math>q=\tfrac12(\theta-\varphi)</math>. Therefore, <math>\theta = p+q </math> and <math>\varphi = p-q </math>. This allows the two congruent purple-outline triangles <math>AFG</math> and <math>FCE</math> to be constructed, each with hypotenuse <math>\cos q</math> and angle <math>p</math> at their base. The sum of the heights of the red and blue triangles is <math>\sin \theta + \sin \varphi</math>, and this is equal to twice the height of one purple triangle, i.e. <math>2 \sin p \cos q</math>. Writing <math>p</math> and <math>q</math> in that equation in terms of <math>\theta</math> and <math>\varphi</math> yields a sum-to-product identity for sine: <math>\sin \theta + \sin \varphi = 2 \sin \tfrac12 (\theta + \varphi)\, \cos\tfrac12(\theta - \varphi)</math>. Similarly, the sum of the widths of the red and blue triangles yields the corresponding identity for cosine.]]
The sum of sines or cosines of two angles can be converted to a product of sines or cosines of the mean and half the difference of the angles:<ref name="A&S sum-to-product">Abramowitz and Stegun, p.&nbsp;72, 4.3.34–39</ref>
 
<math display=block>\begin{align}
:<math>{d \over dx}\sin(x) = \cos(x)</math>
\sin \theta + \sin \varphi
 
&= 2 \sin \tfrac12(\theta + \varphi)\, \cos \tfrac12(\theta - \varphi ), \\[5mu]
The rest of the trigonometric functions can be differentiated using the above identities and the rules of [[derivative|differentiation]]. We have:
\sin \theta - \sin \varphi
&= 2 \cos \tfrac12(\theta + \varphi )\, \sin \tfrac12(\theta - \varphi), \\[5mu]
\cos \theta + \cos \varphi
&= 2 \cos \tfrac12 (\theta + \varphi)\, \cos\tfrac12(\theta - \varphi), \\[5mu]
\cos \theta - \cos \varphi
&= -2\sin \tfrac12 (\theta + \varphi)\, \sin\tfrac12(\theta - \varphi).
\end{align}</math>
 
The sum of the tangent of two angles can be converted to a quotient of the sine of angles divided by the product of the cosines:{{r|A&S sum-to-product}}
:<math>
<math display=block>
\begin{matrix}
\tan\theta\pm\tan\varphi
{d \over dx} \sin x =& \cos x ,& {d \over dx} \arcsin x =& {1 \over \sqrt{1 - x^2} } \\ \\
=\frac{\sin(\theta\pm \varphi)}{\cos\theta\,\cos\varphi}.
{d \over dx} \cos x =& -\sin x ,& {d \over dx} \arccos x =& {-1 \over \sqrt{1 - x^2}} \\ \\
{d \over dx} \tan x =& \sec^2 x ,& {d \over dx} \arctan x =& { 1 \over 1 + x^2} \\ \\
{d \over dx} \cot x =& -\csc^2 x ,& {d \over dx} \arccot x =& {-1 \over 1 + x^2} \\ \\
{d \over dx} \sec x =& \tan x \sec x ,& {d \over dx} \arcsec x =& { 1 \over |x|\sqrt{x^2 - 1}} \\ \\
{d \over dx} \csc x =& -\csc x \cot x ,& {d \over dx} \arccsc x =& {-1 \over |x|\sqrt{x^2 - 1}}
\end{matrix}
</math>
 
=== Hermite's cotangent identity ===
The integral identities can be found in "[[list of integrals of trigonometric functions]]".
{{Main|Hermite's cotangent identity}}
 
[[Charles Hermite]] demonstrated the following identity.<ref>{{cite journal|first=Warren P. |last=Johnson |title=Trigonometric Identities à la Hermite |journal=[[American Mathematical Monthly]] |volume=117 |issue=4 |date=Apr 2010 |pages=311–327 |doi=10.4169/000298910x480784|s2cid=29690311 }}</ref> Suppose <math>a_1, \ldots, a_n</math> are [[complex number]]s, no two of which differ by an integer multiple of&nbsp;{{pi}}. Let
===Implications===
The fact that the differentiation of trigonometric functions (sine and cosine) results in [[linear combination]]s of the same two functions is of fundamental importance to many fields of mathematics, including [[differential equations]] and [[fourier transform]]ations.
 
<math display="block">A_{n,k} = \prod_{\begin{smallmatrix} 1 \le j \le n \\ j \neq k \end{smallmatrix}} \cot(a_k - a_j)</math>
==Geometric proofs==
 
(in particular, <math>A_{1,1},</math> being an [[empty product]], is&nbsp;1). Then
These proofs apply directly only to acute angles, but the identities are still correct even when generalized to all angles. In this way, most of the trigonometric identities are deducible from elementary geometry, though many definitions and concepts have to be expanded.
 
<math display="block">\cot(z - a_1)\cdots\cot(z - a_n) = \cos\frac{n\pi}{2} + \sum_{k=1}^n A_{n,k} \cot(z - a_k).</math>
===sin(''x'' + ''y'') <nowiki>=</nowiki> sin(''x'') cos(''y'') + cos(''x'') sin(''y'')===
 
The simplest non-trivial example is the case&nbsp;{{math|1=''n''&nbsp;=&nbsp;2}}:
 
<math display="block">\cot(z - a_1)\cot(z - a_2) = -1 + \cot(a_1 - a_2)\cot(z - a_1) + \cot(a_2 - a_1)\cot(z - a_2).</math>
<div style="float:right;">[[Image:sinesum.png]]</div>
 
=== Finite products of trigonometric functions ===
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.
 
For [[coprime]] integers {{mvar|n}}, {{mvar|m}}
Angle ''x'' = Angle BAC = Angle ACE = Angle CDE.
 
<math display="block">\prod_{k=1}^n \left(2a + 2\cos\left(\frac{2 \pi k m}{n} + x\right)\right) = 2\left( T_n(a)+{(-1)}^{n+m}\cos(n x) \right)</math>
EG = BC.
 
where {{mvar|T<sub>n</sub>}} is the [[Chebyshev polynomial]].{{citation needed|date=October 2023}}
:<math> \sin(x + y) \,</math>
 
The following relationship holds for the sine function
:<math> = \frac {DG} {AD} \,</math>
 
:<math> display="block">\prod_{k=1}^{n-1} \sin\left(\frac {EG + DEk\pi} {ADn}\right) = \,frac{n}{2^{n-1}}.</math>
 
More generally for an integer {{math|''n'' > 0}}<ref>{{cite web |title=Product Identity Multiple Angle |url=https://math.stackexchange.com/q/2095330 }}</ref>
:<math> = \frac {BC + DE} {AD} \,</math>
 
:<math display="block">\sin(nx) = 2^{n-1}\frac prod_{BCk=0}^{n-1} \sin\left(\frac{ADk}{n}\pi + x\fracright) = 2^{n-1}\prod_{k=1}^{DEn} \sin\left(\frac{ADk}{n}\pi - x\,right).</math>
 
or written in terms of the [[chord (geometry)|chord]] function <math display=inline>\operatorname{crd}x \equiv 2\sin\tfrac12x</math>,
:<math> = \frac{BC}{AD} \cdot \frac{AC}{AC} + \frac{DE}{AD} \cdot \frac{CD}{CD} \,</math>
 
:<math> display= "block">\frac{BC}operatorname{ACcrd}(nx) \cdot= \fracprod_{ACk=1}^{ADn} + \fracoperatorname{DEcrd}{CD} \cdot left(\frac{CDk}{ADn}2\pi - x\,right).</math>
 
This comes from the [[Factorization of polynomials|factorization of the polynomial]] <math display=inline>z^n - 1</math> into linear factors (cf. [[root of unity]]): For any complex {{mvar|z}} and an integer {{math|''n'' > 0}},
:<math> = \sin( x ) \cos( y ) + \cos( x ) \sin( y ). \,</math>
 
<math display="block">z^n - 1 = \prod_{k=1}^{n}\left( z - \exp\Bigl(\frac{k}{n}2\pi i\Bigr)\right).</math>
===cos(''x'' + ''y'') <nowiki>=</nowiki> cos(''x'') cos(''y'') &minus; sin(''x'') sin(''y'')===
Using the above figure:
 
== Linear combinations ==
:<math> \cos(x + y) \,</math>
For some purposes it is important to know that any linear combination of sine waves of the same period or frequency but different [[phase (waves)|phase shifts]] is also a sine wave with the same period or frequency, but a different phase shift. This is useful in [[sinusoid]] [[data fitting]], because the measured or observed data are linearly related to the {{mvar|a}} and {{mvar|b}} unknowns of the [[in-phase and quadrature components]] basis below, resulting in a simpler [[Jacobian matrix and determinant|Jacobian]], compared to that of <math>c</math> and <math>\varphi</math>.
 
=== Sine and cosine ===
:<math> = \frac {AG} {AD} \,</math>
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,<ref>Apostol, T.M. (1967) Calculus. 2nd edition. New York, NY, Wiley. Pp 334-335.</ref><ref name="ReferenceB">{{MathWorld|id=HarmonicAdditionTheorem|title=Harmonic Addition Theorem}}</ref>
 
:<math> display="block">a\cos x+b\frac {AB - GB} {AD} sin x=c\cos(x+\,varphi)</math>
 
where <math>c</math> and <math>\varphi</math> are defined as so:
:<math> = \frac {AB - EC} {AD} \,</math>
 
<math display="block">\begin{align}
:<math> = \frac {AB} {AD} - \frac {EC} {AD} \,</math>
c &= \sgn(a) \sqrt{a^2 + b^2}, \\
\varphi &= {\arctan}\bigl({-b/a}\bigr),
\end{align}</math>
 
given that <math>a \neq 0.</math>
:<math> = \frac{AB}{AD} \cdot \frac{AC}{AC} - \frac{EC}{AD} \cdot \frac{CD}{CD} \,</math>
 
=== Arbitrary phase shift ===
:<math> = \frac{AB}{AC} \cdot \frac{AC}{AD} - \frac{EC}{CD} \cdot \frac{CD}{AD} \,</math>
More generally, for arbitrary phase shifts, we have
 
:<math> display="block">a \cossin( x )+ \cos(theta_a) y )+ -b \sin( x + \theta_b)= c \sin( y x+\varphi). \,</math>
 
where <math>c</math> and <math>\varphi</math> satisfy:
==Proofs of cos(''x'' &minus; ''y'') and sin(''x'' &minus; ''y'') formulæ==
 
<math display="block">\begin{align}
The formulæ for cos(''x''&nbsp;&minus;&nbsp;''y'') and sin(''x''&nbsp;&minus;&nbsp;''y'') are easily proven using the formulæ for cos(''x''&nbsp;+&nbsp;''y'') and sin(''x''&nbsp;+&nbsp;''y''), respectively
c^2 &= a^2 + b^2 + 2ab\cos \left(\theta_a - \theta_b \right) , \\
\tan \varphi &= \frac{a \sin \theta_a + b \sin \theta_b}{a \cos \theta_a + b \cos \theta_b}.
\end{align}</math>
 
=== More than two sinusoids ===
===sin(''x'' &minus; ''y'') <nowiki>=</nowiki> sin(''x'') cos(''y'') &minus; cos(''x'') sin(''y'')===
{{See also|phasor (sine waves)#Addition|label1=Phasor addition}}The general case reads<ref name="ReferenceB" />
<math display="block">\sum_i a_i \sin(x + \theta_i) = a \sin(x + \theta),</math>
where
<math display="block">a^2 = \sum_{i,j}a_i a_j \cos(\theta_i - \theta_j)</math>
and
<math display="block">\tan\theta = \frac{\sum_i a_i \sin\theta_i}{\sum_i a_i \cos\theta_i}.</math>
 
== Lagrange's trigonometric identities ==
To begin, we substitute ''y'' with &minus;''y'' into the sin(''x''&nbsp;+&nbsp;''y'') formula:
These identities, named after [[Joseph Louis Lagrange]], are:<ref name=Muniz>{{cite journal |first=Eddie |last=Ortiz Muñiz |date=Feb 1953 |volume=21 |number=2 |title=A Method for Deriving Various Formulas in Electrostatics and Electromagnetism Using Lagrange's Trigonometric Identities |journal=American Journal of Physics |page=140 | doi=10.1119/1.1933371 | bibcode=1953AmJPh..21..140M }}</ref><ref>{{cite book |title=Ordinary and Partial Differential Equations: With Special Functions, Fourier Series, and Boundary Value Problems | edition=illustrated |first1=Ravi P. |last1=Agarwal |first2=Donal |last2=O'Regan |publisher=Springer Science & Business Media |year=2008 |isbn=978-0-387-79146-3 |page=185 |url=https://books.google.com/books?id=jWvAfcNnphIC}} [https://books.google.com/books?id=jWvAfcNnphIC&pg=PA185 Extract of page 185]</ref><ref>{{cite book |title=Handbook of Mathematical Formulas and Integrals |edition=4th |first1=Alan |last1=Jeffrey |first2=Hui-hui |last2=Dai |chapter=Section 2.4.1.6 |isbn=978-0-12-374288-9 |year=2008 |publisher=Academic Press}}</ref>
<math display="block">\begin{align}
 
\sum_{k=0}^n \sin k\theta & = \frac{\cos \tfrac12\theta - \cos\left(\left(n + \tfrac12\right)\theta\right)}{2\sin\tfrac12\theta}\\[5pt]
:<math> \! \sin(x+(-y)) = \sin(x)\cos(-y) + \cos(x)\sin(-y). </math>
 
\sum_{k=1}^n \cos k\theta & = \frac{-\sin \tfrac12\theta + \sin\left(\left(n + \tfrac12\right)\theta\right)}{2\sin\tfrac12\theta}
Using the fact that sine is an [[odd function]] and cosine is an [[even function]], we get
 
\end{align}</math>
:<math> \! \sin(x-y) = \sin(x)\cos(y) - \cos(x)\sin(y). </math>
for <math>\theta \not\equiv 0 \pmod{2\pi}.</math>
 
A related function is the [[Dirichlet kernel]]:
===cos(''x'' &minus; ''y'') <nowiki>=</nowiki> cos(''x'') cos(''y'') + sin(''x'') sin(''y'')===
 
<math display="block">D_n(\theta) = 1 + 2\sum_{k=1}^n \cos k\theta
To begin, we substitute ''y'' with &minus;''y'' into the cos(''x''&nbsp;+&nbsp;''y'') formula:
= \frac{\sin\left(\left(n + \tfrac12 \right)\theta\right)}{\sin \tfrac12 \theta}.</math>
 
A similar identity is<ref>{{Cite journal |last1=Fay |first1=Temple H. |last2=Kloppers |first2=P. Hendrik |date=2001 |title=The Gibbs' phenomenon |url=http://dx.doi.org/10.1080/00207390117151 |journal=International Journal of Mathematical Education in Science and Technology |volume=32 |issue=1 |pages=73–89 |doi=10.1080/00207390117151|url-access=subscription }}</ref>
:<math> \! \cos(x+(-y)) = \cos(x)\cos(-y) - \sin(x)\sin(-y). </math>
 
<math display="block">\sum_{k=1}^n \cos (2k -1)\alpha = \frac{\sin (2n \alpha)}{2 \sin \alpha}.</math>
Using the fact that sine is an odd function and cosine is an even function, we get
 
The proof is the following. By using the [[#Angle sum and difference identities|angle sum and difference identities]],
:<math> \! \cos(x-y) = \cos(x)\cos(y) + \sin(x)\sin(y). </math>
<math display="block">\sin (A + B) - \sin (A - B) = 2 \cos A \sin B.</math>
Then let's examine the following formula,
 
<math display="block">2 \sin \alpha \sum_{k=1}^n \cos (2k - 1)\alpha = 2\sin \alpha \cos \alpha + 2 \sin \alpha \cos 3\alpha
== Exponential definitions ==
+ 2 \sin \alpha \cos 5 \alpha + \cdots + 2 \sin \alpha \cos (2n - 1) \alpha </math>
and this formula can be written by using the above identity,
 
<math display="block">\begin{align}
: <math>\sin (\theta) = \frac{e^{i\theta} - e^{-i\theta}}{2i} \,</math>
& 2 \sin \alpha \sum_{k=1}^n \cos (2k - 1)\alpha \\
&\quad= \sum_{k=1}^n (\sin (2k \alpha) - \sin (2(k - 1)\alpha)) \\
&\quad= (\sin 2\alpha - \sin 0) + (\sin 4 \alpha - \sin 2 \alpha) + (\sin 6 \alpha - \sin 4 \alpha) + \cdots
+ (\sin (2n \alpha) - \sin (2(n - 1) \alpha)) \\
&\quad= \sin (2n \alpha).
\end{align}</math>
 
So, dividing this formula with <math>2 \sin \alpha</math> completes the proof.
: <math>\cos (\theta) = \frac{e^{i\theta} + e^{-i\theta}}{2} \,</math>
 
== Certain linear fractional transformations ==
: <math>\tan (\theta) = \frac{\sin (\theta)}{\operatorname{cos} (\theta)} = \frac{e^{i\theta} - e^{-i\theta}}{i(e^{i\theta} + e^{-i\theta})} \,</math>
If <math>f(x)</math> is given by the [[Möbius transformation|linear fractional transformation]]
<math display="block">f(x) = \frac{(\cos\alpha)x - \sin\alpha}{(\sin\alpha)x + \cos\alpha},</math>
and similarly
<math display="block">g(x) = \frac{(\cos\beta)x - \sin\beta}{(\sin\beta)x + \cos\beta},</math>
then
<math display="block">f\big(g(x)\big) = g\big(f(x)\big)
= \frac{\big(\cos(\alpha+\beta)\big)x - \sin(\alpha+\beta)}{\big(\sin(\alpha+\beta)\big)x + \cos(\alpha+\beta)}.</math>
 
More tersely stated, if for all <math>\alpha</math> we let <math>f_{\alpha}</math> be what we called <math>f</math> above, then
: <math>\cot (\theta) = \frac{\cos (\theta)}{\sin (\theta)} = \tan (\theta^{-1}) = \frac{i(e^{i\theta} + e^{-i\theta})}{e^{i\theta} - e^{-i\theta}} \,</math>
<math display="block">f_\alpha \circ f_\beta = f_{\alpha+\beta}.</math>
 
If <math>x</math> is the slope of a line, then <math>f(x)</math> is the slope of its rotation through an angle of <math>- \alpha.</math>
: <math>\sec (\theta) = \frac{1}{\cos (\theta)} = \frac{2}{e^{i\theta} + e^{-i\theta}} \,</math>
 
== Relation to the complex exponential function ==
: <math>\csc (\theta) = \frac{1}{\sin (\theta)} = \frac{2i}{e^{i\theta} - e^{-i\theta}} \,</math>
{{Main|Euler's formula}}
 
Euler's formula states that, for any real number ''x'':<ref>Abramowitz and Stegun, p.&nbsp;74, 4.3.47</ref>
: <math>\operatorname{versin} (\theta) = 1 - \cos (\theta) = 1 - \frac{e^{i\theta} + e^{-i\theta}}{2} \,</math>
<math display="block">e^{ix} = \cos x + i\sin x,</math>
where ''i'' is the [[imaginary unit]]. Substituting −''x'' for ''x'' gives us:
<math display="block">e^{-ix} = \cos(-x) + i\sin(-x) = \cos x - i\sin x.</math>
 
These two equations can be used to solve for cosine and sine in terms of the [[exponential function]]. Specifically,<ref>Abramowitz and Stegun, p.&nbsp;71, 4.3.2</ref><ref>Abramowitz and Stegun, p.&nbsp;71, 4.3.1</ref>
: <math>\operatorname{vercos} (\theta) = 1 - \sin (\theta) = 1 - \frac{e^{i\theta} - e^{-i\theta}}{2i} \,</math>
<math display="block">\cos x = \frac{e^{ix} + e^{-ix}}{2}</math>
<math display="block">\sin x = \frac{e^{ix} - e^{-ix}}{2i}</math>
 
These formulae are useful for proving many other trigonometric identities. For example, that
: <math>\operatorname{exsec} (\theta) = \operatorname{sec} (\theta) - 1 \ = \frac{1}{\cos (\theta)} - 1 = \frac{1}{(\frac{e^{i\theta} + e^{-i\theta}}{2})} - 1 = \frac{2}{e^{i\theta} + e^{-i\theta}} - 1 \,</math>
{{math|1=''e''<sup>''i''(''θ''+''φ'')</sup> = ''e''<sup>''iθ''</sup> ''e''<sup>''iφ''</sup>}} means that
{{block indent|em=1.5|text={{math|1=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]].
: <math>\operatorname{excsc} (\theta) = \operatorname{csc} (\theta) - 1 \ = \frac{1}{\sin (\theta)} - 1 = \frac{1}{(\frac{e^{i\theta} - e^{-i\theta}}{2i})} - 1 = \frac{2i}{e^{i\theta} - e^{-i\theta}} - 1 \,</math>
 
{| class="wikitable"
: <math>\operatorname{sinh} (\theta) = -i\sin (i\theta) = \frac{e^{\theta} - e^{-\theta}}{2} \,</math>
!Function
!Inverse function<ref>Abramowitz and Stegun, p.&nbsp;80, 4.4.26–31</ref>
|-
|<math>\sin \theta = \frac{e^{i\theta} - e^{-i\theta}}{2i}</math>
|<math>\arcsin x = -i\, \ln \left(ix + \sqrt{1 - x^2}\right)</math>
|-
|<math>\cos \theta = \frac{e^{i\theta} + e^{-i\theta}}{2}</math>
|<math>\arccos x = -i\ln\left(x+\sqrt{x^2-1}\right)</math>
|-
|<math>\tan \theta = -i\, \frac{e^{i\theta} - e^{-i\theta}}{e^{i\theta} + e^{-i\theta}}</math>
|<math>\arctan x = \frac{i}{2} \ln \left(\frac{i + x}{i - x}\right)</math>
|-
|<math>\csc \theta = \frac{2i}{e^{i\theta} - e^{-i\theta}}</math>
|<math>\arccsc x = -i\, \ln \left(\frac{i}{x} + \sqrt{1 - \frac{1}{x^2}}\right)</math>
|-
|<math>\sec \theta = \frac{2}{e^{i\theta} + e^{-i\theta}}</math>
|<math>\arcsec x = -i\, \ln \left(\frac{1}{x} +i \sqrt{1 - \frac{1}{x^2}}\right)</math>
|-
|<math>\cot \theta = i\, \frac{e^{i\theta} + e^{-i\theta}}{e^{i\theta} - e^{-i\theta}}</math>
|<math>\arccot x = \frac{i}{2} \ln \left(\frac{x - i}{x + i}\right)</math>
|-
|[[cis (mathematics)|<math>\operatorname{cis} \theta = e^{i\theta}</math>]]
|<math>\operatorname{arccis} x = -i \ln x</math>
|}
 
== Relation to complex hyperbolic functions ==
: <math>\operatorname{cosh} (\theta) = \cos (i\theta) = \frac{e^{\theta} + e^{-\theta}}{2} \,</math>
Trigonometric functions may be deduced from [[hyperbolic functions]] with [[Complex number|complex]] arguments. The formulae for the relations are shown below<ref>{{Cite book |last1=Hawkins |first1=Faith Mary |url=https://archive.org/details/isbn_356025055/mode/2up |title=Complex Numbers and Elementary Complex Functions |last2=Hawkins |first2=J. Q. |date=March 1, 1969 |publisher=MacDonald Technical & Scientific London |isbn=978-0356025056 |___location=London |publication-date=1968 |pages=122 |language=english}}</ref><ref>{{Cite book |last=Markushevich |first=A. I. |url=https://archive.org/details/markushevich-the-remarkable-sine-functions |title=The Remarkable Sine Function |publisher=American Elsevier Publishing Company, Inc. |year=1966 |isbn=978-1483256313 |___location=New York |publication-date=1966 |pages=35–37, 81 |language=english}}</ref>.<math display="block">\begin{align}
\sin x &= -i \sinh (ix) \\
\cos x &= \cosh (ix) \\
\tan x &= -i \tanh (i x) \\
\cot x &= i \coth (i x) \\
\sec x &= \operatorname{sech} (i x) \\
\csc x &= i \operatorname{csch} (i x) \\
\end{align}</math>
 
== Series expansion ==
: <math>\operatorname{tanh} (\theta) = \frac{\operatorname{sinh} (\theta)}{\operatorname{cosh} (\theta)} = \frac{e^\theta - e^{-\theta}}{e^\theta + e^{-\theta}} = \frac{e^{2\theta} - 1}{e^{2\theta} + 1} \,</math>
When using a [[power series]] expansion to define trigonometric functions, the following identities are obtained:<ref>Abramowitz and Stegun, p.&nbsp;74, 4.3.65–66</ref>
:<math display="block">\sin x = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \cdots = \sum_{n=0}^{\infty} \frac{(-1)^nx^{2n+1}}{(2n+1)!},</math><math display="block">\cos x = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \cdots = \sum_{n=0}^{\infty} \frac{(-1)^nx^{2n}}{(2n)!}.</math>
 
== Infinite product formulae ==
: <math>\operatorname{coth} (\theta) = \frac{\operatorname{cosh} (\theta)}{\operatorname{sinh} (\theta)} = \frac{e^\theta + e^{-\theta}}{e^\theta - e^{-\theta}} = \frac{e^{2\theta} + 1}{e^{2\theta} - 1} \,</math>
For applications to [[special functions]], the following [[infinite product]] formulae for trigonometric functions are useful:<ref>Abramowitz and Stegun, p.&nbsp;75, 4.3.89–90</ref><ref>Abramowitz and Stegun, p.&nbsp;85, 4.5.68–69</ref>
 
<math display=block>\begin{align}
: <math>\operatorname{sech} (\theta) = \frac{1}{\operatorname{cosh} (\theta)} = \operatorname{sec} (i\theta) = \frac{2}{e^{\theta} + e^{-\theta}} \,</math>
\sin x &= x \prod_{n = 1}^\infty\left(1 - \frac{x^2}{\pi^2 n^2}\right), &
\cos x &= \prod_{n = 1}^\infty\left(1 - \frac{x^2}{\pi^2\left(n - \frac{1}{2}\right)\!\vphantom)^2}\right), \\[10mu]
\sinh x &= x \prod_{n = 1}^\infty\left(1 + \frac{x^2}{\pi^2 n^2}\right), &
\cosh x &= \prod_{n = 1}^\infty\left(1 + \frac{x^2}{\pi^2\left(n - \frac{1}{2}\right)\!\vphantom)^2}\right).
\end{align}</math>
 
== Inverse trigonometric functions ==
: <math>\operatorname{csch} (\theta) = \frac{1}{\operatorname{sinh} (\theta)} = i \cos (i\theta) = \frac{2}{e^{\theta} - e^{-\theta}} \,</math>
{{Main|Inverse trigonometric functions}}
 
The following identities give the result of composing a trigonometric function with an inverse trigonometric function.<ref>{{harvnb|Abramowitz|Stegun|1972|loc=p. 73, 4.3.45}}</ref>
: <math>\operatorname{versinh} (\theta) = 1 - \operatorname{cosh} (\theta) = 1 - \cos (i\theta) = 1 - \frac{e^{\theta} + e^{-\theta}}{2} \,</math>
 
<math display=block>
: <math>\operatorname{vercosh} (\theta) = 1 - \operatorname{sinh} (\theta) = 1 + i\sin (i\theta) = 1 - \frac{e^{\theta} - e^{-\theta}}{2} \,</math>
\begin{align}
\sin(\arcsin x) &=x
& \cos(\arcsin x) &=\sqrt{1-x^2}
& \tan(\arcsin x) &=\frac{x}{\sqrt{1 - x^2}}
\\
\sin(\arccos x) &=\sqrt{1-x^2}
& \cos(\arccos x) &=x
& \tan(\arccos x) &=\frac{\sqrt{1 - x^2}}{x}
\\
\sin(\arctan x) &=\frac{x}{\sqrt{1+x^2}}
& \cos(\arctan x) &=\frac{1}{\sqrt{1+x^2}}
& \tan(\arctan x) &=x
\\
\sin(\arccsc x) &=\frac{1}{x}
& \cos(\arccsc x) &=\frac{\sqrt{x^2 - 1}}{x}
& \tan(\arccsc x) &=\frac{1}{\sqrt{x^2 - 1}}
\\
\sin(\arcsec x) &=\frac{\sqrt{x^2 - 1}}{x}
& \cos(\arcsec x) &=\frac{1}{x}
& \tan(\arcsec x) &=\sqrt{x^2 - 1}
\\
\sin(\arccot x) &=\frac{1}{\sqrt{1+x^2}}
& \cos(\arccot x) &=\frac{x}{\sqrt{1+x^2}}
& \tan(\arccot x) &=\frac{1}{x}
\\
\end{align}
</math>
 
Taking the [[multiplicative inverse]] of both sides of the each equation above results in the equations for <math>\csc = \frac{1}{\sin}, \;\sec = \frac{1}{\cos}, \text{ and } \cot = \frac{1}{\tan}.</math>
: <math>\operatorname{exsech} (\theta) = \operatorname{sech} (\theta) - 1 = \frac{1}{\operatorname{cosh} (\theta)} - 1 = \operatorname{sec} (i\theta) = \frac{2}{e^{\theta} + e^{-\theta}} - 1 \,</math>
The right hand side of the formula above will always be flipped.
For example, the equation for <math>\cot(\arcsin x)</math> is:
<math display=block>\cot(\arcsin x) = \frac{1}{\tan(\arcsin x)} = \frac{1}{\frac{x}{\sqrt{1 - x^2}}} = \frac{\sqrt{1 - x^2}}{x}</math>
while the equations for <math>\csc(\arccos x)</math> and <math>\sec(\arccos x)</math> are:
<math display=block>\csc(\arccos x) = \frac{1}{\sin(\arccos x)} = \frac{1}{\sqrt{1-x^2}} \qquad \text{ and }\quad \sec(\arccos x) = \frac{1}{\cos(\arccos x)} = \frac{1}{x}.</math>
 
The following identities are implied by the [[#Reflections|reflection identities]]. They hold whenever <math>x, r, s, -x, -r,</math> and <math>-s</math> are in the domains of the relevant functions.
: <math>\operatorname{excsch} (\theta) = \operatorname{csch} (\theta) - 1 = \frac{1}{\operatorname{sinh} (\theta)} - 1 = i \cos (i\theta) = \frac{2}{e^{\theta} - e^{-\theta}} - 1 \,</math>
<math display=block>\begin{alignat}{9}
\frac{\pi}{2} ~&=~ \arcsin(x) &&+ \arccos(x) ~&&=~ \arctan(r) &&+ \arccot(r) ~&&=~ \arcsec(s) &&+ \arccsc(s) \\[0.4ex]
\pi ~&=~ \arccos(x) &&+ \arccos(-x) ~&&=~ \arccot(r) &&+ \arccot(-r) ~&&=~ \arcsec(s) &&+ \arcsec(-s) \\[0.4ex]
0 ~&=~ \arcsin(x) &&+ \arcsin(-x) ~&&=~ \arctan(r) &&+ \arctan(-r) ~&&=~ \arccsc(s) &&+ \arccsc(-s) \\[1.0ex]
\end{alignat}</math>
 
Also,<ref name=Wu>Wu, Rex H. "Proof Without Words: Euler's Arctangent Identity", ''Mathematics Magazine'' 77(3), June 2004, p. 189.</ref>
: <math>\arcsin (\theta) = -i \ln (i\theta + \sqrt{1 - \theta^2}) \,</math>
<math display=block>\begin{align}
\arctan x + \arctan \dfrac{1}{x}
&= \begin{cases}
\frac{\pi}{2}, & \text{if } x > 0 \\
- \frac{\pi}{2}, & \text{if } x < 0
\end{cases} \\
\arccot x + \arccot \dfrac{1}{x}
&= \begin{cases}
\frac{\pi}{2}, & \text{if } x > 0 \\
\frac{3\pi}{2}, & \text{if } x < 0
\end{cases} \\
\end{align}</math>
<math display=block>\arccos \frac{1}{x} = \arcsec x \qquad \text{ and } \qquad \arcsec \frac{1}{x} = \arccos x</math>
<math display=block>\arcsin \frac{1}{x} = \arccsc x \qquad \text{ and } \qquad \arccsc \frac{1}{x} = \arcsin x</math>
 
The [[arctangent]] function can be expanded as a series:<ref>{{citation | title = Algorithmic determination of a large integer in the two-term Machin-like formula for π | journal = Mathematics |author1=S. M. Abrarov|author2=R. K. Jagpal|author3=R. Siddiqui|author4=B. M. Quine | doi = 10.3390/math9172162 | year = 2021 | volume = 9 | issue = 17 | at = 2162| doi-access = free | arxiv = 2107.01027 }}</ref>
: <math>\arccos (\theta) = -i \ln (\theta + i\sqrt{1 - \theta^2}) \,</math>
<math display=block>
\arctan(nx) = \sum_{m = 1}^n \arctan\frac{x}{1 + (m - 1)mx^2}
</math>
 
== Identities without variables ==
: <math>\arctan (\theta) = \frac{\ln (\frac{i + \theta}{i - \theta}) i}{2} \,</math>
 
In terms of the [[arctangent]] function we have<ref name="Wu" />
: <math>\arccot (\theta) = \arctan (-\theta) = \frac{i \ln (\frac{i - \theta}{i +
<math display="block">\arctan \frac{1}{2} = \arctan \frac{1}{3} + \arctan \frac{1}{7}.</math>
\theta})}{2} \,</math>
 
The curious identity known as [[Morrie's law]],
: <math>\arcsec (\theta) = \arccos (\theta^{-1}) = -i \ln (\theta^{-1} + \sqrt{1 - \theta^{-2}}i) \,</math>
<math display="block">\cos 20^\circ\cdot\cos 40^\circ\cdot\cos 80^\circ = \frac{1}{8},</math>
 
is a special case of an identity that contains one variable:
: <math>\arccsc (\theta) = \arcsin (\theta^{-1}) = -i \ln (i\theta^{-1} + \sqrt{1 - \theta^{-2}}) \,</math>
<math display="block">\prod_{j=0}^{k-1}\cos\left(2^j x\right) = \frac{\sin\left(2^k x\right)}{2^k\sin x}.</math>
 
Similarly,
: <math>\operatorname{arcversin} (\theta) = \arccos (1 - \theta) = -i \ln (1 - \theta + i\sqrt{1 - (1 - \theta)^2}) \,</math>
<math display="block">\sin 20^\circ\cdot\sin 40^\circ\cdot\sin 80^\circ = \frac{\sqrt{3}}{8}</math>
is a special case of an identity with <math>x = 20^\circ</math>:
<math display="block">\sin x \cdot \sin \left(60^\circ - x\right) \cdot \sin \left(60^\circ + x\right) = \frac{\sin 3x}{4}.</math>
 
For the case <math>x = 15^\circ</math>,
: <math>\operatorname{arcvercos} (\theta) = \operatorname{arcsin} (1 - \theta) = -i \ln (i - i\theta + \sqrt{1 - (1 - \theta)^2}) \,</math>
<math display="block">\begin{align}
\sin 15^\circ\cdot\sin 45^\circ\cdot\sin 75^\circ &= \frac{\sqrt{2}}{8}, \\
\sin 15^\circ\cdot\sin 75^\circ &= \frac{1}{4}.
\end{align}</math>
 
For the case <math>x = 10^\circ</math>,
: <math>\operatorname{arcexsec} (\theta) = \arcsec (1 + \theta) = -i \ln ((\theta + 1)^{-1} + i \sqrt{1 - (1 + \theta)^2}) \,</math>
<math display="block">\sin 10^\circ\cdot\sin 50^\circ\cdot\sin 70^\circ = \frac{1}{8}.</math>
 
The same cosine identity is
: <math>\operatorname{arcexcsc} (\theta) = \arccsc (1 + \theta) = -i \ln (i (\theta + 1)^{-1} + \sqrt{1 - (1 + \theta)^2}) \,</math>
<math display="block">\cos x \cdot \cos \left(60^\circ - x\right) \cdot \cos \left(60^\circ + x\right) = \frac{\cos 3x}{4}.</math>
 
Similarly,
: <math>\operatorname{arcsinh} (\theta) = \ln (\theta + \sqrt{\theta^2 + 1}) \,</math>
<math display="block">\begin{align}
\cos 10^\circ\cdot\cos 50^\circ\cdot\cos 70^\circ &= \frac{\sqrt{3}}{8}, \\
\cos 15^\circ\cdot\cos 45^\circ\cdot\cos 75^\circ &= \frac{\sqrt{2}}{8}, \\
\cos 15^\circ\cdot\cos 75^\circ &= \frac{1}{4}.
\end{align}</math>
 
Similarly,
: <math>\operatorname{arccosh} (\theta) = \ln (\theta + \sqrt{\theta^2 - 1}) \,</math>
<math display="block">\begin{align}
\tan 50^\circ\cdot\tan 60^\circ\cdot\tan 70^\circ &= \tan 80^\circ, \\
\tan 40^\circ\cdot\tan 30^\circ\cdot\tan 20^\circ &= \tan 10^\circ.
\end{align}</math>
 
The following is perhaps not as readily generalized to an identity containing variables (but see explanation below):
: <math>\operatorname{arctanh} (\theta) = \frac{\ln (\frac{i + \theta}{i - \theta})}{2} \,</math>
<math display="block">\cos 24^\circ + \cos 48^\circ + \cos 96^\circ + \cos 168^\circ = \frac{1}{2}.</math>
 
Degree measure ceases to be more felicitous than radian measure when we consider this identity with 21 in the denominators:
: <math>\operatorname{arccoth} (\theta) = \operatorname{arctanh} (-\theta) = \frac{\ln (\frac{i - \theta}{i + \theta})}{2} \,</math>
<math display="block">
\cos \frac{2\pi}{21} +
\cos\left(2\cdot\frac{2\pi}{21}\right) +
\cos\left(4\cdot\frac{2\pi}{21}\right) +
\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}.</math>
 
The factors 1, 2, 4, 5, 8, 10&nbsp;may start to make the pattern clear: they are those integers less than {{sfrac|21|2}} that are [[Coprime|relatively prime]] to (or have no [[prime factor]]s in common with) 21. The last several examples are corollaries of a basic fact about the irreducible [[cyclotomic polynomial]]s: 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.
: <math>\operatorname{arcsech} (\theta) = \operatorname{arccosh} (\theta^{-1}) = \ln (\theta^{-1} + \sqrt{\theta^{-2} - 1}) \,</math>
 
Other cosine identities include:<ref>{{cite journal|last=Humble |first=Steve |title=Grandma's identity |journal=Mathematical Gazette |volume=88 |date=Nov 2004 |pages=524–525 |doi=10.1017/s0025557200176223|s2cid=125105552 }}</ref>
: <math>\operatorname{arccsch} (\theta) = \operatorname{arcsinh} (\theta^{-1}) = \ln (\theta^{-1} + \sqrt{\theta^{-2} + 1}) \,</math>
<math display="block">\begin{align}
2\cos \frac{\pi}{3} &= 1, \\
2\cos \frac{\pi}{5} \times 2\cos \frac{2\pi}{5} &= 1, \\
2\cos \frac{\pi}{7} \times 2\cos \frac{2\pi}{7}\times 2\cos \frac{3\pi}{7} &= 1,
\end{align}</math>
and so forth for all odd numbers, and hence
<math display="block">\cos \frac{\pi}{3}+\cos \frac{\pi}{5} \times \cos \frac{2\pi}{5} + \cos \frac{\pi}{7} \times \cos \frac{2\pi}{7} \times \cos \frac{3\pi}{7} + \dots = 1.</math>
 
Many of those curious identities stem from more general facts like the following:<ref>{{MathWorld|id=Sine|title=Sine}}</ref>
: <math>\operatorname{arcversinh} (\theta) = \frac{\operatorname{arccos} (1 - \theta)}{i} \,</math>
<math display="block">\prod_{k=1}^{n-1} \sin\frac{k\pi}{n} = \frac{n}{2^{n-1}}</math>
and
<math display="block">\prod_{k=1}^{n-1} \cos\frac{k\pi}{n} = \frac{\sin\frac{\pi n}{2}}{2^{n-1}}.</math>
 
Combining these gives us
: <math>\operatorname{arcvercosh} (\theta) = \frac{\operatorname{arcsin} \frac{\theta - 1}{i}}{i} \,</math>
<math display="block">\prod_{k=1}^{n-1} \tan\frac{k\pi}{n} = \frac{n}{\sin\frac{\pi n}{2}}</math>
 
If {{mvar|n}} is an odd number (<math>n = 2 m + 1</math>) we can make use of the symmetries to get
: <math>\operatorname{arcexsech} (\theta) = \operatorname{arcsech} (\theta + 1) = \operatorname{arccosh} ((\theta + 1)^{-1}) = \ln ((\theta + 1)^{-1} + \sqrt{(\theta + 1)^{-2} - 1}) \,</math>
<math display="block">\prod_{k=1}^{m} \tan\frac{k\pi}{2m+1} = \sqrt{2m+1}</math>
 
The transfer function of the [[Butterworth filter|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:
: <math>\operatorname{arcexcsch} (\theta) = \operatorname{arccsch} (\theta + 1) = \operatorname{arcsinh} ((\theta + 1)^{-1}) = \ln ((\theta + 1)^{-1} + \sqrt{(\theta + 1)^{-2} + 1}) \,</math>
<math display="block">\prod_{k=1}^n \sin\frac{\left(2k - 1\right)\pi}{4n} = \prod_{k=1}^{n} \cos\frac{\left(2k-1\right)\pi}{4n} = \frac{\sqrt{2}}{2^n}</math>
 
=== Computing {{pi}} ===
: <math>\operatorname{cis} (\theta) = \operatorname{cos} (\theta) + i \ \operatorname{sin} (\theta) = e^{i\theta} \,</math>
An efficient way to [[pi|compute {{pi}}]] to a [[approximations of pi|large number of digits]] is based on the following identity without variables, due to [[John Machin|Machin]]. This is known as a [[Machin-like formula]]:
<math display="block">\frac{\pi}{4} = 4 \arctan\frac{1}{5} - \arctan\frac{1}{239}</math>
or, alternatively, by using an identity of [[Leonhard Euler]]:
<math display="block">\frac{\pi}{4} = 5 \arctan\frac{1}{7} + 2 \arctan\frac{3}{79}</math>
or by using [[Pythagorean triple]]s:
<math display="block">\pi = \arccos\frac{4}{5} + \arccos\frac{5}{13} + \arccos\frac{16}{65} = \arcsin\frac{3}{5} + \arcsin\frac{12}{13} + \arcsin\frac{63}{65}.</math>
 
Others include:<ref name=Harris>Harris, Edward M. "Sums of Arctangents", in Roger B. Nelson, ''Proofs Without Words'' (1993, Mathematical Association of America), p. 39.</ref><ref name="Wu" />
: <math>\operatorname{cish} (\theta) = \operatorname{cosh} (\theta) + i \ \operatorname{sinh} (\theta) = \frac{e^{\theta} + e^{-\theta}}{2} + i \frac{e^{\theta} - e^{-\theta}}{2} = \operatorname{cos} (i\theta) + \operatorname{sin} (i\theta) \,</math>
<math display="block">\frac{\pi}{4} = \arctan\frac{1}{2} + \arctan\frac{1}{3},</math>
<math display="block">\pi = \arctan 1 + \arctan 2 + \arctan 3,</math>
<math display="block">\frac{\pi}{4} = 2\arctan \frac{1}{3} + \arctan \frac{1}{7}.</math>
 
Generally, for numbers {{math|''t''<sub>1</sub>, ..., ''t''<sub>''n''−1</sub> ∈ (−1, 1)}} for which {{math|1=''θ''<sub>''n''</sub> = Σ{{su|b=''k''=1|p=''n''−1}} arctan ''t''<sub>''k''</sub> ∈ (''π''/4, 3''π''/4)}}, let {{math|1=''t''<sub>''n''</sub> = tan(''π''/2 − ''θ''<sub>''n''</sub>) = cot ''θ''<sub>''n''</sub>}}. This last expression can be computed directly using the formula for the cotangent of a sum of angles whose tangents are {{math|''t''<sub>1</sub>, ..., ''t''<sub>''n''−1</sub>}} and its value will be in {{math|(−1, 1)}}. In particular, the computed {{math|''t''<sub>''n''</sub>}} will be rational whenever all the {{math|''t''<sub>1</sub>, ..., ''t''<sub>''n''−1</sub>}} values are rational. With these values,
: <math>\operatorname{arccis} (\theta) = \frac{\ln (\theta)}{i} \,</math>
<math display="block">\begin{align}
\frac{\pi}{2} & = \sum_{k=1}^n \arctan(t_k) \\
\pi & = \sum_{k=1}^n \sgn(t_k) \arccos\left(\frac{1 - t_k^2}{1 + t_k^2}\right) \\
\pi & = \sum_{k=1}^n \arcsin\left(\frac{2t_k}{1 + t_k^2}\right) \\
\pi & = \sum_{k=1}^n \arctan\left(\frac{2t_k}{1 - t_k^2}\right)\,,
\end{align}</math>
 
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 {{math|''t''<sub>''k''</sub>}} values is not within {{math|(−1, 1)}}. Note that if {{math|1=''t'' = ''p''/''q''}} is rational, then the {{math|(2''t'', 1 − ''t''<sup>2</sup>, 1 + ''t''<sup>2</sup>)}} values in the above formulae are proportional to the Pythagorean triple {{math|(2''pq'', ''q''<sup>2</sup> − ''p''<sup>2</sup>, ''q''<sup>2</sup> + ''p''<sup>2</sup>)}}.
: <math>\operatorname{arccish} (\theta) = \frac{\operatorname{arcsin} (\theta ^2 - 1)}{2i} = \frac{- \ln (i(\theta^2 - 1) + \sqrt{1 - (\theta^2 - 1)^2})}{2} \,</math>
 
For example, for {{math|1=''n'' = 3}} terms,
=== Tan derivation ===
<math display="block">\frac{\pi}{2} = \arctan\left(\frac{a}{b}\right) + \arctan\left(\frac{c}{d}\right) + \arctan\left(\frac{bd - ac}{ad + bc}\right)</math>
for any {{math|''a'', ''b'', ''c'', ''d'' > 0}}.
 
=== An identity of Euclid ===
:<math>\operatorname{tan} (\theta) = \,</math>
[[Euclid]] showed in Book XIII, Proposition 10 of his ''[[Euclid's Elements|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:
<math display="block">\sin^2 18^\circ + \sin^2 30^\circ = \sin^2 36^\circ.</math>
 
[[Ptolemy]] used this proposition to compute some angles in [[Ptolemy's table of chords|his table of chords]] in Book I, chapter 11 of ''[[Almagest]]''.
:<math>= \frac{\operatorname{sin} (\theta)}{\operatorname{cos} (\theta)} = \,</math>
 
== Composition of trigonometric functions ==
:<math>= \frac{\frac{e^{i\theta} - e^{-i\theta}}{2i}}{\frac{e^{i\theta} + e^{-i\theta}}{2}} = \,</math>
These identities involve a trigonometric function of a trigonometric function:<ref>[[Abramowitz and Stegun|Milton Abramowitz and Irene Stegun, ''Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables'']], [[Dover Publications]], New York, 1972, formulae 9.1.42–9.1.45</ref>
 
: <math>= \frac{2cos(e^{it \theta}sin -x) e^= J_0(t) + 2 \sum_{-i\thetak=1})}{2i(e^{i\theta}infty + e^J_{-i\theta2k}(t)} = \,cos(2kx)</math>
: <math>\sin(t \sin x) = 2 \sum_{k=0}^\infty J_{2k+1}(t) \sin\big((2k+1)x\big)</math>
: <math>\cos(t \cos x) = J_0(t) + 2 \sum_{k=1}^\infty (-1)^kJ_{2k}(t) \cos(2kx)</math>
: <math>\sin(t \cos x) = 2 \sum_{k=0}^\infty(-1)^k J_{2k+1}(t) \cos\big((2k+1)x\big)</math>
 
where {{mvar|J<sub>i</sub>}} are [[Bessel function]]s.
:<math>= \frac{e^{i\theta} - e^{-i\theta}}{i(e^{i\theta} + e^{-i\theta})} \,</math>
 
== Further "conditional" identities for the case ''α'' + ''β'' + ''γ'' = 180° ==
=== Cot derivation ===
A '''conditional trigonometric identity''' is a trigonometric identity that holds if specified conditions on the arguments to the trigonometric functions are satisfied.<ref>Er. K. C. Joshi, ''Krishna's IIT MATHEMATIKA''. Krishna Prakashan Media. Meerut, India. page 636.</ref> The following formulae apply to arbitrary plane triangles and follow from <math>\alpha + \beta + \gamma = 180^{\circ},</math> 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).<ref>Cagnoli, Antonio (1808), ''Trigonométrie rectiligne et sphérique'', p. 27.</ref>
<math display="block">\begin{align}
\tan \alpha + \tan \beta + \tan \gamma &= \tan \alpha \tan \beta \tan \gamma \\
1 &= \cot \beta \cot \gamma + \cot \gamma \cot \alpha + \cot \alpha \cot \beta \\
\cot\left(\frac{\alpha}{2}\right) + \cot\left(\frac{\beta}{2}\right) + \cot\left(\frac{\gamma}{2}\right) &= \cot\left(\frac{\alpha}{2}\right) \cot \left(\frac{\beta}{2}\right) \cot\left(\frac{\gamma}{2}\right) \\
1 &= \tan\left(\frac{\beta}{2}\right)\tan\left(\frac{\gamma}{2}\right) + \tan\left(\frac{\gamma}{2}\right)\tan\left(\frac{\alpha}{2}\right) + \tan\left(\frac{\alpha}{2}\right)\tan\left(\frac{\beta}{2}\right) \\
\sin \alpha + \sin \beta + \sin \gamma &= 4\cos\left(\frac{\alpha}{2}\right)\cos\left(\frac{\beta}{2}\right)\cos\left(\frac{\gamma}{2}\right) \\
-\sin \alpha + \sin \beta + \sin \gamma &= 4\cos\left(\frac{\alpha}{2}\right)\sin\left(\frac{\beta}{2}\right)\sin\left(\frac{\gamma}{2}\right) \\
\cos \alpha + \cos \beta + \cos \gamma &= 4\sin\left(\frac{\alpha}{2}\right)\sin\left(\frac{\beta}{2}\right)\sin \left(\frac{\gamma}{2}\right) + 1 \\
-\cos \alpha + \cos \beta + \cos \gamma &= 4\sin\left(\frac{\alpha}{2}\right)\cos\left(\frac{\beta}{2}\right)\cos \left(\frac{\gamma}{2}\right) - 1 \\
\sin (2\alpha) + \sin (2\beta) + \sin (2\gamma) &= 4\sin \alpha \sin \beta \sin \gamma \\
-\sin (2\alpha) + \sin (2\beta) + \sin (2\gamma) &= 4\sin \alpha \cos \beta \cos \gamma \\
\cos (2\alpha) + \cos (2\beta) + \cos (2\gamma) &= -4\cos \alpha \cos \beta \cos \gamma - 1 \\
-\cos (2\alpha) + \cos (2\beta) + \cos (2\gamma) &= -4\cos \alpha \sin \beta \sin \gamma + 1 \\
\sin^2\alpha + \sin^2\beta + \sin^2\gamma &= 2 \cos \alpha \cos \beta \cos \gamma + 2 \\
-\sin^2\alpha + \sin^2\beta + \sin^2\gamma &= 2 \cos \alpha \sin \beta \sin \gamma \\
\cos^2\alpha + \cos^2\beta + \cos^2\gamma &= -2 \cos \alpha \cos \beta \cos \gamma + 1 \\
-\cos^2\alpha + \cos^2\beta + \cos^2\gamma &= -2 \cos \alpha \sin \beta \sin \gamma + 1 \\
\sin^2 (2\alpha) + \sin^2 (2\beta) + \sin^2 (2\gamma) &= -2\cos (2\alpha) \cos (2\beta) \cos (2\gamma)+2 \\
\cos^2 (2\alpha) + \cos^2 (2\beta) + \cos^2 (2\gamma) &= 2\cos (2\alpha) \,\cos (2\beta) \,\cos (2\gamma) + 1 \\
1 &= \sin^2 \left(\frac{\alpha}{2}\right) + \sin^2 \left(\frac{\beta}{2}\right) + \sin^2 \left(\frac{\gamma}{2}\right) + 2\sin \left(\frac{\alpha}{2}\right) \,\sin \left(\frac{\beta}{2}\right) \,\sin \left(\frac{\gamma}{2}\right)
\end{align}</math>
 
== Historical shorthands ==
:<math>\operatorname{cot} (\theta) = \,</math>
{{Main|Versine|Exsecant}}
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.
 
==Miscellaneous==<!--This section will hopefully be sorted back into the article, If I can work out a place for the stuff to go-->
:<math>= \frac{\operatorname{cos} (\theta)}{\operatorname{sin} (\theta)} = \,</math>
 
=== Dirichlet kernel ===
:<math>= \operatorname{tan} (\frac{1}{\theta}) = \,</math>
{{Main|Dirichlet kernel}}
The '''[[Dirichlet kernel]]''' {{math|''D<sub>n</sub>''(''x'')}} is the function occurring on both sides of the next identity:
<math display="block">1 + 2\cos x + 2\cos(2x) + 2\cos(3x) + \cdots + 2\cos(nx) = \frac{\sin\left(\left(n + \frac{1}{2}\right)x\right) }{\sin\left(\frac{1}{2}x\right)}.</math>
 
The [[convolution]] of any [[integrable function]] of period <math>2 \pi</math> with the Dirichlet kernel coincides with the function's <math>n</math>th-degree Fourier approximation. The same holds for any [[Measure (mathematics)|measure]] or [[Distribution (mathematics)|generalized function]].
:<math>= \frac{\frac{e^{i\theta} + e^{-i\theta}}{2}}{\frac{e^{i\theta} - e^{-i\theta}}{2i}} = \,</math>
 
=== Tangent half-angle substitution ===
:<math>= \frac{2i(e^{i\theta} + e^{-i\theta})}{2(e^{i\theta} - e^{-i\theta})} = \,</math>
{{Main|Tangent half-angle substitution}}
 
If we set <math display="block">t = \tan\frac x 2,</math> then<ref>Abramowitz and Stegun, p.&nbsp;72, 4.3.23</ref>
:<math>= \frac{i(e^{i\theta} + e^{-i\theta})}{e^{i\theta} - e^{-i\theta}} \,</math>
<math display="block">\sin x = \frac{2t}{1 + t^2};\qquad \cos x = \frac{1 - t^2}{1 + t^2};\qquad e^{i x} = \frac{1 + i t}{1 - i t}; \qquad dx = \frac{2\,dt}{1+t^2}, </math>
where <math>e^{i x} = \cos x + i \sin x,</math> sometimes abbreviated to&nbsp;{{math|[[cis (mathematics)|cis]] ''x''}}.
 
When this substitution of <math>t</math> for {{math|tan {{sfrac|''x''|2}}}} is used in [[calculus]], it follows that <math>\sin x</math> is replaced by {{math|{{sfrac|2''t''|1 + ''t''<sup>2</sup>}}}}, <math>\cos x</math> is replaced by {{math|{{sfrac|1 − ''t''<sup>2</sup>|1 + ''t''<sup>2</sup>}}}} and the differential {{math|d''x''}} is replaced by {{math|{{sfrac|2 d''t''|1 + ''t''<sup>2</sup>}}}}. Thereby one converts rational functions of <math>\sin x</math> and <math>\cos x</math> to rational functions of <math>t</math> in order to find their [[antiderivative]]s.
=== Sec derivation ===
 
=== Viète's infinite product ===
:<math>\operatorname{sec} (\theta) = \,</math>
{{See also|Viète's formula|Sinc function}}
<math display="block">\cos\frac{\theta}{2} \cdot \cos \frac{\theta}{4}
\cdot \cos \frac{\theta}{8} \cdots = \prod_{n=1}^\infty \cos \frac{\theta}{2^n}
= \frac{\sin \theta}{\theta} = \operatorname{sinc} \theta.</math>
<!-- \operatorname{sinc} is intended to say "sinc", not "sin" and not "sine". --->
 
== See also ==
:<math>= \frac{1}{\operatorname{cos} (\theta)} = \,</math>
{{div col|colwidth=30em}}
* [[Aristarchus's inequality]]
* [[Table of derivatives#Derivatives of trigonometric functions|Derivatives of trigonometric functions]]
* [[Exact trigonometric values]] (values of sine and cosine expressed in surds)
* [[Exsecant]]
* [[Half-side formula]]
* [[Hyperbolic function]]
* Laws for solution of triangles:
** [[Law of cosines]]
*** [[Spherical law of cosines]]
** [[Law of sines]]
** [[Law of tangents]]
** [[Law of cotangents]]
** [[Mollweide's formula]]
* [[List of integrals of trigonometric functions]]
* [[Mnemonics in trigonometry]]
* [[Pentagramma mirificum]]
* [[Proofs of trigonometric identities]]
* [[Prosthaphaeresis]]
* [[Pythagorean theorem]]
* [[Tangent half-angle formula]]
* [[Trigonometric number]]
* [[Trigonometry]]
* [[Uses of trigonometry]]
* [[Versine]] and [[haversine]]
{{div col end}}
 
== References ==
:<math>= \frac{1}{(\frac{e^{i\theta} + e^{-i\theta}}{2})} = \,</math>
{{reflist|30em}}
 
== Bibliography ==
:<math>= \frac{2}{e^{i\theta} + e^{-i\theta}}\,</math>
{{Refbegin}}
* {{Cite book|editor1-last=Abramowitz|editor1-first=Milton|editor1-link=Milton Abramowitz|editor2-last=Stegun|editor2-first=Irene A.|editor2-link=Irene Stegun|title=Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables|publisher=[[Dover Publications]]|___location=New York|isbn=978-0-486-61272-0|year=1972|url=https://archive.org/details/handbookofmathe000abra }}
* {{ citation|last1 = Nielsen|first1 = Kaj L.|title = Logarithmic and Trigonometric Tables to Five Places|edition = 2nd|___location = New York|publisher = [[Barnes & Noble]]|year = 1966|lccn = 61-9103 }}
* {{citation|editor-first=Samuel M.|editor-last=Selby|title=Standard Mathematical Tables|publisher=The Chemical Rubber Co.|year=1970|edition=18th}}
{{Refend}}
 
=== CscExternal derivationlinks ===
* [http://www.jdawiseman.com/papers/easymath/surds_sin_cos.html Values of sin and cos, expressed in surds, for integer multiples of 3° and of {{sfrac|5|5|8}}°], and for the same angles [http://www.jdawiseman.com/papers/easymath/surds_csc_sec.html csc and sec] and [http://www.jdawiseman.com/papers/easymath/surds_tan.html tan]
 
:<math>\operatorname{csc} (\theta) = \,</math>
 
:<math>= \frac{1}{\operatorname{sin} (\theta)} = \,</math>
 
:<math>= \frac{1}{(\frac{e^{i\theta} - e^{-i\theta}}{2i})} = \,</math>
 
:<math>= \frac{2i}{e^{i\theta} - e^{-i\theta}}\,</math>
 
=== Arcsec derivation ===
 
:<math> \operatorname{sec} (x) = \theta \,</math>
 
:<math> \frac{1}{\operatorname{cos} (x)} = \theta \,</math>
 
:<math> \operatorname{cos} (x) = \theta^{-1} \,</math>
 
:<math> x= \operatorname{arccos} (\theta^{-1}) \,</math>
 
=== Arccsc derivation ===
 
:<math> \operatorname{csc} (x) = \theta \,</math>
 
:<math> \frac{1}{\operatorname{sin} (x)} = \theta \,</math>
 
:<math> \operatorname{sin} (x) = \theta^{-1} \,</math>
 
:<math> x= \operatorname{arcsin} (\theta^{-1}) \,</math>
 
=== Arcversin derivation ===
 
:<math> \operatorname{versin} (x) = \theta \,</math>
 
:<math> 1 - \operatorname{cos} (x) = \theta \,</math>
 
:<math> \operatorname{cos} (x) = 1 - \theta \,</math>
 
:<math> x = \operatorname{arccos} (1 - \theta) \,</math>
 
=== Arcvercos derivation ===
 
:<math> \operatorname{vercos} (x) = \theta \,</math>
 
:<math> 1 - \operatorname{sin} (x) = \theta \,</math>
 
:<math> \operatorname{sin} (x) = 1 - \theta \,</math>
 
:<math> x = \operatorname{arcsin} (1 - \theta) \,</math>
 
=== Arcexsec derivation ===
 
:<math> \operatorname{exsec} (x) = \theta \,</math>
 
:<math> \operatorname{sec} (x) - 1 = \theta \,</math>
 
:<math> \operatorname{sec} (x) = \theta + 1 \,</math>
 
:<math> x = \operatorname{arcsec} (\theta + 1) \,</math>
 
=== Arcexcsc derivation ===
 
:<math> \operatorname{excsc} (x) = \theta \,</math>
 
:<math> \operatorname{csc} (x) - 1 = \theta \,</math>
 
:<math> \operatorname{csc} (x) = \theta + 1 \,</math>
 
:<math> x = \operatorname{arccsc} (\theta + 1) \,</math>
 
=== Arcsech derivation ===
 
:<math>\theta = \operatorname{sech} (x) \,</math>
 
:<math>\theta = \frac{1}{\operatorname{cosh} (x)} \,</math>
 
:<math>\frac{1}{\theta} = \operatorname{cosh} (x) \,</math>
 
:<math>\theta^{-1} = \operatorname{cosh} (x) \,</math>
 
:<math>\operatorname{arccosh} (\theta^{-1}) = x \,</math>
 
=== Arccsch derivation ===
 
:<math>\theta = \operatorname{csch} (x) \,</math>
 
:<math>\theta = \frac{1}{\operatorname{sinh} (x)} \,</math>
 
:<math>\frac{1}{\theta} = \operatorname{sinh} (x) \,</math>
 
:<math>\theta^{-1} = \operatorname{sinh} (x) \,</math>
 
:<math>\operatorname{arcsinh} (\theta^{-1}) = x \,</math>
 
=== Arcversinh derivation ===
 
:<math>\theta = \operatorname{versinh} (x) \,</math>
 
:<math>\theta = 1 - \operatorname{cosh} (x) \,</math>
 
:<math>\theta = 1 - \operatorname{cos} (ix) \,</math>
 
:<math>1 - \theta = \operatorname{cos} (ix) \,</math>
 
:<math>\operatorname{arccos} (1 - \theta) = ix \,</math>
 
:<math>x = \frac{\operatorname{arccos} (1 - \theta)}{i} \,</math>
 
=== Arcvercosh derivation ===
 
:<math>\theta = \operatorname{vercosh} (x) \,</math>
 
:<math>\theta = 1 - \operatorname{sinh} (x) \,</math>
 
:<math>\theta = 1 + i \ \operatorname{sin} (ix) \,</math>
 
:<math>\theta - 1 = i \ \operatorname{sin} (ix) \,</math>
 
:<math>\frac{\theta - 1}{i} = \operatorname{sin} (ix) \,</math>
 
:<math>\operatorname{arcsin} \frac{\theta - 1}{i} = ix \,</math>
 
:<math>x = \frac{\operatorname{arcsin} \frac{\theta - 1}{i}}{i} \,</math>
 
=== Arcexsech derivation ===
 
:<math>\theta = \operatorname{exsech} (x) \,</math>
 
:<math>\theta = \operatorname{sech} (x) - 1 \,</math>
 
:<math>\theta + 1 = \operatorname{sech} (x) \,</math>
 
:<math>x = \operatorname{arcsech} (\theta + 1),</math>
 
=== Arcexcsch derivation ===
 
:<math>\theta = \operatorname{excsch} (x) \,</math>
 
:<math>\theta = \operatorname{csch} (x) - 1 \,</math>
 
:<math>\theta + 1 = \operatorname{csch} (x) \,</math>
 
:<math>x = \operatorname{arccsch} (\theta + 1),</math>
 
=== Arccis derivation ===
 
:<math>\theta = \operatorname{cis} (x) \,</math>
 
:<math>\theta = e^{ix} \,</math>
 
:<math>\ln \theta = \ln e^{ix} \,</math>
 
:<math>\ln \theta = ix \,</math>
 
:<math>\frac{\ln \theta}{i} = \frac{ix}{i} \,</math>
 
:<math>\frac{\ln \theta}{i} = x \,</math>
 
=== Arccish derivation ===
 
: <math>\theta = \operatorname{cish} (x) \,</math>
 
: <math>\theta = \operatorname{cosh} (x) + i \ \operatorname{sinh} (x) \,</math>
 
: <math>\theta^2 = (\operatorname{cosh} (x) + i \ \operatorname{sinh} (x))^2 \,</math>
 
: <math>\theta^2 = \operatorname{cosh^2} (x) + 2i \ \operatorname{cosh} (x)\operatorname{sinh} (x) - \operatorname{sinh^2} (x) \,</math>
 
: <math>\theta^2 = \operatorname{cosh^2} (x) + 2i \ \operatorname{cos} (ix)\operatorname{sinh} (x) - \operatorname{sinh^2} (x) \,</math>
 
: <math>\theta^2 = \operatorname{cosh^2} (x) + 2 \ \operatorname{cos} (ix)\operatorname{sin} (ix) - \operatorname{sinh^2} (x) \,</math>
 
: <math>\theta^2 = \operatorname{cosh^2} (x) + \operatorname{sin} (ix + ix) - \operatorname{sin} (ix - ix) - \operatorname{sinh^2} (x) \,</math>
 
: <math>\theta^2 = \operatorname{cosh^2} (x) + \operatorname{sin} (2ix) - \operatorname{sin} (0) - \operatorname{sinh^2} (x) \,</math>
 
: <math>\theta^2 = \operatorname{cosh^2} (x) + \operatorname{sin} (2ix) - 0 - \operatorname{sinh^2} (x) \,</math>
 
: <math>\theta^2 = \operatorname{cosh^2} (x) + \operatorname{sin} (2ix) - \operatorname{sinh^2} (x) \,</math>
 
: <math>\theta^2 = \operatorname{cosh^2} (x) - \operatorname{sinh^2} (x) + \operatorname{sin} (2ix) \,</math>
 
: <math>\theta^2 = 1 + \operatorname{sin} (2ix) \,</math>
 
: <math>\theta^2 - 1 = \operatorname{sin} (2ix) \,</math>
 
: <math>\operatorname{arcsin} (\theta^2 - 1) = 2ix \,</math>
 
: <math>x = \frac{\operatorname{arcsin} (\theta^2 - 1)}{2i} \,</math>
 
==See also==
*[[Proofs of trigonometric identities]]
*[[Uses of trigonometry]]
*[[Tangent half-angle formula]]
*[[Law of cosines]]
*[[Law of sines]]
*[[Law of tangents]]
*[[Pythagorean theorem]]
*[[Exact trigonometric constants]]
*[[Table of derivatives#Derivatives of trigonometric functions|Derivatives of trigonometric functions]]
 
==External links==
*[http://oregonstate.edu/~barnesc/documents/trigonometry.pdf A one-page proof] of many trigonometric identities using [[Euler's formula]], by Connelly Barnes.
 
{{DEFAULTSORT:Trigonometric identities}}
[[Category:Mathematical identities]]
[[Category:Trigonometry|Identities]]
[[Category:Mathematics-related lists]]
 
[[cy:Rhestr unfathiannau trigonometrig]]
[[de:Formelsammlung Trigonometrie]]
[[es:Identidad trigonométrica]]
[[fr:Identité trigonométrique]]
[[ko:삼각함수 항등식]]
[[it:Identità trigonometrica]]
[[lmo:Identitaa trigonométrica]]
[[hu:Trigonometrikus azonosságok]]
[[nl:Lijst van goniometrische identiteiten]]
[[pl:Tożsamości trygonometryczne]]
[[pt:Identidade trigonométrica]]
[[ru:Тригонометрические формулы]]
[[vi:Đẳng thức lượng giác]]
[[zh:三角恒等式]]