Secant as a Quotient
Secant is defined using cosine: wherever cosine is nonzero, \(\sec x=\frac{1}{\cos x}\). This representation makes the quotient rule a direct way to derive the derivative of secant. The calculation also shows why the answer contains both secant and tangent.
The restriction on the domain matters. Cosine is zero at \(x=\frac{\pi}{2}+k\pi\), where \(k\in\mathbb{Z}\), so secant is not defined at those inputs. The derivative formula will therefore apply only where \(\cos x\ne 0\).
We use the standard trigonometric derivative formulas \(\frac{d}{dx}\sin x=\cos x\) and \(\frac{d}{dx}\cos x=-\sin x\), with angles measured in radians. The quotient rule says that if \(u\) and \(v\) are differentiable and \(v(x)\ne 0\), then
For secant, the numerator function is the constant \(1\), and the denominator is \(\cos x\). Since the denominator must be nonzero for the quotient rule to apply, this calculation is valid precisely on the domain of secant.
Deriving the Formula
Apply the quotient rule with \(u(x)=1\) and \(v(x)=\cos x\). Their derivatives are \(u'(x)=0\) and \(v'(x)=-\sin x\). Substitution gives
The numerator simplifies to \(\sin x\) because subtracting the product \(1\cdot(-\sin x)\) changes its sign. To express the result in terms of secant and tangent, factor the denominator as \(\cos x\cdot\cos x\):
This is a complete derivation from the quotient definition: the quotient rule produces \(\frac{\sin x}{\cos^2 x}\), and the definitions \(\sec x=\frac{1}{\cos x}\) and \(\tan x=\frac{\sin x}{\cos x}\) give the product form. No trigonometric identity is needed for this simplification.
Why the Simplification Works
The denominator \(\cos^2 x\) is the product of two factors of cosine. One can pair one factor with the numerator to form tangent and leave the other cosine factor in the denominator to form secant. This explains the product structurally, rather than treating \(\sec x\tan x\) as a formula to memorize without context.
The condition \(\cos x\ne 0\) also guarantees that both factors in the product are defined. At an excluded input, the original quotient \(1/\cos x\) does not exist, so it would not make sense to claim that its derivative exists there. The derivative statement is made at every point in the domain, not at the points where secant is undefined.
Worked Example: Derive the derivative from the quotient definition
Write \(f(x)=\sec x=\frac{1}{\cos x}\) and differentiate wherever \(\cos x\ne 0\).
First identify the numerator and denominator: \(u(x)=1\), \(v(x)=\cos x\), \(u'(x)=0\), and \(v'(x)=-\sin x\). The quotient rule gives
Thus \(f'(x)=\sec x\tan x\). To check the simplification, expand the product using the definitions:
which is exactly the expression obtained directly from the quotient rule. Both forms are valid when \(\cos x\ne 0\).
Evaluating the Derivative at Specific Angles
The product formula is useful for exact evaluations. The next examples keep the quotient-rule form visible as a check: the derivative from the product form must agree with \(\frac{\sin x}{\cos^2 x}\).
Worked Example: Find the derivative of secant at \(\frac{\pi}{6}\)
Since \(\cos\frac{\pi}{6}=\frac{\sqrt{3}}{2}\ne 0\), secant is defined at \(x=\frac{\pi}{6}\). The derivative formula gives
Check using the quotient-rule form. Here \(\sin\frac{\pi}{6}=\frac12\) and \(\cos^2\frac{\pi}{6}=(\frac{\sqrt3}{2})^2=\frac34\), so
The two forms give the same exact value, \(\frac23\).
Worked Example: Find the derivative of secant at \(\frac{2\pi}{3}\)
At this angle, cosine is negative but nonzero: \(\cos\frac{2\pi}{3}=-\frac12\). Thus secant is defined. Compute the two factors in the product formula:
Therefore,
Check directly in the quotient-rule form. Since \(\cos^2\frac{2\pi}{3}=\frac14\),
The positive result is consistent with the product: both secant and tangent are negative at this angle, so their product is positive.
Worked Example: Find the derivative of secant at \(\frac{3\pi}{4}\)
Cosine is \(-\frac{\sqrt2}{2}\) at \(x=\frac{3\pi}{4}\), so it is nonzero and the derivative formula applies. First calculate
Then
For a check, the quotient-rule form gives \(\sin\frac{3\pi}{4}=\frac{\sqrt2}{2}\) and \(\cos^2\frac{3\pi}{4}=\frac12\), hence
Again, the evaluated forms agree.
A Common Sign Error
The most frequent mistake is losing the minus sign in the derivative of cosine or in the quotient-rule numerator. For the quotient \(1/\cos x\), the numerator of the quotient rule is \(u'v-uv'\), not \(u'v+uv'\). Since \(v'=-\sin x\), subtracting \(uv'\) produces a positive sine term.
A reliable check is to keep the parentheses around the derivative of the denominator until the subtraction is carried out. The numerator is \(0\cdot\cos x-1\cdot(-\sin x)=0+\sin x\). This makes the sign visible before any further simplification.
When the Formula Applies
The formula \(\frac{d}{dx}\sec x=\sec x\tan x\) is not an instruction to evaluate at every real number. At \(x=\frac{\pi}{2}+k\pi\), cosine is zero, so secant is undefined and the quotient-rule hypotheses fail. At every other real input, cosine is nonzero; sine and cosine are differentiable, and the quotient rule applies.
It is also useful to distinguish the two equivalent derivative forms. The quotient-rule calculation naturally produces \(\frac{\sin x}{\cos^2 x}\); the standard product form is \(\sec x\tan x\). Either form can be useful, but the product form is often easier to recognize in later differentiation work. Their equality follows directly from the definitions, with the same nonzero-cosine condition.
Use \(\sec x=\frac{1}{\cos x}\), noting that \(\cos x\ne 0\).
Use numerator derivative \(0\) and denominator derivative \(-\sin x\).
The result \(\frac{\sin x}{\cos^2 x}\) factors as \(\frac{1}{\cos x}\cdot\frac{\sin x}{\cos x}=\sec x\tan x\).
Check Your Understanding
Use the quotient definition and the derivative formula to test your understanding.
- For which real inputs is \(\sec x\) defined?
- When applying the quotient rule to \(\frac{1}{\cos x}\), what are the numerator and denominator derivatives?
- Show how \(\frac{\sin x}{\cos^2 x}\) becomes \(\sec x\tan x\).
- Evaluate \(\left.\frac{d}{dx}\sec x\right|_{x=\pi/3}\) in exact form, and check it using \(\frac{\sin x}{\cos^2 x}\).
- What sign error can occur when simplifying the quotient-rule numerator, and how do parentheses prevent it?