Multivariable calculus
Partial Derivatives of sqrt(1 + x^2 + 2y^2 + 3z^2)
For f = sqrt(1 + x^2 + 2y^2 + 3z^2), the partials are x, 2y and 3z each divided by sqrt(1 + x^2 + 2y^2 + 3z^2). The outer root gives 1 over twice the root, the inner partials are 2x, 4y and 6z, and halving those leaves x, 2y and 3z. The weights survive; they do not all cancel to 1.
One pattern, three different weights
Let , so and the outer derivative is . The inner partials are , and , and the in that denominator halves each of them.
Halving does not erase the weights, it passes them through. A coefficient on a squared term comes out as a coefficient on that variable, which is exactly why the numerators read , and .
Assuming every 2 cancels
On the unweighted version of this function all three coefficients cancel and the partials are , and over the root. That memory is the trap. At the inner sum is , so the partials are , and : they sit in the ratio even though the three coordinates are equal.
A second slip is losing either the from the outer derivative or the inner partial itself, each of which puts the answer out by a factor of . A third is over-simplifying the denominator: is not and it is not . Square roots do not distribute across sums, so the denominator stays as one root.
- Differentiate the outer root first, leaving the whole sum inside it.
- Differentiate the inner sum with respect to one variable only.
- Multiply, halve, then check the coefficient actually survived.
How steep it can get
The gradient is , so its length squared is . Term by term the numerator carries the square of each weight while the denominator carries the weight itself, giving ratios , and . The largest is , so everywhere.
That bound is approached but never reached. Run out along the axis and the quotient tends to ; do the same along the axis and it tends to . The function is steepest in the direction it is weighted most heavily, which is what the coefficients were always going to say.
Every numerator carries its own variable, so all three partials vanish only at . That is the sole critical point and the global minimum, with , because is at its smallest there and the square root is increasing.
Frequently asked questions
Why add the 1?
Without it the function is , whose partials divide by a root that is zero at the origin, so no partial exists there. The keeps , and every partial is then defined and continuous on all of space.
Does a third variable change the method?
No. A partial with respect to freezes and at the same time, exactly as it freezes a single variable in the two variable case. Only the bookkeeping grows: one outer derivative, one inner partial, three times over.