Sketch the graphs of sin x, cos x and tan x, find the amplitude, period and principal axis of y = a sin(b(x + c)) + d, and build sinusoidal models from graphs and real data.
IB Mathematics: Analysis and Approaches
Part of 3 Geometry and trigonometry
SL and HL
Key terms introduced here
Each is in the Maths AA glossary, with every other term in the subject.
A function of the form y=asin(b(x+c))+d (or the same with cosine): a sine curve stretched and translated, with a constant amplitude and period.
, and state their domain, range, period, zeros and asymptotes.
Find the amplitude, period, horizontal shift and principal axis of f(x)=asin(b(x+c))+d and of the corresponding cosine function.
Describe the transformations that map y=sinx or y=cosx onto a given circular function.
Sketch transformed circular functions by plotting key points over one period.
Determine the equation of a sinusoidal function from its graph or from given maximum and minimum points.
Construct and interpret sinusoidal models of periodic real-world data, such as tides, daylight hours and the height of a Ferris wheel capsule, and comment on their validity.
Many quantities in nature and technology repeat themselves at regular intervals: the height of the tide, the number of hours of daylight through a year, the height of a seat on a rotating wheel, the voltage in a mains electricity supply. The circular functions sine, cosine and tangent are the basic mathematical models of this kind of repeating behaviour. They grow out of the unit circle, where cosθ and sinθ are the coordinates of a point, and turn into functions of a real variable whose graphs are waves.
Stretching and translating the basic sine wave gives the family of functions f(x)=asin(b(x+c))+d. Each of the four parameters controls one visible feature of the graph, so a graph or a set of data can be turned into an equation, and an equation into a graph, by reading those features.
From the unit circle to circular functions
On the unit circle, the point P reached by turning through an angle θ anticlockwise from the positive x-axis has coordinates (cosθ,sinθ). This definition works for any angle at all, not only for angles in a triangle: an angle larger than 2π simply takes P round the circle more than once, and a negative angle takes it round clockwise. Angles are measured in radians unless degrees are stated (radians are introduced in 3.4).
Because every real number x can be used as an angle in radians, sinx and cosx are defined for every x∈R. Reading the angle as the input and a coordinate of P as the output turns the unit circle into two functions.
The name "circular" comes from this construction; "trigonometric functions" means the same thing. As the angle x increases from 0, the point P travels round the circle and its height above the horizontal axis rises from 0 to 1, falls back through 0 to −1, and returns to 0 when x=2π. Plotting that height against x unrolls the circle into the graph of y=sinx.
The height of P on the unit circle becomes the y-value on the sine graph. One full turn of P, from x = 0 to x = 2π, draws one complete wave.
The same construction with the x-coordinate of P gives the graph of y=cosx. The applet animates the point and draws each graph as it moves.
Choose sin, cos or tan and play the animation: each graph is traced out by the point moving round the unit circle.
Periodic functions
After one full turn, P is back where it started, so the values of sinx and cosx start to repeat. Adding 2π to the angle never changes the position of P:
sin(x+2π)=sinxcos(x+2π)=cosxfor all x
Functions whose graphs repeat in this way are called periodic.
The period of sinx and of cosx is 2π. Numbers such as 4π and 6π also satisfy f(x+p)=f(x), but the period is the smallest positive one. Once one cycle of a periodic graph is known, the whole graph follows by copying that cycle to the left and right.
The graph of y = sin x
A table of exact values at multiples of 6π and 2π (from the unit circle, see 3.5) is enough to plot one cycle accurately.
x
0
6π
2π
65π
π
67π
23π
611π
2π
sinx
0
0.5
1
0.5
0
−0.5
cosx
1
0.866
0
−0.866
−1
(The decimals ±0.866 stand for ±23.) Joining the points with a smooth curve gives a wave that starts at the origin, rises to a maximum of 1 at x=2π, crosses the x-axis again at x=π, falls to a minimum of −1 at x=23π and returns to 0 at x=2π. Every later cycle repeats this pattern.
y = sin x
The sine curve passes through the origin and repeats every 2π. Its values stay between −1 and 1.
The key features of y=sinx:
Domain: x∈R.
Range: −1≤sinx≤1.
Period: 2π.
Zeros (the x-intercepts): x=0,±π,±2π,…, that is x=kπ for every integer k.
Maximum value 1 at x=2π,2π±2π,…
y-intercept: (0,0).
The height of the wave is described by its amplitude.
The graph of y = cos x
Plotting the x-coordinate of P against the angle gives a wave with exactly the same shape as the sine curve. It starts at its maximum, cos0=1, falls through 0 at x=2π to the minimum −1 at x=π, and rises back through 0 at x=23π to 1 at x=2π.
y = cos x
y = sin x
The cosine curve has the same shape as the sine curve, moved π/2 to the left. Its maximum is on the y-axis.
The key features of y=cosx:
Domainx∈R; range−1≤cosx≤1; period2π; amplitude1.
Zeros: x=±2π,±23π,…
Maximum1 at x=0,±2π,…; minimum−1 at x=±π,±3π,…
y-intercept: (0,1).
The graph is symmetrical about the y-axis.
Sliding the sine curve 2π units to the left lands it exactly on the cosine curve, so cosx=sin(x+2π) for every x. Both curves, and any curve obtained from them by stretches and translations, are called sinusoidal.
The graph of y = tan x
The third circular function is defined from the other two:
tanx=cosxsinx
On the unit circle, tanx is the gradient of the radius OP. The quotient is undefined wherever cosx=0, that is at x=±2π,±23π,… As x approaches 2π from below, sinx approaches 1 while cosx approaches 0 through positive values, so tanx grows without limit. Just after 2π, cosx is small and negative and tanx is very large and negative. The graph therefore has a vertical asymptote at each zero of cosx.
y = tan x
Each branch of y = tan x rises from −∞ to +∞ between two asymptotes. The pattern repeats every π, not every 2π.
The key features of y=tanx:
Domain: x∈R, x=2π+kπ for every integer k.
Range: tanx∈R (every real value is taken).
Period: π. The point P at angle x+π is the reflection of P through the origin, so both coordinates change sign and their quotient does not change.
Zeros: x=kπ, the same as the zeros of sinx.
Vertical asymptotes: x=2π+kπ, at the zeros of cosx.
No amplitude, because the graph has no maximum or minimum value. The term amplitude applies only to sine and cosine curves.
The three basic circular functions compare as follows.
y=sinx
y=cosx
y=tanx
Domain
R
R
x=2π+kπ
Range
[−1,1]
[−1,1]
R
Period
2π
2π
π
Amplitude
1
1
none
Zeros
kπ
2π+kπ
kπ
Value at x=0
0
1
0
Asymptotes
none
none
x=2π+kπ
Transformations of circular functions
The general rules for transforming graphs (2.11) apply to circular functions just as they apply to any other function. Because sinusoidal graphs repeat, each transformation has a direct effect on a named feature: the height of the wave, its length, its position along the x-axis or its central level.
Vertical stretch: the amplitude
Multiplying the function by a constant a stretches the graph vertically with scale factor a. Every y-value is multiplied by a, so y=asinx oscillates between −∣a∣ and ∣a∣ and has amplitude ∣a∣. When a is negative, the graph is also reflected in the x-axis: y=−2sinx starts at the origin going down, not up. The amplitude is a distance, so it is never negative.
Horizontal stretch: the period
In y=sin(bx) with b>0, the input to the sine function is bx. One cycle of sin is completed as its input runs from 0 to 2π, and bx runs from 0 to 2π when x runs from 0 to b2π. So the graph is stretched horizontally with scale factor b1, and
period of sin(bx) and of cos(bx)=b2πperiod of tan(bx)=bπ
A value b>1 squeezes more cycles into each interval of length 2π; a value 0<b<1 spreads them out. The number b is the number of complete cycles in an interval of length 2π.
Horizontal translation: the horizontal shift
Replacing x by x+c translates the graph horizontally by −c: y=sin(x+c) is the sine curve moved c units to the left when c>0, and ∣c∣ units to the right when c<0. The graph of y=sin(x−3π) is the sine curve moved 3π to the right, so its first upward zero is at x=3π instead of 0. The amount −c is called the horizontal shift (also called the phase shift).
When there is also a horizontal stretch, the bracket must be written with b taken out as a factor, sin(b(x+c)), before the shift can be read. The order matters: sin(2x+π) is sin(2(x+2π)), a shift of 2π to the left, not π.
Vertical translation: the principal axis
Adding a constant d translates the graph d units vertically. The wave y=sinx+d oscillates about the line y=d instead of the x-axis.
The general sinusoidal function
Combining the four transformations gives the general sinusoidal function.
The amplitude is measured from the principal axis to a maximum, not from a minimum to a maximum. The period is measured between two consecutive maxima (or any two matching points).
Each parameter controls one feature, and the others do not affect it.
Parameter
Transformation of y=sinx
Feature of the graph
a
Vertical stretch, scale factor a (and a reflection in the x-axis if a<0)
Amplitude ∣a∣
b
Horizontal stretch, scale factor b1
Period b2π
c
Horizontal translation by −c
Horizontal shift −c
d
Vertical translation by d
Principal axis y=d
Two features follow straight from these: the maximum value is d+∣a∣ and the minimum value is d−∣a∣, so the range is d−∣a∣≤f(x)≤d+∣a∣.
Describing a sequence of transformations
To describe how y=sinx (or y=cosx) is mapped onto y=asin(b(x+c))+d, list the horizontal transformations and the vertical transformations. Horizontal changes act on x and vertical changes act on y, so the two groups do not interfere with each other. Within each group, the order matters:
Horizontally: the stretch with scale factor b1, then the translation by −c. (Doing the translation first would give sin(bx+c), which is a different function.)
Vertically: the stretch with scale factor a, then the translation by d. (Doing the translation first would give a(sinx+d)=asinx+ad.)
A translation is often written as a vector, such as (−c0) for a horizontal translation by −c.
Sketching sinusoidal graphs
A sinusoidal graph can be sketched quickly from five key points per cycle. For a sine or cosine curve, the maxima, minima and crossings of the principal axis are spaced exactly a quarter of a period apart.
Find the amplitude ∣a∣, the period b2π, the shift −c and the principal axis y=d.
Draw the principal axis and the lines y=d+∣a∣ and y=d−∣a∣ as light guides.
Find one starting point. For asin(b(x+c))+d with a>0 the curve crosses the principal axis going up at x=−c
Step forwards and backwards in quarter periods, marking the next maximum, crossing, minimum and crossing in turn.
Join the points with a smooth wave, rounded at the turning points, and cut it off at the ends of the given domain. Label the axis intercepts and the end points.
Transformed tangent functions
The same transformations apply to y=tanx, with two differences: there is no amplitude (the factor a only makes the branches steeper or shallower), and the period of tan(b(x+c)) is bπ. The vertical asymptotes move with the graph: they are where the input to tan equals 2π+kπ.
Finding the equation from a graph
Reading a sinusoidal graph backwards gives its equation. The four parameters are found one at a time, each from the feature it controls.
Principal axis: d=2max+min.
Amplitude: ∣a∣=2max−min.
Period: measure from one maximum to the next (or between any two matching points), then b=period2π.
Shift: choose a starting point. For a sine model with a>0, use a point where the graph crosses the principal axis going up; for a cosine model with a>0, use a maximum. If that point has x-coordinate x0
The answer is not unique. Because the graph repeats, any starting point one period further on gives an equally valid value of c, and the same curve can be written with sine or with cosine. A question normally restricts the parameters (for example a>0 and 0≤c<π) so that only one answer fits. These different equations are equivalent: they describe the same function.
y = f(x)
The graph of y = f(x) has a minimum at (0, −1) and the next maximum at (π/3, 5).
When the given information is a list of facts rather than a graph, the same four steps apply. A quick sketch of the facts helps to see where the maxima and minima are.
Sinusoidal models of real data
A periodic quantity that rises and falls smoothly between fixed limits can often be modelled by a sinusoidal function of time t. The modelling process uses the same four steps as finding an equation from a graph, with data in place of a drawn curve:
the principal axis d is the mean of the highest and lowest values;
the amplitude ∣a∣ is half their difference;
the period comes from the time for one full cycle, and b=period2π;
the shift comes from the time of a known maximum (cosine) or of a value on the principal axis on the way up (sine).
A model is a simplification, so a good model is checked against data that were not used to build it. The difference between the model and reality shows how far the model can be trusted, an idea of modelling and validity that runs through the whole course.
Tides
The height of the sea at a port rises and falls about twice a day. The tide table for Boston, Massachusetts, on 3 June 2025 lists the following high and low waters (heights above the local reference level, Mean Lower Low Water).
Time
Event
Height (m)
05:49
High water
2.84
12:07
Low water
0.33
18:29
High water
2.78
Tide predictions: NOAA Tides and Currents, station 8443970 (Boston, MA), 3 June 2025.
Model h(t)
The sinusoidal model for the Boston tide on 3 June 2025, with the three tabled heights. The second high water was not used to build the model and lies close to it. Data: NOAA, 2025.
Daylight hours
The number of hours of daylight in a city changes through the year with a period of one year. Away from the equator, the change is large: in London the longest day, 21 June, has 16 hours 38 minutes of daylight, and the shortest, 21 December, has 7 hours 49 minutes (sunrisesunset.io, 2026). The curve of daylight against the day of the year is close to sinusoidal.
The London Eye
A Ferris wheel turns at a constant rate, so the height of a capsule is a sinusoidal function of time. The London Eye has a diameter of 120 m and makes one revolution in about 30 minutes. In a simplified model, the lowest point of a capsule's path is taken as ground level (h=0) and a capsule starts at the lowest point at t=0.
After the wheel turns through θ, the capsule is 60 cos θ below the centre, so its height is 60 − 60 cos θ. The formula also holds once P is above C, where cos θ is negative.
How good is a sinusoidal model?
A sinusoidal model assumes a fixed amplitude, a fixed period and a perfectly smooth, symmetrical rise and fall. Real data often depart from this. Tidal ranges grow and shrink over each lunar month; temperatures rise faster in the morning than they fall in the evening; daylight curves flatten near the solstices more than a sine curve does. Before relying on a model, compare it with data that were not used to build it, look at whether the errors follow a pattern, and restrict predictions to the time span the data cover. A model built from one day of tides is reliable for a day or two, not for a month.
Exam-style questions on circular functions
The first question is in the style of a calculator-free paper; the second allows a GDC.
Self-check
To do:
I can sketch y=sinx, y=cosx and y=tanx and state their domain, range, period, zeros and asymptotes.
To do:
I can explain why the circular functions are periodic, using the unit circle.
To do:
I can find the amplitude, period, horizontal shift and principal axis of asin(b(x+c))+d and acos(b(x+c))+d
To do:
I can take out the factor b before reading a horizontal shift, as in sin(2x+π)=sin(2(x+2π))
To do:
I can describe the sequence of transformations that maps y=sinx onto a given sinusoidal function.
To do:
I can sketch a transformed sine, cosine or tangent graph using key points a quarter period apart.
To do:
I can find the equation of a sinusoidal function from its graph or from its maximum and minimum points.
To do:
I can build a sinusoidal model from real data, use it to make predictions and comment on its validity.
where t is the time in hours after midnight.
(a)
Find the depth of water at 07:00.
[2]2 marks
Markscheme (a)
d(7)=7+4sin(67π)(M1)
=7+4×(−21)=5 (m) A1
(b)
Find the exact depth of water at 10:00.
[2]2 marks
Markscheme (b)
d(10)=7+4sin(35π)
(c)
Find the maximum depth of water and the time at which it occurs.
[2]2 marks
Markscheme (c)
maximum depth =11 (m) A1
sin(6πt)=1⇒6πt=2π
Question 2 · AA-0014616 marks
A seat on an observation wheel starts at its lowest point. The height of the seat above the ground, h metres, t minutes later is modelled by
h(t)=20−18cos(12πt),0≤t≤24.
(a)
Find the exact height of the seat when t=9.
[2]2 marks
(b)
Write down the maximum height of the seat and the value of t at which it occurs.
(c) −2π is a quarter turn clockwise, which puts P at (0,−1). The y-coordinate gives sin(−2π)=−1.
(d) 313π=4π+3π, so cos(313π)=cos(3π)=21.
, its horizontal shift is
−c
and its principal axis is
y=d
.
and
d=1
.
(a) Amplitude =∣a∣=3.
(b) Period =b2π=22π=π.
(c) The principal axis is y=d, that is y=1.
(d) The maximum value is d+∣a∣=4 and the minimum value is d−∣a∣=−2, so the range is −2≤f(x)≤4.
The graph is also the sine curve moved 4π to the right; that shift affects none of these four answers.
So a=−2, b=3, c=6π and d=5.
Horizontal transformations, in this order:
a horizontal stretch with scale factor 31 (parallel to the x-axis), giving y=sin3x;
a translation 6π to the left, by the vector (−6π0), giving y=sin(3(x+6π)).
Vertical transformations, in this order:
a vertical stretch with scale factor 2 and a reflection in the x-axis (together, a vertical stretch with scale factor −2);
a translation 5 units up, by the vector (05).
The amplitude is ∣−2∣=2 and the principal axis is y=5, so the range is 5−2≤y≤5+2, that is 3≤y≤7.
; for
acos(b(x+c))+d
with
a>0
it has a maximum at
x=−c
. If
a<0
, swap up and down (a sine curve goes down and a cosine curve has a minimum there).
and
d=1
.
Amplitude 2; period 1/22π=4π, so the domain covers exactly one cycle.
Principal axis y=1; maximum value 1+2=3; minimum value 1−2=−1.
Since a<0, the cosine curve is reflected: it starts at a minimum at x=0.
A quarter period is π, which gives the key points:
x
0
π
2π
3π
4π
y
−1 (min)
1
3 (max)
1
−1 (min)
For the x-intercepts, set y=0: cos(2x)=21. With 0≤2x≤2π, 2x=3π or 35π, so x=32π or x=310π (solving such equations is covered in 3.8).
y = −2cos(x/2) + 1
One cycle of y = −2cos(x/2) + 1, from a minimum through the maximum at (2π, 3) and back. The dashed line is the principal axis.
, that is
x=π+2kπ
. Inside
−2π<x<2π
these are
x=−π
and
x=π
.
Zeros occur where 2x=kπ, that is x=2kπ. Inside the open interval the only zero is x=0 (the values ±2π are excluded).
At x=2π, y=2tan4π=2, which helps fix the steepness of the central branch.
y = 2tan(x/2)
Halving the input doubles the period of the tangent graph to 2π, so the asymptotes move out to x = ±π.
, then
c=−x0
.
Period. From a minimum to the next maximum is half a period, so
period=2×3π=32πb=2π/32π=3
Shift. With a>0, a sine curve crosses the principal axis going up a quarter period after a minimum. A quarter period is 41×32π=6π, so the curve crosses y=2 going up at x=6π. This is the point where b(x+c)=0, so
x+c=0 at x=6π⇒c=−6π
This lies in the interval −3π<c≤0, so
f(x)=3sin(3(x−6π))+2
Check.f(0)=3sin(−2π)+2=−3+2=−1 and f(3π)=3sin(2π)+2=5. Both points fit.
Without the restriction on c, the value c=−6π+32π=2π would also work, and the same curve can be written as f(x)=−3cos(3x)+2, a reflected cosine curve that has its minimum on the y-axis.
A cosine curve with p>0 has a maximum at x=0, which fits the given point with no shift. From the maximum to the next minimum is half a period, so the period is 2×4π=2π and
The model estimates a height of about 1.56 m, just below the principal axis, as expected half way between high and low water.
(c) At 18:29, t≈18.483, the model gives h≈2.84 m against the predicted 2.78 m: a difference of about 0.06 m, and the time of high water is matched almost exactly. The model fits well over one day. Real tides have successive highs (and lows) of different heights, because the Moon and the Sun do not pull in step, so a single sine curve with a fixed amplitude becomes less accurate over several days.
The period is 365 days, so b=3652π≈0.0172.
A cosine model with a>0 has its maximum where t+c=0, and the maximum is at t=172, so c=−172:
D(t)=4.41cos(3652π(t−172))+12.2
(b) A sine curve reaches its maximum a quarter period after it crosses the principal axis going up. A quarter of 365 days is 91.25 days, so the sine curve crosses upwards at t=172−91.25=80.75:
D(t)=4.41sin(3652π(t−80.75))+12.2
Here c=−80.75. The value t=80.75 is about 21 March, the spring equinox, when day and night are roughly equal (the model gives d≈12.2 hours).
The model gives about 10.0 hours (10 hours 0 minutes), while the true value is 10 hours 23 minutes, a difference of about 4%. The model captures the yearly pattern well, but it is not exact: the real curve is not perfectly sinusoidal, and the published times count daylight from the first to the last moment the edge of the Sun is visible, so even the equinox has a little more than 12 hours of daylight.
.
radians. The centre
C
is
60
m above the ground (the radius). In the right-angled triangle formed by
C
,
P
and the foot of the dashed line on
CB
, the hypotenuse is
CP=60
and the angle at
C
is
θ
, so
P
is
60cosθ
below
C
. Its height is
h=60−60cosθ=60−60cos(15πt)
which is the given result.
(b) h(5)=60−60cos(3π)=60−60×21=30 m.
h(25)=60−60cos(35π)=60−30=30 m. The capsule is at the same height 5 minutes after boarding and 5 minutes before returning to the bottom, on opposite sides of the wheel.
(c) The amplitude is 60, the principal axis is h=60 and b=15π. A sine curve with a>0 crosses its principal axis going up a quarter period before its maximum. The maximum, 120 m, is at t=15, and a quarter period is 7.5 minutes, so the upward crossing is at t=7.5 and c=−7.5:
h(t)=60sin(15π(t−7.5))+60
Check: h(0)=60sin(−2π)+60=0.
, minimum value
1−3=−2
, so
−2≤f(x)≤4
. The domain
0≤x≤π
is exactly one period, so both values are reached.
(c) The maximum occurs where sin(2(x−6π))=1, that is where 2(x−6π)=2π:
x−6π=4π⇒x=4π+6π=125π
The maximum point is (125π,4).
(d) f(0)=3sin(−3π)+1=3×(−23)+1=1−233. The y-intercept is (0,1−233), approximately (0,−1.60).
(e) A quarter period is 4π. The curve crosses the principal axis going up at x=6π, reaches its maximum at 125π, crosses the axis going down at 32π and reaches its minimum −2 at 1211π. Since the period is π, f(π)=f(0).
y = f(x)
One period of f, with its end points, maximum and minimum labelled. The curve meets the principal axis y = 1 at x = π/6 and x = 2π/3.
(f) Horizontally: a stretch with scale factor 21, then a translation 6π to the right. Vertically: a stretch with scale factor 3, then a translation 1 unit up.
, so
t−9=6
and
t=15
: at 15:00.
(b) The minimum is 18−6=12 °C. It occurs half a period after the maximum. The period is π/122π=24 hours, so the minimum is 12 hours from 15:00, at t=3: 03:00.
(c) T(6)=6sin(−4π)+18=18−32=13.757…≈13.8 °C.
(d) Graph y=T(t) and y=20 on the GDC for 0≤t<24 and find the two intersections:
t1=10.298…t2=19.701…
The temperature is above 20 °C between these times, for 19.701…−10.298…=9.40 hours (3 s.f.).
.
.
(M1)
=7−23 (m) A1
, so
t=3
(03:00)
A1
.
[4]4 marks
(d)
Hence, find the length of time during one revolution for which the seat is more than 29 m above the ground.
[2]2 marks
(e)
Find the rate at which the height of the seat is changing when t=2.
[3]3 marks
(f)
Find the values of t at which the seat is descending at a rate of 43π metres per minute.