Multivariable calculus

Partial Derivatives of arctan(x + yz)

For f(x,y,z) = arctan(x + yz), the partial derivative with respect to x is 1 over 1 plus (x + yz) squared. The y partial is z times that, and the z partial is y times that. The arctangent supplies one common denominator and the chain rule supplies the numerators 1, z and y.

f(x,y,z)=arctan(x+yz)f(x,y,z) = \arctan(x + yz)
fx=11+(x+yz)2\frac{\partial f}{\partial x} = \frac{1}{1 + (x + yz)^2}
fy=z1+(x+yz)2\frac{\partial f}{\partial y} = \frac{z}{1 + (x + yz)^2}
fz=y1+(x+yz)2\frac{\partial f}{\partial z} = \frac{y}{1 + (x + yz)^2}

One outside derivative, three inside derivatives

Let u=x+yzu = x + yz, so f=arctanuf = \arctan u. The derivative of arctanu\arctan u is 11+u2\frac{1}{1+u^2} times the derivative of uu. Since uu is the same for all three variables, the denominator 1+(x+yz)21 + (x+yz)^2 is identical in all three answers, and only the inside derivative changes.

Differentiate u=x+yzu = x + yz one variable at a time. With respect to xx the yzyz term is constant, so ux=1\frac{\partial u}{\partial x} = 1. With respect to yy the xx is constant and yzyz behaves like a constant zz times yy, so uy=z\frac{\partial u}{\partial y} = z. Symmetrically uz=y\frac{\partial u}{\partial z} = y.

fy=11+u2z=z1+(x+yz)2\frac{\partial f}{\partial y} = \frac{1}{1 + u^2}\cdot z = \frac{z}{1 + (x + yz)^2}

So the three answers are the same fraction with numerators 11, zz and yy. Compute the denominator once and reuse it, which is faster and removes a chance to make three different transcription errors.

The mistake: squaring the wrong thing

The denominator is 1+u21 + u^2 where uu is the entire inside expression, so it is 1+(x+yz)21 + (x+yz)^2 and not 1+x2+y2z21 + x^2 + y^2z^2. Those differ by the cross term 2xyz2xyz, which is not zero in general. Keep the parentheses in place through the whole calculation.

The second slip is swapping the numerators of the yy and zz partials. Differentiating with respect to yy leaves zz behind, not yy. The general rule holds: the variable you differentiated should not survive in the numerator that the chain rule produces.

  • Wrong denominator: 1+x2+y2z21 + x^2 + y^2z^2, which drops the cross term.
  • Wrong numerator: yy for the yy partial, when it should be zz.
  • Right: one denominator 1+(x+yz)21 + (x+yz)^2, numerators 11, zz and yy.

Structure and a sample point

Because the denominator is shared, the other two partial derivatives are simple multiples of the first: fy=zfxf_y = z f_x and fz=yfxf_z = y f_x. That relation is a fast internal consistency check on an answer you have just written.

At (0,1,1)(0,1,1) the inside is x+yz=1x + yz = 1, so the denominator is 22 and all three partial derivatives equal 12\frac{1}{2}. Note also that the denominator is at least 11 everywhere, so fxf_x can never exceed 11 in size. The other two are not bounded, because they carry the extra factors zz and yy: at (0,0,10)(0,0,10) the denominator is 11 and fy=10\frac{\partial f}{\partial y} = 10.

f=11+(x+yz)21,z,y\nabla f = \frac{1}{1 + (x+yz)^2}\,\langle 1, z, y \rangle

Frequently asked questions

Where is the x partial derivative largest?

Wherever x+yz=0x + yz = 0, since that makes the denominator as small as possible, namely 11. There fx=1\frac{\partial f}{\partial x} = 1, which is the steepest the arctangent ever gets in the xx direction.

Can the y partial derivative be negative?

Yes. The denominator is always positive, so the sign of fy\frac{\partial f}{\partial y} is the sign of zz. It is negative whenever z<0z < 0 and zero on the plane z=0z = 0.