Solution:
Key idea: A square root is the power 1 2 \dfrac{1}{2} 2 1 . Logarithmic differentiation brings this power down and splits the product inside into a sum of logarithms.
Step 1 — Take logarithms of both sides.
Let y = ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) y = \sqrt{(x-1)(x-2)(x-3)(x-4)} y = ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) . We work with x > 4 x > 4 x > 4 , where every factor is positive, and take the natural logarithm.
log y = 1 2 log [ ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) ] \log y = \dfrac{1}{2}\log\big[(x-1)(x-2)(x-3)(x-4)\big] log y = 2 1 log [ ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) ]
log y = 1 2 [ log ( x − 1 ) + log ( x − 2 ) + log ( x − 3 ) + log ( x − 4 ) ] \log y = \dfrac{1}{2}\big[\log(x-1) + \log(x-2) + \log(x-3) + \log(x-4)\big] log y = 2 1 [ log ( x − 1 ) + log ( x − 2 ) + log ( x − 3 ) + log ( x − 4 ) ]
Step 2 — Differentiate both sides with respect to x x x .
Each log ( x − k ) \log(x-k) log ( x − k ) has derivative 1 x − k \dfrac{1}{x-k} x − k 1 , and the left side gives 1 y d y d x \dfrac{1}{y}\dfrac{dy}{dx} y 1 d x d y .
1 y d y d x = 1 2 [ 1 x − 1 + 1 x − 2 + 1 x − 3 + 1 x − 4 ] \dfrac{1}{y}\dfrac{dy}{dx} = \dfrac{1}{2}\left[\dfrac{1}{x-1} + \dfrac{1}{x-2} + \dfrac{1}{x-3} + \dfrac{1}{x-4}\right] y 1 d x d y = 2 1 [ x − 1 1 + x − 2 1 + x − 3 1 + x − 4 1 ]
Step 3 — Multiply both sides by y y y .
We multiply by y = ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) y = \sqrt{(x-1)(x-2)(x-3)(x-4)} y = ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) .
d y d x = 1 2 ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) [ 1 x − 1 + 1 x − 2 + 1 x − 3 + 1 x − 4 ] \dfrac{dy}{dx} = \dfrac{1}{2}\sqrt{(x-1)(x-2)(x-3)(x-4)}\left[\dfrac{1}{x-1} + \dfrac{1}{x-2} + \dfrac{1}{x-3} + \dfrac{1}{x-4}\right] d x d y = 2 1 ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) [ x − 1 1 + x − 2 1 + x − 3 1 + x − 4 1 ]
Watch out: The same formula holds on every interval where the product under the root is positive (for example 1 < x < 2 1 < x < 2 1 < x < 2 ); taking log ∣ ⋅ ∣ \log|\,\cdot\,| log ∣ ⋅ ∣ gives the same derivative.
Therefore, d y d x = 1 2 ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) [ 1 x − 1 + 1 x − 2 + 1 x − 3 + 1 x − 4 ] \dfrac{dy}{dx} = \dfrac{1}{2}\sqrt{(x-1)(x-2)(x-3)(x-4)}\left[\dfrac{1}{x-1} + \dfrac{1}{x-2} + \dfrac{1}{x-3} + \dfrac{1}{x-4}\right] d x d y = 2 1 ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) [ x − 1 1 + x − 2 1 + x − 3 1 + x − 4 1 ] .