AP® CALCULUS AB & BC · UNIT 2

Derivatives of tan, cot,
sec & csc

Derive the four formulas using sine and cosine. Then compare tangent slopes and use the worked examples to track signs and domains.

Topic 2.10 study notes6 worked examples · 6 practice problemsUpdated 9 November 2026
Calculus notebook with limit and integral symbols, compass and pencil on an olive and cream study desk

1. Four essential trigonometric derivative formulas

Core concept: Complete the six basic trigonometric derivatives by deriving the formulas for tanx, cotx, secx and cscx. Rewrite each function as a quotient of sine and cosine, then apply the quotient rule. Use radian measure and keep the original domain. The sine and cosine derivatives supply the starting formulas.

MEMORIZE THESE FOUR FORMULAS!

Function Derivative Leading sign in formula
tanx sec2x No explicit minus sign
cotx −csc2x Explicit minus sign
secx secxtanx No explicit minus sign
cscx −cscxcotx Explicit minus sign

Formula pattern: The cotangent and cosecant formulas have an explicit leading minus sign. This mnemonic does not mean the numerical value of the cosecant derivative is always negative.

Read the notation: sec2x=(secx)2 and csc2x=(cscx)2. These squares differ from the product forms secxtanx and cscxcotx. All formulas use radians and apply only where the original function is defined.

2. Derive tangent, cotangent, secant and cosecant

Derivation 1

Differentiate tangent

1 · Rewrite using sine and cosine

Work where cosine is nonzero.

tanx=sinxcosx

2 · Apply the quotient rule

Use the “low d high minus high d low” order in the numerator.

ddx[tanx]=cosx·cosx−sinx·(−sinx)cos2x

3 · Simplify and state the derivative

Simplify (double negative becomes positive):

ddx[tanx]=cos2x+sin2xcos2x

Use Pythagorean Identity sin2x+cos2x=1:

ddx[tanx]=1cos2x=sec2x✓
ddx[tanx]=sec2x

In Words: The derivative of tangent is secant squared.

Alternative Identity Connection:

The identity 1+tan2x=sec2x rewrites the derivative as ddx[tanx]=1+tan2x. It is an equivalent form of the result, rather than a proof of the derivative by itself.

4 · Apply the formula to short examples

ddx[tanx]=sec2x

ddx[5tanx]=5sec2x

ddx[tanx+x2]=sec2x+2x

Derivation 2

Differentiate cotangent

1 · Rewrite using sine and cosine

Work where sine is nonzero.

cotx=cosxsinx

2 · Apply the quotient rule

ddx[cotx]=sinx·(−sinx)−cosx·cosxsin2x

3 · Simplify and state the derivative

Simplify:

ddx[cotx]=−sin2x−cos2xsin2x=−(sin2x+cos2x)sin2x

Use Pythagorean Identity:

ddx[cotx]=−1sin2x=−csc2x✓
ddx[cotx]=−csc2x

In Words: The derivative of cotangent is negative cosecant squared.

Sign check. Keep the minus sign on the cotangent derivative.

Alternative Identity Connection:

The identity 1+cot2x=csc2x rewrites the derivative as ddx[cotx]=−(1+cot2x). Keep the leading minus sign on the entire quantity.

4 · Apply the formula to short examples

ddx[cotx]=−csc2x

ddx[4cotx]=−4csc2x

ddx[−cotx]=−(−csc2x)=csc2x (double negative!)

Derivation 3

Differentiate secant

1 · Rewrite using sine and cosine

Work where cosine is nonzero.

secx=1cosx

2 · Apply the quotient rule

ddx[secx]=cosx·0−1·(−sinx)cos2x=sinxcos2x

3 · Simplify and state the derivative

Rewrite as product:

ddx[secx]=1cosx·sinxcosx=secxtanx✓
ddx[secx]=secxtanx

In Words: The derivative of secant is secant times tangent.

4 · Apply the formula to short examples

ddx[secx]=secxtanx

ddx[3secx]=3secxtanx

ddx[secx−cosx]=secxtanx+sinx

Unit 3 preview

Secant by the chain rule

1 · Rewrite the reciprocal as a power

Rewrite as power: secx=(cosx)−1

2 · Differentiate and simplify

Apply Chain Rule: −1(cosx)−2·(−sinx)=sinxcos2x

Convert: ddx[secx]=secxtanx

Derivation 4

Differentiate cosecant

1 · Rewrite using sine and cosine

Work where sine is nonzero.

cscx=1sinx

2 · Apply the quotient rule

ddx[cscx]=sinx·0−1·cosxsin2x=−cosxsin2x

3 · Simplify and state the derivative

Rewrite as product:

ddx[cscx]=−1sinx·cosxsinx=−cscxcotx✓
ddx[cscx]=−cscxcotx

In Words: The derivative of cosecant is negative cosecant times cotangent.

Sign check. Keep the leading minus sign in the cosecant formula.

4 · Apply the formula to short examples

ddx[cscx]=−cscxcotx

ddx[2cscx]=−2cscxcotx

ddx[−cscx]=−(−cscxcotx)=cscxcotx (double negative!)

Unit 3 preview

Cosecant by the chain rule

1 · Rewrite the reciprocal as a power

Rewrite as power: cscx=(sinx)−1

2 · Differentiate and simplify

Apply Chain Rule: −1(sinx)−2·cosx=−cosxsin2x

Convert: ddx[cscx]=−cscxcotx

Why these derivations work: Each identity is used on its original domain, with a nonzero denominator. Apply the quotient rule using radian sine and cosine derivatives, then simplify with sin2x+cos2x=1. The chain-rule alternatives for the reciprocal functions are retained as a preview; the quotient proofs establish all four formulas without that later rule.

3. All six trigonometric derivatives

Function Derivative Key Note
sinx cosx No explicit leading minus sign
cosx −sinx Explicit leading minus sign
tanx sec2x Squared function
cotx −csc2x Explicit leading minus sign
secx secxtanx Product form
cscx −cscxcotx Explicit leading minus sign

4. Domains and the actual signs of derivatives

The derivative formulas have the same domains as these original basic functions. Let k be any integer.

FunctionsRequired conditionExcluded inputs
tanx, secxcosx≠0x≠π2+kπ
cotx, cscxsinx≠0x≠kπ

Sine and cosine, and their derivatives, are defined for all real inputs. In a sum or product, use the intersection of the original factor domains. Simplification must not fill a gap in the original expression.

A minus sign in a formula is different from a negative value

On their respective domains, sec2x>0 and −csc2x<0, so tangent has positive derivative and cotangent has negative derivative on each interval between their excluded inputs. Secant and cosecant behave differently:

(secx)′=secxtanx=sinxcos2x.
(cscx)′=−cscxcotx=−cosxsin2x.

The secant derivative has the sign of sinx; the cosecant derivative has the opposite sign of cosx. Either can be positive, negative or zero where the original function is defined. For example,

(secx)′|x=−π6=−23,(cscx)′|x=2π3=23.

Also, (secx)′|x=0=0 and (cscx)′|x=π2=0. These examples show why a mnemonic about leading signs must not be treated as a claim about increasing or decreasing behavior everywhere.

5. Patterns and memory aids

PATTERN RECOGNITION

Pattern 1: Leading minus signs in the formulas

The standard formulas for cosx, cotx and cscx have an explicit leading minus sign. The value of a derivative can still be positive, negative or zero depending on the remaining factors and the input.

  • cosx→−sinx (leading minus sign)
  • cotx→−csc2x (leading minus sign)
  • cscx→−cscxcotx (leading minus sign)

The standard formulas for sinx, tanx and secx have no explicit leading minus sign. This does not make all three derivatives positive everywhere: for instance, ddx[secx]=sinxcos2x has the sign of sine.

Pattern 2: Squared vs. Product

The quotient functions tanx and cotx have derivatives involving squared reciprocal functions:

  • tanx=sinxcosx→sec2x (reciprocal of cosine is secant)
  • cotx=cosxsinx→−csc2x (reciprocal of sine is cosecant)

The reciprocal functions secx and cscx have derivatives in product form:

  • secx=1cosx→secxtanx
  • cscx=1sinx→−cscxcotx

Pattern 3: Function Appears in Own Derivative

For secx and cscx, the original function appears as a factor in the derivative:

  • secx→secxtanx
  • cscx→−cscxcotx

Mnemonic Devices:

For Tangent & Cotangent:

"Tan goes to sec squared,
Cot goes negative, csc squared!"

For Secant & Cosecant:

"Sec times tan is what you get,
Csc cot, but don't forget: it's negative!"

Negative Sign Rule:

"C" words have minus signs!
(Cos, Cot, Csc)

6. Six worked examples with full steps

Example 1

Differentiate a tangent term

1 · Identify the terms and domain

Problem: Find f′(x) for f(x)=3tanx−2x2

Check that cosine is nonzero.

2 · Differentiate term by term

Differentiate term-by-term:

ddx[3tanx]=3sec2x

ddx[−2x2]=−4x

3 · Combine and write the answer

Combine: f′(x)=3sec2x−4x

Answer: f′(x)=3sec2x−4x

Example 2

Keep the cotangent sign

1 · Identify the terms and domain

Problem: Differentiate g(x)=5cotx+sinx

Check that sine is nonzero.

2 · Differentiate term by term

First term: ddx[5cotx]=5(−csc2x)=−5csc2x

Second term: ddx[sinx]=cosx

3 · Combine and write the answer

Combine: g′(x)=−5csc2x+cosx

Answer: g′(x)=−5csc2x+cosx

Example 3

Apply the secant product formula

1 · Identify the terms and domain

Problem: Find dydx for y=x3−4secx

Check that cosine is nonzero.

2 · Differentiate term by term

First term: ddx[x3]=3x2

Second term: ddx[−4secx]=−4(secxtanx)=−4secxtanx

3 · Combine and write the answer

Combine: dydx=3x2−4secxtanx

Answer: dydx=3x2−4secxtanx

Example 4

Track two negatives for cosecant

1 · Identify the terms and domain

Problem: Differentiate h(x)=−cscx+ex

Check that sine is nonzero.

2 · Differentiate term by term

First term (watch signs!):

ddx[−cscx]=−1·ddx[cscx]

ddx[−cscx]=−1·(−cscxcotx)

ddx[−cscx]=cscxcotx (double negative becomes positive!)

Second term: ddx[ex]=ex

3 · Combine and write the answer

Combine: h′(x)=cscxcotx+ex

Answer: h′(x)=cscxcotx+ex

Example 5

Use all four trigonometric derivatives

1 · Identify the terms and domain

Problem: Find k′(x) for k(x)=tanx−cotx+secx−cscx

Check that sine and cosine are both nonzero.

2 · Differentiate term by term

Differentiate each term:

ddx[tanx]=sec2x

ddx[−cotx]=−(−csc2x)=csc2x

ddx[secx]=secxtanx

ddx[−cscx]=−(−cscxcotx)=cscxcotx

3 · Combine and write the answer

Combine all:

k′(x)=sec2x+csc2x+secxtanx+cscxcotx

Answer: k′(x)=sec2x+csc2x+secxtanx+cscxcotx

Example 6

Combine trigonometric and polynomial terms

1 · Identify the terms and domain

Problem: Differentiate f(x)=2tanx+3cotx−x2+5

Check that sine and cosine are both nonzero.

2 · Differentiate term by term

f′(x)=2sec2x+3(−csc2x)−2x+0

3 · Combine and write the answer

f′(x)=2sec2x−3csc2x−2x

Answer: f′(x)=2sec2x−3csc2x−2x

Keep the domains: Examples 1 and 3 require cosx≠0. Examples 2 and 4 require sinx≠0. Examples 5 and 6 require both sinx≠0 and cosx≠0. In every case, the derivative is stated on that original domain and trigonometric inputs use radians.

7. Evaluate derivatives and write tangent lines

Application

Exact derivative values at a common angle

1 · Find the exact trigonometric values

At a=π4, all four functions are defined. Use sina=cosa=22, tana=cota=1 and seca=csca=2.

2 · Evaluate the four derivatives

FunctionFunction value at aDerivative value at a
tanx1sec2a=2
cotx1−csc2a=−2
secx2secatana=2
cscx2−cscacota=−2

Application

A tangent line uses both value and slope

1 · Find the point and slope

For f(x)=tanx at a=π4, the point is (π4,1) and the slope is f′(a)=2. Therefore

2 · Write the point-slope equation

y−f(a)=f′(a)(x−a),y−1=2(x−π4).

3 · Compare with a horizontal tangent

For g(x)=secx at zero, g(0)=1 and g′(0)=0, so the tangent is the horizontal line y=1. A zero slope is allowed even though the secant derivative formula has no leading minus sign.

Application

Combine with the product and quotient rules

1 · Differentiate a product

These formulas also apply inside products and quotients. Two complete applications are:

ddx[xtanx]=tanx+xsec2x,cosx≠0.

2 · Differentiate a quotient and keep its domain

ddx[tanxx]=xsec2x−tanxx2.

The quotient requires both x≠0 and cosx≠0. In each calculation, identify the original structure before selecting the product rule or quotient rule.

Compare the four tangent slopes

Each graph marks the same input a=π4 and uses the same axis scales. Tangent and cotangent have the same height at that input and slopes of opposite signs. The same comparison holds for secant and cosecant.

  • Function
  • Tangent at the marked point
  • Vertical asymptote

Tangent

Point P=(π4,1). Tangent slope m=2. Visible asymptote x=π2.

Cotangent

Point P=(π4,1). Tangent slope m=−2. Visible asymptote x=0.

Secant

Point P=(π4,2). Tangent slope m=2. Visible asymptote x=π2.

Cosecant

Point P=(π4,2). Tangent slope m=−2. Visible asymptote x=0.

8. Common mistakes and corrected reasoning

  • Mistake 1: Dropping a leading minus sign. The correct formula is ddx[cotx]=−csc2x.
  • Mistake 2: Confusing a square with a product. The secant derivative is ddx[secx]=secxtanx; tangent has the square derivative sec2x.
  • Mistake 3: Treating factor order as an error. The expressions tanxsecx and secxtanx are equal, so either is a correct secant derivative. Both factors are required.
  • Mistake 4: Interchanging the tangent and cotangent formulas. Tangent gives sec2x; cotangent gives −csc2x, on their respective domains.
  • Mistake 5: Losing a double negative. The constant multiple rule gives ddx[−cotx]=−(−csc2x)=csc2x.
  • Mistake 6: Applying the radian formulas to a degree-valued input without rescaling. The standard formulas on this page use radians; a degree-valued variable introduces an extra scale factor.
  • Mistake 7: Dropping a constant coefficient. For example, ddx[5tanx]=5sec2x.
  • Mistake 8: Mixing the reciprocal-function names. Keep the pairs together: ddx[secx]=secxtanx and ddx[cscx]=−cscxcotx.

9. Strategies for learning and applying the formulas

Essential Tips

  • Remember formula structure: Cosine, cotangent and cosecant have explicit leading minus signs; secant and cosecant have product-form derivatives. Numerical signs still depend on the input.
  • Practice sign discipline: Write out negative signs explicitly
  • Use flashcards to recall the four formulas and their domain conditions.
  • Double-check negatives: When you see minus signs, trace through carefully
  • Know the proofs: Understanding WHY helps remember the formulas
  • Connect to identities: 1+tan2x=sec2x and 1+cot2x=csc2x
  • Use radians for the standard trigonometric derivative formulas.

Memorization Strategy

5-Step Memorization Process:

  1. Learn the formula pattern: The standard cosine, cotangent and cosecant formulas contain leading minus signs.
  2. Group by type: Squared (tan, cot) vs. Product (sec, csc)
  3. Connect to sin/cos: All four derive from sin and cos using Quotient Rule
  4. Practice sign drills: Write each derivative 10 times focusing on signs
  5. Test yourself: Random flash cards until automatic

Radian measure and a composition preview

If T(t)=tan(πt180) represents a degree-valued numerical input, the chain rule gives T′(t)=π180sec2(πt180), wherever the cosine denominator is nonzero. This scale factor explains why the standard radian formula cannot be applied unchanged to a degree-valued variable.

For the later composition examples, ddx[tan(3x)]=3sec2(3x) and ddx[sec(x2)]=2xsec(x2)tan(x2). Keep the inner derivative and the domain of the original composition.

10. Six practice problems with solutions

Try all six original tasks before opening the solutions. Use radians and state the original domain.

1. Tangent and cosine

Differentiate f(x)=4tanx+cosx.

Show the two basic derivatives

Practice 1

Worked solution

1 · Apply the derivative rules

f′(x)=4sec2x−sinx.

2 · Interpret the result on the original domain

The coefficient four remains, and cosine supplies the minus sign. The domain requires cosx≠0.

2. A negative cotangent coefficient

Differentiate g(x)=−3cotx+x2.

Show the double negative

Practice 2

Worked solution

1 · Apply the derivative rules

g′(x)=−3(−csc2x)+2x=3csc2x+2x.

2 · Interpret the result on the original domain

The cotangent factor requires sinx≠0.

3. Secant and cosecant

Differentiate h(x)=secx+cscx.

Show the two product-form derivatives

Practice 3

Worked solution

1 · Apply the derivative rules

h′(x)=secxtanx−cscxcotx.

2 · Interpret the result on the original domain

Both sinx≠0 and cosx≠0 are required.

4. Mixed terms

Differentiate k(x)=2tanx−5secx+3x.

Show each coefficient and sign

Practice 4

Worked solution

1 · Apply the derivative rules

k′(x)=2sec2x−5secxtanx+3.

2 · Interpret the result on the original domain

Differentiate term by term. The domain requires cosx≠0.

5. Cotangent, cosecant and sine

Differentiate f(x)=cotx+cscx+sinx.

Show both leading minus signs

Practice 5

Worked solution

1 · Apply the derivative rules

f′(x)=−csc2x−cscxcotx+cosx.

2 · Interpret the result on the original domain

Cotangent and cosecant each supply a leading minus sign. The domain requires sinx≠0.

6. Evaluate at a special angle

For f(x)=tanx, find f′(π4).

Show the exact value and domain check

Practice 6

Worked solution

1 · Apply the derivative rules

f′(x)=sec2x.
f′(π4)=sec2(π4)=(2)2=2.

2 · Interpret the result on the original domain

The angle belongs to the original domain because cos(π4)=22≠0. The function value is one, while its derivative value is two.

11. Write a clear AP-style response

How to write a clear AP-style solution:

  • Recall the formulas fluently: Practise the four derivatives and know how quotient identities justify them.
  • Track signs accurately: Retain leading minus signs, coefficients and any signs from other differentiation rules.
  • Show the requested reasoning: Include enough differentiation and evaluation to support the result. If asked to derive a formula, show the quotient-rule and identity steps.
  • Simplify purposefully: Combine or factor terms when helpful or requested. Equivalent correct derivative forms can both be valid.
  • Watch for trick questions: Double negatives, mixed terms
  • Know all six trig derivatives: Often mixed with sin/cos in problems
  • Unit 3: Topic 3.1 introduces the chain rule for compositions. A trigonometric function with an inner expression requires that inner derivative factor.
  • Use proper notation: f′(x), dydx, etc.

Common FRQ Formats:

  1. Find f′(x) for a function involving trigonometric terms.
  2. Find the tangent slope at x=a by evaluating f′(a) at an input in the original domain.
  3. "Show that the derivative equals..." (prove given result)
  4. Solve f′(x)=0 within the original domain. Later critical-number questions also check domain points where a derivative fails to exist.
  5. "Find an equation of the tangent line..." (use derivative as slope)
  6. Determine increasing intervals by analysing where f′(x)>0 within the original domain.
  7. Evaluate a limit that matches a known derivative definition. Later, Topic 4.7 introduces L'Hôpital's rule for appropriate indeterminate limits in both AB and BC; it is a separate method with required conditions.

Connections to practise:

  • Chain Rule: tan(3x), sec(x2)
  • Product Rule: xtanx, exsecx
  • Quotient Rule: tanxx, xcotx
  • Related rates: Problems involving trig functions changing over time
  • Optimization: Max/min problems with trig constraints

12. Four-formula quick reference

THE FOUR DERIVATIVES - MEMORIZE NOW!

ddx[tanx]=sec2x ddx[cotx]=−csc2x
ddx[secx]=secxtanx ddx[cscx]=−cscxcotx

Formula pattern: cotangent and cosecant have explicit leading minus signs.

Tangent and cotangent: squared forms. Secant and cosecant: product forms.

Conditions: Use radians. Tangent and secant require cosx≠0; cotangent and cosecant require sinx≠0. Leading minus signs describe formula structure; evaluate the complete expression to determine the numerical sign.

13. Connections and next study steps

Topic 2.10 connects to:

  • Topic 2.7: The derivatives of sinx and cosx underpin all four quotient derivations.
  • Topics 2.8 and 2.9: The product and quotient rules combine these formulas in more complex expressions. All four formulas on this page can be derived using the quotient rule.
  • Topic 3.1: The chain rule extends the formulas to composite trigonometric functions.
  • Unit 5: Optimization and other analytical applications can involve trigonometric constraints.
  • Unit 4: Related rates with angles, periodic motion
  • Unit 6: Integration of trig functions (reverse process)
  • BC Only - Unit 10: Taylor series for trig functions use these derivatives
  • Real-world: Waves, oscillations, circular motion all use trig derivatives

Remember: The four formulas are (tanx)′=sec2x, (cotx)′=−csc2x, (secx)′=secxtanx and (cscx)′=−cscxcotx. They follow from sine and cosine identities and the quotient rule. Use radians and retain domain exclusions. A leading minus sign is part of a formula, not a guarantee that its value is negative at every input.