Partial Derivatives Notes

Published on: September 29, 2026

These Partial Derivatives Notes explain how to differentiate a function of several variables with respect to each one in turn, with the working shown 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. Examples 3 and 4 give you two more of the same kind to try, \(f(x, y) = x^{2} y + 3 y^{3}\) and \(f(x, y) = e^{x} \sin {y}\). Hold one variable constant at a time and compare.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them 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}\)
See Example 3 Hide Example 3

Problem

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

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^{2} y + 3 y^{3}\) with respect to \(x\) and \(y\).

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

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^{2} y + 3 y^{3}\)

Step 3a

Step 3a - Differentiate with respect to x.

In this problem: Holding \(y\) constant, differentiating \(x^{2} y + 3 y^{3}\) with respect to \(x\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial x} = 2 x y\).

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

Step 3b

Step 3b - Differentiate with respect to y.

In this problem: Holding \(x\) constant, differentiating \(x^{2} y + 3 y^{3}\) with respect to \(y\), covered in the Sum Rule Calculator, gives \(\frac{\partial f}{\partial y} = x^{2} + 9 y^{2}\).

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

Step 4

Step 4 - Write the partial derivatives.

In this problem: Writing the results together gives \(\frac{\partial f}{\partial x} = 2 x y\) and \(\frac{\partial f}{\partial y} = x^{2} + 9 y^{2}\).

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

Final Answer

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

Problem

\(f(x, y) = e^{x} \sin {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) = e^{x} \sin {y}\) with respect to \(x\) and \(y\).

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

Step 3a

Step 3a - Differentiate with respect to x.

In this problem: Holding \(y\) constant, differentiating \(e^{x} \sin {y}\) with respect to \(x\), covered in the Exponential Derivative Calculator, gives \(\frac{\partial f}{\partial x} = e^{x} \sin {y}\).

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

Step 3b

Step 3b - Differentiate with respect to y.

In this problem: Holding \(x\) constant, differentiating \(e^{x} \sin {y}\) with respect to \(y\), covered in the Trigonometric Derivative Calculator, gives \(\frac{\partial f}{\partial y} = e^{x} \cos {y}\).

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

Step 4

Step 4 - Write the partial derivatives.

In this problem: Writing the results together gives \(\frac{\partial f}{\partial x} = e^{x} \sin {y}\) and \(\frac{\partial f}{\partial y} = e^{x} \cos {y}\).

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

Final Answer

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

Calculator and Practice Mode