Multivariable calculus

Gradient of x^2 y^3: Exponent Bookkeeping Done Right

For f(x, y) = x^2 y^3 the gradient is (2x y^3, 3x^2 y^2). Only the exponent belonging to the variable you differentiate comes down; the other power rides along untouched. At (1, 2) the gradient is (16, 12), a vector of length 20.

f(x,y)=x2y3f(x,y) = x^2 y^3
f(x,y)=2xy3, 3x2y2\nabla f(x,y) = \left\langle 2x y^3,\ 3x^2 y^2 \right\rangle
fx=2xy3\frac{\partial f}{\partial x} = 2x y^3
fy=3x2y2\frac{\partial f}{\partial y} = 3x^2 y^2

Only one exponent moves at a time

A monomial is the easiest gradient to compute once you see the pattern. Freeze yy, and the factor y3y^3 becomes a coefficient sitting in front of x2x^2.

fx=y3x(x2)=2xy3\frac{\partial f}{\partial x} = y^3 \cdot \frac{\partial}{\partial x}\left(x^2\right) = 2x y^3

Freeze xx, and now x2x^2 is the coefficient while y3y^3 is the live power.

fy=x2y(y3)=3x2y2\frac{\partial f}{\partial y} = x^2 \cdot \frac{\partial}{\partial y}\left(y^3\right) = 3x^2 y^2
f(x,y)=2xy3, 3x2y2\nabla f(x,y) = \left\langle 2x y^3,\ 3x^2 y^2 \right\rangle

At (1,2)(1,2): the first component is 2(1)(8)=162(1)(8) = 16 and the second is 3(1)(4)=123(1)(4) = 12, so f(1,2)=16,12\nabla f(1,2) = \langle 16, 12\rangle with length 256+144=20\sqrt{256 + 144} = 20.

The mistake: bringing down both exponents at once

Because x2y3x^2 y^3 looks like a product of two powers, students often write fx=2x3y2=6xy2\frac{\partial f}{\partial x} = 2x \cdot 3y^2 = 6xy^2, differentiating both factors in one step. That is the product rule applied where it does not belong.

The product rule is for factors that both depend on the differentiation variable. Under x\frac{\partial}{\partial x} the factor y3y^3 is frozen, so it behaves like the number 88 would if yy happened to equal 22. You would never differentiate the 88 in 8x28x^2.

  • In fx\frac{\partial f}{\partial x} the exponent on yy stays at 33, not 22.
  • In fy\frac{\partial f}{\partial y} the exponent on xx stays at 22, not 11.
  • Degree check: ff has total degree 55, so each component must have total degree 44. Both 2xy32xy^3 and 3x2y23x^2y^2 do, while the faulty 6xy26xy^2 has degree 33 and fails.

Where the gradient vanishes, and a homogeneity check

Both components carry a factor of xx and a factor of yy, so the gradient is the zero vector on both coordinate axes. If x=0x = 0 then 2xy3=02xy^3 = 0 and 3x2y2=03x^2y^2 = 0; the same happens if y=0y = 0.

The two axes behave completely differently, which is worth the extra minute. On the xx-axis with x0x \ne 0, moving to positive yy makes ff positive and moving to negative yy makes it negative, so ff takes both signs in every neighbourhood and the point is no kind of extreme value. The origin behaves the same way.

On the yy-axis the sign of y3y^3 is locked. Near (0,2)(0,2) every nearby yy is still positive, so f=x2y30f = x^2y^3 \ge 0 with equality exactly on the axis, making (0,2)(0,2) a local minimum. Near (0,2)(0,-2) the cube is negative, so f0f \le 0 nearby and the point is a local maximum. These are not strict extremes, because the whole axis ties at the value 00, but they are genuine extremes all the same.

Since ff is homogeneous of degree 55, meaning f(tx,ty)=t5f(x,y)f(tx,ty) = t^5 f(x,y), Euler's relation gives a quick check on both components at once.

xfx+yfy=2x2y3+3x2y3=5x2y3=5fx\,\frac{\partial f}{\partial x} + y\,\frac{\partial f}{\partial y} = 2x^2y^3 + 3x^2y^3 = 5x^2y^3 = 5f

If your two components do not combine to 5f5f in this way, at least one of them is wrong.

Frequently asked questions

Why is the gradient of x^2 y^3 zero along the whole x-axis?

Every term of both components contains yy, so setting y=0y = 0 kills them. Geometrically the xx-axis is a level line where f=0f = 0, and the surface is flat to first order as you cross it, because y3y^3 vanishes to third order at y=0y = 0.

Which direction increases x^2 y^3 fastest at (1, 2)?

The unit vector 12016,12=45,35\frac{1}{20}\langle 16, 12\rangle = \left\langle \tfrac{4}{5}, \tfrac{3}{5}\right\rangle, since f(1,2)=16,12\nabla f(1,2) = \langle 16, 12\rangle has length 2020. The rate of increase in that direction is 2020 per unit of distance.