Unit 2 · Topic 2.10

Other trigonometric derivatives

Builds on the derivatives of sine and cosine and the quotient rule. 10 minutes.

  1. Example 1Differentiate tangent and secant
  2. Example 2Differentiate cotangent and cosecant
  3. Example 3Evaluate a trigonometric slope
  4. Example 4Recognize equivalent derivative forms

The other four trigonometric functions are quotients of sine and cosine:

\[\begin{aligned}\tan x&=\frac{\sin x}{\cos x}, & \sec x&=\frac{1}{\cos x},\\ \cot x&=\frac{\cos x}{\sin x}, & \csc x&=\frac{1}{\sin x}\end{aligned}\]

Tangent and secant are defined where \(\cos x\neq 0\), and cotangent and cosecant where \(\sin x\neq 0\). Cotangent and cosecant are the cofunctions of tangent and secant, as cosine is the cofunction of sine. As in topic 2.7, \(x\) is in radians, because the formulas for the derivatives of sine and cosine hold only in radians.

This topic finds the derivatives of all four with the quotient rule, evaluates them at exact angles, and compares different forms of one derivative.

Tangent and secant

The curve y = tan x between dashed vertical lines at x = minus pi over 2 and x = pi over 2. It is green, because its slope is positive everywhere, and an orange point at x = pi over 4 has an orange tangent line of slope 2. Below, a second graph plots the slope, which is never less than 1 and grows without bound toward the dashed lines, with an orange bar 2 high at x = pi over 4. A button turns the curve into y = sec x, a U shape between the same dashed lines with its lowest point at x = 0, red where its slope is negative and green where it is positive. Another button moves the point close to the right dashed line, where the point moves above the top of the upper graph and the bar runs past the top of the lower graph.

Figure 1The curve is green where its slope is positive and red where its slope is negative, and the dashed lines \(x=\pm\frac{\pi}{2}\) are vertical asymptotes. The lower graph plots the slope of the curve, and its orange bar is the slope of the orange tangent line at the orange point.

At every \(x\) where \(\cos x\neq 0\), \(\tan x\) is the quotient of \(\sin x\) and \(\cos x\), two differentiable functions with derivatives \(\cos x\) and \(-\sin x\) (topic 2.7). The quotient rule (topic 2.9) multiplies the derivative of the numerator by the denominator and subtracts the numerator times the derivative of the denominator. It divides the result by the square of the denominator:

\[\begin{aligned}&\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}\end{aligned}\]

By the Pythagorean identity \(\sin^2 x+\cos^2 x=1\), the numerator is 1. The derivative of \(\tan x\) is therefore \(\frac{1}{\cos^2 x}\), which is \(\sec^2 x\).

Figure 1 graphs \(y=\tan x\) between the dashed lines \(x=-\frac{\pi}{2}\) and \(x=\frac{\pi}{2}\), where \(\cos x=0\), and the lower graph plots its slope \(y'\). At the orange point, \(x=\frac{\pi}{4}\) and \(\cos^2 x=\frac12\), so the tangent line has slope 2 and the bar below is 2 high. Drag the point. The slope printed beside the tangent line is never less than 1, because \(\cos^2 x\le 1\), so the whole curve is green.

For \(\sec x\), the numerator is the constant 1, whose derivative is 0:

\[\begin{aligned}\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}\end{aligned}\]

The two factors are \(\sec x\) and \(\tan x\), so the derivative of \(\sec x\) is \(\sec x\tan x\). Show \(y=\sec x\) with the first button under Figure 1. Because \(\sec x>0\) between the dashed lines, the slope has the sign of \(\tan x\), so the curve is red for \(x<0\) and green for \(x>0\). Drag the point to \(x=0\), where the curve is lowest and the tangent line is flat.

Both derivatives need \(\cos x\neq 0\). Use the last button to move the point near \(\frac{\pi}{2}\). The point moves above the top of the upper graph, and the bar is taller than the lower graph. The numbers under the figure show \(\cos x\) close to 0 and a slope close to 200. As \(x\) approaches \(\frac{\pi}{2}\), \(\cos x\) approaches 0, and the slope grows without bound. At \(x=\frac{\pi}{2}\) itself, \(\cos x=0\), so neither function has a value there, and neither has a derivative.

Cotangent and cosecant

The cofunctions follow in the same way, with \(\sin x\) in the denominator. At every \(x\) where \(\sin x\neq 0\),

\[\begin{aligned}&\frac{d}{dx}\cot x\\&=\frac{(-\sin x)\sin x-\cos x\cos x}{\sin^2 x}\\&=-\frac{\sin^2 x+\cos^2 x}{\sin^2 x}\end{aligned}\]

The numerator \(\sin^2 x+\cos^2 x\) is 1, so the derivative of \(\cot x\) is \(-\frac{1}{\sin^2 x}\), which is \(-\csc^2 x\). For \(\csc x\), the numerator is again the constant 1:

\[\begin{aligned}\frac{d}{dx}\csc x&=\frac{0\cdot\sin x-1\cdot\cos x}{\sin^2 x}\\&=-\frac{1}{\sin x}\cdot\frac{\cos x}{\sin x}\end{aligned}\]

The two factors are \(\csc x\) and \(\cot x\), so the derivative of \(\csc x\) is \(-\csc x\cot x\). Each result is the rule for \(\tan x\) or \(\sec x\) with every function replaced by its cofunction, and with a minus sign in front. The cofunctions, cosine, cotangent and cosecant, are the three trigonometric functions whose derivatives carry a minus sign.

You can confirm the minus signs without the quotient rule. For \(0<x<\frac{\pi}{2}\), \(\sin x\) rises and \(\cos x\) falls, and both are positive, so \(\cot x=\frac{\cos x}{\sin x}\) and \(\csc x=\frac{1}{\sin x}\) both fall. Every line through two points of a falling curve slopes down. A derivative is a limit of the slopes of such lines, so neither derivative can be positive there.

Exact slopes and equivalent forms

The quotient rule applies wherever the denominator is not 0, so each derivative exists at every \(x\) where its function is defined. A function has no derivative where it has no value, so the derivative exists nowhere else. To find a slope at an angle such as \(\frac{\pi}{3}\) or \(\frac{\pi}{2}\), first check that the denominator, \(\cos x\) or \(\sin x\), is not 0 there. Then write each function with the exact sine and cosine of the angle.

Dividing \(\sin^2 x+\cos^2 x=1\) by \(\cos^2 x\), or by \(\sin^2 x\), gives two more identities:

\[\begin{aligned}\tan^2 x+1&=\sec^2 x\\1+\cot^2 x&=\csc^2 x\end{aligned}\]

Each holds wherever both sides are defined, so one derivative can have several correct forms. For example, the derivative of \(\tan x\) is also \(1+\tan^2 x\). Two forms of a derivative are equivalent if they are equal at every \(x\) where the derivative exists.

To show that two forms are equivalent, rewrite one with identities and algebra until it becomes the other. Writing every function with sine and cosine often helps. Tests at a few inputs can show that two forms differ, but not that they are equal. For example, \(\sec^2 x\) and \(1+\tan x\) are equal at \(x=0\) and at \(x=\frac{\pi}{4}\). They are not equivalent, because at \(x=\frac{\pi}{3}\) they are 4 and \(1+\sqrt3\).

Example 1

Differentiate tangent and secant

Let \(f(x)=\sec x\tan x\). Find \(f'(x)\).

Solution

Both factors are differentiable at every \(x\) where \(\cos x\neq 0\), which is where \(f\) is defined. By the product rule, \(f'(x)\) is the derivative of \(\sec x\) times \(\tan x\), plus \(\sec x\) times the derivative of \(\tan x\):

\[\begin{aligned}f'(x)&=\sec x\tan x\cdot\tan x\\&\quad+\sec x\cdot\sec^2 x\\&=\sec x\tan^2 x+\sec^3 x\end{aligned}\]

Example 2

Differentiate cotangent and cosecant

Let \(g(x)=x\cot x-\csc x\). Find \(g'(x)\).

Solution

Both \(\cot x\) and \(\csc x\) are differentiable at every \(x\) where \(\sin x\neq 0\), which is where \(g\) is defined. By the product rule, the derivative of \(x\cot x\) is \(1\cdot\cot x+x\,(-\csc^2 x)\).

The derivative of \(\csc x\) is \(-\csc x\cot x\). By the constant multiple rule, the derivative of \(-\csc x\) is \(-(-\csc x\cot x)\), which is \(\csc x\cot x\). The sum of the two parts is

\[g'(x)=\cot x-x\csc^2 x+\csc x\cot x\]

Example 3

Evaluate a trigonometric slope

Let \(h(x)=x+\sec x\). Find \(h'\big(-\frac{\pi}{3}\big)\). Does \(h'\big(\frac{\pi}{2}\big)\) exist?

Solution

The derivative of \(x\) is 1 and the derivative of \(\sec x\) is \(\sec x\tan x\), so \(h'(x)=1+\sec x\tan x\) at every \(x\) where \(\cos x\neq 0\). At \(x=-\frac{\pi}{3}\), \(\cos x=\frac12\), which is not 0, and \(\sin x=-\frac{\sqrt3}{2}\). The exact values are therefore \(\sec x=2\) and \(\tan x=-\sqrt3\), so

\[h'\left(-\tfrac{\pi}{3}\right)=1+2\left(-\sqrt3\right)=1-2\sqrt3\]

At \(x=\frac{\pi}{2}\), \(\cos x=0\), so \(\sec x\) has no value, and neither does \(h\). A function has no derivative where it has no value, so \(h'\big(\frac{\pi}{2}\big)\) does not exist.

Example 4

Recognize equivalent derivative forms

Let \(q(x)=\tan x-\cot x\). Show that \(q'(x)=\sec^2 x\csc^2 x\) at every \(x\) where \(q\) is defined.

Solution

The function \(q\) is defined where \(\cos x\neq 0\) and \(\sin x\neq 0\), and \(q'\) exists at the same inputs. The rules for \(\tan x\) and \(\cot x\) give \(q'(x)=\sec^2 x-(-\csc^2 x)\), which is \(\sec^2 x+\csc^2 x\). To compare this form with \(\sec^2 x\csc^2 x\), write it with sine and cosine over one denominator:

\[\begin{aligned}\sec^2 x+\csc^2 x&=\frac{1}{\cos^2 x}+\frac{1}{\sin^2 x}\\&=\frac{\sin^2 x+\cos^2 x}{\sin^2 x\cos^2 x}\\&=\frac{1}{\sin^2 x\cos^2 x}\\&=\sec^2 x\csc^2 x\end{aligned}\]

Each step holds wherever \(\sin x\neq 0\) and \(\cos x\neq 0\), which is where \(q\) is defined. The two forms of \(q'(x)\) are therefore equivalent.

Each example is one of the four skills of topic 2.10 in Which & Why: AP Calculus.