# 2.6.1: Sine Graph and Cosine Graph

- Page ID
- 14926

Graph and stretch trig functions

Your mission, should you choose to accept it, as Agent Trigonometry is to graph the function \(y=2\cos x\). What are the minimum and maximum of your graph?

### Graphing Sine and Cosine

In this concept, we will take the unit circle and graph it on the Cartesian plane.

To do this, we are going to “unravel” the unit circle. Recall that for the unit circle the coordinates are \((\cos \theta ,\sin \theta)\) where θ is the central angle. To graph, \(y=\sin x\) rewrite the coordinates as \((x,\sin x)\) where \(x\) is the central angle, in radians. Below we expanded the sine coordinates for \(\dfrac{3\pi }{4}\).

Notice that the curve ranges from 1 to -1. The maximum value is 1, which is at \(x=\dfrac{\pi }{2}\). The minimum value is -1 at \(x=\dfrac{3\pi }{2}\). This “height” of the sine function is called the **amplitude**. The amplitude is the absolute value of average between the highest and lowest points on the curve.

Now, look at the domain. It seems that, if we had continued the curve, it would repeat. This means that the sine curve is **periodic**. Look back at the unit circle, the sine value changes until it reaches \(2\pi \). After \(2\pi \), the sine values repeat. Therefore, the curve above will repeat every \(2\pi \) units, making the **period** \(2\pi \). The domain is all real numbers.

Similarly, when we expand the cosine curve, \(y=\cos x\), from the unit circle, we have:

Notice that the range is also between 1 and -1 and the domain will be all real numbers. The cosine curve is also periodic, with a period of \(2\pi \). If we draw the graph past \(2\pi\), it would look like:

Comparing \(y=\sin x\) and \(y=\cos x\) (below), we see that the curves are almost identical, except that the sine curve starts at \(y=0\) and the cosine curve starts at \(y=1\).

If we shift either curve \(\dfrac{\pi }{2}\) units to the left or right, they will overlap. Any horizontal shift of a trigonometric function is called a **phase shift**.

Let's identify the highlighted points on \(y=\sin x\) and \(y=\cos x\) below.

For each point, think about what the sine or cosine value is at those values. For point A, \(\sin \dfrac{\pi }{4}=\dfrac{\sqrt{2}}{2}\), therefore the point is \(\left(\dfrac{\pi }{4},\dfrac{\sqrt{2}}{2}\right)\). For point B, we have to work backwards because it is not exactly on a vertical line, but it is on a horizontal one. When is \(\sin x=\dfrac{−1}{2}\)? When \(x=\dfrac{7 \pi }{6}\) or \(\dfrac{11 \pi }{6}\). By looking at point B’s location, we know it is the second option. Therefore, the point is \(\left(\dfrac{11 \pi }{6}, \dfrac{1}{2}\right)\).

For the cosine curve, point C is the same as point A because the sine and cosine for \(\dfrac{\pi }{4}\) is the same. As for point D, we use the same logic as we did for point B. When does\( \cos x=−\dfrac{1}{2}\)? When \(x=\dfrac{2 \pi }{3}\) or \(\dfrac{4 \pi }{3}\). Again, looking at the location of point D, we know it is the second option. The point is \(\left(\dfrac{4\pi }{3}, \dfrac{1}{2}\right)\).

## Amplitude

In addition to graphing \(y=\sin x\) and \(y=\cos x\), we can stretch the graphs by placing a number in front of the sine or cosine, such as \(y=a\sin x\) or \(y=a\cos x\). \(\mid a \mid\) is the amplitude of the curve.

Let's graph \(y=3\sin x\) over two periods.

Start with the basic sine curve. Recall that one period of the parent graph, \(y=\sin x\), is \(2\pi \). Therefore, two periods will be \(4\pi \). The 3 indicates that the range will now be from 3 to -3 and the curve will be stretched so that the maximum is 3 and the minimum is -3. The red curve is \(y=3\sin x\).

Notice that the x-intercepts are the same as the parent graph. Typically, when we graph a trigonometric function, we always show two full periods of the function to indicate that it does repeat.

Now, let's graph \(y=\dfrac{1}{2}\cos x\) over two periods.

Now, the amplitude will be 12 and the function will be “smooshed” rather than stretched.

Finally, let's graph \(y=−\sin x\) over two periods.

The last two problems dealt with changing a and a was positive. Now, a is negative. Just like with other functions, when the leading coefficient is negative, the function is reflected over the x-axis. \(y=−\sin x\) is in red.

Earlier, you were asked to find the minimum and maximum of the graph \(y=2\cos x\).

**Solution**

The 2 in front of the cosine function indicates that the range will now be from 2 to –2 and the curve will be stretched so that the maximum is 2 and the minimum is –2.

Is the point \(\left(\dfrac{5\pi }{6}, \dfrac{1}{2} \right)\) on \(y=\sin x\)? How do you know?

**Solution**

Substitute in the point for x and y and see if the equation holds true.

\(\dfrac{1}{2}=\sin \left( \dfrac{5\pi }{6} \right)\)

This is true, so \(\left(\dfrac{5\pi }{6}, \dfrac{1}{2} \right)\) is on the graph.

\(y=6\cos x\)

**Solution**

Stretch the cosine curve so that the maximum is 6 and the minimum is -6.

\(y=−3\cos x\)

**Solution**

The graph is reflected over the x-axis and stretched so that the amplitude is 3.

\(y=\dfrac{3}{2}\sin x\)

**Solution**

The fraction is equivalent to 1.5, making 1.5 the amplitude.

### Review

- Determine the exact value of each point on \(y=\sin x\) or \(y=\cos x\).
- List all the points in the interval \([0, 4\pi ]\) where \(\sin x=\cos x\). Use the graph from #1 to help you.
- Draw from \(y=\sin x\) from \([0,2\pi ]\). Find \(f\left(\dfrac{\pi }{3}\right)\) and \(f\left(\dfrac{5\pi }{3}\right)\). Plot these values on the curve.

For questions 4-12, graph the sine or cosine curve over two periods.

- \(y=2\sin x\)
- \(y=−5\cos x\)
- \(y=\dfrac{1}{4}\cos x\)
- \(y=−\dfrac{2}{3}\sin x\)
- \(y=4\sin x\)
- \(y=−1.5\cos x\)
- \(y=\dfrac{5}{3}\cos x\)
- \(y=10\sin x\)
- \(y=−7.2\sin x\)
- Graph \(y=\sin x\) and \(y=\cos x\) on the same set of axes. How many units would you have to shift the sine curve (to the left or right) so that it perfectly overlaps the cosine curve?
- Graph \(y=\sin x\) and \(y=−\cos x\) on the same set of axes. How many units would you have to shift the sine curve (to the left or right) so that it perfectly overlaps \(y=−\cos x\)?

Write the equation for each sine or cosine curve below. \(a>0\) for both questions.

### Answers for Review Problems

To see the Review answers, open this PDF file and look for section 14.1.

## Additional Resources

Video: Graphs of Sine and Cosine Functions - Overview

Practice: Sine Graph and Cosine Graph