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))+d or y=acos(b(x−h))+d, the midline is y=d, amplitude is ∣a∣, and, when a=0 and b=0, the fundamental period in radians is 2π/∣b∣. If a=0 or b=0, the sine or cosine graph is constant and has no fundamental period. The shift is h as written in x−h, so positive h moves right. Negative a 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))+2. Its midline is y=2, amplitude is 4, period is 2π/4=π/2, and shift is right π/8. At x=π/8, the cosine input is zero, so a peak is (π/8,6).
Half a period later, at x=3π/8, the input is π and a trough is (3π/8,−2). One full period after the first peak, at x=5π/8, the curve returns to y=6. These points show the range from −2 to 6 and repeat length π/2.
Tangent branches
For y=atan(b(x−h))+d with a=0 and b=0, the fundamental period is π/∣b∣; the graph has no amplitude because it has no finite maximum or minimum. A branch is centered where b(x−h)=kπ, giving value d. When a=0, its vertical asymptotes occur where the cosine denominator vanishes: b(x−h)=π/2+kπ, for integer k. If a=0, these excluded points are holes with finite limiting value d, not vertical asymptotes.
Find consecutive asymptotes, sketch between them, and repeat one period away. The curve approaches each asymptote but never crosses it. Negative a reverses the branch direction while asymptote positions remain fixed.
Relative to y = cos x, how is y = cos(x + π/4) shifted horizontally?
For y = tan(3(x - π/6)), which is the smallest positive x-coordinate of a vertical asymptote?