Partial Derivatives Calculator

Published on: July 21, 2026
Final Answer: Free | Full Steps: Pro

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

  1. Set up the problem.
  2. Write the formula.
  3. Differentiate with respect to each variable.
  4. 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.

\(\frac{\partial f}{\partial x} = \lim_{h \to 0} \frac{f(x + h, y) - f(x, y)}{h}\)

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

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

\(f(x, y) = x^{3} + x y^{2}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Differentiate with respect to each variable.
  4. 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.

\(\frac{\partial f}{\partial x} = \lim_{h \to 0} \frac{f(x + h, y) - f(x, y)}{h}\)

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\).

\(f(x, y) = x^{3} + x y^{2}\)

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.

\(\frac{\partial f}{\partial x} = \lim_{h \to 0} \frac{f(x + h, y) - f(x, y)}{h}\)

Step 3

Step 3 - Differentiate with respect to each variable.

In this problem: Each variable is taken in turn, with the others held constant.

\(f(x, y) = x^{3} + x y^{2}\)

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}\).

\(\frac{\partial f}{\partial x} = 3 x^{2} + y^{2}\)

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\).

\(\frac{\partial f}{\partial y} = 2 x y\)

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\).

\(\frac{\partial f}{\partial x} = 3 x^{2} + y^{2},\quad \frac{\partial f}{\partial y} = 2 x y\)

Final Answer

\(\frac{\partial f}{\partial x} = 3 x^{2} + y^{2},\quad \frac{\partial f}{\partial y} = 2 x y\)
See Example 2 Hide Example 2

Problem

\(f(x, y) = \sin {x} \cos {y}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Differentiate with respect to each variable.
  4. 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.

\(\frac{\partial f}{\partial x} = \lim_{h \to 0} \frac{f(x + h, y) - f(x, y)}{h}\)

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\).

\(f(x, y) = \sin {x} \cos {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.

\(\frac{\partial f}{\partial x} = \lim_{h \to 0} \frac{f(x + h, y) - f(x, y)}{h}\)

Step 3

Step 3 - Differentiate with respect to each variable.

In this problem: Each variable is taken in turn, with the others held constant.

\(f(x, y) = \sin {x} \cos {y}\)

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}\).

\(\frac{\partial f}{\partial x} = \cos {x} \cos {y}\)

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}\).

\(\frac{\partial f}{\partial y} = - \sin {x} \sin {y}\)

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}\).

\(\frac{\partial f}{\partial x} = \cos {x} \cos {y},\quad \frac{\partial f}{\partial y} = - \sin {x} \sin {y}\)

Final Answer

\(\frac{\partial f}{\partial x} = \cos {x} \cos {y},\quad \frac{\partial f}{\partial y} = - \sin {x} \sin {y}\)

Notes and Practice Mode

Example Problems

Click one to load it into the box and solve it.