Tutorials › AP Calculus › Quotients of Trigonometric Functions

Trigonometric and Exponential Derivatives · Tutorial 158 of 999

Quotients of Trigonometric Functions

Apply the quotient rule to trigonometric functions, simplify carefully, and preserve the original denominator restrictions.

Intermediate 10 min read

What You'll Learn

  • State the quotient rule and the conditions required to use it.
  • Differentiate quotients involving sine, cosine, secant, and tangent.
  • Simplify derivative expressions with trigonometric identities.
  • Identify where each original quotient is defined before simplifying.
  • Recognize when algebraic simplification changes the domain of an expression.
  • Check quotient-rule results by an equivalent derivative calculation.

Why Quotients Need Care

A quotient combines two functions in a way that makes its derivative different from simply dividing their derivatives. For trigonometric quotients, there is an additional concern: sine, cosine, tangent, and secant do not all have the same domain. A formula obtained by simplifying may appear to be defined at points where the original quotient was not.

The quotient rule handles the differentiation. A separate domain check makes sure the result is stated only where the original function exists. Both steps matter: differentiating correctly does not repair an undefined starting expression.

Key idea: First identify where the quotient is defined. Then use the quotient rule, simplify, and retain the original domain restrictions.

The Quotient Rule

If \(u\) and \(v\) are differentiable near \(x\), and \(v(x)\ne 0\), then the quotient \(u(x)/v(x)\) is differentiable at \(x\), with derivative:

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

The denominator must be nonzero at the point in question. The order in the numerator is important: differentiate the top and multiply by the bottom, then subtract the top times the derivative of the bottom. The entire original denominator is squared.

Why the Quotient Rule Works

The rule follows from the product rule and the derivative of a reciprocal. At a point where \(v(x)\ne0\), the difference quotient for the reciprocal is:

$$ \frac{\frac{1}{v(x+h)}-\frac{1}{v(x)}}{h} = -\frac{\frac{v(x+h)-v(x)}{h}}{v(x+h)v(x)}. $$

Since differentiability of \(v\) implies continuity, \(v(x+h)\) approaches \(v(x)\) as \(h\) approaches zero. Thus the denominator in the last expression approaches \(v(x)^2\), which is nonzero, and the numerator's difference quotient approaches \(v'(x)\). Therefore:

$$ \left(\frac{1}{v}\right)'(x) = -\frac{v'(x)}{[v(x)]^2}. $$

Now write \(u/v=u(1/v)\) and apply the product rule:

$$ \left(\frac{u}{v}\right)' = u'\frac{1}{v} + u\left(-\frac{v'}{v^2}\right) = \frac{u'v-uv'}{v^2}. $$

This derivation explains both the subtraction and the squared denominator. It also shows why the condition \(v(x)\ne0\) is essential: without it, the reciprocal and the quotient are not defined at that point.

Worked Example: Sine Divided by Cosine

Worked Example: Differentiate \(\frac{\sin x}{\cos x}\)

Let \(f(x)=\frac{\sin x}{\cos x}\). The original denominator requires \(\cos x\ne0\), so the function is defined only where \(x\ne\frac{\pi}{2}+k\pi\), for integers \(k\).

Set \(u(x)=\sin x\) and \(v(x)=\cos x\). Then \(u'(x)=\cos x\) and \(v'(x)=-\sin x\). Applying the quotient rule gives:

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

The identity \(\sin^2 x+\cos^2 x=1\) gives the third line. The derivative formula is valid on the original domain, where \(\cos x\ne0\). For a check at \(x=\frac{\pi}{3}\), the quotient-rule result is \(\sec^2(\frac{\pi}{3})=2^2=4\). Directly in the unsimplified derivative, the numerator is \(\frac14+\frac34=1\), and the denominator is \(\frac14\), giving \(1/(\frac14)=4\) as well.

Worked Example: Secant Divided by One Plus Tangent

Worked Example: Differentiate \(\frac{\sec x}{1+\tan x}\)

The original expression requires \(\cos x\ne0\), because both secant and tangent require it. It also requires \(1+\tan x\ne0\). Where \(\cos x\ne0\), the latter condition is equivalent to \(\sin x+\cos x\ne0\). These restrictions must be checked before simplifying.

Set \(u(x)=\sec x\) and \(v(x)=1+\tan x\). Then \(u'(x)=\sec x\tan x\) and \(v'(x)=\sec^2 x\). The quotient rule gives:

$$ \begin{aligned} f'(x) &= \frac{(\sec x\tan x)(1+\tan x)-(\sec x)(\sec^2 x)} {(1+\tan x)^2}\\ &= \frac{\sec x\bigl(\tan x+\tan^2 x-\sec^2 x\bigr)} {(1+\tan x)^2}\\ &= \frac{\sec x(\tan x-1)}{(1+\tan x)^2}. \end{aligned} $$

For the last equality, use \(\sec^2 x=1+\tan^2 x\). The displayed derivative is valid only where the original quotient is defined. For an exact check at \(x=0\), the original function has value \(\sec 0/(1+\tan 0)=1\). In the quotient rule, \(u(0)=1\), \(u'(0)=0\), \(v(0)=1\), and \(v'(0)=1\), so \(f'(0)=(0\cdot1-1\cdot1)/1^2=-1\). The simplified derivative also gives \(1(0-1)/(1+0)^2=-1\).

There is another useful check. On the original domain, multiplying numerator and denominator by \(\cos x\) rewrites the function as \(1/(\sin x+\cos x)\). Differentiating that form gives \((\sin x-\cos x)/(\sin x+\cos x)^2\). This agrees with the quotient-rule result: substituting \(\sec x=1/\cos x\) and \(\tan x=\sin x/\cos x\) into the result above produces exactly that expression.

However, \(1/(\sin x+\cos x)\) can be defined at some points where \(\cos x=0\). The original expression \(\sec x/(1+\tan x)\) is still undefined there. The rewritten expression is equivalent only on the original domain; it does not enlarge the domain of the original function.

Worked Example: A Trigonometric Denominator

Worked Example: Differentiate \(\frac{\sin x}{1+\cos x}\)

The denominator is zero when \(\cos x=-1\), which occurs at \(x=(2k+1)\pi\) for integers \(k\). The quotient is defined elsewhere.

Let \(u(x)=\sin x\) and \(v(x)=1+\cos x\). Then \(u'(x)=\cos x\) and \(v'(x)=-\sin x\). Apply the rule and simplify:

$$ \begin{aligned} f'(x) &= \frac{(\cos x)(1+\cos x)-(\sin x)(-\sin x)} {(1+\cos x)^2}\\ &= \frac{\cos x+\cos^2 x+\sin^2 x}{(1+\cos x)^2}\\ &= \frac{1+\cos x}{(1+\cos x)^2}\\ &= \frac{1}{1+\cos x}. \end{aligned} $$

In the final step, cancel one factor of \(1+\cos x\); this is permitted because the original domain excludes points where that factor is zero. Check at \(x=0\): the original function is \(0/(1+1)=0\), and the derivative from the quotient rule is \((1\cdot2-0\cdot0)/2^2=2/4=1/2\). The simplified result gives \(1/(1+1)=1/2\), confirming the calculation.

Keep the Original Domain in View

Algebraic simplification can make a derivative easier to read, but it must not conceal where the original function was defined. For instance, canceling a factor that is zero at some input is valid only at points where that factor is nonzero. If the original expression excluded such an input, a simplified formula may describe a larger domain than the function's actual domain.

For a trigonometric quotient, check both kinds of restriction:

  • Any trigonometric function used in the numerator or denominator must itself be defined. In particular, \(\tan x\) and \(\sec x\) require \(\cos x\ne0\).
  • The complete denominator of the quotient must be nonzero.

These are distinct checks. For \(\sec x/(1+\tan x)\), \(\cos x\ne0\) is needed to define secant and tangent, and \(1+\tan x\ne0\) is needed to keep the quotient's denominator nonzero.

A Common Mistake: Reversing a Sign

A frequent error is to forget that the derivative of \(\cos x\) is \(-\sin x\). For \(f(x)=\sin x/\cos x\), an incorrect calculation might write:

$$ \frac{(\cos x)(\cos x)-(\sin x)(\sin x)}{\cos^2 x} = \frac{\cos^2 x-\sin^2 x}{\cos^2 x}. $$

The quotient rule's subtraction is correct, but the derivative substituted for the denominator's derivative is not: \((\cos x)'=-\sin x\), not \(+\sin x\). The correct numerator is therefore:

$$ (\cos x)(\cos x)-(\sin x)(-\sin x) = \cos^2 x+\sin^2 x = 1. $$

Thus \(f'(x)=1/\cos^2 x=\sec^2 x\) wherever \(\cos x\ne0\). Writing the derivatives of the numerator and denominator separately before substituting them into the quotient rule can prevent this sign error.

Using the Rule Reliably

For each quotient, keep the calculation in a fixed order:

1
Check the domain.
Find where the trigonometric pieces are defined and where the full denominator is nonzero.
2
Name the numerator and denominator.
Write \(u\) for the top and \(v\) for the bottom, then calculate \(u'\) and \(v'\).
3
Apply the rule in order.
Use \((u'v-uv')/v^2\), keeping parentheses around the entire denominator.
4
Simplify and preserve restrictions.
Use identities where helpful, but report the derivative only on the original function's domain.

This routine separates differentiation from algebra and domain reasoning. It is especially useful when the result simplifies substantially, because the original restrictions remain part of the answer even if they no longer appear in the simplified formula.

Check Your Understanding

For each question, identify any domain restriction before differentiating or simplifying.

  1. Differentiate \(\frac{\cos x}{\sin x}\) using the quotient rule. State its domain.
  2. For \(g(x)=\frac{\sec x}{1-\tan x}\), list the restrictions imposed by the original expression.
  3. Differentiate \(\frac{\cos x}{1+\sin x}\) and simplify the result.
  4. Explain why rewriting \(\frac{\sec x}{1+\tan x}\) as \(\frac{1}{\sin x+\cos x}\) does not make the original expression defined wherever \(\cos x=0\).
  5. In the quotient rule, why must the denominator be squared, and why must it be nonzero?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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
Clinical Biostats