Tutorials › Calculus I › Deriving the Secant Derivative by the Quotient Rule

Trigonometric Derivatives · Tutorial 493 of 1495

Deriving the Secant Derivative by the Quotient Rule

Learn why differentiating secant as a quotient gives the formula secant times tangent, and how to apply and check that result.

Intermediate 9 min read

What You'll Learn

  • State where secant is defined and why the quotient rule applies there
  • Differentiate one divided by cosine using the quotient rule
  • Use the sine and cosine derivative formulas to simplify the result
  • Rewrite the simplified derivative as secant times tangent
  • Check the formula at exact angles and avoid a common sign error

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\).

Definition: The secant function is \(\sec x=\frac{1}{\cos x}\) for all real \(x\) such that \(\cos x\ne 0\). Its domain is \(\mathbb{R}\setminus\{\frac{\pi}{2}+k\pi:k\in\mathbb{Z}\}\).

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

$$ \frac{d}{dx}\left(\frac{u(x)}{v(x)}\right) = \frac{u'(x)v(x)-u(x)v'(x)}{(v(x))^2}. $$

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

$$ \begin{aligned} \frac{d}{dx}\sec x &=\frac{d}{dx}\left(\frac{1}{\cos x}\right)\\ &=\frac{(0)(\cos x)-(1)(-\sin x)}{(\cos x)^2}\\ &=\frac{\sin x}{\cos^2 x}. \end{aligned} $$

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\):

$$ \frac{\sin x}{\cos^2 x} = \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} = \sec x\tan x. $$
Theorem: For every \(x\) such that \(\cos x\ne 0\), $$ \frac{d}{dx}\sec x=\sec x\tan 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

$$ \begin{aligned} f'(x) &=\frac{u'(x)v(x)-u(x)v'(x)}{(v(x))^2}\\ &=\frac{(0)(\cos x)-(1)(-\sin x)}{\cos^2 x}\\ &=\frac{0+\sin x}{\cos^2 x}\\ &=\frac{\sin x}{\cos x}\cdot\frac{1}{\cos x}\\ &=\tan x\sec x. \end{aligned} $$

Thus \(f'(x)=\sec x\tan x\). To check the simplification, expand the product using the definitions:

$$ \sec x\tan x = \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} = \frac{\sin x}{\cos^2 x}, $$

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

$$ \begin{aligned} \sec\frac{\pi}{6}&=\frac{1}{\cos(\pi/6)}=\frac{1}{\sqrt{3}/2}=\frac{2}{\sqrt{3}},\\ \tan\frac{\pi}{6}&=\frac{\sin(\pi/6)}{\cos(\pi/6)} =\frac{1/2}{\sqrt{3}/2} =\frac{1}{\sqrt{3}},\\ \left.\frac{d}{dx}\sec x\right|_{x=\pi/6} &=\sec\frac{\pi}{6}\tan\frac{\pi}{6} =\frac{2}{\sqrt{3}}\cdot\frac{1}{\sqrt{3}} =\frac{2}{3}. \end{aligned} $$

Check using the quotient-rule form. Here \(\sin\frac{\pi}{6}=\frac12\) and \(\cos^2\frac{\pi}{6}=(\frac{\sqrt3}{2})^2=\frac34\), so

$$ \frac{\sin(\pi/6)}{\cos^2(\pi/6)} = \frac{1/2}{3/4} = \frac12\cdot\frac43 = \frac23. $$

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:

$$ \begin{aligned} \sec\frac{2\pi}{3} &=\frac{1}{-\frac12}=-2,\\ \tan\frac{2\pi}{3} &=\frac{\sin(2\pi/3)}{\cos(2\pi/3)} =\frac{\sqrt3/2}{-1/2} =-\sqrt3. \end{aligned} $$

Therefore,

$$ \left.\frac{d}{dx}\sec x\right|_{x=2\pi/3} = (-2)(-\sqrt3) = 2\sqrt3. $$

Check directly in the quotient-rule form. Since \(\cos^2\frac{2\pi}{3}=\frac14\),

$$ \frac{\sin(2\pi/3)}{\cos^2(2\pi/3)} = \frac{\sqrt3/2}{1/4} = \frac{\sqrt3}{2}\cdot 4 = 2\sqrt3. $$

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

$$ \sec\frac{3\pi}{4} = \frac{1}{-\sqrt2/2} = -\sqrt2, \qquad \tan\frac{3\pi}{4} = \frac{\sqrt2/2}{-\sqrt2/2} = -1. $$

Then

$$ \left.\frac{d}{dx}\sec x\right|_{x=3\pi/4} = (-\sqrt2)(-1) = \sqrt2. $$

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

$$ \frac{\sin(3\pi/4)}{\cos^2(3\pi/4)} = \frac{\sqrt2/2}{1/2} = \sqrt2. $$

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.

Common mistake: Writing $$ \frac{(0)(\cos x)-(1)(-\sin x)}{\cos^2 x} = -\frac{\sin x}{\cos^2 x} $$ incorrectly changes the sign when simplifying. The correct subtraction is \(0-(-\sin x)=+\sin x\), so the derivative is \(\frac{\sin x}{\cos^2 x}=\sec x\tan x\).

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.

1
Write secant as a quotient.
Use \(\sec x=\frac{1}{\cos x}\), noting that \(\cos x\ne 0\).
2
Apply the quotient rule with parentheses.
Use numerator derivative \(0\) and denominator derivative \(-\sin x\).
3
Simplify, then identify the factors.
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.

  1. For which real inputs is \(\sec x\) defined?
  2. When applying the quotient rule to \(\frac{1}{\cos x}\), what are the numerator and denominator derivatives?
  3. Show how \(\frac{\sin x}{\cos^2 x}\) becomes \(\sec x\tan x\).
  4. Evaluate \(\left.\frac{d}{dx}\sec x\right|_{x=\pi/3}\) in exact form, and check it using \(\frac{\sin x}{\cos^2 x}\).
  5. What sign error can occur when simplifying the quotient-rule numerator, and how do parentheses prevent it?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon