# 5.2: Properties of Graphs of Trigonometric Functions

We saw in Section 5.1 how the graphs of the trigonometric functions repeat every \(2\pi \) radians. In this section we will discuss this and other properties of graphs, especially for the sinusoidal functions (sine and cosine).

First, recall that the **domain** of a function \(f(x) \) is the set of all numbers \(x \) for which the function is defined. For example, the domain of \(f(x) = \sin\;x \) is the set of all real numbers, whereas the domain of \(f(x) = \tan\;x \) is the set of all real numbers except \(x=\pm\,\frac{\pi}{2} \), \(\pm\,\frac{3\pi}{2} \), \(\pm\,\frac{5\pi}{2} \), \(... \). The **range** of a function \(f(x) \) is the set of all values that \(f(x) \) can take over its domain. For example, the range of \(f(x)=\sin\;x \) is the set of all real numbers between \(-1 \) and \(1 \) (i.e. the interval \([-1,1]\)), whereas the range of \(f(x) = \tan\;x \) is the set of all real numbers, as we can see from their graphs.

A function \(f(x) \) is **periodic** if there exists a number \(p>0 \) such that \(x+p \) is in the domain of \(f(x) \) whenever \(x \) is, and if the following relation holds:

\[\label{eqn:periodic}

f(x+p) ~=~ f(x) \quad\text{for all \(x\)}

\]

There could be many numbers \(p \) that satisfy the above requirements. If there is a smallest such number \(p \), then we call that number the **period** of the function \(f(x) \).

Example 5.3

The functions \(\sin\;x \), \(\cos\;x \), \(\csc\;x \), and \(\sec\;x \) all have the same period: \(2\pi\) radians. We saw in Section 5.1 that the graphs of \(y=\tan\;x \) and \(y=\cot\;x \) repeat every \(2\pi \) radians but they also repeat every \(\pi \) radians. Thus, the functions \(\tan\;x \) and \(\cot\;x \) have a period of \(\pi \) radians.

Example 5.4

What is the period of \(f(x)=\sin\;2x\,\)?

**Solution:**

The graph of \(y=\sin\;2x \) is shown in Figure 5.2.1, along with the graph of \(y=\sin\;x \) for comparison, over the interval \([0,2\pi] \). Note that \(\sin\;2x \) ``goes twice as fast'' as \(\sin\;x \).

**Figure 5.2.1** Graph of \(y = \sin 2x\)

For example, for \(x \) from \(0 \) to \(\frac{\pi}{2} \), \(\sin\;x \) goes from \(0 \) to \(1 \), but \(\sin\;2x\) is able to go from \(0 \) to \(1 \) quicker, just over the interval \([0,\frac{\pi}{4}] \). While \(\sin\;x \) takes a full \(2\pi \) radians to go through an entire *cycle* (the largest part of the graph that does not repeat), \(\sin\;2x \) goes through an entire cycle in just \(\pi \) radians. So the period of \(\sin\;2x \) is \(\pi \) radians.

The above example made use of the graph of \(\sin\;2x \), but the period can be found analytically. Since \(\sin\;x \) has period \(2\pi \), we know that \(\sin\;(x+2\pi) = \sin\;x \) for all \(x \). Since \(2x\) is a number for all \(x \), this means in particular that \(\sin\;(2x+2\pi) = \sin\;2x \) for all \(x \). Now define \(f(x)=\sin\;2x \). Then

\[\nonumber \begin{align*}

f(x+\pi) ~&=~ \sin\;2\,(x+\pi)\\ \nonumber

&=~ \sin\;(2x+2\pi)\\ \nonumber

&=~ \sin\;2x \quad\text{(as we showed above)}\\ \nonumber

&=~ f(x)

\end{align*}\]

for all \(x \), so the period \(p \) of \(\sin\;2x \) is *at most* \(\pi \), by our definition of period. We have to show that \(p>0 \) can not be smaller than \(\pi \). To do this, we will use a *proof by contradiction*. That is, assume that \(0<p<\pi \), then show that this leads to some contradiction, and hence can not be true. So suppose \(0<p<\pi \). Then \(0<2p<2\pi \), and hence

\[\nonumber \begin{align*}

\sin\;2x ~&=~ f(x)\\ \nonumber

&=~ f(x+p) \quad\text{(since \(p \) is the period of \(f(x)\))}\\ \nonumber

&=~ \sin\;2(x+p)\\ \nonumber

&=~ \sin\;(2x+2p)

\end{align*}\]

for all \(x \). Since any number \(u \) can be written as \(2x \) for some \(x \) (i.e \(u = 2(u/2)\)), this means that \(\sin\;u = \sin\;(u+2p) \) for all real numbers \(u \), and hence the period of \(\sin\;x \) is as most \(2p \). This is a contradiction. Why? Because the period of \(\sin\;x \) is \(2\pi > 2p \). Hence, the period \(p \) of \(\sin\;2x \) can not be less than \(\pi \), so the period must equal \(\pi \).

The above may seem like a lot of work to prove something that was visually obvious from the graph (and intuitively obvious by the "twice as fast'' idea). Luckily, we do not need to go through all that work for each function, since a similar argument works when \(\sin\;2x \) is replaced by \(\sin\;\omega x \) for any positive real number \(\omega\): instead of dividing \(2\pi \) by \(2 \) to get the period, divide by \(\omega \). And the argument works for the other trigonometric functions as well. Thus, we get:

For any number \(\omega >0\):

\[\nonumber \begin{alignat*}{4}

\sin\;\omega x ~~&\text{has period}~~ \frac{2\pi}{\omega}

\qquad\quad&\csc\;\omega x ~~&\text{has period}~~ \frac{2\pi}{\omega}\\ \nonumber

\cos\;\omega x ~~&\text{has period}~~ \frac{2\pi}{\omega}

\qquad\quad&\sec\;\omega x ~~&\text{has period}~~ \frac{2\pi}{\omega}\\ \nonumber

\tan\;\omega x ~~&\text{has period}~~ \frac{\pi}{\omega}

\qquad\quad&\cot\;\omega x ~~&\text{has period}~~ \frac{\pi}{\omega}

\end{alignat*}\]

If \(\omega < 0 \), then use \(\sin\;(-A) = -\sin\;A \) and \(\cos\;(-A) = \cos\;A \) (e.g. \(\sin\;(-3x) = -\sin\;3x\)).

Example 5.5

The period of \(y=\cos\;3x \) is \(\frac{2\pi}{3} \) and the period of \(y=\cos\;\frac{1}{2}x \) is \(4\pi \). The graphs of both functions are shown in Figure 5.2.2:

**Figure 5.2.2** Graph of \(y = \cos 3x \text{ and }y = \cos \frac{1}{ 2} x\)

We know that \(\;-1 \le \sin\;x \le 1\; \) and \(\;-1 \le \cos\;x \le 1\; \) for all \(x \). Thus, for a constant \(A \ne 0 \),

\[\nonumber

-|A| ~\le~ A\,\sin\;x ~\le~ |A| \quad\text{and}\quad

-|A| ~\le~ A\,\cos\;x ~\le~ |A|

\]

for all \(x \). In this case, we call \(|A| \) the **amplitude** of the functions \(y=A\,\sin\;x \) and \(y=A\,\cos\;x \). In general, the amplitude of a periodic curve \(f(x)\) is half the difference of the largest and smallest values that \(f(x) \) can take:

\[\nonumber

\text{Amplitude of \(f(x)\)} ~=~ \frac{\text{(maximum of \(f(x)\))} ~-~ \text{(minimum of \(f(x)\))}}{2}

\]

In other words, the amplitude is the distance from either the top or bottom of the curve to the horizontal line that divides the curve in half, as in Figure 5.2.3.

**Figure 5.2.3** Amplitude = \(\frac{\text{max−min}}{ 2} = \frac{|A|−(−|A|)}{ 2} = |A|\)

Not all periodic curves have an amplitude. For example, \(\tan\;x \) has neither a maximum nor a minimum, so its amplitude is undefined. Likewise, \(\cot\;x \), \(\csc\;x \), and \(\sec\;x \) do not have an amplitude. Since the amplitude involves vertical distances, it has no effect on the period of a function, and vice versa.

Example 5.6

Find the amplitude and period of \(y=3\,\cos\;2x \).

**Solution:**

The amplitude is \(|3| = 3 \) and the period is \(\frac{2\pi}{2}=\pi \). The graph is shown in Figure 5.2.4:

**Figure 5.2.4** \(y = 3 \cos 2x\)

Example 5.7

Find the amplitude and period of \(y=2 - 3\,\sin\;\frac{2\pi}{3}x \).

**Solution:**

The amplitude of \(-3\,\sin\;\frac{2\pi}{3}x \) is \(|-3| =3 \). Adding \(2 \) to that function to get the function \(y=2 - 3\,\sin\;\frac{2\pi}{3}x \) does not change the amplitude, even though it does change the maximum and minimum. It just shifts the entire graph upward by \(2 \). So in this case, we have

\[\nonumber

\text{Amplitude} ~=~ \frac{\text{max} ~-~ \text{min}}{2} ~=~ \frac{5 ~-~ (-1)}{2} ~=~ \frac{6}{2}

~=~ 3 ~.

\]

The period is \(\dfrac{2\pi}{\frac{2\pi}{3}}=3 \). The graph is shown in Figure 5.2.5:

**Figure 5.2.5** \(y = 2−3 \sin \frac{2π}{ 3} x\)

Example 5.8

Find the amplitude and period of \(y=2\,\sin\;( x^2 ) \).

**Solution:**

This is not a periodic function, since the angle that we are taking the sine of, \(x^2 \), is not a *linear* function of \(x \), i.e. is not of the form \(ax+b \) for some constants \(a \) and \(b \). Recall how we argued that \(\sin\;2x \) was ``twice as fast'' as \(\sin\;x \), so that its period was \(\pi \) instead of \(2\pi \). Can we say that \(\sin\;( x^2 ) \) is some *constant *times as fast as \(\sin\;x\,\)? No. In fact, we see that the "speed'' of the curve keeps increasing as \(x \) gets larger, since \(x^2 \) grows at a variable rate, not a constant rate. This can be seen in the graph of \(y=2\,\sin\;( x^2 ) \), shown in Figure 5.2.6:

**Figure 5.2.6** \(y = 2 \sin (x^ 2 )\)

Notice how the curve "speeds up'' as \(x \) gets larger, making the "waves'' narrower and narrower. Thus, \(y=2\,\sin\;( x^2 ) \) has no period. Despite this, it appears that the function does have an amplitude, namely \(2 \). To see why, note that since \(|\sin\;\theta | \le 1 \) for all \(\theta \), we have

\[| 2\,\sin\;( x^2 )| ~=~ |2| \;\cdot\; |\sin\;( x^2 )| ~\le~ 2 \;\cdot\; 1 ~=~ 2 ~. \nonumber \]

In the exercises you will be asked to find values of \(x \) such that \(2\,\sin\;( x^2 ) \) reaches the maximum value \(2 \) and the minimum value \(-2 \). Thus, the amplitude is indeed \(2 \).

Note: This curve is still sinusoidal despite not being periodic, since the general shape is still that of a "sine wave'', albeit one with variable *cycles*.

So far in our examples we have been able to determine the amplitudes of sinusoidal curves fairly easily. This will not always be the case.

Example 5.9

Find the amplitude and period of \(y=3\,\sin\;x + 4\,\cos\;x \).

**Solution:**

This is sometimes called a *combination* sinusoidal curve, since it is the sum of two such curves. The period is still simple to determine: since \(\sin\;x \) and \(\cos\;x \) each repeat every \(2\pi \) radians, then so does the combination \(3\,\sin\;x + 4\,\cos\;x \). Thus, \(y=3\,\sin\;x + 4\,\cos\;x \) has period \(2\pi \). We can see this in the graph, shown in Figure 5.2.7:

**Figure 5.2.7** \(y = 3 \sin x+4 \cos x\)

The graph suggests that the amplitude is \(5 \), which may not be immediately obvious just by looking at how the function is defined. In fact, the definition \(y=3\,\sin\;x + 4\,\cos\;x \) may tempt you to think that the amplitude is \(7 \), since the largest that \(3\,\sin\;x \) could be is \(3 \) and the largest that \(4\,\cos\;x \) could be is \(4 \), so that the largest their sum could be is \(3+4=7 \). However, \(3\,\sin\;x \) can never equal \(3 \) for the same \(x \) that makes \(4\,\cos\;x \) equal to \(4 \) (why?).

There is a useful technique (which we will discuss further in Chapter 6) for showing that the amplitude of \(y=3\,\sin\;x + 4\,\cos\;x \) is \(5 \). Let \(\theta \) be the angle shown in the right

triangle in Figure 5.2.8. Then \(\cos\;\theta = \frac{3}{5} \) and \(\sin\;\theta = \frac{4}{5} \). We can use this as follows:

\[\nonumber \begin{align*}

y ~&=~ 3\,\sin\;x ~+~ 4\,\cos\;x\\ \nonumber

&=~ 5\,\left( \tfrac{3}{5}\,\sin\;x ~+~ \tfrac{4}{5}\,\cos\;x \right)\\ \nonumber

&=~ 5\,( \cos\;\theta\;\sin\;x ~+~ \sin\;\theta\;\cos\;x )\\ \nonumber

&=~ 5\,\sin\;(x+\theta)\quad\text{(by the sine addition formula)}

\end{align*}\]

**Figure 5.2.8**

Thus, \(|y| = |5\,\sin\;(x+\theta)| = |5|\,\cdot\,|\sin\;(x+\theta)| \le (5)(1) = 5 \), so the amplitude of \(y=3\,\sin\;x + 4\,\cos\;x \) is \(5 \).

In general, a combination of sines and cosines will have a period equal to the *lowest common
multiple* of the periods of the sines and cosines being added. In Example 5.9, \(\sin\;x \) and \(\cos\;x \) each have period \(2\pi \), so the lowest common multiple (which is always an

*integer*multiple) is \(1 \,\cdot\, 2\pi = 2\pi \).

Example 5.10

Find the period of \(y=\cos\;6x + \sin\;4x \).

**Solution:**

The period of \(\cos\;6x \) is \(\frac{2\pi}{6} = \frac{\pi}{3} \), and the period of \(\sin\;4x \) is \(\frac{2\pi}{4} = \frac{\pi}{2} \). The lowest common multiple of \(\frac{\pi}{3} \) and \(\frac{\pi}{2} \) is \(\pi\):

\[\nonumber \begin{alignat*}{4}

1 \;\cdot\; \tfrac{\pi}{3} ~&=~ \tfrac{\pi}{3} \quad\quad\quad

&1 \;&\cdot\; \tfrac{\pi}{2} ~&=~ \tfrac{\pi}{2}\\ \nonumber

2 \;\cdot\; \tfrac{\pi}{3} ~&=~ \tfrac{2\pi}{3} \quad\quad\quad

&2 \;&\cdot\; \tfrac{\pi}{2} ~&=~ \pi\\ \nonumber

3 \;\cdot\; \tfrac{\pi}{3} ~&=~ \pi \quad\quad\quad &{} &{}\\ \nonumber

\end{alignat*}\]

Thus, the period of \(y=\cos\;6x + \sin\;4x \) is \(\pi \). We can see this from its graph in Figure 5.2.9:

**Figure 5.2.9** \(y = \cos 6x+\sin 4x\)

What about the amplitude? Unfortunately we can not use the technique from Example 5.9, since we are not taking the cosine and sine of the same angle; we are taking the cosine of \(6x \) but the sine of \(4x \). In this case, it appears from the graph that the maximum is close to \(2 \) and the minimum is close to \(-2 \). In Chapter 6, we will describe how to use a numerical computation program to show that the maximum and minimum are \(\pm\,1.90596111871578 \), respectively (accurate to within \(\approx 2.2204 \times 10^{-16}\)). Hence, the amplitude is \(1.90596111871578 \).

Generalizing Example 5.9, an expression of the form \(a\,\sin\;\omega x \;+\; b\,\cos\;\omega x \) is equivalent to \(\sqrt{a^2 + b^2}\;\sin\;(x+\theta) \), where \(\theta \) is an angle such that \(\cos\;\theta = \frac{a}{\sqrt{a^2 + b^2}} \) and \(\sin\;\theta = \frac{b}{\sqrt{a^2 + b^2}} \). So \(y=a\,\sin\;\omega x \;+\; b\,\cos\;\omega x \) will have amplitude \(\sqrt{a^2 + b^2} \). Note that this method only works when the angle \(\omega x \) is the same in both the sine and cosine terms.

We have seen how adding a constant to a function shifts the entire graph vertically. We will now see how to shift the entire graph of a periodic curve horizontally.

Consider a function of the form \(y=A\,\sin\;\omega x \), where \(A \) and \(\omega \) are nonzero constants. For simplicity we will assume that \(A >0 \) and \(\omega > 0 \) (in general either one could be negative). Then the amplitude is \(A \) and the period is \(\frac{2\pi}{\omega} \). The graph is shown in Figure 5.2.10.

**Figure 5.2.10** \(y = A \sin ωx\)

Now consider the function \(y=A\,\sin\;(\omega x - \phi) \), where \(\phi \) is some constant. The

amplitude is still \(A \), and the period is still \(\frac{2\pi}{\omega} \), since \(\omega x - \phi \) is a linear function of \(x \). Also, we know that the sine function goes through an entire cycle when its angle goes from \(0 \) to \(2\pi \). Here, we are taking the sine of the angle \(\omega x - \phi \). So as \(\omega x - \phi \) goes from \(0 \) to \(2\pi \), an entire cycle of the function \(y=A\,\sin\;(\omega x - \phi) \) will be traced out. That cycle starts when

\[\nonumber

\omega x - \phi ~=~ 0 \quad \Rightarrow\quad x ~=~ \frac{\phi}{\omega}\]

and ends when

\[\nonumber \omega x - \phi ~=~ 2\pi \quad \Rightarrow\quad x ~=~ \frac{2\pi}{\omega}\;+\;\frac{\phi}{\omega}~.\]

Thus, the graph of \(y=A\,\sin\;(\omega x - \phi) \) is just the graph of \(y=A\,\sin\;\omega x\) shifted horizontally by \(\frac{\phi}{\omega} \), as in Figure 5.2.11. The graph is shifted to the right when \(\phi >0 \), and to the left when \(\phi <0 \). The amount \(\frac{\phi}{\omega} \) of the shift is called the **phase shift** of the graph.

**Figure 5.2.11** Phase shift for \(y = A \sin (ωx−φ)\)

The phase shift is defined similarly for the other trigonometric functions.

Example 5.11

Find the amplitude, period, and phase shift of \(y=3\,\cos\;(2x - \pi) \).

**Solution:**

The amplitude is \(3 \), the period is \(\frac{2\pi}{2} = \pi \), and the phase shift is \(\frac{\pi}{2} \). The graph is shown in Figure 5.2.12:

**Figure 5.2.12 **\(y = 3 \cos (2x−π)\)

Notice that the graph is the same as the graph of \(y=3\,\cos\;2x \) shifted to the right by \(\frac{\pi}{2} \), the amount of the phase shift.

Example 5.12

Find the amplitude, period, and phase shift of \(y=-2\,\sin\;\left(3x + \frac{\pi}{2}\right) \).

**Solution:**

The amplitude is \(2 \), the period is \(\frac{2\pi}{3} \), and the phase shift is \(\frac{-\frac{\pi}{2}}{3} = -\frac{\pi}{6} \). Notice the negative sign in the phase shift, since \(3x+\pi=3x-(-\pi) \) is in the form \(\omega x - \phi \). The graph is shown in Figure 5.2.13:

**Figure 5.2.13** \(y = −2 \sin \left ( 3x+ π 2 \right ) \)

In engineering two periodic functions with the same period are said to be *out of phase* if their phase shifts differ. For example, \(\sin\;\left( x - \frac{\pi}{6} \right) \) and \(\sin\;x \) would be \(\frac{\pi}{6} \) radians (or \(30^\circ\)) out of phase, and \(\sin\;x \) would be said to *lag* \(\sin\;\left( x - \frac{\pi}{6} \right) \) by \(\frac{\pi}{6} \) radians, while \(\sin\;\left( x - \frac{\pi}{6} \right) \) *leads \(*\sin\;x \) by \(\frac{\pi}{6} \) radians. Periodic functions with the same period and the same phase shift are *in phase*.

The following is a summary of the properties of trigonometric graphs:

For any constants \(A \ne 0 \), \(\omega \ne 0 \), and \(\phi\):

\[\nonumber \begin{align*}

y = A\,\sin\;(\omega x - \phi) ~~&\text{has amplitude \(|A| \), period \(\tfrac{2\pi}{\omega} \), and

phase shift \(\tfrac{\phi}{\omega}\)}\\ \nonumber

y = A\,\cos\;(\omega x - \phi) ~~&\text{has amplitude \(|A| \), period \(\tfrac{2\pi}{\omega} \), and

phase shift \(\tfrac{\phi}{\omega}\)}\\ \nonumber

y = A\,\tan\;(\omega x - \phi) ~~&\text{has undefined amplitude, period \(\tfrac{\pi}{\omega} \), and

phase shift \(\tfrac{\phi}{\omega}\)}\\ \nonumber

y = A\,\csc\;(\omega x - \phi) ~~&\text{has undefined amplitude, period \(\tfrac{2\pi}{\omega} \), and

phase shift \(\tfrac{\phi}{\omega}\)}\\ \nonumber

y = A\,\sec\;(\omega x - \phi) ~~&\text{has undefined amplitude, period \(\tfrac{2\pi}{\omega} \), and

phase shift \(\tfrac{\phi}{\omega}\)}\\ \nonumber

y = A\,\cot\;(\omega x - \phi) ~~&\text{has undefined amplitude, period \(\tfrac{\pi}{\omega} \), and

phase shift \(\tfrac{\phi}{\omega}\)}

\end{align*}\]

### Contributors

- Michael Corral (Schoolcraft College). The content of this page is distributed under the terms of the GNU Free Documentation License, Version 1.2.