Multivariable calculus

Partial Derivatives of x^3 + y^3 - 3xy

For f(x, y) = x^3 + y^3 - 3xy the partial with respect to x is 3x^2 - 3y, and the partial with respect to y is 3y^2 - 3x. Each cross term contributes because -3xy depends on both variables. Setting both partials to zero gives the critical points (0, 0) and (1, 1).

f(x,y)=x3+y33xyf(x,y) = x^3 + y^3 - 3xy
fx=3x23y\frac{\partial f}{\partial x} = 3x^2 - 3y
fy=3y23x\frac{\partial f}{\partial y} = 3y^2 - 3x

Differentiate term by term

A sum differentiates one piece at a time, so handle x3x^3, y3y^3, and 3xy-3xy separately. With yy held fixed, y3y^3 is a constant and dies, while 3xy-3xy is 3y-3y times xx.

fx=3x2+03y=3x23y\frac{\partial f}{\partial x} = 3x^2 + 0 - 3y = 3x^2 - 3y

By the symmetry of the function under swapping xx and yy, the other partial has the same shape with the letters exchanged.

fy=0+3y23x=3y23x\frac{\partial f}{\partial y} = 0 + 3y^2 - 3x = 3y^2 - 3x

At (2,1)(2,1) these give 3(4)3(1)=93(4) - 3(1) = 9 and 3(1)3(2)=33(1) - 3(2) = -3, so the surface rises steeply in the xx direction and falls in the yy direction from that point.

The mistake: dropping the cross term

The most common wrong answer is fx=3x2\frac{\partial f}{\partial x} = 3x^2, with the 3xy-3xy term treated as if it were a constant. It is not: it contains xx.

Use a two-part test on each term before you write anything down.

  • Does the term contain the variable I am differentiating? If not, it contributes 00.
  • If it does, everything else in that term is a constant multiplier.
  • So 3xy-3xy contributes 3y-3y to fx\frac{\partial f}{\partial x} and 3x-3x to fy\frac{\partial f}{\partial y}.

The mirror-image error is writing fx=3x23xy\frac{\partial f}{\partial x} = 3x^2 - 3xy, which keeps the xx in the cross term that should have been differentiated away.

Using the partials to locate critical points

Critical points are where both partials vanish at once, so solve the pair 3x2=3y3x^2 = 3y and 3y2=3x3y^2 = 3x.

y=x2andx=y2    x=x4y = x^2 \quad \text{and} \quad x = y^2 \;\Longrightarrow\; x = x^4

The real solutions of x=x4x = x^4 are x=0x = 0 and x=1x = 1, giving the critical points (0,0)(0,0) and (1,1)(1,1). Substituting back, f(1,1)=1+13=1f(1,1) = 1 + 1 - 3 = -1.

The second partials are fxx=6xf_{xx} = 6x, fyy=6yf_{yy} = 6y, and fxy=3f_{xy} = -3. At (1,1)(1,1) the discriminant fxxfyyfxy2=369=27f_{xx}f_{yy} - f_{xy}^2 = 36 - 9 = 27 is positive with fxx=6>0f_{xx} = 6 > 0, so (1,1)(1,1) is a local minimum. At (0,0)(0,0) the discriminant is 9-9, so the origin is a saddle.

Frequently asked questions

Why do the two partials look like each other with x and y swapped?

Because f(x,y)=f(y,x)f(x,y) = f(y,x): the function is symmetric in its two variables. Any symmetric function has partials that are images of each other under the same swap, which is a quick way to check your second answer against your first.

Do the partials vanish anywhere else?

No. Combining y=x2y = x^2 with x=y2x = y^2 forces x=x4x = x^4, whose only real roots are 00 and 11. So (0,0)(0,0) and (1,1)(1,1) are the only points where the gradient is the zero vector.