Consider $x^7 \cdot y^5=(x+y)^{12}$
Taking log of both sides,
$\log \left(x^2 y^5\right)=\log (x+y)^{12}$
$\log x^7+\log y^5=12 \log (x+y)$
$7 \log x+5 \log y=12 \log (x+y)$
Differentiating w.r.t. $x$
$\frac{7}{x}+\frac{5}{y} \cdot \frac{d y}{d x}=\frac{12}{x+y}\left(1+\frac{d y}{d x}\right)$
$\therefore \frac{d y}{d x}\left(\frac{5}{y}-\frac{12}{x+y}\right)=\frac{12}{x+y}-\frac{7}{x}$
$\therefore \frac{d y}{d x}\left(\frac{5 x+5 y-12 y}{y(x+y)}\right)=\frac{12 x-7 x-7 y}{x(x+y)}$
$\therefore \quad \frac{d y}{d x}\left(\frac{5 x-7 y}{y(x+y)}\right)=\frac{(5 x-7 y)}{x(x+y)}$
$\therefore \quad \frac{d y}{d x}=\frac{y}{x}$