Solution:
Key idea: Logarithmic differentiation turns the product in the numerator into a sum of logarithms and the quotient into a difference, so each factor is differentiated on its own.
Step 1 — Take logarithms of both sides.
Let y=(x−p)(x−q)(x−a)(x−b). We take the natural logarithm (strictly log∣⋅∣, which has the same derivative, so the result holds wherever y is defined and non-zero).
logy=log(x−a)+log(x−b)−log(x−p)−log(x−q)
Step 2 — Differentiate both sides with respect to x.
Each log(x−k) differentiates to x−k1, because the derivative of x−k is 1.
y1dxdy=x−a1+x−b1−x−p1−x−q1
Step 3 — Multiply both sides by y.
We multiply by y, written out in full.
dxdy=(x−p)(x−q)(x−a)(x−b)[x−a1+x−b1−x−p1−x−q1]
Therefore, dxdy=(x−p)(x−q)(x−a)(x−b)[x−a1+x−b1−x−p1−x−q1].