# Tangent Function

> AP Precalculus · Trigonometric and Polar Functions (Unit 3)
> Source: https://www.owlsprep.com/study/ap-precalculus-u3-tangent-function/

This aligned study guide covers core tangent function concepts for AP Precalculus Unit 3, including definition, key features, transformations, inverse tangent, and solving tangent questions.

**Prerequisites:** Unit circle trigonometry for sine and cosine; Graph transformation rules for periodic functions; Limit behavior near vertical asymptotes; [AP Precalculus Unit 3 Overview](https://www.owlsprep.com/study/ap-precalculus-u3-overview/)

## Learning objectives

- Define the tangent function in terms of sine and cosine and unit circle coordinates
- Identify key features: domain, range, period, and vertical asymptotes of tangent functions
- Apply graph transformation rules to tangent functions
- Evaluate inverse tangent and find its domain and range
- Solve tangent equations for AP Precalculus exam questions

## What Is the Tangent Function?

The tangent function is a periodic trigonometric function defined as the ratio of the sine of an angle to the cosine of the same angle, commonly denoted $\tan(\theta)$, where $\theta$ is an input angle in radians per AP Precalculus convention.

For any angle $\theta$ with terminal point $(x,y)$ on the unit circle, $\tan(\theta) = \frac{y}{x}$, which equals the slope of the terminal ray from the origin to $(x,y)$. Unlike sine and cosine, tangent is not defined for all real inputs, giving it a unique structure with repeating vertical asymptotes. On the AP exam, tangent content makes up ~2-3% of your total score, appearing in both multiple-choice and free-response sections.

**Tangent Function** — A periodic trigonometric function defined as the ratio of sine to cosine of the same input angle, equal to the slope of a unit circle terminal ray.

*Notation:* $\tan(\theta)$

*Example:* For $\theta = \frac{\pi}{4}$, $\tan\left(\frac{\pi}{4}\right) = \frac{\sin\left(\frac{\pi}{4}\right)}{\cos\left(\frac{\pi}{4}\right)} = 1$

## Key Features: Domain, Range, Period, and Asymptotes

All core features of tangent derive directly from its definition $\tan(\theta) = \frac{\sin(\theta)}{\cos(\theta)}$. Because division by zero is undefined, tangent is undefined whenever $\cos(\theta) = 0$, which occurs at $\theta = \frac{\pi}{2} + k\pi$ for all integers $k$.

$$\theta = \frac{\pi}{2} + k\pi, \quad k \in \mathbb{Z}$$

At each undefined point, tangent has a vertical asymptote: approaching from the left, $\tan(\theta) \to +\infty$, and from the right, $\tan(\theta) \to -\infty$. The range of the basic tangent function is all real numbers $(-\infty, \infty)$, since the ratio grows without bound as cosine approaches zero.

A critical difference between tangent and sine/cosine is the period: tangent has a base period of $\pi$, not $2\pi$, because $\tan(\theta + \pi) = \frac{-\sin(\theta)}{-\cos(\theta)} = \tan(\theta)$. For a transformed function $A\tan(Bx - C) + D$, the period is $\frac{\pi}{|B|}$.

Between any two consecutive vertical asymptotes, the tangent graph is always increasing, yet its concavity changes exactly once. On the left half of each branch the graph is concave down: as $\theta$ increases across this half, the rate of change (the slope of the secant lines) is decreasing. On the right half the graph is concave up, where the rate of change is increasing. The single point where the concavity switches from down to up — at the center of the branch, where the basic tangent passes through zero — is a point of inflection.

**Worked example:** Identify the domain, period, and vertical asymptotes of the function $f(x) = \tan\left(3x - \frac{\pi}{4}\right)$.

1. For any tangent function, period is calculated as $\frac{\pi}{|B|}$. Here $B=3$, so the period is:
2. $$\frac{\pi}{3}$$
3. To find vertical asymptotes, set the entire argument of tangent equal to the base asymptote positions $\frac{\pi}{2} + k\pi$ for all integers $k$:
4. $$3x - \frac{\pi}{4} = \frac{\pi}{2} + k\pi$$
5. Solve for $x$:
6. $$3x = \frac{3\pi}{4} + k\pi \implies x = \frac{\pi}{4} + \frac{k\pi}{3}, \quad k \in \mathbb{Z}$$
7. The domain is all real numbers except these asymptote locations.

> **tip**
>
> When calculating period for tangent, never use the $\frac{2\pi}{|B|}$ formula you use for sine and cosine. Always remember tangent has half the period of sine/cosine for the same $B$.

## Graph Transformations of Tangent Functions

The standard general form for a transformed tangent function is:

$$f(x) = A\tan\left(B(x - h)\right) + k$$

Each constant follows standard transformation rules, adjusted for tangent's unique structure: $|A|$ controls vertical steepness, the sign of $A$ reflects the graph over the x-axis, $B$ controls horizontal stretch and period, $h$ is the horizontal shift, and $k$ is the vertical shift. Only $B$ changes the period or asymptote locations; $A$ and $k$ do not affect these features.

**Worked example:** Write the equation of a tangent function that has consecutive vertical asymptotes at $x = -\frac{\pi}{2}$ and $x = \frac{\pi}{2}$, passes through $\left(\frac{\pi}{4}, 4\right)$, and is increasing between its asymptotes.

1. Start with the general form $f(x) = A\tan\left(B(x - h)\right) + k$. No vertical shift is mentioned, so $k=0$. The midpoint between consecutive asymptotes is at $x=0$, so there is no horizontal shift, $h=0$.
2. The distance between consecutive asymptotes equals the period, so:
3. $$P = \frac{\pi}{2} - \left(-\frac{\pi}{2}\right) = \pi \implies \pi = \frac{\pi}{|B|} \implies |B| = 1, \text{ so } B=1$$
4. The function is increasing, so $A$ is positive. Use the point $\left(\frac{\pi}{4}, 4\right)$ to solve for $A$:
5. $$4 = A\tan\left(\frac{\pi}{4}\right) = A(1) \implies A=4$$
6. Final equation matching all requirements:
7. $$f(x) = 4\tan(x)$$

> **tip**
>
> To confirm your transformed tangent equation is correct, check that the distance between any two consecutive asymptotes equals the period you calculated. This 10-second check catches 80% of common transformation errors.

## Inverse Tangent Function

Because tangent is periodic and repeats its output every $\pi$, it is not one-to-one over its entire domain. To define a valid inverse function, we restrict the domain of tangent to $\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$, which covers one full period and all possible output values of tangent.

**Inverse Tangent Function** — The inverse of the tangent function with restricted domain $\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$. By definition, $y = \arctan(x)$ if and only if $\tan(y) = x$ and $y \in \left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$.

*Notation:* $\arctan(x)$ or $\tan^{-1}(x)$

*Example:* $\arctan(1) = \frac{\pi}{4}$, not $\frac{5\pi}{4}$, since $\frac{5\pi}{4}$ is outside the restricted range.

The domain of $\arctan(x)$ is all real numbers $(-\infty, \infty)$ (matching the range of original tangent), and the range of $\arctan(x)$ is $\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$ (matching the restricted domain of original tangent). The graph of $\arctan(x)$ has horizontal asymptotes at $y = \pm \frac{\pi}{2}$.

**Worked example:** Evaluate $\arctan\left(\frac{1}{\sqrt{3}}\right)$ and find the range of $g(x) = 3\arctan(2x) + \pi$.

1. To evaluate $\arctan\left(\frac{1}{\sqrt{3}}\right)$, we need an angle $y \in \left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$ such that $\tan(y) = \frac{1}{\sqrt{3}}$. From unit circle trigonometry, we know $\tan\left(\frac{\pi}{6}\right) = \frac{1}{\sqrt{3}}$, so:
2. $$\arctan\left(\frac{1}{\sqrt{3}}\right) = \frac{\pi}{6}$$
3. The range of basic $\arctan(2x)$ is still $\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$. Multiply by 3 to get the stretched range:
4. $$\left(-\frac{3\pi}{2}, \frac{3\pi}{2}\right)$$
5. Add $\pi$ for the vertical shift to get the final range:
6. $$\left(-\frac{3\pi}{2} + \pi, \frac{3\pi}{2} + \pi\right) = \left(-\frac{\pi}{2}, \frac{5\pi}{2}\right)$$

> **tip**
>
> Unless the question explicitly asks for all solutions to a tangent equation, the output of inverse tangent on the AP exam is always in $\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$; never give an output outside this interval.

## AP Style Worked Practice Problems

**Worked example:** Which of the following gives the period and the first positive vertical asymptote of $f(x) = \tan\left(\frac{x}{3} - \frac{\pi}{6}\right)$?
A) Period $3\pi$, asymptote $x = 2\pi$
B) Period $\frac{\pi}{3}$, asymptote $x = 2\pi$
C) Period $3\pi$, asymptote $x = \frac{2\pi}{3}$
D) Period $\frac{\pi}{3}$, asymptote $x = \frac{2\pi}{3}$

1. First calculate the period using $P = \frac{\pi}{|B|}$. Here $B = \frac{1}{3}$, so:
2. $$P = \frac{\pi}{1/3} = 3\pi$$
3. This eliminates options B and D, which have an incorrect period. Next, find the first positive vertical asymptote by setting the argument equal to the smallest positive base asymptote $\frac{\pi}{2}$:
4. $$\frac{x}{3} - \frac{\pi}{6} = \frac{\pi}{2}$$
5. Solve for $x$:
6. $$\frac{x}{3} = \frac{\pi}{2} + \frac{\pi}{6} = \frac{2\pi}{3} \implies x = 2\pi$$
7. This matches option A, the correct answer.

**Worked example:** Consider the function $f(x) = 2\tan\left(3\left(x - \frac{\pi}{9}\right)\right) + 1$.
(a) Find the period of $f(x)$ and the locations of all vertical asymptotes.
(b) State the domain and range of $f(x)$.
(c) Find all values of $x$ in the interval $[0, \pi]$ such that $f(x) = 3$.

1. Part (a): $B=3$, so period is:
2. $$\frac{\pi}{|3|} = \frac{\pi}{3}$$
3. Find asymptotes by setting the argument equal to $\frac{\pi}{2} + k\pi$:
4. $$3\left(x - \frac{\pi}{9}\right) = \frac{\pi}{2} + k\pi \implies x = \frac{5\pi}{18} + \frac{k\pi}{3}, \quad k \in \mathbb{Z}$$
5. Part (b): Domain is all real numbers except the asymptote locations above. The range of any tangent function is all real numbers, even with vertical shifting, so:
6. $$\text{Domain}: \left\{x \in \mathbb{R} \mid x \neq \frac{5\pi}{18} + \frac{k\pi}{3}, k \in \mathbb{Z}\right\}, \quad \text{Range}: (-\infty, \infty)$$
7. Part (c): Set $f(x) = 3$ and simplify:
8. $$2\tan\left(3x - \frac{\pi}{3}\right) + 1 = 3 \implies \tan\left(3x - \frac{\pi}{3}\right) = 1$$
9. Solutions to $\tan(y) = 1$ are $y = \frac{\pi}{4} + k\pi$, so substitute and solve for $x$:
10. $$3x - \frac{\pi}{3} = \frac{\pi}{4} + k\pi \implies x = \frac{7\pi}{36} + \frac{k\pi}{3}$$
11. Testing integer values of $k$ gives the following solutions in $[0, \pi]$:
12. $$x = \frac{7\pi}{36}, \frac{19\pi}{36}, \frac{31\pi}{36}$$

**Worked example:** A surveyor needs to find the angle to the top of a cell tower. The horizontal distance to the base of the tower is 85 meters, and $\tan(\theta) = 0.42$. (a) Find $\theta$ in radians, rounded to 3 decimal places. (b) The clinometer can only measure angles less than 0.4 radians accurately. Is $\theta$ within the accurate range?

1. To find $\theta$ when $\tan(\theta) = 0.42$, use inverse tangent:
2. $$\theta = \arctan(0.42)$$
3. Using a calculator in radian mode, this evaluates to approximately 0.398 radians. Comparing to the maximum accurate angle of 0.4 radians, 0.398 < 0.4, so $\theta$ is within the accurate measurement range.

## Common pitfalls

- **Wrong:** Stating the period of the basic tangent function is $2\pi$, matching sine and cosine.
  - Why it fails: Students memorize $2\pi$ as the default trigonometric period from learning sine and cosine first, and forget tangent repeats twice as fast.
  - Correct: Always recall tangent's base period is $\pi$, and calculate transformed period as $\frac{\pi}{|B|}$, not $\frac{2\pi}{|B|}$.
- **Wrong:** Finding asymptotes for $f(x) = \tan(2x - \pi)$ as $x = \frac{\pi}{4} + k\pi$.
  - Why it fails: Students shift the base asymptotes by $C$ but forget to scale the shift by $\frac{1}{B}$.
  - Correct: Always set the entire argument equal to $\frac{\pi}{2} + k\pi$, then solve for $x$ step-by-step to get all asymptote locations.
- **Wrong:** Giving $\arctan(1) = \frac{5\pi}{4}$ as a final answer for inverse tangent evaluation.
  - Why it fails: Students confuse solving a general tangent equation with evaluating the inverse tangent function, which requires an output in the restricted range.
  - Correct: Always check that any inverse tangent output falls in $\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$ before submitting your answer.
- **Wrong:** Claiming $A$ in $f(x) = A\tan(Bx) + k$ changes the period of the function.
  - Why it fails: Students confuse vertical and horizontal transformations, assuming any stretch changes the period.
  - Correct: Remember only $B$, the coefficient of $x$, changes the period of tangent; $A$ only changes vertical steepness, not period or asymptotes.
- **Wrong:** Solving $\tan(\theta) = 1$ and giving only $\theta = \frac{\pi}{4}$ as the general solution.
  - Why it fails: Students only give the inverse tangent output, forgetting tangent is periodic with period $\pi$.
  - Correct: After finding the base solution $\theta_0 = \arctan(k)$, always add $+n\pi$ (not $+2n\pi$) to get all general solutions for any integer $n$.
- **Wrong:** Swapping the domain and range of tangent and inverse tangent.
  - Why it fails: Students mix up the input/output relationship for inverse functions when switching between tangent and arctangent.
  - Correct: Recall tangent has a restricted domain and full range; inverse tangent has a full domain and restricted range.

## Cheatsheet

| Category | Formula / Property | Notes |
| --- | --- | --- |
| Basic definition | $\tan(\theta) = \frac{\sin(\theta)}{\cos(\theta)} = \frac{y}{x}$ | For unit circle terminal point $(x,y)$; undefined when $\cos(\theta) = 0$ |
| General transformed tangent | $f(x) = A\tan(B(x-h)) + k$ | Standard form for graph transformations |
| Period of tangent | $P = \frac{\pi}{\|B\|}$ | Always $\frac{\pi}{\|B\|}$, not $\frac{2\pi}{\|B\|}$ used for sine/cosine |
| Vertical asymptotes | $B(x-h) = \frac{\pi}{2} + k\pi, \quad k\in\mathbb{Z}$ | One asymptote every period |
| Domain/range of tangent | Domain: all reals except asymptotes<br>Range: $(-\infty, \infty)$ | Vertical shifting does not change the range |
| Inverse tangent definition | $y = \arctan(x) \iff \tan(y) = x, y \in \left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$ | Output is always in the restricted interval |
| Domain/range of inverse tangent | Domain: $(-\infty, \infty)$<br>Range: $\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$ | Horizontal asymptotes at $y = \pm \frac{\pi}{2}$ |

## What's next

Mastering the tangent function builds a strong foundation for your future calculus courses. This topic connects directly to other core AP Precalculus Unit 3 content, including trigonometric identities, inverse trigonometric functions, and polar coordinate modeling, all of which appear regularly on the AP exam. Building fluency with tangent transformations and equation solving will prepare you for both multiple-choice and free-response questions on test day.

- [AP Precalculus Unit 3 Overview](https://www.owlsprep.com/study/ap-precalculus-u3-overview/)
- [Inverse trigonometric functions](https://www.owlsprep.com/study/ap-precalculus-u3-inverse-trigonometric-functions/)
- [Trigonometric equations and inequalities](https://www.owlsprep.com/study/ap-precalculus-u3-trigonometric-equations-and-inequalities/)

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ap-precalculus-u3-tangent-function/
