---
title: "The Tangent Function | FiveStudy"
description: "Tangent as the slope of the terminal ray, its period of pi, vertical asymptotes and one-sided limits, its shape between asymptotes, and transformations."
url: https://fivestudy.com/guides/ap-precalculus-3-8-the-tangent-function
---

[AP Precalculus](https://fivestudy.com/ap-precalculus) · Study guide

# The Tangent Function

[Figure: FiveStudy]

FiveStudy

AP® Precalculus · Unit 3 · Trigonometric and Polar Functions

AP® Precalculus · Unit 3 · Trigonometric and Polar Functions

# The Tangent *Function*

Tangent measures the slope of the terminal ray, so it blows up whenever the ray stands straight up. This guide covers its values, its period of π, its asymptotes, its shape between them, and the effect of transformations.

1. Tangent as slope 2. Period and asymptotes 3. Shape between asymptotes 4. Transformations

The idea in one paragraph

\(\tan\theta\) is the slope of the terminal ray of \(\theta\), which equals \(\frac{\sin\theta}{\cos\theta}\). Rays that point in opposite directions have the same slope, so tangent has **period** \(\pi\). It is undefined where \(\cos\theta = 0\), giving **vertical asymptotes** at \(\theta = \frac{\pi}{2} + k\pi\). Between consecutive asymptotes it increases from \(-\infty\) to \(\infty\), concave down then concave up. For \(f(\theta) = a\tan(b(\theta + c)) + d\): vertical dilation by \(a\), period \(\frac{\pi}{|b|}\), phase shift \(-c\), and the line through the inflection points moves to \(y = d\).

## 1 Tangent as slope

Worked Example 1 Values as slopes

### Find \(\tan\frac{\pi}{4}\), \(\tan\frac{\pi}{3}\), \(\tan\frac{3\pi}{4}\), \(\tan\pi\) and \(\tan\frac{\pi}{2}\).

1. 1

   \(\tan\theta = \frac{\sin\theta}{\cos\theta}\), the slope of the terminal ray.

2. 2

   \(\frac{\pi}{4}\): the ray \(y = x\), slope 1. \(\frac{\pi}{3}\): \(\frac{\sqrt3/2}{1/2} = \sqrt3\). \(\frac{3\pi}{4}\): the ray \(y = -x\) in quadrant II, slope \(-1\).

3. 3

   \(\pi\): the ray along the negative x-axis, slope 0. \(\frac{\pi}{2}\): a vertical ray, no slope, so undefined.

**Answer:** 1, \(\sqrt3\), \(-1\), 0, undefined

Common Mistake 1 · Calling tan(π/2) infinity

\(\tan\frac{\pi}{2}\) is undefined: there is no output at all. The outputs grow without bound *near* \(\frac{\pi}{2}\), which is what the asymptote describes.

## 2 Period and asymptotes

**Figure 1.** Tangent repeats every π, not every 2π. Between asymptotes it always increases, bending concave down and then concave up.

Worked Example 2 Why the period is π

### Explain why \(\tan\frac{5\pi}{4} = \tan\frac{\pi}{4}\).

1. 1

   Adding \(\pi\) turns the terminal ray to point the opposite way along the same line.

2. 2

   The point \(P\) changes from \((\cos\theta, \sin\theta)\) to \((-\cos\theta, -\sin\theta)\); both signs flip, so the ratio \(\frac{\sin}{\cos}\) stays the same.

**Answer:** Both equal 1; tangent repeats every \(\pi\).

Worked Example 3 Behavior near an asymptote

### Describe \(\tan\theta\) as \(\theta\) approaches \(\frac{\pi}{2}\) from each side.

1. 1

   Just below \(\frac{\pi}{2}\): \(\sin\theta\) is near 1, \(\cos\theta\) is a small positive number, so \(\tan\theta\) is large and positive.

2. 2

   Just above \(\frac{\pi}{2}\): \(\cos\theta\) is a small negative number, so \(\tan\theta\) is large and negative.

**Answer:** \(\displaystyle\lim_{\theta \rightarrow \pi/2^-}\tan\theta = \infty\) and \(\displaystyle\lim_{\theta \rightarrow \pi/2^+}\tan\theta = -\infty\).

Write it like this

“As \(\theta \rightarrow \frac{\pi}{2}^-\), \(\cos\theta \rightarrow 0\) through positive values while \(\sin\theta \rightarrow 1\), so \(\tan\theta \rightarrow \infty\).”

Common Mistake 2 · Using 2π as the period

Sine and cosine repeat every \(2\pi\), but their ratio repeats every \(\pi\). For \(\tan(b\theta)\) the period is \(\frac{\pi}{|b|}\), not \(\frac{2\pi}{|b|}\).

## 3 Shape between asymptotes

Between \(-\frac{\pi}{2}\) and \(\frac{\pi}{2}\), tangent rises through every real number. It is concave down on the left half and concave up on the right half, switching at the inflection point \((0, 0)\). Every other branch is a copy shifted by a multiple of \(\pi\).

## 4 Transformations

**Figure 2.** b = ½ doubles the period to 2π, a = 2 stretches the graph vertically, and d = −1 moves the line through the inflection points down to y = −1.

Worked Example 4 A transformed tangent

### Describe \(f(\theta) = 2\tan\left(\frac{\theta}{2}\right) - 1\).

1. 1

   Period \(\frac{\pi}{|b|} = \frac{\pi}{1/2} = 2\pi\).

2. 2

   Asymptotes where \(\frac{\theta}{2} = \frac{\pi}{2} + k\pi\): \(\theta = \pi + 2k\pi\).

3. 3

   \(a = 2\) stretches vertically; \(d = -1\) moves the inflection points (where \(\tan\) is 0) to \(y = -1\), at \(\theta = 2k\pi\).

**Answer:** Period \(2\pi\), asymptotes \(\theta = \pi + 2k\pi\), inflection points \((2k\pi, -1)\) (Figure 2).

Worked Example 5 Phase shift and a shorter period

### Find the period, an asymptote and a zero of \(g(\theta) = \tan\left(2\left(\theta - \frac{\pi}{8}\right)\right)\).

1. 1

   Period \(\frac{\pi}{2}\).

2. 2

   Zero where the inside is 0: \(\theta = \frac{\pi}{8}\).

3. 3

   Asymptote where the inside is \(\frac{\pi}{2}\): \(2\left(\theta - \frac{\pi}{8}\right) = \frac{\pi}{2}\), so \(\theta = \frac{3\pi}{8}\). Others every \(\frac{\pi}{2}\) from there.

**Answer:** Period \(\frac{\pi}{2}\); zero at \(\frac{\pi}{8}\); asymptotes at \(\frac{3\pi}{8} + \frac{k\pi}{2}\).

Worked Example 6 Equation from features

### A tangent graph has consecutive asymptotes at \(x = -2\) and \(x = 2\), an inflection point at the origin, and passes through \((1, 3)\). Write an equation.

1. 1

   Distance between consecutive asymptotes is the period: 4. So \(\frac{\pi}{b} = 4\) and \(b = \frac{\pi}{4}\).

2. 2

   Inflection point at the origin: no shifts. \(y = a\tan\left(\frac{\pi x}{4}\right)\).

3. 3

   At \(x = 1\): \(a\tan\frac{\pi}{4} = a = 3\).

**Answer:** \(y = 3\tan\left(\frac{\pi x}{4}\right)\)

Common Mistake 3 · Talking about the amplitude of tangent

Tangent has no maximum or minimum, so it has no amplitude. The \(a\) in \(a\tan\theta\) is a vertical stretch: \(3\tan\frac{\pi}{4} = 3\) instead of 1.

### Quick reference

| Feature | \(\tan\theta\) | \(a\tan(b(\theta + c)) + d\) |
| --- | --- | --- |
| Period | \(\pi\) | \(\frac{\pi}{\|b\|}\) |
| Asymptotes | \(\frac{\pi}{2} + k\pi\) | inside \(= \frac{\pi}{2} + k\pi\) |
| Inflection points | \((k\pi, 0)\) | inside \(= k\pi\), on \(y = d\) |
| Direction | Increasing on each branch | Decreasing if \(a\) and \(b\) have opposite signs |
| Range | All real numbers | All real numbers |

FiveStudy AP® Precalculus · The tangent function
