Algebra 2 · Grades 10, 11

Graphing Sine and Cosine: Amplitude, Period and Midline

Quick answer

Walk counterclockwise around the unit circle and plot your height against the angle you have turned. The trace is the graph of sine. Four numbers describe any such wave: the midline it oscillates about, the amplitude it rises above that line, the period it takes to repeat, and the shift that says where the cycle starts. Fit those four and you have a model.

What you'll learn

  • Graph sine and cosine and label period, midline and amplitude
  • Read amplitude, period, midline and shift from an equation
  • Write a trigonometric model for a repeating situation

Unrolling the circle

On the unit circle, sin⁡θ\sin\theta is a height. Walk counterclockwise from (1,0)(1, 0) and that height changes: up to 11 at a quarter turn, back to 00 at a half turn, down to −1-1 at three quarters, back to 00 at a full turn.

Now plot it. Put the angle turned on the horizontal axis and the height on the vertical axis. The circle unrolls into a wave.

One period of y = sin x A wave starting at the origin, rising to one near x equals one and a half, returning to zero near three, falling to negative one near four and three quarters, and returning to zero near six and a quarter. 246-2-112xy (π/2, 1) (3π/2, −1)
  • y = sin x
One period of y = sin x

The horizontal axis is measured in radians, so the numbers on it are plain real numbers. The peak sits at π2≈1.57\tfrac{\pi}{2} \approx 1.57 and the wave returns to the start at 2π≈6.282\pi \approx 6.28.

Cosine unrolls the same way, except it records the width instead of the height. Width starts at 11, so the cosine graph starts at the top.

Cosine is the same wave, started earlier Two waves on the same axes. One starts at zero and rises; the other starts at one and falls. The two have the same shape and are offset horizontally. 246-2-112xy
  • y = sin x
  • y = cos x
Cosine is the same wave, started earlier

They are one shape, drawn from two starting points. Sliding the sine graph π2\tfrac{\pi}{2} to the left lands exactly on the cosine graph.

cos⁡x=sin⁡(x+π2)\cos x = \sin\left(x + \tfrac{\pi}{2}\right)

Three numbers describe any wave

FeatureWhat it measuresFor y=sin⁡xy = \sin x
Midlinethe horizontal line the wave oscillates abouty=0y = 0
Amplitudethe rise from the midline to a peak11
Periodthe horizontal length of one full cycle2π2\pi

From a graph, read them like this:

amplitude=max−min2midline=max+min2\text{amplitude} = \frac{\text{max} - \text{min}}{2} \qquad \text{midline} = \frac{\text{max} + \text{min}}{2}

Amplitude is a distance, so it is never negative.

The general form

y=asin⁡(b(x−h))+ky = a\sin\bigl(b(x - h)\bigr) + k
LetterEffect
aaamplitude =∣a∣= \lvert a \rvert; a negative aa flips the wave upside down
bbperiod =2π∣b∣= \tfrac{2\pi}{\lvert b \rvert}
hhhorizontal shift, called the phase shift
kkmidline y=ky = k

Notice that aa and kk behave exactly as they do for any function transformation: aa stretches vertically and kk slides vertically. Only bb carries a surprise.

a stretches the wave; b squeezes it Three waves on the same axes. One is the plain sine curve, one is twice as tall, and one completes two full cycles in the width the others take for one. 246-2-112xy
  • y = sin x
  • y = 2 sin x
  • y = sin 2x
a stretches the wave; b squeezes it

Why the period is 2π divided by b

Doubling bb halves the period, which runs against the usual reading of a coefficient. The reason sits inside the parentheses.

Sine completes one cycle when its input runs from 00 to 2π2\pi. For y=sin⁡(bx)y = \sin(bx), the input is bxbx, not xx. So ask how far xx must travel for bxbx to cover 2π2\pi:

bx=2π⟹x=2πbbx = 2\pi \quad\Longrightarrow\quad x = \frac{2\pi}{b}

With b=2b = 2, the input runs twice as fast as xx does, so xx only has to reach π\pi — half as far — before a full cycle is done. A bigger bb means the wave finishes sooner, so the period shrinks.

The same reasoning explains the phase shift. The graph of sin⁡(b(x−h))\sin(b(x - h)) starts its cycle where the inside equals zero, which is at x=hx = h.

Modeling something that repeats

Anything that cycles can be modeled this way: a Ferris wheel at a county fair, the tide at a harbor, hours of daylight across the year, the current in a household outlet.

The recipe is short. Find the maximum and the minimum, which give the amplitude and the midline. Find how long one cycle takes, which gives bb. Then pick the function that matches the start: cosine if the cycle begins at a peak or a trough, sine if it begins on the midline.

Take a Ferris wheel with a radius of 2525 feet whose center sits 3030 feet above the ground. It makes one full turn every 4040 seconds, and a rider boards at the bottom.

The rider’s height runs from 55 feet to 5555 feet, so the midline is 3030 and the amplitude is 2525. One cycle takes 4040 seconds:

2πb=40⟹b=π20\frac{2\pi}{b} = 40 \quad\Longrightarrow\quad b = \frac{\pi}{20}

The ride starts at the bottom, which is a trough, so use cosine — flipped, since cosine normally starts at a peak.

h(t)=30−25cos⁡(πt20)h(t) = 30 - 25\cos\left(\frac{\pi t}{20}\right)
Height on a Ferris wheel A wave rising from five feet at zero seconds to fifty-five feet at twenty seconds and back to five feet at forty seconds, then repeating, with a horizontal midline at thirty feet. 20406080102030405060xy
  • h(t), feet
  • midline h = 30
Height on a Ferris wheel

Check it at the three moments you already know. At t=0t = 0 it gives 30−25=530 - 25 = 5 feet, the boarding platform. At t=20t = 20 it gives 30+25=5530 + 25 = 55 feet, the top. At t=40t = 40 it is back to 55 feet, ready for the next rider.

Worked examples

Common mistakes

Practice problems

  1. Find the amplitude and period of y=3sin⁡xy = 3\sin x.

    Answer

    Amplitude 33, period 2π2\pi.

    Full solution

    Here a=3a = 3 and b=1b = 1. The amplitude is ∣3∣=3\lvert 3 \rvert = 3 and the period is 2π1=2π\tfrac{2\pi}{1} = 2\pi.

  2. Find the period of y=sin⁡(4x)y = \sin(4x).

    Answer

    π2\tfrac{\pi}{2}

    Full solution

    period=2π4=π2\text{period} = \tfrac{2\pi}{4} = \tfrac{\pi}{2}. The wave runs four times faster, so it finishes in a quarter of the usual width.

  3. Give the midline of y=cos⁡x+5y = \cos x + 5.

    Answer

    y=5y = 5

    Full solution

    Adding 55 lifts the whole graph by 55, carrying the midline from y=0y = 0 up to y=5y = 5.

  4. Find the maximum and minimum of y=2cos⁡x−1y = 2\cos x - 1.

    Answer

    Maximum 11, minimum −3-3.

    Full solution

    Cosine runs from −1-1 to 11, so 2cos⁡x2\cos x runs from −2-2 to 22.

    Subtracting 11 gives a range from −3-3 to 11.

  5. Give the amplitude, period and midline of y=4sin⁡(2x)+7y = 4\sin(2x) + 7.

    Answer

    Amplitude 44, period π\pi, midline y=7y = 7.

    Full solution

    a=4a = 4, so the amplitude is 44.

    b=2b = 2, so the period is 2π2=π\tfrac{2\pi}{2} = \pi.

    k=7k = 7, so the midline is y=7y = 7.

  6. A wave has a maximum of 1212 and a minimum of 22. Find its amplitude and midline.

    Answer

    Amplitude 55, midline y=7y = 7.

    Full solution

    amplitude=12−22=5\text{amplitude} = \tfrac{12 - 2}{2} = 5 and midline=12+22=7\text{midline} = \tfrac{12 + 2}{2} = 7.

  7. Write a cosine model with maximum 1212, minimum 22, period 66, starting at its minimum when x=0x = 0.

    Hint

    A cosine that starts at its minimum is an upside-down cosine.

    Answer

    y=7−5cos⁡(πx3)y = 7 - 5\cos\left(\tfrac{\pi x}{3}\right)

    Full solution

    From problem 6, the amplitude is 55 and the midline is y=7y = 7.

    The period gives bb: 2πb=6\tfrac{2\pi}{b} = 6, so b=π3b = \tfrac{\pi}{3}.

    A plain cosine starts at its maximum, so flip it with a negative coefficient:

    y=7−5cos⁡(πx3)y = 7 - 5\cos\left(\tfrac{\pi x}{3}\right)

    Check x=0x = 0: 7−5(1)=27 - 5(1) = 2, the minimum ✓. Check x=3x = 3, half a period later: 7−5(−1)=127 - 5(-1) = 12, the maximum ✓.

  8. A Ferris wheel of radius 2525 feet has its center 3030 feet up and turns once every 4040 seconds, with riders boarding at the bottom. How high is a rider 1010 seconds after boarding?

    Answer

    3030 feet

    Full solution

    The model from the lesson is h(t)=30−25cos⁡(πt20)h(t) = 30 - 25\cos\left(\tfrac{\pi t}{20}\right).

    h(10)=30−25cos⁡(10π20)=30−25cos⁡π2h(10) = 30 - 25\cos\left(\tfrac{10\pi}{20}\right) = 30 - 25\cos\tfrac{\pi}{2}

    cos⁡π2=0\cos\tfrac{\pi}{2} = 0, so h(10)=30h(10) = 30 feet.

    Ten seconds is a quarter of the 4040-second turn, which puts the rider level with the center — exactly the midline height.

  9. Using d(t)=8+4cos⁡(πt6)d(t) = 8 + 4\cos\left(\tfrac{\pi t}{6}\right) for harbor depth in feet, find the depth at 22 a.m.

    Answer

    1010 feet

    Full solution

    d(2)=8+4cos⁡(2π6)=8+4cos⁡π3d(2) = 8 + 4\cos\left(\tfrac{2\pi}{6}\right) = 8 + 4\cos\tfrac{\pi}{3}

    cos⁡π3=12\cos\tfrac{\pi}{3} = \tfrac{1}{2}, so d(2)=8+2=10d(2) = 8 + 2 = 10 feet.

    Two hours after high tide the water has dropped 22 feet of its 44-foot fall.

  10. Asked for the period of y=sin⁡(3x)y = \sin(3x), Marcus answers 6π6\pi, reasoning that the 33 stretches the graph. Find his error.

    Hint

    How far does xx have to travel before 3x3x reaches 2π2\pi?

    Answer

    He multiplied instead of dividing. The period is 2π3\tfrac{2\pi}{3}.

    Full solution

    Marcus is treating 33 the way a vertical coefficient behaves, where a larger number means a bigger graph.

    The 33 sits on the input. Sine finishes a cycle when its input reaches 2π2\pi, and the input here is 3x3x:

    3x=2π3x = 2\pi, so x=2π3x = \tfrac{2\pi}{3}.

    So xx has to travel only a third as far. The wave is squeezed, not stretched.

    A quick check settles it. At x=2π3x = \tfrac{2\pi}{3}, the value is sin⁡2π=0\sin 2\pi = 0, and the graph has already completed a full cycle — long before 6π6\pi.

Frequently asked questions

What is the period of a sine graph?

The horizontal length of one full cycle. For y = sin x it is 2π, and for y = sin(bx) it is 2π divided by the absolute value of b.

What is the amplitude?

Half the distance from the highest point to the lowest. In y = a sin x it is the absolute value of a.

What is the midline?

The horizontal line halfway between the maximum and the minimum. Adding k to a sine function moves the midline to y = k.

Are the sine and cosine graphs the same shape?

Yes. Cosine is the sine graph slid π/2 units to the left, because cosine already equals 1 when sine is still climbing from 0.

When should I model with cosine instead of sine?

Use cosine when the cycle starts at a high or low point, and sine when it starts on the midline. Either can fit with the right shift.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSF.TF.B.5Trigonometric FunctionsChoose trigonometric functions to model periodic phenomena with specified amplitude, frequency, and midline.
  • CCSS.MATH.CONTENT.HSF.IF.C.7eInterpreting FunctionsGraph exponential and logarithmic functions, showing intercepts and end behavior, and trigonometric functions, showing period, midline, and amplitude.