Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Exercise 5.5 · Q18: Derivative of uvwuvw two ways

Exercise 5.5Logarithmic differentiation · Section 5.5
The question

If uu⁠, vv and ww are functions of xx⁠, then show that

ddx(u⋅v⋅w)=dudx v⋅w+u⋅dvdx⋅w+u⋅v dwdx\begin{aligned} &\frac{d}{dx}(u\cdot v\cdot w) \\ &= \frac{du}{dx}\,v\cdot w + u\cdot\frac{dv}{dx}\cdot w + u\cdot v\,\frac{dw}{dx} \end{aligned}

in two ways - first by repeated application of product rule, second by logarithmic differentiation.

Exam answer

(i) Let y=uvw=(uv)⋅wy = uvw = (uv)\cdot w⁠. By the product rule,

dydx=ddx(uv)⋅w+uv dwdx=(dudx v+u dvdx)w+uv dwdx=dudx vw+u dvdx w+uv dwdx=RHS\begin{aligned} \frac{dy}{dx} &= \frac{d}{dx}(uv)\cdot w + uv\,\frac{dw}{dx} \\ &= \left(\frac{du}{dx}\,v + u\,\frac{dv}{dx}\right)w + uv\,\frac{dw}{dx} \\ &= \frac{du}{dx}\,vw + u\,\frac{dv}{dx}\,w + uv\,\frac{dw}{dx} \\ &= \text{RHS} \end{aligned}

Hence proved.

(ii) Let y=uvwy = uvw⁠. Taking log on both sides (u>0u > 0⁠, v>0v > 0⁠, w>0w > 0⁠),

log⁡y=log⁡u+log⁡v+log⁡w\log y = \log u + \log v + \log w

Differentiating both sides w.r.t. xx⁠,

1ydydx=1ududx+1vdvdx+1wdwdx∴ dydx=uvw[1ududx+1vdvdx+1wdwdx]=dudx vw+u dvdx w+uv dwdx=RHS\begin{aligned} \frac1y\frac{dy}{dx} &= \frac1u\frac{du}{dx} + \frac1v\frac{dv}{dx} \\ &\quad + \frac1w\frac{dw}{dx} \\ \therefore\ \frac{dy}{dx} &= uvw\bigg[\frac1u\frac{du}{dx} + \frac1v\frac{dv}{dx} \\ &\qquad + \frac1w\frac{dw}{dx}\bigg] \\ &= \frac{du}{dx}\,vw + u\,\frac{dv}{dx}\,w + uv\,\frac{dw}{dx} \\ &= \text{RHS} \end{aligned}

Hence proved.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

A product of three functions can be treated as a product of two, (uv)⋅w(uv)\cdot w⁠, so the two-factor product rule applies twice. Alternatively, logs turn the product into the sum log⁡u+log⁡v+log⁡w\log u + \log v + \log w⁠, whose derivative is u′u+v′v+w′w\frac{u'}{u} + \frac{v'}{v} + \frac{w'}{w}⁠; multiplying back by uvwuvw gives the same formula. Each fraction cancels its own factor, leaving the product of the other two.

Given, to show, and the plan
Given
uu⁠, vv⁠, ww are differentiable functions of xx⁠; y=uvwy = uvw⁠.
To show
dydx=dudxvw+udvdxw+uvdwdx\frac{dy}{dx} = \frac{du}{dx}vw + u\frac{dv}{dx}w + uv\frac{dw}{dx}⁠, by each of the two methods.
Plan
Part (i): group as (uv)w(uv)w⁠, use the product rule, then use it again on uvuv⁠. Part (ii): take logs where u,v,w>0u, v, w > 0⁠, differentiate, multiply by yy⁠; then extend to non-zero values of any sign and note what happens where a factor is zero.

Basics you need

1Product rule

For differentiable ff and gg⁠: (fg)′=f′g+fg′(fg)' = f'g + fg' (Section 5.3). Basics: derivative rules

2Log of a product

For positive p,q,sp, q, s⁠: log⁡(pqs)=log⁡p+log⁡q+log⁡s\log(pqs) = \log p + \log q + \log s (Section 5.4). Basics: exponentials and logarithms

3Derivative of log⁡g\log g

For g>0g > 0⁠: ddxlog⁡g=g′g\frac{d}{dx}\log g = \frac{g'}{g} (Theorem 5 with the chain rule). For g<0g < 0⁠, ddxlog⁡(−g)=−g′−g=g′g\frac{d}{dx}\log(-g) = \frac{-g'}{-g} = \frac{g'}{g} too. Basics: derivative rules

Part (i): by repeated use of the product rule

  1. Treat uvwuvw as a product of two factors

    Write y=(uv)⋅wy = (uv)\cdot w⁠. The first factor is uvuv⁠, the second is ww⁠. By the product rule,

    dydx=ddx(uv)⋅w+(uv)⋅dwdx.\frac{dy}{dx} = \frac{d}{dx}(uv)\cdot w + (uv)\cdot\frac{dw}{dx}.
    The product rule is stated for two factors. Grouping uu and vv together makes the three-factor product a two-factor one. The grouping is allowed because multiplication is associative: (uv)w=uvw(uv)w = uvw⁠.
    Product (Leibnitz) rule (Section 5.3). Basics: derivative rules
  2. Use the product rule again, on uvuv

    ddx(uv)=dudx v+u dvdx.\frac{d}{dx}(uv) = \frac{du}{dx}\,v + u\,\frac{dv}{dx}.
    uvuv is itself a product of two differentiable functions, so the same rule applies. It is differentiable because uu and vv are.
    Product rule (Section 5.3). Basics: derivative rules
  3. Substitute and expand

    dydx=(dudx v+u dvdx)w+uv dwdx=dudx vw+u dvdx w+uv dwdx.\begin{aligned} \frac{dy}{dx} &= \left(\frac{du}{dx}\,v + u\,\frac{dv}{dx}\right)w + uv\,\frac{dw}{dx} \\ &= \frac{du}{dx}\,vw + u\,\frac{dv}{dx}\,w + uv\,\frac{dw}{dx}. \end{aligned}

    This is the required formula, and it holds at every xx where uu⁠, vv⁠, ww are differentiable.

    Multiplying the bracket by ww (distributive law) gives the first two terms; the third comes from the second half of Part (i), Step 1. Nothing here needs uu⁠, vv or ww to be non-zero.
    Distributive law. Basics: solving for dy/dx

Part (ii): by logarithmic differentiation

  1. Take logs (where u,v,w>0u, v, w > 0⁠)

    At points where uu⁠, vv⁠, ww are all positive, y=uvw>0y = uvw > 0 and

    log⁡y=log⁡u+log⁡v+log⁡w.\log y = \log u + \log v + \log w.
    Logarithmic differentiation needs the quantities whose logs we take to be positive (Section 5.5). The log of a product of positive numbers is the sum of their logs.
    log⁡pq=log⁡p+log⁡q\log pq = \log p + \log q⁠, applied twice (Section 5.4). Basics: exponentials and logarithms
  2. Differentiate both sides

    Each term is the log of a function of xx⁠, so by the chain rule

    1ydydx=1ududx+1vdvdx+1wdwdx.\frac1y\frac{dy}{dx} = \frac1u\frac{du}{dx} + \frac1v\frac{dv}{dx} + \frac1w\frac{dw}{dx}.
    Outer function log⁡\log⁠, inner function uu (or vv⁠, ww⁠, yy⁠): ddxlog⁡u=1u⋅dudx\frac{d}{dx}\log u = \frac1u\cdot\frac{du}{dx}⁠.
    Theorem 5 and the chain rule (Theorem 4, Section 5.3.1). Lesson: logarithmic differentiation
  3. Multiply by y=uvwy = uvw

    dydx=uvw[1ududx+1vdvdx+1wdwdx]=dudx vw+u dvdx w+uv dwdx.\begin{aligned} \frac{dy}{dx} &= uvw\left[\frac{1}{u}\frac{du}{dx} + \frac{1}{v}\frac{dv}{dx} + \frac{1}{w}\frac{dw}{dx}\right] \\ &= \frac{du}{dx}\,vw + u\,\frac{dv}{dx}\,w + uv\,\frac{dw}{dx}. \end{aligned}
    In the first term uvw⋅1u=vwuvw\cdot\frac1u = vw⁠; in the second uvw⋅1v=uwuvw\cdot\frac1v = uw⁠; in the third uvw⋅1w=uvuvw\cdot\frac1w = uv⁠. This is the same formula as Part (i), Step 3.
    Logarithmic differentiation, y′=y⋅(log⁡y)′y' = y\cdot(\log y)' (Section 5.5). Lesson: logarithmic differentiation
  4. When some of u,v,wu, v, w are negative, or zero

    Negative but non-zero. Replace each negative factor gg by −g-g⁠, which is positive. Then ∣y∣=∣u∣ ∣v∣ ∣w∣|y| = |u|\,|v|\,|w| and

    log⁡∣y∣=log⁡∣u∣+log⁡∣v∣+log⁡∣w∣.\log|y| = \log|u| + \log|v| + \log|w|.

    Since ddxlog⁡(−g)=−g′−g=g′g\frac{d}{dx}\log(-g) = \frac{-g'}{-g} = \frac{g'}{g}⁠, each term still differentiates to g′g\frac{g'}{g}⁠, so Part (ii), Steps 2 and 3 go through unchanged.

    Zero. At a point where one of uu⁠, vv⁠, ww is 00⁠, y=0y = 0 and no logarithm exists, so the log method says nothing there. The formula is still true at such points by Part (i), which never divided by uu⁠, vv or ww⁠.

    This is why Part (i) is the real proof for all points, while Part (ii) is a quick derivation wherever the three functions are non-zero. Both give the same formula.
    Chain rule; positivity requirement (Section 5.5). Basics: derivative rules
Result ddx(uvw)=dudx vw+u dvdx w+uv dwdx.\frac{d}{dx}(uvw) = \frac{du}{dx}\,vw + u\,\frac{dv}{dx}\,w + uv\,\frac{dw}{dx}.

Part (i) proves it wherever uu⁠, vv⁠, ww are differentiable; Part (ii) gives the same formula wherever, in addition, none of them is zero.

Check it with numbers

Take u=x2u = x^2⁠, v=sin⁡xv = \sin x⁠, w=exw = e^x at x=1x = 1⁠, so u′=2u' = 2⁠, v′=cos⁡1v' = \cos 1⁠, w′=ew' = e⁠:

  • u′vw=2sin⁡1⋅e=4.5747106u'vw = 2\sin 1\cdot e = 4.5747106⁠,
  • uv′w=cos⁡1⋅e=1.4686939uv'w = \cos 1\cdot e = 1.4686939⁠,
  • uvw′=sin⁡1⋅e=2.2873553uvw' = \sin 1\cdot e = 2.2873553⁠.

Sum: 8.33075988.3307598⁠. The central difference of x2sin⁡x exx^2\sin x\,e^x at x=1x = 1 with step 0.000010.00001 gives 8.33075988.3307598⁠.

Common mistakes
  1. Writing (uvw)′=u′v′w′(uvw)' = u'v'w'⁠. The derivative of a product is a sum of three terms, each with exactly one factor differentiated.
  2. Losing a term when expanding (u′v+uv′)w(u'v + uv')w⁠.
  3. Taking logs without the condition. The log method needs u,v,w≠0u, v, w \ne 0 (positive, or made positive with ∣⋅∣|\cdot|⁠).
What to take away
  1. For a product of nn factors, the derivative is the sum of nn terms; in each, one factor is differentiated and the rest are kept.
  2. Logarithmic differentiation gives this at once: y′y=u′u+v′v+w′w\frac{y'}{y} = \frac{u'}{u} + \frac{v'}{v} + \frac{w'}{w}⁠.
  3. Repeated product rule needs no condition beyond differentiability; the log method needs non-zero factors.

Every fact used, and where it comes from

FactUsed inSource
Product (Leibnitz) rulePart (i), Steps 1, 2Algebra of derivatives, Section 5.3
Associative and distributive lawsPart (i), Steps 1, 3Arithmetic of real numbers
log⁡pq=log⁡p+log⁡q\log pq = \log p + \log qPart (ii), Step 1Section 5.4
ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x⁠; chain rulePart (ii), Steps 2, 4Theorem 5, Section 5.4; Theorem 4, Section 5.3.1
Logarithmic differentiation (positive quantities)Part (ii)Section 5.5 (Lesson: logarithmic differentiation)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →