...

/

Derivatives in Multiple Dimensions

Derivatives in Multiple Dimensions

Learn to generalize the derivative to solve problems with more than one variable.

So far, we’ve seen how we can draw a function with a single variable. The graph of the function is a curve that follows a particular pattern depending on the formula that describes the function.

This possibility of drawing the function has been very useful. It helped us solve some simple problems and understand the concept of derivatives. We strongly recommend looking at the graph of a function whenever it’s possible. It’s always a good start.

But unfortunately, it’s not always possible to draw the graph of a function. For example, if the function has two variables instead of one, then the graph will be in 3D. The graph of the function is not a line anymore, it’s a region with height, width, and depth.

We can still draw 3D graphs. But what happens when functions have more than two variables? How can we draw a 4D or 5D graph? It’s impossible!

Press + to interact
We can draw functions up to three dimensions
We can draw functions up to three dimensions

Derivatives will help us again to solve these problems. Let’s see how to use derivatives in multiple dimensions.

Derivatives in multiple dimensions

Remember when we calculated derivatives, we used a line like this one:

df = diff(f, x)

This means we’re calculating the derivative of f with respect to x. When we have just one variable, we always calculate the derivative of the function with respect to the same variable.

In the same way, we can calculate the derivative of a function of multiple variables with respect to just one of its variables. When we do that, we consider the rest of the variables as constant numbers.

Let’s see an example that calculates the derivatives of the function f(x,y,z)=x2+y2+z2f(x, y, z) = x^2 + y^2 + z^2 ...