Differentiate with fundamental rules

Distinguish power, product, quotient and elementary-function rules

What to practice

  • Distinguish power, product, quotient and elementary-function rules

Predict before you read. Let f(x)=x2f(x)=x^{2} and g(x)=x3g(x)=x^{3}. Is the derivative of the product f(x)g(x)f(x)g(x) equal to f′(x)g′(x)=6x3f'(x)g'(x)=6x^{3}? Decide now; Example 6.4 answers it.

Chapter 5 built each derivative from a limit. That always works, but slowly. This chapter develops rules that differentiate powers, sums, products and quotients, and the sine, cosine, tangent, exponential and logarithm functions, without a new limit each time. Chapter 7 adds the chain rule for compositions such as sin⁡(3x)\sin(3x).

Powers, constants and sums

Four rules handle every polynomial and every power of xx:

  • Constant: ddxc=0\frac{d}{dx}c=0. A constant's graph is horizontal.
  • Power: ddxxn=nxn−1\frac{d}{dx}x^{n}=nx^{n-1} for every real nn, wherever both powers are defined.
  • Constant multiple: ddx[cf(x)]=cf′(x)\frac{d}{dx}[cf(x)]=cf'(x).
  • Sum and difference: ddx[f(x)±g(x)]=f′(x)±g′(x)\frac{d}{dx}[f(x)\pm g(x)]=f'(x)\pm g'(x).

Why the power rule holds for a positive integer nn: expanding (x+h)n(x+h)^{n} gives xn+nxn−1hx^{n}+nx^{n-1}h plus terms that each contain h2h^{2}. Subtract xnx^{n}, divide by hh, and every term except nxn−1nx^{n-1} still contains hh, so it vanishes in the limit.

Rewrite roots and reciprocals as powers before differentiating. For example, x=x1/2\sqrt{x}=x^{1/2} gives 12x−1/2=12x\frac{1}{2}x^{-1/2}=\frac{1}{2\sqrt{x}}, the result Example 5.4 needed a conjugate to find. The derivative can have a smaller domain than the function: x1/3x^{1/3} is defined at 0, but 13x−2/3\frac{1}{3}x^{-2/3} is not, because the graph has a vertical tangent there.

Example 6.1: rewrite, then differentiate

Differentiate y=4x3−6x2+3x−π2y=4x^{3}-\frac{6}{x^{2}}+3\sqrt{x}-\pi^{2}.

Rewrite: y=4x3−6x−2+3x1/2−π2y=4x^{3}-6x^{-2}+3x^{1/2}-\pi^{2}. Then

dydx=12x2+12x−3+32x−1/2=12x2+12x3+32x\frac{dy}{dx}=12x^{2}+12x^{-3}+\frac{3}{2}x^{-1/2}=12x^{2}+\frac{12}{x^{3}}+\frac{3}{2\sqrt{x}}

for x>0x>0. The term π2\pi^{2} is a constant, so its derivative is 0, not 2π2\pi.

Common error. Differentiating 6x2\frac{6}{x^{2}} as 62x\frac{6}{2x}. A power in a denominator must be rewritten with a negative exponent first.

Sine, cosine, exponential and logarithm

FunctionDerivativeCondition
sin⁡x\sin xcos⁡x\cos xxx in radians
cos⁡x\cos x−sin⁡x-\sin xxx in radians
exe^{x}exe^{x}all xx
ln⁡x\ln x1x\frac{1}{x}x>0x>0

The sine rule comes from the definition and two limits from Chapter 4. Since sin⁡(x+h)=sin⁡xcos⁡h+cos⁡xsin⁡h\sin(x+h)=\sin x\cos h+\cos x\sin h,

sin⁡(x+h)−sin⁡xh=sin⁡x⋅cos⁡h−1h+cos⁡x⋅sin⁡hh\frac{\sin(x+h)-\sin x}{h}=\sin x\cdot\frac{\cos h-1}{h}+\cos x\cdot\frac{\sin h}{h}

which approaches sin⁡x⋅0+cos⁡x⋅1=cos⁡x\sin x\cdot 0+\cos x\cdot 1=\cos x. The cosine rule follows the same way from cos⁡(x+h)=cos⁡xcos⁡h−sin⁡xsin⁡h\cos(x+h)=\cos x\cos h-\sin x\sin h, and the minus sign in that identity becomes the minus sign in −sin⁡x-\sin x. Those two limits hold only when angles are measured in radians. In degrees, the slope of sine at 0 would be π180\frac{\pi}{180}, not 1. Figure 6.1A shows the rule: at each marked input, the slope of the sine graph equals the height of the cosine graph.

The number ee is the base whose exponential has slope 1 at x=0x=0: limh→0 eh−1h=1\mathrm{lim}_{h\to 0}\,\frac{e^{h}-1}{h}=1. Then ex+h−exh=ex⋅eh−1h\frac{e^{x+h}-e^{x}}{h}=e^{x}\cdot\frac{e^{h}-1}{h}, which approaches exe^{x}. Each output of exe^{x} is also its slope. The logarithm ln⁡x\ln x undoes exe^{x}, and its slope at xx is 1x\frac{1}{x} (Figure 6.1B); Chapter 7's inverse-function reasoning explains why.

Two graphs. Panel A shows y equals sine x as a solid curve and y equals cosine x as a dashed curve for x from 0 to 2 pi radians. At x equals 0, pi over 2, pi, 3 pi over 2 and 2 pi, a short gray tangent segment is drawn on the sine curve, and an open circle marks the cosine curve at the same input. Panel B shows y equals ln x for x from one quarter to 5, with short gray tangent segments at x equals one half, 1, 2 and 4 labeled slope 2, slope 1, slope one half and slope one quarter.

Figure 6.1. The tangent slopes of sine match the values of cosine (A); the tangent slopes of ln⁡x\ln x equal 1x\frac{1}{x} (B).

Example 6.2: a limit that is a derivative

Evaluate limh→0 cos⁡(π3+h)−12h\mathrm{lim}_{h\to 0}\,\frac{\cos\left(\frac{\pi}{3}+h\right)-\frac{1}{2}}{h}.

Since cos⁡π3=12\cos\frac{\pi}{3}=\frac{1}{2}, this is the difference quotient of f(x)=cos⁡xf(x)=\cos x at a=π3a=\frac{\pi}{3} (Chapter 5's representation change). So it equals f′(π3)=−sin⁡π3=−32f'\left(\frac{\pi}{3}\right)=-\sin\frac{\pi}{3}=-\frac{\sqrt{3}}{2}. No trigonometric identity is needed.

Example 6.3: a tangent line

Find the tangent line to y=2ex−3ln⁡xy=2e^{x}-3\ln x at x=1x=1.

The point: y(1)=2e−3ln⁡1=2ey(1)=2e-3\ln 1=2e. The slope: y′=2ex−3xy'=2e^{x}-\frac{3}{x}, so y′(1)=2e−3≈2.437y'(1)=2e-3\approx 2.437. The tangent line is y=2e+(2e−3)(x−1)y=2e+(2e-3)(x-1). Leave ee exact unless a decimal is requested.

The product rule

ddx[f(x)g(x)]=f′(x)g(x)+f(x)g′(x)\frac{d}{dx}[f(x)g(x)]=f'(x)g(x)+f(x)g'(x)

The derivative of a product is not the product of the derivatives. Figure 6.2 shows why. Picture f(x)g(x)f(x)g(x) as the area of a rectangle with width ff and height gg. When xx changes by Δx\Delta x, the width grows by Δf\Delta f and the height by Δg\Delta g, and the area grows by

g Δf+f Δg+Δf Δgg\,\Delta f+f\,\Delta g+\Delta f\,\Delta g

Divide by Δx\Delta x. As Δx→0\Delta x\to 0, the first two pieces approach gf′gf' and fg′fg'. The corner piece, ΔfΔx⋅Δg\frac{\Delta f}{\Delta x}\cdot\Delta g, approaches f′⋅0=0f'\cdot 0=0, because a differentiable gg is continuous.

A large gray rectangle labeled old area f times g, with width f and height g. A hatched strip of width delta f along its right side is labeled g times delta f. A hatched strip of height delta g along its top is labeled f times delta g. A small dark square at the upper right corner is labeled delta f times delta g, tiny.

Figure 6.2. The change in a product has two main parts; the corner piece vanishes in the limit.

Example 6.4: check the rule by expanding

Differentiate p(x)=(x2+1)(x3−2x)p(x)=(x^{2}+1)(x^{3}-2x).

By the product rule,

p′(x)=2x(x3−2x)+(x2+1)(3x2−2)=5x4−3x2−2p'(x)=2x(x^{3}-2x)+(x^{2}+1)(3x^{2}-2)=5x^{4}-3x^{2}-2

Check by expanding first: p(x)=x5−x3−2xp(x)=x^{5}-x^{3}-2x, so p′(x)=5x4−3x2−2p'(x)=5x^{4}-3x^{2}-2. The answers agree. The product of the derivatives, 2x(3x2−2)2x(3x^{2}-2), does not.

This settles the prediction: x2⋅x3=x5x^{2}\cdot x^{3}=x^{5} has derivative 5x45x^{4}, while f′(x)g′(x)=6x3f'(x)g'(x)=6x^{3}.

The quotient rule

ddx[f(x)g(x)]=f′(x)g(x)−f(x)g′(x)[g(x)]2where g(x)≠0\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right]=\frac{f'(x)g(x)-f(x)g'(x)}{[g(x)]^{2}}\quad\mathrm{where}\ g(x)\neq 0

Order matters: the numerator starts with the derivative of the top. Reversing the order reverses the sign. The denominator is squared.

Example 6.5: two routes to the same derivative

Differentiate q(x)=x2+3xq(x)=\frac{x^{2}+3}{x}.

Quotient rule. q′(x)=(2x)(x)−(x2+3)(1)x2=x2−3x2q'(x)=\frac{(2x)(x)-(x^{2}+3)(1)}{x^{2}}=\frac{x^{2}-3}{x^{2}}.

Divide first. q(x)=x+3x−1q(x)=x+3x^{-1}, so q′(x)=1−3x−2=x2−3x2q'(x)=1-3x^{-2}=\frac{x^{2}-3}{x^{2}}.

Both routes give the same answer for x≠0x\neq 0. When the denominator is a single power of xx, dividing first is shorter and has fewer places to slip. Save the quotient rule for denominators with more than one term.

Tangent, cotangent, secant and cosecant

Write each of these functions in terms of sine and cosine, then use the quotient rule.

Example 6.6: derive the secant rule

Since sec⁡x=1cos⁡x\sec x=\frac{1}{\cos x},

ddxsec⁡x=0⋅cos⁡x−1⋅(−sin⁡x)cos⁡2x=1cos⁡x⋅sin⁡xcos⁡x=sec⁡xtan⁡x\frac{d}{dx}\sec x=\frac{0\cdot\cos x-1\cdot(-\sin x)}{\cos^{2}x}=\frac{1}{\cos x}\cdot\frac{\sin x}{\cos x}=\sec x\tan x

wherever cos⁡x≠0\cos x\neq 0. The same method gives the other three rules:

FunctionDerivative
tan⁡x\tan xsec⁡2x\sec^{2}x
cot⁡x\cot x−csc⁡2x-\csc^{2}x
sec⁡x\sec xsec⁡xtan⁡x\sec x\tan x
csc⁡x\csc x−csc⁡xcot⁡x-\csc x\cot x

For tan⁡x=sin⁡xcos⁡x\tan x=\frac{\sin x}{\cos x}, the numerator becomes cos⁡2x+sin⁡2x=1\cos^{2}x+\sin^{2}x=1, so the derivative is 1cos⁡2x=sec⁡2x\frac{1}{\cos^{2}x}=\sec^{2}x. Each "co" function's derivative carries a negative sign. Every rule holds only where the original function is defined.

Choose a rule before you differentiate

Example 6.7: name the structure first

Differentiate each function.

(a) y=x3−4xxy=\frac{x^{3}-4x}{x}. The denominator is a single power, so simplify: y=x2−4y=x^{2}-4 for x≠0x\neq 0, and y′=2xy'=2x there.

(b) y=x2exy=x^{2}e^{x}. A product of a power and an exponential: y′=2xex+x2ex=xex(x+2)y'=2xe^{x}+x^{2}e^{x}=xe^{x}(x+2).

(c) y=sin⁡x1+cos⁡xy=\frac{\sin x}{1+\cos x}. The denominator has two terms, so use the quotient rule:

y′=cos⁡x(1+cos⁡x)−sin⁡x(−sin⁡x)(1+cos⁡x)2=cos⁡x+1(1+cos⁡x)2=11+cos⁡xy'=\frac{\cos x(1+\cos x)-\sin x(-\sin x)}{(1+\cos x)^{2}}=\frac{\cos x+1}{(1+\cos x)^{2}}=\frac{1}{1+\cos x}

wherever cos⁡x≠−1\cos x\neq -1, using cos⁡2x+sin⁡2x=1\cos^{2}x+\sin^{2}x=1.

The structure chooses the method: simplify a quotient over a single power, use the product rule for a product of different kinds of function, and use the quotient rule for a denominator with several terms.

Example 6.8: rules with only values

The table gives values of differentiable functions ff and gg at x=3x=3.

xxf(x)f(x)f′(x)f'(x)g(x)g(x)g′(x)g'(x)
32−1-145

Find the derivatives of fgfg and of fg\frac{f}{g} at x=3x=3.

(fg)′(3)=f′(3)g(3)+f(3)g′(3)=(−1)(4)+(2)(5)=6(fg)'(3)=f'(3)g(3)+f(3)g'(3)=(-1)(4)+(2)(5)=6

(fg)′(3)=f′(3)g(3)−f(3)g′(3)[g(3)]2=−4−1016=−78\left(\frac{f}{g}\right)'(3)=\frac{f'(3)g(3)-f(3)g'(3)}{[g(3)]^{2}}=\frac{-4-10}{16}=-\frac{7}{8}

No formulas are needed. The rules use only values and slopes at the one input.

Example 6.9: a product with units

Fresh water flows into a tank of salt water faster than the mixture drains out. At time tt minutes the volume is V(t)V(t) liters and the salt concentration is c(t)c(t) grams per liter, so the tank holds S(t)=c(t)V(t)S(t)=c(t)V(t) grams of salt. At t=5t=5, V=200V=200, V′=4V'=4, c=3c=3 and c′=−0.15c'=-0.15 (constructed practice data). Is the amount of salt increasing or decreasing at t=5t=5?

S′(5)=c′(5)V(5)+c(5)V′(5)=(−0.15)(200)+(3)(4)=−18S'(5)=c'(5)V(5)+c(5)V'(5)=(-0.15)(200)+(3)(4)=-18

Check the units of each term. Grams per liter per minute times liters gives grams per minute, and grams per liter times liters per minute also gives grams per minute. So at t=5t=5 the amount of salt is decreasing at 18 grams per minute, even though the volume is increasing. Neither rate decides the sign alone: the product rule weighs each factor's rate by the other factor's value.

Diagnose a flawed quotient

Task: find the slope of y=xx2+1y=\frac{x}{x^{2}+1} at x=0x=0.

Student work. "y′=x⋅2x−(x2+1)⋅1(x2+1)2=x2−1(x2+1)2y'=\frac{x\cdot 2x-(x^{2}+1)\cdot 1}{(x^{2}+1)^{2}}=\frac{x^{2}-1}{(x^{2}+1)^{2}}, so the slope at 0 is −1-1."

Diagnosis. The numerator is in the wrong order. It must be the top's derivative times the bottom, minus the top times the bottom's derivative: 1⋅(x2+1)−x⋅2x=1−x21\cdot(x^{2}+1)-x\cdot 2x=1-x^{2}. So y′=1−x2(x2+1)2y'=\frac{1-x^{2}}{(x^{2}+1)^{2}}, and the slope at 0 is 1.

A check that would have caught it. Near 0 the denominator is close to 1, so yy is close to xx and the slope should be close to 1. Also, yy is negative for x<0x<0 and positive for x>0x>0, so the graph rises through the origin; a slope of −1-1 is impossible.

Try it

Try it 6.1. Differentiate f(x)=2x5−4x+6x3f(x)=2x^{5}-\frac{4}{x}+6\sqrt[3]{x}, and state where your result is valid.

Try it 6.2. Let h(x)=x2sin⁡xh(x)=x^{2}\sin x. Find h′(π)h'(\pi).

Try it 6.3. Let k(x)=exx+1k(x)=\frac{e^{x}}{x+1}. Find k′(x)k'(x) and every xx where the graph of kk has a horizontal tangent.

Try it 6.4. Use the quotient rule to show that ddxcot⁡x=−csc⁡2x\frac{d}{dx}\cot x=-\csc^{2}x.

Try it 6.5. Differentiable functions uu and vv satisfy u(2)=2u(2)=2, u′(2)=3u'(2)=3, v(2)=5v(2)=5 and v′(2)=1v'(2)=1. Find (uv)′(2)(uv)'(2) and (uv)′(2)\left(\frac{u}{v}\right)'(2).

Check your work

6.1. f(x)=2x5−4x−1+6x1/3f(x)=2x^{5}-4x^{-1}+6x^{1/3}, so f′(x)=10x4+4x2+2x2/3f'(x)=10x^{4}+\frac{4}{x^{2}}+\frac{2}{x^{2/3}}. It is valid for x≠0x\neq 0: ff is undefined at 0, and the cube-root term has a vertical tangent there.

6.2. h′(x)=2xsin⁡x+x2cos⁡xh'(x)=2x\sin x+x^{2}\cos x, so h′(π)=0+π2(−1)=−π2h'(\pi)=0+\pi^{2}(-1)=-\pi^{2}.

6.3. k′(x)=ex(x+1)−ex(x+1)2=xex(x+1)2k'(x)=\frac{e^{x}(x+1)-e^{x}}{(x+1)^{2}}=\frac{xe^{x}}{(x+1)^{2}} for x≠−1x\neq -1. Since ex>0e^{x}>0, k′(x)=0k'(x)=0 only at x=0x=0.

6.4. ddxcos⁡xsin⁡x=−sin⁡xsin⁡x−cos⁡xcos⁡xsin⁡2x=−1sin⁡2x=−csc⁡2x\frac{d}{dx}\frac{\cos x}{\sin x}=\frac{-\sin x\sin x-\cos x\cos x}{\sin^{2}x}=\frac{-1}{\sin^{2}x}=-\csc^{2}x, wherever sin⁡x≠0\sin x\neq 0.

6.5. (uv)′(2)=(3)(5)+(2)(1)=17(uv)'(2)=(3)(5)+(2)(1)=17, and (uv)′(2)=(3)(5)−(2)(1)25=1325\left(\frac{u}{v}\right)'(2)=\frac{(3)(5)-(2)(1)}{25}=\frac{13}{25}.

Practice

Chapter 6 practice is items APCAL-C06-M01 to APCAL-C06-M15 and the written tasks APCAL-C06-F01 and APCAL-C06-F02. They are printed after this chapter's companion panel as Questions 79–93 and Written tasks 5 and 6. Questions 88, 91 and 93 require a graphing calculator in radian mode; the other questions and both written tasks do not. Answers, full reasoning, the error behind each wrong choice, a Repair and retry line and both scoring rubrics are in Answers, explanations and written responses at the back of the book, under Chapter 6: answers and explanations.

Before you move on

From memory, write the power, product and quotient rules and the derivatives of the six trigonometric functions, exe^{x} and ln⁡x\ln x. Then explain in one sentence why the sine rule needs radians. In two or three days, without notes, derive the cosecant rule as in Example 6.6, and redo Example 6.8 with f′(3)=2f'(3)=2.

Use this chapter companion

Review the lesson, attempt the original practice, then check the explanation. Your printed study guide remains complete without the website.

Independence

Skill by Skill Prep is independent. SAT® and AP® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website or book. PSAT/NMSQT® is a registered trademark of the College Board and the National Merit Scholarship Corporation, which are not affiliated with, and do not endorse, this site. Bluebook™ is a trademark of the College Board. ACT® is a trademark of ACT Education Corp., which is not affiliated with and does not endorse this website or book. Desmos is a trademark of Desmos Studio PBC. Practice results describe these questions, not official scores or admission predictions.

Last updated .