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

Exercise 5.5 · Q16: f′(1)f'(1) for (1+x)(1+x2)(1+x4)(1+x8)(1+x)(1+x^2)(1+x^4)(1+x^8)

Exercise 5.5Logarithmic differentiation · Section 5.5
The question

Find the derivative of the function given by

f(x)=(1+x)(1+x2)(1+x4)(1+x8)f(x) = (1 + x)(1 + x^2)(1 + x^4)(1 + x^8)

and hence find f′(1)f'(1)⁠.

Exam answer

Let y=f(x)y = f(x)⁠. Taking log on both sides,

log⁡y=log⁡(1+x)+log⁡(1+x2)+log⁡(1+x4)+log⁡(1+x8)\begin{aligned} \log y &= \log(1 + x) + \log(1 + x^2) \\ &\quad + \log(1 + x^4) \\ &\quad + \log(1 + x^8) \end{aligned}

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

1ydydx=11+x+2x1+x2+4x31+x4+8x71+x8\begin{aligned} \frac1y\frac{dy}{dx} &= \frac{1}{1 + x} + \frac{2x}{1 + x^2} \\ &\quad + \frac{4x^3}{1 + x^4} + \frac{8x^7}{1 + x^8} \end{aligned} ∴ f′(x)=(1+x)(1+x2)×(1+x4)(1+x8)×[11+x+2x1+x2+4x31+x4+8x71+x8]\begin{aligned} \therefore\ f'(x) &= (1 + x)(1 + x^2) \\ &\quad\times(1 + x^4)(1 + x^8) \\ &\quad\times\bigg[\frac{1}{1 + x} + \frac{2x}{1 + x^2} \\ &\qquad + \frac{4x^3}{1 + x^4} + \frac{8x^7}{1 + x^8}\bigg] \end{aligned}

for x≠−1x \ne -1⁠. Putting x=1x = 1⁠,

f′(1)=2⋅2⋅2⋅2×[12+22+42+82]=16×152\begin{aligned} f'(1) &= 2\cdot 2\cdot 2\cdot 2 \\ &\quad\times\left[\frac12 + \frac22 + \frac42 + \frac82\right] \\ &= 16\times\frac{15}{2} \end{aligned}

∴ f′(1)=120\therefore\ f'(1) = 120

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

The one idea this problem is built on

A product of four factors is tedious with the product rule. Taking logs turns the product into a sum of four logs, each differentiated in one line. The logs need every factor positive, so we find where that is true, and then see that the final formula holds even beyond that.

Given, to find, and the plan
Given
f(x)=(1+x)(1+x2)f(x) = (1 + x)(1 + x^2) × (1+x4)(1+x8)\times\,(1 + x^4)(1 + x^8)⁠, a polynomial, defined for all real xx⁠.
To find
f′(x)f'(x)⁠, and f′(1)f'(1)⁠.
Plan
(1) Find where f>0f > 0⁠. (2) Take logs. (3) Differentiate. (4) Multiply by ff⁠. (5) Extend to x<−1x < -1 and look at x=−1x = -1⁠. (6) Put x=1x = 1⁠. (7) Cross-check with a closed form for ff⁠.

Basics you need

1Log of a product

log⁡(pq)=log⁡p+log⁡q\log(pq) = \log p + \log q for p,q>0p, q > 0 (Section 5.4); it extends to any number of positive factors. Basics: exponentials and logarithms

2Derivative of log⁡g(x)\log g(x)

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

3Geometric sums

1+x+x2+⋯+x15=1−x161−x1 + x + x^2 + \cdots + x^{15} = \frac{1 - x^{16}}{1 - x} for x≠1x \ne 1⁠, and 1+2+⋯+n=n(n+1)21 + 2 + \cdots + n = \frac{n(n+1)}{2}⁠. Basics: solving for dy/dx

Solution

  1. Where is f(x)f(x) positive?

    1+x21 + x^2⁠, 1+x41 + x^4⁠, 1+x81 + x^8 are all ≥1>0\ge 1 > 0 for every xx⁠, because even powers are never negative. The factor 1+x1 + x is positive exactly when x>−1x > -1⁠. So

    f(x)>0for x>−1.f(x) > 0 \quad\text{for } x > -1.
    Logarithmic differentiation needs the logged quantities positive. Here that means x>−1x > -1 at first; Step 5 removes this restriction.
    Positivity requirement (Section 5.5). Lesson: logarithmic differentiation
  2. Take logarithms

    For x>−1x > -1⁠, every factor is positive, so

    log⁡f(x)= log⁡(1+x)+log⁡(1+x2)+log⁡(1+x4)+log⁡(1+x8).\begin{aligned} \log f(x) = \ &\log(1+x) + \log(1+x^2) \\ &+ \log(1+x^4) + \log(1+x^8). \end{aligned}
    The log of a product of positive numbers is the sum of their logs. Sums are differentiated term by term.
    log⁡bpq=log⁡bp+log⁡bq\log_b pq = \log_b p + \log_b q (Section 5.4). Basics: exponentials and logarithms
  3. Differentiate both sides

    Each term is log⁡g\log g with gg a simple polynomial, so it differentiates to g′g\frac{g'}{g}⁠:

    f′(x)f(x)= 11+x+2x1+x2+4x31+x4+8x71+x8.\begin{aligned} \frac{f'(x)}{f(x)} = \ &\frac{1}{1+x} + \frac{2x}{1+x^2} \\ &+ \frac{4x^3}{1+x^4} + \frac{8x^7}{1+x^8}. \end{aligned}
    The inner derivatives are (1+x)′=1(1 + x)' = 1⁠, (1+x2)′=2x(1 + x^2)' = 2x⁠, (1+x4)′=4x3(1 + x^4)' = 4x^3⁠, (1+x8)′=8x7(1 + x^8)' = 8x^7 by the power rule. On the left, ddxlog⁡f=f′f\frac{d}{dx}\log f = \frac{f'}{f}⁠.
    Chain rule (Theorem 4, Section 5.3.1); (log⁡x)′=1x(\log x)' = \frac1x (Theorem 5); (xn)′=nxn−1(x^n)' = nx^{n-1} (Table 5.3). Basics: derivative rules
  4. Multiply by f(x)f(x)

    f′(x)= (1+x)(1+x2)(1+x4)(1+x8)×[11+x+2x1+x2+4x31+x4+8x71+x8].\begin{aligned} f'(x) = \ &(1+x)(1+x^2)(1+x^4)(1+x^8) \\ &\times\Bigg[\frac{1}{1+x} + \frac{2x}{1+x^2} \\ &\qquad + \frac{4x^3}{1+x^4} + \frac{8x^7}{1+x^8}\Bigg]. \end{aligned}
    Multiplying f′f\frac{f'}{f} by ff leaves f′f'⁠. If we multiply out, each fraction cancels its own factor and leaves the product of the other three: that is exactly what the product rule for four factors would give.
    Logarithmic differentiation, f′=f⋅(log⁡f)′f' = f\cdot(\log f)'⁠. Lesson: logarithmic differentiation
  5. What about x<−1x < -1 and x=−1x = -1⁠?

    For x<−1x < -1⁠, f(x)<0f(x) < 0⁠, so use

    −f(x)=(−1−x)(1+x2)(1+x4)(1+x8)>0.-f(x) = (-1-x)(1+x^2)(1+x^4)(1+x^8) > 0.

    Taking logs of −f-f gives the same sum, except that the first term is log⁡(−1−x)\log(-1-x)⁠, whose derivative is −1−1−x=11+x\frac{-1}{-1-x} = \frac{1}{1+x}⁠. Also ddxlog⁡(−f)=−f′−f=f′f\frac{d}{dx}\log(-f) = \frac{-f'}{-f} = \frac{f'}{f}⁠. So the formula of Step 4 holds for every x≠−1x \ne -1⁠.

    At x=−1x = -1 the bracket is undefined, but ff is a polynomial and the product rule gives directly: only the term where (1+x)(1+x) is differentiated survives, so

    f′(−1)=1⋅(1+1)(1+1)(1+1)=8.f'(-1) = 1\cdot(1+1)(1+1)(1+1) = 8.
    The book's answer does not mention the restriction. After multiplying out (Step 4), the expression is a polynomial and is valid everywhere, including x=−1x = -1⁠; written with the bracket, it needs x≠−1x \ne -1⁠.
    Product rule (Section 5.3). Basics: derivative rules
  6. Put x=1x = 1

    f(1)=2⋅2⋅2⋅2=16f(1) = 2\cdot 2\cdot 2\cdot 2 = 16⁠, and the bracket is

    12+22+42+82=152.\frac12 + \frac22 + \frac42 + \frac82 = \frac{15}{2}.

    So

    f′(1)=16×152=120.f'(1) = 16\times\frac{15}{2} = 120.
    At x=1x = 1 every power of xx is 11⁠, so each denominator is 22 and the numerators are 1,2,4,81, 2, 4, 8⁠, adding to 1515⁠.
    Substitution into the formula of Step 4. Basics: derivative rules
  7. Cross-check with a closed form

    Multiply f(x)f(x) by 1−x1 - x and use (1−a)(1+a)=1−a2(1 - a)(1 + a) = 1 - a^2 four times:

    (1−x)f(x)=(1−x2)(1+x2)(1+x4)(1+x8)=(1−x4)(1+x4)(1+x8)=(1−x8)(1+x8)=1−x16.\begin{aligned} (1 - x)f(x) &= (1 - x^2)(1+x^2)(1+x^4)(1+x^8) \\ &= (1 - x^4)(1+x^4)(1+x^8) \\ &= (1 - x^8)(1+x^8) = 1 - x^{16}. \end{aligned}

    So for x≠1x \ne 1⁠,

    f(x)=1−x161−x=1+x+x2+⋯+x15.\begin{aligned} f(x) &= \frac{1 - x^{16}}{1 - x} \\ &= 1 + x + x^2 + \cdots + x^{15}. \end{aligned}

    At x=1x = 1 both sides equal 1616 (f(1)=24f(1) = 2^4⁠, and the sum has 1616 terms, each 11⁠), so f(x)=1+x+⋯+x15f(x) = 1 + x + \cdots + x^{15} for every xx⁠. Then

    f′(x)=1+2x+3x2+⋯+15x14,f′(1)=1+2+⋯+15=15×162=120.\begin{aligned} f'(x) &= 1 + 2x + 3x^2 + \cdots + 15x^{14}, \\ f'(1) &= 1 + 2 + \cdots + 15 = \frac{15\times 16}{2} = 120. \end{aligned}
    The same value by a completely different route. It also confirms Step 5: f′(−1)=1−2+3−⋯+15f'(-1) = 1 - 2 + 3 - \cdots + 15⁠, which is seven pairs (1−2),(3−4),…,(13−14)(1 - 2), (3 - 4), \ldots, (13 - 14)⁠, each −1-1⁠, plus 1515⁠: −7+15=8-7 + 15 = 8⁠.
    Difference of squares; geometric sum; sum of the first nn natural numbers (Class XI). Basics: solving for dy/dx
Result f′(x)= (1+x)(1+x2)(1+x4)(1+x8)×[11+x+2x1+x2+4x31+x4+8x71+x8]\begin{aligned} f'(x) = \ &(1+x)(1+x^2)(1+x^4)(1+x^8) \\ &\times\Bigg[\frac{1}{1+x} + \frac{2x}{1+x^2} \\ &\qquad + \frac{4x^3}{1+x^4} + \frac{8x^7}{1+x^8}\Bigg] \end{aligned}

for x≠−1x \ne -1 (and f′(−1)=8f'(-1) = 8⁠); f′(1)=120f'(1) = 120⁠. (Textbook answer: the same expression and f′(1)=120f'(1) = 120⁠.)

Check it with numbers

The central difference f(1.00001)−f(0.99999)0.00002\frac{f(1.00001) - f(0.99999)}{0.00002} gives 120.00000120.00000 to five decimal places. At x=0.5x = 0.5⁠: f(0.5)=1.5×1.25×1.0625f(0.5) = 1.5\times 1.25\times 1.0625 × 1.00390625=1.9999695\times\,1.00390625 = 1.9999695⁠, the bracket is 1.99951171.9995117⁠, so f′(0.5)=3.9989624f'(0.5) = 3.9989624⁠; and the sum 1+2(0.5)+3(0.5)2+⋯1 + 2(0.5) + 3(0.5)^2 + \cdots up to 15(0.5)1415(0.5)^{14} is 3.99896243.9989624 as well.

Common mistakes
  1. Dropping inner derivatives: ddxlog⁡(1+x4)=4x31+x4\frac{d}{dx}\log(1 + x^4) = \frac{4x^3}{1+x^4}⁠, not 11+x4\frac{1}{1+x^4}⁠.
  2. Forgetting to multiply by f(x)f(x) at the end, so that f′(1)f'(1) comes out as 152\frac{15}{2} instead of 120120⁠.
  3. Using f(1)=2+2+2+2f(1) = 2 + 2 + 2 + 2: it is a product, 24=162^4 = 16⁠.
  4. Ignoring where the logs exist. The log step needs x>−1x > -1 (extendable to x≠−1x \ne -1⁠).
What to take away
  1. For a long product, f′f\frac{f'}{f} is the sum of g′g\frac{g'}{g} over the factors gg⁠.
  2. The same formula works where f<0f < 0 by logging −f-f (or ∣f∣|f|⁠); it fails only where a factor is zero.
  3. A neat closed form (here 1−x161−x\frac{1 - x^{16}}{1 - x}⁠) is a valuable independent check.

Every fact used, and where it comes from

FactUsed inSource
Positivity requirement for logarithmic differentiationSteps 1, 5Section 5.5 (Lesson: logarithmic differentiation)
log⁡pq=log⁡p+log⁡q\log pq = \log p + \log qSteps 2, 5Section 5.4
ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x⁠; chain ruleSteps 3, 5Theorem 5, Section 5.4; Theorem 4, Section 5.3.1
Power rule; product ruleSteps 3, 5, 7Table 5.3; algebra of derivatives, Section 5.3
Geometric sum; 1+2+⋯+n=n(n+1)21 + 2 + \cdots + n = \frac{n(n+1)}{2}Step 7Sequences and series (Class XI)
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 →