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

Example 39: Differentiate 3x+2+12x2+4\sqrt{3x+2}+\frac{1}{\sqrt{2x^2+4}} and log⁡7(log⁡x)\log_7(\log x)

ExamplesChain rule, powers and logarithms · Miscellaneous Examples
The question

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

(i) 3x+2+12x2+4\sqrt{3x+2} + \dfrac{1}{\sqrt{2x^2+4}}     (ii) log⁡7(log⁡x)\log_7(\log x)

Exam answer

(i) Let

y=(3x+2)12+(2x2+4)−12y = (3x + 2)^{\frac12} + (2x^2 + 4)^{-\frac12}

Differentiating w.r.t. xx (chain rule),

dydx=12(3x+2)−12⋅3−12(2x2+4)−32⋅4x\begin{aligned} \frac{dy}{dx} &= \frac12(3x + 2)^{-\frac12}\cdot 3 \\ &\quad - \frac12(2x^2 + 4)^{-\frac32}\cdot 4x \end{aligned}

∴ dydx=323x+2\therefore\ \frac{dy}{dx} = \frac{3}{2\sqrt{3x + 2}} − 2x(2x2+4)3/2-\ \frac{2x}{(2x^2 + 4)^{3/2}} (x>−23)(x > -\frac23)⁠.

(ii) Let y=log⁡7(log⁡x)y = \log_7(\log x)⁠, x>1x > 1⁠.

y=log⁡(log⁡x)log⁡7[change of base]y = \frac{\log(\log x)}{\log 7} \quad[\text{change of base}]

Differentiating w.r.t. xx (chain rule),

dydx=1log⁡7⋅1log⁡x⋅1x\frac{dy}{dx} = \frac{1}{\log 7}\cdot\frac{1}{\log x}\cdot\frac1x

∴ dydx=1xlog⁡7 log⁡x\therefore\ \dfrac{dy}{dx} = \dfrac{1}{x\log 7\,\log x} (x>1)(x > 1)⁠.

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

The one idea this problem is built on

Both parts are composites, so both are done with the chain rule, after one rewriting step that puts each function into a form whose derivative we know. In (i), roots and reciprocals become powers: u=u1/2\sqrt{u} = u^{1/2} and 1u=u−1/2\frac{1}{\sqrt{u}} = u^{-1/2}⁠. In (ii), the unfamiliar base 7 is turned into natural logarithms by the change of base rule, log⁡7p=log⁡plog⁡7\log_7 p = \dfrac{\log p}{\log 7}⁠. In each part we also find where the function and its derivative exist.

Given, to find, and the plan
Given
(i) y=3x+2+(2x2+4)−1/2y = \sqrt{3x+2} + (2x^2+4)^{-1/2}⁠; (ii) y=log⁡7(log⁡x)y = \log_7(\log x)⁠, where log⁡\log means the natural logarithm, as everywhere in this chapter.
To find
dydx\dfrac{dy}{dx} in each part, and where it is valid.
Plan
(i) Domain; rewrite as powers; chain rule on each term; add. (ii) Domain; change of base; chain rule on log⁡(log⁡x)\log(\log x)⁠.

Basics you need

1Roots as powers

u=u1/2\sqrt{u} = u^{1/2}⁠, 1u=u−1/2\dfrac{1}{\sqrt u} = u^{-1/2} and u3/2=uuu^{3/2} = u\sqrt u⁠, for u>0u > 0⁠. The power rule ddu(un)=nun−1\frac{d}{du}(u^n) = nu^{n-1} then applies with n=12n = \frac12 or n=−12n = -\frac12⁠. Basics: derivative rules

2The chain rule

dydx=dydt⋅dtdx\dfrac{dy}{dx} = \dfrac{dy}{dt}\cdot\dfrac{dt}{dx} (Theorem 4, Section 5.3.1): differentiate the outer function at the inner one, then multiply by the derivative of the inner one. Lesson: the chain rule

3Logarithms

log⁡\log is the natural logarithm (base ee⁠), defined only for positive inputs, with ddx(log⁡x)=1x\frac{d}{dx}(\log x) = \frac1x (Theorem 5, Section 5.4). Change of base: log⁡ap=log⁡bplog⁡ba\log_a p = \dfrac{\log_b p}{\log_b a} (Section 5.4). Basics: exponentials and logarithms

4Differentiability at an end point

A derivative is a limit of difference quotients. If that quotient grows without bound, as it does for u\sqrt{u} at u=0u = 0⁠, the function is not differentiable there. Basics: slope at a point

Part (i): y=3x+2+12x2+4y = \sqrt{3x+2} + \frac{1}{\sqrt{2x^2+4}}

  1. Where is the function defined?

    The square root 3x+2\sqrt{3x+2} needs 3x+2≥03x + 2 \ge 0⁠, that is x≥−23x \ge -\frac23⁠. The second term needs 2x2+4>02x^2 + 4 > 0 (positive, since it is under a root and in a denominator), and this always holds because 2x2≥02x^2 \ge 0 gives 2x2+4≥42x^2+4 \ge 4⁠. So

    y is defined for x≥−23.y \text{ is defined for } x \ge -\tfrac23.
    The textbook says the function is defined for x>−23x > -\frac23⁠. Strictly it is also defined at x=−23x = -\frac23⁠, where 3x+2=0=0\sqrt{3x+2} = \sqrt0 = 0⁠. What fails at x=−23x = -\frac23 is the derivative (Part (i), Step 5). So the book's condition x>−23x > -\frac23 is exactly the right condition for the answer, as it says at the end.
    A square root of a real number needs a non-negative input; a denominator must not be zero. The domain is the set of xx where every piece of the formula makes sense.
  2. Rewrite both terms as powers

    y=(3x+2)1/2+(2x2+4)−1/2.y = (3x+2)^{1/2} + (2x^2+4)^{-1/2}.
    The power rule handles unu^n for any exponent, so rewriting roots and reciprocals as powers lets one rule do all the work. The minus sign in −12-\frac12 records "one over".
    u=u1/2\sqrt u = u^{1/2} and 1uk=u−k\frac{1}{u^{k}} = u^{-k} (laws of exponents).
  3. Differentiate the first term (chain rule)

    Inner t=3x+2t = 3x+2⁠, dtdx=3\frac{dt}{dx} = 3⁠; outer t1/2t^{1/2}⁠, with derivative 12t−1/2\frac12 t^{-1/2}⁠. For x>−23x > -\frac23 (so that t>0t > 0⁠):

    ddx(3x+2)1/2=12(3x+2)−1/2⋅3=323x+2.\begin{aligned} \frac{d}{dx}(3x+2)^{1/2} &= \tfrac12(3x+2)^{-1/2}\cdot 3 \\ &= \frac{3}{2\sqrt{3x+2}}. \end{aligned}
    The power rule lowers the exponent by one, 12−1=−12\frac12 - 1 = -\frac12⁠, and the chain rule multiplies by the inner rate 3. We need t>0t > 0⁠, not just t≥0t \ge 0⁠, because t−1/2=1tt^{-1/2} = \frac{1}{\sqrt t} is not defined at t=0t = 0⁠.
    Power rule with n=12n = \frac12⁠; chain rule, Theorem 4, Section 5.3.1. Lesson: the chain rule
  4. Differentiate the second term (chain rule)

    Inner s=2x2+4s = 2x^2 + 4⁠, dsdx=4x\frac{ds}{dx} = 4x⁠; outer s−1/2s^{-1/2}⁠, with derivative −12s−3/2-\frac12 s^{-3/2}⁠. For every real xx (here s≥4>0s \ge 4 > 0⁠):

    ddx(2x2+4)−1/2=−12(2x2+4)−3/2⋅4x=−2x(2x2+4)3/2.\begin{aligned} \frac{d}{dx}(2x^2+4)^{-1/2} &= -\tfrac12(2x^2+4)^{-3/2}\cdot 4x \\ &= -\frac{2x}{(2x^2+4)^{3/2}}. \end{aligned}
    Lowering the exponent: −12−1=−32-\frac12 - 1 = -\frac32⁠. Then −12⋅4x=−2x-\frac12\cdot 4x = -2x⁠. The negative exponent −32-\frac32 moves to the denominator as +32+\frac32⁠. This term is differentiable everywhere because its inner function never reaches 00⁠.
    Power rule with n=−12n = -\frac12⁠; ddx(2x2+4)=4x\frac{d}{dx}(2x^2+4) = 4x by the sum, constant-multiple and power rules (Section 5.3). Basics: derivative rules
  5. Add the two derivatives, and check the end point

    By the sum rule, for x>−23x > -\frac23⁠:

    dydx=323x+2−2x(2x2+4)3/2.\frac{dy}{dx} = \frac{3}{2\sqrt{3x+2}} - \frac{2x}{(2x^2+4)^{3/2}}.

    At x=−23x = -\frac23 there is no derivative. Only a right-hand quotient is possible there (the function is not defined to the left), and for the first term it is

    3h−0h=3h→∞(h→0+).\frac{\sqrt{3h} - 0}{h} = \frac{\sqrt3}{\sqrt h} \to \infty \quad (h \to 0^+).

    The second term has a finite derivative at −23-\frac23⁠, so the sum's quotient also grows without bound: the graph has a vertical tangent at its starting point.

    This is why the answer is stated for x>−23x > -\frac23 only. A formula with 3x+2\sqrt{3x+2} in a denominator could never be evaluated at x=−23x = -\frac23 anyway, and the difference quotient confirms that no finite slope exists there.
    Sum rule (1), Section 5.3; derivative as a limit of difference quotients, Section 5.3. Lesson: differentiability

Part (ii): y=log⁡7(log⁡x)y = \log_7(\log x)

  1. Where is the function defined?

    The inner log⁡x\log x needs x>0x > 0⁠. The outer log⁡7\log_7 needs a positive input, so log⁡x>0\log x > 0⁠, that is x>e0=1x > e^0 = 1⁠. So

    y is defined exactly for x>1.y \text{ is defined exactly for } x > 1.
    Logarithms of any base accept only positive numbers. Since log⁡x\log x is increasing and log⁡1=0\log 1 = 0⁠, "log⁡x>0\log x > 0" means "x>1x > 1". This matches the textbook's statement.
    Domain of a logarithm: positive reals (Section 5.4). Basics: exponentials and logarithms
  2. Change the base to ee

    By the change of base rule, with p=log⁡xp = \log x⁠:

    y=log⁡7(log⁡x)=log⁡(log⁡x)log⁡7.y = \log_7(\log x) = \frac{\log(\log x)}{\log 7}.
    Theorem 5 gives the derivative of the natural logarithm only. Changing base turns log⁡7\log_7 into natural logarithms divided by the constant log⁡7≈1.9459101\log 7 \approx 1.9459101⁠. A constant divisor simply stays in front when we differentiate.
    Change of base (Section 5.4, property (1)): log⁡ap=log⁡bplog⁡ba\log_a p = \frac{\log_b p}{\log_b a}⁠, here with a=7a = 7 and b=eb = e⁠. Basics: exponentials and logarithms
  3. Differentiate log⁡(log⁡x)\log(\log x) by the chain rule

    Inner s=log⁡xs = \log x⁠, dsdx=1x\frac{ds}{dx} = \frac1x⁠; outer log⁡s\log s⁠, with derivative 1s\frac1s⁠. For x>1x > 1 (so s>0s > 0⁠):

    ddxlog⁡(log⁡x)=1log⁡x⋅1x.\frac{d}{dx}\log(\log x) = \frac{1}{\log x}\cdot\frac{1}{x}.
    Each link is a natural logarithm, whose derivative is "one over its input". The outer one sees the input log⁡x\log x⁠, so its rate is 1log⁡x\frac{1}{\log x}⁠, not 1x\frac1x⁠.
    Theorem 5 (2), Section 5.4: (log⁡x)′=1x(\log x)' = \frac1x⁠; chain rule, Theorem 4. Lesson: exponential and logarithmic functions
  4. Put the constant back

    dydx=1log⁡7⋅1log⁡x⋅1x=1xlog⁡7 log⁡x,x>1.\begin{aligned} \frac{dy}{dx} &= \frac{1}{\log 7}\cdot\frac{1}{\log x}\cdot\frac1x \\ &= \frac{1}{x\log 7\,\log x}, \qquad x > 1. \end{aligned}
    A constant multiple 1log⁡7\frac{1}{\log 7} passes through the derivative unchanged. The final form multiplies the three denominators together. None of them is zero for x>1x > 1⁠: x>0x > 0⁠, log⁡7>0\log 7 > 0⁠, log⁡x>0\log x > 0⁠.
    Constant multiple rule, (c u)′=c u′(c\,u)' = c\,u'⁠. Basics: derivative rules
Result

(i) For x>−23x > -\frac23⁠:

ddx(3x+2+12x2+4)=323x+2−2x(2x2+4)3/2.\begin{aligned} &\frac{d}{dx}\left(\sqrt{3x+2} + \frac{1}{\sqrt{2x^2+4}}\right) \\ &\qquad= \frac{3}{2\sqrt{3x+2}} - \frac{2x}{(2x^2+4)^{3/2}}. \end{aligned}

The function is defined at x=−23x = -\frac23 but has no derivative there.

(ii) For x>1x > 1⁠: ddxlog⁡7(log⁡x)=1xlog⁡7 log⁡x\dfrac{d}{dx}\log_7(\log x) = \dfrac{1}{x\log 7\,\log x}⁠.

(These agree with the textbook's worked answers.)

Check it with numbers

(i) At x=1x = 1⁠: 325≈0.6708204\frac{3}{2\sqrt5} \approx 0.6708204 and 263/2≈0.1360828\frac{2}{6^{3/2}} \approx 0.1360828⁠, so the formula gives about 0.53473760.5347376⁠. A difference quotient of yy with h=0.0001h = 0.0001 on each side of 11 gives 0.534740.53474⁠.

(ii) At x=3x = 3⁠: log⁡3≈1.0986123\log 3 \approx 1.0986123 and log⁡7≈1.9459101\log 7 \approx 1.9459101⁠, so the denominator is 3×1.9459101×1.09861233 \times 1.9459101 \times 1.0986123 ≈6.4134024\approx 6.4134024 and the formula gives about 0.15592350.1559235⁠. A difference quotient of log⁡7(log⁡x)\log_7(\log x) at 33 gives 0.155920.15592⁠.

Common mistakes
  1. Forgetting the inner derivatives. The factors 33 and 4x4x in Part (i), Steps 3 and 4 come from the chain rule; without them the answer is wrong by those factors.
  2. Exponent arithmetic. −12−1=−32-\frac12 - 1 = -\frac32⁠, not −12-\frac12 or 12\frac12⁠.
  3. Treating log⁡7\log_7 like log⁡\log⁠. ddplog⁡7p=1plog⁡7\frac{d}{dp}\log_7 p = \frac{1}{p\log 7}⁠, not 1p\frac1p⁠. The factor 1log⁡7\frac{1}{\log 7} is easy to lose.
  4. Evaluating the outer derivative at xx⁠. In Part (ii), the outer logarithm's rate is 1log⁡x\frac{1}{\log x}⁠, because its input is log⁡x\log x⁠.
What to take away
  1. Rewrite roots and reciprocals as powers, then one rule (power plus chain) covers everything: ddxun=nun−1u′\frac{d}{dx}u^n = nu^{n-1}u'⁠.
  2. For any base a>0a > 0⁠, a≠1a \ne 1⁠: ddxlog⁡au=u′ulog⁡a\frac{d}{dx}\log_a u = \frac{u'}{u\log a}⁠. Change of base is how you prove it.
  3. State where the answer holds. A formula with u\sqrt{u} or log⁡u\log u in a denominator needs u>0u > 0⁠.

Every fact used, and where it comes from

FactUsed inSource
u=u1/2\sqrt u = u^{1/2}⁠, 1u=u−1/2\frac{1}{\sqrt u} = u^{-1/2}Part (i), Step 2Laws of exponents
Power rule (un)′=nun−1(u^n)' = nu^{n-1}⁠; sum and constant-multiple rulesPart (i), Steps 3–5Table 5.3 and rules (1), (2), Section 5.3
Chain rulePart (i), Steps 3, 4; Part (ii), Step 3Theorem 4, Section 5.3.1 (Lesson: the chain rule)
Derivative as a limit; no derivative where the quotient is unboundedPart (i), Step 5Section 5.3 (Lesson: differentiability)
Log needs a positive input; log⁡x\log x means base eePart (ii), Step 1Section 5.4
Change of base log⁡ap=log⁡bplog⁡ba\log_a p = \frac{\log_b p}{\log_b a}Part (ii), Step 2Section 5.4, property (1) of logarithms
(log⁡x)′=1x(\log x)' = \frac1xPart (ii), Step 3Theorem 5, Section 5.4 (Lesson: exponential and logarithmic functions)
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 →