Grade 12 IB Math is live, AA and AI · see the IB course

Grade 12 · MHF4U · Advanced Functions

MHF4U: Graphing Sine and Cosine with Transformations

Every sinusoidal graph is the basic sine or cosine wave, stretched and slid. Four numbers in y=asin⁡(k(x−d))+cy = a \sin(k(x - d)) + c say how, and reading them off correctly is most of the work.

How It Works

Amplitude is ∣a∣|a|: half the distance from the maximum to the minimum. A negative aa reflects the wave in its axis, so sine starts by going down instead of up.

Period is 2πk\frac{2\pi}{k}. A bigger kk squeezes more cycles into the same width. The number in front of xx has to be factored out before you can read the phase shift: sin⁡(3x+π)\sin(3x + \pi) is sin⁡(3(x+π3))\sin\left(3\left(x + \frac{\pi}{3}\right)\right), a shift of π3\frac{\pi}{3} left, not π\pi.

Phase shift is dd: right for x−dx - d, left for x+dx + d. Vertical shift is cc, the equation of the axis of the wave. The maximum is c+∣a∣c + |a| and the minimum is c−∣a∣c - |a|.

Five key points draw one cycle. For sine they are start, max, middle, min, end; for cosine, max, middle, min, middle, max. Space them a quarter period apart, beginning at x=dx = d, and read their heights from cc and aa. Then repeat the cycle in both directions.

Sine and cosine are the same wave: cos⁡x=sin⁡(x+π2)\cos x = \sin\left(x + \frac{\pi}{2}\right). A graph that has a maximum on the yy-axis is simplest as a cosine; one that crosses its axis there going up is simplest as a sine. Either can describe any sinusoid, with a different dd.

Going from a graph to an equation, read the numbers in order: cc is halfway between the max and the min, ∣a∣|a| is half the gap, the period is the distance between two consecutive maxima (or twice the gap between a max and the next min), k=2πperiodk = \frac{2\pi}{\text{period}}, and dd is wherever you choose to start the cycle, matched to sine or cosine.

5 Worked Examples

Easy first, test level last. Try each one on paper, then open the solution.

  1. Easy

    State the amplitude, period, maximum, minimum and axis of y=3sin⁡x+1y = 3 \sin x + 1.
    Show solution
    1. a=3a = 3, so the amplitude is 33. k=1k = 1, so the period is 2π2\pi.
    2. c=1c = 1: the axis is y=1y = 1. Maximum 1+3=41 + 3 = 4, minimum 1−3=−21 - 3 = -2.

    Answer: Amplitude 33, period 2π2\pi, axis y=1y = 1, maximum 44, minimum −2-2

  2. Easy

    Find the period of y=cos⁡2xy = \cos 2x and the five key points of its first cycle from x=0x = 0.
    Show solution
    1. k=2k = 2, so the period is 2π2=π\frac{2\pi}{2} = \pi. A quarter period is π4\frac{\pi}{4}.
    2. Cosine starts at its maximum: (0,1)(0, 1), then (π4,0)\left(\frac{\pi}{4}, 0\right), (π2,−1)\left(\frac{\pi}{2}, -1\right), (3π4,0)\left(\frac{3\pi}{4}, 0\right), (π,1)(\pi, 1).

    Answer: Period π\pi; key points (0,1)(0, 1), (π4,0)\left(\frac{\pi}{4}, 0\right), (π2,−1)\left(\frac{\pi}{2}, -1\right), (3π4,0)\left(\frac{3\pi}{4}, 0\right), (π,1)(\pi, 1)

  3. Medium

    Describe the transformations in y=−2sin⁡(x−π3)+1y = -2 \sin\left(x - \frac{\pi}{3}\right) + 1 and give the key points of one cycle.
    Show solution
    1. a=−2a = -2: amplitude 22, reflected in the axis. k=1k = 1: period 2π2\pi. d=π3d = \frac{\pi}{3}: shifted right. c=1c = 1: axis y=1y = 1, maximum 33, minimum −1-1.
    2. Start the cycle at x=π3x = \frac{\pi}{3} on the axis. Because of the reflection the wave goes down first: (π3,1)\left(\frac{\pi}{3}, 1\right), (5π6,−1)\left(\frac{5\pi}{6}, -1\right), (4π3,1)\left(\frac{4\pi}{3}, 1\right), (11π6,3)\left(\frac{11\pi}{6}, 3\right), (7π3,1)\left(\frac{7\pi}{3}, 1\right).

    Answer: Amplitude 22 with a reflection, period 2π2\pi, phase shift π3\frac{\pi}{3} right, axis y=1y = 1; the cycle runs from (π3,1)\left(\frac{\pi}{3}, 1\right) down to (5π6,−1)\left(\frac{5\pi}{6}, -1\right), up through (4π3,1)\left(\frac{4\pi}{3}, 1\right) to (11π6,3)\left(\frac{11\pi}{6}, 3\right) and back to the axis at x=7π3x = \frac{7\pi}{3}

  4. Medium

    For y=4cos⁡(3x+π)−2y = 4 \cos(3x + \pi) - 2, find the amplitude, period, phase shift, axis, maximum and minimum.
    Show solution
    1. Factor out kk first: 3x+π=3(x+π3)3x + \pi = 3\left(x + \frac{\pi}{3}\right), so y=4cos⁡(3(x+π3))−2y = 4 \cos\left(3\left(x + \frac{\pi}{3}\right)\right) - 2.
    2. Amplitude 44. Period 2π3\frac{2\pi}{3}. Phase shift π3\frac{\pi}{3} to the left, not π\pi.
    3. Axis y=−2y = -2; maximum −2+4=2-2 + 4 = 2, minimum −2−4=−6-2 - 4 = -6.
    4. Check one point: at x=−π3x = -\frac{\pi}{3} the cosine's argument is 00, so y=4−2=2y = 4 - 2 = 2, a maximum, which is where a cosine shifted π3\frac{\pi}{3} left should peak.

    Answer: Amplitude 44, period 2π3\frac{2\pi}{3}, phase shift π3\frac{\pi}{3} left, axis y=−2y = -2, maximum 22, minimum −6-6

  5. Test level

    A sinusoidal function has a maximum of 77 at x=π4x = \frac{\pi}{4} and the next minimum, −1-1, at x=3π4x = \frac{3\pi}{4}. Write its equation as a cosine function and as a sine function.
    Show solution
    1. Axis: c=7+(−1)2=3c = \frac{7 + (-1)}{2} = 3. Amplitude: a=7−(−1)2=4a = \frac{7 - (-1)}{2} = 4.
    2. A max to the next min is half a period: 3π4−π4=π2\frac{3\pi}{4} - \frac{\pi}{4} = \frac{\pi}{2}, so the period is π\pi and k=2ππ=2k = \frac{2\pi}{\pi} = 2.
    3. Cosine starts at a maximum, so d=π4d = \frac{\pi}{4}: y=4cos⁡(2(x−π4))+3y = 4 \cos\left(2\left(x - \frac{\pi}{4}\right)\right) + 3.
    4. Sine starts on the axis going up, a quarter period before the maximum: π4−π4=0\frac{\pi}{4} - \frac{\pi}{4} = 0, so y=4sin⁡2x+3y = 4 \sin 2x + 3.
    5. Check: 4sin⁡(2⋅π4)+3=4sin⁡π2+3=74 \sin\left(2 \cdot \frac{\pi}{4}\right) + 3 = 4 \sin \frac{\pi}{2} + 3 = 7 and 4sin⁡3π2+3=−14 \sin \frac{3\pi}{2} + 3 = -1.

    Answer: y=4cos⁡(2(x−π4))+3y = 4 \cos\left(2\left(x - \frac{\pi}{4}\right)\right) + 3, or equivalently y=4sin⁡2x+3y = 4 \sin 2x + 3

Learn It on Martian Lab

Martian Lab teaches this in the Sinusoidal Functions lesson of its MHF4U Trigonometric Functions unit. Watch it, then take the Trigonometric Functions practice tests to see if it stuck.

Watch the Sinusoidal Functions lesson free

Start Practicing

No credit card required to start.

Get started