| Study Guides
AP · Derivatives of tan, cot, sec, csc · 14 min read · Updated 2026-05-10

Derivatives of tan, cot, sec, csc — AP Calculus BC Study Guide

For: AP Calculus BC candidates sitting AP Calculus BC.

Covers: Derivative formulas for , , , and , derivation of these formulas using the quotient rule and sine/cosine derivatives, application of formulas to routine and chain-rule problems, and identification of common sign errors.

You should already know: Derivatives of sine and cosine. Quotient rule for differentiation. Chain rule for composite functions.

A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Calculus BC style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.


1. What Is Derivatives of tan, cot, sec, csc?

This topic extends basic differentiation rules for trigonometric functions beyond sine and cosine to the four quotient and reciprocal trigonometric functions: tangent, cotangent, secant, and cosecant. Per the AP Calculus BC Course and Exam Description (CED), this topic falls within Unit 2: Differentiation: Definition and Fundamental Properties, which accounts for 10–12% of the total AP exam score. This topic is tested on both multiple-choice (MCQ) and free-response (FRQ) sections of the exam. It commonly appears as a component of larger problems (such as finding tangent slopes, related rates, or optimization) but may also be tested directly as a standalone MCQ question. Unlike sine and cosine, which follow simple sign patterns, these four trigonometric derivatives have unique sign variations and trigonometric outputs that require consistent practice to master. Learning to derive these formulas from first principles reinforces your understanding of how basic differentiation rules combine to produce new results, and helps you correct mistakes on exam day.

2. Deriving the Four Derivative Formulas

All four derivatives can be derived directly from rewriting the target trigonometric function in terms of sine and cosine, then applying the quotient rule. Recall the quotient rule for : We start with . Using () and (), substitute into the quotient rule: $$ \frac{d}{dx}\tan x = \frac{(\cos x)(\cos x) - (\sin x)(-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} $$ Using the Pythagorean identity , this simplifies to . Repeating this process for the other three functions gives the full set of formulas:

Worked Example

Derive from first principles using the quotient rule, confirming the standard derivative formula.

  1. Rewrite in terms of sine: , so we have with and .
  2. Identify derivatives of the numerator and denominator: , .
  3. Apply the quotient rule:
  4. Rewrite in terms of cosecant and cotangent: , which matches the standard formula.

Exam tip: If you blank on the sign or form of a derivative on exam day, quickly rederive it in the margin using the quotient rule—this takes 30 seconds and eliminates guesswork.

3. Routine Differentiation of Combined Functions

Once you know the four derivative formulas, you can combine them with other basic differentiation rules (sum, difference, constant multiple, product, quotient) to differentiate functions that include these trigonometric terms. This is the most common direct application tested on the MCQ section. Domain rules from trigonometry still apply: a function is only differentiable at points where it is defined, so derivatives of these functions will be undefined at the same points where the original function has vertical asymptotes. For example, is undefined at for all integers , so its derivative is also undefined at these points, meaning is not differentiable there.

Worked Example

Find the derivative of , and evaluate .

  1. Differentiate term-by-term using the sum/difference and constant multiple rules:
  2. Combine terms to get the general derivative:
  3. Substitute and use unit circle values (, , ):

Exam tip: When evaluating derivatives at common angles, double-check your unit circle values—AP exam distractors often use incorrect trigonometric values for angles like or .

4. Differentiating Composite Functions with the Chain Rule

Most AP exam questions involving these derivatives use composite functions, where the trigonometric term is a function of a non-trivial inner function (e.g. , ). For these problems, you must apply the chain rule, which states that for , . The process is: (1) identify the outer trigonometric function and inner function, (2) compute the derivative of the outer function (using the standard trigonometric derivative formula) evaluated at the inner function, (3) multiply by the derivative of the inner function, (4) substitute the inner function back into the final result. This skill is a foundational building block for nearly all advanced calculus topics including implicit differentiation, related rates, and integration by substitution.

Worked Example

Find the derivative of .

  1. Identify outer and inner functions: let (inner), so (outer).
  2. Compute derivatives of outer and inner: (from the standard derivative formula), .
  3. Apply the chain rule: .
  4. Substitute back to get the final result:

Exam tip: Even for simple composite functions like , explicitly write down the inner derivative before finishing your work—this eliminates the common mistake of forgetting the chain rule factor.

5. Common Pitfalls (and how to avoid them)

  • Wrong move: Writing instead of . Why: Students confuse the derivative patterns of tangent and cotangent, mixing up which reciprocal function matches which derivative. Correct move: If you can't remember the form, rederive the derivative of in 30 seconds using the quotient rule to confirm.
  • Wrong move: Writing and , swapping the product terms. Why: The product structures for secant and cosecant derivatives are similar, so students mix up the paired trigonometric factors. Correct move: Use the mnemonic: "sec pairs with tan, csc pairs with cot, all co-functions get a negative sign".
  • Wrong move: Forgetting the inner derivative factor for , missing the factor of 5. Why: Students memorize the outer derivative and stop, forgetting the chain rule requirement for any composite function. Correct move: For any trigonometric function of anything other than just , always ask "what is the derivative of the inside?" and multiply by that result before finishing.
  • Wrong move: Missing the negative sign on . Why: Students forget the negative sign that arises naturally from the quotient rule derivation for co-functions. Correct move: Always add a negative sign when differentiating any trigonometric function that starts with "co-" (cotangent, cosecant).
  • Wrong move: Calculating for , claiming the derivative exists at this point. Why: Students confuse the derivative formula with domain of differentiability—if the original function is undefined at a point, it cannot be differentiable there. Correct move: Always confirm the original function is defined at a point before evaluating the derivative at that point.

6. Practice Questions (AP Calculus BC Style)

Question 1 (Multiple Choice)

What is the derivative of ? A. B. C. D.

Worked Solution: To solve this, we use the product rule: . Let so , and so . Substitute into the product rule: . Options A, C, and D all have incorrect signs or miss the product rule term for . The correct answer is B.


Question 2 (Free Response)

Let for . (a) Find , the derivative of . (b) Find the slope of the line tangent to at . (c) Write the equation of the tangent line at .

Worked Solution: (a) Differentiate term-by-term, applying the chain rule to the first term. For , the outer derivative is and the inner derivative of is . For , the derivative is . Combining gives: (b) The slope of the tangent line at is . Substitute (using , ): (c) First find the point : . Use point-slope form :


Question 3 (Application / Real-World Style)

The position of a weighted mass oscillating along a spring in a fluid is given by , where is measured in centimeters and is measured in seconds, for . Find the velocity of the mass at seconds. Include units and interpret your result.

Worked Solution: Velocity is the first derivative of position . Differentiate using the chain rule: the derivative of is , and the inner derivative of is . This gives: Evaluate at : , so cm/s. In context, this means the mass is moving away from its equilibrium position at approximately 0.34 centimeters per second at seconds.

7. Quick Reference Cheatsheet

Category Formula Notes
Derivative of Defined for all ,
Derivative of Defined for all , ; negative for co-function
Derivative of Defined for all , ; no negative sign
Derivative of Defined for all , ; negative for co-function
Chain Rule for Composite Trig Applies to all etc. when
Product Rule Used when are multiplied by another function
Quotient Rule for Re-derivation Use to confirm formulas on exam day if you forget

8. What's Next

Mastering the derivatives of is an essential prerequisite for all upcoming differentiation topics, starting with implicit differentiation and derivatives of inverse trigonometric functions. Many implicit differentiation problems include combinations of all six trigonometric functions, so you need to differentiate these four terms quickly and correctly to avoid early errors that cascade through the rest of your work. This topic also feeds into chain rule applications, related rates, optimization, integration of trigonometric functions, and differential equations later in the course. Without these four derivative formulas memorized and readily accessible, you will struggle to make progress on nearly all multi-step FRQ problems that involve trigonometric functions.

Implicit Differentiation Chain Rule for Composite Functions Derivatives of Inverse Functions Derivatives of Inverse Trigonometric Functions

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →