Multivariable calculus

Gradient of x^2/(y^2+1): When to Skip Quotient Rule

For f(x, y) = x^2/(y^2 + 1) the x-component of the gradient is 2x/(y^2 + 1) and the y-component is -2x^2 y divided by (y^2 + 1) squared. At (2, 1) the gradient is (2, -2). The denominator holds no x, so the x partial needs no quotient rule at all.

f(x,y)=x2y2+1f(x,y) = \dfrac{x^2}{y^2 + 1}
f(x,y)=2xy2+1, 2x2y(y2+1)2\nabla f(x,y) = \left\langle \dfrac{2x}{y^2 + 1},\ \dfrac{-2x^2 y}{\left(y^2 + 1\right)^2} \right\rangle
fx=2xy2+1\frac{\partial f}{\partial x} = \frac{2x}{y^2 + 1}
fy=2x2y(y2+1)2\frac{\partial f}{\partial y} = \frac{-2x^2 y}{\left(y^2 + 1\right)^2}

Split the function before you differentiate

Read the function as f=x2(y2+1)1f = x^2 \cdot \left(y^2+1\right)^{-1}, a product of one factor in xx and one factor in yy. Each partial then has exactly one live factor.

With yy frozen, 1y2+1\frac{1}{y^2+1} is a constant multiplier and only x2x^2 moves.

fx=1y2+1x(x2)=2xy2+1\frac{\partial f}{\partial x} = \frac{1}{y^2+1} \cdot \frac{\partial}{\partial x}\left(x^2\right) = \frac{2x}{y^2 + 1}

With xx frozen, x2x^2 is the constant multiplier and the power rule handles (y2+1)1\left(y^2+1\right)^{-1}.

fy=x2(1)(y2+1)2(2y)=2x2y(y2+1)2\frac{\partial f}{\partial y} = x^2 \cdot \left(-1\right)\left(y^2+1\right)^{-2}(2y) = \frac{-2x^2 y}{\left(y^2 + 1\right)^2}

At (2,1)(2,1): the first component is 42=2\frac{4}{2} = 2 and the second is 2(4)(1)4=2\frac{-2(4)(1)}{4} = -2, so f(2,1)=2,2\nabla f(2,1) = \langle 2, -2\rangle.

The mistake: forcing the quotient rule on both components

Applied honestly to fx\frac{\partial f}{\partial x}, the quotient rule gives (y2+1)(2x)x2(0)(y2+1)2\frac{\left(y^2+1\right)(2x) - x^2(0)}{\left(y^2+1\right)^2}. The second term is zero because the denominator has no xx, and cancelling one factor of y2+1y^2+1 returns 2xy2+1\frac{2x}{y^2+1}. Correct, but three extra chances to slip.

Where it goes wrong is when students carry over a 2y2y from the other partial and write (y2+1)(2x)x2(2y)(y2+1)2\frac{\left(y^2+1\right)(2x) - x^2(2y)}{\left(y^2+1\right)^2}. The derivative of the denominator with respect to xx is zero, not 2y2y.

  • If the denominator does not contain your variable, the whole fraction is a constant multiplier.
  • Reserve the quotient rule for the component where both top and bottom actually move.
  • Check by slicing: f(x,1)=x22f(x,1) = \frac{x^2}{2} has derivative xx, and 2xy2+1\frac{2x}{y^2+1} at y=1y = 1 gives xx as well.

A trough floor along the y-axis and a ridge along the x-axis

Both components vanish together only when x=0x = 0, since 2xy2+1=0\frac{2x}{y^2+1} = 0 forces x=0x = 0 and then the second component is zero automatically. So the entire yy-axis is a line of critical points, all with f=0f = 0.

None of them is a strict minimum in the usual isolated sense, but each is a minimum in value, because f0f \ge 0 everywhere. The surface is a trough whose floor runs along the yy-axis.

The signs read cleanly. The xx-component has the sign of xx, so the surface climbs away from the axis in both directions. The yy-component has the sign opposite to yy whenever x0x \ne 0, so moving toward y=0y = 0 always gains height. The ridge line sits along the xx-axis, where f(x,0)=x2f(x,0) = x^2 is as large as it gets for a given xx.

Frequently asked questions

Is the gradient of x^2/(y^2+1) defined everywhere?

Yes. The denominator y2+1y^2 + 1 is at least 11 for every real yy, so neither it nor its square can vanish. Both partials are rational functions with nonvanishing denominators, and ff is smooth on the whole plane.

In which direction does f decrease fastest at (2, 1)?

Along f(2,1)=2,2-\nabla f(2,1) = \langle -2, 2\rangle, or as a unit vector 121,1\frac{1}{\sqrt{2}}\langle -1, 1\rangle. The rate of decrease in that direction is f=22\left|\nabla f\right| = 2\sqrt{2}.