Skip to main content
K12 LibreTexts

2.6.2: Translating Sine and Cosine Functions

  • Page ID
    14927
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Graph shifted trig functions

    Explore how changes to the equations of sine and cosine functions affect the graphs of the functions through transformations (stretches and shifts).

    Warm-Up

    Sine and cosine are functions that display periodic behavior when graphed. Use the interactive below to change amplitude of sine and cosine and alter their graphs. Later in this section you will see how to alter these graphs via transformation.

    Interactive Element

    Add interactive element text here. This box will NOT print up in pdfs

    Work it Out 1

    You have seen linear, quadratic and even exponential and logarithmic functions undergo transformations to stretch and shift them. How might the graph of a periodic function behave under these types of transformations? Explore this question using the interactive below.

    Interactive Element

    Add interactive element text here. This box will NOT print up in pdfs

    The general equation for a sine curve is: \(y=A\sin (w(x−h))+k\). In this equation, A represents the amplitude. How does changing the value of the amplitude impact the graph of a sine function? Begin by sketching a graph of the sine function \(y=\sin (x)\). Then pick several different values for A including positive and negative values, numbers close 0, and 0 itself, and graph those equations as well. What happens to your graph as the amplitude changes?

    Discussion

    These are the graphs of \(y=\sin (x)\) (red) and \(y=2\sin (x)\) (green). What impact did changing A from 1 to 2 have on the graph? Predict what the graph would look like when \(A=−2\), and then graph the function. How would you compare the graphs of \(y=2\sin (x)\) and \(y=−2\sin (x)\)? In other words, does the amplitude change when A is a positive number vs. a negative number? What generalizations can you make about the relationship between the absolute value of A and the amplitude?

    f-d_e224a09d8d598c50082fe23ac29ca2d59be07e1a57cf057ab74612a3+IMAGE_THUMB_POSTCARD_TINY+IMAGE_THUMB_POSTCARD_TINY.png
    Figure \(\PageIndex{1}\)

    What generalizations can you make about the relationship between the absolute value of A and the amplitude?

    Example \(\PageIndex{1}\)

    Determine the equation for the graph below. The scale of the x-axis is in degrees.

    f-d_5db6d1d4fa6421cda59cfd09515446632cf4f487f8ae033d952337a1+IMAGE_THUMB_POSTCARD_TINY+IMAGE_THUMB_POSTCARD_TINY.png
    Figure \(\PageIndex{2}\)

    Solution

    The graph is the inverse of a basic sine function, which means \(A\) is a negative number. The amplitude of the graph is at \(y=−5\) and \(y=+5\), or in other words, the minimum and maximum values on the graph are 5 away from the midline. Therefore, the equation is \(y=−5\sin (x)\).

    Work it Out 2

    Just as you did in the previous Active Learning, start by graphing \(y=\sin (x)\). Then experiment with different values for h including positive and negative values, and values close to 0. How do these different values for h impact the graph?

    Discussion

    Recall that the expression for a sine curve is \(y=A\sin (w(x−h))+k\). Therefore, when \(h\) has a positive value, it will be subtracted from x. The h represents the phase shift of the function. How is the graph impacted differently by positive and negatives phase shifts? Can you create an equation with a non-zero phase shift that would look the same when graphed as the equation \(y=\sin (x)\)?

    Example \(\PageIndex{2}\)

    Graph \(y=\cos \left(x−\dfrac{\pi }{4}\right)\)

    Solution

    This function will be shifted \(\dfrac{\pi }{4}\) units to the right. The easiest way to sketch the curve is to start with the parent graph and then move it to the right the correct number of units.

    f-d_53f5336c16df2e2b7d6e6733a69770adb7eae0b8dd9076b325af609e+IMAGE_THUMB_POSTCARD_TINY+IMAGE_THUMB_POSTCARD_TINY.png
    Figure \(\PageIndex{3}\)

    Work it Out 3

    Use the same process as above to explore how a sine curve is impacted when you change the value of k, which is also called the midline or the sinusoidal axis. Pick several different values for k, including positive and negative values, to see how k affects the graph.

    Discussion

    The parent graph of \(y=\sin (x)\) is shifted up or down on the graph as k changes. In other words, the graph is translated \(k\) units. If \(k=1\), does the graph shift up or down? What about if \(k=−1\)?

    Work it Out 4

    How is the parent graph of the sine curve impacted by changing the value of \(w\), the frequency? What happens if \(w\) is a positive number \(v\). a negative number? Predict what happens if \(w\) (the frequency) is changed to both positive and negative values, as well as values between 0 and 1, and values greater than 1.

    Discussion

    The frequency describes the number of cycles of the graph between \(0^{\circ}\) and \(360^{\circ}\), or between \(\pi\) and \(2\pi \). When the frequency is 2, there are two cycles within this range.

    Work it Out 5: Transforming the Graph of Sine Functions

    Experiment with these PLIX to see the relationship between the sine function and its graph.

    CK-12 INTERACTIVES

    Interactive Element
    Example \(\PageIndex{3}\)

    Graphing Translated Sine Functions

    Without using a graphing calculator, sketch the graph of a sine function where \(A=3\), \(\dfrac{\pi }{2}\), \(w=2\), and the midline is 4.

    Solution

    Start by writing an equation with the values given above:

    \(y=3\sin \left(2\left(x−\dfrac{\pi }{2}\right)\right)+4\)

    It will be helpful to start with the parent graph and translate it one step at a time. This is the graph of the function \(y=\sin (x) \)

    f-d_4888a4d2c4e255908917020d30bb965ee28f25c7c39a9db579699563+IMAGE_THUMB_POSTCARD_TINY+IMAGE_THUMB_POSTCARD_TINY.jpg
    Figure \(\PageIndex{4}\)

    The graph of y = sin x

    Now adjust the phase shift of the function, which shifts the graph to the left by \(\dfrac{\pi }{2}\) or \(90^{\circ}\). The blue graph below is of the function \(y=\sin \left(x−\dfrac{\pi }{2}\right)\).

    f-d_9dd740e217a988a6f039826c756b2c03d2b13a764eca58e04efd55e0+IMAGE_THUMB_POSTCARD_TINY+IMAGE_THUMB_POSTCARD_TINY.jpg
    Figure \(\PageIndex{5}\)

    The graphs y = sin x (orange), and \(y = \sin \left(x- \dfrac{\pi}{2}\right)\) (blue)

    Now adjust the midline of the function. The location of the midline is impacted by the value of k. In this example, \(k = 4\), which shifts the graph up by 4 units on the y-axis. The purple graph below is of the function \(y=\sin (x−\dfrac{\pi }{2})+4\).

    f-d_4b3ca65ab06e5d4333f310feaa1ae8b1aba6afccc3bcf7a09f47c82f+IMAGE_THUMB_POSTCARD_TINY+IMAGE_THUMB_POSTCARD_TINY.jpg
    Figure \(\PageIndex{6}\)

    The graphs \(y = \sin \left(x - \dfrac{\pi}{2}\right)\) (blue), and \(y = \sin \left(x - \dfrac{\pi}{2}\right)+4\) (purple)

    Next adjust the amplitude of the function. The amplitude of the purple graph is 1, but the new equation has an amplitude of 3, so the distance between the midline (which is now at \(y = 4\)) and the maximum and minimum y-values should be 3. Therefore, the maximum and minimum values should be at \(y = 1\) and \(y = 7\). The green graph below is for the equation: \(y=3\sin \left(x−\dfrac{\pi }{2}\right)+4\).

    f-d_a72cd42cb05769c30bc7b6ae7ffef9f385fe187d76ade06213c22a56+IMAGE_THUMB_POSTCARD_TINY+IMAGE_THUMB_POSTCARD_TINY.jpg
    Figure \(\PageIndex{7}\)

    The graphs \(y = \sin \left(x - \dfrac{\pi}{2}\right)+4\) (purple) and \(y = 3\sin \left(x- \dfrac{\pi}{2}\right)+4\) (green)

    Finally, you need to adjust the frequency of the graph. Because the value of \(w = 2\), the graph needs to go through 2 complete cycles between \(0^{\circ}\) and \(360^{\circ}\) or between 0 and \(2\pi \). The red graph below is of the function \(y=3\sin \left(2\left(x−\dfrac{\pi }{2}\right)\right)+4\).

    f-d_d1f94111264fbc8c42fc081732a721f4d7579bdb378fe531171ed516+IMAGE_THUMB_POSTCARD_TINY+IMAGE_THUMB_POSTCARD_TINY.jpg
    Figure \(\PageIndex{8}\)

    The red graph is of the function \(y=3\sin \left(2\left(x−\dfrac{\pi }{2}\right)\right)+4\).

    Example \(\PageIndex{4}\)

    Determining a Trigonometric Equation from a Transformed Parent Graph

    Find the equation of the cosine curve below.

    f-d_c08ecb02b43615c5b580f0c6c2f66e1116790b2b31fb135a0a8fc16b+IMAGE_THUMB_POSTCARD_TINY+IMAGE_THUMB_POSTCARD_TINY.png
    Figure \(\PageIndex{9}\)

    Solution

    The parent graph is in green (below). It moves up 3 units (red) and then to the right 3\pi 4 units (blue). Therefore, the equation is \(y=\cos \left(x−\dfrac{3\pi }{4}\right)+3\).

    f-d_c83f9799d263a2f7c0554395a8d6b837f4bb1498ebcd92ac34d01aeb+IMAGE_THUMB_POSTCARD_TINY+IMAGE_THUMB_POSTCARD_TINY.png
    Figure \(\PageIndex{10}\)

    If you moved the cosine curve backward, then the equation would be \(y=\cos \left(x+\dfrac{5\pi }{4}\right)+3\).

    Review

    For questions 1-4, match the equation with its graph.

    f-d_b24dd4c4ecc52208a5fe6a65bd06a4dd95fd1c90b688bfe6d36e2db9+IMAGE_THUMB_POSTCARD_TINY+IMAGE_THUMB_POSTCARD_TINY.png
    Figure \(\PageIndex{11}\)

    Match the Equation with the Graph.

    1. \(y=\sin \left(x−\dfrac{\pi }{2}\right)\)
    2. \(y=\cos \left(x−\dfrac{\pi }{4}\right)+3\)
    3. \(y=\cos \left(x+\dfrac{\pi }{4}\right)−2\)
    4. \(y=\sin \left(x−\dfrac{\pi }{4}\right)+2\)

    Which graph above also represents these equations in #5 and #6?

    1. \(y=\cos \left(x−\pi \right)\)
    2. \(y=\sin \left(x+\dfrac{3\pi }{4}\right)−2\)
    3. Write another sine equation for graph A.
    4. Writing: How many sine (or cosine) equations can be generated for one curve? Why?

    For questions 9 - 14, graph the following equations from \([−2\pi , 2\pi ]\).

    1. \(y=2\sin \left(x+\pi 4\right)\)
    2. \(y=1+\cos x\)
    3. \(y=\cos \left(x+\pi \right)−2\)
    1. \(y=\sin \left(x−\dfrac{\pi}{6} \right)\)
    2. \(y=\cos \left(3(x−1)\right)−3\)
    3. Critical Thinking: Is there a difference between \(y=\sin x+1\) and \(y=\sin (x+1)\)? Explain your answer.

    Additional Resources

    Interactive Element

    Practice: Translating Sine and Cosine Functions


    This page titled 2.6.2: Translating Sine and Cosine Functions is shared under a CK-12 license and was authored, remixed, and/or curated by CK-12 Foundation via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    CK-12 Foundation
    LICENSED UNDER
    CK-12 Foundation is licensed under CK-12 Curriculum Materials License
    • Was this article helpful?