PrepGo

The Tangent Function - AP PreCalculus Study Guide

Written by AP Content Team, Verified for 2026 AP Exams, Last updated: May 2026

Learn with study guides reviewed by top AP teachers. This guide takes about 17 minutes to read.

The Core Idea: The Tangent Function

The tangent function provides a way to describe periodic phenomena that feature vertical asymptotes, or points of infinite discontinuity. Unlike the sine and cosine functions which model smooth, continuous waves, the tangent function is defined as the ratio of the sine and cosine functions. This fundamental definition, , is the key to all of its unique properties.

Because the tangent function is a ratio, its behavior is dictated by the values of its numerator () and its denominator (). Where the denominator, , is zero, the function is undefined, resulting in vertical asymptotes. Where the numerator, , is zero, the entire function is zero, resulting in x-intercepts. This interplay creates a periodic function with a repeating pattern of curves separated by asymptotes, making it suitable for modeling phenomena with cyclical, abrupt changes. The study of the tangent function involves understanding how its graphical and analytical properties—such as its domain, range, period, and asymptotes—are all direct consequences of its definition as a ratio.

Key Formulas & Definitions

The analytical properties of the tangent function are derived from its definition and the parameters of its general form, .

Foundational Definition

The tangent function is defined as the ratio of the sine function to the cosine function.

Period

The period is the length of the smallest horizontal interval over which the function's values repeat.

  • Parent Function: The period of is .

  • Transformed Function: The period of is calculated using the parameter .

Vertical Asymptotes

Vertical asymptotes are vertical lines that the graph of the function approaches but never touches. They occur where the function is undefined.

  • Condition: Vertical asymptotes exist where the denominator of the tangent function, , is equal to zero.

  • Parent Function: For , vertical asymptotes occur at:

  • Transformed Function: For , find the asymptotes by setting the argument of the function equal to the locations of the parent function's asymptotes:

X-Intercepts

X-intercepts are the points where the graph of the function crosses the x-axis.

  • Condition: X-intercepts exist where the numerator of the tangent function, , is equal to zero (and the denominator is not).

  • Parent Function: For , x-intercepts occur where .

Understanding the Ratio-Based Properties

The most critical nuance of the tangent function is that all of its primary characteristics—domain, range, asymptotes, and intercepts—are direct consequences of its definition as .

  • Domain and Asymptotes: A rational expression is undefined when its denominator is zero. For the tangent function, this means the function is undefined whenever . The values of for which are , which can be generalized as for any integer . These are the exact locations of the vertical asymptotes. Therefore, the domain of the tangent function is the set of all real numbers except for these values.

  • X-Intercepts: A fraction is equal to zero only when its numerator is zero and its denominator is non-zero. For the tangent function, this means whenever . The values of for which are , which can be generalized as for any integer . These are the locations of the x-intercepts.

  • Range: As approaches a value where is zero (an asymptote), the value of becomes an infinitesimally small number. Dividing (which is close to 1 or -1 near these points) by a very small number results in a very large number. This causes the function's output to approach positive or negative infinity. Consequently, the tangent function can take on any real number value, and its range is .

Core Concepts & Rules

  • Fundamental Identity: The tangent function is defined by the identity .

  • Periodicity: The tangent function is periodic with a fundamental period of .

  • Domain: The domain of is the set of all real numbers such that for any integer .

  • Range: The range of is the set of all real numbers, .

  • Vertical Asymptotes: The graph of has vertical asymptotes at the values excluded from its domain, .

  • X-Intercepts: The graph of has x-intercepts where .

  • Transformations: The function represents a transformation of the parent tangent function.

    • : A vertical stretch or compression by a factor of . If , the function is reflected across the horizontal midline.

    • : A horizontal stretch or compression. The new period is .

    • : A horizontal translation (phase shift) of units.

    • : A vertical translation of units. The line becomes the new midline of the function.

Step-by-Step Example 1: Analyzing the Parent Function

Problem: Analyze the function . Determine its period, domain, range, the locations of its vertical asymptotes, and its x-intercepts.

Step 1: Start with the Fundamental Definition

The function is , which is defined as .

Step 2: Determine the Period

Based on the essential knowledge for the tangent function, the fundamental period is . This means the function's pattern repeats every units.

Step 3: Find the Vertical Asymptotes and Domain

Vertical asymptotes occur where the denominator, , is zero.

  • Set the denominator to zero: .

  • Recall from the unit circle that at , , and so on.

  • Generalize this pattern: The asymptotes are located at for any integer .

  • The domain is all real numbers except for the values where the asymptotes occur.

  • Domain:.

Step 4: Find the X-Intercepts

X-intercepts occur where the numerator, , is zero.

  • Set the numerator to zero: .

  • Recall from the unit circle that at , , , and so on.

  • Generalize this pattern: The x-intercepts are located at for any integer .

Step 5: Determine the Range

The tangent function is unbounded as it approaches its vertical asymptotes.

  • Range:.

Summary of Properties for :

  • Period:

  • Domain: All real numbers except

  • Range: All real numbers

  • Vertical Asymptotes:

  • X-Intercepts:

Step-by-Step Example 2: Analyzing a Transformed Tangent Function

Problem: Consider the function . Identify the transformations applied to to create . Then, determine the period and the equations of two consecutive vertical asymptotes of .

Step 1: Identify the Transformation Parameters

Compare to the general form .

  • (since the form is , means is negative)

Step 2: Describe the Transformations

  • : A vertical stretch by a factor of 4 and a reflection across the x-axis.

  • : A horizontal stretch by a factor of .

  • : A horizontal translation (phase shift) of units to the left.

  • : No vertical translation.

Step 3: Calculate the Period

Use the formula .

  • .

  • The period of is .

Step 4: Find the Equations of Consecutive Vertical Asymptotes

The asymptotes of the parent function occur when . For our function , the argument is .

  • Set the argument equal to the locations of two consecutive parent asymptotes, for example, at and .

    • Asymptote 1 (for ):

    • Asymptote 2 (for ):

  • Solve for for the first asymptote:

  • Solve for for the second asymptote:

  • Two consecutive asymptotes are at and .

  • Verification: The distance between these asymptotes is , which matches the period calculated in Step 3.

Using Your Calculator

A graphing calculator is an excellent tool for visualizing the tangent function and verifying its analytical properties.

Task: Graph the function from Example 2 to verify its period and asymptotes.

Step 1: Set Mode

  • Press the [MODE] button.

  • Ensure that RADIAN is selected, not `DEGREE$. The properties of are defined in terms of radians.

Step 2: Enter the Function

  • Press the [Y=]` button. - In `Y1`, type the function. Be careful with parentheses: `Y1 = -4 * tan( (1/2) * (X + π/3) )`. **Step 3: Set the Viewing Window** - Press the `[WINDOW]` button. This is the most critical step for tangent. - We calculated the period to be $2\pi. To see at least one full cycle clearly, set the x-axis limits around the calculated asymptotes.

  • Our asymptotes were at and .

  • Set .

  • Set (which is approximately 9.4, showing just past the second asymptote).

  • Set to have tick marks at helpful intervals.

  • The range of tangent is all real numbers, so and can be set to capture the shape near the midline. and is a good starting point.

Step 4: Graph and Analyze

  • Press the [GRAPH] button.

  • You should see the characteristic shape of the tangent curve. Because is negative, the curve should decrease from left to right between the asymptotes.

  • The calculator may attempt to draw a near-vertical line at the asymptotes. This is a graphing artifact; it is not part of the function. You can visually confirm that the graph "blows up" near and .

  • You can also see that the graph completes one full cycle between these two asymptotes, visually confirming the period is .

AP Exam Quick Hit

Common Question Types

  • Identifying Properties from an Equation: Given a function like , you may be asked to state its period.

    • Example: What is the period of ? (Answer: ).
  • Finding Asymptotes from an Equation: You will be asked to find the equation of one or all vertical asymptotes for a given tangent function.

    • Example: Find the equation for one vertical asymptote of . (Answer: Set , so ).
  • Determining an Equation from a Graph: A graph of a transformed tangent function is provided, and you must determine the values of the parameters , , , or .

    • Example: The graph shown has consecutive asymptotes at and . What is the value of in its equation ? (Answer: The period is `2-0=2$. So , which means ).

Common Mistakes

  • Incorrect Period Formula: Using the period formula for sine/cosine () instead of the correct formula for tangent (). The period of the parent tangent function is , not .

  • Asymptote Calculation Errors: When finding asymptotes for , students often just shift the parent asymptote by instead of solving the full equation . The horizontal dilation () must be accounted for first.

  • Confusing Intercepts and Asymptotes: Mixing up the conditions for intercepts and asymptotes. Remember: Asymptotes come from the denominator (), and x-intercepts come from the numerator ().

  • Domain and Range Errors: Incorrectly stating that the domain is all real numbers or that the range is restricted like sine or cosine. The tangent function's domain has infinite exclusions, and its range is all real numbers.