Calculus

Understanding Partial Derivatives: What They Are + Simple Problems

A beginner's guide to partial derivatives in multivariable calculus.

5 min read
By MathlyAI Team
CalculusPartial DerivativesMultivariable CalculusBeginner

In single-variable calculus, we learn how to find the rate of change of a function with respect to one variable. But what happens when a function depends on multiple variables? That's where partial derivatives come in!

Partial derivatives allow us to examine how a multivariable function changes when only one of its independent variables changes, while keeping the others constant.

Why Do We Need Partial Derivatives?

Imagine a function that describes the temperature on a metal plate, T(x,y)T(x, y), where xx and yy are spatial coordinates. If you want to know how the temperature changes as you move only along the x-axis (without changing your y-position), you'd use a partial derivative. Similarly, you could find the rate of change along the y-axis.

Definition and Notation

For a function f(x,y)f(x, y) of two variables, the partial derivative with respect to xx is denoted by:

fxorfx(x,y)\frac{\partial f}{\partial x} \quad \text{or} \quad f_x(x, y)

And the partial derivative with respect to yy is denoted by:

fyorfy(x,y)\frac{\partial f}{\partial y} \quad \text{or} \quad f_y(x, y)

The symbol \partial (pronounced "del" or "partial") distinguishes a partial derivative from an ordinary derivative.

How to Compute Partial Derivatives

The trick to computing partial derivatives is to treat all other variables as if they were constants.

To find fx\frac{\partial f}{\partial x}:

  1. Treat yy (and any other variables) as constants.
  2. Differentiate f(x,y)f(x, y) with respect to xx using all the usual differentiation rules (power rule, product rule, chain rule, etc.).

To find fy\frac{\partial f}{\partial y}:

  1. Treat xx (and any other variables) as constants.
  2. Differentiate f(x,y)f(x, y) with respect to yy.

Simple Problem 1: Basic Polynomial Function

Let f(x,y)=3x2y+2xy3+5x7y+10f(x, y) = 3x^2y + 2xy^3 + 5x - 7y + 10.

Find fx\frac{\partial f}{\partial x}: Treat yy as a constant.

  • The derivative of 3x2y3x^2y with respect to xx is 3y(2x)=6xy3y \cdot (2x) = 6xy.
  • The derivative of 2xy32xy^3 with respect to xx is 2y3(1)=2y32y^3 \cdot (1) = 2y^3.
  • The derivative of 5x5x with respect to xx is 55.
  • The derivative of 7y-7y with respect to xx is 00 (since 7y-7y is treated as a constant).
  • The derivative of 1010 with respect to xx is 00.

So,

fx=6xy+2y3+5\frac{\partial f}{\partial x} = 6xy + 2y^3 + 5

Find fy\frac{\partial f}{\partial y}: Treat xx as a constant.

  • The derivative of 3x2y3x^2y with respect to yy is 3x2(1)=3x23x^2 \cdot (1) = 3x^2.
  • The derivative of 2xy32xy^3 with respect to yy is 2x(3y2)=6xy22x \cdot (3y^2) = 6xy^2.
  • The derivative of 5x5x with respect to yy is 00.
  • The derivative of 7y-7y with respect to yy is 7-7.
  • The derivative of 1010 with respect to yy is 00.

So,

fy=3x2+6xy27\frac{\partial f}{\partial y} = 3x^2 + 6xy^2 - 7

Simple Problem 2: Exponential and Trigonometric Function

Let g(x,y)=exy+cos(x2y)g(x, y) = e^{xy} + \cos(x^2y).

Find gx\frac{\partial g}{\partial x}: Treat yy as a constant.

  • For exye^{xy}: Use the chain rule. The derivative of eue^u is euue^u \cdot u'. Here u=xyu = xy, so u=yu' = y (derivative with respect to xx). So, the derivative is yexyy e^{xy}.
  • For cos(x2y)\cos(x^2y): Use the chain rule. The derivative of cos(u)\cos(u) is sin(u)u-\sin(u) \cdot u'. Here u=x2yu = x^2y, so u=2xyu' = 2xy (derivative with respect to xx). So, the derivative is sin(x2y)2xy-\sin(x^2y) \cdot 2xy.

Thus,

gx=yexy2xysin(x2y)\frac{\partial g}{\partial x} = y e^{xy} - 2xy \sin(x^2y)

Find gy\frac{\partial g}{\partial y}: Treat xx as a constant.

  • For exye^{xy}: Use the chain rule. The derivative of eue^u is euue^u \cdot u'. Here u=xyu = xy, so u=xu' = x (derivative with respect to yy). So, the derivative is xexyx e^{xy}.
  • For cos(x2y)\cos(x^2y): Use the chain rule. The derivative of cos(u)\cos(u) is sin(u)u-\sin(u) \cdot u'. Here u=x2yu = x^2y, so u=x2u' = x^2 (derivative with respect to yy). So, the derivative is sin(x2y)x2-\sin(x^2y) \cdot x^2.

Thus,

gy=xexyx2sin(x2y)\frac{\partial g}{\partial y} = x e^{xy} - x^2 \sin(x^2y)

Higher-Order Partial Derivatives (Briefly)

Just like ordinary derivatives, you can take partial derivatives multiple times. For example, 2fx2\frac{\partial^2 f}{\partial x^2} means you take the partial derivative with respect to xx twice. You can also take "mixed" partial derivatives like 2fyx\frac{\partial^2 f}{\partial y \partial x}, which means you first differentiate with respect to xx, and then with respect to yy.

Real-World Applications

Partial derivatives are crucial in many fields:

  • Physics: Thermodynamics, fluid dynamics, electromagnetism.
  • Engineering: Structural analysis, control systems.
  • Economics: Marginal utility, elasticity.
  • Machine Learning: Gradient descent algorithms to optimize models.

Key Takeaways

  • Partial derivatives measure the rate of change of a multivariable function with respect to one variable, holding others constant.
  • To compute them, treat all other variables as constants.
  • They are denoted by \partial (e.g., fx\frac{\partial f}{\partial x}).
  • Essential for understanding how complex systems change.

Keep practicing, and you'll master them in no time!