Recognizing the Structure Before Differentiating
A trigonometric expression can contain familiar functions in several different arrangements. In \(\sin x\cos x\), two functions are multiplied. In \(\frac{\sin x}{\cos x}\), one function is divided by another. These structures call for different differentiation rules, even though identities can sometimes rewrite one expression in another form.
The useful first step is to read the expression as it is written: identify its numerator and denominator, or identify its factors. Then apply a rule that matches that structure. After differentiating, trigonometric identities can help simplify the result or check that two different approaches agree.
Throughout this tutorial, \(x\) is measured in radians. We use the standard derivatives \((\sin x)'=\cos x\) and \((\cos x)'=-\sin x\), together with the reciprocal trigonometric derivatives established in the earlier material.
The Product Rule
For example, in \(\sin x\cos x\), take \(u(x)=\sin x\) and \(v(x)=\cos x\). The rule gives \(\cos x\cos x+\sin x(-\sin x)\). It does not give just the derivative of one factor times the other.
The Quotient Rule
The condition \(v(x)\ne 0\) matters: the quotient is not defined where its denominator is zero. A simplified expression for a derivative must still be understood on the domain where the original function is defined.
Why the Rules Work
The rules follow from the definition of a derivative. For the product, consider differentiable functions \(u\) and \(v\) at a point \(a\). Add and subtract \(u(x)v(a)\) in the difference quotient. For \(x\ne a\),
As \(x\) approaches \(a\), differentiability implies continuity, so \(u(x)\) approaches \(u(a)\). The two difference quotients approach \(v'(a)\) and \(u'(a)\), respectively. Therefore the limit is \(u(a)v'(a)+v(a)u'(a)\), which is the product rule.
For the quotient, suppose \(v(a)\ne0\). Since \(v\) is continuous at \(a\), it remains nonzero for \(x\) sufficiently close to \(a\), so the nearby quotient is defined. Its difference quotient can be rearranged as
Taking the limit as \(x\) approaches \(a\), the numerator approaches \(v(a)u'(a)-u(a)v'(a)\), and the denominator approaches \(v(a)^2\). This gives the quotient rule, including its minus sign and squared denominator.
Worked Example: A Product of Sine and Cosine
Worked Example: A Product of Sine and Cosine
Differentiate \(f(x)=\sin x\cos x\). The expression is a product, so let \(u(x)=\sin x\) and \(v(x)=\cos x\). Their derivatives are \(u'(x)=\cos x\) and \(v'(x)=-\sin x\).
The double-angle identity \(\cos(2x)=\cos^2 x-\sin^2 x\) gives the equivalent form \(f'(x)=\cos(2x)\). Check at \(x=\frac{\pi}{3}\): the first form gives \(\frac14-\frac34=-\frac12\), while the second gives \(\cos(\frac{2\pi}{3})=-\frac12\). The forms agree.
An Expression Can Have More Than One Useful Form
Sometimes an identity lets us choose between a quotient and a product. For instance, where \(\cos x\ne0\), \(\frac{\sin x}{\cos x}=\sin x\sec x\). The quotient rule applies directly to the first form; the product rule applies to the second. If both calculations are correct, they must agree wherever the original expression is defined.
Worked Example: Differentiate a Sine-Cosine Quotient in Two Ways
Let \(f(x)=\frac{\sin x}{\cos x}\), with \(\cos x\ne0\). First use the quotient rule, taking \(u(x)=\sin x\) and \(v(x)=\cos x\):
Now use the identity \(f(x)=\sin x\sec x\). The product rule, with \((\sec x)'=\sec x\tan x\), gives
The two results agree by \(\sin^2 x+\cos^2 x=1\). As a numerical check at \(x=\frac{\pi}{4}\), \(\sec^2(\frac{\pi}{4})=2\). In the quotient calculation the numerator is \(\frac12+\frac12=1\), and the denominator is \(\frac12\), so the result is also \(2\). Both forms are valid only where \(\cos x\ne0\).
Worked Example: A Quotient with a Trigonometric Sum
Worked Example: A Quotient with a Trigonometric Sum
Differentiate \(g(x)=\frac{\sin x}{1+\cos x}\). The denominator must be nonzero, so the domain excludes points where \(1+\cos x=0\). Set \(u(x)=\sin x\), \(v(x)=1+\cos x\), \(u'(x)=\cos x\), and \(v'(x)=-\sin x\). Apply the quotient rule:
The simplification uses \(\cos^2 x+\sin^2 x=1\), and the last cancellation is valid because \(1+\cos x\ne0\) on the domain. Check at \(x=\frac{\pi}{3}\). The unsimplified numerator is \(\frac34+\frac34=\frac32\), and the denominator is \((\frac32)^2=\frac94\), giving \(\frac32\div\frac94=\frac23\). The simplified derivative is \(\frac{1}{1+\frac12}=\frac23\), as required.
Choosing a Rule and Checking the Result
When you face a trigonometric expression, use its structure to guide the calculation. The following process helps keep the rule, signs, and domain aligned.
Look for multiplication between factors or a numerator divided by a denominator. Do not confuse a product with a quotient merely because both contain two functions.
For a quotient, note where the denominator is nonzero before simplifying. This prevents an algebraic cancellation from obscuring a point where the original function was undefined.
For a product, include both product-rule terms. For a quotient, preserve the numerator order and square the full denominator.
Use identities such as \(\sin^2 x+\cos^2 x=1\) to compare equivalent forms. If useful, substitute a permitted special angle to check the arithmetic.
There is not always a single best-looking form. A product may be convenient when the factors have simple derivatives; a quotient may be convenient when the quotient rule produces a recognizable identity. Rewriting first is optional, not a requirement. The important point is that the chosen form and differentiation rule must match.
A Common Quotient-Rule Mistake
A frequent error is to remember the correct numerator but forget to square the denominator. For \(f(x)=\frac{\sin x}{\cos x}\), an incorrect calculation is
The quotient rule requires \(\cos^2 x\) in the denominator, not \(\cos x\). The corrected calculation is
The error is also exposed by checking \(x=\frac{\pi}{4}\): the incorrect answer is \(\sqrt{2}\), while the quotient-rule calculation gives \(2\). A check does not replace a correct derivation, but it can reveal a missing factor or an algebraic slip.
Summary
The product and quotient rules address different structures. A product \(u(x)v(x)\) differentiates to \(u'(x)v(x)+u(x)v'(x)\). A quotient \(\frac{u(x)}{v(x)}\), where \(v(x)\ne0\), differentiates to \(\frac{u'(x)v(x)-u(x)v'(x)}{[v(x)]^2}\). Trigonometric identities can simplify the result and show that different valid approaches agree, provided the original domain is respected.
Check Your Understanding
For each question, identify the relevant structure and state any domain restriction before simplifying.
- In \(\sin x\cos x\), which differentiation rule applies, and how many terms should appear?
- State the quotient rule and its condition on the denominator.
- Differentiate \(\frac{\cos x}{\sin x}\), where \(\sin x\ne0\), and simplify using a trigonometric identity.
- Why must the denominator remain squared in the quotient rule?
- Where is \(\frac{\sin x}{1+\cos x}\) undefined, and why does simplifying its derivative not change that domain?