3. Partial Derivatives

Functions Of Several Variables

Introduces functions of two or more variables, their graphs, and level curves/surfaces.

Functions of Several Variables

Welcome, students! In this lesson, we’re diving into the world of functions that depend on more than one variable. By the end, you’ll understand how these functions work, how to visualize them, and how to analyze their key features. Ready to scale up from single-variable functions to multi-variable ones? Let’s go! 🎢

What You’ll Learn

  • What functions of several variables are and why they matter
  • How to graph and visualize functions with two or three variables
  • How to interpret level curves and level surfaces
  • Real-world examples of multi-variable functions (from economics to physics!)

Why It Matters

Functions of several variables pop up everywhere: in physics to describe fields, in economics to model production, and even in everyday life for things like temperature distribution. Understanding them is key to unlocking many advanced topics in math, science, and engineering. Let’s explore this exciting terrain together! 🌍

1. What Are Functions of Several Variables?

In single-variable calculus, you’re used to functions like $f(x)$. These take one input and give one output. But what if you have more than one input? That’s where functions of several variables come in.

A function of two variables, for example, looks like this:

$$ f(x, y) $$

Here, $x$ and $y$ are both inputs, and $f(x, y)$ gives a single output.

For three variables, we have:

$$ f(x, y, z) $$

This takes three inputs and returns one output.

Examples of Multi-Variable Functions

  1. Temperature at a Point: Imagine the temperature in a room. It depends on where you are in the room (your $x$, $y$, and $z$ coordinates). So we might say the temperature is a function $T(x, y, z)$.
  2. Profit in Business: A company’s profit might depend on the price of two products they sell. We could model profit as $P(x, y)$, where $x$ is the price of product A and $y$ is the price of product B.
  3. Surface Area of a Box: The surface area $S$ of a rectangular box depends on its length $l$, width $w$, and height $h$. So $S(l, w, h) = 2(lw + lh + wh)$.

Notation and Domains

Just like single-variable functions have domains (the set of all possible input values), multi-variable functions do too. For a function $f(x, y)$, the domain is the set of all pairs $(x, y)$ for which $f(x, y)$ is defined.

For example:

$$ f(x, y) = \sqrt{4 - x^2 - y^2} $$

is only defined for points $(x, y)$ inside the circle $x^2 + y^2 \leq 4$.

Fun Fact: The Human Brain as a Multi-Variable Function

Your brain is processing multiple variables right now: the sound in your environment, the brightness of your screen, your thoughts, and more. It’s a real-world example of a complex system governed by multi-variable functions! 🧠

2. Visualizing Functions of Two Variables

When we graph a function of one variable, we get a curve in the 2D plane. But for two variables, we need to step into 3D.

Graphs in 3D

A function $f(x, y)$ can be graphed as a surface in three-dimensional space. Each point $(x, y)$ in the plane corresponds to a height $z = f(x, y)$.

Example: A Simple Paraboloid

Take the function:

$$ f(x, y) = x^2 + y^2 $$

Its graph is a 3D surface shaped like a bowl. Every point $(x, y)$ has a corresponding height $z = x^2 + y^2$.

Example: A Saddle Surface

Now consider:

$$ f(x, y) = x^2 - y^2 $$

This graph looks like a saddle. It curves upward in one direction (along $x$) and downward in another (along $y$). This kind of shape is called a hyperbolic paraboloid.

Using Technology for Visualization

It’s not always easy to sketch these surfaces by hand. Luckily, tools like Desmos 3D or GeoGebra can help. You can plug in a function and see the surface from different angles. Try it out—it’s like exploring a virtual landscape! 🖥️

Real-World Example: Hills and Valleys

Imagine a mountain range. The elevation at any point depends on where you are. So the elevation can be described by a function $E(x, y)$, where $x$ and $y$ are your horizontal coordinates. Peaks, valleys, and ridges all show up as features of the graph of $E(x, y)$.

3. Level Curves and Level Surfaces

Sometimes, looking at the full 3D graph is too complicated. A simpler way to understand a function of two variables is to look at its level curves.

What Are Level Curves?

A level curve is a slice of the function at a particular output value. Formally, the level curve for a value $c$ is all the points $(x, y)$ where:

$$ f(x, y) = c $$

These are also called contour lines—like the lines on a topographic map that show points of equal elevation.

Example: Level Curves of a Paraboloid

Let’s go back to $f(x, y) = x^2 + y^2$. The level curves are all the circles:

$$ x^2 + y^2 = c $$

So the level curves look like concentric circles, getting bigger as $c$ increases.

Example: Level Curves of a Saddle Surface

For $f(x, y) = x^2 - y^2$, the level curves are:

$$ x^2 - y^2 = c $$

These form hyperbolas. For $c > 0$, they’re open in one direction, and for $c < 0$, they’re open in the other direction. At $c = 0$, we get the lines $y = \pm x$.

Why Level Curves Matter

Level curves give us a 2D snapshot of the function. They’re especially useful when dealing with complex surfaces. Engineers, meteorologists, and geographers use level curves all the time to represent things like pressure, temperature, or elevation.

Level Surfaces for Three Variables

For three variables, we get level surfaces. These are all the points $(x, y, z)$ where:

$$ f(x, y, z) = c $$

Example: Spheres as Level Surfaces

Consider $f(x, y, z) = x^2 + y^2 + z^2$. The level surfaces are:

$$ x^2 + y^2 + z^2 = c $$

These are spheres of radius $\sqrt{c}$.

Just like level curves help us understand 2D functions, level surfaces help us get a handle on 3D functions.

4. Real-World Applications of Multi-Variable Functions

Let’s see how these functions show up in the real world. 🌍

Economics: Production Functions

In economics, a production function describes how output depends on several inputs. For example, a factory’s output $Q$ might depend on the amount of labor $L$ and capital $K$:

$$ Q(L, K) = A L^\alpha K^\beta $$

where $A$, $\alpha$, and $\beta$ are constants. This is a function of two variables: $L$ and $K$.

Physics: Gravitational Potential

In physics, the gravitational potential $V(x, y, z)$ at a point in space depends on the distances to all the masses around. For a single mass $M$ at the origin, the potential is:

$$ V(x, y, z) = -\frac{G M}{\sqrt{x^2 + y^2 + z^2}} $$

This is a function of three variables.

Chemistry: Reaction Rates

In chemistry, the rate of a reaction often depends on the concentrations of multiple reactants. For example, the rate $R$ of a reaction involving two substances A and B might be:

$$ R(A, B) = k A^m B^n $$

where $k$, $m$, and $n$ are constants. This is a function of two variables: $A$ and $B$.

Engineering: Stress and Strain

In mechanical engineering, the stress on a material can depend on multiple factors: the position in the material, temperature, and external forces. A stress function might look like:

$$ \sigma(x, y, z, T) $$

where $x$, $y$, $z$ are spatial coordinates and $T$ is temperature.

Fun Fact: The Weather Is a Multi-Variable Function

The weather forecast you see is based on multi-variable functions. Temperature, pressure, humidity—all vary with location and time. Meteorologists use multi-variable functions to model and predict the weather. 🌦️

5. Partial Derivatives: A Sneak Peek

We won’t go too deep into derivatives here, but it’s worth mentioning that you can take derivatives of multi-variable functions too. These are called partial derivatives.

For a function $f(x, y)$, the partial derivative with respect to $x$ is:

$$ \frac{\partial f}{\partial x} $$

It tells us how $f$ changes when we vary $x$ while keeping $y$ constant.

Similarly, the partial derivative with respect to $y$ is:

$$ \frac{\partial f}{\partial y} $$

We’ll explore these in more detail later, but for now, just know that multi-variable functions have their own version of derivatives. They let us analyze how the function changes in different directions.

Conclusion

Congratulations, students! You’ve just taken your first big leap into the world of multi-variable functions. You’ve learned what they are, how to visualize them, and how to interpret level curves and surfaces. You’ve also seen how they show up in real-world problems, from economics to physics. As we go on, we’ll explore tools like partial derivatives and gradients that let us analyze these functions in even more depth. For now, take a moment to appreciate how far you’ve come! 🚀

Study Notes

  • A function of two variables is written as $f(x, y)$ and returns a single output.
  • A function of three variables is written as $f(x, y, z)$.
  • The domain of a function of two variables is the set of all pairs $(x, y)$ where the function is defined.
  • Functions of two variables can be visualized as surfaces in 3D space.
  • Example: $f(x, y) = x^2 + y^2$ is a paraboloid (bowl-shaped surface).
  • Level curves (contour lines) are the set of points where $f(x, y) = c$.
  • Example: For $f(x, y) = x^2 + y^2$, the level curves are circles $x^2 + y^2 = c$.
  • Functions of three variables have level surfaces (e.g., spheres for $f(x, y, z) = x^2 + y^2 + z^2$).
  • Real-world examples:
  • Economics: Production functions $Q(L, K)$
  • Physics: Gravitational potential $V(x, y, z)$
  • Chemistry: Reaction rates $R(A, B)$
  • Engineering: Stress functions $\sigma(x, y, z, T)$
  • Partial derivatives measure how a function changes with respect to one variable while holding others constant.
  • Notation: $\frac{\partial f}{\partial x}$ and $\frac{\partial f}{\partial y}$ for functions of two variables.

Practice Quiz

5 questions to test your understanding

Functions Of Several Variables — Calculus 3 | A-Warded