Hyperbolic trigonometry Since , an analog to de Moivre's formula also applies to the
hyperbolic trigonometry. For all
integers , :
(\cosh x + \sinh x)^n = \cosh nx + \sinh nx. If is a
rational number (but not necessarily an integer), then will be one of the values of .
Extension to complex numbers For any integer , the formula holds for any complex number z=x+iy :( \cos z + i \sin z)^n = \cos {nz} + i \sin {nz}. where : \begin{align} \cos z = \cos(x + iy) &= \cos x \cosh y - i \sin x \sinh y\, , \\ \sin z = \sin(x + iy) &= \sin x \cosh y + i \cos x \sinh y\, . \end{align}
Quaternions To find the roots of a
quaternion there is an analogous form of de Moivre's formula. A quaternion in the form :q = d + a\mathbf{\hat i} + b\mathbf{\hat j} + c\mathbf{\hat k} can be represented in the form :q = k(\cos \theta + \varepsilon \sin \theta) \qquad \mbox{for } 0 \leq \theta In this representation, :k = \sqrt{d^2 + a^2 + b^2 + c^2}, and the trigonometric functions are defined as :\cos \theta = \frac{d}{k} \quad \mbox{and} \quad \sin \theta = \pm \frac{\sqrt{a^2 + b^2 + c^2}}{k}. In the case that , :\varepsilon = \pm \frac{a\mathbf{\hat i} + b\mathbf{\hat j} + c\mathbf{\hat k}}{\sqrt{a^2 + b^2 + c^2}}, that is, the
unit vector. This leads to the variation of De Moivre's formula: :q^n = k^n(\cos n \theta + \varepsilon \sin n \theta).
Example To find the
cube roots of :Q = 1 + \mathbf{\hat i} + \mathbf{\hat j}+ \mathbf{\hat k}, write the quaternion in the form :Q = 2\left(\cos \frac{\pi}{3} + \varepsilon \sin \frac{\pi}{3}\right) \qquad \mbox{where } \varepsilon = \frac{\mathbf{\hat i} + \mathbf{\hat j}+ \mathbf{\hat k}}{\sqrt 3}. Then the cube roots are given by: :\sqrt[3]{Q} = \sqrt[3]{2}(\cos \theta + \varepsilon \sin \theta) \qquad \mbox{for } \theta = \frac{\pi}{9}, \frac{7\pi}{9}, \frac{13\pi}{9}.
2 × 2 matrices With matrices, \begin{pmatrix}\cos\phi & -\sin\phi \\ \sin\phi & \cos\phi \end{pmatrix}^n=\begin{pmatrix}\cos n\phi & -\sin n\phi \\ \sin n\phi & \cos n\phi \end{pmatrix} when is an integer. This is a direct consequence of the
isomorphism between the matrices of type \begin{pmatrix}a & -b \\ b & a \end{pmatrix} and the
complex plane. == References ==