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

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

Written by the Fiveable Content Team • Last updated June 2026
Verified for the 2027 exam
Verified for the 2027 examWritten by the Fiveable Content Team • Last updated June 2026
♾️AP Calculus AB/BC
Unit & Topic Study Guides

AP Cram Sessions 2021

Pep mascot

The four derivatives you need are ddxtanx=sec2x\frac{d}{dx}\tan x=\sec^2 x, ddxcotx=csc2x\frac{d}{dx}\cot x=-\csc^2 x, ddxsecx=secxtanx\frac{d}{dx}\sec x=\sec x\tan x, and ddxcscx=cscxcotx\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 sinx\sin x and cosx\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: sec2x\sec^2 x for tanx\tan x, csc2x-\csc^2 x for cotx\cot x, secxtanx\sec x\tan x for secx\sec x, and cscxcotx-\csc x\cot x for cscx\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 sinx\sin x and cosx\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)=tanxf(x) =\tan xf(x)=sec2xf'(x)=\sec^2 x
Cotangent Function: g(x)=cotxg(x)=\cot xg(x)=csc2xg'(x)=-\csc^2 x
Secant Function: h(x)=secxh(x)= \sec xh(x)=secxtanxh'(x)= \sec x \tan x
Cosecant Function: k(x)=cscxk(x)=\csc xk(x)=cscxcotxk'(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 sinx\sin x and cosx\cos x, so you can differentiate with the quotient rule. For example, since tanx=sinxcosx\tan x = \frac{\sin x}{\cos x}, the quotient rule gives:

ddxtanx=cosxcosxsinx(sinx)cos2x=cos2x+sin2xcos2x=1cos2x=sec2x\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 cotx=cosxsinx\cot x = \frac{\cos x}{\sin x}, secx=1cosx\sec x = \frac{1}{\cos x}, and cscx=1sinx\csc x = \frac{1}{\sin x}.

Derivative of tanx\tan x

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

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

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

Derivative of cotx\cot x

The derivative of cotx\cot x is csc2x-\csc^2 x. For example:

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

Differentiate term by term. The derivative of cotx\cot x is csc2x-\csc^2 x, so the first term becomes 5csc2x-5\csc^2 x. The derivative of xx is 11. So f(x)=15csc2xf'(x) = 1 - 5\csc^2 x.

Derivative of secx\sec x

The derivative of secx\sec x is secxtanx\sec x \tan x. For example:

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

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

Derivative of cscx\csc x

The derivative of cscx\csc x is cscxcotx-\csc x \cot x. For example:

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

The first part becomes 4cscxcotx-4\csc x \cot x, and the derivative of 7x27x^2 is 14x14x. So f(x)=4cscxcotx+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)=6sec2(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)=tan2(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)=2sec2(x)+sec(x)tan(x)f'(x) = 2 \sec^2(x) + \sec(x) \tan(x)
  2. f(x)=csc2(x)f'(x)=-\csc^2(x) (rewrite cotxcscx\frac{\cot x}{\csc x} as cosx\cos x first, since cotxcscx=cosx/sinx1/sinx=cosx\frac{\cot x}{\csc x} = \frac{\cos x / \sin x}{1/\sin x} = \cos x, then differentiate)
  3. g(x)=2tan(6x)6sec2(6x)=12tan(6x)sec2(6x)g'(x)=2\tan(6x)\cdot 6\sec^2(6x) = 12\tan(6x)\sec^2(6x)
  4. h(x)=5csc2(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

  • The derivatives of cotx\cot x and cscx\csc x are negative, while tanx\tan x and secx\sec x are positive. Mixing up the signs is a frequent error.
  • ddxsecx\frac{d}{dx}\sec x is secxtanx\sec x\tan x, not sec2x\sec^2 x. Keep the secant and tangent rules separate.
  • These derivative rules assume the angle is in radians. They do not hold for degrees.
  • 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.
  • 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.

Vocabulary

The following words are mentioned explicitly in the College Board Course and Exam Description 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.

Pep mascot
Upgrade your Fiveable account to print any study guide

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Click below to go to billing portal → update your plan → choose Yearly→ and select "Fiveable Share Plan". Only pay the difference

Plan is open to all students, teachers, parents, etc
Pep mascot
Upgrade your Fiveable account to export vocabulary

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Plan is open to all students, teachers, parents, etc
report an error
description

screenshots help us find and fix the issue faster (optional)

add screenshot