Free ACT Math Functions

ACT Math · Functions · free lesson

Graphs of Sine and Cosine

The idea, then worked examples solved step by step, then practice questions whose numbers change every time you try them.

The idea

From the unit circle to the sine curve

On the unit circle, the point reached by turning an angle xx (in radians) from the positive xx-axis is (cos⁡x,sin⁡x)(\cos x, \sin x). So sin⁡x\sin x is the height of that point and cos⁡x\cos x is how far it is to the right. Now let the point go round and plot its height against the angle turned. The curve you get is the graph of y=sin⁡xy = \sin x.

In the animation, PP goes once round the circle on the left. The grey line carries its height across to the right, where the red curve is drawn at the matching angle. One full turn, 2π2\pi radians, draws one full wave.

The height starts at 0, rises to 1 at a quarter turn, falls back to 0 at a half turn, reaches −1-1 at three quarters, and returns to 0. The engine gives the sine and the cosine at these five angles:

s=sin⁡(x)=[0,1,0,−1,0]c=cos⁡(x)=[1,0,−1,0,1]\begin{aligned} s &= \sin(x) \\ &= [0, 1, 0, -1, 0] \\ c &= \cos(x) \\ &= [1, 0, -1, 0, 1] \end{aligned}
xx00π2\frac{\pi}{2}π\pi3π2\frac{3\pi}{2}2π2\pi
sin⁡x\sin x001100−1-100
cos⁡x\cos x1100−1-10011

These five points fix the shape of one wave. The two graphs below draw themselves over one turn. The cosine curve is the sine curve moved π2\frac{\pi}{2} to the left: it starts at its top instead of in the middle.

Amplitude, midline and period

Every sine or cosine graph on the ACT is this wave stretched and moved. Write it as y=Asin⁡(Bx)+Dy = A\sin(Bx) + D or y=Acos⁡(Bx)+Dy = A\cos(Bx) + D with B>0B > 0.

Definition.

The midline is the horizontal line y=Dy = D that the wave runs along. The amplitude is ∣A∣\lvert A \rvert: how far the wave rises above the midline and falls below it. The period is 2πB\frac{2\pi}{B}: the length along the xx-axis of one full wave. So the maximum value is D+∣A∣D + \lvert A \rvert and the minimum is D−∣A∣D - \lvert A \rvert.

Take y=3sin⁡(2x)+1y = 3\sin(2x) + 1. The engine finds the amplitude aa, the period TT, and the greatest and least values, MM and mm:

a=∣A∣=∣3∣=3T=2πB=2π2=π≈3.141592654M=D+a=1+3=4m=D−a=1−3=−2\begin{aligned} a &= \left|A\right| \\ &= \left|3\right| \\ &= 3 \\ T &= \frac{2\pi}{B} \\ &= \frac{2\pi}{2} \\ &= \pi \approx 3.141592654 \\ M &= D + a \\ &= 1 + 3 \\ &= 4 \\ m &= D - a \\ &= 1 - 3 \\ &= -2 \end{aligned}

The wave runs along y=1y = 1, rising to 44 and falling to −2-2, and it repeats every π\pi, so two whole waves fit between 0 and 2π2\pi. Watch it draw itself, with the midline dashed:

Now change the numbers yourself. AA stretches the wave up and down, BB squeezes it sideways (a larger BB means a shorter period and more waves), and DD lifts the whole wave.

Set AA below zero and the wave turns upside down: it falls first instead of rising. The amplitude is still the positive number ∣A∣\lvert A \rvert.

Warning.

The period is 2πB\frac{2\pi}{B}, not BB and not 2πB2\pi B. In y=sin⁡(4x)y = \sin(4x) the wave repeats every π2\frac{\pi}{2}; four whole waves fit in 2π2\pi. And the amplitude is half the distance from the lowest point to the highest, not the whole height.

Phase shift

Replacing xx by x−Cx - C moves a graph CC to the right, as for any function. So y=sin⁡(x−π3)y = \sin\left(x - \frac{\pi}{3}\right) is the sine wave moved π3\frac{\pi}{3} to the right; this sideways move is the phase shift. When BB is not 1, take BB out first: y=sin⁡(2x−π2)=sin⁡(2(x−C))y = \sin\left(2x - \frac{\pi}{2}\right) = \sin\left(2\left(x - C\right)\right), where CC is the number with 2C=π22C = \frac{\pi}{2}:

2C=π2C=π4≈0.7853981634\begin{aligned} 2C &= \frac{\pi}{2} \\ C &= \frac{\pi}{4} \approx 0.7853981634 \end{aligned}

The shift is π4\frac{\pi}{4} to the right, not π2\frac{\pi}{2}. The grey curve below is y=sin⁡(2x)y = \sin(2x); the red one, drawn after it, is y=sin⁡(2x−π2)y = \sin\left(2x - \frac{\pi}{2}\right), the same wave moved π4\frac{\pi}{4} to the right.

Reading an equation from a graph

To go from a graph to an equation, read the highest value MM and the lowest value mm. The midline is halfway between them and the amplitude is half the distance between them. Then read the period, the length of one full wave, and find BB from it. For a wave that rises to 7, falls to 1, and repeats every 4 units:

D=M+m2=7+12=4a=M−m2=7−12=3B=2πT=2π4=π2≈1.570796327\begin{aligned} D &= \frac{M + m}{2} \\ &= \frac{7 + 1}{2} \\ &= 4 \\ a &= \frac{M - m}{2} \\ &= \frac{7 - 1}{2} \\ &= 3 \\ B &= \frac{2\pi}{T} \\ &= \frac{2\pi}{4} \\ &= \frac{\pi}{2} \approx 1.570796327 \end{aligned}

So the midline is y=4y = 4, the amplitude is 33, and B=π2B = \frac{\pi}{2}. If the graph starts at its highest point when x=0x = 0, a cosine fits with no shift: y=3cos⁡(π2x)+4y = {3}\cos\left({\frac{\pi}{2}}x\right) + {4}.

Note.

On the ACT a question on these graphs asks one of a few things: the amplitude, period or midline of an equation, the greatest or least value, which equation matches a graph, or an equation for a periodic situation such as a tide or a Ferris wheel. The calculator must be in radian mode when xx is in radians.

Worked examples

Worked examples

Each example is one of the kinds of question the ACT asks about the graphs of sine and cosine. The numbers in the working are found by the engine. Angles are in radians.

Example.

1. Amplitude, period and midline. For y=−4cos⁡(3x)+2y = -4\cos(3x) + 2, find the amplitude, the period, the midline, and the greatest and least values of yy.

Match the equation with y=Acos⁡(Bx)+Dy = A\cos(Bx) + D: here A=−4A = -4, B=3B = 3 and D=2D = 2. The amplitude is ∣A∣\lvert A \rvert, the period is 2πB\frac{2\pi}{B}, and the wave goes as far above DD as below it.

a=∣A∣=∣−4∣=4T=2πB=2π3=2π3≈2.094395102M=D+a=2+4=6m=D−a=2−4=−2\begin{aligned} a &= \left|A\right| \\ &= \left|-4\right| \\ &= 4 \\ T &= \frac{2\pi}{B} \\ &= \frac{2\pi}{3} \\ &= \frac{2\pi}{3} \approx 2.094395102 \\ M &= D + a \\ &= 2 + 4 \\ &= 6 \\ m &= D - a \\ &= 2 - 4 \\ &= -2 \end{aligned}

The amplitude is 44 (not −4-4), the period is 2π3\frac{2\pi}{3}, the midline is y=2y = 2, and yy runs from −2-2 to 66. Because AA is negative, the wave starts at its lowest point.

Example.

2. A long period. What is the period of y=5sin⁡(x2)−1y = 5\sin\left(\frac{x}{2}\right) - 1, and what is its range?

Here B=12B = \frac{1}{2}. A value of BB less than 1 stretches the wave, so the period is longer than 2π2\pi:

T=2πB=2π12=4π≈12.56637061M=D+∣A∣=−1+∣5∣=4m=D−∣A∣=−1−∣5∣=−6\begin{aligned} T &= \frac{2\pi}{B} \\ &= \frac{2\pi}{\frac{1}{2}} \\ &= 4\pi \approx 12.56637061 \\ M &= D + \left|A\right| \\ &= -1 + \left|5\right| \\ &= 4 \\ m &= D - \left|A\right| \\ &= -1 - \left|5\right| \\ &= -6 \end{aligned}

The period is 4π4\pi, so one wave runs from 0 to 4π4\pi. The range is all yy from −6-6 to 44. Taking the period as 2π⋅12=π2\pi \cdot \frac{1}{2} = \pi is the usual slip.

Example.

3. Which equation matches the graph? The graph below passes through the origin going up, rises to 3, falls to −3-3, and repeats every π\pi. Which equation is it: y=3sin⁡(2x)y = 3\sin(2x), y=3cos⁡(2x)y = 3\cos(2x), y=2sin⁡(3x)y = 2\sin(3x), or y=3sin⁡(x2)y = 3\sin\left(\frac{x}{2}\right)?

Read three things. The wave goes 3 above and 3 below the xx-axis, so the midline is y=0y = 0 and the amplitude is 3. It starts in the middle going up, so it is a sine with a positive AA, not a cosine (a cosine starts at its top). Its period is π\pi, so BB comes from 2πB=π\frac{2\pi}{B} = \pi:

2πB=πB=2\begin{aligned} \frac{2\pi}{B} &= \pi \\ B &= 2 \end{aligned}

So the graph is y=3sin⁡(2x)y = 3\sin({2}x). The equation y=3sin⁡(x2)y = 3\sin\left(\frac{x}{2}\right) would have period 4π4\pi, and y=2sin⁡(3x)y = 2\sin(3x) would rise only to 2.

Example.

4. Phase shift. By how much, and which way, is the graph of y=2sin⁡(3x−π)y = 2\sin(3x - \pi) shifted from the graph of y=2sin⁡(3x)y = 2\sin(3x)?

Take the 3 out of the bracket: 3x−π=3(x−C)3x - \pi = 3(x - C), where 3C=π3C = \pi.

3C=πC=π3≈1.047197551\begin{aligned} 3C &= \pi \\ C &= \frac{\pi}{3} \approx 1.047197551 \end{aligned}

So y=2sin⁡(3(x−π3))y = 2\sin\left(3\left(x - {\frac{\pi}{3}}\right)\right): the graph is shifted π3\frac{\pi}{3} to the right. Reading the shift as π\pi, without dividing by 3, is the trap. The period, 2π3\frac{2\pi}{3}, and the amplitude, 2, do not change.

Example.

5. A Ferris wheel. A Ferris wheel has a diameter of 40 meters, and its lowest point is 2 meters above the ground. A rider gets on at the bottom, and the wheel turns once every 8 minutes. Write the rider's height hh, in meters, tt minutes after getting on, as h=−acos⁡(Bt)+Dh = -a\cos(Bt) + D.

The lowest height is 2 and the highest is 2 + 40. The midline is halfway between them, the amplitude is half the distance between them, and BB comes from the period of 8 minutes:

D=M+m2=42+22=22a=M−m2=42−22=20B=2πT=2π8=π4≈0.7853981634\begin{aligned} D &= \frac{M + m}{2} \\ &= \frac{42 + 2}{2} \\ &= 22 \\ a &= \frac{M - m}{2} \\ &= \frac{42 - 2}{2} \\ &= 20 \\ B &= \frac{2\pi}{T} \\ &= \frac{2\pi}{8} \\ &= \frac{\pi}{4} \approx 0.7853981634 \end{aligned}

So h=−20cos⁡(π4t)+22h = -{20}\cos\left({\frac{\pi}{4}}t\right) + {22}. The minus sign is there because the rider starts at the bottom: −cos⁡-\cos starts at its lowest value. Check the start, ss, and the top, uu, half a turn later:

h(t)=−acos⁡(Bt)+D=−20cos⁡(π4t)+22s=h(0)=−20cos⁡(π4×0)+22=2u=h(4)=−20cos⁡(π4×4)+22=42\begin{aligned} h(t) &= -a\cos(Bt) + D \\ &= -20\cos(\frac{\pi}{4}t) + 22 \\ s &= h(0) \\ &= -20\cos(\frac{\pi}{4} \times 0) + 22 \\ &= 2 \\ u &= h(4) \\ &= -20\cos(\frac{\pi}{4} \times 4) + 22 \\ &= 42 \end{aligned}
Example.

6. A tide. The depth of water in a harbor, in feet, tt hours after midnight is d(t)=3sin⁡(π6t)+8d(t) = 3\sin\left(\frac{\pi}{6}t\right) + 8. What are the greatest and least depths, and when is the water first deepest?

M=D+∣A∣=8+∣3∣=11m=D−∣A∣=8−∣3∣=5T=2πB=2ππ6=12\begin{aligned} M &= D + \left|A\right| \\ &= 8 + \left|3\right| \\ &= 11 \\ m &= D - \left|A\right| \\ &= 8 - \left|3\right| \\ &= 5 \\ T &= \frac{2\pi}{B} \\ &= \frac{2\pi}{\frac{\pi}{6}} \\ &= 12 \end{aligned}

The depth runs between 55 and 1111 feet and repeats every 1212 hours. The sine is first at its top, 1, when its angle is π2\frac{\pi}{2}:

πt6=π2t=3\begin{aligned} \frac{\pi t}{6} &= \frac{\pi}{2} \\ t &= 3 \end{aligned}

So the water is first deepest 33 hours after midnight, and deepest again 1212 hours later.

Practice

Answer ACT-style questions on graphs of sine and cosine. Each answer is checked, with the full solution, and every try brings new numbers. Practice needs a free account: it keeps your progress.

Practise graphs of sine and cosine with new numbers