MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Pre-University
MathematicsPre-University

Reciprocal trig functions — sec cosec cot

P1 — Pure Algebra and Functions › P1.3 — Trigonometry AdvancedLecture 4 of 9~2720 words

Same symbols, two different answers

Amara and Kenji are given the same line: work out sin⁻¹ x when x = 0.5.

Amara reads the −1 as a power, so she finds one over sin 0.5. With her calculator in radians, she gets 1 ÷ 0.479 ≈ 2.086. Kenji presses the sin⁻¹ key and gets 0.524, which is π/6. They used the same symbols. One answer is four times the other. Only one of them is right.

Amara had a good reason. You already write sin²x for (sin x)², so a power of −1 looks like it should mean the reciprocal. But it does not. The symbol sin⁻¹ x means the inverse function, like f⁻¹ in the lecture on inverse functions. It is the angle whose sine is x. Kenji is right.

So the notation sin⁻¹ is already taken. The reciprocal of sine needs a name of its own, and so do the reciprocals of cosine and tangent. This lecture gives you all three. They are not just new names. Each one is a real length on the unit circle, each has a graph you can build from one you know, and each gives you a new identity for free.

Three names, and how to pair them

The reciprocal trig functions

secant: , wherever cos x ≠ 0.

cosecant: , wherever sin x ≠ 0.

cotangent: , wherever sin x ≠ 0. Where tan x exists and is not 0, cot x = 1/tan x.

The pairs are where students lose marks, because sec sounds like sin. Here is a check that never fails. In each pair, exactly one name starts with "co". Cos goes with sec. Sin goes with cosec. Tan goes with cot.

This is not a coincidence, and the reason makes it easy to hold. "Co" means "of the complement". The complement of an angle θ is π/2 − θ, the angle that makes a right angle with it. In a right-angled triangle, the sine of one acute angle is the cosine of the other, so cos θ = sin(π/2 − θ). In the same way, cosec θ = sec(π/2 − θ) and cot θ = tan(π/2 − θ). Now start from sec θ = 1/cos θ and replace θ by π/2 − θ everywhere. Each function gains a "co", or loses one. The left side becomes cosec θ and the right side becomes 1/sin θ. So the "co" always sits on exactly one side of each pair.

Why is cot defined as cos x ÷ sin x and not simply as 1 ÷ tan x? Look at x = π/2. There, tan x does not exist, so 1 ÷ tan x makes no sense. But cos(π/2) ÷ sin(π/2) = 0 ÷ 1 = 0. So cot(π/2) = 0. The definition with cos and sin covers this point, and the other does not.

Where the names come from: two lengths on the circle

Draw the unit circle and take an acute angle θ. P is on the circle, and N is the point below P on the x-axis. So ON = cos θ and NP = sin θ, as in the lecture on the unit circle. Now draw the line that touches the circle at A(1, 0). It is vertical, and it is called the tangent line at A. Extend OP until it meets this line at T.

θOAPTNtan θsec θ1θOBPScot θcosec θ1
Figure 1. Top: OP extended meets the tangent line at A in T. Then AT = tan θ and OT = sec θ. Bottom: OP extended meets the tangent line at B in S. Then BS = cot θ and OS = cosec θ. The shaded triangles are right-angled, with one side of length 1.

The triangles ONP and OAT have the same angle θ at O, and both have a right angle. So they are similar. In ONP, the side along the x-axis is cos θ. In OAT, the same side is OA = 1. So triangle OAT is triangle ONP enlarged by the scale factor 1 ÷ cos θ. Every side is multiplied by it:

So the tangent of θ is a length measured along a tangent line. That is where its name comes from. The line OT cuts through the circle, and the Latin word secare means "to cut". So OT is called the secant. The Danish mathematician Thomas Fincke gave both lengths these names in his book Geometria rotundi in 1583.

Now do the same at the top of the circle. The tangent line at B(0, 1) is horizontal. OP extended meets it at S. The angle at S is θ, and the angle BOS is π/2 − θ, the complement. So BS is the tangent of the complement, which is cot θ, and OS is the secant of the complement, which is cosec θ. The "co" names describe the same picture, turned through a right angle.

Pythagoras, twice

Triangle OAT is right-angled at A. Its sides are 1, tan θ and sec θ. So Pythagoras gives 1 + tan²θ = sec²θ. Triangle OBS gives 1 + cot²θ = cosec²θ in the same way.

That is it. Two new identities, read straight from the picture.

The picture only shows acute angles. For every angle, use algebra. Start from the identity you know, sin²θ + cos²θ = 1. Divide every term by cos²θ, which is allowed wherever cos θ ≠ 0:

Divide the same identity by sin²θ instead, wherever sin θ ≠ 0, and you get cot²θ + 1 = cosec²θ.

Two more Pythagorean identities

wherever cos θ ≠ 0.

wherever sin θ ≠ 0.

Each comes from sin²θ + cos²θ = 1, divided by cos²θ or by sin²θ. If you forget one, divide again.

Rearranged, the first one says sec²θ − tan²θ = 1. It also says tan²θ = sec²θ − 1. The order matters. A square is never negative, so tan²θ must be the bigger side minus 1, never 1 minus the bigger side. This is the most common slip in this topic. Find it in a student's working below.

Spot the error — an equation with tan squared and sec

A student solves 2 tan²x = 3 sec x for 0 ≤ x ≤ 2π. One line of the working is wrong. The lines after it follow correctly from the mistake. Tap the line you think is wrong.

The working below solves 2 tan²x = 3 sec x, but line 2 is wrong.

  1. 2 tan²x = 3 sec x
  2. 2(1 − sec²x) = 3 sec x. Wrong: the identity gives tan²x = sec²x − 1. The left side 2 tan²x can never be negative, but 2(1 − sec²x) is never positive.
  3. 2 sec²x + 3 sec x − 2 = 0
  4. (2 sec x − 1)(sec x + 2) = 0
  5. sec x = 1/2 is impossible, so sec x = −2 and cos x = −1/2.
  6. x = 2π/3 or x = 4π/3. A check fails: at x = 2π/3, 2 tan²x = 6 but 3 sec x = −6.

The correct working gives 2 sec²x − 3 sec x − 2 = 0, so (2 sec x + 1)(sec x − 2) = 0. Then sec x = −1/2 is impossible, sec x = 2, cos x = 1/2, and x = π/3 or x = 5π/3.

The last line was a good check, and it caught the mistake. Put an answer back into the original equation. If the two sides disagree, the error is earlier in the working.

Graphs from the rules of reciprocals

You do not need a table of values to draw y = sec x. You need the graph of y = cos x and four facts about one over a number.

Put these together. Near x = 0, cos x has a top of 1. So sec x has a bottom of 1 there, and rises on both sides towards the asymptotes at ±π/2. Each hill of the cosine becomes a U shape of the secant. Each valley becomes an upside-down U. Try it below with all three pairs.

Explore — one over a graph

Choose a pair. Then move x with the slider or the buttons, and watch the two dots. The open grey dot is the old function. The teal dot is one over it. Go slowly near the dashed asymptotes.

The figure shows y = sec x (teal) with y = cos x (dashed), from −π/2 to 2π. Where cos x = 1, at x = 0 and 2π, sec x = 1 and the graphs touch. Where cos x = −1, at x = π, sec x = −1. Where cos x = 0, at ±π/2 and 3π/2, sec x has asymptotes (dashed vertical lines). For example, at x = π/6, cos x ≈ 0.866 and sec x ≈ 1.155. At x = 5π/12, cos x ≈ 0.259 and sec x ≈ 3.864.

1−13−3−π/2π/2π3π/22πx

You should have seen the same pattern for all three pairs. Where the old graph crosses the axis, the new one has an asymptote. Where the old graph is at ±1, the new one touches it. With tan → cot, one more thing happens. Where tan x has an asymptote, cot x crosses the axis, because cos x ÷ sin x = 0 there.

1−13−3−π/2π/2π3π/22πx1−13−3−π/2π/2π3π/22πx
Figure 2. Top: y = cosec x (teal) with y = sin x (dashed). Its asymptotes are at 0, π and 2π, where sin x = 0. Bottom: y = cot x (teal) with y = tan x (dashed). Where one has an asymptote, the other crosses the axis. Both repeat every π.

Some facts follow at once from the old graphs. Sec x has period 2π, because cos x does. It is even, because cos x is even. Cosec x has period 2π and is odd, like sin x. Cot x has period π and is odd, like tan x. There is also a neat link: cot x = tan(π/2 − x). So the cot graph is the tan graph reflected in the line x = π/4. Check it in Figure 2. At x = π/4 both graphs pass through 1.

FunctionDoes not exist whereRangePeriod
sec xx = π/2 + kπsec x ≤ −1 or sec x ≥ 12π
cosec xx = kπcosec x ≤ −1 or cosec x ≥ 12π
cot xx = kπevery real numberπ

Here k stands for any whole number, positive, negative or zero.

Stop and think

Solve sec x = 0.5 for 0 ≤ x ≤ 2π.

Show the answer

There is no solution. sec x = 0.5 would need cos x = 1 ÷ 0.5 = 2, and cos x is never more than 1. The graph says the same thing: no part of y = sec x lies between −1 and 1. A calculator shows an error for cos⁻¹ 2. That error is a correct answer, not a fault. The equation has no solutions.

Worked examples

Worked Example 1 — Exact values

Find the exact values of sec(π/3), cosec(π/4), cot(π/6), sec(2π/3) and cot(3π/4).

Change each one to sin and cos, then use the exact values from the unit circle.

sec(π/3) = 1 ÷ cos(π/3) = 1 ÷ ½ = 2.

cosec(π/4) = 1 ÷ (√2/2) = 2/√2 = √2.

cot(π/6) = cos(π/6) ÷ sin(π/6) = (√3/2) ÷ (1/2) = √3.

The angle 2π/3 is in the second quadrant, where cos is negative. Its reference angle is π/3, so cos(2π/3) = −½ and sec(2π/3) = −2.

The angle 3π/4 is in the second quadrant, where cos is negative and sin is positive. So cot(3π/4) = (−√2/2) ÷ (√2/2) = −1.

Check the signs: a reciprocal keeps the sign of the function it comes from. Cos is negative at 2π/3, and tan is negative at 3π/4. So both answers must be negative, and they are.

Worked Example 2 — Two short proofs

(a) Show that (1 + cot²θ) sin²θ = 1. (b) Show that (sec θ + 1)(sec θ − 1) = tan²θ.

The plan for a proof: start from the more complicated side and work towards the other. Look for a bracket that matches an identity.

(a) The bracket 1 + cot²θ is cosec²θ. So the left side is cosec²θ × sin²θ = (1/sin²θ) × sin²θ = 1. This is the right side.

(b) Expand the left side: it is a difference of two squares, sec²θ − 1. The first identity rearranged says sec²θ − 1 = tan²θ. This is the right side.

If you do not see the identity, change everything to sin and cos. In (b), sec²θ − 1 = 1/cos²θ − cos²θ/cos²θ = (1 − cos²θ)/cos²θ = sin²θ/cos²θ = tan²θ. It is longer, but it always works.

Check (b) with a number: at θ = π/3, the left side is (2 + 1)(2 − 1) = 3, and tan²(π/3) = (√3)² = 3.

Worked Example 3 — Solving sec x = 2 and cosec x = −2

Solve each equation for 0 ≤ x ≤ 2π.

Turn each one into an equation you already know how to solve. If sec x = 2, then cos x = 1/2. Cos is positive in the first and fourth quadrants, and the reference angle is π/3. So x = π/3 or x = 2π − π/3 = 5π/3.

If cosec x = −2, then sin x = −1/2. Sin is negative in the third and fourth quadrants, and the reference angle is π/6. So x = π + π/6 = 7π/6 or x = 2π − π/6 = 11π/6.

Check one of each: cos(5π/3) = 1/2, so sec(5π/3) = 2. sin(7π/6) = −1/2, so cosec(7π/6) = −2.

Worked Example 4 — A quadratic in cosec x

Solve cot²x − cosec x − 1 = 0 for 0 ≤ x ≤ 2π.

There are two different functions, cot and cosec. An identity links their squares, so use it to leave only one function. Replace cot²x by cosec²x − 1:

This is a quadratic in cosec x. It factorises as (cosec x − 2)(cosec x + 1) = 0. So cosec x = 2 or cosec x = −1.

Both values are allowed, because each has size at least 1. If cosec x = 2, then sin x = 1/2, so x = π/6 or 5π/6. If cosec x = −1, then sin x = −1, so x = 3π/2. There are three solutions.

Check x = 3π/2 in the original equation: cot(3π/2) = 0 ÷ (−1) = 0 and cosec(3π/2) = −1. So 0 − (−1) − 1 = 0. It works.

Traps

Trap 1 — Pairing sec with sin

sec x is 1/cos x, not 1/sin x. Use the "co" check: in each pair, exactly one name starts with "co". Sec does not, so its partner must: cos.

Trap 2 — Reading sin⁻¹ x as cosec x

sin⁻¹ x is an angle: the inverse function. cosec x is a number: one over sin x. At x = 0.5, they are about 0.524 and 2.086. The reciprocal can also be written (sin x)⁻¹, with brackets. Without brackets, the −1 means the inverse.

Trap 3 — Keeping an impossible root

A quadratic in sec x or cosec x often gives a root between −1 and 1, such as sec x = −1/2. It is not a solution, because |sec x| ≥ 1 always. Reject it and say why. A calculator shows an error at this point, and that error means "no solution".

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. Find the exact values of sec(5π/6), cosec(3π/2) and cot(5π/4).

    Hint 1

    Write each one in terms of sin and cos. Find the quadrant of each angle first.

    Hint 2

    cos(5π/6) = −√3/2, sin(3π/2) = −1, and at 5π/4 both sin and cos equal −√2/2.

    Full answer

    sec(5π/6) = 1 ÷ (−√3/2) = −2/√3 = −2√3/3 ≈ −1.155. cosec(3π/2) = 1 ÷ (−1) = −1. cot(5π/4) = (−√2/2) ÷ (−√2/2) = 1. Check the signs: 5π/6 is in the second quadrant, where cos is negative, so sec is negative. 5π/4 is in the third quadrant, where tan is positive, so cot is positive.

  2. Show that tan θ + cot θ = sec θ cosec θ.

    Hint 1

    Change the left side to sin and cos, and add the two fractions.

    Hint 2

    The common denominator is sin θ cos θ. The numerator becomes sin²θ + cos²θ.

    Full answer

    tan θ + cot θ = sin θ/cos θ + cos θ/sin θ = (sin²θ + cos²θ)/(sin θ cos θ) = 1/(sin θ cos θ) = (1/cos θ) × (1/sin θ) = sec θ cosec θ. Check at θ = π/4: the left side is 1 + 1 = 2, and the right side is √2 × √2 = 2.

  3. Solve 2 sec²x − 3 tan x − 1 = 0 for 0 ≤ x ≤ 2π. Give exact answers where you can, and the others to 3 significant figures.

    Hint 1

    Use 1 + tan²x = sec²x to leave only tan x.

    Hint 2

    You should get 2 tan²x − 3 tan x + 1 = 0, which factorises.

    Full answer

    2(1 + tan²x) − 3 tan x − 1 = 0 gives 2 tan²x − 3 tan x + 1 = 0, so (2 tan x − 1)(tan x − 1) = 0. If tan x = 1, then x = π/4 or 5π/4. If tan x = 1/2, a calculator gives x ≈ 0.464, and tan repeats every π, so x ≈ 0.464 + π ≈ 3.61. Four solutions: π/4, 5π/4, 0.464 and 3.61. Check x = π/4: sec² = 2, so 2 × 2 − 3 × 1 − 1 = 0.

  4. On a Mercator world map, every circle of latitude is drawn as long as the equator. A circle of latitude φ on the globe has radius R cos φ, where R is the radius of the Earth. (a) Show that east–west distances at latitude φ are stretched by the factor sec φ. (b) Find the stretch at 60°. (c) At what latitude are distances stretched by a factor of 3? (d) The map stretches north–south distances by the same factor, so that small shapes look right. By what factor are areas stretched at that latitude?

    Hint 1

    The map draws a circle of length 2πR cos φ as a line of length 2πR. Divide.

    Hint 2

    For (c), sec φ = 3 means cos φ = 1/3. For (d), lengths in both directions are multiplied by the same factor.

    Full answer

    (a) The stretch is 2πR ÷ (2πR cos φ) = 1/cos φ = sec φ. (b) sec 60° = 2: distances near 60° are drawn twice as long as they should be. (c) cos φ = 1/3 gives φ ≈ 70.5°. (d) Both directions are stretched by 3, so areas are stretched by 3 × 3 = 9, which is sec²φ. Check (b) with the identity: sec²60° = 1 + tan²60° = 1 + 3 = 4, and 2² = 4.

The bigger idea

Sec x is not just a new button for exams. Sailors needed it four hundred years ago. On a Mercator map, a straight line is a route with a fixed compass direction, which makes the map ideal for steering a ship. But to draw the map, you must know how far from the equator to place each latitude. Each small step of latitude must be stretched by sec φ, so the total distance is a sum of many secants. In 1599, Edward Wright published a table made by adding up secants, minute by minute of latitude.

That sum is what calculus now calls the area under the graph of y = sec x. Around 1645, Henry Bond noticed that Wright's numbers matched a table of logarithms of tangents. Nobody could explain why until James Gregory proved it in 1668. In modern notation the result is ∫ sec x dx = ln|sec x + tan x| + c. You will meet sec again much sooner than that. In the calculus lectures, the gradient of tan x turns out to be sec²x, and the identity 1 + tan²x = sec²x helps to turn hard integrals into easy ones.

Key concepts in this lesson