Wize Functions and Graphs Textbook > Functions and Their Graphs

Graphs of Sine, Cosine, and Tangent Functions

Build trigonometric graphs from landmarks

Sketch sine, cosine, and tangent by locating reliable landmarks before drawing curves. For sine and cosine, the midline is the horizontal center, the amplitude is its nonnegative distance to a peak, and the period is one cycle's horizontal length. A phase shift moves the landmarks horizontally.

Sine and cosine landmarks

For y=asin⁡(b(x−h))+dy=a\sin(b(x-h))+d or y=acos⁡(b(x−h))+dy=a\cos(b(x-h))+d, the midline is y=dy=d, amplitude is ∣a∣|a|, and, when a≠0a\ne 0 and b≠0b\ne 0, the fundamental period in radians is 2π/∣b∣2\pi/|b|. If a=0a=0 or b=0b=0, the sine or cosine graph is constant and has no fundamental period. The shift is hh as written in x−hx-h, so positive hh moves right. Negative aa causes a reflection across the midline without changing amplitude.


Start at a sine zero crossing or cosine peak, adjusted for the shift. Advance by a quarter-period to mark five points through one cycle. Their heights alternate among the midline and upper and lower extremes; reflection reverses which extreme comes first. Repeat the shape one period away.

Worked example

Consider y=4cos⁡(4(x−π/8))+2y=4\cos(4(x-\pi/8))+2. Its midline is y=2y=2, amplitude is 44, period is 2π/4=π/22\pi/4=\pi/2, and shift is right π/8\pi/8. At x=π/8x=\pi/8, the cosine input is zero, so a peak is (π/8,6)(\pi/8,6).


Half a period later, at x=3π/8x=3\pi/8, the input is π\pi and a trough is (3π/8,−2)(3\pi/8,-2). One full period after the first peak, at x=5π/8x=5\pi/8, the curve returns to y=6y=6. These points show the range from −2-2 to 66 and repeat length π/2\pi/2.

Tangent branches

For y=atan⁡(b(x−h))+dy=a\tan(b(x-h))+d with a≠0a\ne 0 and b≠0b\ne 0, the fundamental period is π/∣b∣\pi/|b|; the graph has no amplitude because it has no finite maximum or minimum. A branch is centered where b(x−h)=kπb(x-h)=k\pi, giving value dd. When a≠0a\ne 0, its vertical asymptotes occur where the cosine denominator vanishes: b(x−h)=π/2+kπb(x-h)=\pi/2+k\pi, for integer kk. If a=0a=0, these excluded points are holes with finite limiting value dd, not vertical asymptotes.


Find consecutive asymptotes, sketch between them, and repeat one period away. The curve approaches each asymptote but never crosses it. Negative aa reverses the branch direction while asymptote positions remain fixed.



For y = -3 sin(2x), what are the amplitude and period in radians?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Relative to y = cos x, how is y = cos(x + π/4) shifted horizontally?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

For y = tan(3(x - π/6)), which is the smallest positive x-coordinate of a vertical asymptote?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors