James's Math Hub
← Trigonometry

Lesson 1 / 5 · 11 min read

Graphs of Trig Functions

Amplitude, period, phase shift — and why tangent has asymptotes.

Sine and cosine — the shape

y=sin⁡xy = \sin x and y=cos⁡xy = \cos x both produce smooth waves oscillating between −1-1 and +1+1.

  • sin⁡x\sin x starts at the origin: sin⁡0=0\sin 0 = 0.
  • cos⁡x\cos x starts at the top: cos⁡0=1\cos 0 = 1.

Both repeat every 2π2\pi. That's the period.

Amplitude, period, phase shift

The general form:

y=Asin⁡ ⁣(B(x−C))+Dy = A \sin\!\big(B(x - C)\big) + D

  • ∣A∣|A| is the amplitude — height from midline to peak.
  • 2πB\dfrac{2\pi}{B} is the period — width of one cycle.
  • CC is the phase shift — horizontal translation.
  • DD is the vertical shift — moves the midline.

Example. y=3sin⁡(2x)y = 3 \sin(2x) has amplitude 33 and period 2π2=π\dfrac{2\pi}{2} = \pi. It oscillates between −3-3 and +3+3, completing one cycle every π\pi units.

Example. y=cos⁡ ⁣(x−π2)y = \cos\!\left(x - \dfrac{\pi}{2}\right) is cos⁡\cos shifted right by π/2\pi/2. At x=π/2x = \pi/2, the input to cosine is 00, so the output is 11. The graph looks just like sine — and in fact cos⁡ ⁣(x−π2)=sin⁡x\cos\!\left(x - \dfrac{\pi}{2}\right) = \sin x. Sine and cosine are the same wave, offset by π/2\pi/2.

Tangent — vertical asymptotes

y=tan⁡x=sin⁡xcos⁡xy = \tan x = \dfrac{\sin x}{\cos x}. It blows up wherever cos⁡x=0\cos x = 0 — at x=±π/2,±3π/2,…x = \pm \pi/2, \pm 3\pi/2, \ldots.

  • Period of tan⁡\tan is π\pi (not 2π2\pi).
  • Range: all real numbers.
  • Vertical asymptotes at odd multiples of π/2\pi/2.

Key features at a glance

FunctionPeriodRangeNotes
sin⁡x\sin x2π2\pi[−1,1][-1, 1]starts at 0
cos⁡x\cos x2π2\pi[−1,1][-1, 1]starts at 1
tan⁡x\tan xπ\pi(−∞,∞)(-\infty, \infty)asymptotes at π/2+kπ\pi/2 + k\pi

Key takeaways

  • Sine and cosine are the same wave, offset by π/2\pi/2.
  • For Asin⁡(Bx)A \sin(Bx): amplitude ∣A∣|A|, period 2πB\dfrac{2\pi}{B}.
  • Tangent has period π\pi and asymptotes wherever cosine is zero.