Educerie

Educerie · AP · Calculus AB and BC

AP Calculus AB and BC 2.10

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

How do we find the rate of change at one instant, and how do we compute it quickly for any function?

What you will learn

  • Understand how the four derivatives follow from the quotient rule
  • Know the pattern: tan and cot give squared partners, sec and csc give the function times its partner
  • Understand that every co function has a minus sign
  • Know the exact values needed at standard angles

You must be able to

  1. Differentiate expressions with tan, cot, sec and csc
  2. Evaluate the derivatives at pi over six, four and three
  3. Write a tangent line to tan x
  4. Rewrite with an identity when it simplifies
  5. Avoid reading sec squared as sec of x squared

In the exam. Section I multiple choice, no calculator: a derivative of tan⁡x\tan x, sec⁡x\sec x, cot⁡x\cot x or csc⁡x\csc x evaluated at π6\frac{\pi}{6}, π4\frac{\pi}{4} or π3\frac{\pi}{3}, a tangent line to tan⁡x\tan x, or a combination with a product. Section II free response: these functions are rarer than sine, cosine, exe^x and ln⁡x\ln x, but they appear in differentiation, related-rates and integration questions, and an expression often needs to be rewritten with identities first.

1Where the four results come from

The CED states that rearranging with identities lets you use the derivative rules. Here is each one.

Tangent. tan⁡x=sin⁡xcos⁡x\tan x = \dfrac{\sin x}{\cos x}, so by the quotient rule

ddxtan⁡x=cos⁡x⋅cos⁡x−sin⁡x⋅(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2x=sec⁡2x \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

Secant. sec⁡x=1cos⁡x\sec x = \dfrac{1}{\cos x}, so

ddxsec⁡x=0⋅cos⁡x−1⋅(−sin⁡x)cos⁡2x=sin⁡xcos⁡2x=1cos⁡x⋅sin⁡xcos⁡x=sec⁡xtan⁡x \frac{d}{dx}\sec x = \frac{0 \cdot \cos x - 1 \cdot (-\sin x)}{\cos^2 x} = \frac{\sin x}{\cos^2 x} = \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} = \sec x\tan x

Cotangent. cot⁡x=cos⁡xsin⁡x\cot x = \dfrac{\cos x}{\sin x}, so

ddxcot⁡x=−sin⁡x⋅sin⁡x−cos⁡x⋅cos⁡xsin⁡2x=−(sin⁡2x+cos⁡2x)sin⁡2x=−csc⁡2x \frac{d}{dx}\cot x = \frac{-\sin x \cdot \sin x - \cos x \cdot \cos x}{\sin^2 x} = \frac{-(\sin^2 x + \cos^2 x)}{\sin^2 x} = -\csc^2 x

Cosecant. csc⁡x=1sin⁡x\csc x = \dfrac{1}{\sin x}, so

ddxcsc⁡x=0⋅sin⁡x−1⋅cos⁡xsin⁡2x=−cos⁡xsin⁡2x=−1sin⁡x⋅cos⁡xsin⁡x=−csc⁡xcot⁡x \frac{d}{dx}\csc x = \frac{0 \cdot \sin x - 1 \cdot \cos x}{\sin^2 x} = -\frac{\cos x}{\sin^2 x} = -\frac{1}{\sin x}\cdot\frac{\cos x}{\sin x} = -\csc x\cot x

In the exam you quote the results. If you forget one, this takes under a minute.

Notation. sec⁡2x\sec^2 x means (sec⁡x)2(\sec x)^2. It is not sec⁡(x2)\sec(x^2).

2The pattern to remember

FunctionDerivative
tan⁡x\tan xsec⁡2x\sec^2 x
cot⁡x\cot x−csc⁡2x-\csc^2 x
sec⁡x\sec xsec⁡xtan⁡x\sec x\tan x
csc⁡x\csc x−csc⁡xcot⁡x-\csc x\cot x
  • The derivatives of tan⁡\tan and cot⁡\cot are squares of the partner function: sec⁡2\sec^2 and csc⁡2\csc^2.
  • The derivatives of sec⁡\sec and csc⁡\csc are the function times its trig partner: sec⁡⋅tan⁡\sec \cdot \tan and csc⁡⋅cot⁡\csc \cdot \cot.
  • The "co" functions get a minus sign.

Each result is undefined where the original function is undefined. tan⁡x\tan x has no value at π2\frac{\pi}{2}, so neither does sec⁡2x\sec^2 x.

3Evaluating at standard angles

You need exact values.

Anglesin⁡\sincos⁡\costan⁡\tansec⁡\seccsc⁡\csccot⁡\cot
π6\frac{\pi}{6}12\frac{1}{2}32\frac{\sqrt{3}}{2}13\frac{1}{\sqrt{3}}23\frac{2}{\sqrt{3}}223\sqrt{3}
π4\frac{\pi}{4}22\frac{\sqrt{2}}{2}22\frac{\sqrt{2}}{2}112\sqrt{2}2\sqrt{2}11
π3\frac{\pi}{3}32\frac{\sqrt{3}}{2}12\frac{1}{2}3\sqrt{3}2223\frac{2}{\sqrt{3}}13\frac{1}{\sqrt{3}}

Examples (invented):

  • ddxtan⁡x\frac{d}{dx}\tan x at π4\frac{\pi}{4}: sec⁡2π4=(2)2=2\sec^2\frac{\pi}{4} = (\sqrt{2})^2 = 2.
  • ddxsec⁡x\frac{d}{dx}\sec x at π3\frac{\pi}{3}: sec⁡π3tan⁡π3=23\sec\frac{\pi}{3}\tan\frac{\pi}{3} = 2\sqrt{3}.
  • ddxcot⁡x\frac{d}{dx}\cot x at π6\frac{\pi}{6}: −csc⁡2π6=−4-\csc^2\frac{\pi}{6} = -4.
  • ddxcsc⁡x\frac{d}{dx}\csc x at π6\frac{\pi}{6}: −csc⁡π6cot⁡π6=−23-\csc\frac{\pi}{6}\cot\frac{\pi}{6} = -2\sqrt{3}.

4Tangent line to y=tan⁡xy = \tan x

At x=π4x = \frac{\pi}{4} the point is (π4,1)\left(\frac{\pi}{4}, 1\right) and the slope is 2.

y−1=2(x−π4) y - 1 = 2\left(x - \frac{\pi}{4}\right)

Figure 1. The graph of y = tan x between its vertical asymptotes x = -pi/2 and x = pi/2, with the tangent line at x = pi/4. The slope there is sec^2(pi/4) = 2, and the slope is never less than 1 y x (π/4, 1), slope 2
Figure 1 · The graph of y = tan x between its vertical asymptotes x = -π ÷ 2 and x = π ÷ 2, with the tangent line at x = π ÷ 4, whose slope is 2

Figure 1 shows the climb. The slope sec⁡2x\sec^2 x is never less than 1, because cos⁡2x≤1\cos^2 x \le 1. So tan⁡x\tan x is rising on every branch where it is defined, and it steepens as xx nears the asymptotes, where sec⁡2x\sec^2 x grows without limit.

5Combinations

Mix the new results with the product, quotient, sum and constant multiple rules.

Example (invented): y=xtan⁡xy = x\tan x. Product rule: y′=1⋅tan⁡x+xsec⁡2xy' = 1 \cdot \tan x + x\sec^2 x. At x=π4x = \frac{\pi}{4}: 1+π4(2)=1+π21 + \frac{\pi}{4}(2) = 1 + \frac{\pi}{2}.

Example (invented): y=tan⁡x−xy = \tan x - x. y′=sec⁡2x−1y' = \sec^2 x - 1. Since sec⁡2x−1=tan⁡2x\sec^2 x - 1 = \tan^2 x, this equals tan⁡2x\tan^2 x, which is 1 at x=π4x = \frac{\pi}{4}.

Example (invented): y=sec⁡x+tan⁡xy = \sec x + \tan x. y′=sec⁡xtan⁡x+sec⁡2x=sec⁡x (tan⁡x+sec⁡x)y' = \sec x\tan x + \sec^2 x = \sec x\,(\tan x + \sec x). At x=π3x = \frac{\pi}{3}: 2(3+2)=23+42(\sqrt{3} + 2) = 2\sqrt{3} + 4.

Example (invented): y=tan⁡xxy = \dfrac{\tan x}{x}. Quotient rule with f=tan⁡xf = \tan x and g=xg = x:

y′=xsec⁡2x−tan⁡xx2 y' = \frac{x\sec^2 x - \tan x}{x^2}

At x=π4x = \frac{\pi}{4}: the top is π4(2)−1=π2−1\frac{\pi}{4}(2) - 1 = \frac{\pi}{2} - 1 and the bottom is π216\frac{\pi^2}{16}, so y′=8(π−2)π2y' = \frac{8(\pi - 2)}{\pi^2}. Leave exact values like this unless the question asks for a decimal.

Example (invented): y=3sec⁡x−2cot⁡xy = 3\sec x - 2\cot x. y′=3sec⁡xtan⁡x+2csc⁡2xy' = 3\sec x\tan x + 2\csc^2 x. The two minus signs combine to a plus.

6Rewrite first

Sometimes an identity turns a hard-looking expression into a simple one. This is the point of the CED statement about rearranging.

Example (invented): y=sec⁡xtan⁡xy = \dfrac{\sec x}{\tan x}.

sec⁡xtan⁡x=1/cos⁡xsin⁡x/cos⁡x=1sin⁡x=csc⁡x \frac{\sec x}{\tan x} = \frac{1/\cos x}{\sin x/\cos x} = \frac{1}{\sin x} = \csc x

So y′=−csc⁡xcot⁡xy' = -\csc x\cot x. The quotient rule on the original would have worked, but it is longer.

Example (invented): y=sin⁡x⋅sec⁡xy = \sin x \cdot \sec x. Since sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}, this is tan⁡x\tan x, so y′=sec⁡2xy' = \sec^2 x. The product rule gives cos⁡xsec⁡x+sin⁡xsec⁡xtan⁡x=1+tan⁡2x\cos x\sec x + \sin x\sec x\tan x = 1 + \tan^2 x, which is the same, because 1+tan⁡2x=sec⁡2x1 + \tan^2 x = \sec^2 x.

Rewriting is optional, but it can remove errors. If you are not sure of an identity, use the derivative rules you know instead.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.