Key takeaways
- A partial derivative changes one variable and holds all the others fixed.
- To find ∂f/∂x, treat y like an ordinary number, then differentiate as usual.
- For f(x, y) = x²y, ∂f/∂x = 2xy and ∂f/∂y = x².
- The #1 mistake is differentiating the variable that should be frozen.
In this guide
What is a partial derivative?
An ordinary derivative measures the slope of a curve y = f(x), where there is only one input. But many real formulas depend on two or more inputs. The volume of a box with a square base depends on the base side x and the height y: V = x²y.
A partial derivative asks: if I change only x and keep y fixed, how fast does the answer change? That is written ∂f/∂x. The curly ∂ reminds you that the other variables are being held still.
Why do partial derivatives matter?
Real life rarely has only one input. Profit depends on price and on how many items you sell. The temperature in a room depends on where you stand and on the time. To make good decisions, you often need to know the effect of changing one thing at a time.
Every time a machine learning model “learns”, it calculates partial derivatives, one for each adjustable number in the model, and nudges each number in the direction that lowers its error.
The formula
This calculator works with the function f(x, y) = x²y:
| Symbol | What it means | Example |
|---|---|---|
| f(x, y) = x²y | A quantity that depends on both x and y | box volume |
| ∂/∂x | Differentiate with respect to x, treating y as a fixed number | ∂f/∂x |
| x | The value of x at your point | 3 |
| y | The value of y at your point (held constant) | 4 |
| 2xy | The partial derivative the calculator evaluates | 2 × 3 × 4 = 24 |
Because y is frozen, x²y behaves just like 5x² would. The power rule turns x² into 2x, and y simply rides along.
How to find a partial derivative step by step
- 1Choose your variable. Decide which letter you are changing. Here it is x.
- 2Freeze the others. Pretend y is a fixed number, like 4.
- 3Differentiate as normal. Use the usual rules on x only.
x²ybecomes2x × y = 2xy. - 4Put in your point. Replace x and y with their values to get a number.
Now try it yourself. Enter any x and y in the calculator below to get ∂(x²y)/∂x with every step.
Try it yourself
Pre-filled with the example — change any value.
Common mistakes to avoid
- Dropping a term that contains x. In
f = x²y + y³, only y³ disappears when you differentiate with respect to x. The answer is 2xy. - Mixing up ∂f/∂x and ∂f/∂y. They are usually different. For x²y they are 2xy and x². This calculator only finds ∂f/∂x.
- Forgetting that a frozen term can vanish. In
f = 3x + 5y², the 5y² is a constant when you work with x, so∂f/∂x = 3.
Tips and tricks
- Swap roles for ∂f/∂y. Freeze x instead:
∂(x²y)/∂y = x², because the derivative of y is 1. - Build the gradient. Put all the partial derivatives into one list and you get the gradient vector, which points uphill.
- Any direction. For the slope in a direction that is not along an axis, use the directional derivative calculator.
Where you'll use it in real life
- Economics: how profit changes with price while advertising stays the same.
- Physics: how heat spreads through metal, or how a wave moves.
- Machine learning: training a model by adjusting one weight at a time.
- Engineering: how the volume of a tank changes if you widen it but keep the height.
Quick summary
A partial derivative measures how a formula changes when you move one variable and hold the rest still. Freeze the other letters, differentiate with the usual rules, then put in your point. For x²y, the calculator above gives ∂f/∂x = 2xy at any point you choose, with every step shown.
Worked example
A box has a square base with side x = 3 cm and height y = 4 cm, so its volume is V = x²y. If you stretch only the base side and keep the height at 4 cm, how fast does the volume grow (in cm³ per cm)?
- 01∂(x²y)/∂x = 2xy
- 02At (3,4): 2(3)(4)
- 03= 24
These numbers are pre-filled in the calculator above.
Frequently asked questions
What does the symbol ∂ mean?
∂ is read “partial” or “del”. It tells you the function has more than one variable and you are changing only one of them.
What is the partial derivative of x²y with respect to y?
It is x². Now x is treated as a constant, so x²y behaves like a number times y, and the derivative of y is 1.
Is a partial derivative different from a normal derivative?
The rules are the same. The only difference is that you treat every variable except one as a fixed number while you differentiate.


