Multivariable calculus

Partial Derivatives of xy^2/(1 + x^2)

For f(x, y) = xy^2/(1 + x^2) the partial with respect to x is y^2(1 - x^2)/(1 + x^2)^2, and the partial with respect to y is 2xy/(1 + x^2). Only the x partial needs the quotient rule; for the y partial the whole factor x/(1 + x^2) is a constant multiplier on y^2.

f(x,y)=xy21+x2f(x,y) = \frac{xy^2}{1 + x^2}
fx=y2(1x2)(1+x2)2\frac{\partial f}{\partial x} = \frac{y^2\left(1 - x^2\right)}{\left(1 + x^2\right)^2}
fy=2xy1+x2\frac{\partial f}{\partial y} = \frac{2xy}{1 + x^2}

Split the function before differentiating

Write f=x1+x2y2f = \frac{x}{1+x^2} \cdot y^2. The two factors depend on different variables, which decides which rule each partial needs.

For fy\frac{\partial f}{\partial y}, the first factor is a constant multiplier, so only y2y^2 is differentiated.

fy=x1+x22y=2xy1+x2\frac{\partial f}{\partial y} = \frac{x}{1+x^2} \cdot 2y = \frac{2xy}{1+x^2}

For fx\frac{\partial f}{\partial x}, pull y2y^2 out front as the constant and use the quotient rule on x1+x2\frac{x}{1+x^2}.

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

At (1,2)(1,2) the xx partial is 4(11)4=0\frac{4(1-1)}{4} = 0 and the yy partial is 2(1)(2)2=2\frac{2(1)(2)}{2} = 2.

The mistake: quotient rule on the wrong variable

Applying the quotient rule to fy\frac{\partial f}{\partial y} produces the numerator 2xy(1+x2)xy2(2x)2xy\left(1+x^2\right) - xy^2(2x), treating the denominator as if it changed with yy. It does not, and the extra term is pure error.

  • Before differentiating, ask which factors actually contain your variable.
  • 1+x21 + x^2 has no yy, so its yy derivative is 00 and the quotient rule degenerates to a constant multiple.
  • y2y^2 has no xx, so it factors straight out of the xx derivative.

The other slip is inside the quotient rule itself: the numerator is uvuvu'v - uv' in that order. Reversing it flips the sign and turns 1x21 - x^2 into x21x^2 - 1.

Where the surface is flat in x

The factor 1x21 - x^2 makes fx\frac{\partial f}{\partial x} vanish along the vertical lines x=1x = 1 and x=1x = -1, and also along y=0y = 0.

That matches the one-variable picture: for fixed y0y \neq 0, the slice g(x)=xy21+x2g(x) = \frac{xy^2}{1+x^2} has a maximum at x=1x = 1 and a minimum at x=1x = -1, the classic shape of x1+x2\frac{x}{1+x^2}.

Both partials vanish together only when y=0y = 0, so the whole xx axis consists of critical points. Along that line the surface is flat, and f=0f = 0 there.

Frequently asked questions

Can I use the product rule for the x partial instead?

Yes. Write f=xy2(1+x2)1f = xy^2\left(1+x^2\right)^{-1} and differentiate the product x(1+x2)1x \cdot \left(1+x^2\right)^{-1}, keeping y2y^2 out front. You get y2[(1+x2)12x2(1+x2)2]y^2\left[\left(1+x^2\right)^{-1} - 2x^2\left(1+x^2\right)^{-2}\right], which simplifies to the same result.

Why is the denominator never a problem?

Because 1+x211 + x^2 \geq 1 for every real xx. The function and both partials are defined on the whole plane, so there are no excluded points or one-sided limits to worry about.