Multivariable calculus
Gradient of x/(x^2+y^2+1): Quotient Rule Worked
For f(x, y) = x/(x^2 + y^2 + 1) the gradient has x-component (y^2 - x^2 + 1) and y-component -2xy, both divided by (x^2 + y^2 + 1) squared. The gradient is zero at (1, 0) and (-1, 0), which are the global maximum and minimum, with values 1/2 and -1/2.
Quotient rule for x, power rule for y
Write and . For both parts depend on , so the quotient rule earns its keep.
Collect the numerator: .
For the numerator is a constant, so pull it out and use the power rule on . No quotient rule is needed.
The mistake: reversing the two terms in the quotient rule
Writing flips the numerator's sign and produces . The rule is bottom times the derivative of the top, minus top times the derivative of the bottom, in that order.
The sign error is easy to catch by testing the origin. Near the function behaves like , so should be about there. The correct formula gives . The reversed version gives , which would say the surface falls as increases through the origin, and that is plainly false.
- Order matters: bottom times derivative of top comes first.
- Do not reach for the quotient rule in the direction. The numerator has no , so a constant multiple and the power rule are cleaner and safer.
- Always square the denominator, and leave it factored rather than expanding it.
Finding the two critical points
The denominator never vanishes, so the gradient is zero exactly when both numerators are zero. Start with , which gives or .
If , the first numerator becomes , which is never zero. That branch dies. If , the first numerator becomes , which vanishes at .
So the only critical points are and . Since by the arithmetic mean and geometric mean inequality, and far away, these are the global maximum and global minimum .
Frequently asked questions
What is the gradient of x/(x^2+y^2+1) at the origin?
It is . The denominator equals there, so the components reduce to and . The surface climbs at rate in the direction and is momentarily flat in the direction.
Along which curve does this gradient point straight down the y-axis direction?
Where the first component vanishes but the second does not, meaning with . That is the hyperbola , off the -axis. On it the gradient is purely vertical.