Multivariable calculus
Partial Derivatives of (x + y)/(1 + e^x)
For f(x,y) = (x + y)/(1 + e^x), the partial with respect to x is (1 + e^x - (x + y)e^x) divided by (1 + e^x) squared, and the partial with respect to y is 1/(1 + e^x). The denominator is always at least 1, so both partials exist everywhere.
One variable sits only in the numerator
Look at where each variable lives. The variable appears only in the numerator, and only to the first power, so the -partial is the reciprocal of the denominator with nothing else attached.
The variable appears in both places, so the -partial is a real quotient rule problem. The numerator has -derivative 1, and the denominator has -derivative .
You can factor the terms if you want a compact form: the numerator is . Both versions are correct, and the factored one makes the sign change easier to locate.
The mistake: differentiating the exponential in the wrong variable
Because has no in it, its -derivative is zero. Students who run the full quotient rule for sometimes still write a term, which does not belong: nothing in the denominator responds to .
- , so the second quotient rule term vanishes and one factor of cancels.
- , not . The is a constant when moves.
- is never zero, since . The function is smooth on the whole plane.
Notice also that is strictly positive everywhere. That says the surface always rises as increases, which you can see directly in the original formula: increasing increases the numerator while leaving the positive denominator alone.
Checking at the origin
At we have , so the denominator is 2 and its square is 4. The -partial numerator is .
Equal components mean the tangent plane at the origin rises at the same rate in both coordinate directions, and the steepest ascent from there points along the diagonal .
Frequently asked questions
Is there a shortcut for the y-partial?
Yes. Split the fraction as . The first piece has no in it, so its -derivative is zero, and the second is times a constant, giving immediately with no quotient rule at all.
Where is the x-partial zero?
Set the numerator to zero, which rearranges to . That is a curve in the plane, not isolated points, and along it the surface is momentarily flat in the direction.