Find both first partial derivatives and of
Break the logarithm of a quotient into a difference of logarithms first. Simplifying before differentiating saves an entire quotient-rule computation. Writing ,
Also record the two partials of the inner radical once, since both derivatives need them:
One more relation will do most of the work later: .
Differentiate with respect to , treating as a constant. The chain rule on each logarithm gives
Do not stop here and guess that the two symmetric-looking pieces cancel — they do not. Each one must be simplified first.
Simplify each piece separately. Put the numerators over :
So the first term is and the second term is , and the derivative is their difference:
This is the step where a sign slip is fatal: subtracting from gives , not .
Differentiate with respect to , treating as a constant. Now only depends on :
Both terms end up positive because each of them carries the same factor : the minus signs coming from the quotient rule and from cancel each other.
Combine the two fractions using .
Therefore
Check both answers numerically. Take , , so . A central difference with step gives
and the formulas give and . Both match to seven decimals. (A frequently seen wrong answer, , fails this test immediately: genuinely does change as moves with held fixed.)
Need to solve a different problem like this? Open the solver →