PrepGo

Finding the Derivatives of Tangent, Cotangent, Secant, and/or Cosecant Functions - AP Calculus BC Study Guide

Written by AP Content Team, Verified for 2026 AP Exams, Last updated: May 2026

Learn with study guides reviewed by top AP teachers. This guide takes about 10 minutes to read.

The Core Idea: Finding the Derivatives of Tangent, Cotangent, Secant, and/or Cosecant Functions

This topic expands our differentiation toolkit to include all six standard trigonometric functions. While the derivatives of sine and cosine are foundational, the derivatives of tangent, cotangent, secant, and cosecant are not arbitrary rules to be memorized in isolation. The core concept is that these four additional derivative rules can be logically derived using the definitions of the functions in terms of sine and cosine (e.g., ) in conjunction with the quotient rule.

Understanding this connection is crucial. It reinforces the interconnectedness of calculus rules and provides a method to re-derive the formulas if they are forgotten. By mastering these derivatives, we can analyze the rates of change of a wider variety of periodic functions and solve more complex problems involving trigonometric models.

Key Formulas

The derivatives of the tangent, cotangent, secant, and cosecant functions are essential rules for differentiation.

  • Derivative of Tangent:

  • Derivative of Cotangent:

  • Derivative of Secant:

  • Derivative of Cosecant:

Understanding the Derivations

A key piece of essential knowledge is that these formulas are not random; they are direct consequences of the derivatives of sine and cosine, applied through the quotient rule. Understanding how to derive them provides a deeper conceptual grasp and a fallback method for recalling the formulas.

Let's demonstrate the derivation for .

  1. Rewrite the function: Start by expressing in terms of and .

  2. Apply the Quotient Rule: Use the quotient rule, , where and . We know and .

  3. Substitute the known derivatives:

  4. Simplify the numerator:

  5. Apply the Pythagorean Identity: Use the identity .

  6. Use the reciprocal identity: Since , we have .

This same process can be used to derive the formulas for , , and .

Core Concepts & Rules

  • The derivatives of all six trigonometric functions must be known. The four covered in this topic are:

  • Each of these derivative rules can be proven by first rewriting the function in terms of sine and cosine and then applying the quotient rule.

  • Notice a pattern with the "co-" functions: the derivatives of and are negative.

Step-by-Step Example 1: Basic Application

Problem: Find the derivative of .

Solution:

  1. Apply the Difference Rule: The derivative of a difference is the difference of the derivatives.

  2. Apply the Constant Multiple Rule: The constant can be factored out of the first derivative.

  3. Apply the Specific Trigonometric Derivative Rules: Use the memorized formulas for the derivatives of secant and cotangent.

    Substitute these into the expression:

  4. Simplify the Expression: Be careful with the double negative.

Step-by-Step Example 2: Exam-Style Application

Problem: Find the equation of the line normal to the graph of at .

Solution:

  1. Find the derivative, : The function is a product of and , so we must use the product rule: .

    • Let and .

    • Then and .

  2. Find the slope of the tangent line (): Evaluate the derivative at .

    • Recall the values from the unit circle:

    Substitute these values into :

  3. Find the slope of the normal line (): The normal line is perpendicular to the tangent line. Its slope is the opposite reciprocal of .

  4. Find the point of tangency (): Evaluate the original function at .

    The point is .

  5. Write the equation of the normal line: Use the point-slope form .

Using Your Calculator

The derivatives of tangent, cotangent, secant, and cosecant are found analytically (by hand). A calculator is not used to find the symbolic derivative itself, but it is an excellent tool for checking your work.

To verify the derivative found in Example 2, for :

  1. Graph the numerical derivative: In your calculator's graphing screen (e.g., Y1), enter the numerical derivative of the original function. The syntax is typically nDeriv( or .

    • Y1 = nDeriv(X * 1/sin(X), X, X)

    (Note: You must enter as )

  2. Graph your analytical derivative: In a second slot (e.g., Y2), enter the derivative you calculated by hand.

    • Y2 = 1/sin(X) - X * (1/sin(X)) * (1/tan(X))
  3. Compare: Graph both functions. If they produce the exact same curve, your analytical derivative is very likely correct. You can also compare their values in the table (TBLSET/TABLE) to confirm they match for all -values.

AP Exam Quick Hit

Common Question Types

  • Combining with Product/Quotient/Chain Rules: You will rarely be asked for just the derivative of . More commonly, you'll need to find the derivative of a more complex function.

    • Example: Find for . (Requires quotient rule)
  • Finding Tangent and Normal Lines: A classic application where you must find the derivative, evaluate it at a point to find the slope, find the coordinates of the point, and write the equation of a line.

    • Example: "Write the equation of the line tangent to at ."
  • Finding Locations of Horizontal Tangents: This involves setting the derivative equal to zero and solving for over a given interval.

    • Example: "Find all values of in for which the function has a horizontal tangent line." (Requires solving ).

Common Mistakes

  • Sign Errors: The most frequent mistake is forgetting the negative sign on the derivatives of and .

  • Formula Swapping: Confusing the derivative formulas, such as writing (confusing it with tangent) or (confusing it with secant).

  • Forgetting the Product/Quotient Rule: When faced with a function like , a common error is to differentiate each part separately () instead of correctly applying the product rule.

  • Unit Circle Errors: Making arithmetic mistakes when evaluating trigonometric functions at common angles like , , or . This is especially costly in tangent/normal line problems.

  • Incorrectly Simplifying Identities: When deriving the formulas or simplifying a resulting derivative, students may misapply a Pythagorean or reciprocal identity, leading to an incorrect final expression.