4.9 Trigonometric functions

As trigonometric functions we name the functions sine ($\sin$), cosine ($\cos$), tangent ($\tg$) and cotangent ($\ctg$). Furthermore, in this chapter we will mention theirs appropriately chosen inverse functions, which are the functions arcsine ($\arcsin$), arccosine ($\arccos$) and arctangent ($\arctg$).

The functions sine and cosine are defined by using the following geometric construction or algorithm. The input is the angle $alpha$ and the output is given by $\sin(\alpha)$ and $\cos(\alpha)$. While reading the algorithm, it is advisable to look at the picture 4.10.

  1. Consider an orthogonal coordinate system with coordinate axis $x$ and $y$ and construct a unit circle $K$ (i.e. a unit circle with radius $1$ in the given axes units) and center point at the origin $(0,0)$.

  2. Clockwise from the positive direction of the $x$ axes we measure the angle44 $\alpha$. One side of this angle is the positive $x$ axis and we denote the other side by $p$.

  3. Let $A$ be the point at the intersection of $p$ and $K$. Then we construct the point $P$ as the intersection with the $y$ axis of the line passing through $A$ and parallel to $x$. In this way, we obtain the rectangular triangle $OPA$.

  4. The length of the (oriented) side $OP$ represents $\cos(\alpha)$ and the other (oriented) side $PA$ represents $\sin(\alpha)$.

Of course, the accuracy of the result depends on the accuracy of our drawing tools. Infinite accuracy can only be achieved with infinitely accurate tools (here ruler, compass and protractor). Obviously, this „calculation method“ is not very practical. In the course  BIE-ZMA we will show how to effectively evaluate functional values of (not only) these functions.

The basic values of the sine and cosine functions are summarized in the following table and you can remind yourself of their graphs in figure 4.11.

\(\alpha\) \(0\) \(\frac{\pi}{6}\) \(\frac{\pi}{4}\) \(\frac{\pi}{3}\) \(\frac{\pi}{2}\)
\(\sin \alpha\) \(0\) \(\frac{1}{2}\) \(\frac{\sqrt{2}}{2}\) \(\frac{\sqrt{3}}{2}\) \(1\)
\(\cos \alpha\) \(1\) \(\frac{\sqrt{3}}{2}\) \(\frac{\sqrt{2}}{2}\) \(\frac{1}{2}\) \(0\)

From the construction of sine and cosine, it follows immediately the following equality

\begin{equation}\label{eq-sin-a-cos}\tag{4.12} \sin^2(\alpha) + \cos^2(\alpha) = 1, \quad \alpha \in \mathbb{R}. \end{equation}

This equation is a consequence of the Pitagora's theorem applied to the triangle $OPA$ with hypotenuse of lenght $1$ and sides of lenght $\sin(\alpha)$ and $\cos(\alpha)$ (see the construction above and picture 4.10). Furthermore, it is evident from the construction that the sine function is odd and the cosine function is even, i.e.

\begin{equation*} \sin (-\alpha) = - \sin(\alpha) \quad \text{a} \quad \cos(-\alpha) = \cos(\alpha), \quad \alpha\in\R. \end{equation*}

For the domain of these function we have

\begin{equation*} D_{\sin} = D_{\cos} = \mathbb{R}. \end{equation*}

Their image set is

\begin{equation*} H_{\sin} = H_{\cos} = [ -1,1 ]. \end{equation*}

To conclude, both functions are periodic with period $2\pi$, both functions are well defined on $\mathbb{R}$ and for every $x \in \mathbb{R}$ the equality $\sin(x+2\pi)=\sin(x)$ and $\cos(x+2\pi)=\cos(x)$ holds.

Figure 4.10: Geometric construction of the functions sine and cosine.

Very useful are the so-called addition formulas for the functions sine and cosine: for any real $\alpha$ and $\beta$, it holds

\begin{equation}\label{eq-trigsum1}\tag{4.13} \sin(\alpha + \beta) = \sin(\alpha) \cos(\beta) + \cos(\alpha) \sin(\beta) \end{equation}

and

\begin{equation}\label{eq-trigsum2}\tag{4.14} \cos(\alpha + \beta) = \cos(\alpha) \cos(\beta) - \sin(\alpha) \sin(\beta). \end{equation}

These formulas could be most easily derived using the property of multiplication of complex numbers by their goniometric expression.

By using the fact that sine is and odd function and cosine is an even function, from formulas (4.13)(4.14) we immediately get analogous formulas for the difference of angles:

\begin{equation*} \begin{aligned} \sin(\alpha - \beta) & \href{In the addition formula for sine, substitute \(\beta\) with \(-\beta\) and use the even/odd property of sine and cosine.}{\class{mathpopup bg-info-subtle}{=}} \sin(\alpha) \cos(\beta) - \cos(\alpha) \sin(\beta), \\ \cos(\alpha - \beta) & \href{In the addition formula for cosine substitute \(\beta\) with \(-\beta\) and use the even/odd property of sine and cosine.}{\class{mathpopup bg-info-subtle}{=}} \cos(\alpha) \cos(\beta) + \sin(\alpha) \sin(\beta). \end{aligned} \end{equation*}

Similar formulas can be derived for both the tangent and cotangent functions. The meaning of these formulas and their use is obvious: if we have information about the values of $\sin \alpha$ and $\cos \beta$, then they allow us to get information for example on the value of $\sin(\alpha + \beta)$.

From formulas (4.13) and (4.14), we obtain the double-angle formulas, which are very often used:

\begin{equation*} \sin(2\alpha) \href{Use the addition formula for sine with \(\beta = \alpha\).}{\class{mathpopup bg-info-subtle}{=}} 2 \sin(\alpha)\cos(\alpha), \end{equation*}

and

\begin{equation}\label{eq-cos-dvojity}\tag{4.15} \cos(2\alpha) \href{Use the addition formula for cosine with \(\beta = \alpha\).}{\class{mathpopup bg-info-subtle}{=}} \cos^2(\alpha) - \sin^2(\alpha). \end{equation}

By using the relationships (4.12) and (4.15), we immediately derive formulas for the sine and cosine of half angle,

\begin{equation*} \begin{aligned} \cos^2(\alpha/2) &= \frac{1}{2} \big( 1 + \cos(\alpha) \big), & \big|\cos(\alpha/2) \big| &= \sqrt{\frac{1}{2} \big( 1 + \cos(\alpha) \big)}, \\ \sin^2(\alpha/2) &= \frac{1}{2} \big( 1 - \cos(\alpha) \big), & \big| \sin(\alpha/2) \big| &= \sqrt{\frac{1}{2} \big( 1 - \cos(\alpha) \big)}. \end{aligned} \end{equation*}

If we want to get rid of absolute values in these formulas, we have to decide the sign of expressions based on the angle $\alpha$, more precisely to which of the four quadrants in the Cartesian plane it belongs.

Through the functions $\sin$ and $\cos$ we define the functions tangent $\tg$ and cotangent $\ctg$ as

\begin{equation*} \begin{aligned} \tg \alpha &:= \frac{\sin \alpha}{\cos\alpha}, \quad \alpha \in D_{\tg} = \R \smallsetminus \Big\{ \frac{\pi}{2} + k\pi \,\big|\, k\in\mathbb{Z} \Big\}, \\ \ctg \alpha &:= \frac{\cos\alpha}{\sin\alpha}, \quad \alpha \in D_{\ctg} = \R \smallsetminus \big\{ k\pi \,\big|\, k\in\mathbb{Z} \big\}. \end{aligned} \end{equation*}

Their image set is the whole $\R$. For the sake of clarity, we present their graphs in picture 4.11.

Figure 4.11: The trigonometric functions $\sin$, $\cos$, $\tg$ and $\ctg$.

Neither of the previously introduced trigonometric functions is injective on its domain. If you choose any $y$ in the image set of $\sin$, there exists infinite $x$ in the domain of $\sin$ such that $\sin(x) = y$ (see picture 4.11). Therefore, for any given $y\in H_{\sin}$, it cannot be unambiguously specified $x\in D_{\sin}$ satisfying $y = \sin(x)$. The same observation applies to $\cos$, $\tg$ and $\ctg$. Trigonometric functions are not injective on their natural domain and therefore can not have inverse functions… unless we restrict them appropriately, that is, we reduce their domain. In accordance with the established convention, we define

  • arcsine, $\arcsin$, as the inverse function of $\sin$ restricted on the interval $[-\frac{\pi}{2}, \frac{\pi}{2}]$,

  • arccosine, $\arccos$, as the inverse function of $\cos$ restricted on the interval $[0,\pi]$,

  • arctangent, $\arctg$, as the inverse function of $\tg$ restricted on the interval $(-\frac{\pi}{2}, \frac{\pi}{2})$,

  • arccotangent, $\arcctg$, as the inverse function of $\ctg$ restricted on the interval $(0,\pi)$.

Figure 4.12: Graph of the functions $\arcsin$ and $\arccos$.
Figure 4.13: Graph of the functions $\arctg x$ and $\arcctg x$.
Question 4.7

From the geometric definition of the functions $\sin$ and $\cos$ derive the values of $\sin \frac{\pi}{3}$ and $\cos \frac{\pi}{3}$.

Question 4.8

From the geometric definition of the functions $\sin$ and $\cos$ derive the values of $\sin \frac{\pi}{4}$ and $\cos \frac{\pi}{4}$.

Question 4.9

Without using a calculator (it would not give the result exactly) find the value of the following expressions.

  1. $\displaystyle\arcsin \sin \frac{9\pi}{4}$,

  2. $\displaystyle \sin \frac{7\pi}{4}$.

Show answer

1. $\frac{\pi}{4}$, 2. $-\frac{1}{\sqrt{2}}$.

Question 4.10

Derive the addition formula for the function $\tg$, i.e. express $\tg (x+y)$ by using $\tg (x)$ and $\tg (y)$.