Multivariable calculus

Partial Derivatives of (x + y)/(1 + z^2)

For f(x,y,z) = (x + y)/(1 + z^2), the partial derivatives with respect to x and with respect to y are both 1/(1 + z^2), and the partial with respect to z is negative 2z(x + y) divided by (1 + z^2) squared. Only the z partial needs the quotient rule.

f(x,y,z)=x+y1+z2f(x,y,z) = \frac{x + y}{1 + z^2}
fx=11+z2\frac{\partial f}{\partial x} = \frac{1}{1 + z^2}
fy=11+z2\frac{\partial f}{\partial y} = \frac{1}{1 + z^2}
fz=2z(x+y)(1+z2)2\frac{\partial f}{\partial z} = \frac{-2z(x + y)}{\left(1 + z^2\right)^2}

Ask which variable is actually in the denominator

A fraction does not automatically call for the quotient rule. What matters is whether the differentiating variable appears in the denominator. Here xx and yy appear only upstairs, so for those two the whole factor 11+z2\frac{1}{1+z^2} is a constant multiplier.

That makes the first two partial derivatives almost immediate. Differentiating x+yx + y with respect to xx gives 11, and the constant factor comes along.

fx=fy=11+z2\frac{\partial f}{\partial x} = \frac{\partial f}{\partial y} = \frac{1}{1 + z^2}

For zz the situation is different, since zz sits in the denominator. Treat x+yx + y as a constant CC and differentiate C1+z2\frac{C}{1+z^2}. The quotient rule gives numerator 0(1+z2)C2z0 \cdot (1+z^2) - C \cdot 2z over (1+z2)2(1+z^2)^2.

fz=2z(x+y)(1+z2)2\frac{\partial f}{\partial z} = \frac{-2z(x + y)}{\left(1 + z^2\right)^2}

The mistake: reaching for the quotient rule every time

Running the quotient rule for fx\frac{\partial f}{\partial x} is not wrong, it is just slower and it invites algebra errors. It gives 1(1+z2)(x+y)0(1+z2)2\frac{1 \cdot (1+z^2) - (x+y)\cdot 0}{(1+z^2)^2}, which simplifies back to 11+z2\frac{1}{1+z^2}. Students who do not simplify often leave an answer that looks different from the correct one and then distrust it.

The genuine error to avoid is a sign. Differentiating a function that sits in a denominator produces a minus sign, and it is easy to lose when you are also juggling the constant x+yx + y. Rewriting as (x+y)(1+z2)1(x+y)(1+z^2)^{-1} makes the sign automatic: the power rule turns 1-1 into 2-2 and leaves a factor of 1-1 out front.

z[(x+y)(1+z2)1]=(x+y)(1)(1+z2)22z\frac{\partial}{\partial z}\left[(x+y)(1+z^2)^{-1}\right] = (x+y)\cdot(-1)(1+z^2)^{-2}\cdot 2z

Reading the answers back

At (1,2,1)(1,2,1) the denominator 1+z21 + z^2 is 22, so both the xx and yy partials equal 12\frac{1}{2}. The zz partial is 2(1)(3)4=32\frac{-2(1)(3)}{4} = -\frac{3}{2}.

The signs are worth interpreting. Increasing xx or yy increases the numerator, so those partials are positive everywhere. The zz partial carries the factor 2z(x+y)-2z(x+y), so when x+y>0x + y > 0 it is negative for z>0z > 0 and positive for z<0z < 0: moving zz away from zero in either direction grows the denominator and shrinks the fraction. On the plane z=0z = 0 the zz partial vanishes, since the denominator is momentarily flat.

Frequently asked questions

Why do the x and y partial derivatives come out equal?

Because the function depends on xx and yy only through the sum x+yx + y, and that sum changes at the same rate whichever of the two you move. Any function of x+yx+y has equal partial derivatives in xx and yy.

Is this function defined everywhere?

Yes. The denominator 1+z21 + z^2 is at least 11 for every real zz, so it never vanishes and no point has to be excluded. That is what makes the quotient safe to differentiate anywhere.