Reading a Temperature Map
Stand on a hillside and ask how steep the ground is. The answer depends on which way you face: east might climb sharply while north stays flat. Functions of two variables behave the same way. A temperature map T(x, y) changes as you move east and as you move north, and the rate of change in each direction is a different number. Partial derivatives capture those direction-by-direction rates, and the Partial Derivative Calculator computes them without the sign errors that plague hand calculations.
The Idea, Up Close
Formula: A partial derivative differentiates with respect to one chosen variable while every other variable is held constant.
In plain words: to find fx, the partial derivative with respect to x, pretend y is just a number, like 5, and differentiate normally. Any term containing only y becomes zero. To find fy, do the mirror image: treat x as a constant. The little curly-d symbol in textbooks is written here as plain text, but the meaning is identical.
How to Use It
- Enter your function of two variables, for example f(x, y) = 3x^2 + 2xy + 5y^2.
- Choose whether you want fx, fy, or both.
- Read each step: the calculator shows which terms survive and which vanish.
- Optionally evaluate at a point such as (2, 1).
Worked Example, Step by Step
Find fx and fy for f(x, y) = 3x^2 + 2xy + 5y^2.
For fx, treat y as constant: the derivative of 3x^2 is 6x; the derivative of 2xy is 2y (y is just a coefficient here); the derivative of 5y^2 is 0. So fx = 6x + 2y.
For fy, treat x as constant: the derivative of 3x^2 is 0; the derivative of 2xy is 2x; the derivative of 5y^2 is 10y. So fy = 2x + 10y.
At the point (2, 1): fx = 6(2) + 2(1) = 14, and fy = 2(2) + 10(1) = 14. Both directions change at the same rate there, which is a coincidence of this example, not a rule.
Where Partial Derivatives Earn Their Keep
Machine learning trains models by following partial derivatives downhill through the gradient. Economists read marginal cost and marginal utility straight off partial derivatives of cost and utility functions. In physics, heat flow and wave motion are governed by partial differential equations. When you need the rate of change along a diagonal direction rather than along an axis, the next step is the directional derivative, which combines fx and fy into one number. For single-variable curves, our second derivative calculator shows the same slope-of-slope idea in one dimension.
Mistakes Worth Avoiding
- Differentiating the "constant" variable. In fx, y is a constant, so 5y^2 differentiates to 0, not 10y.
- Mixing up fx and fy. Label your answer; swapping them is easy when both look similar.
- Assuming one partial tells the whole story. A zero partial in one direction says nothing about the other direction.
An Honest Limitation
Partial derivatives describe behavior one variable at a time near smooth points. At kinks, corners, or discontinuities, the formal rules can mislead, so treat results there with care. Results from this tool are estimates for study and planning, not engineering or medical advice.