1.5.1 Trigonometric Functions and their Transformations

In this topic we will learn how to:

  • sketch and use the graphs of sine, cosine and tangent functions
  • understand and use the transformations of the graphs of y=f(x)y = f(x) given by y=f(x)+ay = f(x) + a, y=f(x+a)y = f(x + a), y=af(x)y = af(x) and y=f(ax)y = f(ax) and simple combinations of these for trigonometric functions

Sine Function\textbf{\textcolor{gray}{Sine Function}}The sine function is typically denoted as,
y=sinxy = \sin{x}

Rendered by QuickLaTeX.com

It has a period of 2π2\pi radians i.e it repeats every 2π2\pi radians.
Cosine Function\textbf{\textcolor{gray}{Cosine Function}}The cosine function is typically denoted as,
y=cosxy = \cos{x}

Rendered by QuickLaTeX.com

It has a period of 2π2\pi radians i.e it repeats every 2π2\pi radians.
Tangent Function\textbf{\textcolor{gray}{Tangent Function}}The tangent function is typically denoted as,
y=tanxy = \tan{x}

Rendered by QuickLaTeX.com

It has a period of π\pi radians.

Note: The red lines are asymptotes. An asymptote is a line that the function approaches but never reaches.Transformations\textbf{\large\textcolor{gray}{Transformations}}


y=sinx+a\textcolor{gray}{y = \sin{x} + a}This is a translation in the yy direction by aa units.
Let’s look at an example of this transformation.

Example 1
Given that f(x)=sinx f(x) = \sin x\ for  0<x<2π\ 0 < x < 2\pi sketch the graph of g(x)=f(x)+1 g(x) = f(x) + 1\ for  0<x<2π\ 0 < x < 2\pi.

Rendered by QuickLaTeX.com


y=sin(x+a)\textcolor{gray}{y = \sin(x + a)}This is a translation in the xx direction by a-a units.
Let’s look at an example of this transformation.

Example 2
Given that f(x)=sinx f(x) = \sin x\ for  π<x<π\ -\pi < x < \pi sketch the graph of g(x)=f(x+π2) g(x) = f\left(x + \frac{\pi}{2}\right)\ for  π<x<π\ -\pi < x < \pi.

Rendered by QuickLaTeX.com


y=asinx\textcolor{gray}{y = a\sin{x}}This is a stretch in the yy direction by a stretch factor of aa.
Let’s look at an example of this transformation.

Example 3
Given that f(x)=sinx f(x) = \sin x\ for  0<x<2π\ 0 < x < 2\pi sketch the graph of g(x)=2f(x) g(x) = 2f(x)\ for  0<x<2π\ 0 < x < 2\pi.

Rendered by QuickLaTeX.com


y=sin(ax)\textcolor{gray}{y = \sin(ax)}This is a stretch in the xx direction by a stretch factor of 1a\frac{1}{a}. It represents the number of periods of the graph.
Let’s look at an example of this transformation.

Example 4
Given that f(x)=sinx f(x) = \sin x\ for  0<x<2π\ 0 < x < 2\pi sketch the graph of g(x)=f(2x) g(x) = f(2x)\ for  0<x<2π\ 0 < x < 2\pi.

Rendered by QuickLaTeX.com

Note: Notice how there are two periods of  g(x)\ g(x) in the interval  0<x<2π\ 0 < x < 2\pi.


y=asin(bx+c)+d\textcolor{gray}{y = a\sin(bx + c) + d}The above is known as a combined transformation. aa represents a stretch in the yy direction. bb represents a stretch in the xx direction. cc represents a translation in the xx direction. dd represents a translation in the yy direction.
Let’s look at an example of a combined transformation.

Example 5
Given that f(x)=sinx f(x) = \sin x\ for  0<x<52π\ 0 < x < \frac{5}{2}\pi sketch the graph of g(x)=3f(2xπ4)+1g(x) = 3f\left(2x - \frac{\pi}{4}\right) + 1 for 0<x<94π0 < x < \frac{9}{4}\pi.

Start by sketching the graph of f(x)f(x),

Rendered by QuickLaTeX.com

g(x)=3f(2xπ4)+1g(x) = 3f\left(2x - \textcolor{#2192ff}{\frac{\pi}{4}}\right) + 1From f(x)f(x) to g(x)g(x) there is a translation in the xx direction by π4\textcolor{#2192ff}{\frac{\pi}{4}}, then there is a translation in the yy direction by 11 unit,

Rendered by QuickLaTeX.com

g(x)=3f(2xπ4)+1g(x) = 3f\left(2x - \frac{\pi}{4}\right) + 1Finally there is a stretch in the xx direction by a stretch factor of 12\frac{1}{2}, then a stretch in the yy direction by a stretch factor of 33,

Rendered by QuickLaTeX.com

Therefore, the graph of g(x)g(x),

Rendered by QuickLaTeX.com

Note: The transformations for y=cosxy = \cos{x} and y=tanxy = \tan{x} work exactly the same as those for y=sinxy = \sin{x}.
Finding the range of a trig function\textbf{\textcolor{gray}{Finding the range of a trig function}}To find the range of a trig function, we have to find the minimum and maximum points. To find the minimum point of a trig function substitute the part in the equation containing the trig function with 1-1.
Let’s look at an example.


Example 6
Find the minimum value of the function y=2sinx+3y = 2\sin{x} + 3.

Replace sinx\sin{x} with 1-1,
y=2(1)+3y = 2(-1) + 3y=1y = 1Therefore, the minimum point of y=2sinx+3y = 2\sin{x} + 3 is 11


To find the maximum point, substitute the part in the equation containing the trig function with 11.
Let’s look at an example.

Example 7
Find the maximum value of the function y=3sin2x1y = 3\sin{2x} - 1.

Replace sin2x\sin{2x} with 11,
y=3(1)1y = 3(1) - 1y=2y = 2Therefore, the maximum point of y=3sin2x1y = 3\sin{2x} - 1 is 22

Note: If the trig function is negative (see past paper question number 1), then replacing the trig function with 1-1 will give you the maximum point and 11 will give you the minimum point.


Let’s look at some past paper questions.

1. The function ff is defined by f(x)=23cosxf(x) = 2 - 3\cos{x} for 0x2π0 \le x \le 2\pi. (9709/11/M/J/19 number 9)

(a) State the range of ff.
f(x)=23cosxf(x) = 2 - 3\cos{x}To get the range of ff, we have to find both the maximum and minimum point of ff. To find the maximum point, replace cosx\cos{x} with 1-1,
f(x)=23(1)f(x) = 2 - 3(-1)f(x)=5f(x) = 5Therefore, the maximum point of ff is,
55To find the minimum point, replace cosx\cos{x} with 11,
f(x)=23(1)f(x) = 2 - 3(1)f(x)=1f(x) = -1Therefore, the minimum point of ff is,
1-1Therefore, the range of ff is,
1f(x)5-1 \le f(x) \le 5(b) Sketch the graph of y=f(x)y = f(x).

Start by sketching the graph of y=cosx y = \cos x\ for  0x2π\ 0 \le x \le 2\pi. Let’s call this function g(x)g(x),

Rendered by QuickLaTeX.com

The negative sign on 3cosx3\cos x means the function has been reflected in the xx-axis,

Rendered by QuickLaTeX.com

Then there is a translation by 22 units in the yy direction,

Rendered by QuickLaTeX.com

Finally there is a stretch in the yy direction by a stretch factor of  3\ 3,

Rendered by QuickLaTeX.com

Therefore, the graph of y=f(x)y = f(x) is,

Rendered by QuickLaTeX.com

Note: Alternatively, you can sketch the graph by first creating a table of values. It is advisable to get comfortable with transformations, and with time you should be able to sketch a combined transformation in one step.

2. The function ff is defined by f(x)=32cos2x+12f(x) = \frac{3}{2}\cos{2x} + \frac{1}{2} for 0xπ0 \le x \le \pi. (9709/11/M/J/20 number 4)

(a) State the range of ff.
f(x)=32cos2x+12f(x) = \frac{3}{2}\cos{2x} + \frac{1}{2}To get the range of ff, we have to find both the maximum and minimum point of ff. To find the maximum point, replace cos2x\cos{2x} with 11,
f(x)=32(1)+12f(x) = \frac{3}{2}(1) + \frac{1}{2}f(x)=2f(x) = 2Therefore, the maximum point of ff is,
22To find the minimum point, replace cos2x\cos{2x} with 1-1,
f(x)=32(1)+12f(x) = \frac{3}{2}(-1) + \frac{1}{2}f(x)=1f(x) = -1Therefore, the minimum point of ff is,
1-1Therefore, the range of ff is,
1f(x)2-1 \le f(x) \le 2A function gg is such that g(x)=f(x)+kg(x) = f(x) + k, where kk is a positive constant. The x-axis is a tangent to the curve y=g(x)y = g(x).
(b) State the value of kk and hence describe fully the transformation that maps the curve y=f(x)y = f(x) on to y=g(x)y = g(x).

For the x-axis to be a tangent to the curve the minimum point has to be 00. To make the minimum point 00, we have to add 11 to our current minimum point 1-1. Therefore,
k=1k = 1The transformation is,
Translation in the y-direction by 1 unit\textmd{Translation in the y-direction by }1\textmd{ unit}Therefore, the final answer is,
k=1k = 1Translation in the y-direction by 1 unit\textmd{Translation in the y-direction by }1\textmd{ unit}(c) State the equation of the curve which is the reflection of y=f(x)y = f(x) in the x-axis. Give your answer in the form y=acos2x+by = a\cos{2x} + b where aa and bb are constants.
f(x)=32cos2x+12f(x) = \frac{3}{2}\cos{2x} + \frac{1}{2}If we reflect the function in the xx-axis the function becomes negative i.e f(x) becomes -f(x), therefore, we multiply the function by 1-1,
f(x)=(32cos2x+12)f(x) = -\left(\frac{3}{2}\cos{2x} + \frac{1}{2}\right)f(x)=32cos2x12f(x) = -\frac{3}{2}\cos{2x} - \frac{1}{2}Therefore, the final answer is,
f(x)=32cos2x12f(x) = -\frac{3}{2}\cos{2x} - \frac{1}{2}3. A curve has equation y=3cos2x+2y = 3\cos{2x} + 2 for 0xπ0 \le x \le \pi. (9709/12/O/N/20 number 11)

(a) State the greatest and least values of yy.
y=3cos2x+2y = 3\cos{2x} + 2To find the greatest value of yy, replace cos2x\cos{2x} with 11,
y=3(1)+2y = 3(1) + 2y=5y = 5To find the least value of yy, replace cos2x\cos{2x} with 1-1,
y=3(1)+2y = 3(-1) + 2y=1y = -1Therefore,
The greatest and least values of y are 5 and 1, respectively.\textmd{The greatest and least values of }y\textmd{ are }5\textmd{ and }-1\textmd{, respectively.}(b) Sketch the graph of y=3cos2x+2y = 3\cos{2x} + 2 for 0xπ0 \le x \le \pi.
y=3cos2x+2y = \textcolor{red}{3}\cos{\textcolor{#2192ff}{2}x} + \textcolor{#0f0}{2}Start by sketching the graph of y=cosx y = \cos x\ for  0xπ\ 0 \le x \le \pi. We will call this function g(x)g(x),

Rendered by QuickLaTeX.com

From g(x)g(x), there is a stretch in the xx direction by a stretch factor 12\frac{1}{2},

Rendered by QuickLaTeX.com

Then there is a translation in the yy direction by 22 units,

Rendered by QuickLaTeX.com

Finally, there is a stretch in the yy direction by a stretch factor of 33,

Rendered by QuickLaTeX.com

Therefore, the graph of y=3cos2x+2y = 3\cos{2x} + 2 is,

Rendered by QuickLaTeX.com

(c) By considering the straight line y=kxy = kx, where kk is a constant, state the number of solutions of the equation 3cos2x+2=kx 3\cos{2x} + 2 = kx\ for  0xπ\ 0 \le x \le \pi in each of the following cases.

(i) k=3k = -3
The line y=3xy = -3x does not intersect the graph of y=3cos2x+2y = 3\cos{2x} + 2, therefore,
There are no solutions.

(ii) k=1k = 1
The line y=3xy = -3x intersects the graph of y=3cos2x+2y = 3\cos{2x} + 2 twice, therefore,
There are two solutions.

(iii) k=3k = 3
The line y=3xy = -3x intersects the graph of y=3cos2x+2y = 3\cos{2x} + 2 once, therefore,
There is one solution.

Note: If this is hard to visualize, sketch the graphs of the lines on the graph of the curve to see how many times they intersect.

Functions ff, gg and hh are defined for xRx \in \mathbb{R} by

f(x)=3cos2x+2f(x) = 3\cos{2x} + 2

g(x)=f(2x)+4g(x) = f(2x) + 4
h(x)=2f(x+12π)h(x) = 2f\left(x + \frac{1}{2}\pi\right)

(d) Describe fully a sequence of transformations that maps the graph of y=f(x)y = f(x) on to y=g(x)y = g(x).
g(x)=f(2x)+4g(x) = f(\textcolor{#2192ff}{2}x) + \textcolor{#0f0}{4}
Stretch in the xx direction by a stretch factor of 12\frac{1}{2}. Followed by a translation in the yy direction by 44 units.

(e) Describe fully a sequence of transformations that maps the graph of y=f(x)y = f(x) on to y=h(x)y = h(x).
h(x)=2f(x+12π)h(x) = \textcolor{#0f0}{2}f\left(x + \textcolor{#2192ff}{\frac{1}{2}\pi}\right)
Translation in the xx direction by 12π-\frac{1}{2}\pi units. Followed by a stretch in the yy direction by stretch factor 22.