A step-by-step tutorial on graphing and sketching tangent functions. The graph, domain, range, vertical asymptotes, and other properties of these functions are examined in detail.
Some of the properties of the graph of \( f(x) = \tan(x) \) are as follows:
Problem: Graph \( f(x) = \tan(x) \) over one period.
Solution:
The function \( \tan x \) is undefined for values of \( x \) equal to \( \frac{\pi}{2} \) and \( -\frac{\pi}{2} \). However, we need to understand the behavior of the graph of \( \tan x \) as \( x \) approaches \( \frac{\pi}{2} \) and \( -\frac{\pi}{2} \).
Let us look at the values of \( \tan x \) for \( x \) close to \( \frac{\pi}{2} \) such that \( x \) is smaller than \( \frac{\pi}{2} \):
| \( x \) | \(\dfrac{\pi}{2} - 0.5\) | \(\dfrac{\pi}{2} - 0.1\) | \(\dfrac{\pi}{2} - 0.01\) | \(\dfrac{\pi}{2} - 0.001\) | \(\dfrac{\pi}{2}\) |
| \(\tan\,x\) | \(1.8\) | \(10.0\) | \(100.0\) | \(1000.0\) | undefined |
We note that as \( x \) approaches \( \frac{\pi}{2} \) from the left (by values smaller than \( \frac{\pi}{2} \)), \( \tan(x) \) increases indefinitely. We say that the graph of \( \tan(x) \) has a vertical asymptote at \( x = \frac{\pi}{2} \). It is represented by a vertical broken red line \( x = \frac{\pi}{2} \) in the graph below.
We now look at the values of \( \tan x \) for \( x \) close to \( -\frac{\pi}{2} \) such that \( x \) is larger than \( -\frac{\pi}{2} \):
| \( x \) | \(-\dfrac{\pi}{2} + 0.5\) | \(-\dfrac{\pi}{2} + 0.1\) | \(-\dfrac{\pi}{2} + 0.01\) | \(-\dfrac{\pi}{2} + 0.001\) | \(-\dfrac{\pi}{2}\) |
| \(\tan x\) | \(-1.8\) | \(-10.0\) | \(-100.0\) | \(-1000.0\) | undefined |
We note that as \( x \) approaches \( -\frac{\pi}{2} \) from the right (by values larger than \( -\frac{\pi}{2} \)), \( \tan x \) decreases indefinitely. The graph of \( \tan x \) has a vertical asymptote at \( x = -\frac{\pi}{2} \). It is represented by a vertical broken red line \( x = -\frac{\pi}{2} \) in the graph below.
Using the values above plus \( \tan 0 = 0 \), \( \tan\left(\frac{\pi}{4}\right) = 1 \), and \( \tan\left(-\frac{\pi}{4}\right) = -1 \), we plot the points \( (0, 0) \), \( \left(\frac{\pi}{4}, 1\right) \), and \( \left(-\frac{\pi}{4}, -1\right) \) and the vertical asymptotes:
We then draw a smooth curve passing through the points calculated. Close to the vertical asymptotes, the graph either goes upward indefinitely (close to \( x = \frac{\pi}{2} \)) or downward indefinitely (close to \( x = -\frac{\pi}{2} \)):
Summary of graphing \( \tan x \):
| \( x \) | \(-\dfrac{\pi}{2}\) | \(-\dfrac{\pi}{4}\) | \(0\) | \(\dfrac{\pi}{4}\) | \(\dfrac{\pi}{2}\) |
| \(\tan x\) | VA | \(-1.0\) | \(0.0\) | \(1.0\) | VA |
Problem: Graph function \( f \) given by \( f(x) = 2\tan\left(2x - \dfrac{\pi}{4}\right) \) over one period.
Solution:
Let \( t = 2x - \frac{\pi}{4} \). Let us make a table over one period \( \left(-\frac{\pi}{2}, \frac{\pi}{2}\right) \) using the variable \( t \):
| \( t \) | \(-\dfrac{\pi}{2}\) | \(-\dfrac{\pi}{4}\) | \(0\) | \(\dfrac{\pi}{4}\) | \(\dfrac{\pi}{2}\) |
| \( 2\tan t \) | VA | \(-2.0\) | \(0.0\) | \(2.0\) | VA |
We now use the relationship between \( x \) and \( t \), \( t = 2x - \frac{\pi}{4} \), to find the values of \( x \) corresponding to the values of \( t \). Solving \( t = 2x - \frac{\pi}{4} \) for \( x \) gives: \[ x = \frac{t}{2} + \frac{\pi}{8} \] Adding the \( x \)-row to our table:
| \( t \) | \(-\dfrac{\pi}{2}\) | \(-\dfrac{\pi}{4}\) | \(0\) | \(\dfrac{\pi}{4}\) | \(\dfrac{\pi}{2}\) |
| \( 2\tan t \) | VA | \(-2.0\) | \(0.0\) | \(2.0\) | VA |
| \( x \) | \(-\dfrac{\pi}{8}\) | \(0\) | \(\dfrac{\pi}{8}\) | \(\dfrac{2\pi}{8}\) | \(\dfrac{3\pi}{8}\) |
Problem: Graph function \( f \) defined by \( f(x) = -\tan\left(x + \dfrac{\pi}{2}\right) \) over one period.
Solution:
Let \( t = x + \frac{\pi}{2} \). We make a table using \( t \) over one period:
| \( t \) | \(-\dfrac{\pi}{2}\) | \(-\dfrac{\pi}{4}\) | \(0\) | \(\dfrac{\pi}{4}\) | \(\dfrac{\pi}{2}\) |
| \( -\tan t \) | VA | \(1.0\) | \(0.0\) | \(-1.0\) | VA |
Solving \( t = x + \frac{\pi}{2} \) for \( x \) yields \( x = t - \frac{\pi}{2} \). Adding the corresponding \( x \)-values:
| \( t \) | \(-\dfrac{\pi}{2}\) | \(-\dfrac{\pi}{4}\) | \(0\) | \(\dfrac{\pi}{4}\) | \(\dfrac{\pi}{2}\) |
| \( -\tan t \) | VA | \(1.0\) | \(0.0\) | \(-1.0\) | VA |
| \( x \) | \(-\pi\) | \(-\dfrac{3\pi}{4}\) | \(-\dfrac{\pi}{2}\) | \(-\dfrac{\pi}{4}\) | \(0\) |
Explore additional graphing tutorials and resources: