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

Miscellaneous · Q11: Differentiate xx2−3+(x−3)x2x^{x^2-3}+(x-3)^{x^2}⁠, x>3x>3

Miscellaneous ExerciseLogarithmic differentiation · Miscellaneous Exercise
The question

Differentiate w.r.t. xx the function

xx2−3+(x−3)x2,for x>3.x^{x^2-3} + (x-3)^{x^2}, \quad \text{for } x > 3.
Exam answer

Let y=u+vy = u + v⁠, where u=xx2−3u = x^{x^2 - 3} and v=(x−3)x2v = (x - 3)^{x^2}⁠, x>3x \gt 3⁠. Then dydx=dudx+dvdx\frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx}⁠.

Taking log on both sides of u=xx2−3u = x^{x^2 - 3}⁠,

log⁡u=(x2−3)log⁡x\log u = (x^2 - 3)\log x

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

1ududx=2xlog⁡x+x2−3x∴ dudx=xx2−3[x2−3x+2xlog⁡x]\begin{aligned} \frac1u\frac{du}{dx} &= 2x\log x + \frac{x^2 - 3}{x} \\ \therefore\ \frac{du}{dx} &= x^{x^2 - 3}\Big[\frac{x^2 - 3}{x} + 2x\log x\Big] \end{aligned}

Taking log on both sides of v=(x−3)x2v = (x - 3)^{x^2}⁠,

log⁡v=x2log⁡(x−3)\log v = x^2\log(x - 3)

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

1vdvdx=2xlog⁡(x−3)+x2x−3∴ dvdx=(x−3)x2[x2x−3+2xlog⁡(x−3)]\begin{aligned} \frac1v\frac{dv}{dx} &= 2x\log(x - 3) + \frac{x^2}{x - 3} \\ \therefore\ \frac{dv}{dx} &= (x - 3)^{x^2}\Big[\frac{x^2}{x - 3} \\ &\qquad + 2x\log(x - 3)\Big] \end{aligned}

∴ dydx=xx2−3[x2−3x+2xlog⁡x]\therefore\ \dfrac{dy}{dx} = x^{x^2 - 3}\Big[\dfrac{x^2 - 3}{x} + 2x\log x\Big] +(x−3)x2[x2x−3+2xlog⁡(x−3)]+ (x - 3)^{x^2}\Big[\dfrac{x^2}{x - 3} + 2x\log(x - 3)\Big] (x>3)(x \gt 3)

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

The one idea this problem is built on

A sum of two variable powers. Logarithms cannot be taken of the whole sum (the log of a sum does not split), so we split first: y=u+vy = u + v with u=xx2−3u = x^{x^2-3} and v=(x−3)x2v = (x-3)^{x^2}⁠. Each of uu and vv has a varying base and a varying exponent, so each is handled by logarithmic differentiation. The condition x>3x > 3 makes both bases, xx and x−3x - 3⁠, positive.

Given, to find, and the plan
Given
y=xx2−3+(x−3)x2y = x^{x^2-3} + (x-3)^{x^2} for x>3x > 3⁠.
To find
dydx\dfrac{dy}{dx}⁠.
Plan
(1) Split into u+vu + v and check both bases are positive. (2) Find u′u' by logarithms. (3) Find v′v' by logarithms. (4) Add.

Basics you need

1Sum rule

(u+v)′=u′+v′(u + v)' = u' + v' (rule (1), Section 5.3). Basics: derivative rules

2Logarithms

Defined for positive numbers; log⁡pn=nlog⁡p\log p^n = n\log p⁠; ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x (Section 5.4, Theorem 5). Basics: exponentials and logarithms

3Product and chain rules

(fg)′=f′g+fg′(fg)' = f'g + fg'⁠; ddxlog⁡(x−3)=1x−3\frac{d}{dx}\log(x - 3) = \frac{1}{x-3} by the chain rule. Basics: composite functions

4Logarithmic differentiation

For a power [f(x)]g(x)[f(x)]^{g(x)} with f(x)>0f(x) > 0 (Section 5.5). Lesson: logarithmic differentiation

Solution

  1. Split the sum; both bases are positive

    Let u=xx2−3u = x^{x^2-3} and v=(x−3)x2v = (x-3)^{x^2}⁠, so y=u+vy = u + v and

    dydx=dudx+dvdx.\frac{dy}{dx} = \frac{du}{dx} + \frac{dv}{dx}.

    For x>3x > 3⁠: the base xx of uu is positive, and the base x−3x - 3 of vv is positive. Hence u>0u > 0 and v>0v > 0⁠, and their logarithms exist.

    Taking log⁡y\log y directly would give log⁡(u+v)\log(u + v)⁠, which has no useful simplification. Splitting first lets us use logarithms on each power separately. The condition x>3x > 3 is there because of the base x−3x - 3⁠.
    Rule (1), Section 5.3; Section 5.5, "f(x)f(x) and u(x)u(x) must always be positive". Basics: exponentials and logarithms
  2. Differentiate u=xx2−3u = x^{x^2-3}

    Take logarithms: log⁡u=(x2−3)log⁡x\log u = (x^2 - 3)\log x⁠. Differentiate both sides (chain rule on the left, product rule on the right):

    1ududx=2xlog⁡x+(x2−3)⋅1x.\frac1u\frac{du}{dx} = 2x\log x + (x^2-3)\cdot\frac1x.

    Multiply by uu⁠:

    dudx=xx2−3[x2−3x+2xlog⁡x].\frac{du}{dx} = x^{x^2-3}\left[\frac{x^2-3}{x} + 2x\log x\right].
    The two factors of the product are x2−3x^2 - 3 (derivative 2x2x⁠) and log⁡x\log x (derivative 1x\frac1x⁠). The order of the two terms in the bracket does not matter; we wrote them as the key does.
    log⁡pn=nlog⁡p\log p^n = n\log p⁠, Section 5.4; product rule (2); Theorem 5. Lesson: logarithmic differentiation
  3. Differentiate v=(x−3)x2v = (x-3)^{x^2}

    Take logarithms: log⁡v=x2log⁡(x−3)\log v = x^2\log(x-3)⁠. The factor log⁡(x−3)\log(x-3) has outer function log⁡\log and inner function x−3x - 3 (derivative 1), so its derivative is 1x−3\frac{1}{x-3}⁠. By the product rule:

    1vdvdx=2xlog⁡(x−3)+x2⋅1x−3.\frac1v\frac{dv}{dx} = 2x\log(x-3) + x^2\cdot\frac{1}{x-3}.

    Multiply by vv⁠:

    dvdx=(x−3)x2×[x2x−3+2xlog⁡(x−3)].\begin{aligned} \frac{dv}{dx} = {}&(x-3)^{x^2} \\ &\times\left[\frac{x^2}{x-3} + 2x\log(x-3)\right]. \end{aligned}
    Same method as Step 2. Dividing by x−3x - 3 is safe because x−3>0x - 3 > 0⁠.
    Chain rule, Theorem 4, Section 5.3.1; product rule (2), Section 5.3. Lesson: chain rule
  4. Add the two derivatives

    dydx=xx2−3×[x2−3x+2xlog⁡x]+(x−3)x2×[x2x−3+2xlog⁡(x−3)].\begin{aligned} \frac{dy}{dx} = {}&x^{x^2-3} \\ &\times\left[\frac{x^2-3}{x} + 2x\log x\right] \\ &+ (x-3)^{x^2} \\ &\times\left[\frac{x^2}{x-3} + 2x\log(x-3)\right]. \end{aligned}
    Step 1: the derivative of the sum is the sum of the derivatives from Steps 2 and 3.
    Rule (1), Section 5.3.
Result

For x>3x > 3⁠,

dydx=xx2−3×[x2−3x+2xlog⁡x]+(x−3)x2×[x2x−3+2xlog⁡(x−3)].\begin{aligned} \frac{dy}{dx} = {}&x^{x^2-3} \\ &\times\left[\frac{x^2-3}{x} + 2x\log x\right] \\ &+ (x-3)^{x^2} \\ &\times\left[\frac{x^2}{x-3} + 2x\log(x-3)\right]. \end{aligned}

(Textbook answer: xx2−3[x2−3x+2xlog⁡x]x^{x^2-3}\left[\frac{x^2-3}{x} + 2x\log x\right] +(x−3)x2[x2x−3+2xlog⁡(x−3)]+ (x-3)^{x^2}\left[\frac{x^2}{x-3} + 2x\log(x-3)\right]⁠, the same.)

Check it with numbers

At x=4x = 4⁠: u=413=67108864u = 4^{13} = 67108864 and v=116=1v = 1^{16} = 1⁠, so y=67108865y = 67108865⁠.

First bracket: 134+8log⁡4\frac{13}{4} + 8\log 4⁠, about 3.25+11.0903549=14.34035493.25 + 11.0903549 = 14.3403549⁠. Second bracket: 161+8log⁡1=16\frac{16}{1} + 8\log 1 = 16⁠, and 116=11^{16} = 1⁠. So the formula gives 67108864×14.3403549+1667108864 \times 14.3403549 + 16⁠, about 962364942962364942⁠.

Difference quotient with h=0.000001h = 0.000001 (a small hh because the function is so steep): y(4.000001)≈67109827.372y(4.000001) \approx 67109827.372 and y(3.999999)≈67107902.642y(3.999999) \approx 67107902.642⁠, so the quotient is about 962364942962364942⁠. ✓

Common mistakes
  1. Taking log⁡\log of the whole sum: log⁡(xx2−3+(x−3)x2)\log\left(x^{x^2-3} + (x-3)^{x^2}\right) is not (x2−3)log⁡x+x2log⁡(x−3)(x^2-3)\log x + x^2\log(x-3)⁠.
  2. Using the power rule on either term; both exponents vary.
  3. Losing the factor uu or vv when multiplying back: each bracket goes with its own power.
What to take away
  1. Sum of variable powers: split, take logarithms of each term, add.
  2. Each term follows the pattern ddxfg=fg[g′log⁡f+g f′f]\frac{d}{dx}f^g = f^g\left[g'\log f + \frac{g\,f'}{f}\right]⁠, valid where f>0f > 0⁠.

Every fact used, and where it comes from

FactUsed inSource
Sum ruleSteps 1, 4Rule (1), Section 5.3
log⁡\log defined for positive numbers; log⁡pn=nlog⁡p\log p^n = n\log pSteps 1–3Section 5.4 (log⁡pn=nlog⁡p\log p^n = n\log p is stated there for every real nn⁠, without proof)
ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1xSteps 2, 3Theorem 5, Section 5.4
Product rule; chain ruleSteps 2, 3Rule (2), Section 5.3; Theorem 4, Section 5.3.1 (Lesson: chain rule)
Logarithmic differentiationSteps 2, 3Section 5.5 (Lesson: logarithmic differentiation)
AnswerResultAnswers, Miscellaneous Exercise on Chapter 5, Q11
Numerical valuesCheckRecomputed in the site's verification script
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 →