Dove's LibraryDove's Library

3.8 - The Tangent Function

Overview

Sine and cosine come from the coordinates of a point on the unit circle. Tangent comes from the slope of the ray through that point. That one idea explains everything about tangent: why it equals sin⁡θcos⁡θ\frac{\sin\theta}{\cos\theta}, why its period is π\pi instead of 2π2\pi, and why its graph has vertical asymptotes. At the end you'll apply the transformations from Topic 3.6 to tangent.

Tangent is the slope of the terminal ray

Draw an angle θ\theta in standard position. Its terminal ray crosses the unit circle at a point PP. The tangent of θ\theta is the slope of that terminal ray.
3.8 - The Tangent Function
The ray starts at the origin and passes through P=(cos⁡θ,sin⁡θ)P = (\cos\theta, \sin\theta). Slope is rise over run, so
tan⁡θ=sin⁡θ−0cos⁡θ−0=sin⁡θcos⁡θ\tan\theta = \frac{\sin\theta - 0}{\cos\theta - 0} = \frac{\sin\theta}{\cos\theta}
As in Topic 3.2, any point on the ray works, not just PP: if (x,y)(x, y) is on the terminal ray, then tan⁡θ=yx\tan\theta = \frac{y}{x}. The figure also shows where the name comes from. Extend the ray until it meets the line x=1x = 1, which is tangent to the unit circle at (1,0)(1, 0). The ray rises tan⁡θ\tan\theta over a run of 1, so it meets that line at (1,tan⁡θ)(1, \tan\theta).

Tangent as sine over cosine

tan⁡θ=sin⁡θcos⁡θ,where cos⁡θ≠0\tan\theta = \frac{\sin\theta}{\cos\theta}, \quad \text{where } \cos\theta \neq 0
This is the form you'll use most. It means every tangent value comes from the unit circle:
θ\theta
00
π6\frac{\pi}{6}
π4\frac{\pi}{4}
π3\frac{\pi}{3}
π2\frac{\pi}{2}
sin⁡θ\sin\theta
00
12\frac{1}{2}
22\frac{\sqrt{2}}{2}
32\frac{\sqrt{3}}{2}
11
cos⁡θ\cos\theta
11
32\frac{\sqrt{3}}{2}
22\frac{\sqrt{2}}{2}
12\frac{1}{2}
00
tan⁡θ\tan\theta
00
33\frac{\sqrt{3}}{3}
11
3\sqrt{3}
undefined
Signs: tangent is positive when sine and cosine have the same sign (Quadrants I and III) and negative when they have opposite signs (Quadrants II and IV). With slopes it's even easier to see: a line through the origin and Quadrant I or III rises to the right, so its slope is positive.

Key characteristics of the tangent function

Period π\pi

The angles θ\theta and θ+π\theta + \pi point in exactly opposite directions, so their terminal rays lie on the same line and have the same slope. That means tangent repeats every half revolution:
tan⁡(θ+π)=tan⁡θ\tan(\theta + \pi) = \tan\theta
The period of tangent is π\pi, half the period of sine and cosine.

Vertical asymptotes

Tangent is undefined wherever cos⁡θ=0\cos\theta = 0, since that would mean dividing by zero. (The terminal ray is vertical there, and a vertical line has no slope.) That happens at
θ=π2+kπ,k an integer\theta = \frac{\pi}{2} + k\pi, \quad k \text{ an integer}
As θ\theta approaches π2\frac{\pi}{2} from the left, sin⁡θ\sin\theta is close to 1 and cos⁡θ\cos\theta is a tiny positive number, so tan⁡θ\tan\theta grows without bound. From the right, cos⁡θ\cos\theta is a tiny negative number, so tan⁡θ\tan\theta decreases without bound. That's a vertical asymptote, and the pattern repeats every π\pi units.

Always increasing between asymptotes

3.8 - The Tangent Function
Between any two consecutive asymptotes, y=tan⁡θy = \tan\theta is always increasing. Each branch comes up from very negative values, passes through a zero, and rises without bound. Each branch is concave down on its left half and concave up on its right half, so every zero, θ=kπ\theta = k\pi, is a point of inflection.
The middle branch passes through (−π4,−1)\left(-\frac{\pi}{4}, -1\right), (0,0)(0, 0), and (π4,1)\left(\frac{\pi}{4}, 1\right). Those three points and the two asymptotes are all you need to sketch a branch.
Feature
y=tan⁡θy = \tan\theta
Domain
θ≠π2+kπ\theta \neq \frac{\pi}{2} + k\pi
Range
All real numbers
Period
π\pi
Vertical asymptotes
θ=π2+kπ\theta = \frac{\pi}{2} + k\pi
Zeros (points of inflection)
θ=kπ\theta = k\pi
Between asymptotes
Increasing; concave down, then concave up
Tangent has no maximum or minimum value, so it has no amplitude.

Transformations of tangent

The four constants from Topic 3.6 work on tangent too, with two differences: the period uses π\pi instead of 2π2\pi, and there's no amplitude.
f(θ)=atan⁡(b(θ+c))+df(\theta) = a\tan\big(b(\theta + c)\big) + d
Constant
What it does to y=tan⁡θy = \tan\theta
aa
Vertical dilation by a factor of ∣a∣|a|. If a<0a < 0, it also reflects over the horizontal axis.
bb
Horizontal dilation by a factor of 1∣b∣\frac{1}{|b|}, so the period becomes π∣b∣\frac{\pi}{|b|}. If b<0b < 0, it also reflects over the vertical axis.
cc
Phase shift of −c-c units (left if c>0c > 0, right if c<0c < 0).
dd
Vertical translation by dd units. The points of inflection move to the line y=dy = d.
Tangent has no max or min, so instead of a midline we track the line containing the points of inflection. For y=tan⁡θy = \tan\theta it's y=0y = 0, and for y=tan⁡θ+dy = \tan\theta + d it's y=dy = d.
To find the vertical asymptotes of a transformed tangent, set the input of tangent equal to where the parent's asymptotes are:
b(θ+c)=π2+kπb(\theta + c) = \frac{\pi}{2} + k\pi
The points of inflection are where the input of tangent equals kπk\pi.

Example 1: Tangent values

Find each value exactly. (a) tan⁡(5π6)\tan\left(\frac{5\pi}{6}\right) (b) tan⁡(4π3)\tan\left(\frac{4\pi}{3}\right) (c) tan⁡(3π2)\tan\left(\frac{3\pi}{2}\right) (d) tan⁡θ\tan\theta, if the terminal ray of θ\theta passes through (−3,4)(-3, 4)
(a) On the unit circle, sin⁡5π6=12\sin\frac{5\pi}{6} = \frac{1}{2} and cos⁡5π6=−32\cos\frac{5\pi}{6} = -\frac{\sqrt{3}}{2}.
tan⁡(5π6)=1/2−3/2=−13=−33\tan\left(\frac{5\pi}{6}\right) = \frac{1/2}{-\sqrt{3}/2} = -\frac{1}{\sqrt{3}} = -\frac{\sqrt{3}}{3}
(b) sin⁡4π3=−32\sin\frac{4\pi}{3} = -\frac{\sqrt{3}}{2} and cos⁡4π3=−12\cos\frac{4\pi}{3} = -\frac{1}{2}, so tan⁡(4π3)=3\tan\left(\frac{4\pi}{3}\right) = \sqrt{3}. This matches tan⁡π3\tan\frac{\pi}{3}, as it should: 4π3=π3+π\frac{4\pi}{3} = \frac{\pi}{3} + \pi, and the period is π\pi.
(c) cos⁡3π2=0\cos\frac{3\pi}{2} = 0, so tan⁡(3π2)\tan\left(\frac{3\pi}{2}\right) is undefined. The graph has a vertical asymptote there.
(d) The ray goes from (0,0)(0, 0) through (−3,4)(-3, 4), so its slope is 4−0−3−0=−43\frac{4 - 0}{-3 - 0} = -\frac{4}{3}. So tan⁡θ=−43\tan\theta = -\frac{4}{3}, negative as expected for a ray in Quadrant II.

Example 2: Key features of a transformed tangent

Find the period, phase shift, vertical asymptotes, and points of inflection of g(θ)=2tan⁡(θ2−π4)+1g(\theta) = 2\tan\left(\frac{\theta}{2} - \frac{\pi}{4}\right) + 1. Then sketch it.
Step 1: Factor bb out of the input.
g(θ)=2tan⁡(12(θ−π2))+1g(\theta) = 2\tan\left(\frac{1}{2}\left(\theta - \frac{\pi}{2}\right)\right) + 1
So a=2a = 2, b=12b = \frac{1}{2}, c=−π2c = -\frac{\pi}{2}, and d=1d = 1.
Step 2: Period π1/2=2π\frac{\pi}{1/2} = 2\pi. Phase shift π2\frac{\pi}{2} to the right. Vertical dilation by a factor of 2. The points of inflection lie on y=1y = 1.
Step 3: Asymptotes, where the input of tangent is π2+kπ\frac{\pi}{2} + k\pi:
12(θ−π2)=π2+kπ⇒θ=3π2+2kπ\frac{1}{2}\left(\theta - \frac{\pi}{2}\right) = \frac{\pi}{2} + k\pi \quad \Rightarrow \quad \theta = \frac{3\pi}{2} + 2k\pi
Step 4: Points of inflection, where the input of tangent is kπk\pi: θ=π2+2kπ\theta = \frac{\pi}{2} + 2k\pi, at height 1.
Step 5: Two more points help the sketch. When the input of tangent is ±π4\pm\frac{\pi}{4}, θ=0\theta = 0 or θ=π\theta = \pi:
g(0)=2tan⁡(−π4)+1=−1g(π)=2tan⁡(π4)+1=3g(0) = 2\tan\left(-\frac{\pi}{4}\right) + 1 = -1 \qquad g(\pi) = 2\tan\left(\frac{\pi}{4}\right) + 1 = 3
3.8 - The Tangent Function
Answer: period 2π2\pi; phase shift π2\frac{\pi}{2} right; vertical asymptotes at θ=3π2+2kπ\theta = \frac{3\pi}{2} + 2k\pi (for example −π2-\frac{\pi}{2} and 3π2\frac{3\pi}{2}); points of inflection at (π2+2kπ, 1)\left(\frac{\pi}{2} + 2k\pi,\ 1\right).

Example 3: Writing a tangent equation from a graph (AP-style)

The graph of h(x)=atan⁡(b(x+c))+dh(x) = a\tan\big(b(x + c)\big) + d is shown, with a>0a > 0 and b>0b > 0. It has consecutive vertical asymptotes at x=−1x = -1 and x=3x = 3, a point of inflection at (1,2)(1, 2), and passes through (0,−1)(0, -1) and (2,5)(2, 5). Find aa, bb, cc, and dd.
3.8 - The Tangent Function
Step 1: Period. Consecutive asymptotes are one period apart: 3−(−1)=43 - (-1) = 4.
πb=4⇒b=π4\frac{\pi}{b} = 4 \quad \Rightarrow \quad b = \frac{\pi}{4}
Step 2: Shifts. The parent's point of inflection (0,0)(0, 0) moved to (1,2)(1, 2): right 1 and up 2. So c=−1c = -1 and d=2d = 2.
Step 3: Vertical dilation. Use (2,5)(2, 5):
5=atan⁡(π4(2−1))+2=atan⁡(π4)+2=a+2⇒a=35 = a\tan\left(\frac{\pi}{4}(2 - 1)\right) + 2 = a\tan\left(\frac{\pi}{4}\right) + 2 = a + 2 \quad \Rightarrow \quad a = 3
Step 4: Check (0,−1)(0, -1): 3tan⁡(−π4)+2=−3+2=−13\tan\left(-\frac{\pi}{4}\right) + 2 = -3 + 2 = -1. Check the asymptote at x=3x = 3: the input of tangent is π4(3−1)=π2\frac{\pi}{4}(3 - 1) = \frac{\pi}{2}, where tangent is undefined. Both match.
h(x)=3tan⁡(π4(x−1))+2h(x) = 3\tan\left(\frac{\pi}{4}(x - 1)\right) + 2

Common mistakes

  • Using 2π∣b∣\frac{2\pi}{|b|} for the period of tangent. Tangent's period is π∣b∣\frac{\pi}{|b|}.
  • Giving tangent an amplitude. It has none; ∣a∣|a| is only a vertical dilation factor.
  • Putting asymptotes where sin⁡θ=0\sin\theta = 0. Asymptotes are where cos⁡θ=0\cos\theta = 0. Where sin⁡θ=0\sin\theta = 0, tangent equals 0.
  • Saying y=tan⁡θy = \tan\theta decreases somewhere. Between asymptotes it only increases. (A transformed tangent with exactly one of aa and bb negative is reflected, so it only decreases.)
  • Reading the phase shift before factoring out bb, the same trap as with sine and cosine.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.