topic badge
CanadaON
Grade 11

Single transformations of sine and cosine

Lesson

Vertical translation

In general, we say that the graph of a function $y=f\left(x\right)$y=f(x) is vertically translated when the resulting graph is of the form $y=f\left(x\right)+c$y=f(x)+c, where $c$c is some non-zero constant.

Graphically speaking, a vertical translation takes each point on the graph of $y=f\left(x\right)$y=f(x) and adds (or subtracts) a constant to the $y$y-value of each point. For instance, we might have the graph of $y=\cos x$y=cosx as shown below, and all the points shift upwards according to the constant term.

$y=\cos x$y=cosx vertically translated upwards by a positive constant $c$c.

 

The constant term does not necessarily have to be positive. In the case that $c$c is negative, that is $c<0$c<0, the graph of a function will vertically translate downwards.

$y=\sin x$y=sinx vertically translated downwards by a negative constant $c$c.

 

Careful!

For a negative value of $c$c, the graph of $y=f\left(x\right)$y=f(x) translates vertically downwards, although we would still write the equation of the resulting graph as $y=f\left(x\right)+c$y=f(x)+c.

Alternatively, we might instead write $y=f\left(x\right)-c$y=f(x)c, where $c$c is redefined as the absolute value.

Worked example

The graph of $y=\sin x+k$y=sinx+k has been vertically translated upwards by $5$5 units from $y=\sin x$y=sinx. What is the value of $k$k?

Think: The equation $y=\sin x+k$y=sinx+k is of the form $y=f\left(x\right)+c$y=f(x)+c where $c$c determines the direction and the magnitude of the vertical translation.

Do: A positive value of $k$k will translate the graph of $y=\sin x$y=sinx upwards. So $k=5$k=5.

Reflect: If instead we asked about the graph of $y=\sin x-k$y=sinxk, how might the value of $k$k change?

Dilation

The graphs of trigonometric functions like $y=\sin x$y=sinx and $y=\cos x$y=cosx have sections that are repeated in the $x$x-direction. The length of these repeated sections is called the wavelength, and we can understand a lot about the behaviour of the whole function by looking only at what happens within a single wavelength.

Typically, each trigonometric graph will have a minimum value, a maximum value, and and average value along the wavelength. The distance between the maximum (or minimum) value and the average value is called the amplitude.

If the range of the function is given by $\text{maximum value - minimum value }$maximum value - minimum value , the amplitude is then $\frac{\text{max - min }}{2}$max - min 2. Notice that the amplitude is always a positive number.

Dilations and the amplitude

An equation of the form $y=a\sin x$y=asinx has an amplitude of $a$a units. If we start with the equation $y=\sin x$y=sinx, where $a=1$a=1, we can transform this equation by changing the amplitude.

Graphically this transformation corresponds to stretching the graph of $\sin x$sinx in the vertical direction when $a>1$a>1, and compressing the graph of $\sin x$sinx in the vertical direction when $00<a<1. We can also reflect the graph across the $x$x-axis by multiplying the whole function by $-1$1.

This action of stretching and compressing the graph of a function is known as dilation. For trigonometric graphs like $\sin x$sinx and $\cos x$cosx, a vertical dilation by a factor of $a$a is equivalent to increasing the amplitude by a factor of $a$a.

 

Worked example 1

State the amplitude of the function $f\left(x\right)=5\sin x$f(x)=5sinx.

Think: When we compare $f\left(x\right)$f(x) to the standard function $\sin x$sinx we can see that all the function values of $5\sin x$5sinx will be five times larger than all the function values of $\sin x$sinx. This means that the amplitude of $5\sin x$5sinx is also five times larger than the amplitude of $\sin x$sinx.

Do: The amplitude of $\sin x$sinx is $1$1, so the amplitude of $f\left(x\right)=5\sin x$f(x)=5sinx is $5\times1=5$5×1=5.

Reflect: We can obtain the graph of $f\left(x\right)=5\sin x$f(x)=5sinx by starting with the graph of $y=\sin x$y=sinx and applying a vertical dilation by a factor of $5$5.

 

Worked example 2

The graph of $y=\cos x$y=cosx is reflected across the $x$x-axis, then compressed in the vertical direction so that its minimum value is $\frac{3}{4}$34. What is the equation of the resulting function. What is the amplitude?

Think: Recall that a reflection across the $x$x-axis corresponds to multiplying the function by $-1$1. This will "switch" the location of the maximum and minimum values of the graph, but the amplitude will still be a positive value.

Do: Let's keep track of how the equation of the graph changes at each stage of the transformation.

$y=\cos x$y=cosx $\rightarrow$ $y=-\cos x$y=cosx (Reflection across $x$x-axis)
$y=-\cos x$y=cosx $\rightarrow$ $y=-\frac{3}{4}\cos x$y=34cosx (Vertical compression)

The final equation of the resulting graph is $y=-\frac{3}{4}\cos x$y=34cosx. The amplitude of this equation is $\frac{3}{4}$34.

Reflect: Compare the resulting equation with the original equation. The only difference is the constant multiple of $-\frac{3}{4}$34. Notice that although this number is negative, the amplitude of the resulting equation is positive. In general, the amplitude of the equation $y=a\cos x$y=acosx is $\left|a\right|$|a|.

 

Practice questions

QUESTION 1

Determine the equation of the graphed function given that it is of the form $y=a\sin x$y=asinx or $y=a\cos x$y=acosx, where $x$x is in degrees.

Loading Graph...
A Cartesian plane is depicted, with the x-axis ranging from 0 to 360, labeled at intervals of 90, and the y-axis ranging from -3 to 3, labeled at intervals of 1. A sinusoidal wave passing through (0,2) is plotted on the plane with peaks at 2 and -2. The cycle ends every 360, however this is not explicitly labeled.

QUESTION 2

What is the amplitude of the function $f\left(t\right)=-\frac{1}{8}\sin t$f(t)=18sint?

  1. $8$8

    A

    $\frac{1}{8}$18

    B

    $-\frac{1}{8}$18

    C

    $-8$8

    D

QUESTION 3

Consider the function $y=-4\cos x$y=4cosx.

  1. What is the maximum value of the function?

  2. What is the minimum value of the function?

  3. What is the amplitude of the function?

  4. Select the two transformations that are required to turn the graph of $y=\cos x$y=cosx into the graph of $y=-4\cos x$y=4cosx.

    Vertical dilation.

    A

    Reflection about the $x$x-axis.

    B

    Horizontal translation.

    C

    Vertical translation.

    D

Period Changes

 

We define the $\cos$cos and $\sin$sin functions as the horizontal and vertical coordinates of a point that moves on the unit circle. In the diagrams below, this is shown for an angle $\alpha$α in the first and second quadrants.

If we imagine the point moving counterclockwise on the unit circle so that the radius from the point makes an ever-increasing angle with the positive horizontal axis, eventually the angle exceeds $360^\circ$360°; but the values of the $\cos$cos and $\sin$sin functions repeat the values of the coordinates from the angle $360^\circ$360° smaller. We say $\sin$sin and $\cos$cos are periodic functions with period $360^\circ$360°.

Thus, for any angle $\alpha$α, there is a sequence of angles with the same value of $\sin\alpha$sinα.

$...,\alpha-720^\circ,\alpha-360^\circ,\alpha,\alpha+360^\circ,\alpha+720^\circ,\alpha+1080^\circ,...$...,α720°,α360°,α,α+360°,α+720°,α+1080°,...

 

Again, consider the angle $\alpha$α made by the point moving around the unit circle. If a new angle $\alpha'$α is defined by $\alpha'=k\alpha$α=kα, We know that $\sin\alpha'$sinα has period $360^\circ$360°, but we see that $\alpha'$α reaches $360^\circ$360°  when $\alpha=\frac{360^\circ}{k}$α=360°k. So, $\sin k\alpha$sinkα and $\cos k\alpha$coskα must have period $\frac{360^\circ}{k}$360°k with respect to $\alpha$α.

Example 1

The function $\sin2x$sin2x begins to repeat when $2x=360^\circ$2x=360°. That is, when $x=180^\circ$x=180°. So, $\sin2x$sin2x has period $180^\circ$180°. The period is multiplied by $\frac{1}{2}$12 when $x$x is multiplied by $2$2.

 

 

 

Thus, we see that for functions $\sin kx$sinkx and $\cos kx$coskx where $k$k is a constant, the period of the function with respect to $kx$kx is $360^\circ$360° but the period with respect to $x$x is $\frac{360^\circ}{k}$360°k.

We can use these ideas to deduce the formula for a sine or cosine function from a graph.

Worked Example 3

 

This graph looks like the graph of a cosine function since it has the value $1$1 at $0$0. However, the period is $288^\circ$288°.

We know that $\cos k\alpha^\circ$coskα° has period $\frac{360^\circ}{k}$360°k and, in this case, $\frac{360^\circ}{k}=288^\circ$360°k=288°. Therefore, $k=\frac{360^\circ}{288}=1.25$k=360°288=1.25.

The graph must belong to the function given by $\cos\left(1.25\alpha^\circ\right)$cos(1.25α°).

 

Practice examples

Question 4

Consider the functions $f\left(x\right)=\sin x$f(x)=sinx and $g\left(x\right)=\sin5x$g(x)=sin5x.

  1. State the period of $f\left(x\right)$f(x) in degrees.

  2. Complete the table of values for $g\left(x\right)$g(x).

    $x$x $0^\circ$0° $18^\circ$18° $36^\circ$36° $54^\circ$54° $72^\circ$72° $90^\circ$90° $108^\circ$108° $126^\circ$126° $144^\circ$144°
    $g\left(x\right)$g(x) $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  3. State the period of $g\left(x\right)$g(x)in degrees.

  4. What transformation of the graph of $f\left(x\right)$f(x) results in the graph of $g\left(x\right)$g(x)?

    Horizontal dilation by a factor of $5$5.

    A

    Horizontal dilation by a factor of $\frac{1}{5}$15.

    B

    Vertical dilation by a factor of $5$5.

    C

    Vertical dilation by a factor of $\frac{1}{5}$15.

    D
  5. The graph of $f\left(x\right)$f(x) has been provided below.

    By moving the points, graph $g\left(x\right)$g(x).

    Loading Graph...

Question 5

Consider the function $f\left(x\right)=\cos x$f(x)=cosx and $g\left(x\right)=\cos\left(\frac{x}{2}\right)$g(x)=cos(x2).

  1. State the period of $f\left(x\right)$f(x) in degrees.

  2. Complete the table of values for $g\left(x\right)$g(x).

    $x$x $0$0 $180^\circ$180° $360^\circ$360° $540^\circ$540° $720^\circ$720° $900^\circ$900° $1080^\circ$1080°
    $g\left(x\right)$g(x) $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  3. State the period of $g\left(x\right)$g(x) in degrees.

  4. What transformation of the graph of $f\left(x\right)$f(x) results in the graph of $g\left(x\right)$g(x)?

    Horizontal dilation by a factor of $2$2.

    A

    Vertical dilation by a factor of $2$2.

    B

    Horizontal dilation by a factor of $\frac{1}{2}$12.

    C

    Vertical dilation by a factor of $\frac{1}{2}$12.

    D
  5. The graph of $f\left(x\right)$f(x) has been provided below.

    By moving the points, graph $g\left(x\right)$g(x).

    Loading Graph...

  6. Is the amplitude of $g\left(x\right)$g(x) different to the amplitude of $f\left(x\right)$f(x)?

    No

    A

    Yes

    B

Question 6

Consider the function $f\left(x\right)=\sin6x$f(x)=sin6x.

  1. Determine the period of the function in degrees.

  2. How many cycles does the curve complete in $3240^\circ$3240°?

  3. What is the maximum value of the function?

  4. What is the minimum value of the function?

  5. Graph the function for $0^\circ\le x\le120^\circ$0°x120°.

    Loading Graph...

Phase Shifts

Phase shift for trigonometric functions means moving the graph of the function to the right or to the left. This transformation occurs when a constant is added to (or subtracted from) the angle to which the function is applied.

For example, the following functions include a phase shift transformation.

$\sin\left(\theta+45^\circ\right)$sin(θ+45°)
$\cos(x-37.5^\circ)$cos(x37.5°)
$\tan\left(\alpha+180^\circ\right)$tan(α+180°)

 

Worked Example 4

The following graph shows the functions $\cos\theta$cosθ and $\cos(\theta+23^\circ)$cos(θ+23°) on the same axes.

The graph of $\cos\theta$cosθ is shown in black. It can be seen that the graph of $\cos(\theta+23^\circ)$cos(θ+23°) is the graph of $\cos\theta$cosθ shifted to the left by the amount $23^\circ$23°

The dotted lines drawn on the diagram are intended to show that the function $\cos(\theta+23^\circ)$cos(θ+23°) when $\theta=20^\circ$θ=20° attains the same value reached by $\cos\theta$cosθ when $\theta=43^\circ$θ=43°. Thus, the shift is to the left.

 

Worked Example 5

The following graph looks like the graph of $\sin\theta$sinθ with a phase shift of $60^\circ$60° to the right. 

The graph must belong to the function given by $\sin(\theta-60^\circ)$sin(θ60°). The phase shift to the right has been brought about by adding $-60^\circ$60° to $\theta$θ.

Practice examples

Question 7

Consider the function $f\left(x\right)=\sin x$f(x)=sinx and $g\left(x\right)=\sin\left(x-90^\circ\right)$g(x)=sin(x90°).

  1. Complete the table of values for both functions.

    $x$x $0$0 $90^\circ$90° $180^\circ$180° $270^\circ$270° $360^\circ$360°
    $f\left(x\right)$f(x) $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
    $g\left(x\right)$g(x) $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$ $\editable{}$
  2. Using the table of values, what transformation of the graph of $f\left(x\right)$f(x) results in the graph of $g\left(x\right)$g(x)?

    Horizontal translation $90^\circ$90° to the right

    A

    Horizontal translation $90^\circ$90° to the left

    B

    Vertical translation $90^\circ$90° upwards

    C

    Vertical translation $90^\circ$90° downwards

    D
  3. The graph of $f\left(x\right)$f(x) has been provided below.

    By moving the points, graph $g\left(x\right)$g(x).

    Loading Graph...

Question 8

The functions $f\left(x\right)$f(x) and $g\left(x\right)=f\left(x+k\right)$g(x)=f(x+k) have been graphed on the same set of axes in grey and black respectively.

Loading Graph...

  1. What transformation has occurred from $f\left(x\right)$f(x) to $g\left(x\right)$g(x)?

    Horizontal translation of $135^\circ$135° left.

    A

    Horizontal stretching by a factor of $135^\circ$135°.

    B

    Horizontal translation of $135^\circ$135° right.

    C

    Vertical translation of $135^\circ$135° up.

    D
  2. Determine the smallest positive value of $k$k.

Question 9

The graph of $y=\sin x$y=sinx is translated $60^\circ$60° to the left.

  1. What is the equation of the new curve?

  2. What is the amplitude of the new curve?

  3. What is the period of the new curve?

 

 

 

 

Outcomes

11U.D.2.5

Determine, through investigation using technology, the roles of the parameters a, k, d, and c in functions of the form y =af (k(x – d)) + c, where f(x) =sinx or f(x) =cosx with angles expressed in degrees, and describe these roles in terms of transformations on the graphs of f(x) =sinx and f(x) =cosx

11U.D.2.6

Determine the amplitude, period, phase shift, domain, and range of sinusoidal functions whose equations are given in the form f(x) = asin(k(x – d)) + c or f(x) = acos(k(x – d)) + c

What is Mathspace

About Mathspace