| Study Guides
AP · Tangent function · 14 min read · Updated 2026-05-10

Tangent function — AP Precalculus Study Guide

For: AP Precalculus candidates sitting AP Precalculus.

Covers: Definition of the tangent function in terms of sine and cosine, domain/range, period, vertical asymptotes, graph transformations, inverse tangent, and solving tangent equations, aligned to AP Precalculus CED Unit 3.

You should already know: Unit circle trigonometry for sine and cosine. Graph transformation rules for periodic functions. Limit behavior near vertical asymptotes.

A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Precalculus style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.


1. What Is 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. It is commonly denoted , where is the input angle (in radians, per AP Precalculus convention) measured around the unit circle. Unlike sine and cosine, tangent is not defined for all real inputs, which gives it a unique structure with repeating vertical asymptotes.

In the AP Precalculus Course and Exam Description (CED), tangent function content accounts for approximately 2-3% of total exam score, and it appears in both multiple-choice (MCQ) and free-response (FRQ) sections. Tangent is closely related to the slope of a terminal ray on the unit circle: for any angle with terminal point on the unit circle, , which matches the slope formula between the origin and . This connection makes tangent useful for modeling angular slope, periodic phenomena with asymptotic behavior, and navigation/engineering problems. On the AP exam, you will be expected to identify key features of tangent graphs, transform tangent functions, evaluate inverse tangent, and solve tangent equations, often in applied context.

2. Key Features: Domain, Range, Period, and Asymptotes

The tangent function’s core features derive directly from its definition . Starting with domain: since division by zero is undefined, is undefined whenever . We know at for all integers , so the domain of the basic tangent function is all real numbers except these points.

At each undefined point, the tangent function has a vertical asymptote: as approaches from the left, , and from the right, . The range of is all real numbers , because as cosine approaches 0, the ratio grows without bound in either direction. A critical difference between tangent and sine/cosine is the period: using angle addition identities, , so the period of the basic tangent function is , not . For a transformed tangent function , the period is .

Worked Example

Identify the domain, period, and vertical asymptotes of the function .

  1. For any tangent function, period is . Here , so the period is .
  2. To find vertical asymptotes, set the argument of tangent equal to the base asymptote positions for all integers : .
  3. Solve for : for all integers .
  4. The domain is all real numbers except these asymptote locations, so domain: .

Exam tip: When calculating period for tangent, never use the formula you use for sine and cosine. Always remember tangent has half the period of sine/cosine for the same .

3. Graph Transformations of Tangent Functions

The standard general form for a transformed tangent function is: Each constant follows transformation rules consistent with other functions, adjusted for tangent's unique structure. controls the vertical steepness of the graph between asymptotes: a larger makes the function increase or decrease more steeply, but it does not change the period, domain, or asymptote locations. The sign of reflects the graph over the x-axis: if , the function decreases from to between consecutive asymptotes, instead of increasing.

controls horizontal stretch/compression and therefore the period, as we saw earlier: . is the horizontal shift, which shifts all asymptotes and the entire graph by units horizontally. is the vertical shift, which moves the midpoint of each branch (which is at for the basic tangent function) up or down by units, but does not change the domain, period, or asymptotes.

Worked Example

Write the equation of a tangent function that has consecutive vertical asymptotes at and , passes through , and is increasing between its asymptotes.

  1. Start with the general form . No vertical shift is mentioned, so . The midpoint between the two consecutive asymptotes is at , so there is no horizontal shift, .
  2. The distance between consecutive asymptotes equals the period, so . Using , we get , so .
  3. The function is increasing, so is positive. Use the point to solve for : \left(\frac{\pi}{4}, 4\right)4 = A\tan\left(\frac{\pi}{4}\right) = A(1) \implies A=4$.
  4. Final equation: , which is increasing, has asymptotes at , and passes through , matching all requirements.

Exam 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.

4. Inverse Tangent Function

Because tangent is periodic and repeats its output every , it is not one-to-one over its entire domain, so we must restrict the domain to define a valid inverse function. The standard restricted domain that makes tangent one-to-one is , which covers exactly one full period and all possible output values of tangent from to .

The inverse tangent function, denoted or , is defined as the inverse of this restricted tangent function. By definition: The domain of is all real numbers (matching the range of the original tangent function), and the range of is (matching the restricted domain of the original tangent). The graph of has horizontal asymptotes at , since as , , and as , . On the AP exam, inverse tangent is used to solve tangent equations and find angles from given slope values.

Worked Example

Evaluate and find the range of .

  1. To evaluate , we need an angle such that .
  2. We know from the unit circle that , and falls in , so .
  3. The range of the basic is still . Multiply by 3 to get , then add to shift vertically: , which is the range of .

Exam 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 ; never give an output outside this interval.

5. Common Pitfalls (and how to avoid them)

  • Wrong move: Stating the period of the basic tangent function is , matching sine and cosine. Why: Students memorize as the default trigonometric period from learning sine and cosine first, and forget tangent repeats twice as fast. Correct move: Always recall tangent's base period is , and calculate transformed period as , not .
  • Wrong move: Finding asymptotes for as . Why: Students shift the base asymptotes by but forget to scale the shift by . Correct move: Always set the entire argument equal to , then solve for step-by-step to get all asymptote locations.
  • Wrong move: Giving as a final answer for inverse tangent evaluation. Why: Students confuse solving a general tangent equation with evaluating the inverse tangent function, which requires an output in the restricted range. Correct move: Always check that any inverse tangent output falls in before submitting your answer.
  • Wrong move: Claiming in changes the period of the function. Why: Students confuse vertical and horizontal transformations, assuming any stretch changes the period. Correct move: Remember only , the coefficient of , changes the period of tangent; only changes vertical steepness, not period or asymptotes.
  • Wrong move: Solving and giving only as the general solution. Why: Students only give the inverse tangent output, forgetting tangent is periodic with period . Correct move: After finding the base solution , always add (not ) to get all general solutions for any integer .
  • Wrong move: Swapping the domain and range of tangent and inverse tangent. Why: Students mix up the input/output relationship for inverse functions when switching between tangent and arctangent. Correct move: Recall tangent has restricted domain and full range; inverse tangent has full domain and restricted range.

6. Practice Questions (AP Precalculus Style)

Question 1 (Multiple Choice)

Which of the following gives the period and the first positive vertical asymptote of ? A) Period , asymptote B) Period , asymptote C) Period , asymptote D) Period , asymptote

Worked Solution: First, calculate the period using the formula . Here , so . This eliminates options B and D, which have incorrect period. Next, find the first positive vertical asymptote by setting the argument equal to the smallest positive base asymptote : . Solve for : ? Wait no, let's correct to match the options: no, adjust problem: , then B=1/2, period 2π, no, let's just adjust: , which is what I had earlier: , asymptote x=2π, that's what the MCQ was, I'll correct:

Which of the following gives the period and the first positive vertical asymptote of ? A) Period , asymptote B) Period , asymptote C) Period , asymptote D) Period , asymptote

Worked Solution: First, calculate the period using the formula . Here , so . This eliminates options B and D, which have period . Next, find the first positive vertical asymptote by setting the argument equal to the smallest positive base asymptote : . Solve for x: , so . This matches option A. Correct answer: A.


Question 2 (Free Response)

Consider the function . (a) Find the period of and the locations of all vertical asymptotes. (b) State the domain and range of . (c) Find all values of in the interval such that .

Worked Solution: (a) For , , so period is . To find asymptotes, set the argument equal to for all integers : . (b) The domain is all real numbers except the asymptote locations above, so . The range of any tangent function is all real numbers, and vertical shifting does not change this, so . (c) Set : . Solutions to are , so . Testing integer values of gives solutions in : , all of which are not asymptotes in the interval.


Question 3 (Application / Real-World Style)

A surveyor needs to find the height of a cell tower. The surveyor measures that the horizontal distance from their position to the base of the tower is 85 meters, and the angle between the ground and the line of sight to the top of the tower has . (a) Find in radians, rounded to 3 decimal places. (b) The surveyor’s clinometer (angle measurement tool) can only measure angles less than 0.4 radians accurately. Is within the accurate measurement range of the tool?

Worked Solution: We know , so to find we use inverse tangent: . Using a calculator in radian mode, radians. Comparing to the maximum accurate angle of 0.4 radians, 0.398 < 0.4, so is just within the accurate measurement range of the tool. In context, this means the surveyor can measure this angle accurately with their current tool without repositioning.

7. Quick Reference Cheatsheet

Category Formula Notes
Basic definition For unit circle terminal point ; undefined when
General transformed tangent Standard form for graph transformations
Period of tangent $P = \frac{\pi}{ B
Vertical asymptotes One asymptote every period
Domain/range of tangent Domain: all reals except asymptotes; Range: Vertical shifting does not change the range
Inverse tangent definition Output is always in the restricted interval
Domain/range of inverse tangent Domain: ; Range: Horizontal asymptotes at
General solution to Add multiples of , not , due to tangent's period

8. What's Next

The tangent function is a core prerequisite for the remaining topics in Unit 3: Trigonometric and Polar Functions. Next, you will apply tangent to solve parametric equations, model polar curves, and compute rates of change of trigonometric functions in AP Precalculus, with direct carryover to AP Calculus. Mastery of tangent's key features, asymptotes, and inverse tangent is required to find slopes of polar curves, convert between polar and rectangular coordinates, and solve trigonometric equations that arise in many applied contexts. Without a solid understanding of tangent's period, asymptotes, and the restricted domain for inverse tangent, you will struggle to correctly find all solutions to trigonometric equations and interpret the slope of polar graphs. This topic also builds on your earlier knowledge of periodic functions and asymptotes from Units 1 and 2, and connects to rational functions via their shared asymptotic behavior.

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →