AP Calculus AB · Topic 3.5 · Reading guide, about 5 min

Picking the right derivative rules

How to read an expression's structure, choose among power, product, quotient and chain rules, and simplify first.

In one minute

By now you know many rules, and the hard part is no longer carrying one out but choosing which to use. Real problems blend them: a product with a chain rule inside, a quotient with an exponential, or a logarithm that can be simplified before you differentiate at all.

This topic is about reading the structure of an expression from the outside in, deciding what the last operation is, and keeping your work organized so that a single slip does not spoil the answer.

Key terms

Outermost operation
The last operation performed when evaluating an expression. It tells you which rule to apply first.
Power rule
ddxxn=nxn−1\frac{d}{dx}x^n=nx^{n-1} for a plain power of xx with a constant exponent.
Product rule
(fg)′=f′g+fg′(fg)'=f'g+fg', used when two non-constant factors are multiplied.
Quotient rule
(fg)′=f′g−fg′g2\left(\frac{f}{g}\right)'=\frac{f'g-fg'}{g^2}, used when a function is divided by a non-constant function.
Chain rule
Used when one function sits inside another. It multiplies by the derivative of the inside.
Simplify first
Rewriting an expression with log properties, negative exponents or algebra before differentiating, to avoid heavy rules.
Logarithm properties
ln⁡(ab)=ln⁡a+ln⁡b\ln(ab)=\ln a+\ln b, ln⁡ab=ln⁡a−ln⁡b\ln\frac{a}{b}=\ln a-\ln b and ln⁡(ak)=kln⁡a\ln(a^k)=k\ln a, valid when the quantities are positive.
Implicit differentiation
The method for equations where yy is not isolated. It adds a factor dydx\frac{dy}{dx} to each yy-term.

Read from the outside in

Ask what the last operation is. For x2sin⁡(3x)x^2\sin(3x) it is a product of x2x^2 and sin⁡(3x)\sin(3x), so start with the product rule. For e2x1+x2\frac{e^{2x}}{1+x^2} it is a quotient. For x2+1\sqrt{x^2+1} it is a square root of something, so start with the chain rule. The outermost operation sets the first move, and the inner pieces get their own rules in turn.

Often one problem needs several rules at once. In x2sin⁡(3x)x^2\sin(3x), after the product rule you still must differentiate sin⁡(3x)\sin(3x), which needs the chain rule. Write each derivative you need on its own line, then assemble them. This keeps the structure visible and reduces sign errors.

When an equation mixes xx and yy and yy is hard to isolate, as in x2+xy+y3=7x^2+xy+y^3=7, choose implicit differentiation: differentiate both sides with respect to xx, treating yy as a function of xx. That gives 2x+y+xdydx+3y2dydx=02x+y+x\frac{dy}{dx}+3y^2\frac{dy}{dx}=0, so dydx=−2x+yx+3y2\frac{dy}{dx}=-\frac{2x+y}{x+3y^2}. If yy is easy to isolate, as in xy=4xy=4, either route works: solving first gives y=4xy=\frac{4}{x} and y′=−4x2y'=-\frac{4}{x^2}, and implicit differentiation gives y+xdydx=0y+x\frac{dy}{dx}=0, so dydx=−yx\frac{dy}{dx}=-\frac{y}{x}, which is the same thing once you substitute y=4xy=\frac{4}{x}.

What the structure of an expression suggests
Looks likeFirst moveWatch for
xnx^n with a number nnPower ruleRadicals and reciprocals written as powers first
f(x)⋅g(x)f(x)\cdot g(x)Product ruleA constant times a function is not a product
f(x)g(x)\frac{f(x)}{g(x)}Quotient rule, or rewriteOrder of terms in the numerator
f(g(x))f(g(x))Chain ruleA missing inner derivative
ln⁡\ln of a product, quotient or powerExpand with log propertiesDomain: arguments must be positive
yy mixed with xxImplicit differentiationA factor dydx\frac{dy}{dx} on each yy-term

Simplify before you differentiate

Some expressions look like they demand the quotient rule but do not. The function x3+2xx\frac{x^3+2x}{x} simplifies to x2+2x^2+2 for x≠0x\neq 0, whose derivative is 2x2x. The function 5x4\frac{5}{x^4} is 5x−45x^{-4}, with derivative −20x−5-20x^{-5}. Radicals work the same way: x23=x2/3\sqrt[3]{x^2}=x^{2/3}.

Logarithms offer the biggest savings. To differentiate ln⁡x3(2x+1)2\ln\frac{x^3}{(2x+1)^2}, use log properties to write 3ln⁡x−2ln⁡(2x+1)3\ln x-2\ln(2x+1) for x>0x>0. Then each piece is simple. If you skip this step, you would need a chain rule around a quotient rule, which is slower and riskier. Simplifying is an optional shortcut, but it is worth a few seconds of thought every time.

Checking your answer

Since there is often more than one valid route, you can check by using a second route or by simplifying your answer. If the product-rule result and the simplified form agree, you are likely right. Another check is a quick numerical test: evaluate your formula at one input and compare it with the slope of a secant line over a very short interval around that input. The two should be close.

Also check signs and domain. Where a function is decreasing, its derivative cannot be positive, so if your answer is positive where the graph clearly falls, something went wrong. Domain matters too: the derivative of ln⁡(g(x))\ln(g(x)) only makes sense where g(x)>0g(x)>0.

A fully worked example

Find dydx\frac{dy}{dx} for y=ln⁡x3(2x+1)2y=\ln\frac{x^3}{(2x+1)^2} and evaluate it at x=1x=1. Then find the derivative of y=x2sin⁡(3x)y=x^2\sin(3x).

Part one, step 1: rewrite. For x>0x>0, y=3ln⁡x−2ln⁡(2x+1)y=3\ln x-2\ln(2x+1).

Step 2: differentiate. The first term gives 3x\frac{3}{x}. The second term uses the chain rule with inside 2x+12x+1, giving −2⋅22x+1=−42x+1-2\cdot\frac{2}{2x+1}=-\frac{4}{2x+1}. So y′=3x−42x+1y'=\frac{3}{x}-\frac{4}{2x+1}.

Step 3: evaluate. At x=1x=1, y′=3−43=53y'=3-\frac{4}{3}=\frac{5}{3}. Check by combining fractions: 3(2x+1)−4xx(2x+1)=2x+3x(2x+1)\frac{3(2x+1)-4x}{x(2x+1)}=\frac{2x+3}{x(2x+1)}, which at x=1x=1 is 53\frac{5}{3}.

Part two: the outermost operation is a product. ddx[x2]=2x\frac{d}{dx}[x^2]=2x and ddx[sin⁡(3x)]=3cos⁡(3x)\frac{d}{dx}[\sin(3x)]=3\cos(3x). So y′=2xsin⁡(3x)+x2⋅3cos⁡(3x)=2xsin⁡(3x)+3x2cos⁡(3x)y'=2x\sin(3x)+x^2\cdot 3\cos(3x)=2x\sin(3x)+3x^2\cos(3x).

How it connects

  • Back to 2.5 through 2.10: every basic rule from the previous unit shows up here as a building block.
  • Back to 3.1 through 3.4: the chain rule, implicit differentiation, inverse functions and arc functions are the other tools in the box.
  • Forward to 5.3: the sign of a derivative tells you where a function rises and falls, so a correct formula comes first.
  • Forward to 6.9: recognizing which rule produced an expression is the same skill you need to reverse it with substitution.

Common mistakes

  • Using the quotient rule when simplifying would be easier. Divide first if the denominator is a single term, and rewrite 5x4\frac{5}{x^4} as 5x−45x^{-4}.
  • Treating a constant multiple as a product. For 3sin⁡x3\sin x, just pull out the 3. The product rule is not needed.
  • Mixing up the order in the quotient rule. The numerator is f′g−fg′f'g-fg', and swapping the two terms flips the sign of the whole answer.
  • Stopping after the first rule. If the pieces contain composites, each one still needs the chain rule.
  • Expanding logs illegally. The property ln⁡(a+b)=ln⁡a+ln⁡b\ln(a+b)=\ln a+\ln b is false. Only products, quotients and powers expand.

How it shows up on the exam

  • Multiple-choice problems often hide a single rule choice, such as a product rule with a chain rule factor, and wrong answers come from skipping one of the layers.
  • Free-response parts may ask for a derivative of a messy expression and then use it for a slope or a rate, so a simplified, correct derivative pays off in later parts.
  • Some items give an equation of a curve and ask for the slope at a point, where you must decide between solving for yy and using implicit differentiation.

Check yourself

  1. For x2e3x\frac{x^2}{e^{3x}}, would you use the quotient rule, or rewrite it first? Which is shorter?
  2. What is the outermost operation in xcos⁡(x2)\sqrt{x}\cos(x^2), and which rules appear?
  3. How can you check that your derivative of x2sin⁡(3x)x^2\sin(3x) is plausible at x=0x=0?
  4. Why can you not expand ln⁡(x2+1)\ln(x^2+1) into a sum of logs?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.