Partial Derivatives Calculator
This Partial Derivatives Calculator differentiates a function of several variables with respect to each one in turn, and shows the working line by line. While one variable is being differentiated the others are treated as constants, which is what makes each partial an ordinary derivative. Every variable in the function gets its own result. Following the same pattern every time keeps the held-constant variables from being differentiated by mistake.
Step-by-step method
- Set up the problem.
- Write the formula.
- Differentiate with respect to each variable.
- Write the partial derivatives.
Formula: Partial Derivative Definition
This limit defines the partial derivative with respect to x. Only x changes, while y stays fixed, so the other variables act like constants.
Useful Tips to Remember
Treat every variable except the one you are differentiating as a number, so \(\frac{\partial}{\partial x}(x y^{2}) = y^{2}\). A term with no x in it has a partial derivative of 0 with respect to x. The usual rules still apply, including the chain, product and quotient rules. The notation \(f_{x}\) means the same as \(\frac{\partial f}{\partial x}\).
Required knowledge
- How to differentiate with the usual rules, covered in the Derivative Calculator.
- How to differentiate composite functions, covered in the Chain Rule Calculator.
- How the partials combine into one vector, covered in the Gradient Calculator.
Where Are Partial Derivatives Used?
Partial derivatives measure how a quantity changes when one input changes and the rest stay fixed, which is how most real systems with many inputs are studied. Economists use them for marginal cost and marginal utility with several goods. In physics they appear in the heat, wave and Maxwell equations. Machine learning trains models by taking partial derivatives of the loss with respect to every weight, and engineers use them to see how sensitive a design is to each measurement.
- Marginal cost and utility in economics
- Heat, wave and electromagnetic equations in physics
- Training neural networks by backpropagation
- Sensitivity of a design to each input
- Rates of change on maps and surfaces
Partial Derivatives Practice Problems
Example 1 differentiates \(x^{3} + x y^{2}\) with respect to x and y, and Example 2 uses \(x^{2} y^{3}\), where each partial keeps the other variable's power. Hold one variable constant at a time and compare. For two more free worked examples, check out the Partial Derivatives Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Differentiate with respect to each variable.
- Write the partial derivatives.
Formula
Formula: Partial Derivative Definition
This limit defines the partial derivative with respect to x. Only x changes, while y stays fixed, so the other variables act like constants.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the partial derivative of \(f(x, y) = x^{3} + x y^{2}\) with respect to \(x\) and \(y\).
Step 2
Step 2 - Write the formula.
In this problem: A partial derivative measures how f changes when only one variable changes. Every other variable is treated as a constant, and then the usual derivative rules are used.
Step 3
Step 3 - Differentiate with respect to each variable.
In this problem: Each variable is taken in turn, with the others held constant.
Step 3a
Step 3a - Differentiate with respect to x.
In this problem: Holding \(y\) constant, differentiating \(x^{3} + x y^{2}\) with respect to \(x\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial x} = 3 x^{2} + y^{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x^{3}\), \(x y^{2}\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x^{3}\).
In this problem: The separated term is \(x^{3}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{3}\). This is a power of \(x\), so the exponent is \(n = 3\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Substitute the given power into the formula.
In this problem: Here, \(n = 3\). Substitute this exponent into the power rule, but do not simplify yet.
Step 4
Step 4 - Solve and simplify.
In this problem: Now subtract 1 from the exponent. This gives \(3{x}^{2}\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(x y^{2}\).
In this problem: The separated term is \(x y^{2}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x y^{2}\). This is a constant multiple of a power of \(x\). The coefficient is \(y^{2}\), the power part is \(x\), and the exponent is \(n = 1\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(y^{2}\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(x\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(x^{1} y^{2}\). The constant coefficient is \(y^{2}\), and the variable part is \(x^{1}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(y^{2}\) outside the derivative and leave \(x^{1}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here, \(n = 1\). Substitute this exponent into the power rule, then keep the coefficient \(y^{2}\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(x\) and multiply by the constant \(y^{2}\). This gives \(y^{2}\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 3b
Step 3b - Differentiate with respect to y.
In this problem: Holding \(x\) constant, differentiating \(x^{3} + x y^{2}\) with respect to \(y\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial y} = 2 x y\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the sum rule formula.
- Split the derivative across the addition signs.
- Differentiate each separated term as Step 4a, Step 4b, Step 4c, and so on.
- Combine the term derivatives and simplify.
Step 1
Step 1 - Set up the terms in the sum.
In this problem: We are given a sum. The separate terms are \(x^{3}\), \(x y^{2}\).
Step 2
Step 2 - Write the sum rule formula.
In this problem: The sum rule says the derivative of a sum is the sum of the derivatives.
Step 3
Step 3 - Split the derivative across the addition signs.
In this problem: Apply the derivative to each separated term.
Step 4a
Step 4a - Differentiate the separated term \(x^{3}\).
In this problem: The separated term is \(x^{3}\). Use the constant rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant rule formula.
- Apply the constant rule.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x^{3}\). This expression does not contain \(y\), so it is a constant.
Step 2
Step 2 - Write the constant rule formula.
In this problem: The constant rule says the derivative of any constant is \(0\).
Step 3
Step 3 - Apply the constant rule.
In this problem: Since \(x^{3}\) is constant, its derivative is \(0\).
Final Answer
Step 4b
Step 4b - Differentiate the separated term \(x y^{2}\).
In this problem: The separated term is \(x y^{2}\). Use the power rule to get its derivative.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the power rule formula.
- If there is a number in front, move it out with the constant multiple rule.
- Substitute the exponent into the power rule.
- Solve and simplify.
Step 1
Step 1 - Set up the problem.
In this problem: We are given \(x y^{2}\). This is a constant multiple of a power of \(x\). The coefficient is \(x\), the power part is \(y^{2}\), and the exponent is \(n = 2\).
Step 2
Step 2 - Write the power rule formula.
In this problem: The power rule says to move the exponent to the front, then subtract 1 from the exponent.
Step 3
Step 3 - Move the number in front out with the constant multiple rule.
In this problem: \(x\) is a constant coefficient, so it moves in front of the derivative and the power rule only works on \(y^{2}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(x y^{2}\). The constant coefficient is \(x\), and the variable part is \(y^{2}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(x\) outside the derivative and leave \(y^{2}\) inside the derivative.
Final Answer
Step 4
Step 4 - Substitute the exponent into the formula.
In this problem: Here, \(n = 2\). Substitute this exponent into the power rule, then keep the coefficient \(x\) outside.
Step 5
Step 5 - Solve and simplify.
In this problem: Apply the power rule to \(y^{2}\) and multiply by the constant \(x\). This gives \(2 x{y}^{1}\).
Final Answer
Step 5
Step 5 - Combine and simplify.
In this problem: Combine the derivative from each separated term, then simplify the result.
Final Answer
Step 4
Step 4 - Write the partial derivatives.
In this problem: Writing the results together gives \(\frac{\partial f}{\partial x} = 3 x^{2} + y^{2}\) and \(\frac{\partial f}{\partial y} = 2 x y\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Differentiate with respect to each variable.
- Write the partial derivatives.
Formula
Formula: Partial Derivative Definition
This limit defines the partial derivative with respect to x. Only x changes, while y stays fixed, so the other variables act like constants.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the partial derivative of \(f(x, y) = \sin {x} \cos {y}\) with respect to \(x\) and \(y\).
Step 2
Step 2 - Write the formula.
In this problem: A partial derivative measures how f changes when only one variable changes. Every other variable is treated as a constant, and then the usual derivative rules are used.
Step 3
Step 3 - Differentiate with respect to each variable.
In this problem: Each variable is taken in turn, with the others held constant.
Step 3a
Step 3a - Differentiate with respect to x.
In this problem: Holding \(y\) constant, differentiating \(\sin {x} \cos {y}\) with respect to \(x\), covered in the Trigonometric Derivative Calculator, gives \(\frac{\partial f}{\partial x} = \cos {x} \cos {y}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the derivative rule for that trigonometric function.
- Move the constant multiple in front of the derivative.
- Apply the derivative rule.
Step 1
Step 1 - Identify the trigonometric function and any constant multiple.
In this problem: The function is \(\sin{\left(x \right)}\). The constant multiple \(\cos{\left(y \right)}\) stays in front.
Step 2
Step 2 - Write the derivative rule for that trigonometric function.
In this problem: The derivative of \(\sin{\left(x \right)}\) is \(\cos{\left(x \right)}\).
Step 3
Step 3 - Move the constant multiple in front of the derivative.
In this problem: The number \(\cos{\left(y \right)}\) in front is a constant multiple, so it moves in front of the derivative and only \(\sin{\left(x \right)}\) is differentiated.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(\sin{\left(x \right)} \cos{\left(y \right)}\). The constant coefficient is \(\cos{\left(y \right)}\), and the variable part is \(\sin{\left(x \right)}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(\cos{\left(y \right)}\) outside the derivative and leave \(\sin{\left(x \right)}\) inside the derivative.
Final Answer
Step 4
Step 4 - Apply the derivative rule.
In this problem: Replace \(\frac{d}{d x} \sin{\left(x \right)}\) with \(\cos{\left(x \right)}\) from Step 2.
Final Answer
Step 3b
Step 3b - Differentiate with respect to y.
In this problem: Holding \(x\) constant, differentiating \(\sin {x} \cos {y}\) with respect to \(y\), covered in the Trigonometric Derivative Calculator, gives \(\frac{\partial f}{\partial y} = - \sin {x} \sin {y}\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the derivative rule for that trigonometric function.
- Move the constant multiple in front of the derivative.
- Apply the derivative rule.
Step 1
Step 1 - Identify the trigonometric function and any constant multiple.
In this problem: The function is \(\cos{\left(y \right)}\). The constant multiple \(\sin{\left(x \right)}\) stays in front.
Step 2
Step 2 - Write the derivative rule for that trigonometric function.
In this problem: The derivative of \(\cos{\left(y \right)}\) is \(- \sin{\left(y \right)}\).
Step 3
Step 3 - Move the constant multiple in front of the derivative.
In this problem: The number \(\sin{\left(x \right)}\) in front is a constant multiple, so it moves in front of the derivative and only \(\cos{\left(y \right)}\) is differentiated.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the constant multiple rule formula.
- Apply the constant multiple rule.
Step 1
Step 1 - Set up the coefficient and the variable part.
In this problem: We are given \(\sin{\left(x \right)} \cos{\left(y \right)}\). The constant coefficient is \(\sin{\left(x \right)}\), and the variable part is \(\cos{\left(y \right)}\).
Step 2
Step 2 - Write the constant multiple rule formula.
In this problem: The constant multiple rule says a constant coefficient stays outside the derivative.
Step 3
Step 3 - Apply the constant multiple rule.
In this problem: Move the constant coefficient \(\sin{\left(x \right)}\) outside the derivative and leave \(\cos{\left(y \right)}\) inside the derivative.
Final Answer
Step 4
Step 4 - Apply the derivative rule.
In this problem: Replace \(\frac{d}{d y} \cos{\left(y \right)}\) with \(- \sin{\left(y \right)}\) from Step 2.
Final Answer
Step 4
Step 4 - Write the partial derivatives.
In this problem: Writing the results together gives \(\frac{\partial f}{\partial x} = \cos {x} \cos {y}\) and \(\frac{\partial f}{\partial y} = - \sin {x} \sin {y}\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Partial Derivatives Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Partial Derivatives Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.
Login and upgrade to Pro to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.