Skip to content
Worked Examples · Example 27

Q.Differentiate (x−3)(x2+4)3x2+4x+5\sqrt{\dfrac{(x-3)(x^2+4)}{3x^2+4x+5}} w.r.t. xx.

Punjab PsebTextbookSubjective· 3mImportance★★★★★
34% · 96/281 Questions
✓ Free question

We differentiate a complicated radical function by first taking natural logs on both sides (logarithmic differentiation), then using implicit differentiation to find the derivative. The final result is dydx=12(x−3)(x2+4)3x2+4x+5(1x−3+2xx2+4−6x+43x2+4x+5)\frac{dy}{dx} = \frac12 \sqrt{\frac{(x-3)(x^2+4)}{3x^2+4x+5}} \left( \frac{1}{x-3} + \frac{2x}{x^2+4} - \frac{6x+4}{3x^2+4x+5} \right).

When you see a function that is a product or quotient of several expressions, all inside a square root, the usual quotient rule and product rule would be a nightmare. There’s a cleaner way: logarithmic differentiation.

The idea is simple. Instead of differentiating y=f(x)y = f(x) directly, we take the natural log of both sides, use log properties to break the expression into a sum of simpler terms, and then differentiate implicitly. The logarithm turns multiplication into addition, division into subtraction, and powers into coefficients. That makes the derivative much easier to handle.

Let’s apply it here.


  1. Set up the function. Let

y=(x−3)(x2+4)3x2+4x+5y = \sqrt{\frac{(x-3)(x^2+4)}{3x^2+4x+5}}

We can also write this as

y=((x−3)(x2+4)3x2+4x+5)1/2y = \left( \frac{(x-3)(x^2+4)}{3x^2+4x+5} \right)^{1/2}

  1. Take natural logs on both sides.

log⁡y=12log⁡((x−3)(x2+4)3x2+4x+5)\log y = \frac12 \log \left( \frac{(x-3)(x^2+4)}{3x^2+4x+5} \right)

  1. Use log properties to expand. The log of a quotient is the difference of logs, and the log of a product is the sum:

log⁡y=12[log⁡(x−3)+log⁡(x2+4)−log⁡(3x2+4x+5)]\log y = \frac12 \left[ \log(x-3) + \log(x^2+4) - \log(3x^2+4x+5) \right]

Tip

This step is the whole point of logarithmic differentiation. A single complicated fraction becomes three simple logs added and subtracted. No product rule, no quotient rule — just sums.

  1. Differentiate both sides with respect to xx. On the left, by the chain rule:

ddx(log⁡y)=1y⋅dydx\frac{d}{dx} (\log y) = \frac{1}{y} \cdot \frac{dy}{dx}

On the right, differentiate term by term:

ddx[12log⁡(x−3)]=12⋅1x−3\frac{d}{dx} \left[ \frac12 \log(x-3) \right] = \frac12 \cdot \frac{1}{x-3}

ddx[12log⁡(x2+4)]=12⋅2xx2+4=xx2+4\frac{d}{dx} \left[ \frac12 \log(x^2+4) \right] = \frac12 \cdot \frac{2x}{x^2+4} = \frac{x}{x^2+4}

ddx[−12log⁡(3x2+4x+5)]=−12⋅6x+43x2+4x+5\frac{d}{dx} \left[ -\frac12 \log(3x^2+4x+5) \right] = -\frac12 \cdot \frac{6x+4}{3x^2+4x+5}

So we have:

1ydydx=12(x−3)+xx2+4−6x+42(3x2+4x+5)\frac{1}{y} \frac{dy}{dx} = \frac{1}{2(x-3)} + \frac{x}{x^2+4} - \frac{6x+4}{2(3x^2+4x+5)}

  1. Solve for dydx\frac{dy}{dx}. Multiply both sides by yy:

dydx=y(12(x−3)+xx2+4−6x+42(3x2+4x+5))\frac{dy}{dx} = y \left( \frac{1}{2(x-3)} + \frac{x}{x^2+4} - \frac{6x+4}{2(3x^2+4x+5)} \right)

  1. Substitute back yy. Remember y=(x−3)(x2+4)3x2+4x+5y = \sqrt{\frac{(x-3)(x^2+4)}{3x^2+4x+5}}. So:

dydx=(x−3)(x2+4)3x2+4x+5(12(x−3)+xx2+4−6x+42(3x2+4x+5))\frac{dy}{dx} = \sqrt{\frac{(x-3)(x^2+4)}{3x^2+4x+5}} \left( \frac{1}{2(x-3)} + \frac{x}{x^2+4} - \frac{6x+4}{2(3x^2+4x+5)} \right)

Watch out

A common mistake is to forget the factor of 12\frac12 on the first and third terms. The square root gives a 12\frac12 exponent, and that 12\frac12 multiplies every log term. Don’t drop it!

  1. Optional: combine into a single fraction (if needed). For most exam purposes, the expression above is perfectly acceptable. But if you want a single rational expression, you can combine the three terms inside the parentheses over a common denominator. That’s just algebraic cleanup — the calculus is done.

✓Final answer

The derivative is dydx=12(x−3)(x2+4)3x2+4x+5(1x−3+2xx2+4−6x+43x2+4x+5)\frac{dy}{dx} = \frac12 \sqrt{\frac{(x-3)(x^2+4)}{3x^2+4x+5}} \left( \frac{1}{x-3} + \frac{2x}{x^2+4} - \frac{6x+4}{3x^2+4x+5} \right).

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.