AP Precalculus · Topic 3.8 · Reading guide, about 4 min

The tangent function and its graph

Tangent as sine over cosine and as slope; its graph with period pi and vertical asymptotes; how transformations change it.

In one minute

Sine and cosine are smooth waves bounded between −1-1 and 11. Tangent behaves very differently: it grows without bound and breaks into separate branches. The reason is simple: tangent is a ratio, tan⁡θ=sin⁡θcos⁡θ\tan\theta=\frac{\sin\theta}{\cos\theta}, and the denominator sometimes hits zero.

Once you see tangent as the slope of the terminal ray, its graph, its period and its asymptotes all become predictable instead of memorized.

Key terms

Tangent
For an angle θ\theta, tan⁡θ=sin⁡θcos⁡θ\tan\theta=\frac{\sin\theta}{\cos\theta}, which is also the slope of the terminal ray in standard position.
Terminal ray
The ray where an angle in standard position ends. Its slope is yx\frac{y}{x} for any point on it other than the origin.
Vertical asymptote
A vertical line the graph approaches but never touches. For tangent these occur where cos⁡θ=0\cos\theta=0.
Period of tangent
The tangent graph repeats every π\pi units, half the period of sine and cosine.
Zero
An input where the output is 0. Tangent has zeros where sin⁡θ=0\sin\theta=0, at every multiple of π\pi.
Branch
One of the separate pieces of the tangent graph between consecutive asymptotes. Each branch is increasing.
Undefined value
An input with no output. tan⁡θ\tan\theta is undefined when θ=π2+kπ\theta=\frac{\pi}{2}+k\pi for an integer kk.

Tangent as a slope and a ratio

Place an angle in standard position on the unit circle. The terminal ray passes through the point (cos⁡θ,sin⁡θ)(\cos\theta,\sin\theta). The slope of a line through the origin and that point is rise over run, which is sin⁡θcos⁡θ=tan⁡θ\frac{\sin\theta}{\cos\theta}=\tan\theta.

This explains the behavior. When the ray is flat, at θ=0\theta=0 or θ=π\theta=\pi, the slope is 0. When the ray is vertical, at θ=π2\theta=\frac{\pi}{2} or 3π2\frac{3\pi}{2}, the run is zero, so the slope does not exist and tangent is undefined. As the ray approaches vertical, the slope becomes steeper and steeper, which is why the graph shoots toward infinity.

Worked example. Find tan⁡5π6\tan\frac{5\pi}{6}. The reference angle is π6\frac{\pi}{6}, and the angle lies in Quadrant II, where sine is positive and cosine is negative. So sin⁡5π6=12\sin\frac{5\pi}{6}=\frac12 and cos⁡5π6=−32\cos\frac{5\pi}{6}=-\frac{\sqrt3}{2}. Then tan⁡5π6=1/2−3/2=−13=−33\tan\frac{5\pi}{6}=\frac{1/2}{-\sqrt3/2}=-\frac{1}{\sqrt3}=-\frac{\sqrt3}{3}. The negative sign matches a ray that tilts up to the left, which has negative slope.

The graph of tangent

Between θ=−π2\theta=-\frac{\pi}{2} and θ=π2\theta=\frac{\pi}{2}, the ray swings from straight down to straight up through horizontal, so the slope climbs from very large negative values through 0 at θ=0\theta=0 to very large positive values. At θ=π4\theta=\frac{\pi}{4}, the point is on the line y=xy=x, so tan⁡π4=1\tan\frac{\pi}{4}=1; at θ=−π4\theta=-\frac{\pi}{4}, tan⁡=−1\tan=-1.

The graph then repeats. The asymptotes are at θ=π2+kπ\theta=\frac{\pi}{2}+k\pi and the zeros are at θ=kπ\theta=k\pi. Because the pattern repeats every π\pi (a ray rotated by half a turn has the same slope), the period is π\pi, not 2π2\pi.

Tangent is an odd function: tan⁡(−θ)=−tan⁡θ\tan(-\theta)=-\tan\theta, so the graph is symmetric about the origin. It is always increasing on each branch. The graph is concave down to the left of each zero and concave up to the right, so the concavity changes at the zeros.

Unlike sine and cosine, tangent has no maximum, no minimum and no amplitude. Its range is all real numbers.

Key facts for tangent
FeatureValue
Periodπ\pi
Zerosθ=kπ\theta=k\pi
Vertical asymptotesθ=π2+kπ\theta=\frac{\pi}{2}+k\pi
RangeAll real numbers
BehaviorIncreasing on every branch
SymmetryOdd: symmetric about the origin

Transformations of tangent

For y=atan⁡(b(θ+c))+dy=a\tan(b(\theta+c))+d, the shifts and stretches work as with sine, with one key change: the period is π∣b∣\frac{\pi}{|b|}. The letter aa stretches vertically but there is no amplitude, so it describes how steep the branches are, and a negative aa makes every branch decrease. The center point of each branch, where the output equals dd, moves with cc and dd.

Worked example. For y=3tan⁡(2θ)y=3\tan(2\theta), the period is π2\frac{\pi}{2}. The asymptotes occur where 2θ=π2+kπ2\theta=\frac{\pi}{2}+k\pi, so θ=π4+kπ2\theta=\frac{\pi}{4}+\frac{k\pi}{2}. The zeros are where 2θ=kπ2\theta=k\pi, so θ=kπ2\theta=\frac{k\pi}{2}. At θ=π8\theta=\frac{\pi}{8}, we get 3tan⁡π4=33\tan\frac{\pi}{4}=3, and at θ=−π8\theta=-\frac{\pi}{8} we get −3-3. So one branch passes through (−π8,−3)(-\frac{\pi}{8},-3), (0,0)(0,0) and (π8,3)(\frac{\pi}{8},3), between asymptotes at −π4-\frac{\pi}{4} and π4\frac{\pi}{4}.

How it connects

  • Back to 3.2: tangent was introduced there as the slope of the terminal ray; here you graph it.
  • Back to 3.3: exact values of sine and cosine give exact values of tangent by division.
  • Back to 3.6: the same shifts and stretches apply, but the period formula changes to π∣b∣\frac{\pi}{|b|}.
  • Forward to 3.11: cotangent is cos⁡θsin⁡θ\frac{\cos\theta}{\sin\theta}, so its asymptotes sit where tangent has zeros.

Common mistakes

  • **Using period 2π2\pi for tangent.** The tangent pattern repeats every π\pi, and with bb in the form it is π∣b∣\frac{\pi}{|b|}.
  • Writing an asymptote where tangent is zero. Zeros come from sin⁡θ=0\sin\theta=0; asymptotes come from cos⁡θ=0\cos\theta=0.
  • Forgetting the sign in quadrants. Tangent is positive in Quadrants I and III, negative in II and IV.
  • Giving tangent an amplitude. It is unbounded, so there is no maximum or minimum to take half of.

How it shows up on the exam

  • Given a tangent equation, find its period, zeros, vertical asymptotes or the interval where it is increasing.
  • Match a graph with asymptotes to its equation, or describe its transformation from the parent graph.
  • Evaluate a tangent value at a special angle without a calculator, with a sign justified by quadrant.

Check yourself

  1. Why is tan⁡θ\tan\theta undefined at θ=π2\theta=\frac{\pi}{2}, in terms of the terminal ray?
  2. Without a calculator, what are the period and asymptotes of y=tan⁡ ⁣(θ2)y=\tan\!\big(\tfrac{\theta}{2}\big)?
  3. Why is tangent increasing on every branch but never increasing across an asymptote?
  4. Which quadrants give a positive tangent, and why?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.