Graphs of sec x, cosec x and cot x
Theory
The graphs of \(y=\sec x\), \(y=\operatorname{cosec}x\) and \(y=\cot x\) are the reciprocal graphs of \(\cos x\), \(\sin x\) and \(\tan x\). This Year 11 Mathematics Extension 1 page shows where their asymptotes and turning points are, their period, domain and range, and how to use the graphs to count and find the solutions of equations such as \(\operatorname{cosec}x=k\).
The three reciprocal trigonometric functions are
Their graphs are reciprocal graphs, so they follow the same rules as \(y=\dfrac{1}{f(x)}\): a vertical asymptote wherever the original function is \(0\), the same sign as the original function, and the graphs meet only where the original function equals \(1\) or \(-1\).
\(y=\sec x\) has asymptotes where \(\cos x=0\): \(x=\pm\dfrac{\pi}{2},\ \pm\dfrac{3\pi}{2},\ \dots\) (\(\pm90^\circ,\ \pm270^\circ,\ \dots\)). Since \(-1\leq\cos x\leq1\), the reciprocal satisfies \(\sec x\geq1\) or \(\sec x\leq-1\). The maximum points of \(y=\cos x\) become minimum turning points of \(y=\sec x\), such as \((0,1)\), and the minimum points of \(\cos x\) become maximum turning points, such as \((\pi,-1)\). The graph is a row of U-shaped branches, alternately opening up and down.
\(y=\operatorname{cosec}x\) has asymptotes where \(\sin x=0\): \(x=0,\ \pm\pi,\ \pm2\pi,\ \dots\) (\(x=180^\circ n\)). Its turning points are where \(\sin x=\pm1\), for example a local minimum at \(\left(\dfrac{\pi}{2},1\right)\).
\(y=\cot x\) has asymptotes where \(\sin x=0\) (where \(\tan x=0\)) and \(x\)-intercepts where \(\cos x=0\) (where \(\tan x\) has its asymptotes). Each branch decreases from \(+\infty\) to \(-\infty\), so the range is all real \(y\).
Each reciprocal function repeats when the original does, so \(\sec x\) and \(\operatorname{cosec}x\) have period \(2\pi\) (\(360^\circ\)) and \(\cot x\) has period \(\pi\) (\(180^\circ\)). \(\sec x\) is an even function, like \(\cos x\); \(\operatorname{cosec}x\) and \(\cot x\) are odd.
| \(y=\sec x\) | \(y=\operatorname{cosec}x\) | \(y=\cot x\) | |
|---|---|---|---|
| Definition | \(\dfrac{1}{\cos x}\) | \(\dfrac{1}{\sin x}\) | \(\dfrac{\cos x}{\sin x}\) |
| Asymptotes | \(\cos x=0\): \(x=\dfrac{\pi}{2}+n\pi\) | \(\sin x=0\): \(x=n\pi\) | \(\sin x=0\): \(x=n\pi\) |
| Period | \(2\pi\) (\(360^\circ\)) | \(2\pi\) (\(360^\circ\)) | \(\pi\) (\(180^\circ\)) |
| Range | \(y\leq-1\) or \(y\geq1\) | \(y\leq-1\) or \(y\geq1\) | all real \(y\) |
| Symmetry | even | odd | odd |
| \(x\)-intercepts | none | none | \(\cos x=0\): \(x=\dfrac{\pi}{2}+n\pi\) |
Here \(n\) is an integer. Exact values come from the exact values of \(\sin\), \(\cos\) and \(\tan\):
| \(x\) | \(\dfrac{\pi}{6}\ (30^\circ)\) | \(\dfrac{\pi}{4}\ (45^\circ)\) | \(\dfrac{\pi}{3}\ (60^\circ)\) |
|---|---|---|---|
| \(\sec x\) | \(\dfrac{2}{\sqrt3}\) | \(\sqrt2\) | \(2\) |
| \(\operatorname{cosec}x\) | \(2\) | \(\sqrt2\) | \(\dfrac{2}{\sqrt3}\) |
| \(\cot x\) | \(\sqrt3\) | \(1\) | \(\dfrac{1}{\sqrt3}\) |
Period of a horizontally dilated graph (\(n\gt 0\)):
Solving a reciprocal equation (\(k\neq0\)):
How to sketch \(y=\sec x\), \(y=\operatorname{cosec}x\) or \(y=\cot x\)
- Sketch the matching function lightly: \(y=\cos x\) for \(\sec x\), \(y=\sin x\) for \(\operatorname{cosec}x\), \(y=\tan x\) for \(\cot x\).
- Draw the asymptotes where the matching function is \(0\) (for \(\cot x\): where \(\sin x=0\)).
- Mark the turning points of \(\sec x\) and \(\operatorname{cosec}x\) where the matching function is \(1\) or \(-1\): the two graphs touch there, and a maximum becomes a minimum. For \(\cot x\), mark the \(x\)-intercepts where \(\cos x=0\) and the points \(\left(\dfrac{\pi}{4},1\right)\), \(\left(\dfrac{3\pi}{4},-1\right)\).
- Draw each branch on the same side of the \(x\)-axis as the matching function, curving away from the turning point towards the asymptotes. Each branch of \(\cot x\) decreases from \(+\infty\) to \(-\infty\).
How to solve \(\sec x=k\) or \(\operatorname{cosec}x=k\)
- Count the solutions with the line \(y=k\) on the graph. There are none if \(-1\lt k\lt 1\).
- Rewrite as \(\cos x=\dfrac1k\) or \(\sin x=\dfrac1k\).
- Solve using the related angle and the quadrants where the sign is right, then check that the number of answers matches the graph.
Asymptotes where \(\cos x=0\):
| \(x\) | \(=\) | \(-90^\circ,\ 90^\circ,\ 270^\circ\) |
Turning points where \(\cos x=\pm1\):
| \(\cos0^\circ=1\) | \(\Rightarrow\) | \(\sec0^\circ=\dfrac11=1\) |
| \(\cos180^\circ=-1\) | \(\Rightarrow\) | \(\sec180^\circ=\dfrac{1}{-1}=-1\) |
\((0^\circ,1)\) is a maximum of \(\cos x\), so it is a local minimum of \(\sec x\). \((180^\circ,-1)\) is a minimum of \(\cos x\), so it is a local maximum of \(\sec x\).
End points: \(\sec(-180^\circ)=-1\) and \(\sec360^\circ=1\).
Between \(-90^\circ\) and \(90^\circ\), \(\cos x\gt 0\), so the branch opens upwards from \((0^\circ,1)\). Between \(90^\circ\) and \(270^\circ\), \(\cos x\lt 0\), so the branch opens downwards from \((180^\circ,-1)\).
(i) Find its asymptote and \(x\)-intercepts.
(ii) Find \(\cot45^\circ\), \(\cot135^\circ\), \(\cot(-45^\circ)\) and \(\cot(-135^\circ)\), and sketch the graph.
(iii) Show that \(y=\cot x\) is an odd function.
(i) \(\cot x=\dfrac{\cos x}{\sin x}\). Asymptote where \(\sin x=0\): \(x=0^\circ\) (the ends, \(\pm180^\circ\), are also asymptotes). \(x\)-intercepts where \(\cos x=0\): \(x=\mathbf{\pm90^\circ}\).
(ii) \(\tan45^\circ=1\), so \(\cot45^\circ=1\) and \(\cot135^\circ=\dfrac{1}{\tan135^\circ}=\dfrac{1}{-1}=-1\).
| \(\cot(-45^\circ)\) | \(=\) | \(\dfrac{1}{\tan(-45^\circ)}=-1\) |
| \(\cot(-135^\circ)\) | \(=\) | \(\dfrac{1}{\tan(-135^\circ)}=1\) |
Each branch decreases from \(+\infty\) next to its left asymptote to \(-\infty\) next to its right asymptote, crossing the axis at \(\pm90^\circ\).
(iii)
| \(\cot(-x)\) | \(=\) | \(\dfrac{\cos(-x)}{\sin(-x)}\) |
| \(\) | \(=\) | \(\dfrac{\cos x}{-\sin x}\) |
| \(\) | \(=\) | \(-\cot x\) |
\(\therefore y=\cot x\) is odd: its graph has point symmetry about the origin.
(ii) Find these solutions exactly.
(iii) For which values of \(k\) does \(\operatorname{cosec}x=k\) have exactly one solution for \(0\leq x\leq2\pi\)?
(i) The lower branch (\(\pi\lt x\lt 2\pi\)) has a maximum turning point at \(\left(\dfrac{3\pi}{2},-1\right)\). The line \(y=-\sqrt2\) is below it, so it meets this branch twice: 2 solutions.
(ii)
| \(\operatorname{cosec}x\) | \(=\) | \(-\sqrt2\) |
| \(\sin x\) | \(=\) | \(-\dfrac{1}{\sqrt2}\) |
\(\sin x\lt 0\) in quadrants 3 and 4; related angle \(\dfrac{\pi}{4}\).
| \(x\) | \(=\) | \(\pi+\dfrac{\pi}{4}=\dfrac{5\pi}{4}\) |
| \(x\) | \(=\) | \(2\pi-\dfrac{\pi}{4}=\dfrac{7\pi}{4}\) |
\(\therefore x=\mathbf{\dfrac{5\pi}{4},\ \dfrac{7\pi}{4}}\)
(iii) A horizontal line meets the graph exactly once only when it just touches a turning point: \(k=1\) (at \(x=\dfrac{\pi}{2}\)) or \(k=-1\) (at \(x=\dfrac{3\pi}{2}\)). \(\therefore k=\mathbf{\pm1}\).
(i) Find its period.
(ii) Find its range.
(iii) Find its asymptotes and turning points for \(0\leq x\leq\pi\), and sketch it.
(i) \(\operatorname{cosec}2x\) repeats when \(\sin2x\) repeats:
| \(\text{period}\) | \(=\) | \(\dfrac{2\pi}{2}=\mathbf{\pi}\) |
(ii) Transform the range of \(\operatorname{cosec}\):
| \(\operatorname{cosec}2x\leq-1\) | \(\text{or}\) | \(\operatorname{cosec}2x\geq1\) |
| \(3\operatorname{cosec}2x\leq-3\) | \(\text{or}\) | \(3\operatorname{cosec}2x\geq3\) |
| \(3\operatorname{cosec}2x+1\leq-2\) | \(\text{or}\) | \(3\operatorname{cosec}2x+1\geq4\) |
\(\therefore\) range: \(\boldsymbol{y\leq-2}\) or \(\boldsymbol{y\geq4}\)
(iii) Asymptotes where \(\sin2x=0\): \(2x=0,\ \pi,\ 2\pi\), so \(x=0,\ \dfrac{\pi}{2},\ \pi\).
Turning points where \(\sin2x=\pm1\):
| \(\sin2x\) | \(=\) | \(1\) |
| \(2x\) | \(=\) | \(\dfrac{\pi}{2}\) |
| \(x\) | \(=\) | \(\dfrac{\pi}{4}\) |
| \(y\) | \(=\) | \(3(1)+1=4\) |
| \(\sin2x\) | \(=\) | \(-1\) |
| \(2x\) | \(=\) | \(\dfrac{3\pi}{2}\) |
| \(x\) | \(=\) | \(\dfrac{3\pi}{4}\) |
| \(y\) | \(=\) | \(3(-1)+1=-2\) |
\(\therefore\) local minimum \(\mathbf{\left(\dfrac{\pi}{4},4\right)}\) and local maximum \(\mathbf{\left(\dfrac{3\pi}{4},-2\right)}\).
Common pitfalls
Frequently asked questions
What is sec x equal to?
\(\sec x=\dfrac{1}{\cos x}\). In the same way \(\operatorname{cosec}x=\dfrac{1}{\sin x}\) and \(\cot x=\dfrac{1}{\tan x}=\dfrac{\cos x}{\sin x}\). For example \(\sec60^\circ=\dfrac{1}{\cos60^\circ}=2\).
What does the graph of y = sec x look like?
A row of U-shaped branches between vertical asymptotes at \(x=\dfrac{\pi}{2}+n\pi\). The branches open upwards from minimum points such as \((0,1)\) and downwards from maximum points such as \((\pi,-1)\), touching \(y=\cos x\) at those points.
Where are the asymptotes of y = cosec x?
Where \(\sin x=0\): \(x=n\pi\) for any integer \(n\), that is \(x=0,\ \pm\pi,\ \pm2\pi,\ \dots\), or \(x=180^\circ n\) in degrees.
What is the period of cot x?
\(\pi\) radians, or \(180^\circ\), the same as \(\tan x\). The period of \(\sec x\) and \(\operatorname{cosec}x\) is \(2\pi\) (\(360^\circ\)).
What is the range of sec x and cosec x?
\(y\leq-1\) or \(y\geq1\), because \(-1\leq\cos x\leq1\) and \(-1\leq\sin x\leq1\), and the reciprocal of a non-zero number from \(-1\) to \(1\) is at most \(-1\) or at least \(1\). The range of \(\cot x\) is all real numbers.
Is sec x the same as inverse cos x?
No. \(\sec x=\dfrac{1}{\cos x}\) is a reciprocal. \(\cos^{-1}x\) is the inverse function, which gives an angle. For example \(\sec0=1\), but \(\cos^{-1}0=\dfrac{\pi}{2}\).