AP Syllabus focus:
‘Use trigonometric identities and quotient relationships to find derivatives of tan x and cot x by rewriting them in terms of sine and cosine and applying derivative rules.’
These notes develop how to differentiate tangent and cotangent functions by rewriting them using fundamental trigonometric identities and applying established derivative rules with clarity and precision.
Derivatives of Tangent and Cotangent Functions
Differentiating and is an essential skill in AP Calculus AB, and the syllabus emphasizes using trigonometric identities and quotient relationships to accomplish this efficiently. Because tangent and cotangent are defined in terms of sine and cosine, their derivatives naturally follow from combining the quotient rule, product rule, and known derivatives of and . Understanding these relationships strengthens conceptual insight into how trigonometric functions change and prepares students for later applications in modeling and optimization.
Rewriting Tangent and Cotangent Using Fundamental Identities
The functions tangent and cotangent should first be recognized as ratios of sine and cosine. This rewriting is essential because it allows the direct use of previously learned derivative rules.
Tangent Function: .
This identity reveals that tangent is a quotient of two differentiable trigonometric functions, allowing the derivative to be determined through the quotient rule.
Once this identity is established, differentiation proceeds by examining how both the numerator and denominator vary with respect to . Before differentiating, it is helpful to note that the derivative of sine is cosine, and the derivative of cosine is negative sine. These relationships underpin every step in differentiating tangent.
Cotangent Function: .
Cotangent mirrors the structure of tangent but reverses the roles of sine and cosine.

This graph shows across several periods, illustrating its vertical asymptotes at multiples of and its decreasing behavior between them. The figure highlights how expressing cotangent as leads to its characteristic discontinuities. No additional curriculum-external content is included. Source.
This reversal leads to a different pattern in the resulting derivative. Because cotangent also involves division by a trigonometric expression, the quotient rule again becomes the primary tool for differentiation.
A clear understanding of these identity-based forms ensures that each derivative follows logically from rules already mastered.
Applying the Quotient Rule to Trigonometric Ratios
Once tangent and cotangent are expressed using sine and cosine, the quotient rule becomes the central technique for differentiation. Students should recall that the quotient rule examines how the numerator and denominator each change, measuring their combined effect on the overall ratio.

This graph displays along with its derivative , illustrating how the derivative grows sharply near tangent’s vertical asymptotes. The height of the curve corresponds directly to the steepness of the tangent function. This includes minor detail beyond core syllabus requirements but enhances conceptual understanding. Source.
= Trigonometric functions without units
This representation highlights how the quotient rule operates structurally. While this equation expresses the initial step in the derivative process, students ultimately simplify to the well-known formula involving secant. The appearance of squared trigonometric expressions and sign changes reflects how the sine and cosine derivatives contribute to the overall rate of change of tangent.
Before applying similar reasoning to cotangent, it is important to acknowledge that its numerator and denominator differ in order from those of tangent. The quotient rule will thus produce a change in sign and structure once simplified.
= Trigonometric functions without units
The resulting structure reveals how the derivative of cotangent depends on the combination of squared sine and cosine terms in the numerator and the squared sine function in the denominator. The presence of negative signs plays a crucial role in the final derivative expression.
Final Derivative Forms and Their Interpretive Meaning
From the processes shown above, the derivatives of tangent and cotangent simplify to their classical forms. These derivatives express how rapidly the trigonometric ratios change for a given angle. Because tangent and cotangent rapidly increase near odd multiples of or integer multiples of , the derivatives naturally include expressions involving squared secant or cosecant functions that reflect steep slopes near vertical asymptotes.

This image shows the graph of with its characteristic vertical asymptotes at odd multiples of . The curve’s steep behavior near these asymptotes visually supports the discussion of rapidly increasing derivative values. Labels and structure stay within the scope of AP Calculus AB expectations. Source.
Students should note the following key ideas:
Tangent and cotangent derivatives result from combining quotient relationships with known trigonometric derivatives.
Simplification typically introduces squared reciprocal identities such as and .
These derivatives capture how the rates of change behave near angles where sine or cosine approach zero, aligning with the shape of tangent and cotangent graphs.
Essential Takeaways for AP Calculus Learners
Always rewrite tangent and cotangent as sine-cosine quotients before differentiating.
Apply the quotient rule carefully, ensuring correct placement of derivatives of sine and cosine.
Simplify expressions using familiar identities to reveal the standard derivative forms.
Recognize that the resulting derivatives describe rapidly changing behavior near function asymptotes.
FAQ
Their derivative forms arise from simplifying the quotient-rule expressions for sine and cosine.
Because tangent and cotangent are themselves ratios, their derivatives naturally produce combinations of sine and cosine in the numerator and denominator.
When these expressions are simplified, they match the definitions of secant squared and cosecant squared.
The derivative of tan x is always non-negative where defined, reflecting its increasing behaviour on each interval between asymptotes.
The derivative of cot x is always non-positive where defined, reflecting its decreasing behaviour on those intervals.
Tan x is undefined where cosine is zero, while cot x is undefined where sine is zero.
Because their derivatives involve secant squared or negative cosecant squared, their steepness increases dramatically near these same points.
Both tan x and cot x have period pi, so their derivatives also repeat every pi.
This means the pattern of steepness, asymptotes and rate of change cycles identically across each interval.
Rewriting clarifies whether a product, quotient or chain rule is needed.
It also exposes cancellations or simplifications not visible in the original form, reducing algebraic errors and revealing the structure of the derivative more clearly.
Practice Questions
Question 1 (1–3 marks)
Differentiate the function f(x) = 3 tan x.
State the derivative and simplify your result.
Question 1 (3 marks total)
• 1 mark for correctly identifying the derivative of tan x as sec^2 x.
• 1 mark for applying the constant multiple rule correctly.
• 1 mark for giving the simplified derivative: f'(x) = 3 sec^2 x.
Question 2 (4–6 marks)
A function is defined by g(x) = tan x / cot x for all x where the expression is defined.
(a) Rewrite g(x) in terms of sine and cosine.
(b) Hence find g'(x).
(c) Describe the behaviour of g'(x) as x approaches values where sine or cosine is zero.
Question 2 (6 marks total)
(a) 2 marks
• 1 mark for rewriting tan x as sin x / cos x.
• 1 mark for rewriting cot x as cos x / sin x, leading to g(x) = (sin x / cos x) / (cos x / sin x) = sin^2 x / cos^2 x.
(b) 3 marks
• 1 mark for recognising that sin^2 x / cos^2 x is equivalent to tan^2 x.
• 1 mark for differentiating tan^2 x using the chain rule to obtain 2 tan x sec^2 x.
• 1 mark for a fully simplified correct expression for g'(x).
(c) 1 mark
• 1 mark for correctly stating that g'(x) increases without bound near values where sin x = 0 or cos x = 0, because tan x and sec x become unbounded near their vertical asymptotes.
