Multivariable calculus
Partial Derivatives of (x^2 y + 1)^3
For f(x, y) = (x^2 y + 1)^3 the partial with respect to x is 6xy(x^2 y + 1)^2, and the partial with respect to y is 3x^2 (x^2 y + 1)^2. Both come from the chain rule: differentiate the cube to get 3(x^2 y + 1)^2, then multiply by the partial of the inside, which is 2xy for x and x^2 for y.
One outer derivative, two different insides
Write , so . The outer derivative is the same no matter which variable you differentiate with respect to. Only the inner factor changes.
The inside is a single monomial plus a constant, so its partials are easy: and . The constant contributes nothing to either.
At the inside is , so the shared factor is . That gives and .
The mistake: expanding first, or forgetting the inner factor
Two failure modes dominate. The first is writing and stopping, which leaves out . The chain rule is not optional once the inside depends on the variable.
The second is expanding the cube before differentiating. That is legal but wasteful: , and differentiating gives , which is the same as in disguise.
- Expanding costs time and creates more places to slip on an exponent.
- The factored form makes it obvious where the partials vanish.
- If you do expand, expand both answers before comparing, or they will look different when they are not.
Reading the answers
Both partials share the factor , which is zero exactly when . Along that curve the gradient is the zero vector, so the surface is flat there in every direction.
Away from that curve, vanishes only when , and vanishes when or . So the whole axis is flat in both directions.
Notice that is never negative anywhere, since and the squared factor are both non-negative. It touches zero only on the axis and on the curve , and never dips below, so the surface is non-decreasing in along every vertical line.
Frequently asked questions
Does the chain rule work the same way in two variables?
For an outer function of a single inner expression, yes. You differentiate the outer function as usual and multiply by the partial derivative of the inside with respect to your chosen variable, holding the other variable fixed throughout.
Why do both partials share the same squared factor?
Because both come from differentiating the same cube. The outer derivative depends only on , not on which variable you are moving, so it factors out of both answers and only the inner partial differs.