maths.freeMultivariable Calculus › 3. Derivatives of Multivariable Functions › Higher Dimensions

Higher Dimensions

This section expands on the idea of level curves from and the interpretations of the gradient from . This section can likely be covered in a single class or split up and incorporated into work for and .

Higher Dimensions

This section expands on the idea of level curves from and the interpretations of the gradient from . This section can likely be covered in a single class or split up and incorporated into work for and . Much of this section is centered around describing the generalization of derivatives to functions of three or more variables because students will likely struggle with understanding much of the development of these ideas due to the lack of geometric tools. For this reason, the activities in this section are more limited in scope when compared to the rest of this text.

Introduction

In this chapter, we have primarily worked with functions of two variables including understanding graphs of the form \(z=f(x,y)\) and measuring change with functions of two variables. In this section, we explore how many of the tools we have developed for understanding two-variable functions can be generalized to functions of three or more variables.

A significant impediment to expanding the ideas in this chapter to functions of three or more variables will be that is it difficult (or impossible) to draw plots of these functions, which means we must rely on simplifications or analogies to understand these measurements geometrically. For this reason, most efforts to understand functions of three or more variables is algebraically-focused.

We start in the Preview Activity by generalizing the idea of level curves.

Exploration

State the equation and shape of the level curves for the function \(f(x,y)=x^2+y^2\) for the values \(-2,-1,0,1,2\).

State the equation and shape of the level curves for the function \(g(x,y)=x^2-y^2\) for the values \(-2,-1,0,1,2\).

For a constant \(k\) and a function \(f\), the level set is the set of points \(P\) for which \(f(P)=k\). The remainder of this Preview Activity asks you to consider level sets of some functions of three variables. We use the term level set here because the set of inputs for a function of three or more variables that gives a particular output value will likely not be a curve.

State the equation and shape of the level sets for the function \(f(x,y,z)=x^2+y^2+z^2\) for \(-2,-1,0,1,2\).

State the equation and shape of the level sets for the function \(g(x,y,z)=x^2+y^2-z^2\) for \(-2,-1,0,1,2\). These level set values should give three different types of surfaces.

State the equation and shape of the level sets for the function \(h(x,y,z)=x+y-z\) for \(-2,-1,0,1,2\).

In this section, we will often use the idea of level sets to explore functions of three or more variables. The topics we explore are not likely to surprise you: domain and range, graphs, limits, and rates of change.

Inputs and Outputs with Functions of Three or More Variables

A function is a rule that assigns an single output for each allowed input. For instance, your school likely uses a function that takes your student ID number as an input and outputs your name. While you may not be the only student at your school with your name, this function should not associate more than one name with each student ID number. A function of \(n\) variables can be thought of as taking points in \(\R^n\) as input and outputs a real number for each valid input.

Recall from that the domain of a function is the set of input values for which a function is defined. The range of a function is the set of values actually output by the function.

Example

Consider the function \(g(x,y,z)= \sqrt{1-x}+e^{y^2+z^2}\). We see here that we need \(\sqrt{1-x}\) to be defined, which requires that \(1-x\geq 0\) or \(x\leq 1\). However, there is is no restriction on the values of \(y\) or \(z\). Thus, we can say that the domain of \(g\) is all points \((x,y,z)\) for which \(x\leq 1\). You may be tempted to say the range of \(g\) is all real numbers since \(g\) outputs scalars. However, a closer look shows that \(g\) cannot output negative numbers. Since the outputs of the exponential portion of \(g\) is always positive and the square root portion is always nonnegative, the range of \(g\) is the interval \((0,\infty)\).

Visualizing Functions of Three or More Variables

Given a function \(f\) of several variables the level set of \(f\) at the value \(k\) is the collection of input points \(P\) for which \(f(P)=k\). A level set is a subset of the domain of the function \(f\) because the level set is a collection of input points.

If \(f(x,y)\) is a function of two variables, then a level set is a contour or a level curve of the form \(f(x,y)=k\). Notice that the level set in this case is a set of points in the \(xy\)-plane. As we saw in , we can make a contour plot by graphing a collection of these level curves on the same two-dimensional plot, which will give us an idea of what the surface corresponding to \(z=f(x,y)\) looks like. In other words, we were able to give enough information in a two-dimensional plot to describe a three-dimensional surface.

If \(g(x,y,z)\) is a function of three variables, then a graph of \(g\) function would require four dimensions: three dimensions for the inputs and one dimension for the output. Drawing plots in three dimensions is challenging, but we will use three-dimensional graphs to understand functions of three variables rather than attempting to visualize four-dimensional graphs directly. We will do this by generalizing our approach of using contour plots to express a three-dimensional plot in a two-dimensional setting. Specifically, we will use level sets of \(g(x,y,z)\) to understand a graph of \(w=g(x,y,z)\) and help measure change in the output of \(g\).

A level set of \(g\) is a collection of points in \(xyz\)-space that corresponds to a surface of the form \(g(x,y,z)=k\). As you saw in , the level sets of a function of three variables are often surfaces, which we call level surfaces. For example, if \(g(x,y,z)=x^2+y^2+z^2\), then the level surface corresponding to the value \(1\) is all points that satisfy the equation \(x^2+y^2+z^2=1\). This set of points forms the sphere of radius \(1\) centered at the origin.

These level surfaces will often be a different kind of surface than we have been working with throughout . Surfaces of the form \(z=f(x,y)\) are called explicit surfaces because one of the coordinates can be solved explicitly as a function of the other coordinates. Surfaces such as spheres or hyperboloids are not explicit surfaces because there is no way to solve for one variable as a function of the other coordinates. Two perspectives from which you can recognize that are first that these surfaces fail the vertical line test in \(\R^3\) and algebraically, the \(\pm\) that comes from needing to take square roots prevents this for many quadric surfaces.

Condensed — the full section is in Boelkins et al., Active Calculus Multivariable.

Measuring Change with Functions of Three or More Variables

Conceptually, limits for functions of three or more variables work the same as for functions of two variables. Given a function \(f\), we say that \(f\) has limit \(L\) as the inputs approach \(P_0\) provided that we can make \(f(P)\) as close to \(L\) as we like by taking \(P\) sufficiently close (but not equal) to \(P_0\). We write \[\begin{aligned}\end{aligned}\]. If the limit of a function \(f\) along every path through an input point \(P_0\) exists and all of those limits are the same value \(L\) then we say the limit of \(f\) at \(P\) is \(L\). There is not much more insight into limits of multivariable functions to be had at this point, so we will move on to measuring the change in output of our multivariable functions of three or more variables.

The partial derivative of a multivariable function measures the rate of change in the output of the function when one variable is changed and all others are held constant. Our definition and notation of partial derivatives given for functions of two variables only needs to be updated to account for three or more input variables.

Example

If we consider \(T(x,y,z,t)\) to be a function that measures the air temperature at a location with spatial coordinates \((x,y,z)\) at time \(t\), then we have four first partial derivatives: \[\begin{aligned}\end{aligned}\] The limit definition of the partial derivative with respect to \(t\) at a point \((x_0,y_0,z_0,t_0)\) is \[\begin{aligned}\end{aligned}\]. This partial derivative measures the instantaneous rate of change in temperature with respect to time at the location \((x_0,y_0,z_0)\) at time \(t=t_0\).

Second partial derivatives work the same as for functions with two variable functions. For example, \[\begin{aligned}\end{aligned}\] measure the rate of change with respect to time of \(T_y\). This function has sixteen second partial derivatives: four unmixed partials and 12 mixed partials.

also generalizes to higher dimensions: if all mixed partials are continuous near an input point of a function of three or more variables, then the mixed partials at that point are equal.

Condensed — the full section is in Boelkins et al., Active Calculus Multivariable.

Directional Derivatives and Gradients

Directional derivatives and gradients for functions of three or more variables are critical concepts, both in this course and in future coursework in math, economics, and the physical sciences. Recall that the directional derivative measures the instantaneous rate of change of a multivariable function when the inputs are changed in a particular direction. None of the arguments in were specific to functions of two variables, but rather than stating these results in terms of an abstract function of \(n\) variables, we will illustrate the various definitions and results in terms of functions of three or four variables: \(f(x,y,z)\) or \(g(x,y,z,w)\).

Let \(f = f(x,y,z)\) be a function of three variables. The derivative of \(f\) at the point \((x,y,z)\) in the direction of the unit vector \(\vu = \langle u_1, u_2 , u_3 \rangle\) is denoted \(D_{\vu}f(x,y,z)\) and is given by \[\begin{aligned}\end{aligned}\] for those values of \(x\), \(y\), and \(z\) for which the limit exists. We can make a similar limit definition for a function of more than three variables because we are able to separate the length of the step in a particular direction (\(t\) in the above statement) and the unit vector in that particular direction (\(\vu\) from above) for vectors with any number of components.

We can calculate the directional derivative in terms of partial derivatives of the function and \(\vu\). This result comes from using the chain rule on a composition of the multivariable function with the line in the direction of \(\vu\). If \(f(x,y,z)\) and \(g(x,y,z,w)\) are functions of three and four variables, respectively, then \[\begin{aligned}\end{aligned}\] and \[\begin{aligned}D_{\vu} g(x,y,z,w)= g_x(x,y,z,w) u_1 \amp+ g_y(x,y,z,w) u_2 \\ \amp +g_z(x,y,z,w) u_3+ g_w(x,y,z,w) u_4\end{aligned}\]. Remember that the direction vector will have as many components as there are inputs to the function because the direction vector corresponds to a change in the inputs of the function.

The formulas above have the same form of a dot product of the gradient and the direction vector, so we more compactly write \[\begin{aligned}\end{aligned}\] and \[\begin{aligned}\end{aligned}\] where \(\nabla f =\langle f_x(x,y,z), f_y(x,y,z) , f_z(x,y,z)\rangle\) and \[\begin{aligned}\end{aligned}\]. This generalization shows that in any dimension, the directional derivative can be calculated as the dot product of the gradient and the direction vector.

This also means that all of our work to understand the meaning of the gradient will generalize to any dimension as well. In particular, we update our summary of the meaning of the gradient below.

Condensed — the full section is in Boelkins et al., Active Calculus Multivariable.

Practice (2)

Try each one on paper first. Reveal the answer to check; verified ones can be opened in the solver for every step.

  1. Find the equation of the tangent plane to the surface given by \(xz+2x^2y+y^2z^3=11\) at the point \((2,1,1)\).

    ਜਵਾਬ ਦਿਓ

    The gradient of our implicit function is \(\langle z+4xy,2x^2+2yz^3,x+3y^2z^2\rangle\) which is \(\langle 9,10,5\rangle\) at \((2,1,1)\). So our tangent plane will be of the form \(9(x-2)+10(y-1)+5(z-1)=0\).

  2. Suppose that \(\nabla f_P =\langle 2,-4,4\rangle\). Is \(f\) increasing or decreasing at \(P\) in the direction \(\langle2,1,3\rangle\)?

    ਜਵਾਬ ਦਿਓ

    The dot product of the gradient and our direction vector will be positive, so the function is increasing in the given direction.

Symbols used here

\nabla f
gradient (nabla, del)
Vector of partial derivatives; points uphill.
\sqrt{x},\ \sqrt[n]{x}
square root, n-th root
The non-negative number whose square (n-th power) is x.
\infty
infinity
Not a number: "grows without bound" in limits and intervals.
e
Euler's number
2.71828…, the base whose exponential is its own derivative.
\pm
plus or minus
Both signs at once: x = 3 ± 2 means 5 and 1.
\leq,\ \geq
less/greater than or equal
Inequalities that allow equality; < and > exclude it.
\sup,\ \inf
supremum, infimum
Least upper bound, greatest lower bound.
\frac{\partial f}{\partial x}
partial derivative
Derivative with respect to x, holding the other variables fixed.
\int f(x)\,dx,\ \int_a^b
integral
Antiderivative (indefinite) or signed area from a to b (definite).
\iint,\ \oint
double / contour integral
Integral over a region of the plane; integral around a closed curve.
\mathbf{v},\ \vec{v}
vector
A quantity with magnitude and direction; a column of numbers.
\mathbf{u} \cdot \mathbf{v},\ \|\mathbf{v}\|
dot product, norm
Σ u_i v_i; the length of v, √(v·v).

How to: Higher Dimensions

  1. How does the idea of a level curve for a function of two variables generalize to functions of three or more variables?
  2. How do measures of change such as partial derivatives, directional derivatives, and gradients generalize to functions of more than two variables?

Questions people ask

What is a partial derivative?

The ordinary derivative with respect to one variable while every other variable is frozen — the slope of the surface in one coordinate direction.

What does the gradient point at?

Uphill: the direction of steepest increase, with length equal to that steepest slope. It is perpendicular to the level curves.

ਆਪਣਾ ਹੀ ਕੋਸ਼ਿਸ਼ ਕਰੋ

Parts of this page are adapted from Boelkins et al., Active Calculus Multivariable (CC BY-SA 4.0). Condensed and re-explained here; errors are ours.

ਹੋਰ ਵਿੱਚ Multivariable Calculus