Graphs of the trigonometric functions · Mathematics Class 11–12 | StemPy Lab
Course 2.2·Lesson 3 of 3
Graphs of the trigonometric functions
Unrolling the unit circle gives the wave of y=sinx. The graph of cosx
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
From the circle to a wave
Let the point P go round the unit circle, and plot its height, sinx, against the angle x. The height rises to 1, falls to −1 and comes back, again and again. The result is a wave.
The graphs of y = sin x (solid blue) and y = cos x (dashed red) from −2π to 2π. Both are waves between −1 and 1 that repeat every 2π. The sine wave passes through the origin and the multiples of π. The cosine wave has its top at x = 0 and is the sine wave moved π/2 to the left.
The graph of y=sinx shows:
a wave that repeats every 2π;
zeros at x=nπ;
the highest value 1 at x=2π+2nπ, and the lowest value −1 at x=23π+2nπ;
a half-turn symmetry about the origin, because sine is odd.
The graph of y=cosx is the same wave moved 2π to the left. It is symmetric about the y-axis, because cosine is even.
The graph of tan x
The graph of y = tan x from −3π/2 to 3π/2. Three rising branches each pass through a multiple of π on the x-axis: −π, 0 and π. Red dashed vertical lines at −3π/2, −π/2, π/2 and 3π/2 are asymptotes, where tan x is not defined. The title says that the period is π.
tanx=0 where sinx=0, at x=nπ.
As x comes close to 2π from below, cosx becomes small and positive while sinx is close to 1. So tanx grows without end. The vertical line x=2π is an asymptote.
The graph repeats every π, and it takes every real value.
The graphs of sec x, cosec x and cot x
Two graphs side by side, from −3π/2 to 3π/2. Left: y = sec x in blue, made of U-shaped branches, with y = cos x dashed in grey. Each branch touches the cosine wave at its top or bottom and goes off to infinity at the dotted asymptotes, the odd multiples of π/2. Right: y = cosec x in blue with y = sin x dashed in grey, with asymptotes at the multiples of π.
secx=cosx1 equals 1 where cosx equals 1. It grows without end where cosx comes close to 0. Its graph is a row of U-shaped branches, each at least 1 above or 1 below the x-axis. Cosec does the same with sinx. The graph of cotx looks like that of tanx, falling instead of rising, with asymptotes at the multiples of π.
Stretching and moving a wave
Many repeating motions follow y=asin(bx+c)+d, with b>0.
Amplitude∣a∣: half the distance from the lowest point to the highest point. A negative a turns the wave upside down.
Periodb2π: a larger b squeezes the wave.
Sideways shift: write bx+c=b(x+bc). The wave of sinbx moves by −bc, to the right when this number is positive.
Middle liney=d: the range is [d−∣a∣,d+∣a∣].
For example, take y=3sin(2x−2π)+1. The amplitude is 3 and the period is 22π=π. The shift is 2π/2=4π to the right. The middle line is y=1, so the range is [−2,4].
Set b=2: two full waves now fit where one was. Then set a=−2 and watch the wave turn over.
A worked example: a giant wheel
A giant wheel has a radius of 10m, and its centre is 12m above the ground. It turns once every 40s. A seat is at the bottom at t=0. Let us find the height h of the seat at time t.
Step 1. Middle line and amplitude. The seat moves between 2m and 22m. So the middle line is 12m and the amplitude is 10m.
Step 2. Period. One turn takes 40s, so b=402π=20π per second.
Step 3. The start.−cos starts at its lowest value, just like the seat. So h=12−10cos20πt metres.
Step 4. Check. At t=20s, cosπ=−1, and h=12+10=22m: the top, after half a turn.
Practise with new numbers
Try it in Python
This program draws y=asin(bx+c)+d beside y=sinx, and prints the amplitude, the period, the shift and the range.
Common mistakes
The period of sin2x as 4π. It is 22π=π. The wave is squeezed, not stretched.
A negative amplitude. For y=−5sinx the amplitude is 5. The minus sign turns the wave over.
The wrong shift. In sin(2x−π) the shift is 2π, not π. Take b out first: sin2(x−2π).
Joining tan across an asymptote. The graph breaks at x=2π, where there is no point at all.
Remember these
y=sinx and y=cosx are waves between −1 and 1, with period 2π.
y=tanx has period π and asymptotes at the odd multiples of 2π.
For y=asin(bx+c)+d: amplitude ∣a∣, period b2π, shift −bc, middle line y=d.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
What are the amplitude and the period of y=4sin5x?
Where does y=cosx cross the x-axis between 0 and 2π?
What is the greatest value of y=7+2sin3x, and at what smallest positive x is it reached?
Between −π and π, where is y=tanx not defined?
How is the graph of y=sin(x−3π) related to the graph of y=sinx?
Enroll free in Trigonometric Functions and Their Graphs
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.