Skip to main content

Graphs of sec x, cosec x and cot x: asymptotes where the reciprocated function is zero, turning points at y = 1 and y = -1, period, domain, range, symmetry, the identities 1 + tan squared = sec squared and 1 + cot squared = cosec squared, and solving equations (moved into Extension 1 from Mathematics Advanced in the 2024 syllabus)

Syllabus dot point

“Graph y=sec⁡xy = \sec x, y=cosec⁡xy = \operatorname{cosec} x and y=cot⁡xy = \cot x, identify their asymptotes, period, domain, range and symmetry, and compare them with the graphs of the functions they reciprocate”

HSCMaths Extension 1Functions (ME-F1)13 min read

Quick answer

sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}, cosec⁡x=1sin⁡x\operatorname{cosec} x = \frac{1}{\sin x} and cot⁡x=1tan⁡x\cot x = \frac{1}{\tan x}. Their graphs have vertical asymptotes where the original function is zero, touch y=±1y = \pm 1 where cos⁡x\cos x or sin⁡x\sin x does, and have range ∣y∣≥1|y| \geq 1 (for sec and cosec) or all reals (for cot); sec is even, cosec and cot are odd; periods are 2π2\pi, 2π2\pi and π\pi. Use 1+tan⁡2x=sec⁡2x1 + \tan^2 x = \sec^2 x and 1+cot⁡2x=cosec⁡2x1 + \cot^2 x = \operatorname{cosec}^2 x to solve equations. Moved into Extension 1 from Mathematics Advanced in the 2024 syllabus.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Practice questions

What this dot point is asking

The Year 11 focus area Further work with functions in the Mathematics Extension 1 11-12 Syllabus (2024), first examined in the 2027 HSC, asks you to "Graph y=sec⁡xy = \sec x, y=cosec⁡xy = \operatorname{cosec} x and y=cot⁡xy = \cot x in both radians and degrees", to identify asymptotes, period, domain, range and symmetry, and to compare these graphs with the reciprocal graphs of the functions they come from. In the 2017 course the graphs of sec, cosec and cot were Mathematics Advanced content; in the 2024 syllabus they sit in Extension 1. The earlier dot point in the same focus area looks at y=1f(x)y = \frac{1}{f(x)} in general; here the function ff is one of the basic trigonometric functions.

Note

Take the cosine graph, which wavers between −1-1 and 11. To get the secant, flip every height over: a height of 12\frac{1}{2} becomes 22, a height of 110\frac{1}{10} becomes 1010, and a height of 00 becomes "infinitely tall" (the graph shoots off along a vertical line). Heights of exactly 11 and −1-1 are their own reciprocals, so the new curve touches the old one at exactly those points. That is the entire idea: every feature of the new graph is read straight off the old one.

The answer

Key fact
  • sec⁡x=1cos⁡x\sec x = \dfrac{1}{\cos x}: domain x≠π2+kπx \neq \frac{\pi}{2} + k\pi, range ∣y∣≥1|y| \geq 1, period 2π2\pi, even.
  • cosec⁡x=1sin⁡x\operatorname{cosec} x = \dfrac{1}{\sin x}: domain x≠kπx \neq k\pi, range ∣y∣≥1|y| \geq 1, period 2π2\pi, odd.
  • cot⁡x=cos⁡xsin⁡x=1tan⁡x\cot x = \dfrac{\cos x}{\sin x} = \dfrac{1}{\tan x}: domain x≠kπx \neq k\pi, range all real numbers, period π\pi, odd.

Vertical asymptotes occur wherever the function being reciprocated is zero. The graph touches y=1y = 1 and y=−1y = -1 where cos⁡x\cos x or sin⁡x\sin x takes those values. Two identities do much of the work: 1+tan⁡2x=sec⁡2x1 + \tan^2 x = \sec^2 x and 1+cot⁡2x=cosec⁡2x1 + \cot^2 x = \operatorname{cosec}^2 x.

Graph of y = sec x compared with y = cos xThe graph of y equals sec x for x from minus pi on 2 to 3 pi on 2, drawn with the faint graph of y equals cos x. Vertical asymptotes stand at x equals minus pi on 2, pi on 2 and 3 pi on 2, where cos x is zero. The branch around x equals 0 opens upward with a minimum at (0, 1). The branch around x equals pi opens downward with a maximum at (pi, minus 1). The secant curve touches y equals 1 and y equals minus 1 exactly where the cosine curve does. (0, 1)(π, −1) −π/2π/23π/2 y = sec x y = cos x

Building each graph from its partner

Secant
Draw y=cos⁡xy = \cos x lightly. Mark asymptotes at the zeroes x=±π2,±3π2,…x = \pm\frac{\pi}{2}, \pm\frac{3\pi}{2}, \dots. Where cosine has a maximum of 11, secant has a minimum of 11 and its branch opens upward. Where cosine has a minimum of −1-1, secant has a maximum of −1-1 and its branch opens downward. Between two asymptotes there is exactly one branch, and the branches alternate above and below the axis.
Cosecant
Do the same with y=sin⁡xy = \sin x: asymptotes at x=kπx = k\pi, branches touching y=1y = 1 at x=π2x = \frac{\pi}{2} and y=−1y = -1 at x=3π2x = \frac{3\pi}{2}.
Cotangent
Compare with y=tan⁡xy = \tan x. The zeroes of tan⁡x\tan x (at x=kπx = k\pi) become asymptotes of cot⁡x\cot x, and the asymptotes of tan⁡x\tan x become the zeroes of cot⁡x\cot x. Unlike tan⁡x\tan x, which increases, cot⁡x\cot x is decreasing on each branch, passing through (π4,1)\left( \frac{\pi}{4}, 1 \right) and (3π4,−1)\left( \frac{3\pi}{4}, -1 \right).

Symmetry and the identities

sec⁡x\sec x is even because cos⁡x\cos x is even. cosec⁡x\operatorname{cosec} x and cot⁡x\cot x are odd. The two Pythagorean identities come from dividing sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 by cos⁡2x\cos^2 x or by sin⁡2x\sin^2 x. They let you convert between squares of the reciprocal functions and the original ones, which is the key step in many equations.

Transformations

Treat the reciprocal graphs like any other: for y=cosec⁡(2x)y = \operatorname{cosec}(2x) the period halves, so the asymptotes are spaced π2\frac{\pi}{2} apart; for y=asec⁡x+cy = a\sec x + c with a>0a > 0 the vertical stretch and shift act on the branches and move the turning values to a+ca + c and −a+c-a + c.

How exam questions use these graphs

  • "Sketch y=sec⁡xy = \sec x (or a transformation) on a given domain." Asymptotes first, then turning points at ±1\pm 1, then branches.
  • "State the domain and range." Exclude the asymptote positions; the range of sec⁡\sec and cosec⁡\operatorname{cosec} is split in two.
  • "Solve ... for 0≤x≤2π0 \leq x \leq 2\pi." Rewrite in sin⁡\sin and cos⁡\cos, or use an identity to get a quadratic in the reciprocal function.
  • "Use the graphs to find the number of solutions." Sketch both curves and count intersections.
Worked examples

Counting solutions graphically

How many solutions has sec⁡x=cos⁡x\sec x = \cos x on 0≤x≤2π0 \leq x \leq 2\pi, and what are they?

Step 1: use the graphs

sec⁡x\sec x has ∣y∣≥1|y| \geq 1 and cos⁡x\cos x has ∣y∣≤1|y| \leq 1, so the curves can only meet where both equal 11 or −1-1.

Step 2: confirm algebraically

1cos⁡x=cos⁡x\frac{1}{\cos x} = \cos x gives cos⁡2x=1\cos^2 x = 1, so cos⁡x=±1\cos x = \pm 1 and x=0,π,2πx = 0, \pi, 2\pi. There are 33 solutions.

Marker's note: one mark for the graphical reasoning or the algebra, one for the three values. The curves touch rather than cross at these points.

Where sec⁡x\sec x and cosec⁡x\operatorname{cosec} x meet

Find the intersections of y=sec⁡xy = \sec x and y=cosec⁡xy = \operatorname{cosec} x for 0≤x≤2π0 \leq x \leq 2\pi.

Step 1: equate

1cos⁡x=1sin⁡x\frac{1}{\cos x} = \frac{1}{\sin x} gives sin⁡x=cos⁡x\sin x = \cos x, so tan⁡x=1\tan x = 1.

Step 2: solve

x=π4x = \frac{\pi}{4} or x=5π4x = \frac{5\pi}{4}.

Step 3: find the heights

At x=π4x = \frac{\pi}{4}, sec⁡x=2\sec x = \sqrt{2}. At x=5π4x = \frac{5\pi}{4}, sec⁡x=−2\sec x = -\sqrt{2}. The intersection points are (π4,2)\left( \frac{\pi}{4}, \sqrt{2} \right) and (5π4,−2)\left( \frac{5\pi}{4}, -\sqrt{2} \right).

Marker's note: one mark for tan⁡x=1\tan x = 1, one for the solutions, one for the heights.

Common traps
Treating sec⁡x=2\sec x = 2 as cos⁡x=2\cos x = 2
The reciprocal flips: sec⁡x=2\sec x = 2 means cos⁡x=12\cos x = \frac{1}{2}.
Drawing the branches inside the strip −1<y<1-1 < y < 1
The graphs of sec⁡x\sec x and cosec⁡x\operatorname{cosec} x never enter it.
Confusing sec⁡x\sec x with cos⁡−1x\cos^{-1} x
The first is a reciprocal and the second is the inverse function. sec⁡x=(cos⁡x)−1\sec x = (\cos x)^{-1} but cos⁡−1x\cos^{-1} x means arccos.
Putting asymptotes in the wrong place
Asymptotes of sec⁡x\sec x are where cos⁡x=0\cos x = 0, not where sec⁡x=0\sec x = 0 (which never happens).
Forgetting that cot⁡x\cot x is decreasing
Its graph falls from left to right on every branch.
Exam technique

Lightly sketch the partner function (cos⁡\cos, sin⁡\sin or tan⁡\tan) first, then convert it. Label asymptotes with dashed lines and give their equations. For equations, convert to sin⁡\sin and cos⁡\cos, or use tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1 and cot⁡2x=cosec⁡2x−1\cot^2 x = \operatorname{cosec}^2 x - 1 to reach a quadratic in a single trigonometric function. Check that none of your solutions hits an asymptote.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation2 marks
State the domain, range and period of y=sec⁡xy = \sec x, and say whether the function is even, odd or neither.
Show worked solution →
Domain
sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x} is undefined where cos⁡x=0\cos x = 0, so the domain is all real xx except x=π2+kπx = \frac{\pi}{2} + k\pi for integers kk.
Range
Since −1≤cos⁡x≤1-1 \leq \cos x \leq 1 and cos⁡x≠0\cos x \neq 0, the reciprocal satisfies sec⁡x≤−1\sec x \leq -1 or sec⁡x≥1\sec x \geq 1. The range is (−∞,−1]∪[1,∞)(-\infty, -1] \cup [1, \infty).
Period
The same as cosine, 2π2\pi.
Symmetry
sec⁡(−x)=1cos⁡(−x)=1cos⁡x=sec⁡x\sec(-x) = \frac{1}{\cos(-x)} = \frac{1}{\cos x} = \sec x, so the function is even and the graph is symmetric about the yy-axis.

Marker's note: one mark for the domain and range, one for the period and the symmetry with a reason.

foundation2 marks
For y=cot⁡xy = \cot x, state the equations of the vertical asymptotes, the xx-intercepts and the period.
Show worked solution →
Asymptotes
cot⁡x=cos⁡xsin⁡x\cot x = \frac{\cos x}{\sin x} is undefined where sin⁡x=0\sin x = 0, so the vertical asymptotes are x=kπx = k\pi for integers kk.
Intercepts
cot⁡x=0\cot x = 0 where cos⁡x=0\cos x = 0, that is at x=π2+kπx = \frac{\pi}{2} + k\pi.
Period
π\pi, the same as tan⁡x\tan x. The range is all real numbers and the function is odd, because cot⁡(−x)=−cot⁡x\cot(-x) = -\cot x.

Marker's note: one mark for the asymptotes, one for the intercepts and the period.

core3 marks
Solve sec⁡x=2\sec x = 2 for 0≤x≤2π0 \leq x \leq 2\pi.
Show worked solution →

Rewrite in cosine. sec⁡x=2\sec x = 2 means cos⁡x=12\cos x = \frac{1}{2}.

Solve in the given domain. The cosine is positive in the first and fourth quadrants, with reference angle π3\frac{\pi}{3}:

x=π3orx=2π−π3=5π3.x = \frac{\pi}{3} \quad \text{or} \quad x = 2\pi - \frac{\pi}{3} = \frac{5\pi}{3}.

Marker's note: one mark for cos⁡x=12\cos x = \frac{1}{2}, one for each solution. sec⁡x=2\sec x = 2 does not mean cos⁡x=2\cos x = 2; the reciprocal flips.

core3 marks
Solve cosec⁡x=−2\operatorname{cosec} x = -2 for 0≤x≤2π0 \leq x \leq 2\pi.
Show worked solution →

Rewrite in sine. cosec⁡x=−2\operatorname{cosec} x = -2 gives sin⁡x=−12\sin x = -\frac{1}{2}.

Solve. Sine is negative in the third and fourth quadrants, with reference angle π6\frac{\pi}{6}:

x=π+π6=7π6orx=2π−π6=11π6.x = \pi + \frac{\pi}{6} = \frac{7\pi}{6} \quad \text{or} \quad x = 2\pi - \frac{\pi}{6} = \frac{11\pi}{6}.

Marker's note: one mark for sin⁡x=−12\sin x = -\frac{1}{2}, one for each solution.

core3 marks
Solve sec⁡x=2cos⁡x\sec x = 2\cos x for 0≤x≤2π0 \leq x \leq 2\pi.
Show worked solution →

Write sec⁡x\sec x as 1cos⁡x\frac{1}{\cos x} (valid when cos⁡x≠0\cos x \neq 0):

1cos⁡x=2cos⁡x⇒1=2cos⁡2x⇒cos⁡2x=12.\frac{1}{\cos x} = 2\cos x \quad \Rightarrow \quad 1 = 2\cos^2 x \quad \Rightarrow \quad \cos^2 x = \frac{1}{2}.

Take roots. cos⁡x=±12\cos x = \pm\frac{1}{\sqrt{2}}, which has one solution in each quadrant:

x=π4, 3π4, 5π4, 7π4.x = \frac{\pi}{4}, \ \frac{3\pi}{4}, \ \frac{5\pi}{4}, \ \frac{7\pi}{4}.

None of these makes cos⁡x=0\cos x = 0, so no solution is lost or invalid.

Marker's note: one mark for cos⁡2x=12\cos^2 x = \frac{1}{2}, one for the two signs, one for all four solutions. Taking only the positive root is the typical slip.

exam4 marks
Solve 2tan⁡2x+sec⁡x=12\tan^2 x + \sec x = 1 for 0≤x≤2π0 \leq x \leq 2\pi. Give the solutions that are not multiples of π\pi correct to two decimal places.
Show worked solution →

Use tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1. Then 2(sec⁡2x−1)+sec⁡x=12\left( \sec^2 x - 1 \right) + \sec x = 1, which rearranges to

2sec⁡2x+sec⁡x−3=0⇒(2sec⁡x+3)(sec⁡x−1)=0.2\sec^2 x + \sec x - 3 = 0 \quad \Rightarrow \quad (2\sec x + 3)(\sec x - 1) = 0.

Case 1: sec⁡x=1\sec x = 1 gives cos⁡x=1\cos x = 1, so x=0x = 0 or x=2πx = 2\pi.

Case 2: sec⁡x=−32\sec x = -\frac{3}{2} gives cos⁡x=−23\cos x = -\frac{2}{3}. The reference angle is cos⁡−1(23)≈0.84\cos^{-1}\left( \frac{2}{3} \right) \approx 0.84 rad, and cosine is negative in the second and third quadrants:

x=cos⁡−1(−23)≈2.30orx=2π−2.30≈3.98.x = \cos^{-1}\left( -\tfrac{2}{3} \right) \approx 2.30 \quad \text{or} \quad x = 2\pi - 2.30 \approx 3.98.

Check one value. At x=2.30x = 2.30, tan⁡2x≈1.25\tan^2 x \approx 1.25 and sec⁡x=−1.5\sec x = -1.5, so 2(1.25)−1.5=12(1.25) - 1.5 = 1.

Marker's note: one mark for the identity, one for the factorisation, one for the solutions from sec⁡x=1\sec x = 1, one for the two decimal solutions.

exam4 marks
Sketch the graph of y=cosec⁡2xy = \operatorname{cosec} 2x for 0≤x≤2π0 \leq x \leq 2\pi, showing the asymptotes and turning points, and state its period and range.
Show worked solution →

Compare with y=sin⁡2xy = \sin 2x. The sine curve y=sin⁡2xy = \sin 2x has period 2π2=π\frac{2\pi}{2} = \pi and zeroes at x=0,π2,π,3π2,2πx = 0, \frac{\pi}{2}, \pi, \frac{3\pi}{2}, 2\pi.

Vertical asymptotes occur at these zeroes: x=0x = 0, π2\frac{\pi}{2}, π\pi, 3π2\frac{3\pi}{2} and 2π2\pi.

Turning points occur where sin⁡2x=±1\sin 2x = \pm 1, so y=±1y = \pm 1:

  • (π4,1)\left( \frac{\pi}{4}, 1 \right) and (5π4,1)\left( \frac{5\pi}{4}, 1 \right) are minimum points on upward-opening branches,
  • (3π4,−1)\left( \frac{3\pi}{4}, -1 \right) and (7π4,−1)\left( \frac{7\pi}{4}, -1 \right) are maximum points on downward-opening branches.

Shape. Between consecutive asymptotes there is one branch, alternately above y=1y = 1 and below y=−1y = -1, so there are four branches in the interval.

Period and range. The period is π\pi and the range is y≤−1y \leq -1 or y≥1y \geq 1.

Marker's note: one mark for the asymptotes, one for the turning points, one for the alternating branches, one for the period and range. The graph never enters the strip −1<y<1-1 < y < 1.

exam3 marks
Explain how the graph of y=cot⁡xy = \cot x can be obtained from the graph of y=tan⁡xy = \tan x by a translation and a reflection, and use this to state the equations of the asymptotes of y=cot⁡xy = \cot x.
Show worked solution →
Use the cofunction identity
cot⁡x=tan⁡(π2−x)=−tan⁡(x−π2)\cot x = \tan\left( \frac{\pi}{2} - x \right) = -\tan\left( x - \frac{\pi}{2} \right).
Describe the transformations
Translate the graph of y=tan⁡xy = \tan x right by π2\frac{\pi}{2} to obtain y=tan⁡(x−π2)y = \tan\left( x - \frac{\pi}{2} \right), then reflect it in the xx-axis to obtain y=−tan⁡(x−π2)=cot⁡xy = -\tan\left( x - \frac{\pi}{2} \right) = \cot x.
Asymptotes
The asymptotes of y=tan⁡xy = \tan x are x=π2+kπx = \frac{\pi}{2} + k\pi. Translating right by π2\frac{\pi}{2} moves them to x=π+kπ=kπx = \pi + k\pi = k\pi (reflection in the xx-axis does not move vertical lines), which matches the zeroes of sin⁡x\sin x.

Marker's note: one mark for the identity, one for the transformations in a valid order, one for the asymptotes.

Practise this

Sources & how we know this

ExamExplained