Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Calculus · Unit 2 · Step-Through Animation

Finding the Derivatives of Tangent, Cotangent, Secant, and/or Cosecant Functions

Four Fractions, One Rule, and Every Co-Function Keeps the Minus

You'll learnto build all four remaining trigonometric derivatives out of the quotient rule, and to know which three of them carry a minus sign without memorising a table.

tan x is sin x over cos x, so it is a fraction, and you already have a rule for fractions. Run it and something small happens that shrinks the whole answer: the rule subtracts, the derivative of cos x is itself negative, and the two minus signs make a plus. The numerator becomes cos²x + sin²x, which is 1, and four terms of work collapse to sec²x. Do the same to cos x over sin x, to 1 over cos x and to 1 over sin x, and the other three fall out with one pattern holding every sign in place. Twelve short steps; press Next for each one.

12 STEPS · 6 QUICK CHECKS · FOUR QUOTIENT-RULE EXERCISES, NOT FOUR NEW FACTS · THE CO- NAMES CARRY THE MINUS · RADIANS ONLY · v2

tan x = sin x / cos x, so d/dx[tan x] = sec²x
Before you start
What you're looking at
The graph of tan x, in radians, drawn one branch at a time. The dashed verticals mark the inputs where cos x = 0 and tan x has no value.
The question
Four derivatives are coming. Must each be memorised on its own, or does one rule you already have produce all four, signs included?
Step 1 / 12

Read all 12 steps as text
Step 1

Four fractions

Four derivatives are left in the trigonometric library, and every one of them is a fraction built from sine and cosine: tan x = sin x/cos x, cot x = cos x/sin x, sec x = 1/cos x and csc x = 1/sin x.

Step 2

Feed it to the quotient rule

Nothing here is new. Topic 2.9 takes a top and a bottom and returns one expression, so put u = sin x over v = cos x and write down the four ingredients before assembling anything.

\(\dfrac{d}{dx}\left[\dfrac{u}{v}\right] = \dfrac{u'v - uv'}{v^{2}}\)
Step 3

Two minus signs meet

The second term is −(sin x)(−sin x), which is +sin²x, so the numerator is cos²x + sin²x. Handle only one of the two minus signs and you get cos²x − sin²x, an answer that refuses to simplify — and that is the tell.

Step 4

The two squares always total 1

Draw cos²x and sin²x as two waves and stack their heights on a moving vertical: wherever the vertical is, the two pieces fill the same bar exactly. That is the Pythagorean identity, and it turns the whole numerator into 1.

\(\dfrac{\cos^{2}x + \sin^{2}x}{\cos^{2}x} = \dfrac{1}{\cos^{2}x} = \sec^{2}x\)
Step 5

The picture that checks it

sec²x is a square, so it is never negative, and since cos²x is at most 1 it is never even below 1. The lower panel sits above its own axis with a gap, and the upper panel does exactly what that predicts.

Step 6

Secant beside cosecant

Both have a constant on top, so u′ = 0 kills the first term and one term survives. For sec x that term is −1(−sin x), where two minus signs cancel; for csc x it is −1(cos x), where nothing cancels and the minus lives on.

Step 7

Cotangent gets it twice

cot x = cos x/sin x has u′ = −sin x as well as v′ = +cos x, so both numerator terms come out negative. The identity fires a second time and (−sin²x − cos²x)/sin²x is −1/sin²x.

Step 8

Mirror images

cot x is tan(π/2 − x), which is tan x reflected. Reflection reverses every slope, so one curve climbs on every branch and the other falls on every branch, and their derivatives are forced to have opposite signs.

Step 9

The whole sign rule

Every function is paired with its co-function, and the three names that begin with "co" are exactly the three whose derivatives are negative. The second half is just as strict: each result stays inside its own family.

Step 10

Put them to work

A library result behaves like any other derivative and drops straight into the product and quotient rules as a factor. The left panel checks itself against a slope measured off the graph of x tan x, two calculations that share nothing.

Step 11

Drop the minus and watch

A student writes d/dx[cot x] = csc²x. Two of the three things about that are right, because a cosecant is correct and squared is correct, and only the sign is wrong — but the sign is the whole content of the pattern.

Step 12

One above, one below

If a sign will not come back to you, rebuild it: write the function over sine or cosine, run the rule, and look at v′. A cos x underneath brings its own minus and cancels the subtraction; a sin x underneath does not, so the minus survives.