The tangent function
Theory
The tangent function \(y=\tan x\) has period \(\pi\), vertical asymptotes at \(x=\dfrac{\pi}{2}+k\pi\) and \(x\)-intercepts at the multiples of \(\pi\). Its range is all real numbers, so it has no amplitude. A transformed graph \(y=a\tan n(x-e)\) has period \(\dfrac{\pi}{n}\), a dilation factor \(a\) that changes the steepness, and asymptotes shifted by \(e\).
The tangent function is defined by \(\tan x=\dfrac{\sin x}{\cos x}\). It is undefined wherever \(\cos x=0\), which happens at \(x=\dfrac{\pi}{2}+k\pi\) for every integer \(k\); the graph has a vertical asymptote at each of these values. Between consecutive asymptotes the curve climbs from \(-\infty\) to \(+\infty\), so the range is all real numbers and there is no maximum, minimum or amplitude.
The function repeats every \(\pi\) radians, so its period is \(\pi\) — half that of \(\sin\) and \(\cos\). It is zero wherever \(\sin x=0\), giving \(x\)-intercepts at the multiples of \(\pi\) \((x=0,\pm\pi,\pm2\pi,\dots)\), each sitting exactly halfway between two asymptotes. A useful key point is \(\tan\dfrac{\pi}{4}=1\), and by symmetry \(\tan\left(-\dfrac{\pi}{4}\right)=-1\).
A general transformed tangent graph is \(y=a\tan n(x-e)\). The factor \(n\) compresses the graph horizontally so the period becomes \(\dfrac{\pi}{n}\) and the asymptotes crowd closer together; \(a\) is a dilation from the \(x\)-axis that steepens or flattens each branch (it is not an amplitude); and \(e\) is a horizontal translation that shifts every asymptote and intercept by \(e\).
The definition and the two features that fix the shape of \(y=\tan x\):
For the transformed graph \(y=a\tan n(x-e)\), the period and the asymptote/intercept locations:
To solve a tangent equation, use the period \(\pi\) to generate every solution:
How to sketch \(y=a\tan n(x-e)\) or solve a tangent equation
- Read off the transformations. Identify the dilation factor \(a\), the factor \(n\) (which gives period \(\dfrac{\pi}{n}\)), and the translation \(e\).
- Locate the asymptotes. Solve \(n(x-e)=\dfrac{\pi}{2}+k\pi\) for the \(x\)-values in the domain; draw a dashed vertical line at each.
- Mark the intercepts. Solve \(n(x-e)=k\pi\) — each zero sits midway between neighbouring asymptotes.
- Plot a key point. A quarter-period from an intercept the height is \(\pm a\); this fixes the steepness of each increasing branch.
- To solve \(\tan(\cdot)=a\), take \(\tan^{-1}a\), add \(k\pi\), then substitute back and keep the solutions inside the given interval.
| period | \(=\) | \(\pi\) |
| \(x\) | \(=\) | \(\dfrac{\pi}{2}\) |
| \(x\) | \(=\) | \(\dfrac{3\pi}{2}\) |
| \(x\) | \(=\) | \(\dfrac{\pi}{4}+k\pi\) |
| \(x\) | \(=\) | \(\dfrac{\pi}{4}\) |
| \(x\) | \(=\) | \(\dfrac{\pi}{4}+\pi=\dfrac{5\pi}{4}\) |
| period | \(=\) | \(\dfrac{\pi}{n}=\dfrac{\pi}{3}\) |
| \(3x\) | \(=\) | \(\pm\dfrac{\pi}{2}\) |
| \(x\) | \(=\) | \(\pm\dfrac{\pi}{6}\) |
| \(\tan u\) | \(=\) | \(\sqrt{3}\) |
| \(u\) | \(=\) | \(\dfrac{\pi}{3}+k\pi\) |
| \(u\) | \(=\) | \(\dfrac{\pi}{3},\ \dfrac{4\pi}{3}\) |
| \(x\) | \(=\) | \(\dfrac{\pi}{6},\ \dfrac{2\pi}{3}\) |
Common pitfalls
Frequently asked questions
What is the period of y = tan x?
The tangent function repeats every \(\pi\) radians, so its period is \(\pi\) — not \(2\pi\) like sine and cosine. The graph is a series of identical branches spaced \(\pi\) apart, one between each pair of asymptotes.
Where are the asymptotes of y = tan x?
Since \(\tan x=\dfrac{\sin x}{\cos x}\), the function is undefined where \(\cos x=0\), i.e. at \(x=\dfrac{\pi}{2}+k\pi\). There is a vertical asymptote at each, for example \(x=-\dfrac{\pi}{2},\dfrac{\pi}{2},\dfrac{3\pi}{2}\).
Where does y = tan x cross the x-axis?
The curve is zero where \(\sin x=0\), i.e. at the multiples of \(\pi\): \(x=0,\pm\pi,\pm2\pi,\dots\) Each intercept sits exactly halfway between two neighbouring asymptotes.
How do you find the period of y = a tan nx?
Divide the base period \(\pi\) by \(n\) to get \(\dfrac{\pi}{n}\). For example \(y=\tan 2x\) has period \(\dfrac{\pi}{2}\), so its branches are twice as close. The factor \(a\) does not change the period.
Does the tangent function have an amplitude?
No. The range is all real numbers, so there is no maximum, minimum or amplitude. In \(y=a\tan nx\) the number \(a\) is a dilation factor from the \(x\)-axis that changes the steepness.
How do you solve tan x = a?
Find one solution \(x=\tan^{-1}a\), then add \(k\pi\): \(x=\tan^{-1}a+k\pi\). Keep those in the domain. For example \(\tan x=1\) gives \(x=\dfrac{\pi}{4}+k\pi\), so on \([0,2\pi]\) the solutions are \(\dfrac{\pi}{4}\) and \(\dfrac{5\pi}{4}\).