Multivariable calculus

Partial Derivatives of 5x^2 y - 3x + 4y - 7

For f(x, y) = 5x^2 y - 3x + 4y - 7 the partial with respect to x is 10xy - 3, and the partial with respect to y is 5x^2 + 4. The constant -7 disappears from both. The term 4y vanishes from the x partial, and -3x vanishes from the y partial. There are no critical points, since f_y is at least 4.

f(x,y)=5x2y3x+4y7f(x,y) = 5x^2 y - 3x + 4y - 7
fx=10xy3\frac{\partial f}{\partial x} = 10xy - 3
fy=5x2+4\frac{\partial f}{\partial y} = 5x^2 + 4

Sort the terms before you differentiate

Four terms, each with a different mix of variables. Sorting them first makes both partials nearly automatic.

  • 5x2y5x^2y contains both variables, so it survives in both partials.
  • 3x-3x contains only xx, so it survives only in fx\frac{\partial f}{\partial x}, as 3-3.
  • 4y4y contains only yy, so it survives only in fy\frac{\partial f}{\partial y}, as 44.
  • 7-7 contains neither, so it vanishes from both.
fx=10xy3,fy=5x2+4\frac{\partial f}{\partial x} = 10xy - 3, \qquad \frac{\partial f}{\partial y} = 5x^2 + 4

At (2,1)(2,-1) these give 10(2)(1)3=2310(2)(-1) - 3 = -23 and 5(4)+4=245(4) + 4 = 24.

The mistake: keeping the constant, or the wrong linear term

Answers like 10xy3710xy - 3 - 7 show a constant that should have been differentiated away. The derivative of any constant is zero, in one variable or several.

The subtler error is treating 4y4y as a constant in fy\frac{\partial f}{\partial y} because it looks like a leftover, or carrying 3x-3x into the yy partial. During fy\frac{\partial f}{\partial y}, the term 3x-3x genuinely is a constant and contributes 00, while 4y4y is genuinely variable and contributes 44.

One line of checking catches all of this. Set xx to a specific number, say x=2x = 2, and read off the resulting one-variable function: f(2,y)=20y6+4y7=24y13f(2,y) = 20y - 6 + 4y - 7 = 24y - 13. Its derivative is 2424, which agrees with 5(2)2+45(2)^2 + 4.

A gradient that never vanishes

The gradient is f=10xy3,  5x2+4\nabla f = \left\langle 10xy - 3,\; 5x^2 + 4 \right\rangle. Its second component is at least 44 for every real xx, so it can never be zero.

That means this surface has no critical points at all: no maxima, no minima, no saddles. Wherever you stand, there is a direction of strict increase.

The gradient is also what you need for linearisation. At (2,1)(2,-1), where f=20647=37f = -20 - 6 - 4 - 7 = -37, the tangent plane is the following.

L(x,y)=3723(x2)+24(y+1)L(x,y) = -37 - 23(x - 2) + 24(y + 1)

Frequently asked questions

Why does the -7 disappear from both partials?

A constant term does not change when either variable moves, so its rate of change in every direction is zero. Shifting the whole surface up or down by 77 tilts nothing, and the partials measure tilt.

Can f_y really be positive everywhere?

Yes. 5x2+44>05x^2 + 4 \geq 4 > 0 for every real xx, so ff is strictly increasing in yy along every vertical line. That is why the function has no local extrema anywhere in the plane.