DoAssignment.ca

B2.1 · Graph sine and cosine functions in radians

Learn to graph sine and cosine functions in radians through clear examples and targeted practice.

Ontario Grade 12 Mathematics

Trigonometric Functions

Use key points, amplitude, period, and shifts to sketch trigonometric graphs.

Sine and cosine graphs repeat in a regular wave pattern. To sketch one, you do not need to calculate every point. You can use a small set of key points, then adjust their positions and heights to match the function. This lesson focuses on graphs with angles measured in radians. It begins with the basic sine and cosine patterns, then uses one transformed function to show how the graph changes.

What you will learn

1. Prerequisite bridge: radians and the basic patterns

An angle can be measured in degrees or radians. A full turn is 360∘360^\circ, which is the same as 2π2\pi radians. Half a turn is π\pi, and a quarter turn is π2\frac{\pi}{2}. On a graph, radians are the input values along the horizontal axis.
The sine function is written y=sin⁡xy=\sin x, and the cosine function is written y=cos⁡xy=\cos x. Both have outputs from −1-1 to 11. Their graphs repeat after one full turn, so each has a period of 2π2\pi. The period is the horizontal distance needed for one complete repetition.
A useful starting point is to plot five points across one period. For sine, the outputs rise from zero, reach one, return to zero, reach negative one, and return to zero. For cosine, the outputs begin at one, fall to zero, reach negative one, rise to zero, and return to one.
y=sin⁡x,y=cos⁡xy=\sin x, y=\cos x

2. Read the graph features

A transformed sine or cosine graph can be written as y=asin⁡(k(x−d))+cy=a\sin(k(x-d))+c or y=acos⁡(k(x−d))+cy=a\cos(k(x-d))+c. The same features apply to both forms. The coefficient aa controls the vertical stretch or reflection. The amplitude is |a|, the distance from the centre line to a maximum or minimum. The centre line is the horizontal line halfway between those extremes.
The coefficient kk changes the period. The period is 2π∣k∣\frac{2\pi}{|k|}. A larger value of |k| makes a cycle shorter; a smaller value makes it longer. The value dd gives the horizontal shift: positive dd moves the graph right, while negative dd moves it left. The value cc shifts the graph vertically, so the centre line is y=cy=c.
The maximum and minimum values can be read from the centre line and amplitude. They are c+∣a∣c+|a| and c−∣a∣c-|a|. If aa is negative, the graph is reflected vertically compared with the same function with positive aa. Its key points still fit the same horizontal pattern, but the highs and lows switch.
y=asin⁡(k(x−d))+cy=a\sin(k(x-d))+c

3. Build a graph from key points

For a sine graph, begin at the centre line when the inside angle is zero. Over one period, move through five equally spaced inputs. Their outputs follow the pattern centre, high, centre, low, centre when aa is positive. For cosine, the pattern is high, centre, low, centre, high. A negative aa reverses the high and low positions.
To use these patterns after a horizontal shift, start at x=dx=d. Divide the period into four equal intervals. The five input values are dd, d+P4d+\frac{P}{4}, d+P2d+\frac{P}{2}, d+3P4d+\frac{3P}{4}, and d+Pd+P, where PP is the period. At each input, use the sine or cosine pattern and place the output relative to the centre line.
Plot the five points and connect them with a smooth wave that follows the pattern. Extend the graph by repeating the cycle if the requested viewing window includes more than one period. A sketch should show the horizontal scale in radians and label important values such as π\pi or fractions of π\pi.
x=d, d+P4, d+P2, d+3P4, d+Px=d,\ d+\frac{P}{4},\ d+\frac{P}{2},\ d+\frac{3P}{4},\ d+P

4. Sketch carefully and interpret the result

A graph is easier to read when its axes are labelled clearly. Mark the horizontal axis in radians and show the centre line, maximum, and minimum on the vertical scale. Choose a scale that lets the important key inputs fit without crowding.
Before drawing the wave, check that the first point matches the function. A sine graph with no horizontal shift starts on its centre line. A cosine graph with no horizontal shift starts at a maximum when its coefficient is positive. If there is a shift, use the inside angle k(x−d)k(x-d) to locate where the cycle begins: it equals zero at x=dx=d.
After one cycle is plotted, check the ending point. It should match the starting point because the graph has completed one period. Also check that the graph’s centre line and maximum and minimum agree with the values of aa and cc. These checks help catch errors in the scale, shift, and vertical placement.
k(x−d)=0⟹x=dk(x-d)=0 \Longrightarrow x=d

Key points for one basic cycle

Input xxSine output sin⁡x\sin xCosine output cos⁡x\cos x
000011
π2\frac{\pi}{2}1100
π\pi00−1-1
3π2\frac{3\pi}{2}−1-100
2π2\pi0011

Worked example

Sketch a shifted sine function

Sketch one complete cycle of y=2sin⁡(2(x−π4))+1y=2\sin\left(2\left(x-\frac{\pi}{4}\right)\right)+1.
  1. Identify the features
    Compare the function with the transformed sine form. The coefficient of sine gives an amplitude of 22. The inside coefficient is 22, so the period is 2π2=π\frac{2\pi}{2}=\pi. The graph shifts right by π4\frac{\pi}{4}, and its centre line is y=1y=1.
    A=2,P=π,d=π4,c=1A=2, P=\pi, d=\frac{\pi}{4}, c=1
  2. Find the key inputs
    The first point occurs at x=d=π4x=d=\frac{\pi}{4}. Divide the period by four to get an interval of π4\frac{\pi}{4}. Add that interval repeatedly to find the five inputs for one cycle.
    π4,π2,3π4,π,5π4\frac{\pi}{4}, \frac{\pi}{2}, \frac{3\pi}{4}, \pi, \frac{5\pi}{4}
  3. Place the key outputs
    Because the function is a positive sine graph, its pattern is centre, high, centre, low, centre. The centre line is 11, and the amplitude is 22, so the high value is 33 and the low value is −1-1.
    (π4,1),(π2,3),(3π4,1),(π,−1),(5π4,1)(\frac{\pi}{4},1), (\frac{\pi}{2},3), (\frac{3\pi}{4},1), (\pi,-1), (\frac{5\pi}{4},1)
  4. Draw and check
    Plot the five points and connect them with a smooth sine-shaped wave. The first and last points both lie on the centre line, and they are separated by one period, π\pi. The highest and lowest values are equally far from y=1y=1.
    ymax⁡=3,ymin⁡=−1y_{\max}=3, y_{\min}=-1
Answer: One cycle runs from x=π4x=\frac{\pi}{4} to x=5π4x=\frac{5\pi}{4}. It has centre line y=1y=1, maximum 33, and minimum −1-1, passing through the five listed key points.
Check: The horizontal distance from the first to last input is 5π4−π4=π\frac{5\pi}{4}-\frac{\pi}{4}=\pi, which matches the period.

Common mistakes and how to avoid them

Using 2π2\pi as the period even when the function contains an inside coefficient such as k=3k=3.
Correction: Use 2π∣k∣\frac{2\pi}{|k|} to calculate the period, then divide that period into four equal intervals.
Moving a graph left when dd is positive in x−dx-d.
Correction: In the form k(x−d)k(x-d), positive dd shifts the graph right. Start the cycle at x=dx=d.
Treating the vertical shift as the maximum value.
Correction: The vertical shift gives the centre line y=cy=c. The maximum and minimum are c+∣a∣c+|a| and c−∣a∣c-|a|.
Spacing the five key points by the full period.
Correction: Divide the period by four. That gives the spacing between the five points across one cycle.

Lesson summary

Check your understanding

Question 1

What is the period of y=cos⁡(3x)y=\cos(3x)?
  1. 6π6\pi
  2. 2π2\pi
  3. 2π3\frac{2\pi}{3}
  4. π3\frac{\pi}{3}
Show answer and explanation
2π3\frac{2\pi}{3}
The inside coefficient is 33. The period is 2π∣3∣=2π3\frac{2\pi}{|3|}=\frac{2\pi}{3}.

Question 2

For y=4sin⁡(x−π)+2y=4\sin(x-\pi)+2, what is the centre line?
  1. y=4y=4
  2. y=2y=2
  3. y=−2y=-2
  4. y=0y=0
Show answer and explanation
y=2y=2
The vertical shift is 22, so the centre line is y=2y=2.

Question 3

For y=sin⁡(x−π3)y=\sin\left(x-\frac{\pi}{3}\right), where does the shifted cycle begin?
  1. x=0x=0
  2. x=−π3x=-\frac{\pi}{3}
  3. x=π3x=\frac{\pi}{3}
  4. x=2πx=2\pi
Show answer and explanation
x=π3x=\frac{\pi}{3}
Set the inside angle to zero. Then x−π3=0x-\frac{\pi}{3}=0, so the cycle begins at x=π3x=\frac{\pi}{3}.

Key terms

Amplitude
The distance from the centre line to a maximum or minimum of the graph.
Centre line
The horizontal line halfway between the graph’s maximum and minimum values.
Period
The horizontal length of one complete repeating cycle.
Key point
A point used to set the main shape and position of a trigonometric graph.

Continue through MHF4U

View the complete MHF4U Ontario Grade 12 Mathematics curriculum and lessons

About this lesson

Published by DoAssignment. This AI-assisted lesson follows Ontario Grade 12 Mathematics (MHF4U), expectation B2.1. It is a study resource, not an official curriculum publication.

Official curriculum reference

Report a correction or ask a question