Trigonometry

Graphing Sine and Cosine: Amplitude, Period and Phase Shift

By Math Solving Space · · 2 min read

On this page
  1. The basic wave
  2. What each parameter does
  3. Worked example 1: @@STASH21@@
  4. Worked example 2: @@STASH27@@
  5. Negative A
  6. Common mistakes
  7. Practice questions
  8. Frequently asked questions

Every sine or cosine graph can be written as y=Asin⁡(Bx+C)+Dy = A\sin(Bx + C) + D. The four numbers control the shape: ∣A∣|A| is the amplitude, 2π∣B∣\frac{2\pi}{|B|} is the period, −CB-\frac{C}{B} is the phase shift, and DD moves the midline up or down.

The basic wave

y=sin⁡xy = \sin x starts at 0, rises to 1 at π2\frac{\pi}{2}, returns to 0 at π\pi, drops to −1-1 at 3π2\frac{3\pi}{2} and repeats every 2π2\pi. The cosine graph is the same wave shifted left by π2\frac{\pi}{2}.

What each parameter does

Parameter Effect Formula
AA stretches vertically amplitude =∣A∣= |A|
BB squeezes horizontally period =2π∣B∣= \frac{2\pi}{|B|}
CC shifts sideways phase shift =−CB= -\frac{C}{B}
DD shifts up or down midline y=Dy = D

Worked example 1: y=3sin⁡(2x)+1y = 3\sin(2x) + 1

  • Amplitude 33.
  • Period 2π2=π\frac{2\pi}{2} = \pi.
  • Midline y=1y = 1, so the wave runs from 1−3=−21 - 3 = -2 to 1+3=41 + 3 = 4.

Worked example 2: y=2cos⁡(x−π4)y = 2\cos\left(x - \frac{\pi}{4}\right)

Here C=−π4C = -\frac{\pi}{4}, so the phase shift is −CB=π4-\frac{C}{B} = \frac{\pi}{4}: the graph moves right by π4\frac{\pi}{4}. The amplitude is 2 and the period is 2π2\pi.

Negative A

A negative AA flips the wave upside down. y=−sin⁡x2−2y = -\sin\frac{x}{2} - 2 has amplitude 1, period 4π4\pi, and midline y=−2y = -2.

Common mistakes

  • Taking the period to be 2πB2\pi B instead of 2πB\frac{2\pi}{B}.
  • Reading the phase shift as CC instead of −CB-\frac{C}{B}.
  • Forgetting that amplitude is never negative.

Practice questions

  1. Period of y=sin⁡(3x)y = \sin(3x)?
  2. Range of y=4cos⁡x−1y = 4\cos x - 1?
  3. Phase shift of y=sin⁡(2x+π)y = \sin(2x + \pi)?

Answers: 1) 2π3\frac{2\pi}{3} 2) [−5,3][-5, 3] 3) −π2-\frac{\pi}{2} (left by π2\frac{\pi}{2})

The sine graph calculator draws two full periods with the midline marked. For individual values use the trigonometry calculator, and revise the basics in sine, cosine and tangent explained.

Frequently asked questions

What is the amplitude of y = −5 sin x?
  1. Amplitude is the absolute value of A.
What is the frequency?

The number of cycles per unit of x, which is 1 ÷ period.

Why use radians for graphs?

With radians, the period of sin x is exactly 2π and calculus results like (sin x)′ = cos x hold.

Open the calculator →

#trigonometry#graphs