The Identity 1 + tan²θ = sec²θ

Pythagoras, divided through by cos².

Divide the identity by cos²θ

Start from the identity sin²θ + cos²θ = 1, which is Pythagoras on the circle of radius 1 and is true at every angle. An identity stays true when every term is divided by the same thing, as long as that thing is not 0.

Divide every term by cos²θ. The first term becomes sin²θ/cos²θ, the middle term cos²θ/cos²θ becomes 1, and the right side becomes 1/cos²θ. So sin²θ/cos²θ + 1 = 1/cos²θ.

Now name each part. sin θ / cos θ is tan θ, so sin²θ/cos²θ is tan²θ. 1 / cos θ is sec θ, so 1/cos²θ is sec²θ. The identity becomes tan²θ + 1 = sec²θ, usually written 1 + tan²θ = sec²θ. It holds wherever cos θ is not 0, which is every angle except 90°, 270° and the angles that differ from them by a multiple of 180°.

Pythagoras on a larger triangle

There is a picture of the same fact. Extend the radius at angle θ until it meets the vertical line x = 1. That makes a right triangle whose horizontal side is 1, whose vertical side is tan θ, and whose hypotenuse, the extended radius, is sec θ.

Pythagoras on that triangle gives 1² + tan²θ = sec²θ, the identity itself. It is the small triangle with sides cos θ, sin θ and 1, enlarged by the scale factor 1/cos θ, and dividing by cos²θ is that enlargement done to the squares.

tangent line1tan θ = 0.58sec θ = 1.15θ = 30°1 + tan²θ = 1 + 0.33 = 1.33sec²θ = 1.15² = 1.33

on the tangent line the ray rises tan θ = 0.58, and the cutting ray, the secant, is sec θ = 1.15 long: 1 + tan²θ = sec²θ is Pythagoras on this triangle

Turn the ray to 60° and read sec θ

At θ = 30° the triangle has a horizontal side of 1, a green vertical side tan 30° = 0.58 and a gold hypotenuse sec 30° = 1.15. The sums at the side show 1 + tan²θ = 1.33 and sec²θ = 1.33. Drag the angle to 60°: tan 60° = √3 and sec 60° = 2, and 1 + 3 = 4 = 2².

Checking it

At 60°, tan 60° = √3 and sec 60° = 2, so 1 + tan²60° = 1 + 3 = 4, and sec²60° = 4. At 30°, tan 30° = 1/√3 and sec 30° = 2/√3, so 1 + 1/3 = 4/3 and sec²30° = 4/3.

In radians, at 0.3, tan²0.3 = 0.0957 and sec²0.3 = 1.0957, to 4 decimal places. At 1.1, tan²1.1 = 3.8603 and sec²1.1 = 4.8603. In both, the secant squared is exactly 1 more than the tangent squared.

xy

The gold curve is y = sec²x and the plain curve is y = tan²x, over one turn with one square across for every 90°. The gold curve is the plain one lifted by exactly 1 at every x: at 0° and 180° they are 1 and 0, and the two dots at 60° are tan²60° = 3 and sec²60° = 4. Both are undefined at 90° and 270°, the dashed lines.

Dividing by sin²θ instead

Divide every term of sin²θ + cos²θ = 1 by sin²θ instead. The first term becomes 1, cos²θ/sin²θ is cot²θ, and 1/sin²θ is cosec²θ. So 1 + cot²θ = cosec²θ, which holds wherever sin θ is not 0.

Check at 30°: cot 30° = √3 and cosec 30° = 2, so 1 + 3 = 4 = 2². At 0.3 radians, cot²0.3 = 10.4505 and cosec²0.3 = 11.4505.

The two identities match by name: tan goes with sec, and cot goes with cosec. Both are better derived in one line than memorized.

A secant from a tangent

Suppose θ is acute and tan θ = 3/4. Then sec²θ = 1 + tan²θ = 1 + 9/16 = 25/16, so sec θ = 5/4 or −5/4. An acute angle has a positive cosine, so its secant is positive too: sec θ = 5/4. Then cos θ = 4/5, the reciprocal.

Check with a triangle. With 3 opposite θ and 4 adjacent, the hypotenuse is √(9 + 16) = 5, so cos θ = 4/5 and sec θ = 5/4. On a calculator, θ = 36.87° and 1 / cos 36.87° = 1.25.

The cotangent form works the same way. If θ is acute and cot θ = 4/3, then cosec²θ = 1 + 16/9 = 25/9, so cosec θ = 5/3 and sin θ = 3/5.

An equation made quadratic

Solve tan²θ + sec θ = 1 for 0° ≤ θ ≤ 360°. The equation mixes tan θ and sec θ, so replace tan²θ with sec²θ − 1: sec²θ − 1 + sec θ = 1, which is sec²θ + sec θ − 2 = 0.

That is a quadratic in sec θ, and it factors: (sec θ + 2)(sec θ − 1) = 0. So sec θ = 1, which means cos θ = 1 and θ = 0° or 360°; or sec θ = −2, which means cos θ = −½ and θ = 120° or 240°.

Check θ = 120°: tan²120° = (−√3)² = 3 and sec 120° = −2, and 3 + (−2) = 1. Check θ = 0°: 0 + 1 = 1.

The usual mistakes

Adding 1 before squaring. With tan θ = 3/4, 1 + 3/4 = 7/4 is not sec²θ; square first to get 9/16, then add 1.

Turning the answer upside down. 4/5 is cos θ; sec θ is its reciprocal, 5/4.

Pairing the wrong functions. Dividing by cos²θ gives tan and sec; dividing by sin²θ gives cot and cosec. 1 + tan²θ is sec²θ, not cosec²θ.

Moving the 1 to the wrong side. sec²θ − 1 is tan²θ, not 1 + tan²θ.

A funicular railway

In the application below, a railway rises 3 m for every 4 m across, so tan θ = 3/4, and its line is 240 m long on the map. The length of track is 240 sec θ, and 1 + tan²θ = sec²θ gives sec θ = 5/4 without finding θ.

Worked example: The Length of Track on a Funicular Railway

Question A funicular railway climbs a hillside at a steady gradient: it rises 3 m for every 4 m it goes across, so tanθ = 34, where θ is its angle with the horizontal. On the map the line is 240 m long, measured horizontally. (a) Without finding θ, find the exact value of secθ. (b) How long is the track, and how high does it climb?

  1. 1.The horizontal distance is adjacent to θ and the track is the hypotenuse, so cosθ = 240track, and the track is 240cosθ = 240secθ m.

    θ240 m240 sec θtrack = 240/cos θ = 240 sec θ
    θ240 m240 sec θtrack = 240/cos θ = 240 sec θ
    The track is the hypotenuse and the 240 m is adjacent to θ, so the track is 240secθ.
  2. 2.The identity 1 + tan2θ = sec2θ gives sec2θ = 1 + (34)2 = 1 + 916 = 2516.

    θ240 m240 sec θtrack = 240/cos θ = 240 sec θsec2θ = 1 + 9/16 = 25/16
    θ240 m240 sec θtrack = 240/cos θ = 240 sec θsec2θ = 1 + 9/16 = 25/16
    sec2θ = 1 + tan2θ = 1 + 916 = 2516.
  3. 3.(a) The angle is acute, so secθ is positive: secθ = 54. The negative root −54 is rejected, because the cosine of an acute angle is positive.

    θ240 m240 sec θtrack = 240/cos θ = 240 sec θsec2θ = 1 + 9/16 = 25/16sec θ = 5/4, positive for an acute angle
    θ240 m240 sec θtrack = 240/cos θ = 240 sec θsec2θ = 1 + 9/16 = 25/16sec θ = 5/4, positive for an acute angle
    (a) The angle is acute, so secθ = 54, not −54.
  4. 4.(b) The track is 240 × 54 = 300 m long, and it climbs 240tanθ = 240 × 34 = 180 m. Check: 2402 + 1802 = 57600 + 32400 = 90000 = 3002.

    θ240 m300 m180 mtrack = 240/cos θ = 240 sec θsec2θ = 1 + 9/16 = 25/16sec θ = 5/4, positive for an acute angletrack = 240 × 5/4 = 300 m, climb = 180 m
    θ240 m300 m180 mtrack = 240/cos θ = 240 sec θsec2θ = 1 + 9/16 = 25/16sec θ = 5/4, positive for an acute angletrack = 240 × 5/4 = 300 m, climb = 180 m
    (b) The track is 240 × 54 = 300 m, and it climbs 240 × 34 = 180 m.

Answer: (a) secθ = 54; (b) 300 m of track, climbing 180 m

Common mistakes

  • Writing sec2θ = 1 + 34. The identity has tan2θ in it, so 34 must be squared to 916 first; 1 + 34 gives secθ ≈ 1.32 and a track that is too long.
  • Taking the track as 240cosθ = 240 × 45 = 192 m. That is shorter than the map distance, which cannot be right: the track is the hypotenuse, so it is the horizontal distance divided by cosθ, which is 240secθ.

More radians and trigonometric identities problems, worked step by step →

Practice The Identity 1 + tan²θ = sec²θ in the app