Derivatives · Class 11 & 12 · Lesson 05

Product and quotient rule: when functions multiply or divide.

Short answer

Product rule: \(\dfrac{d}{dx}(uv) = u'v + uv'\).

Quotient rule: \(\dfrac{d}{dx}\left(\dfrac{u}{v}\right) = \dfrac{u'v - uv'}{v^2}\).

For example, \(\dfrac{d}{dx}(x^2e^x) = 2x\,e^x + x^2e^x\).

Class 11Class 12HSC & CBSE
01

The product rule

Product rule

If \(u\) and \(v\) are functions of \(x\), \[\frac{d}{dx}(uv) = u\frac{dv}{dx} + v\frac{du}{dx}\]

Short form

\((uv)' = u'v + uv'\)

In words: differentiate the first and keep the second, then keep the first and differentiate the second, and add.

Why it works

Picture a rectangle with sides \(u\) and \(v\), so its area is \(uv\). When \(x\) changes a little, \(u\) grows by \(\delta u\) and \(v\) by \(\delta v\). The new area is \((u + \delta u)(v + \delta v) = uv + u\,\delta v + v\,\delta u + \delta u\,\delta v\). The area has grown by \(u\,\delta v + v\,\delta u + \delta u\,\delta v\). Divide by \(\delta x\) and let \(\delta x \to 0\). The last piece, \(\delta u\,\dfrac{\delta v}{\delta x}\), dies because \(\delta u \to 0\), and you are left with \(u\,v' + v\,u'\).

Three factors

\((uvw)' = u'vw + uv'w + uvw'\). Differentiate one factor at a time, keep the other two, and add the three results.

02

The quotient rule

Quotient rule

If \(v \ne 0\), \[\frac{d}{dx}\left(\frac{u}{v}\right) = \frac{v\dfrac{du}{dx} - u\dfrac{dv}{dx}}{v^2}\]

Short form

\(\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}\)

The order matters here, because of the minus sign. A rhyme many students use: low d-high minus high d-low, over the square of what's below. "Low" is the denominator \(v\), "high" is the numerator \(u\), and "d" means "the derivative of".

You can also get the quotient rule from the product rule. Write \(\dfrac{u}{v} = u\cdot v^{-1}\), so its derivative is \(u'v^{-1} + u\cdot(-v^{-2}v') = \dfrac{u'v - uv'}{v^2}\).

03

Solved examples

Example 1: A basic product

Easy

Differentiate \(y = x^2\sin x\).

  1. \(u = x^2\), \(v = \sin x\), so \(u' = 2x\) and \(v' = \cos x\).
  2. \(\dfrac{dy}{dx} = 2x\sin x + x^2\cos x\).

Answer\(\dfrac{dy}{dx} = 2x\sin x + x^2\cos x\)

Example 2: Exponential times log

Easy

Differentiate \(y = e^x\log x\).

  1. \(u = e^x\), \(v = \log x\), so \(u' = e^x\) and \(v' = \dfrac{1}{x}\).
  2. \(\dfrac{dy}{dx} = e^x\log x + \dfrac{e^x}{x}\).

Answer\(\dfrac{dy}{dx} = e^x\left(\log x + \dfrac{1}{x}\right)\)

Example 3: Check by expanding

Easy

Differentiate \(y = (x^2 + 1)(3x - 2)\) with the product rule, and check your answer.

  1. \(u' = 2x\), \(v' = 3\). So \(\dfrac{dy}{dx} = 2x(3x - 2) + 3(x^2 + 1) = 9x^2 - 4x + 3\).
  2. Check: \(y = 3x^3 - 2x^2 + 3x - 2\), whose derivative is \(9x^2 - 4x + 3\). ✓

Answer\(\dfrac{dy}{dx} = 9x^2 - 4x + 3\)

Example 4: A basic quotient

Easy

Differentiate \(y = \dfrac{2x + 3}{x - 1}\).

  1. \(u = 2x + 3\), \(v = x - 1\), so \(u' = 2\) and \(v' = 1\).
  2. \(\dfrac{dy}{dx} = \dfrac{2(x - 1) - (2x + 3)\cdot 1}{(x - 1)^2} = \dfrac{2x - 2 - 2x - 3}{(x - 1)^2}\).

Answer\(\dfrac{dy}{dx} = -\dfrac{5}{(x - 1)^2}\)

Example 5: Trig quotient that simplifies

Medium

Differentiate \(y = \dfrac{\sin x}{1 + \cos x}\).

  1. \(u' = \cos x\), \(v' = -\sin x\).
  2. \(\dfrac{dy}{dx} = \dfrac{\cos x(1 + \cos x) - \sin x(-\sin x)}{(1 + \cos x)^2} = \dfrac{\cos x + \cos^2 x + \sin^2 x}{(1 + \cos x)^2}\).
  3. Use \(\cos^2 x + \sin^2 x = 1\): the top becomes \(1 + \cos x\), which cancels once with the bottom.

Answer\(\dfrac{dy}{dx} = \dfrac{1}{1 + \cos x}\)

Example 6: Three factors

Medium

Differentiate \(y = x\,e^x\sin x\).

  1. \((uvw)' = u'vw + uv'w + uvw'\) with \(u = x\), \(v = e^x\), \(w = \sin x\).
  2. \(\dfrac{dy}{dx} = e^x\sin x + x\,e^x\sin x + x\,e^x\cos x\).

Answer\(\dfrac{dy}{dx} = e^x(\sin x + x\sin x + x\cos x)\)

Example 7: Log in the denominator

Medium

Differentiate \(y = \dfrac{x^2}{\log x}\).

  1. \(u' = 2x\), \(v' = \dfrac{1}{x}\).
  2. \(\dfrac{dy}{dx} = \dfrac{2x\log x - x^2\cdot\frac{1}{x}}{(\log x)^2}\).

Answer\(\dfrac{dy}{dx} = \dfrac{2x\log x - x}{(\log x)^2}\)

Example 8: Spot the shortcut

Exam level

Differentiate \(y = \dfrac{1 - \tan x}{1 + \tan x}\).

  1. Quotient rule with \(u = 1 - \tan x\) and \(v = 1 + \tan x\). The top of the answer is \(-\sec^2 x\,(1 + \tan x) - (1 - \tan x)\sec^2 x\).
  2. The \(\tan x\) terms cancel, leaving \(-2\sec^2 x\). So \(\dfrac{dy}{dx} = \dfrac{-2\sec^2 x}{(1 + \tan x)^2}\).
  3. Faster route: \(\dfrac{1 - \tan x}{1 + \tan x} = \tan\left(\dfrac{\pi}{4} - x\right)\), so \(\dfrac{dy}{dx} = -\sec^2\left(\dfrac{\pi}{4} - x\right)\).
  4. Both are the same function written differently. Either answer gets full marks.

Answer\(\dfrac{dy}{dx} = -\dfrac{2\sec^2 x}{(1 + \tan x)^2} = -\sec^2\left(\dfrac{\pi}{4} - x\right)\)

Vipul Sir's tip

Before you reach for the quotient rule, see if the fraction simplifies. \(\dfrac{x^2 + 3x}{x}\) is just \(x + 3\), and \(\dfrac{1 + \cos 2x}{\sin 2x}\) is \(\cot x\). Two seconds of algebra can save you five lines of working and a few chances to slip on a sign.

04

Common mistakes

1. Writing \((uv)' = u'v'\)

The derivative of a product is not the product of the derivatives. Try it on \(x\cdot x = x^2\): the wrong rule gives \(1 \cdot 1 = 1\), but the answer is \(2x\).

2. Swapping the order in the quotient rule

\(u'v - uv'\) and \(uv' - u'v\) differ by a minus sign, so getting the order wrong flips the sign of your whole answer. Always start the top with the derivative of the numerator.

3. Forgetting to square the denominator

The bottom of the answer is \(v^2\), not \(v\). If \(v = x - 1\), the denominator is \((x - 1)^2\).

05

Practice questions

Try each one on paper before you open the answer.

Q1Differentiate \(y = x^3\cos x\).

\(3x^2\cos x - x^3\sin x\).

Q2Differentiate \(y = \dfrac{e^x}{x}\).

\(\dfrac{e^x\cdot x - e^x}{x^2} = \dfrac{e^x(x - 1)}{x^2}\).

Q3Differentiate \(y = \dfrac{x + 1}{x - 1}\).

\(\dfrac{(x - 1) - (x + 1)}{(x - 1)^2} = -\dfrac{2}{(x - 1)^2}\).

Q4If \(f(x) = \dfrac{x}{x^2 + 1}\), find \(f'(1)\).

\(f'(x) = \dfrac{(x^2 + 1) - x\cdot 2x}{(x^2 + 1)^2} = \dfrac{1 - x^2}{(x^2 + 1)^2}\). So \(f'(1) = 0\).

Q5Differentiate \(y = x^2e^x\log x\).

\(2x\,e^x\log x + x^2e^x\log x + x^2e^x\cdot\dfrac{1}{x} = e^x\left(2x\log x + x^2\log x + x\right)\).

Q6Differentiate \(y = \dfrac{\sin x + \cos x}{\sin x - \cos x}\).

Top: \((\cos x - \sin x)(\sin x - \cos x) - (\sin x + \cos x)(\cos x + \sin x) = -\big[(\sin x - \cos x)^2 + (\sin x + \cos x)^2\big] = -2\).

So \(\dfrac{dy}{dx} = -\dfrac{2}{(\sin x - \cos x)^2}\).

Stuck on a question?

Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.

06

Frequently asked questions

Does the order matter in the product rule?

No. \(u'v + uv'\) and \(uv' + u'v\) are the same, because you are adding. It does matter in the quotient rule, where there is a minus sign.

When should I use the quotient rule?

When one function is divided by another and the fraction does not simplify. If the denominator is just a number, like \(\dfrac{x^2}{5}\), don't use it: that is \(\tfrac{1}{5}x^2\), whose derivative is \(\tfrac{2}{5}x\).

Can I avoid the quotient rule altogether?

Yes. Write \(\dfrac{u}{v}\) as \(u\cdot v^{-1}\) and use the product rule with the chain rule. You will get the same answer. Many students find the quotient rule quicker once they know it.

How do I differentiate a product of three functions?

Use \((uvw)' = u'vw + uv'w + uvw'\): differentiate each factor in turn while keeping the other two, then add.

Related lessons

← All derivatives lessons
Vipul Sir
Written by Vipul Sir

Vipul Sir has taught mathematics for over 15 years to HSC, CBSE, ICSE, IGCSE/IB, Diploma, Engineering and BSc students at VVS Classes in Goregaon and Vile Parle, Mumbai. He teaches every class himself, concepts first and exam technique second.

Class 11 & 12 Maths

Differentiation gets easy once the basics click.

Concept-first classes in small batches in Goregaon and Vile Parle, or online, for HSC, CBSE and ICSE students. Your first class is free.

WhatsApp↗