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

Exercise 5.5 · Q5: Differentiate (x+3)2(x+4)3(x+5)4(x+3)^2(x+4)^3(x+5)^4

Exercise 5.5Logarithmic differentiation · Section 5.5
The question

Differentiate the function w.r.t. xx⁠:

(x+3)2 . (x+4)3 . (x+5)4(x+3)^2\,.\,(x+4)^3\,.\,(x+5)^4
Exam answer

Let y=(x+3)2(x+4)3(x+5)4y = (x + 3)^2(x + 4)^3(x + 5)^4⁠. Taking log on both sides (where y≠0y \ne 0⁠),

log⁡∣y∣=2log⁡∣x+3∣+3log⁡∣x+4∣+4log⁡∣x+5∣\begin{aligned} \log|y| &= 2\log|x + 3| \\ &\quad + 3\log|x + 4| \\ &\quad + 4\log|x + 5| \end{aligned}

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

1y⋅dydx=2x+3+3x+4+4x+5\frac1y\cdot\frac{dy}{dx} = \frac{2}{x + 3} + \frac{3}{x + 4} + \frac{4}{x + 5}

Multiplying by yy⁠,

dydx=(x+3)2(x+4)3(x+5)4×[2x+3+3x+4+4x+5]=(x+3)(x+4)2(x+5)3×[2(x+4)(x+5)+3(x+3)(x+5)+4(x+3)(x+4)]\begin{aligned} \frac{dy}{dx} &= (x + 3)^2(x + 4)^3(x + 5)^4 \\ &\quad\times\bigg[\frac{2}{x + 3} + \frac{3}{x + 4} + \frac{4}{x + 5}\bigg] \\ &= (x + 3)(x + 4)^2(x + 5)^3 \\ &\quad\times\big[2(x + 4)(x + 5) \\ &\qquad + 3(x + 3)(x + 5) \\ &\qquad + 4(x + 3)(x + 4)\big] \end{aligned}

Expanding the bracket, 2(x2+9x+20)2(x^2 + 9x + 20) +3(x2+8x+15)+ 3(x^2 + 8x + 15) +4(x2+7x+12)+ 4(x^2 + 7x + 12) =9x2+70x+133= 9x^2 + 70x + 133⁠.

∴ dydx=(x+3)(x+4)2(x+5)3×(9x2+70x+133)\begin{aligned} \therefore\ \dfrac{dy}{dx} &= (x + 3)(x + 4)^2(x + 5)^3 \\ &\quad\times(9x^2 + 70x + 133) \end{aligned}

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

The one idea this problem is built on

Logarithms turn a product of powers into a sum of multiples: log⁡∣y∣\log|y| equals 2log⁡∣x+3∣+3log⁡∣x+4∣2\log|x+3| + 3\log|x+4| + 4log⁡∣x+5∣+\ 4\log|x+5|⁠. Each term differentiates in one line. Multiplying back by yy and taking out the common factors gives a compact answer. The absolute values are needed because yy is negative for some xx⁠; and since yy is a polynomial, the final answer turns out to hold for every xx⁠, including the zeros where the log method itself cannot be used.

Given, to find, and the plan
Given
y=(x+3)2(x+4)3(x+5)4y = (x+3)^2(x+4)^3(x+5)^4⁠, a polynomial.
To find
dydx\frac{dy}{dx} in factored form.
Plan
(1) Where is y≠0y \ne 0⁠? (2) Take log⁡∣y∣\log|y|⁠. (3) Differentiate. (4) Multiply by yy and factor. (5) Expand the remaining bracket. (6) Confirm with the product rule, which also covers x=−3,−4,−5x = -3, -4, -5⁠.

Basics you need

1Log laws

log⁡(pq)=log⁡p+log⁡q\log(pq) = \log p + \log q and log⁡pn=nlog⁡p\log p^n = n\log p for p,q>0p, q > 0 (Section 5.4). With ∣an∣=∣a∣n|a^n| = |a|^n⁠: log⁡∣an∣=nlog⁡∣a∣\log|a^n| = n\log|a| for a≠0a \ne 0⁠. Basics: exponentials and logarithms

2ddxlog⁡∣g∣=g′g\frac{d}{dx}\log|g| = \frac{g'}{g} where g≠0g \ne 0

For g>0g > 0 this is the chain rule with Theorem 5; for g<0g < 0⁠, ddxlog⁡(−g)=−g′−g=g′g\frac{d}{dx}\log(-g) = \frac{-g'}{-g} = \frac{g'}{g}⁠. So ddxlog⁡∣x+a∣=1x+a\frac{d}{dx}\log|x + a| = \frac{1}{x + a}⁠. Basics: derivative rules

3Product rule and power rule

(uvw)′=u′vw+uv′w+uvw′(uvw)' = u'vw + uv'w + uvw' (the product rule used twice, Section 5.3); ddx(x+a)n=n(x+a)n−1\frac{d}{dx}(x+a)^n = n(x+a)^{n-1} (Table 5.3 with the chain rule). Basics: derivative rules

Solution

  1. Where is yy non-zero, and what sign does it have?

    y=0y = 0 exactly at x=−3,−4,−5x = -3, -4, -5⁠. Elsewhere y≠0y \ne 0⁠, but it is not always positive: (x+3)2(x+3)^2 and (x+5)4(x+5)^4 are never negative, while (x+4)3(x+4)^3 has the sign of x+4x + 4⁠. So y<0y < 0 for x<−4x < -4 (except x=−5x = -5⁠) and y>0y > 0 for x>−4x > -4 (except x=−3x = -3⁠). For example, at x=−4.5x = -4.5⁠:

    y=(−1.5)2(−0.5)3(0.5)4=−0.017578125.y = (-1.5)^2(-0.5)^3(0.5)^4 = -0.017578125.
    The book's method takes log⁡y\log y⁠, which needs y>0y > 0⁠. Since yy is negative on part of the line, we take log⁡∣y∣\log|y|⁠, which exists wherever y≠0y \ne 0⁠, that is, for x≠−3,−4,−5x \ne -3, -4, -5⁠.
    An even power is never negative; an odd power keeps the sign of its base. Basics: functions
  2. Take log⁡∣y∣\log|y|

    For x≠−3,−4,−5x \ne -3, -4, -5⁠:

    log⁡∣y∣=log⁡(∣x+3∣2 ∣x+4∣3 ∣x+5∣4)=2log⁡∣x+3∣+3log⁡∣x+4∣+4log⁡∣x+5∣.\begin{aligned} \log|y| &= \log\big(|x+3|^2\,|x+4|^3\,|x+5|^4\big) \\ &= 2\log|x+3| + 3\log|x+4| \\ &\quad + 4\log|x+5|. \end{aligned}
    ∣y∣=∣x+3∣2∣x+4∣3∣x+5∣4|y| = |x+3|^2|x+4|^3|x+5|^4 because the absolute value of a product of powers is the product of the powers of the absolute values. All three ∣x+a∣|x + a| are positive here, so the product law and the power law apply. The exponents come down as multipliers.
    log⁡pq=log⁡p+log⁡q\log pq = \log p + \log q⁠, log⁡pn=nlog⁡p\log p^n = n\log p (Section 5.4). Basics: exponentials and logarithms
  3. Differentiate both sides

    Left: ddxlog⁡∣y∣=1ydydx\frac{d}{dx}\log|y| = \frac1y\frac{dy}{dx}⁠. Right: ddxlog⁡∣x+a∣=1x+a\frac{d}{dx}\log|x + a| = \frac{1}{x+a} (Basic 2). So

    1y⋅dydx=2x+3+3x+4+4x+5.\frac1y\cdot\frac{dy}{dx} = \frac{2}{x+3} + \frac{3}{x+4} + \frac{4}{x+5}.
    Each inner function x+ax + a has derivative 11⁠, so each log term gives 1x+a\frac{1}{x+a} times its multiplier. The sum on the right is the "relative rate of change" of yy⁠.
    ddxlog⁡∣g∣=g′g\frac{d}{dx}\log|g| = \frac{g'}{g}⁠. Lesson: logarithmic differentiation
  4. Multiply by yy and take out common factors

    Multiplying each fraction by y=(x+3)2(x+4)3(x+5)4y = (x+3)^2(x+4)^3(x+5)^4 cancels one factor:

    dydx=2(x+3)(x+4)3(x+5)4+3(x+3)2(x+4)2(x+5)4+4(x+3)2(x+4)3(x+5)3.\begin{aligned} \frac{dy}{dx} &= 2(x+3)(x+4)^3(x+5)^4 \\ &\quad + 3(x+3)^2(x+4)^2(x+5)^4 \\ &\quad + 4(x+3)^2(x+4)^3(x+5)^3. \end{aligned}

    Every term contains (x+3)(x+4)2(x+5)3(x+3)(x+4)^2(x+5)^3⁠. Taking it out:

    dydx= (x+3)(x+4)2(x+5)3×[2(x+4)(x+5)+3(x+3)(x+5)+4(x+3)(x+4)].\begin{aligned} \frac{dy}{dx} = \ &(x+3)(x+4)^2(x+5)^3 \\ &\times\big[2(x+4)(x+5) \\ &\quad + 3(x+3)(x+5) \\ &\quad + 4(x+3)(x+4)\big]. \end{aligned}
    For instance y⋅2x+3=2(x+3)(x+4)3(x+5)4y\cdot\frac{2}{x+3} = 2(x+3)(x+4)^3(x+5)^4⁠: one power of x+3x + 3 cancels. The common factor uses the lowest power of each bracket that appears in all three terms: (x+3)1(x+3)^1⁠, (x+4)2(x+4)^2⁠, (x+5)3(x+5)^3⁠.
    Factorising out a common factor. Basics: solving for dy/dx
  5. Expand the bracket

    2(x+4)(x+5)=2x2+18x+40,3(x+3)(x+5)=3x2+24x+45,4(x+3)(x+4)=4x2+28x+48.\begin{aligned} 2(x+4)(x+5) &= 2x^2 + 18x + 40, \\ 3(x+3)(x+5) &= 3x^2 + 24x + 45, \\ 4(x+3)(x+4) &= 4x^2 + 28x + 48. \end{aligned}

    Adding: 9x2+70x+1339x^2 + 70x + 133⁠. Therefore

    dydx=(x+3)(x+4)2(x+5)3(9x2+70x+133).\frac{dy}{dx} = (x+3)(x+4)^2(x+5)^3(9x^2 + 70x + 133).
    (x+4)(x+5)=x2+9x+20(x+4)(x+5) = x^2 + 9x + 20⁠, (x+3)(x+5)=x2+8x+15(x+3)(x+5) = x^2 + 8x + 15⁠, (x+3)(x+4)=x2+7x+12(x+3)(x+4) = x^2 + 7x + 12⁠. Collecting: x2x^2 terms 2+3+4=92 + 3 + 4 = 9⁠; xx terms 18+24+28=7018 + 24 + 28 = 70⁠; constants 40+45+48=13340 + 45 + 48 = 133⁠. This is the textbook's answer.
    Multiplying out brackets and collecting like terms. Basics: solving for dy/dx
  6. The answer holds at x=−3,−4,−5x = -3, -4, -5 too

    The log method needed y≠0y \ne 0⁠. But the first display of Step 4 is exactly what the product rule gives directly, with u=(x+3)2u = (x+3)^2⁠, v=(x+4)3v = (x+4)^3⁠, w=(x+5)4w = (x+5)^4⁠, u′=2(x+3)u' = 2(x+3)⁠, v′=3(x+4)2v' = 3(x+4)^2⁠, w′=4(x+5)3w' = 4(x+5)^3⁠:

    u′vw=2(x+3)(x+4)3(x+5)4,uv′w=3(x+3)2(x+4)2(x+5)4,uvw′=4(x+3)2(x+4)3(x+5)3.\begin{aligned} u'vw &= 2(x+3)(x+4)^3(x+5)^4, \\ uv'w &= 3(x+3)^2(x+4)^2(x+5)^4, \\ uvw' &= 4(x+3)^2(x+4)^3(x+5)^3. \end{aligned}

    The product rule has no sign or non-zero condition, so the factored answer of Step 5 is valid for every real xx⁠.

    For a product of powers, logarithmic differentiation is a quick way to organise the product rule, and the result can then be checked to hold everywhere. For example, at x=−3x = -3 the answer gives dydx=0\frac{dy}{dx} = 0⁠: the graph touches the xx-axis there, because of the squared factor (x+3)2(x+3)^2⁠.
    Product rule used twice; chain rule for (x+a)n(x + a)^n⁠. Basics: derivative rules
Result

For every real xx⁠,

dydx=(x+3)(x+4)2(x+5)3(9x2+70x+133).\frac{dy}{dx} = (x+3)(x+4)^2(x+5)^3(9x^2 + 70x + 133).

(Textbook answer: (x+3)(x+4)2(x+5)3(x+3)(x+4)^2(x+5)^3 (9x2+70x+133)(9x^2 + 70x + 133)⁠, the same.)

Check it with numbers

At x=0x = 0⁠: y=9×64×625=360000y = 9\times 64\times 625 = 360000⁠, and Step 3 gives 1ydydx=23+34+45=13360\frac1y\frac{dy}{dx} = \frac23 + \frac34 + \frac45 = \frac{133}{60}⁠, so dydx=360000×13360=798000\frac{dy}{dx} = 360000\times\frac{133}{60} = 798000⁠. The factored answer gives 3×16×125×133=7980003\times 16\times 125\times 133 = 798000⁠. The central difference quotient with h=0.0001h = 0.0001 gives 798000.00798000.00 (to two decimals).

At x=−4.5x = -4.5⁠, where y<0y < 0⁠: 2−1.5+3−0.5+40.5=23\frac{2}{-1.5} + \frac{3}{-0.5} + \frac{4}{0.5} = \frac23⁠, so dydx=−0.017578125×23\frac{dy}{dx} = -0.017578125\times\frac23 =−0.01171875= -0.01171875⁠; the factored answer gives (−1.5)(0.25)(0.125)(0.25)(-1.5)(0.25)(0.125)(0.25) =−0.01171875= -0.01171875⁠. The log⁡∣y∣\log|y| route is right where yy is negative.

Common mistakes
  1. Forgetting the exponents as multipliers: log⁡(x+4)3=3log⁡(x+4)\log(x+4)^3 = 3\log(x+4)⁠, giving 3x+4\frac{3}{x+4}⁠, not 1x+4\frac{1}{x+4}⁠.
  2. Factoring out the wrong powers. Take the lowest power of each bracket present in all terms: (x+3)1(x+4)2(x+5)3(x+3)^1(x+4)^2(x+5)^3⁠.
  3. Arithmetic in the bracket: check 9x2+70x+1339x^2 + 70x + 133 at one value, e.g. x=0x = 0⁠: 40+45+48=13340 + 45 + 48 = 133⁠.
  4. Claiming the answer fails at −3,−4,−5-3, -4, -5⁠. Only the log method does; the result itself holds everywhere (Step 6).
What to take away
  1. For y=(x−a)m(x−b)n⋯y = (x-a)^m(x-b)^n\cdots⁠: y′y=mx−a+nx−b+⋯\frac{y'}{y} = \frac{m}{x-a} + \frac{n}{x-b} + \cdots⁠.
  2. Use log⁡∣y∣\log|y| when yy can be negative; the derivative formula is unchanged.
  3. Factor the answer by the lowest common powers; then expand only the small bracket left over.

Every fact used, and where it comes from

FactUsed inSource
Logarithmic differentiation needs a positive functionStep 1Section 5.5 (Lesson: logarithmic differentiation)
log⁡pq=log⁡p+log⁡q\log pq = \log p + \log q⁠, log⁡pn=nlog⁡p\log p^n = n\log pStep 2Section 5.4
ddxlog⁡∣g∣=g′g\frac{d}{dx}\log|g| = \frac{g'}{g}⁠, g≠0g \ne 0Step 3Basic 2 (from Theorem 4, Section 5.3.1, and Theorem 5, Section 5.4)
Product rule; ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1}Step 6Algebra of derivatives (2), Section 5.3; Table 5.3
Chain ruleSteps 3, 6Theorem 4, Section 5.3.1
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 →