Advanced Placement®
Practice
3.8

Graphing Tangent with Transformations: AP® Precalculus Review

graphing tangent with transformations
✎ Study Mode — Highlight text and annotate as you read.

The tangent function has a distinctive graph that differs from sine and cosine in several important ways: it has vertical asymptotes, no maximum or minimum values, and a period of \(\pi\) rather than \(2\pi\). Learning how to apply transformations to the tangent function—including translations, dilations, and reflections—is a key skill in AP® Precalculus, since transformed tangent functions appear in both graphing and equation-solving contexts.

This review covers the parent tangent function and then works through each transformation type individually before combining them in the general form \(y = a\tan(b(\theta + c)) + d\).

Understanding the Basic Tangent Function

The tangent function is defined as \(\tan\theta = \frac{\sin\theta}{\cos\theta}\). Because cosine equals zero at odd multiples of \(\frac{\pi}{2}\), the tangent function is undefined at those points, creating vertical asymptotes.

Key features of the parent function \(f(\theta) = \tan\theta\):

Feature Value / Description
Period \(\pi\)
Domain All real numbers except \(\theta = \frac{\pi}{2} + n\pi\)
Range \((-\infty, \infty)\)
Vertical Asymptotes \(\theta = \frac{\pi}{2} + n\pi\) for any integer \(n\)
Zeros \(\theta = n\pi\) for any integer \(n\)
Inflection Points At each zero, where the graph passes through the midline
Behavior Always increasing between consecutive asymptotes
Graph of y = tan θ with vertical asymptotes at odd multiples of π/2, zeros at (0, 0) and (π, 0), and the point (π/4, 1)
Image created using Desmos (CC BY-SA 4.0)

Example: To graph \(f(\theta) = \tan\theta\) on one period, start by drawing vertical asymptotes at \(\theta = -\frac{\pi}{2}\) and \(\theta = \frac{\pi}{2}\). Plot the zero at \(\theta = 0\), then plot the points \(\left(-\frac{\pi}{4}, -1\right)\) and \(\left(\frac{\pi}{4}, 1\right)\). Connect these with a smooth increasing curve that approaches the asymptotes.

Between any two consecutive asymptotes, the tangent graph rises from \(-\infty\) through zero to \(+\infty\). This pattern repeats every \(\pi\) units, creating the characteristic shape of the tangent function.

Vertical Transformations

Vertical transformations shift the entire tangent graph up or down without changing its period, asymptote locations, or shape. The transformed function takes the form \(g(\theta) = \tan\theta + d\), where \(d\) is the vertical shift.

When \(d > 0\), every point on the graph moves up by \(d\) units. When \(d < 0\), every point moves down. The asymptotes remain in the same positions because the vertical shift does not affect where cosine equals zero.

Example: Graph \(g(\theta) = \tan\theta + 2\).

Start with the parent graph \(f(\theta) = \tan\theta\), then shift every point up by 2 units. The zero of the parent function at \(\theta = 0\) becomes the point \((0, 2)\). The points \(\left(\frac{\pi}{4}, 1\right)\) and \(\left(-\frac{\pi}{4}, -1\right)\) become \(\left(\frac{\pi}{4}, 3\right)\) and \(\left(-\frac{\pi}{4}, 1\right)\). The asymptotes stay at \(\theta = \pm\frac{\pi}{2}\).

Graph of the tangent function shifted up 2 units, passing through (0, 2), (π/4, 3), and (π, 2)
Image created using Desmos (CC BY-SA 4.0)

Horizontal Transformations (Phase Shifts)

Horizontal transformations (phase shifts) slide the tangent graph left or right along the \(\theta\)-axis. The transformed function is \(g(\theta) = \tan(\theta + c)\), where \(c > 0\) shifts the graph left and \(c < 0\) shifts it right.

A phase shift moves every feature of the graph—zeros, asymptotes, and inflection points—by the same horizontal amount. The period and shape remain unchanged.

Example: Graph \(g(\theta) = \tan\left(\theta – \frac{\pi}{4}\right)\).

Shift the parent graph right by \(\frac{\pi}{4}\). The asymptotes move from \(\theta = \pm\frac{\pi}{2}\) to \(\theta = \frac{\pi}{2} + \frac{\pi}{4} = \frac{3\pi}{4}\) and \(\theta = -\frac{\pi}{2} + \frac{\pi}{4} = -\frac{\pi}{4}\). The zero at \(\theta = 0\) moves to \(\theta = \frac{\pi}{4}\).

Graph of the tangent function shifted right by π/4, with zeros at (π/4, 0) and (5π/4, 0)
Image created using Desmos (CC BY-SA 4.0)

Vertical Dilation

Vertical dilation stretches or compresses the tangent graph by multiplying all \(y\)-values by a constant factor \(a\). The transformed function is \(g(\theta) = a\tan\theta\).

When \(|a| > 1\), the graph stretches vertically (steeper near the asymptotes). When \(0 < |a| < 1\), the graph compresses (less steep). When \(a < 0\), the graph also reflects across the \(\theta\)-axis, making it decrease between asymptotes instead of increase.

Vertical dilation does not change the locations of zeros or asymptotes—it only changes how steeply the curve approaches the asymptotes.

Example: Graph \(g(\theta) = 2\tan\theta\).

Multiply every \(y\)-value of the parent function by 2. The zero at \(\theta = 0\) stays at \((0, 0)\) because \(2 \times 0 = 0\). The point \(\left(\frac{\pi}{4}, 1\right)\) becomes \(\left(\frac{\pi}{4}, 2\right)\). The curve is steeper, reaching larger \(y\)-values more quickly as \(\theta\) approaches the asymptotes.

Graph of y = 2 tan θ, a vertically stretched tangent curve through (0, 0), (π/4, 2), and (π, 0)
Image created using Desmos (CC BY-SA 4.0)

Horizontal Dilation

Horizontal dilation changes the period of the tangent function. The transformed function is \(g(\theta) = \tan(b\theta)\), and the new period is \(\frac{\pi}{|b|}\).

When \(|b| > 1\), the period shrinks (the graph completes more cycles in the same horizontal space). When \(0 < |b| < 1\), the period expands. Horizontal dilation also moves the asymptotes: the new asymptotes occur at \(\theta = \frac{1}{b}\left(\frac{\pi}{2} + n\pi\right)\).

Example: Graph \(g(\theta) = \tan(2\theta)\).

The new period is \(\frac{\pi}{2}\), half the original. The asymptotes move to \(\theta = \frac{1}{2}\left(\frac{\pi}{2} + n\pi\right) = \frac{\pi}{4} + \frac{n\pi}{2}\). On one period, the asymptotes are at \(\theta = -\frac{\pi}{4}\) and \(\theta = \frac{\pi}{4}\), with a zero at \(\theta = 0\).

Graph of y = tan(2θ), with a period of π/2 and zeros at (0, 0) and (π/2, 0)
Image created using Desmos (CC BY-SA 4.0)

Combining Transformations

The general form of a transformed tangent function is \(y = a\tan(b(\theta + c)) + d\), where each parameter controls a different transformation:

Parameter Transformation Effect on Graph
\(a\) Vertical dilation Stretches (\(|a| > 1\)) or compresses (\(|a| < 1\)); reflects if \(a < 0\)
\(b\) Horizontal dilation Changes period to \(\frac{\pi}{|b|}\)
\(c\) Phase shift Shifts left (\(c > 0\)) or right (\(c < 0\))
\(d\) Vertical translation Shifts up (\(d > 0\)) or down (\(d < 0\))

When applying multiple transformations, work from the inside out: start with horizontal dilation, then phase shift, then vertical dilation, and finally vertical translation.

Example: Graph \(g(\theta) = -3\tan(0.5(\theta + 1)) + 4\).

Identify the parameters: \(a = -3\), \(b = 0.5\), \(c = 1\), \(d = 4\). The period is \(\frac{\pi}{0.5} = 2\pi\) (double the parent period). The phase shift is 1 unit left. The vertical dilation factor of \(-3\) means the graph is reflected across the horizontal axis and stretched by a factor of 3. Finally, everything shifts up 4 units.

The asymptotes of the parent function at \(\theta = \pm\frac{\pi}{2}\) move according to the horizontal transformations: each parent asymptote \(\theta_0\) maps to \(\frac{\theta_0}{0.5} – 1\). The graph now decreases between asymptotes (instead of increasing) because of the negative coefficient, with the midline at \(y = 4\).

Graph of a combined tangent transformation that decreases between asymptotes, passing through (-1, 4), (0.5708, 1), and (5.28319, 4)
Image created using Desmos (CC BY-SA 4.0)

Quick Reference Chart

Term Definition
Tangent Function \(f(\theta) = \tan\theta = \frac{\sin\theta}{\cos\theta}\); period \(\pi\), range \((-\infty, \infty)\)
Vertical Translation \(+d\) shifts graph up; \(-d\) shifts down; asymptotes unaffected
Phase Shift \(+c\) inside the argument shifts graph left; \(-c\) shifts right; moves all features equally
Vertical Dilation Factor \(a\) stretches or compresses \(y\)-values; negative \(a\) reflects the graph
Horizontal Dilation Factor \(b\) changes the period to \(\frac{\pi}{|b|}\) and moves all asymptotes
General Form \(y = a\tan(b(\theta + c)) + d\) combines all four transformations

Test-Taking Strategies for Tangent Transformation Problems

Use the mnemonic ABCD to analyze transformed tangent functions: Amplitude factor (vertical dilation \(a\)), B value (period change via \(b\)), C shift (phase shift from \(c\)), D displacement (vertical shift \(d\)).

Cross-topic connections: Tangent transformations connect to sinusoidal transformations (Unit 3.7), since the same parameter framework \(a\), \(b\), \(c\), \(d\) applies to sine and cosine graphs. They also relate to the tangent function’s definition as \(\frac{\sin\theta}{\cos\theta}\) (Unit 3.8), reciprocal functions like cotangent (Unit 3.11), solving trig equations (Unit 3.10), and polar curves whose behavior depends on tangent-like ratios (Unit 3.14).

Common question formats: AP® Precalculus problems typically ask you to match a transformed tangent graph to its equation, identify the period and phase shift from an equation, determine where the asymptotes of a transformed tangent function occur, or graph a transformed function given its equation. Some questions provide a graph and ask you to write the equation.

Frequent student mistakes: The most common error is confusing the direction of the phase shift—\(\tan(\theta – c)\) shifts right, not left. Another frequent mistake is computing the new period incorrectly: the period is \(\frac{\pi}{|b|}\), not \(\frac{2\pi}{|b|}\) (which applies to sine and cosine). Students also often forget to move the asymptotes when applying a phase shift, leaving them at the parent function’s locations.

Test-day shortcuts: To find asymptotes quickly for \(y = a\tan(b(\theta + c)) + d\), solve \(b(\theta + c) = \frac{\pi}{2} + n\pi\) for \(\theta\). To find zeros, solve \(b(\theta + c) = n\pi\). The midline is \(y = d\), and you can plot the point \(\left(\text{zero location},\; d\right)\) as a quick anchor. If \(a\) is negative, the graph decreases between asymptotes instead of increasing.

Time management tips: Graphing a transformed tangent function should take 2–3 minutes. Start by computing the period and locating two consecutive asymptotes—this frames the entire graph. Then find the zero (midpoint between asymptotes), plot the midline value there, and sketch the curve. If you are given a graph and must find the equation, identify the asymptotes first (they determine \(b\) and \(c\)), then read the midline (\(d\)) and the steepness (\(a\)).

Highlight & Annotate
📝

Study Annotations

You just made your first highlight! You can highlight text and click images to add study notes as you read.

Your annotations are saved during this session, as long as you keep this browser tab open. When you’re done, use the Print button to save the article with all your notes in the margins.

Click any highlight to view or edit your note.

Click another word to finish highlighting, or press Esc to cancel
0 Notes
Study Mode
Print Preview — Article with Annotations

Ready to practice? Try Albert free.

Build real confidence with thousands of adaptive practice questions across AP®, SAT®, ACT®, and core subjects — aligned to what you’re studying right now.

Practice for AP® Precalculus