Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Trigonometric Graphs






Visualizing Periodic Behavior

The unit circle defines the trigonometric functions numerically — for each angle, it assigns coordinates. Graphing these functions against the angle reveals their behavior over the entire real line: where they rise and fall, where they cross zero, where they blow up toward infinity, and how they repeat. The sine and cosine graphs are smooth, bounded waves — the same wave, in fact, displaced by a quarter period. The tangent graph is a family of steep curves separated by vertical asymptotes. The reciprocal functions — cosecant, secant, cotangent — inherit their shapes from the functions they invert, with asymptotes replacing zeros and U-shaped branches replacing peaks and valleys.

Beyond recognition, the central skill is transformation. The general sinusoidal form y=Asin(BxC)+Dy = A\sin(Bx - C) + D encodes four modifications — amplitude, period, phase shift, and vertical shift — each controlled by a single parameter. Reading these parameters from a graph, or constructing a graph from a given equation, connects algebraic representation to geometric intuition. This connection runs through the entire subject: the properties of the functions are visible on the graphs, the solutions to equations correspond to intersections, and the solution intervals of inequalities correspond to regions where one curve lies above or below another.



Graph of the Sine Function

    The graph of y=sin(x)y = \sin(x) is a smooth, continuous wave that oscillates between 1-1 and 11. It is the visual signature of the sine function and one of the most recognizable curves in mathematics.

    The wave begins at the origin: sin(0)=0\sin(0) = 0. It rises to its maximum value of 11 at x=π2x = \frac{\pi}{2}, returns to zero at x=πx = \pi, drops to its minimum of 1-1 at x=3π2x = \frac{3\pi}{2}, and returns to zero at x=2πx = 2\pi. This completes one full cycle. The pattern then repeats identically — to the right without end, and (by extending leftward) to the left without end.

    Five key points define one period of the sine curve:

  • (0,0)(0, 0) — starting zero
  • (π2,1)\left(\frac{\pi}{2}, 1\right) — maximum
  • (π,0)(\pi, 0) — middle zero
  • (3π2,1)\left(\frac{3\pi}{2}, -1\right) — minimum
  • (2π,0)(2\pi, 0) — ending zero

  • These five points, evenly spaced at intervals of π2\frac{\pi}{2}, are the skeleton of the graph. Connecting them with a smooth curve (not straight lines — the curve has a specific rounded shape, concave down from 00 to π\pi and concave up from π\pi to 2π2\pi) produces the sine wave.

    The graph confirms several properties at a glance. The period is 2π2\pi — the horizontal length of one complete cycle. The amplitude is 11 — the vertical distance from the midline (y=0y = 0) to either extreme. The function is odd: the graph is symmetric about the origin, meaning the portion for negative xx is a 180°180° rotation of the portion for positive xx. The zeros occur at every integer multiple of π\pi: ,2π,π,0,π,2π,\ldots, -2\pi, -\pi, 0, \pi, 2\pi, \ldots

Graph of the Cosine Function

    The graph of y=cos(x)y = \cos(x) is the same wave as sine, shifted π2\frac{\pi}{2} units to the left. The shape, amplitude, and period are identical — only the starting position differs.

    The cosine wave begins at its maximum: cos(0)=1\cos(0) = 1. It drops to zero at x=π2x = \frac{\pi}{2}, reaches its minimum of 1-1 at x=πx = \pi, returns to zero at x=3π2x = \frac{3\pi}{2}, and climbs back to 11 at x=2πx = 2\pi. One complete cycle spans 2π2\pi, the same period as sine.

    Five key points for one period:

  • (0,1)(0, 1) — maximum
  • (π2,0)\left(\frac{\pi}{2}, 0\right) — descending zero
  • (π,1)(\pi, -1) — minimum
  • (3π2,0)\left(\frac{3\pi}{2}, 0\right) — ascending zero
  • (2π,1)(2\pi, 1) — return to maximum

  • The graph is symmetric about the yy-axis — the hallmark of an even function. For any xx, the graph at x-x has the same height as at xx. This contrasts with sine's origin symmetry and is the visual expression of cos(x)=cos(x)\cos(-x) = \cos(x).

    The horizontal shift between sine and cosine is precisely π2\frac{\pi}{2}:

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


    This means any statement about the sine graph can be translated into a statement about the cosine graph by shifting the reference point. The two functions are, in a sense, the same function observed from two different starting positions on the unit circle — one starting at the rightmost point (cosine) and the other starting at the top (sine, after a quarter turn).

    The zeros of cosine occur at odd multiples of π2\frac{\pi}{2}: ,3π2,π2,π2,3π2,\ldots, -\frac{3\pi}{2}, -\frac{\pi}{2}, \frac{\pi}{2}, \frac{3\pi}{2}, \ldots These are precisely the angles where the tangent and secant functions are undefined.

Graph of the Tangent Function

    The graph of y=tan(x)y = \tan(x) looks nothing like the smooth waves of sine and cosine. It consists of repeating branches, each confined between two vertical asymptotes, with the function increasing from -\infty to ++\infty within each branch.

    Vertical asymptotes occur at x=π2+nπx = \frac{\pi}{2} + n\pi for every integer nn — the points where cos(x)=0\cos(x) = 0 and the ratio sinxcosx\frac{\sin x}{\cos x} is undefined. Between consecutive asymptotes, the function is continuous and strictly increasing.

    Within the principal period (π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right), the key points are:

  • xπ2+x \to -\frac{\pi}{2}^+: tan(x)\tan(x) \to -\infty
  • (π4,1)\left(-\frac{\pi}{4}, -1\right)
  • (0,0)(0, 0) — the zero, midway between the asymptotes
  • (π4,1)\left(\frac{\pi}{4}, 1\right)
  • xπ2x \to \frac{\pi}{2}^-: tan(x)+\tan(x) \to +\infty

  • The period of tangent is π\pi, not 2π2\pi. Each branch is an exact copy of the previous one, shifted π\pi units to the right. This shorter period reflects the algebraic identity tan(x+π)=tan(x)\tan(x + \pi) = \tan(x), which in turn reflects the geometry of the unit circle: after a half rotation, both the xx- and yy-coordinates reverse sign, and their ratio is preserved.

    The graph passes through the origin and is symmetric about it — tangent is an odd function. There is no amplitude in the usual sense, since tangent is unbounded. The concept of amplitude applies only to sine and cosine (and their transformations), not to functions whose range is (,)(-\infty, \infty).

    The tangent graph has an inflection point at each zero — the curve changes from concave up to concave down (or vice versa) as it passes through the midline. The steep rise near the asymptotes reflects the rapid growth of sinxcosx\frac{\sin x}{\cos x} as cosx\cos x approaches zero.

Graphs of Cosecant, Secant, and Cotangent

    The reciprocal functions are graphed by inverting the corresponding primary function. This procedure transforms zeros into asymptotes, maxima into minima (and vice versa), and produces U-shaped branches where the original function was positive or negative.

    Cosecant (y=cscx=1sinxy = \csc x = \frac{1}{\sin x}): Vertical asymptotes appear at every zero of sine — at x=nπx = n\pi. Between consecutive asymptotes, the graph consists of U-shaped curves. Where sinx>0\sin x > 0 (between 00 and π\pi, for instance), the curve opens upward with a minimum of 11 at the point where sinx=1\sin x = 1. Where sinx<0\sin x < 0 (between π\pi and 2π2\pi), the curve opens downward with a maximum of 1-1 at the point where sinx=1\sin x = -1. The graph never enters the horizontal strip 1<y<1-1 < y < 1. A practical approach to sketching: graph y=sinxy = \sin x lightly first, then draw the reciprocal curves using the sine graph as a guide — peaks become valley floors, valleys become ceiling points, and zeros become asymptotes.

    Secant (y=secx=1cosxy = \sec x = \frac{1}{\cos x}): Vertical asymptotes at every zero of cosine — at x=π2+nπx = \frac{\pi}{2} + n\pi. The structure mirrors cosecant but is shifted horizontally by π2\frac{\pi}{2}, consistent with the shift between sine and cosine. Upward-opening U-curves appear where cosx>0\cos x > 0, with minimum value 11. Downward-opening curves appear where cosx<0\cos x < 0, with maximum value 1-1. Sketch by graphing y=cosxy = \cos x first, then inverting.

    Cotangent (y=cotx=cosxsinxy = \cot x = \frac{\cos x}{\sin x}): Vertical asymptotes at x=nπx = n\pi (where sinx=0\sin x = 0). Between consecutive asymptotes, the function is strictly decreasing — the opposite of tangent's increasing behavior. Within the period (0,π)(0, \pi), the curve drops from ++\infty through zero at x=π2x = \frac{\pi}{2} to -\infty. The period is π\pi, matching tangent. The graph is odd-symmetric about the origin.

    The key points for cotangent in one period (0,π)(0, \pi):

  • x0+x \to 0^+: cot(x)+\cot(x) \to +\infty
  • (π4,1)\left(\frac{\pi}{4}, 1\right)
  • (π2,0)\left(\frac{\pi}{2}, 0\right) — the zero
  • (3π4,1)\left(\frac{3\pi}{4}, -1\right)
  • xπx \to \pi^-: cot(x)\cot(x) \to -\infty

The General Sinusoidal Form

The graphs of sine and cosine can be transformed by four operations — vertical stretching, horizontal stretching, horizontal shifting, and vertical shifting — each controlled by a parameter in the general form:

y=Asin(BxC)+Dy = A\sin(Bx - C) + D


The same framework applies to cosine: y=Acos(BxC)+Dy = A\cos(Bx - C) + D. Understanding what each parameter does is essential for modeling periodic phenomena and for reading equations from graphs.

The four parameters are not independent transformations applied in arbitrary order. They follow a specific structure: BB and CC act on the input (inside the function), while AA and DD act on the output (outside). The inner transformations affect the horizontal axis — period and phase shift. The outer transformations affect the vertical axis — amplitude and midline. This inside-outside distinction mirrors the general theory of function transformations.

For tangent and cotangent, the form is the same — y=Atan(BxC)+Dy = A\tan(Bx - C) + D — but amplitude has no geometric meaning since these functions are unbounded. The parameters BB, CC, and DD still control period, phase shift, and vertical shift in exactly the same way.

Amplitude

    The amplitude of a sinusoidal function is the maximum vertical distance from the midline to a peak (or valley). For y=Asin(BxC)+Dy = A\sin(Bx - C) + D, the amplitude is A|A|.

    When A>1|A| > 1, the wave is stretched vertically — it oscillates over a larger range. When 0<A<10 < |A| < 1, the wave is compressed — it oscillates over a smaller range. The maximum value of the function is D+AD + |A| and the minimum is DAD - |A|.

    When AA is negative, the graph is reflected across the midline. The wave is inverted: what was a peak becomes a valley, and vice versa. For sine, this means the graph starts by going downward instead of upward. For cosine, it starts at a minimum instead of a maximum. The amplitude is still A|A| — amplitude measures distance, which is always non-negative.

    Examples:

  • y=3sin(x)y = 3\sin(x) has amplitude 33 — the wave reaches 33 and 3-3.
  • y=0.5cos(x)y = 0.5\cos(x) has amplitude 0.50.5 — the wave reaches 0.50.5 and 0.5-0.5.
  • y=2sin(x)y = -2\sin(x) has amplitude 22 — the wave reaches 22 and 2-2, but inverted.

  • Amplitude is specific to bounded oscillating functions. It applies naturally to sine and cosine (and their reciprocals in a looser sense), but not to tangent or cotangent, which have no maximum or minimum and therefore no meaningful amplitude.

Period

    The period is the horizontal length of one complete cycle — the smallest positive value TT such that f(x+T)=f(x)f(x + T) = f(x) for all xx. For the unmodified functions, the periods are 2π2\pi (sine, cosine, cosecant, secant) and π\pi (tangent, cotangent).

    For y=Asin(BxC)+Dy = A\sin(Bx - C) + D, the period is:

    T=2πBT = \frac{2\pi}{|B|}


    For tangent and cotangent:

    T=πBT = \frac{\pi}{|B|}


    When B>1|B| > 1, the period shrinks — more cycles fit into the same horizontal interval. The function oscillates faster. When 0<B<10 < |B| < 1, the period grows — fewer cycles fit, and the oscillation is slower.

    Examples:

  • y=sin(2x)y = \sin(2x) has period 2π2=π\frac{2\pi}{2} = \pi — two full cycles in [0,2π][0, 2\pi].
  • y=cos(x3)y = \cos\left(\frac{x}{3}\right) has period 2π1/3=6π\frac{2\pi}{1/3} = 6\pi — one cycle takes 6π6\pi units.
  • y=tan(4x)y = \tan(4x) has period π4\frac{\pi}{4} — four branches in [0,π][0, \pi].

  • The period is arguably the most important parameter for applications. When modeling a real-world oscillation — a sound wave, an alternating current, a tidal cycle — the period (or its reciprocal, the frequency) is typically the first quantity determined from data. The coefficient BB is then computed from B=2πTB = \frac{2\pi}{T}.

Phase Shift

Phase shift is the horizontal displacement of the graph from its standard starting position. For y=Asin(BxC)+Dy = A\sin(Bx - C) + D, the phase shift is:

phase shift=CB\text{phase shift} = \frac{C}{B}


A positive phase shift moves the graph to the right; a negative one moves it to the left. The shift is found by setting the argument of the function equal to zero: BxC=0Bx - C = 0 gives x=CBx = \frac{C}{B}, which is where the "standard" cycle begins.

It is important to factor correctly. The expression y=sin(2xπ)y = \sin(2x - \pi) has B=2B = 2 and C=πC = \pi, so the phase shift is π2\frac{\pi}{2} to the right — not π\pi. A common error is reading CC directly as the shift without dividing by BB. The form y=sin(2(xπ2))y = \sin(2(x - \frac{\pi}{2})) makes the shift explicit by factoring BB out of the argument.

Phase shift is particularly important in the relationship between sine and cosine. The identity cos(x)=sin(x+π2)\cos(x) = \sin(x + \frac{\pi}{2}) means the cosine graph is the sine graph shifted π2\frac{\pi}{2} to the left. Conversely, sin(x)=cos(xπ2)\sin(x) = \cos(x - \frac{\pi}{2}) — sine is cosine shifted π2\frac{\pi}{2} to the right. When writing the equation of a graph, the choice between sine and cosine often reduces to which starting point — zero crossing or maximum — aligns more naturally with the given graph, and the phase shift accounts for any remaining displacement.

In applications, phase shift represents how far "ahead" or "behind" an oscillation is relative to a reference. Two sound waves with the same frequency but different phase shifts are offset in time. Two electrical signals with a phase difference of π\pi are perfectly out of sync — when one peaks, the other is at its minimum.

Vertical Shift and Midline

    The vertical shift DD in y=Asin(BxC)+Dy = A\sin(Bx - C) + D moves the entire graph up or down. The graph oscillates around the horizontal line y=Dy = D instead of around the xx-axis. This line is called the midline.

    For an unmodified sine or cosine, the midline is y=0y = 0 — the function oscillates symmetrically about the xx-axis. Adding D>0D > 0 raises the midline; adding D<0D < 0 lowers it. The maximum value of the function becomes D+AD + |A|, and the minimum becomes DAD - |A|.

    Examples:

  • y=sin(x)+3y = \sin(x) + 3 oscillates between 22 and 44, centered on y=3y = 3.
  • y=2cos(x)1y = 2\cos(x) - 1 oscillates between 3-3 and 11, centered on y=1y = -1.

  • Reading the midline from a graph is straightforward: it is the horizontal line halfway between the maximum and minimum values. Algebraically:

    D=max+min2D = \frac{\text{max} + \text{min}}{2}


    And the amplitude is:

    A=maxmin2|A| = \frac{\text{max} - \text{min}}{2}


    These two readings — midline and amplitude — are usually the first step in determining the equation of a sinusoidal graph. The period is read next (the horizontal distance for one full cycle), and the phase shift is determined last by identifying where a standard cycle begins relative to the yy-axis.

Determining the Equation from a Graph

Writing the equation of a sinusoidal function from its graph requires extracting the four parameters AA, BB, CC, DD and deciding whether to use sine or cosine as the base function.

Step 1 — Find the midline ($D$). Identify the maximum and minimum values from the graph. The midline is their average: D=max+min2D = \frac{\text{max} + \text{min}}{2}.

Step 2 — Find the amplitude ($|A|$). The amplitude is the distance from the midline to either extreme: A=maxmin2|A| = \frac{\text{max} - \text{min}}{2}. Determine the sign of AA: if the graph starts by rising from the midline (for sine) or starts at a maximum (for cosine), A>0A > 0. If the behavior is inverted, A<0A < 0.

Step 3 — Find the period and compute $B$. Identify the horizontal distance for one complete cycle. Then B=2πperiodB = \frac{2\pi}{\text{period}} (for sine/cosine) or B=πperiodB = \frac{\pi}{\text{period}} (for tangent/cotangent).

Step 4 — Find the phase shift and compute $C$. Determine where the "standard" cycle begins. For sine, this is a zero crossing where the function is rising. For cosine, this is a maximum. The xx-coordinate of this starting point is the phase shift CB\frac{C}{B}, so C=B×phase shiftC = B \times \text{phase shift}.

Step 5 — Choose sine or cosine. If the graph starts at a midline crossing, sine is more natural. If it starts at a peak or valley, cosine is more natural. Both choices produce correct equations — the phase shift adjusts accordingly.

The result is not unique. The equation y=3sin(2xπ2)+1y = 3\sin(2x - \frac{\pi}{2}) + 1 and y=3cos(2xπ)+1y = 3\cos(2x - \pi) + 1 could describe the same graph with different phase shifts. Any correct equation that matches all four parameters — amplitude, period, phase, and midline — is valid.

Graphing by Hand: The Key-Point Method

The key-point method divides one period into four equal subintervals, identifies the function value at each division point, and connects these five points with the appropriate curve shape.

For sine (y=sin(x)y = \sin(x) or transformed): the five key points within one period follow the pattern zero → maximum → zero → minimum → zero. Starting from the beginning of the cycle (accounting for phase shift), mark five equally spaced xx-values covering one period. The yy-values cycle through: midline, max, midline, min, midline.

For cosine: the pattern is maximum → zero → minimum → zero → maximum. Same spacing, different starting value.

For tangent: the pattern is asymptote → 1-1 (quarter point) → zero (midpoint) → +1+1 (three-quarter point) → asymptote. The curve is increasing throughout, passing through the midline at the center of the period.

To graph a transformed function like y=2sin(π3xπ6)+1y = -2\sin\left(\frac{\pi}{3}x - \frac{\pi}{6}\right) + 1:

1. Identify the parameters: A=2A = -2, B=π3B = \frac{\pi}{3}, C=π6C = \frac{\pi}{6}, D=1D = 1.
2. Compute period: 2ππ/3=6\frac{2\pi}{\pi/3} = 6. Phase shift: π/6π/3=12\frac{\pi/6}{\pi/3} = \frac{1}{2}. Midline: y=1y = 1. Amplitude: 22.
3. The cycle starts at x=12x = \frac{1}{2} and ends at x=12+6=132x = \frac{1}{2} + 6 = \frac{13}{2}.
4. Divide into four equal parts: x=12,2,72,5,132x = \frac{1}{2}, 2, \frac{7}{2}, 5, \frac{13}{2}.
5. Since A<0A < 0 (inverted), the pattern becomes: midline → min → midline → max → midline, with yy-values 1,1,1,3,11, -1, 1, 3, 1.
6. Plot and connect with a smooth curve.

This method produces an accurate sketch without a calculator or graphing software. It works for any sinusoidal function, regardless of how many transformations are applied, because the key-point structure is invariant — only the locations and heights of the five points change.