Calculus › Section C · Derivatives › Topic C.3

Product and quotient rules; higher derivatives

When functions multiply or divide, their derivatives do not simply multiply or divide. Two precise patterns handle it, and once differentiation is cheap, nothing stops us from differentiating twice.

The wrong guess, tested

Ask someone to guess the derivative of a product and they will usually suggest \((fg)' = f'g'\): differentiate each factor and multiply. It takes one line to demolish. The product \(x \cdot x = x^2\) has derivative \(2x\), but the guess gives \(1 \cdot 1 = 1\). So products need their own rule. The same fate awaits the corresponding guess for quotients. These failures are a gift: every time you are tempted to multiply or divide two derivatives, the memory of \(x \cdot x\) should stop your hand. The true rules have a shape, and it is worth understanding where it comes from rather than merely memorising it.

The product rule

Picture a rectangle whose side lengths \(f(x)\) and \(g(x)\) both grow as \(x\) moves. When \(x\) moves by a small \(h\), \(f\) grows by about \(f'h\) and \(g\) by about \(g'h\), so the area \(fg\) gains three pieces: a strip of about \(f'h \cdot g\), a strip of about \(f \cdot g'h\), and a tiny corner of about \(f'g'h^2\). Divide by \(h\) and let \(h \to 0\): the strips survive and the corner vanishes, giving

(fg)' = f'g + fg'

First times the derivative of the second, plus second times the derivative of the first: one prime per term, because each factor takes its turn to grow while the other stands still. For revenue \(R = pq\) (price times quantity), \(R' = p'q + pq'\) splits the change into a price effect and a quantity effect.

Worked example: a power times a trig function

Differentiate \(y = x^2 \sin x\). Assign \(f = x^2\), so \(f' = 2x\), and \(g = \sin x\), so \(g' = \cos x\). The product rule assembles the answer: \(y' = 2x \sin x + x^2 \cos x\). Check the structure: two terms, each with exactly one derivative, the other factor untouched. There is nothing to simplify, and that is the typical landing form. If a common factor had appeared, factoring it out would be worth doing, because factored answers expose their zeros, and zeros of the derivative are where level tangents live.

Worked example: finding where the slope flattens

Differentiate \(y = x e^x\) and find any horizontal tangents. With \(f = x\) and \(g = e^x\), we get \(y' = 1 \cdot e^x + x \cdot e^x\). Factor out the shared \(e^x\):

y' = e^x(1 + x)

Now the hunt is easy. Since \(e^x\) is never zero, \(y' = 0\) exactly when \(1 + x = 0\), at \(x = -1\). The curve bottoms out there, at the point \((-1, -1/e)\), and this is the whole workflow in miniature: differentiate, factor, read off where the slope vanishes. The factoring step is what turns an answer into information.

Three factors or more

The rectangle picture generalises. For a product of three functions, each factor still gets its turn:

(fgh)' = f'gh + fg'h + fgh'

one prime per term, three terms for three factors, and the pattern extends to any number of factors. You can prove it by grouping: treat \(fgh\) as \((fg)h\) and apply the two-factor rule twice. In practice you will rarely need more than three, but recognising the pattern, one derivative at a time with everything else held still, is what lets you read long product answers without panic.

The quotient rule

For a fraction \(\frac{f}{g}\), the rule is

\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}

remembered as "low d-high minus high d-low, over low squared", where low is the denominator and high the numerator. Two features carry all the mistakes. The order of the subtraction matters: "low d-high" comes first, and swapping the terms flips the sign of the whole answer. And the denominator is squared, never merely copied. The rule follows from the product rule: write \(f = \frac{f}{g} \cdot g\), differentiate both sides, and solve for \(\left(\frac{f}{g}\right)'\). At this stage, though, the dependable slogan is what you need.

Worked example: a quotient that tidies itself

Differentiate \(y = \dfrac{2x - 1}{x + 4}\). High is \(2x - 1\), derivative \(2\); low is \(x + 4\), derivative \(1\). The rule gives

y' = \frac{2(x + 4) - (2x - 1)(1)}{(x + 4)^2}

Expand the top with care, keeping the brackets on the second product: \(2x + 8 - 2x + 1 = 9\). So \(y' = \dfrac{9}{(x + 4)^2}\), surprisingly clean. The moral: after the quotient rule, simplify the numerator fully but leave the denominator factored. And notice the derivative is positive wherever it is defined, so the graph rises on each side of its vertical asymptote at \(x = -4\).

Harvesting the rest of trigonometry

The quotient rule finally pays the debt from C.2: the derivatives of the remaining trig functions. For tangent, write \(\tan x = \frac{\sin x}{\cos x}\) and apply the rule: the numerator becomes \(\cos x \cdot \cos x - \sin x \cdot (-\sin x) = \cos^2 x + \sin^2 x = 1\), and the denominator is \(\cos^2 x\), so \(\frac{d}{dx}\tan x = \sec^2 x\). The same machinery gives \(\frac{d}{dx}\sec x = \sec x \tan x\), \(\frac{d}{dx}\cot x = -\csc^2 x\) and \(\frac{d}{dx}\csc x = -\csc x \cot x\). The co-functions all carry a minus sign, a small mercy for memory.

Knowing when not to use the rule

Good technique is also knowing which battles to skip. Before reaching for the quotient rule, look for a simplification. \(\dfrac{x^5 + 3x}{x}\) is just \(x^4 + 3\) wherever \(x \ne 0\), with derivative \(4x^3\), no rule needed. A constant over a power, like \(\frac{5}{x^4}\), is \(5x^{-4}\), whose derivative \(-20x^{-5}\) comes straight from the power rule. Using the quotient rule on either would work but would take four lines and invite a sign slip. The professional habit: simplify first, differentiate second. It saves time now and pays off again in Section E, where simplifying first often turns a hard integral into an easy one.

Higher derivatives and acceleration

Nothing stops the machine from running twice. The derivative of the derivative is the second derivative, written \(f''(x)\) or \(\frac{d^2y}{dx^2}\), minding where the 2s sit. Each pass answers 'how fast is the previous thing changing?'. Motion makes it concrete: position \(s(t)\), velocity \(v = s'\), acceleration \(a = v' = s''\). For the thrown ball, \(s(t) = -4.9t^2 + 20t\) gives \(v = -9.8t + 20\) and \(a = -9.8\) metres per second squared, a constant, exactly the pull of gravity. Third and fourth derivatives exist too, and polynomials like \(x^3\) show the chain ending: \(3x^2\), then \(6x\), then \(6\), then \(0\) forever.

Common mistakes to avoid

The leaderboard: writing \((fg)' = f'g'\); reversing the quotient rule's numerator, which flips the sign; forgetting to square the denominator; dropping brackets so that \(-(2x - 1)\) becomes \(-2x - 1\); using the quotient rule where a rewrite would finish the job; and confusing the power rule with \(\frac{d}{dx} e^x\), which is not \(xe^{x-1}\) but \(e^x\) itself. Also keep \(\frac{d^2y}{dx^2}\) distinct from \(\left(\frac{dy}{dx}\right)^2\): the first means differentiate twice, the second means square the slope. They are wildly different objects.

Key takeaways

Products: \((fg)' = f'g + fg'\), each factor taking its turn, one prime per term. Quotients: "low d-high minus high d-low, over low squared", order matters and the bottom is squared. The quotient rule delivers the remaining trig derivatives, tan going to \(\sec^2\) and sec to \(\sec\tan\). Simplify before differentiating whenever a rewrite is available. Factor answers to expose where slopes vanish. And differentiation iterates: \(f''\) measures how the slope changes, which for motion is acceleration, and which in Section D will tell us how curves bend. Next comes the deepest of the three big rules: the chain rule.

Flashcards

Flashcard

Product rule

(fg)′ = f′g + fg′

First times second's derivative, plus second times first's.

Test your understanding

Question 1 of 5

What is the derivative of y = x cos x?

Question 2 of 5

What is the derivative of y = x/(x + 2)?

Question 3 of 5

What is the derivative of tan x?

Question 4 of 5

A toy cart has position s(t) = t³ − 6t metres. What is its acceleration at t = 1 second?

Question 5 of 5

What is the derivative of y = 4/x³?

Standards: 2, 3

← Previous topicNext topic →