No history yet

Partial Derivatives

Beyond a single variable

So far, we've looked at functions with a single input, like f(x)f(x). The real world, however, is rarely so simple. A company's profit might depend on production costs and marketing spend. The temperature in a room depends on your location in it, maybe as coordinates (x,y,z)(x, y, z). These are multivariable functions.

This raises a question: how do we measure the rate of change for a function with multiple inputs? The regular derivative won't work because it's designed for a single variable. Which variable should we focus on?

The answer is to look at them one at a time. Imagine you're adjusting an audio equalizer. To understand the effect of the bass, you change the bass slider while keeping the treble and midrange sliders fixed. You're isolating one variable to see its impact. Partial derivatives apply this same logic to mathematics.

Calculating partial derivatives

A partial derivative measures the rate of change of a multivariable function with respect to one variable, while holding all other variables constant.

Let's say we have a function f(x,y)f(x, y). The partial derivative of ff with respect to xx is written as fx\frac{\partial f}{\partial x} or fxf_x. To calculate it, you simply treat yy as if it were a constant number, like 5 or -10, and then take the derivative with respect to xx as you normally would. The same process applies for finding the partial derivative with respect to yy, fy\frac{\partial f}{\partial y}, where you treat xx as a constant.

To find a partial derivative, treat all variables except the one you're interested in as constants.

Let's try an example with the function f(x,y)=x2+3xy+y2f(x, y) = x^2 + 3xy + y^2. First, we'll find the partial derivative with respect to xx.

fx=x(x2+3xy+y2)\frac{\partial f}{\partial x} = \frac{\partial}{\partial x} (x^2 + 3xy + y^2)

We differentiate term by term, treating yy as a constant.

  1. The derivative of x2x^2 with respect to xx is 2x2x.
  2. For 3xy3xy, we treat 3y3y as a constant coefficient of xx. The derivative is just 3y3y.
  3. For y2y^2, since yy is treated as a constant, y2y^2 is also a constant. The derivative of a constant is 0.

Putting it together, we get:

fx=2x+3y+0=2x+3y\frac{\partial f}{\partial x} = 2x + 3y + 0 = 2x + 3y

Now, let's find the partial derivative with respect to yy, treating xx as a constant.

  1. The derivative of x2x^2 with respect to yy is 0, since xx is treated as a constant.
  2. For 3xy3xy, we treat 3x3x as a constant coefficient of yy. The derivative is 3x3x.
  3. The derivative of y2y^2 with respect to yy is 2y2y.

So, the result is:

fy=0+3x+2y=3x+2y\frac{\partial f}{\partial y} = 0 + 3x + 2y = 3x + 2y

The geometric picture

You might remember that the derivative of a single-variable function, f(x)f'(x), gives the slope of the line tangent to the curve at point xx. A partial derivative does something similar, but in three dimensions.

The graph of a function with two variables, z=f(x,y)z = f(x, y), is a surface. Imagine this surface floating in a room. To find the partial derivative with respect to xx at a point (x0,y0)(x_0, y_0), we slice the surface with a vertical plane where yy is held constant at y0y_0. This slice creates a curve on the surface.

The partial derivative fx\frac{\partial f}{\partial x} at (x0,y0)(x_0, y_0) is the slope of the line tangent to that specific curve at that point. It tells us how steep the surface is as we move purely in the x-direction.

Likewise, the partial derivative fy\frac{\partial f}{\partial y} is the slope of the tangent line to the curve created by slicing the surface with a plane where xx is held constant. It tells you the steepness as you move purely in the y-direction.

These partial derivatives give us a way to analyze the local behavior of a complex surface by breaking it down into simple, one-dimensional slopes.

Partial derivatives help us to understand the behavior of a multivariate function when one variable changes while the rest are held constant.

Ready to test your understanding?

Quiz Questions 1/5

What is the fundamental concept behind calculating a partial derivative for a function with multiple variables?

Quiz Questions 2/5

Find the partial derivative of f(x,y)=x2+3xy+y2f(x, y) = x^2 + 3xy + y^2 with respect to yy, denoted as fy\frac{\partial f}{\partial y}.

Understanding how to isolate variables and calculate these slopes is a key first step in mastering the calculus of multiple variables.