Graphs of Sine and Cosine
Graphs of Sine and Cosine are the basic sinusoidal graphs used throughout trigonometry. To sketch them well, you need to identify four main features: amplitude, fundamental period, phase shift, and vertical midline.
These features tell you how the basic graphs of \(y=\sin x\) and \(y=\cos x\) have been stretched, shifted, or reflected. Once you can find them, graphing becomes much more organized and predictable.
This lesson will show you how to read these features from an equation, how they affect the graph, and how to sketch sine and cosine functions accurately.
1. The parent graphs
The two basic sinusoidal functions are:
$$y=\sin x \qquad \text{and} \qquad y=\cos x$$Both graphs repeat in a smooth wave pattern. Their key properties are:
- Amplitude: \(1\)
- Period: \(2\pi\)
- Midline: \(y=0\)
- Range: \([-1,1]\)
For \(y=\sin x\):
- It starts at \((0,0)\)
- Rises to \((\frac{\pi}{2},1)\)
- Returns to \((\pi,0)\)
- Falls to \((\frac{3\pi}{2},-1)\)
- Returns to \((2\pi,0)\)
For \(y=\cos x\):
- It starts at \((0,1)\)
- Falls to \((\frac{\pi}{2},0)\)
- Reaches \((\pi,-1)\)
- Returns to \((\frac{3\pi}{2},0)\)
- Ends one cycle at \((2\pi,1)\)
2. General form of sine and cosine graphs
A transformed sine or cosine graph is often written as:
$$y=a\sin(b(x-h))+k$$or
$$y=a\cos(b(x-h))+k$$Each number changes the graph in a specific way:
- Amplitude: \(|a|\)
- Period: \(\frac{2\pi}{|b|}\)
- Phase shift: \(h\)
- Vertical midline: \(y=k\)
If \(a<0\), the graph is reflected across its midline. If \(b<0\), the graph is reflected horizontally, but in most sketching problems we focus mainly on the period.
3. Amplitude
The amplitude is the distance from the midline to the maximum or minimum point of the graph. It tells you how tall the wave is.
For a function such as \(y=a\sin(b(x-h))+k\), the amplitude is:
$$|a|$$For example:
- In \(y=3\sin x\), the amplitude is \(3\)
- In \(y=-2\cos x\), the amplitude is \(2\)
The amplitude is always positive because it measures distance.
4. Fundamental period
The period is the length of one complete cycle of the wave. For the parent sine and cosine graphs, the period is \(2\pi\).
If the function is \(y=a\sin(b(x-h))+k\) or \(y=a\cos(b(x-h))+k\), then the period is:
$$\text{Period}=\frac{2\pi}{|b|}$$This means:
- If \(|b|>1\), the graph is horizontally compressed and the period becomes shorter.
- If \(0<|b|<1\), the graph is horizontally stretched and the period becomes longer.
Examples:
- For \(y=\sin(2x)\), period \(=\frac{2\pi}{2}=\pi\)
- For \(y=\cos(\frac{1}{2}x)\), period \(=\frac{2\pi}{1/2}=4\pi\)
5. Phase shift
The phase shift is the horizontal movement of the graph. It comes from the value of \(h\) in:
$$y=a\sin(b(x-h))+k$$or
$$y=a\cos(b(x-h))+k$$If the function is written as \((x-h)\):
- \(h>0\): shift right by \(h\)
- \(h<0\): shift left by \(|h|\)
Be careful: the sign inside the bracket works opposite to what you may expect.
Examples:
- \(y=\sin(x-\frac{\pi}{3})\) shifts right by \(\frac{\pi}{3}\)
- \(y=\cos(x+\frac{\pi}{4})=\cos(x-(-\frac{\pi}{4}))\) shifts left by \(\frac{\pi}{4}\)
6. Vertical midline
The vertical midline is the horizontal line halfway between the maximum and minimum values of the graph. In the general form, the midline is:
$$y=k$$This means the whole graph moves up or down.
Examples:
- \(y=\sin x+2\) has midline \(y=2\)
- \(y=3\cos x-1\) has midline \(y=-1\)
Once you know the midline and amplitude, you can also find the maximum and minimum values:
$$\text{Maximum}=k+|a|$$ $$\text{Minimum}=k-|a|$$7. A step-by-step method for sketching
To sketch a sine or cosine graph, follow these steps:
- Write the equation in the form \(y=a\sin(b(x-h))+k\) or \(y=a\cos(b(x-h))+k\).
- Find the amplitude \(|a|\).
- Find the period \(\frac{2\pi}{|b|}\).
- Find the phase shift \(h\).
- Find the midline \(y=k\).
- Mark one full cycle on the x-axis.
- Divide the period into 4 equal parts, giving 5 key x-values.
- Plot the key points using the sine or cosine pattern.
Why divide into 4 equal parts? Because one cycle of sine or cosine passes through 5 important points: start, maximum/minimum, midline, minimum/maximum, and end.
8. Key point patterns
For one cycle of \(y=\sin x\), the y-values follow this pattern relative to the midline:
$$0,\ 1,\ 0,\ -1,\ 0$$After applying amplitude and vertical shift, these become:
$$k,\ k+a,\ k,\ k-a,\ k$$For one cycle of \(y=\cos x\), the parent pattern is:
$$1,\ 0,\ -1,\ 0,\ 1$$After applying amplitude and vertical shift, these become:
$$k+a,\ k,\ k-a,\ k,\ k+a$$If \(a\) is negative, the order flips because of the reflection.
9. Worked Example 1: Basic transformed sine graph
Sketch:
$$y=2\sin x$$Step 1: Identify the features
- \(a=2\), so amplitude \(=2\)
- \(b=1\), so period \(=2\pi\)
- \(h=0\), so no phase shift
- \(k=0\), so midline is \(y=0\)
Step 2: Find 5 key points for one cycle
One cycle runs from \(0\) to \(2\pi\). Divide into 4 equal parts:
$$0,\ \frac{\pi}{2},\ \pi,\ \frac{3\pi}{2},\ 2\pi$$Use the sine pattern with amplitude 2:
- \((0,0)\)
- \((\frac{\pi}{2},2)\)
- \((\pi,0)\)
- \((\frac{3\pi}{2},-2)\)
- \((2\pi,0)\)
Result: The graph looks like the usual sine wave, but it is stretched vertically so that its maximum is \(2\) and minimum is \(-2\).
10. Worked Example 2: Cosine graph with vertical shift
Sketch:
$$y=\cos x+3$$Step 1: Identify the features
- Amplitude \(=1\)
- Period \(=2\pi\)
- No phase shift
- Midline: \(y=3\)
Step 2: Find maximum and minimum
$$\text{Maximum}=3+1=4$$ $$\text{Minimum}=3-1=2$$Step 3: Plot one cycle
Use x-values:
$$0,\ \frac{\pi}{2},\ \pi,\ \frac{3\pi}{2},\ 2\pi$$Cosine pattern shifted up by 3:
- \((0,4)\)
- \((\frac{\pi}{2},3)\)
- \((\pi,2)\)
- \((\frac{3\pi}{2},3)\)
- \((2\pi,4)\)
Result: The graph has the usual cosine shape, but the whole graph is moved up 3 units.
11. Worked Example 3: Period change and phase shift
Sketch:
$$y=3\sin\left(2\left(x-\frac{\pi}{4}\right)\right)-1$$Step 1: Identify the features
- \(a=3\), so amplitude \(=3\)
- \(b=2\), so period is
- Phase shift: right \(\frac{\pi}{4}\)
- Midline: \(y=-1\)
Step 2: Find the 5 key x-values
One cycle starts at the phase shift \(x=\frac{\pi}{4}\) and lasts for one period \(\pi\).
Divide the period into 4 equal parts:
$$\frac{\pi}{4}\div 4 = \frac{\pi}{4}?$$Be careful: we divide the period, not the starting x-value.
$$\frac{\pi}{4} \text{ of a cycle length? No. Instead, } \frac{\pi}{4} \text{ is the shift.}$$The period is \(\pi\), so each quarter-period is:
$$\frac{\pi}{4}$$Starting at \(\frac{\pi}{4}\), the 5 x-values are:
$$\frac{\pi}{4},\ \frac{\pi}{2},\ \frac{3\pi}{4},\ \pi,\ \frac{5\pi}{4}$$Step 3: Use the sine pattern
Relative to the midline \(y=-1\), the sine pattern is:
$$-1,\ -1+3,\ -1,\ -1-3,\ -1$$So the y-values are:
$$-1,\ 2,\ -1,\ -4,\ -1$$Key points:
- \((\frac{\pi}{4},-1)\)
- \((\frac{\pi}{2},2)\)
- \((\frac{3\pi}{4},-1)\)
- \((\pi,-4)\)
- \((\frac{5\pi}{4},-1)\)
Result: The graph is taller, repeats more quickly, shifts right, and is moved down 1 unit.
12. Worked Example 4: Reflected cosine graph
Sketch:
$$y=-2\cos\left(x+\frac{\pi}{2}\right)+1$$Step 1: Identify the features
- Amplitude \(=2\)
- Period \(=2\pi\)
- Phase shift: left \(\frac{\pi}{2}\)
- Midline: \(y=1\)
Step 2: Understand the reflection
The negative sign in front of the cosine reflects the graph across the midline. So instead of starting at a maximum, it starts at a minimum.
Step 3: Find quarter-period
$$\frac{2\pi}{4}=\frac{\pi}{2}$$Start at \(-\frac{\pi}{2}\) because of the left shift. The 5 key x-values are:
$$-\frac{\pi}{2},\ 0,\ \frac{\pi}{2},\ \pi,\ \frac{3\pi}{2}$$For \(y=-2\cos(\cdots)+1\), the reflected cosine pattern around the midline \(y=1\) is:
$$1-2,\ 1,\ 1+2,\ 1,\ 1-2$$So the y-values are:
$$-1,\ 1,\ 3,\ 1,\ -1$$Key points:
- \(( -\frac{\pi}{2},-1)\)
- \((0,1)\)
- \((\frac{\pi}{2},3)\)
- \((\pi,1)\)
- \((\frac{3\pi}{2},-1)\)
13. Common mistakes to avoid
- Forgetting absolute value in amplitude: amplitude is \(|a|\), not \(a\).
- Using \(b\) as the period: the period is \(\frac{2\pi}{|b|}\), not just \(b\).
- Reading phase shift incorrectly: \((x-h)\) means right by \(h\), while \((x+h)\) means left by \(h\).
- Ignoring the midline: always shift the graph up or down before deciding maximum and minimum values.
- Not dividing the period into 4 equal parts: this often leads to badly spaced key points.
14. Quick comparison of sine and cosine graphs
- Sine usually starts on the midline when there is no phase shift.
- Cosine usually starts at a maximum when there is no reflection and no phase shift.
- Both are smooth, repeating waves.
- Both use the same amplitude and period rules.
15. What to look for when sketching from an equation
When given any sinusoidal function, ask yourself:
- What is the amplitude?
- What is the period?
- Where is the graph shifted horizontally?
- What is the midline?
- Is there a reflection?
If you answer these five questions, you can usually sketch the graph correctly.
Summary
Sine and cosine graphs can be sketched by identifying amplitude, period, phase shift, and vertical midline. In the general forms \(y=a\sin(b(x-h))+k\) and \(y=a\cos(b(x-h))+k\), these are \(|a|\), \(\frac{2\pi}{|b|}\), \(h\), and \(y=k\).
After finding these features, sketch one cycle by dividing the period into 4 equal parts and plotting 5 key points. With practice, transformed sine and cosine graphs become much easier to read and draw.
Put what you read to the test
You've worked through Graphs of Sine and Cosine. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.