Tutorials › AP Calculus › Choosing Derivative Rules for Mixed Basic Functions

Trigonometric and Exponential Derivatives · Tutorial 160 of 999

Choosing Derivative Rules for Mixed Basic Functions

Decide which derivative rule fits a mixed expression, apply it accurately, and verify the domain where the result is valid.

Intermediate 8 min read

What You'll Learn

  • Distinguish sums, products, and quotients of basic functions.
  • Apply linearity when an expression is a sum or difference.
  • Use the product rule when two variable factors are multiplied.
  • Use the quotient rule when one variable expression is divided by another.
  • Check domains before differentiating and state where the derivative formula applies.
  • Recognize common rule-selection errors and verify derivative calculations.

Why Rule Selection Matters

A mixed expression may contain several familiar functions without being a composition. For example, \(e^x\cos x+\ln x\) combines exponential, trigonometric, and logarithmic functions, but its parts are joined by addition and multiplication. Choosing the derivative rule begins by reading those operations correctly.

The key question is not simply which function names appear. It is how the expressions are connected. A sum calls for linearity; a product of variable factors calls for the product rule; and a quotient calls for the quotient rule. Before applying any of them, check where the original expression is defined.

Core strategy: Identify the outermost operation joining the pieces, check the domain, and apply the rule that matches that operation. Then differentiate each basic factor using its derivative formula.

Basic Derivatives and Domains

For the basic functions used here, the formulas and real domains include the following. Trigonometric derivatives use radians.

$$ \begin{aligned} \frac{d}{dx}\sin x&=\cos x, &\frac{d}{dx}\cos x&=-\sin x,\\ \frac{d}{dx}e^x&=e^x, &\frac{d}{dx}\ln x&=\frac{1}{x}\quad (x>0). \end{aligned} $$

Sine, cosine, and the natural exponential are defined for every real \(x\). The natural logarithm is defined only when \(x>0\). The derivative formula for \(\ln x\) has the same restriction.

When several functions are combined, their restrictions must be combined too. A sum or product is defined where all of its terms or factors are defined. A quotient additionally requires that its denominator not equal zero. The derivative rule is valid only at points in the original expression's domain where the required factors are differentiable.

Choosing Among Linearity, Product, and Quotient Rules

Linearity handles sums, differences, and constant multiples. If \(f\) and \(g\) are differentiable at \(x\), and \(c\) is a constant, then

$$ \frac{d}{dx}\bigl(cf(x)+g(x)\bigr)=cf'(x)+g'(x). $$

A constant multiple is not a product-rule problem: the constant does not vary with \(x\). Linearity also applies term by term to longer sums.

The product rule applies when two functions of \(x\) are multiplied. If \(f\) and \(g\) are differentiable at \(x\), then

$$ \frac{d}{dx}\bigl(f(x)g(x)\bigr)=f'(x)g(x)+f(x)g'(x). $$

Both factors matter: differentiate the first while keeping the second, then keep the first and differentiate the second, and add the results.

The quotient rule applies when one function is divided by another. If \(f\) and \(g\) are differentiable at \(x\) and \(g(x)\ne 0\), then

$$ \frac{d}{dx}\left(\frac{f(x)}{g(x)}\right) = \frac{f'(x)g(x)-f(x)g'(x)}{[g(x)]^2}. $$

The order in the numerator matters: it is derivative of the top times the bottom, minus the top times derivative of the bottom. The denominator is squared.

Rule-selection test: First locate the operation joining the largest pieces of the expression. If those pieces are added or subtracted, start with linearity. If they are multiplied, use the product rule. If one is divided by the other, use the quotient rule. Then apply linearity inside any resulting sums.

Why the Quotient Rule Has This Form

The quotient rule follows from the difference quotient. This derivation also explains why its numerator has a subtraction and its denominator is squared. Suppose \(f\) and \(g\) are differentiable at \(a\), and \(g(a)\ne 0\). Differentiability implies continuity, so for \(x\) sufficiently close to \(a\), \(g(x)\ne 0\). Starting with the difference quotient gives

$$ \begin{aligned} \frac{\dfrac{f(a+h)}{g(a+h)}-\dfrac{f(a)}{g(a)}}{h} &= \frac{g(a)\bigl(f(a+h)-f(a)\bigr)-f(a)\bigl(g(a+h)-g(a)\bigr)} {h\,g(a+h)g(a)}\\ &= \frac{ g(a)\dfrac{f(a+h)-f(a)}{h} - f(a)\dfrac{g(a+h)-g(a)}{h} }{g(a+h)g(a)}. \end{aligned} $$

As \(h\) approaches zero, the two difference quotients in the numerator approach \(f'(a)\) and \(g'(a)\). Continuity gives \(g(a+h)\to g(a)\), and \(g(a)\) is nonzero. Therefore the limit exists and equals

$$ \left(\frac{f}{g}\right)'(a) = \frac{g(a)f'(a)-f(a)g'(a)}{[g(a)]^2}. $$

Since the argument applies at every point where the hypotheses hold, it gives the quotient rule. The nonzero-denominator condition is essential: without it, the quotient itself may not be defined.

Worked Examples

Worked Example: A Linear Combination of Basic Functions

Differentiate \(F(x)=4\sin x-3e^x+2\ln x\), and give the domain on which the derivative is valid.

The logarithm requires \(x>0\); the other terms are defined for every real number. Thus the original function, and its derivative, are defined on \(x>0\). Apply linearity term by term, keeping each constant multiple:

$$ \begin{aligned} F'(x) &=4\frac{d}{dx}(\sin x)-3\frac{d}{dx}(e^x) +2\frac{d}{dx}(\ln x)\\ &=4\cos x-3e^x+2\left(\frac{1}{x}\right)\\ &=4\cos x-3e^x+\frac{2}{x},\qquad x>0. \end{aligned} $$

Check each term against its basic derivative: \(4\sin x\) gives \(4\cos x\), \(-3e^x\) gives \(-3e^x\), and \(2\ln x\) gives \(2/x\). The stated restriction \(x>0\) ensures the logarithm and its derivative are defined.

Worked Example: A Product of Trigonometric and Exponential Functions

Differentiate \(G(x)=e^x\cos x\).

Both factors are defined and differentiable for every real \(x\). Since they are multiplied and both depend on \(x\), use the product rule with \(f(x)=e^x\) and \(g(x)=\cos x\):

$$ \begin{aligned} G'(x) &=(e^x)'\cos x+e^x(\cos x)'\\ &=e^x\cos x+e^x(-\sin x)\\ &=e^x(\cos x-\sin x). \end{aligned} $$

The factors have derivatives \(e^x\) and \(-\sin x\), respectively, so both terms in the product rule are accounted for. The factored and expanded expressions agree: \(e^x(\cos x-\sin x)=e^x\cos x-e^x\sin x\). The derivative is valid for all real \(x\).

Worked Example: A Quotient with a Logarithmic Numerator

Differentiate \(H(x)=\dfrac{\ln x}{1+\cos x}\), and state its domain.

The numerator requires \(x>0\). The denominator must also be nonzero. Since \(1+\cos x=0\) when \(x=(2k+1)\pi\), where \(k\) is an integer, the domain excludes those points from \(x>0\). Set \(f(x)=\ln x\) and \(g(x)=1+\cos x\). Their derivatives are \(f'(x)=1/x\) and \(g'(x)=-\sin x\). Applying the quotient rule gives

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

This formula applies for \(x>0\) and \(1+\cos x\ne0\). As a check at \(x=1\), the denominator is \(1+\cos 1\), which is nonzero. Substitution into the quotient-rule form gives

$$ H'(1) = \frac{(1)(1+\cos 1)-(\ln 1)(-\sin 1)} {(1+\cos 1)^2} = \frac{1}{1+\cos 1}. $$

Here \(\ln 1=0\), and the original quotient has \(H(1)=0\). The evaluated derivative formula is consistent with the quotient rule at this point.

A Practical Order of Operations

For a longer expression, work from its outermost operation inward, but do not use a chain-rule step for a basic function whose argument is simply \(x\). The following checklist keeps rule selection and domain checks together:

1
Record the original domain.
Require positive arguments for natural logarithms and nonzero denominators for quotients.
2
Identify how the main pieces are connected.
Classify the expression as a sum, product, or quotient, or as a combination of these.
3
Apply the matching rule.
Use linearity, the product rule, or the quotient rule at the operation joining the pieces.
4
Differentiate each basic factor.
Use the basic trigonometric, exponential, and logarithmic formulas, respecting their domains.
5
Simplify and check.
Compare the result with the rule's structure and state the points where the original expression and derivative are defined.

For example, in \(e^x\sin x+\ln x\), the top-level operation is addition. Use linearity first; within \(e^x\sin x\), use the product rule. The logarithm restricts the entire sum to \(x>0\). The order of operations helps prevent applying the product rule to terms that are only added.

Common Mistake: Differentiating Only the Numerator

A quotient is not differentiated by differentiating its numerator and leaving its denominator unchanged. For instance, for \(Q(x)=\sin x/e^x\), the incorrect calculation \(Q'(x)=\cos x/e^x\) ignores the changing denominator.

The quotient rule instead gives

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

Both \(\sin x\) and \(e^x\) are defined for all real \(x\), and \(e^x\ne0\) for every real \(x\), so this derivative is valid everywhere. At \(x=\pi/2\), the incorrect expression gives \(0\), whereas the correct derivative gives \(-1/e^{\pi/2}\). The discrepancy confirms that the denominator's derivative cannot be omitted.

Why Domain Checks Belong in the Answer

A formula for a derivative does not automatically apply everywhere the simplified algebraic expression might make sense. For example, a logarithmic term restricts the original function to positive inputs, and a quotient excludes inputs that make its denominator zero. Simplifying an expression does not restore points where the original expression was undefined.

On the AP exam, a complete derivative answer should therefore include any relevant domain restriction, especially when logarithms or quotients appear. A concise final statement such as “for \(x>0\)” or “for \(x>0\) with \(1+\cos x\ne0\)” records the conditions under which the calculation is valid.

Takeaway: Read the algebraic structure before differentiating. Linearity handles sums, the product rule handles products of variable factors, and the quotient rule handles division when the denominator is nonzero. Always preserve the original domain restrictions.

Check Your Understanding

For each expression, identify the main rule or rules, and remember to state any domain restriction.

  1. Differentiate \(3\cos x+e^x\).
  2. Differentiate \(x\) is not a basic factor in this lesson; instead, differentiate \(e^x\sin x\) and state its domain.
  3. For \(\dfrac{\ln x}{e^x}\), what restrictions define the original domain, and which derivative rule applies?
  4. Explain why differentiating only the numerator of a quotient is generally incorrect.
  5. In \(\ln x+\sin x\), which term determines the real domain of the entire expression?

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