Back to homeMathematics · AP Precalculus · Change subject
Start for free
Sinusoidal Functions · Periodic and Sinusoidal Functions

The Tangent Function

Practise this section (12)

Malik stands 8 ft from a wall and aims a flashlight at it. He starts pointing straight at the wall and slowly turns the beam upward. At first the spot on the wall creeps up. Then, as the beam gets close to parallel with the wall, the spot suddenly rockets up. Why does the spot move so unevenly? The tangent function explains it. By the end of this page you will be able to predict exactly where the spot lands.

Tangent as a Ratio and as a Slope

You already know that the terminal ray of an angle $\theta$ in standard position meets the unit circle at the point $(\cos\theta, \sin\theta)$. The tangent of $\theta$ is defined from that point:

Why is this useful? Think about the terminal ray as a line through the origin. To get from the origin to the point $(\cos\theta,\sin\theta)$ you go over $\cos\theta$ (the run) and up $\sin\theta$ (the rise). So the slope of the terminal ray is $\dfrac{\sin\theta}{\cos\theta}$, which is exactly $\tan\theta$.

Unit circle with a terminal ray extended to the vertical line x = 1; the height where the ray crosses that line equals tan θ. θ P tan θ 1 x = 1 P = (cos θ, sin θ) slope = rise / run = tan θ / 1 Unit circle with a terminal ray extended to the vertical line x = 1; the height where the ray crosses that line equals tan θ.

Extend the terminal ray until it reaches the vertical line $x=1$. The run from the origin is $1$, so the rise is $\tan\theta$. That is where the name "tangent" comes from: the ray's height on the line that touches the circle at $(1,0)$.

You can also use any point $(x,y)$ on the terminal ray (not just the point on the unit circle):

$$\tan\theta=\frac{y}{x}=\text{slope of the terminal ray}$$

Here are the exact values you should know cold.

$\theta$ $0$ $\dfrac{\pi}{6}$ $\dfrac{\pi}{4}$ $\dfrac{\pi}{3}$ $\dfrac{\pi}{2}$
$\sin\theta$ $0$ $\frac12$ $\frac{\sqrt2}{2}$ $\frac{\sqrt3}{2}$ $1$
$\cos\theta$ $1$ $\frac{\sqrt3}{2}$ $\frac{\sqrt2}{2}$ $\frac12$ $0$
$\tan\theta$ $0$ $\frac{\sqrt3}{3}$ $1$ $\sqrt3$ undefined
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Use $\tan\theta=\dfrac{\sin\theta}{\cos\theta}$ to find the exact value of each expression, or state that it is undefined: $\tan\left(\dfrac{\pi}{4}\right)$,…

Use $\tan\theta=\dfrac{\sin\theta}{\cos\theta}$ to find the exact value of each expression, or state that it is undefined:

$\tan\left(\dfrac{\pi}{4}\right)$, $\tan\left(\dfrac{\pi}{3}\right)$, $\tan(0)$, $\tan(\pi)$, $\tan\left(\dfrac{\pi}{2}\right)$.

Solve
Practice★☆☆Not started
The terminal ray of an angle $\theta$ in standard position passes through the point $(-3,-3)$. (a) Find the slope of the terminal ray, and hence $\tan\theta$. (b) Find…

The terminal ray of an angle $\theta$ in standard position passes through the point $(-3,-3)$.

(a) Find the slope of the terminal ray, and hence $\tan\theta$.

(b) Find $\theta$ in $[0,2\pi)$.

Solve

Period, Zeros, and Vertical Asymptotes

Pick an angle $\theta$ and add $\pi$ (half a turn). The terminal ray flips around to point the opposite way, to the point $(-\cos\theta,-\sin\theta)$. But it is still on the same line through the origin, so the slope has not changed:

$$\tan(\theta+\pi)=\frac{-\sin\theta}{-\cos\theta}=\tan\theta$$

Sine and cosine repeat every $2\pi$, but tangent repeats twice as fast.

Where does tangent hit zero, and where does it blow up? Use the ratio $\dfrac{\sin\theta}{\cos\theta}$:

  • Zeros: $\sin\theta=0$, so $\theta=0,\ \pm\pi,\ \pm2\pi,\dots$ (that is, $\theta=n\pi$ for any integer $n$).

  • Vertical asymptotes: $\cos\theta=0$ (and $\sin\theta\ne0$ there), so $\theta=\pm\dfrac{\pi}{2},\ \pm\dfrac{3\pi}{2},\dots$ (that is, $\theta=\dfrac{\pi}{2}+n\pi$).

Now look at what happens near an asymptote. As $\theta$ approaches $\dfrac{\pi}{2}$ from the left, $\sin\theta$ is close to $1$ and $\cos\theta$ is a tiny positive number, so the quotient is huge and positive. From the right, $\cos\theta$ is a tiny negative number, so the quotient is huge and negative. In limit notation:

$$\lim_{\theta\to\frac{\pi}{2}^-}\tan\theta=\infty \qquad\qquad \lim_{\theta\to\frac{\pi}{2}^+}\tan\theta=-\infty$$

This matches the slope picture: as the ray gets closer to vertical, its slope gets steeper without bound. A vertical line has no slope at all, so $\tan\dfrac{\pi}{2}$ is undefined.

The sign of $\tan\theta$ depends on the quadrant, because it is the sign of $\sin\theta$ divided by the sign of $\cos\theta$:

Quadrant I II III IV
$\sin\theta$ $+$ $+$ $-$ $-$
$\cos\theta$ $+$ $-$ $-$ $+$
$\tan\theta$ $+$ $-$ $+$ $-$
Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
For the function $f(\theta)=\tan\theta$: (a) What is the period of $f$? (b) Give the equations of all vertical asymptotes of $f$ on the interval $[0,2\pi]$. (c) Give all…

For the function $f(\theta)=\tan\theta$:

(a) What is the period of $f$?

(b) Give the equations of all vertical asymptotes of $f$ on the interval $[0,2\pi]$.

(c) Give all zeros of $f$ on $[0,2\pi]$.

Solve
Practice★★☆Not started
Values of $\tan\theta$ for $\theta$ close to $\dfrac{\pi}{2}\approx1.5708$, from the left: | $\theta$ | 1.4 | 1.5 | 1.55 | 1.57 | |---|---|---|---|---| | $\tan\theta$ |…

Values of $\tan\theta$ for $\theta$ close to $\dfrac{\pi}{2}\approx1.5708$, from the left:

$\theta$ 1.4 1.5 1.55 1.57
$\tan\theta$ 5.80 14.10 48.08 1255.77

(a) Describe what happens to $\tan\theta$ as $\theta\to\dfrac{\pi}{2}$ from the left, and interpret it as the slope of the terminal ray.

(b) What do you expect for values of $\theta$ slightly greater than $\dfrac{\pi}{2}$? Explain, using the sign of $\sin\theta$ and $\cos\theta$.

Solve
Practice★★☆Not started
An angle $\theta$ has its terminal ray in Quadrant II, and $\sin\theta=\dfrac35$. (a) Find $\cos\theta$ and $\tan\theta$. (b) Give the slope of the terminal ray of…

An angle $\theta$ has its terminal ray in Quadrant II, and $\sin\theta=\dfrac35$.

(a) Find $\cos\theta$ and $\tan\theta$.

(b) Give the slope of the terminal ray of $\theta$.

(c) Find $\tan(\theta+\pi)$ and explain, in terms of the terminal ray, why it equals $\tan\theta$.

Solve

The Graph of Tangent

Put the pieces together: zeros at multiples of $\pi$, asymptotes halfway between them, period $\pi$, and negative values in Quadrants II and IV.

Graph of y = tan θ: each branch increases from −∞ to +∞ between two consecutive vertical asymptotes (−π/2, π/2, and 3π/2), with zeros at 0 and π, at the center of each branch. The period is π. −π/2 0 π/2 π 3π/2 1 −1 y = tan θ Graph of y = tan θ: each branch increases from −∞ to +∞ between two consecutive vertical asymptotes (−π/2, π/2, and 3π/2), with zeros at 0 and π, at the center of each branch. The period is π.

Key features of $y=\tan\theta$:

  • Domain: all real numbers except $\theta=\dfrac{\pi}{2}+n\pi$.

  • Range: all real numbers. Every slope is possible.

  • Period: $\pi$. The graph is made of identical branches, one between each pair of consecutive asymptotes.

  • Zeros: $\theta=n\pi$, the middle of each branch.

  • Odd function: $\tan(-\theta)=-\tan\theta$, so the graph is symmetric about the origin.

  • Increasing on each branch, for example on $\left(-\dfrac{\pi}{2},\dfrac{\pi}{2}\right)$ and on $\left(\dfrac{\pi}{2},\dfrac{3\pi}{2}\right)$. Because the ray's slope grows as it rotates counterclockwise, tangent never turns around inside a branch.

  • Concavity: concave up on $\left(0,\dfrac{\pi}{2}\right)$ and concave down on $\left(-\dfrac{\pi}{2},0\right)$, and this pattern repeats every $\pi$.

How do we know about concavity from numbers? Look at average rates of change. If the average rate of change gets larger on successive intervals of equal length (or as you move right), the graph is bending upward.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★★Not started
A student claims: "The tangent function is increasing on its entire domain." (a) Evaluate $\tan\left(\dfrac{\pi}{4}\right)$ and $\tan\left(\dfrac{3\pi}{4}\right)$ and…

A student claims: "The tangent function is increasing on its entire domain."

(a) Evaluate $\tan\left(\dfrac{\pi}{4}\right)$ and $\tan\left(\dfrac{3\pi}{4}\right)$ and use them to show that the claim is false as stated.

(b) On which intervals is the claim correct? Name the interval containing $0$ and the pattern for the others.

(c) Compute the average rate of change of $\tan\theta$ on $\left[0,\dfrac{\pi}{4}\right]$ and on $\left[\dfrac{\pi}{4},\dfrac{\pi}{3}\right]$. What does the comparison suggest about the concavity of $\tan\theta$ on $\left(0,\dfrac{\pi}{2}\right)$?

Solve

Transformations of Tangent

Tangent transforms like any other function. The general form is

$$f(\theta)=a\tan\big(b(\theta+c)\big)+d$$

Why do these work? The ordinary tangent has its center at $\theta=0$, asymptotes at $\pm\dfrac{\pi}{2}$ (half a period each side), and $\tan\left(\pm\dfrac{\pi}{4}\right)=\pm1$ (a quarter of a period each side). The factor $b$ squeezes everything horizontally by $\dfrac{1}{|b|}$, $c$ slides it, $a$ stretches it vertically, and $d$ lifts it.

Try it: make $b$ larger and watch the asymptotes move closer together. Make $a$ negative and watch each branch flip to decrease.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★☆☆Not started
Let $g(\theta)=\tan(2\theta)$. (a) State the period of $g$. (b) Find the first positive vertical asymptote of $g$. (c) Evaluate $g\left(\dfrac{\pi}{8}\right)$.

Let $g(\theta)=\tan(2\theta)$.

(a) State the period of $g$.

(b) Find the first positive vertical asymptote of $g$.

(c) Evaluate $g\left(\dfrac{\pi}{8}\right)$.

Solve
Practice★★☆Not started
Let $f(\theta)=\tan\left(\theta-\dfrac{\pi}{4}\right)+2$. (a) State the period of $f$ and the equations of two consecutive vertical asymptotes. (b) Find…

Let $f(\theta)=\tan\left(\theta-\dfrac{\pi}{4}\right)+2$.

(a) State the period of $f$ and the equations of two consecutive vertical asymptotes.

(b) Find $f\left(\dfrac{\pi}{4}\right)$ and $f\left(\dfrac{\pi}{2}\right)$.

(c) Describe the behavior of $f(\theta)$ as $\theta$ approaches $\dfrac{3\pi}{4}$ from the left and from the right.

Solve
Practice★★★Not started
Let $f(\theta)=-2\tan\left(\dfrac12\theta-\dfrac{\pi}{4}\right)$. (a) Rewrite $f$ in the form $a\tan(b(\theta+c))$ and state the period. (b) Find the equations of the…

Let $f(\theta)=-2\tan\left(\dfrac12\theta-\dfrac{\pi}{4}\right)$.

(a) Rewrite $f$ in the form $a\tan(b(\theta+c))$ and state the period.

(b) Find the equations of the vertical asymptotes that bound the branch of the graph containing $\theta=\dfrac{\pi}{2}$, and the zero of $f$ in this branch.

(c) Evaluate $f(0)$ and $f(\pi)$.

(d) Is $f$ increasing or decreasing on this branch? Explain how the sign of $a$ determines this.

Solve

Writing a Formula from a Graph

Often you are given features of a graph and must find $a$ and $b$. The strategy is to work backward through the rules above.

  1. Period = distance between consecutive asymptotes. Then $b=\dfrac{\pi}{\text{period}}$.

  2. Center = midpoint of the two asymptotes. If it is at the origin, there is no shift.

  3. Use one other point to find $a$ (a point a quarter period from the center is easiest, because $\tan\left(\pm\dfrac{\pi}{4}\right)=\pm1$).

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★★Not started
A function has the form $h(\theta)=a\tan(b\theta)$ with $a>0$ and $b>0$. Two consecutive vertical asymptotes of its graph are $\theta=-\dfrac{\pi}{6}$ and…

A function has the form $h(\theta)=a\tan(b\theta)$ with $a>0$ and $b>0$. Two consecutive vertical asymptotes of its graph are $\theta=-\dfrac{\pi}{6}$ and $\theta=\dfrac{\pi}{6}$, and $h\left(\dfrac{\pi}{12}\right)=3$.

(a) Find the period of $h$ and the value of $b$.

(b) Find $a$ and write a formula for $h$.

(c) Find $h\left(-\dfrac{\pi}{12}\right)$, and solve $h(\theta)=3\sqrt3$ on the interval $\left(-\dfrac{\pi}{6},\dfrac{\pi}{6}\right)$.

Solve

Solving Tangent Equations

To solve $\tan\theta=k$:

  1. Find the reference angle whose tangent is $|k|$.

  2. Use the sign of $k$ to choose the quadrants: tangent is positive in Quadrants I and III, negative in II and IV.

  3. Because the period is $\pi$, all solutions are one solution plus any multiple of $\pi$. Two solutions $\pi$ apart cover the whole interval $[0,2\pi)$.

When the argument is $b\theta$, first solve for the argument, then divide.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★☆Not started
Solve each equation without a calculator: (a) $\tan\theta=-\sqrt3$ for $0\le\theta<2\pi$. (b) $\tan(2\theta)=1$ for $0\le\theta<\pi$. Explain how the period of the…

Solve each equation without a calculator:

(a) $\tan\theta=-\sqrt3$ for $0\le\theta<2\pi$.

(b) $\tan(2\theta)=1$ for $0\le\theta<\pi$.

Explain how the period of the tangent function helps you find all solutions.

Solve

Modeling with Tangent

Back to Malik's flashlight. The wall is $8$ ft away and the flashlight is at floor level. The beam, the floor, and the wall form a right triangle. The angle $\theta$ is measured from the line perpendicular to the wall, so the spot's height is the side opposite $\theta$, and the distance to the wall is the adjacent side:

$$\tan\theta=\frac{\text{height}}{8}\quad\Longrightarrow\quad \text{height}=8\tan\theta$$
$\theta$ $30^\circ$ $45^\circ$ $60^\circ$ $80^\circ$ $89^\circ$
Height (ft) $\approx 4.6$ $8$ $\approx 13.9$ $\approx 45.4$ $\approx 458$

The first $15^\circ$ of turning moves the spot only about $2.1$ ft. The last $1^\circ$, from $88^\circ$ to $89^\circ$, moves it about $229$ ft. This is the vertical asymptote at $\theta=\dfrac{\pi}{2}$ in action: as the beam approaches parallel to the wall, it never hits the wall at all. The height model is only valid for $0\le\theta<\dfrac{\pi}{2}$.

Unsure about the theory?Ask about anything you don't understand in this section and the AI will explain it using these notes.
Practice★★★Not started
Sofia shines a flashlight at a flat wall 10 ft away. The beam makes an angle $\theta$ with the line perpendicular to the wall, and the flashlight is held at the same…

Sofia shines a flashlight at a flat wall 10 ft away. The beam makes an angle $\theta$ with the line perpendicular to the wall, and the flashlight is held at the same level as the base of the wall. The height of the spot on the wall is $g(\theta)=10\tan\theta$ feet, for $0\le\theta<\dfrac{\pi}{2}$.

(a) Find the height of the spot when $\theta=\dfrac{\pi}{6}$, $\dfrac{\pi}{4}$, and $\dfrac{\pi}{3}$.

(b) What happens to the spot as $\theta$ approaches $\dfrac{\pi}{2}$? Connect this to a feature of the graph.

(c) If Sofia holds the flashlight 5 ft above the base of the wall, the height becomes $h(\theta)=10\tan\theta+5$. How does the graph of $h$ compare with that of $g$? Do the asymptotes change?

Solve

Summary

  • $\tan\theta=\dfrac{\sin\theta}{\cos\theta}=\dfrac{y}{x}$ is the slope of the terminal ray. It is zero where $\sin\theta=0$ ($\theta=n\pi$) and undefined where $\cos\theta=0$ ($\theta=\dfrac{\pi}{2}+n\pi$).

  • The period is $\pi$ and $\tan(-\theta)=-\tan\theta$. Tangent is positive in Quadrants I and III, negative in II and IV.

  • Near an asymptote: $\lim_{\theta\to\frac{\pi}{2}^-}\tan\theta=\infty$ and $\lim_{\theta\to\frac{\pi}{2}^+}\tan\theta=-\infty$. Domain: all reals except the asymptotes. Range: all reals.

  • Tangent is increasing on each branch (not on its entire domain), concave up on $\left(0,\dfrac{\pi}{2}\right)$ and concave down on $\left(-\dfrac{\pi}{2},0\right)$.

  • For $f(\theta)=a\tan\big(b(\theta+c)\big)+d$: period $\dfrac{\pi}{|b|}$, branch center $(-c,d)$, asymptotes half a period from the center, outputs $d\pm a$ a quarter period from the center, and $a<0$ makes each branch decreasing.

  • To solve $\tan(b\theta)=k$: find one solution for the argument, add multiples of $\pi$ across the extended interval, then divide by $b$.

Can't find your problem here?

The AI checks one of your exercises: paste the problem with your answer or take a photo of it.

See all the exercises in this section