Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›AP Calculus AB
  3. ›2 Differentiation: Definition and Fundamental Properties
  4. ›2.10 Derivatives of tan, cot, sec and csc

AP Calculus AB · Unit 2 · Differentiation: Definition and Fundamental Properties

2.10 Derivatives of tan, cot, sec and csc

Differentiate tan, cot, sec, and csc, recognize their patterns, and apply them to calculus problems.

  • 3 min read
  • 4 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/4Tangent and cotangent derivatives have opposite signs
  1. 1Tangent and cotangent derivatives have opposite signs
  2. 2Secant and cosecant derivatives include the original function
  3. 3Derivative patterns help identify signs and valid inputs
  4. 4Derivative values give slopes and instantaneous rates
  5. Check your recall
  6. Practice: 10 questions
1

Part 1 of 4: Tangent and cotangent derivatives have opposite signs

The tangent function is tan⁡x=sin⁡xcos⁡x\tan x=\frac{\sin x}{\cos x}tanx=cosxsinx​. Its derivative is ddx(tan⁡x)=sec⁡2x\frac{d}{dx}(\tan x)=\sec^2 xdxd​(tanx)=sec2x. Using the quotient rule gives cos⁡2x+sin⁡2xcos⁡2x=sec⁡2x\frac{\cos^2 x+\sin^2 x}{\cos^2 x}=\sec^2 xcos2xcos2x+sin2x​=sec2x.

The cotangent function is cot⁡x=cos⁡xsin⁡x\cot x=\frac{\cos x}{\sin x}cotx=sinxcosx​. Its derivative is ddx(cot⁡x)=−csc⁡2x\frac{d}{dx}(\cot x)=-\csc^2 xdxd​(cotx)=−csc2x. The quotient rule gives −sin⁡2x−cos⁡2xsin⁡2x=−csc⁡2x\frac{-\sin^2 x-\cos^2 x}{\sin^2 x}=-\csc^2 xsin2x−sin2x−cos2x​=−csc2x. Both derivatives contain a squared reciprocal function. Tangent increases wherever it is defined, while cotangent decreases wherever it is defined.

Key terms · tap one for its definition

tangent

Tangent is the trigonometric function tan⁡x=sin⁡xcos⁡x\tan x=\frac{\sin x}{\cos x}tanx=cosxsinx​, defined where cos⁡x≠0\cos x\ne0cosx=0.

cotangent

Cotangent is the trigonometric function cot⁡x=cos⁡xsin⁡x\cot x=\frac{\cos x}{\sin x}cotx=sinxcosx​, defined where sin⁡x≠0\sin x\ne0sinx=0.

Part 1 done

2

Part 2 of 4: Secant and cosecant derivatives include the original function

The secant function is sec⁡x=1cos⁡x\sec x=\frac{1}{\cos x}secx=cosx1​. Its derivative is ddx(sec⁡x)=sec⁡xtan⁡x\frac{d}{dx}(\sec x)=\sec x\tan xdxd​(secx)=secxtanx. Differentiating its reciprocal form gives sin⁡xcos⁡2x\frac{\sin x}{\cos^2 x}cos2xsinx​, which equals sec⁡xtan⁡x\sec x\tan xsecxtanx.

The cosecant function is csc⁡x=1sin⁡x\csc x=\frac{1}{\sin x}cscx=sinx1​. Its derivative is ddx(csc⁡x)=−csc⁡xcot⁡x\frac{d}{dx}(\csc x)=-\csc x\cot xdxd​(cscx)=−cscxcotx. Differentiating its reciprocal form gives −cos⁡xsin⁡2x-\frac{\cos x}{\sin^2 x}−sin2xcosx​. Notice that each derivative contains its original function multiplied by another trigonometric function. Unlike the derivatives in the previous section, these derivatives can be positive or negative.

Key terms · tap one for its definition

secant

Secant is the reciprocal of cosine: sec⁡x=1cos⁡x\sec x=\frac{1}{\cos x}secx=cosx1​ where cos⁡x≠0\cos x\ne0cosx=0.

cosecant

Cosecant is the reciprocal of sine: csc⁡x=1sin⁡x\csc x=\frac{1}{\sin x}cscx=sinx1​ where sin⁡x≠0\sin x\ne0sinx=0.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the derivative of y=tan⁡xy=\tan xy=tanx.
Show answer and explanation

Answer: C · Worked explanation

The derivative of tangent is ddx(tan⁡x)=sec⁡2x\frac{d}{dx}(\tan x)=\sec^2 xdxd​(tanx)=sec2x. The option −csc⁡2x-\csc^2 x−csc2x is the derivative of cotangent, which has a leading minus sign; the remaining options are the derivatives of secant and cosecant.
3

Part 3 of 4: Derivative patterns help identify signs and valid inputs

A useful sign pattern separates these four derivatives. The derivatives of tan⁡x\tan xtanx and sec⁡x\sec xsecx have no leading minus sign. Those of cot⁡x\cot xcotx and csc⁡x\csc xcscx do. This pattern does not mean sec⁡xtan⁡x\sec x\tan xsecxtanx is always positive. Its factors can have different signs.

Check the domain before evaluating a derivative. Tangent and secant are undefined where cos⁡x=0\cos x=0cosx=0. Cotangent and cosecant are undefined where sin⁡x=0\sin x=0sinx=0. At those inputs, the original function has no derivative. Elsewhere, each derivative formula applies. All angles in these formulas are measured in radians.

Common mistake

A leading minus sign does not make −csc⁡xcot⁡x-\csc x\cot x−cscxcotx negative everywhere. Check the signs of both factors.

Key terms · tap one for its definition

sign pattern

The tangent and secant derivative formulas have no leading minus sign; the cotangent and cosecant formulas do.

domain

A function's domain is the set of inputs where the function is defined.

Part 3 done

4

Part 4 of 4: Derivative values give slopes and instantaneous rates

A tangent line uses the function value and its derivative at one input. For y=f(x)y=f(x)y=f(x) at x=ax=ax=a, its equation is y=f(a)+f′(a)(x−a)y=f(a)+f'(a)(x-a)y=f(a)+f′(a)(x−a). The derivative also gives an instantaneous rate when the function models a changing quantity. Always check that the chosen input lies in the function's domain.

Worked example

Find a tangent line to secant

Find the tangent line to y=sec⁡xy=\sec xy=secx at x=π3x=\frac{\pi}{3}x=3π​.
  1. 1
    Find the point: sec⁡(π3)=2\sec\left(\frac{\pi}{3}\right)=2sec(3π​)=2.
  2. 2
    Differentiate: y′=sec⁡xtan⁡xy'=\sec x\tan xy′=secxtanx.
  3. 3
    Find the slope: y′(π3)=23y'\left(\frac{\pi}{3}\right)=2\sqrt{3}y′(3π​)=23​.
  4. 4
    Substitute into the line equation: y=2+23(x−π3)y=2+2\sqrt{3}\left(x-\frac{\pi}{3}\right)y=2+23​(x−3π​).

Answer: y=2+23(x−π3)y=2+2\sqrt{3}\left(x-\frac{\pi}{3}\right)y=2+23​(x−3π​). The slope is 232\sqrt{3}23​ units of yyy per unit of xxx.

Exam tip

For a tangent line, calculate the function value and derivative value separately. Then substitute both into the line equation.

Key terms · tap one for its definition

tangent line

A tangent line at x=ax=ax=a passes through (a,f(a))(a,f(a))(a,f(a)) and has slope f′(a)f'(a)f′(a).

instantaneous rate

An instantaneous rate is a derivative describing how quickly a quantity changes at one input.

Note read

Check your recall[12 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.State[2 marks]

    State the derivatives of tan⁡x\tan xtanx and cot⁡x\cot xcotx.

    Show mark schemeHide mark scheme

    Model answer

    ddx(tan⁡x)=sec⁡2x\frac{d}{dx}(\tan x)=\sec^2 xdxd​(tanx)=sec2x and ddx(cot⁡x)=−csc⁡2x\frac{d}{dx}(\cot x)=-\csc^2 xdxd​(cotx)=−csc2x.

    • 1 mark for stating ddx(tan⁡x)=sec⁡2x\frac{d}{dx}(\tan x)=\sec^2 xdxd​(tanx)=sec2x
    • 1 mark for stating ddx(cot⁡x)=−csc⁡2x\frac{d}{dx}(\cot x)=-\csc^2 xdxd​(cotx)=−csc2x
  2. 2.State[2 marks]

    State the derivatives of sec⁡x\sec xsecx and csc⁡x\csc xcscx.

    Show mark schemeHide mark scheme

    Model answer

    ddx(sec⁡x)=sec⁡xtan⁡x\frac{d}{dx}(\sec x)=\sec x\tan xdxd​(secx)=secxtanx and ddx(csc⁡x)=−csc⁡xcot⁡x\frac{d}{dx}(\csc x)=-\csc x\cot xdxd​(cscx)=−cscxcotx.

    • 1 mark for stating ddx(sec⁡x)=sec⁡xtan⁡x\frac{d}{dx}(\sec x)=\sec x\tan xdxd​(secx)=secxtanx
    • 1 mark for stating ddx(csc⁡x)=−csc⁡xcot⁡x\frac{d}{dx}(\csc x)=-\csc x\cot xdxd​(cscx)=−cscxcotx
  3. 3.Explain[3 marks]

    Explain why the derivative of tan⁡x\tan xtanx is sec⁡2x\sec^2 xsec2x.

    Show mark schemeHide mark scheme

    Model answer

    Write tan⁡x=sin⁡xcos⁡x\tan x=\frac{\sin x}{\cos x}tanx=cosxsinx​. The quotient rule gives cos⁡2x+sin⁡2xcos⁡2x\frac{\cos^2 x+\sin^2 x}{\cos^2 x}cos2xcos2x+sin2x​. Since sin⁡2x+cos⁡2x=1\sin^2 x+\cos^2 x=1sin2x+cos2x=1, this equals sec⁡2x\sec^2 xsec2x.

    • 1 mark for writing tan⁡x\tan xtanx as sin⁡xcos⁡x\frac{\sin x}{\cos x}cosxsinx​
    • 1 mark for obtaining cos⁡2x+sin⁡2xcos⁡2x\frac{\cos^2 x+\sin^2 x}{\cos^2 x}cos2xcos2x+sin2x​ using the quotient rule
    • 1 mark for using sin⁡2x+cos⁡2x=1\sin^2 x+\cos^2 x=1sin2x+cos2x=1 to obtain sec⁡2x\sec^2 xsec2x
  4. 4.Determine[2 marks]

    Determine where csc⁡x\csc xcscx has no derivative, and explain why.

    Show mark schemeHide mark scheme

    Model answer

    csc⁡x\csc xcscx has no derivative where sin⁡x=0\sin x=0sinx=0, because csc⁡x=1sin⁡x\csc x=\frac{1}{\sin x}cscx=sinx1​ is undefined there.

    • 1 mark for identifying inputs where sin⁡x=0\sin x=0sinx=0
    • 1 mark for explaining that csc⁡x\csc xcscx is undefined at those inputs
  5. 5.Find[3 marks]

    Find the tangent line to y=sec⁡xy=\sec xy=secx at x=π3x=\frac{\pi}{3}x=3π​.

    Show mark schemeHide mark scheme

    Model answer

    The point is (π3,2)\left(\frac{\pi}{3},2\right)(3π​,2). Since y′=sec⁡xtan⁡xy'=\sec x\tan xy′=secxtanx, the slope is 232\sqrt{3}23​. Thus y=2+23(x−π3)y=2+2\sqrt{3}\left(x-\frac{\pi}{3}\right)y=2+23​(x−3π​).

    • 1 mark for finding the point value sec⁡(π3)=2\sec\left(\frac{\pi}{3}\right)=2sec(3π​)=2
    • 1 mark for finding the slope sec⁡(π3)tan⁡(π3)=23\sec\left(\frac{\pi}{3}\right)\tan\left(\frac{\pi}{3}\right)=2\sqrt{3}sec(3π​)tan(3π​)=23​
    • 1 mark for giving y=2+23(x−π3)y=2+2\sqrt{3}\left(x-\frac{\pi}{3}\right)y=2+23​(x−3π​)

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the quick check in the note above.

2.

Easy·Identify[1 mark]

Which expression is the derivative of y=csc⁡xy=\csc xy=cscx?
Show answer and explanation

Answer: B · Worked explanation

The cosecant derivative is ddx(csc⁡x)=−csc⁡xcot⁡x\frac{d}{dx}(\csc x)=-\csc x\cot xdxd​(cscx)=−cscxcotx. The tempting expression csc⁡xcot⁡x\csc x\cot xcscxcotx has the correct factors but misses the required negative sign; sec⁡xtan⁡x\sec x\tan xsecxtanx is the derivative of secant.
3.

Easy·Recognize[1 mark]

Recognize the sign pattern: which pair of functions has derivatives with a leading minus sign?
Show answer and explanation

Answer: D · Worked explanation

The derivatives of cotangent and cosecant are −csc⁡2x-\csc^2 x−csc2x and −csc⁡xcot⁡x-\csc x\cot x−cscxcotx, respectively, so both have a leading minus sign. Secant's derivative has no leading minus sign, which makes the pair containing secant a plausible but incorrect choice.
4.

Easy·State[1 mark]

State the derivative of y=sec⁡xy=\sec xy=secx.
Show answer and explanation

Answer: D · Worked explanation

Differentiating secant gives ddx(sec⁡x)=sec⁡xtan⁡x\frac{d}{dx}(\sec x)=\sec x\tan xdxd​(secx)=secxtanx. The expression sec⁡2x\sec^2 xsec2x is the derivative of tangent, while the negative secant product incorrectly assigns cosecant's sign pattern to secant.
5.

Medium·Determine[1 mark]

At an input where both factors are defined, suppose sec⁡x>0\sec x>0secx>0 and tan⁡x<0\tan x<0tanx<0. Determine the sign of ddx(sec⁡x)\frac{d}{dx}(\sec x)dxd​(secx).
Show answer and explanation

Answer: B · Worked explanation

Since ddx(sec⁡x)=sec⁡xtan⁡x\frac{d}{dx}(\sec x)=\sec x\tan xdxd​(secx)=secxtanx, the given positive secant value multiplied by the negative tangent value gives a negative derivative. The tempting claim that secant's derivative is positive because its formula has no leading minus sign confuses the formula's sign pattern with the signs of its factors.
6.

Medium·Identify[1 mark]

Identify the pair of functions that are both undefined at x=π2x=\frac{\pi}{2}x=2π​.
Show answer and explanation

Answer: B · Worked explanation

At x=π2x=\frac{\pi}{2}x=2π​, cosine is zero, so both tan⁡x\tan xtanx and sec⁡x\sec xsecx are undefined. Cotangent and cosecant instead require nonzero sine, which is satisfied at this input; thus the pair involving those functions is not undefined there.
7.

Medium·Calculate[2 marks]

Calculate ddx(3tan⁡x−2cot⁡x)\frac{d}{dx}\left(3\tan x-2\cot x\right)dxd​(3tanx−2cotx).
Show answer and explanation

Answer: C · Worked explanation

Differentiate each term: 3tan⁡x3\tan x3tanx gives 3sec⁡2x3\sec^2 x3sec2x, and −2cot⁡x-2\cot x−2cotx gives −2(−csc⁡2x)=2csc⁡2x-2(-\csc^2 x)=2\csc^2 x−2(−csc2x)=2csc2x. The tempting expression with a minus between the squared terms misses the negative sign in the derivative of cotangent.
8.

Medium·Determine[2 marks]

A quantity is modeled by Q(t)=4sec⁡tQ(t)=4\sec tQ(t)=4sect for ttt in radians. Determine its instantaneous rate of change at t=0t=0t=0.
Show answer and explanation

Answer: B · Worked explanation

The rate is Q′(t)=4sec⁡ttan⁡tQ'(t)=4\sec t\tan tQ′(t)=4secttant. Since sec⁡0=1\sec 0=1sec0=1 and tan⁡0=0\tan 0=0tan0=0, the rate is Q′(0)=0Q'(0)=0Q′(0)=0. The value 4 uses sec⁡0\sec 0sec0 without multiplying by tan⁡0\tan 0tan0.
9.

Medium·Calculate[2 marks]

Calculate the slope of y=csc⁡xy=\csc xy=cscx at x=π4x=\frac{\pi}{4}x=4π​.
Show answer and explanation

Answer: B · Worked explanation

Use y′=−csc⁡xcot⁡xy'=-\csc x\cot xy′=−cscxcotx. At x=π4x=\frac{\pi}{4}x=4π​, csc⁡x=2\csc x=\sqrt{2}cscx=2​ and cot⁡x=1\cot x=1cotx=1, so the slope is −2-\sqrt{2}−2​.
10.

Medium·Explain[2 marks]

Explain why ddx(cot⁡x)\frac{d}{dx}(\cot x)dxd​(cotx) is negative at every input where cot⁡x\cot xcotx is defined.
Show answer and explanation

Answer: C · Worked explanation

Where cotangent is defined, sin⁡x≠0\sin x\ne0sinx=0, so csc⁡x\csc xcscx exists and csc⁡2x>0\csc^2 x>0csc2x>0. Therefore −csc⁡2x<0-\csc^2 x<0−csc2x<0 at every such input. The expression −csc⁡xcot⁡x-\csc x\cot x−cscxcotx is the derivative of cosecant, not cotangent, and its sign can vary.

Keep going

Next topic3.1 Chain rulePrevious topic2.9 Quotient rule

More in Unit 2 · Differentiation: Definition and Fundamental Properties

  1. 2.2Definition of the derivativeNotes · 10 questions
  2. 2.3Estimating derivatives at a pointNotes · 10 questions
  3. 2.4Differentiability and continuityNotes · 10 questions
  4. 2.5Power ruleNotes · 10 questions
  5. 2.6Constant, sum, difference and constant multiple rulesNotes · 10 questions
  6. 2.7Derivatives of sin x, cos x, e^x and ln xNotes · 10 questions
  7. 2.8Product ruleNotes · 10 questions
  8. 2.9Quotient ruleNotes · 10 questions
  9. 2.10Derivatives of tan, cot, sec and cscNotes · 10 questions

All AP Calculus AB topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by College Board or any exam board.

On this page

0/4 read

  1. 1Tangent and cotangent derivatives have opposite signs
  2. 2Secant and cosecant derivatives include the original function
  3. 3Derivative patterns help identify signs and valid inputs
  4. 4Derivative values give slopes and instantaneous rates
  5. Check your recall
  6. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe