Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

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

add to ChatGPT
Verified for the 2027 examUpdated September 2026Fiveable Content Team
Fiveable

♾️AP Calculus AB/BC Unit 2 Review

QR code for AP Calculus AB/BC practice questions

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

The four derivatives you need are ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x=\sec^2 x, ddxcot⁡x=−csc⁡2x\frac{d}{dx}\cot x=-\csc^2 x, ddxsec⁡x=sec⁡xtan⁡x\frac{d}{dx}\sec x=\sec x\tan x, and ddxcsc⁡x=−csc⁡xcot⁡x\frac{d}{dx}\csc x=-\csc x\cot x. You can either memorize them or derive each one by rewriting the function as a ratio of sin⁡x\sin x and cos⁡x\cos x and applying the quotient rule. For AP Calculus, keep the negative signs on cotangent and cosecant derivatives.

Why This Matters for the AP Calculus Exam

Tangent, cotangent, secant, and cosecant show up all over differentiation problems, so knowing their derivatives quickly saves time on both multiple-choice and free-response work. This topic also reinforces the bigger idea that you can rewrite a function using identities and then apply rules you already know, like the quotient rule and product rule. Once you combine these with the chain rule, you can differentiate composite expressions like tan⁡(6x)\tan(6x) or sec⁡(ax+b)\sec(ax+b), which appear in later units on motion, related rates, and curve analysis.

Key Takeaways

  • Learn the four derivatives: sec⁡2x\sec^2 x for tan⁡x\tan x, −csc⁡2x-\csc^2 x for cot⁡x\cot x, sec⁡xtan⁡x\sec x\tan x for sec⁡x\sec x, and −csc⁡xcot⁡x-\csc x\cot x for csc⁡x\csc x.
  • The two "co" functions (cotangent and cosecant) have negative derivatives. Pair that fact with the matching identities to keep signs straight.
  • You can derive every rule by rewriting in terms of sin⁡x\sin x and cos⁡x\cos x and using the quotient rule, so memorizing is optional.
  • These derivatives only work when the angle is in radians.
  • Combine these with the sum, product, quotient, and chain rules to handle longer expressions.
  • Rewriting a trig expression with an identity first often makes the derivative much easier.

Derivatives of Tangent, Cotangent, Secant, and Cosecant

Here is a quick-reference table for the four derivatives.

FunctionDerivative
Tangent Function: f(x)=tan⁡xf(x) =\tan xf′(x)=sec⁡2xf'(x)=\sec^2 x
Cotangent Function: g(x)=cot⁡xg(x)=\cot xg′(x)=−csc⁡2xg'(x)=-\csc^2 x
Secant Function: h(x)=sec⁡xh(x)= \sec xh′(x)=sec⁡xtan⁡xh'(x)= \sec x \tan x
Cosecant Function: k(x)=csc⁡xk(x)=\csc xk′(x)=−csc⁡xcot⁡xk'(x) = -\csc x \cot x

These hold only for angles measured in radians, not degrees.

The reason these rules work is that each function can be written using sin⁡x\sin x and cos⁡x\cos x, so you can differentiate with the quotient rule. For example, since tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}, the quotient rule gives:

ddxtan⁡x=cos⁡x⋅cos⁡x−sin⁡x⋅(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2x=sec⁡2x\frac{d}{dx}\tan x = \frac{\cos x \cdot \cos x - \sin x \cdot (-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x

You can build the other three the same way using cot⁡x=cos⁡xsin⁡x\cot x = \frac{\cos x}{\sin x}, sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}, and csc⁡x=1sin⁡x\csc x = \frac{1}{\sin x}.

Derivative of tan⁡x\tan x

The derivative of tan⁡x\tan x is sec⁡2x\sec^2 x. Consider:

f(x)=3tan⁡x+2x2f(x)=3\tan x+2x^2

Differentiate 3tan⁡x3\tan x and 2x22x^2 separately. The derivative of tan⁡x\tan x is sec⁡2x\sec^2 x, so the first part becomes 3sec⁡2x3\sec^2 x. The derivative of 2x22x^2 is 4x4x. So f′(x)=3sec⁡2x+4xf'(x) = 3\sec^2 x + 4x.

Derivative of cot⁡x\cot x

The derivative of cot⁡x\cot x is −csc⁡2x-\csc^2 x. For example:

f(x)=5cot⁡x+xf(x)=5\cot x+x

Differentiate term by term. The derivative of cot⁡x\cot x is −csc⁡2x-\csc^2 x, so the first term becomes −5csc⁡2x-5\csc^2 x. The derivative of xx is 11. So f′(x)=1−5csc⁡2xf'(x) = 1 - 5\csc^2 x.

Derivative of sec⁡x\sec x

The derivative of sec⁡x\sec x is sec⁡xtan⁡x\sec x \tan x. For example:

f(x)=2sec⁡x+3x3f(x)=2\sec x+3x^3

The first term becomes 2sec⁡xtan⁡x2\sec x \tan x, and the derivative of 3x33x^3 is 9x29x^2. So f′(x)=2sec⁡xtan⁡x+9x2f'(x) = 2\sec x \tan x + 9x^2.

Derivative of csc⁡x\csc x

The derivative of csc⁡x\csc x is −csc⁡xcot⁡x-\csc x \cot x. For example:

f(x)=4csc⁡x+7x2f(x)=4\csc x+7x^2

The first part becomes −4csc⁡xcot⁡x-4\csc x \cot x, and the derivative of 7x27x^2 is 14x14x. So f′(x)=−4csc⁡xcot⁡x+14xf'(x) = -4\csc x \cot x + 14x.

How to Use This on the AP Calculus Exam

Problem Solving

Identify which trig function you have, then apply the matching derivative. When the function is bundled with polynomial or other terms, differentiate term by term using the sum and constant multiple rules.

Common Trap

When the inside of the trig function is more than just xx, you need the chain rule. For example, ddxtan⁡(6x)=6sec⁡2(6x)\frac{d}{dx}\tan(6x) = 6\sec^2(6x), and ddxsec⁡(ax+b)=asec⁡(ax+b)tan⁡(ax+b)\frac{d}{dx}\sec(ax+b) = a\sec(ax+b)\tan(ax+b). Forgetting to multiply by the derivative of the inside is one of the most common mistakes.

Rewrite First

If an expression looks messy, try rewriting with an identity before differentiating. A quotient of trig functions can sometimes simplify into a single function, which makes the derivative shorter and lowers your chance of an algebra error. Clear structure is important for clear exam work, especially on free-response.

Practice Problems

Find the derivatives for the following problems.

  1. f(x)=2tan⁡(x)+sec⁡(x)f(x) = 2 \tan(x) + \sec(x)
  2. f(x)=cot⁡(x)csc⁡(x)f(x) = \frac{\cot(x)}{\csc(x)}
  3. g(x)=tan⁡2(6x)g(x) =\tan^2(6x)
  4. h(x)=5cot⁡(x)h(x) = 5\cot(x)

Use the chain rule, sum rule, and quotient rule where needed.

Solutions

  1. f′(x)=2sec⁡2(x)+sec⁡(x)tan⁡(x)f'(x) = 2 \sec^2(x) + \sec(x) \tan(x)
  2. f′(x)=−csc⁡2(x)f'(x)=-\csc^2(x) (rewrite cot⁡xcsc⁡x\frac{\cot x}{\csc x} as cos⁡x\cos x first, since cot⁡xcsc⁡x=cos⁡x/sin⁡x1/sin⁡x=cos⁡x\frac{\cot x}{\csc x} = \frac{\cos x / \sin x}{1/\sin x} = \cos x, then differentiate)
  3. g′(x)=2tan⁡(6x)⋅6sec⁡2(6x)=12tan⁡(6x)sec⁡2(6x)g'(x)=2\tan(6x)\cdot 6\sec^2(6x) = 12\tan(6x)\sec^2(6x)
  4. h′(x)=−5csc⁡2(x)h'(x)=-5\csc^2(x)

These problems combine all the derivative rules from this unit. If you need a refresher, check these out:

2.5 Applying the Power Rule

2.6 Derivative Rules: Constant, Sum, Difference, and Constant Multiple

2.7 Derivatives of cos x, sinx, e^x, and ln x

2.8 The Product Rule

2.9 The Quotient Rule

Common Misconceptions

  • Misconception: The derivatives of cot x and csc x are positive, while tan x and sec x are negative.
    Actually: The derivatives of cot⁡x\cot x and csc⁡x\csc x are negative, while tan⁡x\tan x and sec⁡x\sec x are positive. Mixing up the signs is a frequent error.
  • Misconception: The derivative of sec⁡x\sec x is sec⁡2x\sec^2 x.
    Actually: ddxsec⁡x\frac{d}{dx}\sec x is sec⁡xtan⁡x\sec x\tan x, not sec⁡2x\sec^2 x. Keep the secant and tangent rules separate.
  • Misconception: These derivative rules hold for degrees.
    Actually: These derivative rules assume the angle is in radians. They do not hold for degrees.
  • Misconception: The chain rule is not required whenever the angle is a function of xx.
    Actually: The chain rule is required whenever the angle is a function of xx, not just xx by itself. For tan⁡(6x)\tan(6x), you must multiply by 66.
  • Misconception: Rewriting with an identity changes the function, so it is not a safe step.
    Actually: Rewriting with an identity does not change the function, so it is a safe step. Use it to simplify before differentiating instead of forcing the quotient rule through a long expression.

Practice Questions for 2.10

1 of 10

A student derives the derivative of f(x)=cot⁡xf(x) = \cot x using the quotient rule. Their work is shown: Step 1: f(x)=cos⁡xsin⁡xf(x) = \frac{\cos x}{\sin x} Step 2: f′(x)=(sin⁡x)(sin⁡x)−(cos⁡x)(cos⁡x)(sin⁡x)2f'(x) = \frac{(\sin x)(\sin x) - (\cos x)(\cos x)}{(\sin x)^2} Step 3: f′(x)=sin⁡2x−cos⁡2xsin⁡2xf'(x) = \frac{\sin^2 x - \cos^2 x}{\sin^2 x} Which statement correctly verifies this solution?

A.

The work is valid because the final expression is mathematically equal to −csc⁡2x-\csc^2 x.

B.

The work is invalid because Step 2 incorrectly evaluates the numerator's derivative.

C.

The work is invalid because Step 3 incorrectly simplifies the trigonometric identity.

D.

The work is valid because the quotient rule is applied correctly throughout Step 2.

Vocabulary

The following words are mentioned explicitly in the AP® course framework for this topic.

Term

Definition

cosecant

A trigonometric function defined as the reciprocal of sine.

cotangent

A trigonometric function defined as the ratio of cosine to sine.

derivative

The instantaneous rate of change of a function at a specific point, representing the slope of the tangent line to the function at that point.

derivative rules

Formulas and procedures used to calculate derivatives, such as the product rule and quotient rule.

differentiable function

Functions that have a derivative at every point in their domain, meaning they are smooth and continuous without sharp corners or breaks.

identities

Equations that are true for all values of the variables, used to rewrite trigonometric expressions.

products

The result of multiplying two or more functions together.

quotient

The result of dividing one function by another.

secant

A trigonometric function defined as the reciprocal of cosine.

tangent

A trigonometric function defined as the ratio of sine to cosine.

Frequently Asked Questions

What is the derivative of tan x?

The derivative of tan x is sec^2 x, assuming x is measured in radians. You can derive it by rewriting tan x as sin x over cos x and using the quotient rule.

What is the derivative of cot x?

The derivative of cot x is -csc^2 x. The negative sign is easy to miss, so pair cotangent with cosecant squared when memorizing.

What is the derivative of sec x?

The derivative of sec x is sec x tan x. If the inside is more than x, multiply by the derivative of the inside using the chain rule.

What is the derivative of csc x?

The derivative of csc x is -csc x cot x. Like cotangent, cosecant has a negative derivative.

How do you remember the trig derivative signs?

The co-functions cot x and csc x have negative derivatives, while tan x and sec x have positive derivatives. That pattern helps keep signs straight.

Why do trig derivative formulas require radians?

The standard derivative formulas for trig functions assume radian measure. If angles are measured in degrees, the derivative includes an extra conversion factor.