The Tangent Function
Why this matters
Imagine you're operating a lighthouse on the coast of Maine on a foggy night. Your light rotates, casting a powerful beam. Let's say the coastline is a perfectly straight north-south line. As your beam sweeps from pointing east out to sea, toward the north, it hits the coastline farther and farther away.
When the beam is just slightly angled north, it hits the coast nearby. As you turn it more, it hits the coast miles away. And what happens when your beam points exactly parallel to the coast? It never hits it at all—the light travels on forever into the fog.
That relationship between the angle of your light and the position where it hits the coast is exactly what the tangent function describes. We're going to explore how this idea of slope and angles creates a totally different kind of trigonometric graph, one with dramatic breaks and an infinite reach.
Concept overview
flowchart TD
A[Start with Parent Function y = tan(θ)] --> B{Identify a, b, c, d in<br>y = a tan(b(θ - c)) + d};
B --> C[Calculate New Period<br>P = π / |b|];
B --> D[Find Phase Shift<br>Shift right by c];
B --> E[Find Vertical Stretch<br>Multiply y-values by a];
B --> F[Find Vertical Shift<br>Shift up by d];
C --> G[Determine New Asymptotes<br>Apply shift 'c' to<br>compressed asymptotes];
D --> G;
E --> H[Plot Key Points];
F --> H;
G --> I[Sketch one cycle of the<br>transformed curve];
H --> I;
I --> J[Repeat the pattern<br>every P units];
Core explanation
Hello! I’m Saavi, and I’m so glad you’re here. Today we’re tackling the tangent function. It might seem a little strange compared to its cousins, sine and cosine, but once you understand its origin story, it all clicks into place.
From Unit Circle to Slope
Remember how for any angle θ on the unit circle, the point (x, y) on the circle gives us cos(θ) = x and sin(θ) = y? The tangent function asks a different question: what is the slope of the terminal ray for that angle θ?
Slope is "rise over run," which in this case is y / x. Since y = sin(θ) and x = cos(θ), we get the most important identity for tangent:
tan(θ) = sin(θ) / cos(θ)
This simple ratio explains everything about the tangent graph.
Think about it:
- At
θ = 0, the point is(1, 0). The slopey/xis0/1 = 0. So,tan(0) = 0. - At
θ = π/4(or 45°), the point is(√2/2, √2/2). The slopey/xis(√2/2) / (√2/2) = 1. So,tan(π/4) = 1. - At
θ = π/2(or 90°), the point is(0, 1). The slopey/xis1/0. We can't divide by zero! The slope is undefined.
This "undefined" result is the key. It’s not an error; it’s a feature. It tells us that at θ = π/2, the graph of the tangent function has a vertical asymptote. This is a vertical line that the graph approaches but never, ever touches.
Key Features of the Parent Graph: y = tan(θ)
Let's sketch out the parent function based on what we know.
- 1PeriodHow often does the pattern repeat? For sine and cosine, it's
2π. But for tangent, it's just π. Why? The slope of the ray at angleθis the exact same as the slope of the ray atθ + π(180° later), because they form a single straight line. The pattern of slopes repeats every half-circle, not every full circle. - 2AsymptotesWe saw an asymptote at
θ = π/2becausecos(π/2) = 0. Where else will this happen? Anywhere cosine is zero. This occurs atπ/2,3π/2,5π/2, and also in the negative direction at-π/2,-3π/2, etc. We can generalize this: asymptotes occur atθ = π/2 + kπ, wherekis any integer. - 3Shape and ConcavityBetween any two consecutive asymptotes, the tangent function is always increasing. It starts from negative infinity, crosses the x-axis at the midpoint, and heads up toward positive infinity.
- The graph is concave down on the left half of the interval (e.g., from
-π/2to0). - It passes through a point of inflection at the midpoint (e.g., at
(0,0)). - It becomes concave up on the right half (e.g., from
0toπ/2).
- The graph is concave down on the left half of the interval (e.g., from
This gives us that classic repeating "S" curve, separated by asymptotes.
Transforming the Tangent Function
Just like with other functions, we can transform the parent graph y = tan(θ) using the general form:
y = a · tan(b(θ - c)) + d
(Note: Your book might use θ + c, which means the shift is -c. The logic is the same, just watch the signs! We'll stick with the θ - c form here, where c is the direct shift value.)
Let's break down what each parameter does:
-
d: Vertical Shift This is the most straightforward. Thedvalue slides the entire graph up (ifd > 0) or down (ifd < 0). The points of inflection, which used to be on the x-axis, are now on the liney = d. -
a: Vertical Stretch & Reflection Theavalue stretches or compresses the graph vertically. If|a| > 1, the graph gets steeper, faster. If0 < |a| < 1, it gets flatter. For example, the point that used to be at(π/4, 1)is now at(π/4, a). Ifais negative, the graph is reflected across the x-axis; instead of increasing, it will decrease between its asymptotes. -
c: Phase Shift (Horizontal Shift) Thecvalue slides the graph left or right. In the formtan(θ - c), the graph shifts right byc. In the formtan(θ + c), it shifts left byc. This is where most students slip up. The shift is opposite the sign you see. This shift moves everything—the points of inflection and the asymptotes. -
b: Horizontal Stretch & Period Change This is the other big point of confusion. Thebvalue affects the period. It compresses or stretches the graph horizontally. The new period is calculated as: New Period = π / |b|This is critical: The original period is π, not
2π. Using2πis a very common mistake carried over from sine and cosine. If|b| > 1, the period gets shorter (the graph is compressed). If0 < |b| < 1, the period gets longer (the graph is stretched).
By identifying a, b, c, and d, you can take the simple parent function and systematically apply these changes to find the new graph.
Worked examples
Let's walk through a couple of examples together. The key is to be methodical and identify each transformation one by one.
Vertical Stretch and Shift
Problem: Analyze and graph the function g(θ) = 2 tan(θ) - 1.
Step 1: Identify the parameters.
Comparing g(θ) = 2 tan(θ) - 1 to the general form y = a tan(b(θ - c)) + d, we can see:
a = 2(Vertical stretch by a factor of 2)b = 1(No change in period, since Period = π/|1| = π)c = 0(No phase shift)d = -1(Vertical shift down by 1)
Step 2: Analyze the effect on key features.
- Center LineThe vertical shift
d = -1moves the points of inflection fromy = 0down toy = -1. So, the point that was at(0, 0)is now at(0, -1). - AsymptotesSince
b = 1andc = 0, the asymptotes don't move. They remain atθ = π/2 + kπ. - Stretched PointsThe vertical stretch
a = 2affects the "quarter-way" points. The parent function has points at(π/4, 1)and(-π/4, -1).- The stretch changes
(π/4, 1)to(π/4, 2). - The vertical shift then moves this point down 1, to
(π/4, 1). - Let's do the other one: Stretch changes
(-π/4, -1)to(-π/4, -2). The shift moves it to(-π/4, -3).
- The stretch changes
Step 3: Sketch the graph.
- Draw your vertical asymptotes at
...-π/2, π/2, 3π/2.... - Plot the new center point at
(0, -1). - Plot the stretched and shifted points at
(π/4, 1)and(-π/4, -3). - Draw a smooth, increasing curve through these points that approaches the asymptotes. Repeat the pattern for other periods.
Period Change and Phase Shift
Problem: Find the period, phase shift, and asymptotes for f(θ) = tan(2(θ - π/4)).
Step 1: Identify the parameters.
a = 1(No vertical stretch)b = 2(This will change the period)c = π/4(This is a phase shift to the right)d = 0(No vertical shift)
Step 2: Calculate the new period.
The formula is Period = π / |b|.
Here, b = 2, so the new period is π / 2. The function will complete a full cycle in half the horizontal space as the parent function.
Step 3: Determine the phase shift.
The c value is π/4. Since the form is (θ - c), this is a shift of π/4 to the right.
This means the center of a cycle, which used to be at θ = 0, is now at θ = π/4.
Step 4: Find the new asymptotes.
This is where students often get tripped up. You have to apply the transformations to the parent asymptotes.
The parent asymptotes are at θ = -π/2 and θ = π/2 (for one cycle).
- 1Horizontal CompressionThe
b=2value compresses everything by a factor of 1/2. So, the asymptotes would move toθ = (-π/2) * (1/2) = -π/4andθ = (π/2) * (1/2) = π/4. - 2Phase ShiftNow, apply the shift of
π/4to the right.- New left asymptote:
-π/4 + π/4 = 0. - New right asymptote:
π/4 + π/4 = π/2.
- New left asymptote:
So, one full cycle of this new graph is squeezed between θ = 0 and θ = π/2. The center of this cycle is at θ = π/4, which matches our phase shift. The general formula for the asymptotes is θ = 0 + k(π/2) and θ = π/2 + k(π/2), or more simply, θ = kπ/2 for any integer k.
Try it yourself
Ready to try one on your own? Take your time and work through the steps we just practiced.
Problem 1:
Consider the function f(θ) = -tan(θ + π/2) + 1.
- What is the period?
- Describe the horizontal and vertical shifts.
- Is the function increasing or decreasing between its asymptotes? Why?
- Where is the new center point of the cycle that is usually centered at
(0,0)?
Problem 2:
A transformed tangent function has a period of 4π, a vertical asymptote at θ = 2π, and passes through the point (0, 3). What could be an equation for this function?
Practice — 8 questions
In simple terms, the tangent function describes the slope of a line at any angle on a circle, creating a unique repeating graph with vertical breaks called asymptotes.
- 3.8.A: Construct representations of the tangent function using the unit circle.
- 3.8.B: Describe key characteristics of the tangent function.
- 3.8.C: Describe additive and multiplicative transformations involving the tangent function.
- 3.8.A.1
- Given an angle of measure θ in standard position and a unit circle centered at the origin, there is a point, P, where the terminal ray intersects the circle. The tangent function, f(θ) = tan θ, gives the slope of the terminal ray.
- 3.8.A.2
- Because the slope of the terminal ray is the ratio of the change in the y-values to the change in the x-values between any two points on the ray, the tangent function is also the ratio of the sine function to the cosine function. Therefore, tan θ = (sin θ)/(cos θ), where cos θ ≠ 0.
- 3.8.B.1
- Because the slope values of the terminal ray repeat every one-half revolution of the circle, the tangent function has a period of π.
- 3.8.B.2
- The tangent function demonstrates periodic asymptotic behavior at input values θ = π/2 + kπ, for integer values of k, because cos θ = 0 at those values.
- 3.8.B.3
- The tangent function increases and its graph changes from concave down to concave up between consecutive asymptotes.
- 3.8.C.1
- The graph of the additive transformation g(θ) = tan θ + d of the tangent function f(θ) = tan θ is a vertical translation of the graph of f and the line containing its points of inflection by d units.
- 3.8.C.2
- The graph of the additive transformation g(θ) = tan(θ + c) of the tangent function f(θ) = tan θ is a horizontal translation, or phase shift, of the graph of f by –c units.
- 3.8.C.3
- The graph of the multiplicative transformation g(θ) = a tan θ of the tangent function f(θ) = tan θ is a vertical dilation of the graph of f by a factor of |a|. If a < 0, the transformation involves a reflection over the x-axis.
- 3.8.C.4
- The graph of the multiplicative transformation g(θ) = tan(bθ) of the tangent function f(θ) = tan θ is a horizontal dilation of the graph of f and differs in period by a factor of 1/|b|. If b < 0, the transformation involves a reflection over the y-axis.
- 3.8.C.5
- The graph of y = f(θ) = a tan(b(θ + c)) + d is a vertical dilation of the graph of y = tan θ by a factor of |a|, has a period of π/|b| units, is a vertical shift of the line containing the points of inflection of the graph of y = tan θ by d units, and is a phase shift of –c units.
flowchart TD
A[Start with Parent Function y = tan(θ)] --> B{Identify a, b, c, d in<br>y = a tan(b(θ - c)) + d};
B --> C[Calculate New Period<br>P = π / |b|];
B --> D[Find Phase Shift<br>Shift right by c];
B --> E[Find Vertical Stretch<br>Multiply y-values by a];
B --> F[Find Vertical Shift<br>Shift up by d];
C --> G[Determine New Asymptotes<br>Apply shift 'c' to<br>compressed asymptotes];
D --> G;
E --> H[Plot Key Points];
F --> H;
G --> I[Sketch one cycle of the<br>transformed curve];
H --> I;
I --> J[Repeat the pattern<br>every P units];
Read what Saavi narrates
Hello! I’m Saavi. I’m so glad you’re here.
Imagine you're operating a lighthouse on the coast of Maine on a foggy night. Your light rotates, casting a powerful beam. Let's say the coastline is a perfectly straight line. As your beam sweeps from pointing east out to sea, toward the north, it hits the coastline farther and farther away. And what happens when your beam points exactly parallel to the coast? It never hits it at all.
That relationship between the angle of your light and the position where it hits the coast is exactly what the tangent function describes. It connects the angle of a ray on the unit circle to its slope. Because slope can be anything from zero to undefined, the tangent graph isn't a smooth wave like sine or cosine. Instead, it's a series of repeating curves separated by vertical lines where the function is undefined.
Let's walk through an example. Imagine we need to graph the function f of theta equals tangent of two times the quantity theta minus pi over four.
First, I'll identify my parameters. The 'b' value, the number multiplying the angle part, is two. The 'c' value, the horizontal shift, is pi over four to the right.
Next, I'll calculate the new period. The formula for tangent is pi divided by b. So, the period is pi divided by two. This means the graph is horizontally compressed; it repeats twice as fast as the parent function.
Now for the tricky part, the asymptotes. The parent asymptotes are at negative pi over two and positive pi over two. First, I apply the compression. I multiply them by one-half. That gives me negative pi over four and positive pi over four. Then, I apply the phase shift, moving them pi over four to the right. Negative pi over four plus pi over four is zero. And positive pi over four plus pi over four is pi over two. So, one full cycle of our new graph is squeezed between theta equals zero and theta equals pi over two.
One of the most common mistakes I see every year is using the wrong formula for the period. Students get so used to sine and cosine that they calculate the period as two pi over b. But for tangent, the period is just pi. The pattern of slopes on the unit circle repeats every 180 degrees, not 360. So always, always remember: for tangent, the period is pi over b.
The tangent function tells a really cool story about angles and slopes. Keep practicing with the transformations, and you'll see how they all fit together. You've got this.
The period of the parent tangent function is **π**, not `2π` like sine and cosine. The pattern of slopes repeats every 180 degrees.
Always use the formula **`Period = π/|b|`** for the tangent function.
A positive sign inside the function corresponds to a negative (leftward) shift. Think of it as finding the `θ` value that makes the argument zero: `θ + π/2 = 0` means `θ = -π/2`.
Remember `(θ + c)` shifts **left** by `c`, and `(θ - c)` shifts **right** by `c`.
The phase shift moves the *entire* graph horizontally, including the vertical asymptotes that define the boundaries of each cycle.
Find the parent asymptotes (e.g., `-π/2` and `π/2`). Apply the horizontal compression/stretch first (`multiply by 1/b`), and *then* apply the phase shift (`add or subtract c`).
The tangent graph is a curve; its slope is constantly changing. The parameter `a` is a vertical stretch factor. It tells you how "steep" the curve gets, but it is not a constant slope like in a linear equation `y = mx + b`.
Think of `a` as a multiplier for the y-values. The point `(π/4, 1)` on the parent graph becomes `(π/4, a)` on the transformed graph.
Tangent is `sin(θ)/cos(θ)`. When the ray is vertical (at `π/2`), `cos(θ) = 0`. Division by zero is undefined, which creates a vertical asymptote on the graph.
Always connect `tan(θ)` back to `sin(θ)/cos(θ)`. The zeros of `cos(θ)` are the asymptotes of `tan(θ)`. The zeros of `sin(θ)` are the zeros of `tan(θ)`.