Higher-order partial derivatives
Mixed Partial Derivatives: fxy vs fyx and Differentiation Order
To find fxx, fxy, fyx and fyy, draw two first-derivative branches from the original function. Differentiate each branch once more. This separates repeated differentiation in one direction from mixed differentiation. The last letter in this page’s subscript is the second operation; in an operator fraction the rightmost operator acts first. Writing “first x, then y” beside the symbols prevents an order error when comparing books or software.

Direct answer
Check the notation convention before calculating. Continuous second partial derivatives in a neighborhood are a sufficient condition for f_xy=f_yx; equality is not unconditional.
Four second partials from two first-derivative branches
Take f(x,y)=x²y+y³. For f_x, hold y fixed: the first term becomes 2xy and the y³ term has derivative zero. For f_y, return to the original function: x²y becomes x² and y³ becomes 3y². Thus f_x=2xy and f_y=x²+3y² are independent answers, not consecutive steps.
Starting from f_x=2xy, differentiation with respect to x gives f_xx=2y. Differentiation with respect to y instead gives f_xy=2x. Do not add a second derivative to the original expression and label it f_xy: the first result is the input to the second operation.
Starting from f_y=x²+3y², differentiation with respect to x gives f_yx=2x. Differentiation with respect to y gives f_yy=6y. The two mixed derivatives agree here because the polynomial has continuous partial derivatives of every order.
Schwarz’s theorem gives a useful sufficient condition: if both second mixed partial derivatives are continuous in a neighborhood of the point, their values agree there. Failure to meet the condition does not by itself prove inequality. Conversely, checking one polynomial does not prove the rule for every function, especially at exceptional points of piecewise functions.
In the calculator, use the independent-variable selection when you want f_x and f_y from the original function. To follow the mixed path, calculate only f_x first, then choose “continue with y” below that successful result. Keep the intermediate expression and active variable visible. Re-enter the original function before computing a separate first derivative.
Worked examples
| Task | Answer | Conditions |
|---|---|---|
| Original f → x | Hold y fixed; start at the original function. | |
| Original f → y | Return to the original function, rather than differentiating f_x. | |
| f_x → x | A pure second derivative repeats the same variable. | |
| f_x → y | First x, then y: the intermediate input is 2xy. | |
| f_y → x | First y, then x: the intermediate input is x²+3y². | |
| f_y → y | The original x² term is constant in this second y derivative. |
Common mistakes
- • Reporting f_y from the original function as the next step after f_x: independent partials are not a mixed derivative.
- • Reading only a subscript without checking the author’s order convention. Write both operators or the words “first x, then y”.
- • Assuming mixed derivatives are always equal, or claiming they differ merely because a sufficient continuity condition has not been verified.
Check the four paths on a different polynomial
Use g(x,y)=x³y². Find the independent first derivatives before choosing a second direction.
Check before solving
Both operations start from g.
Reveal the reference answer
Reference answer
Check before solving
Keep each intermediate branch.
Reveal the reference answer
Reference answer
Try the worked examples in the calculator
Each link opens the matching calculator with the expression, variable and required conditions already filled in.
These links load the original function with x or y selected and do not submit a calculation. For f_xy, calculate the x example, then continue with y from its result. Each submitted derivative follows the existing calculation and credit rules.
Open the calculator without a preset: Partial derivative calculatorReferences
Frequently asked questions
Is finding f_x and f_y the same as finding f_xy?+
No. The first task differentiates the original function twice independently. The second differentiates f_x with respect to y.
Which derivative is taken first in f_xy?+
On this page, x comes first and y second. The equivalent operator expression is ∂/∂y(∂f/∂x). State the convention because notation is not universal.
Must f_xy equal f_yx?+
Not for every function at every point. Continuous second partials in a neighborhood are a standard sufficient condition. Check exceptional points separately.
Conclusion
For mixed partial derivatives, preserve the original function, identify the first direction and keep its result before taking the second direction. Use separate branches for independent partials and check the hypotheses before interchanging the order.
Compare usage plans