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! Today, we’re diving into an exciting new world of calculus: functions of several variables. 🌟 By the end of this lesson, you'll understand what these functions are, how to visualize them, and how they apply in real life. We’ll cover graphs, level curves, and level surfaces—key tools for understanding multi-dimensional functions. Get ready to level up your math game!

What Are Functions of Several Variables?

Let’s start with the basics. A function of a single variable, like $f(x) = x^2$, takes one input and gives one output. But what if we want to describe something more complex—such as the temperature at a point on Earth’s surface (which depends on latitude and longitude) or the profit of a business (which might depend on both the price and the quantity of a product)? That’s where functions of several variables come in.

A function of two variables, for example, takes two inputs and produces one output. We usually write it as:

$$f(x, y)$$

where $x$ and $y$ are the inputs, and $f(x, y)$ is the output.

We can also have functions of three variables, $f(x, y, z)$, and even more. But we’ll focus mainly on two or three variables for now.

Real-World Example: Temperature

Imagine you’re a meteorologist measuring temperature. The temperature at a location on Earth depends on two variables: latitude and longitude. We could write the temperature as:

$$T(\text{lat}, \text{long})$$

This is a perfect example of a function of two variables. Every point on the map (defined by latitude and longitude) has a temperature associated with it.

Mathematically Speaking

Let’s define a simple function of two variables:

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

For every pair of $(x, y)$, this function gives an output. For example:

  • If $x = 1$ and $y = 2$, then $f(1, 2) = 1^2 + 2^2 = 1 + 4 = 5$.
  • If $x = 0$ and $y = 0$, then $f(0, 0) = 0^2 + 0^2 = 0$.

This function takes two inputs and gives one output. Simple, right? Now let’s learn how to visualize this.

Graphing Functions of Two Variables

When we graph a function of one variable, we plot points on a two-dimensional plane: $x$ on the horizontal axis and $f(x)$ on the vertical axis. But with two variables, we move into three dimensions.

The 3D Graph

For a function $f(x, y)$, we plot $x$ on one axis, $y$ on another, and $f(x, y)$ on the third. This gives us a surface in three-dimensional space.

Let’s go back to our example:

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

This is called a paraboloid. It looks like a bowl opening upward. At the point $(0, 0)$, the value is zero. As $x$ and $y$ move away from zero, the value of $f(x, y)$ gets larger.

Visualizing the Surface

Imagine standing inside a bowl. The bottom of the bowl is at $(0, 0, 0)$. As you walk away from the center, the height of the bowl’s surface rises. That’s exactly what’s happening mathematically.

Another fun example is the function:

$$f(x, y) = \sin(x) \cdot \cos(y)$$

This creates a wavy, rippling surface. If you’ve ever seen water waves spreading out in two dimensions, you’re seeing something similar to the shape of this surface.

Real-World Example: Hills and Valleys

Think of a topographic map of a hiking trail. The elevation at any point depends on two variables: your east-west position ($x$) and your north-south position ($y$). A function $f(x, y)$ could represent the height of the land. The graph of this function would show peaks (mountains), valleys, and flat plains.

Level Curves (Contour Maps)

Now let’s introduce a super useful concept: level curves. These are also known as contour lines.

A level curve is a curve where the function has the same value. In other words, it’s a slice of the surface at a particular height.

Definition

For a function $f(x, y)$, the level curve at height $c$ is the set of points $(x, y)$ where:

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

Example: The Circle

Let’s go back to our paraboloid:

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

Suppose we want to find the level curve where $f(x, y) = 4$. That means we want all the points where:

$$x^2 + y^2 = 4$$

This is the equation of a circle with radius 2. So, the level curve at $c = 4$ is a circle.

Similarly, if $f(x, y) = 9$, the level curve is a circle of radius 3. Each level curve is a circle, and as the value of $c$ increases, the circles get bigger.

Real-World Example: Weather Maps

Weather maps often show lines of equal temperature, called isotherms. Each isotherm is a level curve. For example, the 30°C isotherm is the set of all points on the map where the temperature is exactly 30°C. These curves help meteorologists visualize temperature distributions.

Reading Contour Maps

Contour maps use level curves to represent 3D surfaces on a 2D plane. The closer the lines are, the steeper the surface. If the lines are far apart, the surface is flatter.

Imagine a mountain. On a contour map, the peak of the mountain will have many closely spaced contour lines because the elevation changes rapidly as you climb. On a flat plain, the lines will be spaced far apart.

Level Surfaces

We’ve talked about functions of two variables. But what about functions of three variables?

A function of three variables, $f(x, y, z)$, takes three inputs and gives one output. We can’t easily graph these in four dimensions, but we can use something similar to level curves: level surfaces.

Definition

For a function $f(x, y, z)$, a level surface is the set of points $(x, y, z)$ where:

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

Example: Spheres

Consider the function:

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

Let’s find the level surface where $f(x, y, z) = 9$. That means:

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

This is the equation of a sphere with radius 3. So, the level surface at $c = 9$ is a sphere. If we changed $c$ to $16$, the radius would be 4, and we’d get a larger sphere.

Real-World Example: Pressure in a Room

Imagine measuring air pressure in a room. The pressure at any point depends on three variables: $x$, $y$, and $z$ (your position in the room). A level surface could represent all the points where the pressure is the same. This helps us visualize how pressure changes in space.

Partial Derivatives: A Sneak Peek

Before we wrap up, let’s take a quick peek at what’s coming next: partial derivatives.

When we have a function of several variables, we can find the rate of change with respect to each variable. This is called taking the partial derivative.

For a function $f(x, y)$, the partial derivative with respect to $x$ tells us how $f$ changes when we vary $x$ while keeping $y$ constant. Similarly, the partial derivative with respect to $y$ tells us how $f$ changes when we vary $y$ while keeping $x$ constant.

We write the partial derivative with respect to $x$ as:

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

and with respect to $y$ as:

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

We’ll explore this in detail in the next lesson. For now, just know that partial derivatives help us understand the “slope” of a surface in different directions.

Conclusion

Congratulations, students! 🎉 You’ve taken your first steps into the world of functions of several variables. You’ve learned how to define them, graph them, and interpret level curves and surfaces. These concepts are powerful tools for understanding real-world phenomena, from weather patterns to business models. Keep practicing, and you’ll soon be a master of multi-variable functions!

Study Notes

  • A function of two variables is written as $f(x, y)$ and takes two inputs, producing one output.
  • A function of three variables is written as $f(x, y, z)$.
  • The graph of a function of two variables is a surface in three-dimensional space.
  • Example: $f(x, y) = x^2 + y^2$ is a paraboloid.
  • Level curves (contour lines) are curves where the function has a constant value: $f(x, y) = c$.
  • Example: For $f(x, y) = x^2 + y^2$, the level curves are circles: $x^2 + y^2 = c$.
  • Real-world example: Isotherms on a weather map are level curves of temperature.
  • A function of three variables can have level surfaces: $f(x, y, z) = c$.
  • Example: $f(x, y, z) = x^2 + y^2 + z^2$ has level surfaces that are spheres.
  • Partial derivatives measure the rate of change of a function with respect to one variable while holding the others constant:
  • $\frac{\partial f}{\partial x}$ is the partial derivative with respect to $x$.
  • $\frac{\partial f}{\partial y}$ is the partial derivative with respect to $y$.

Keep these notes handy as you continue exploring multi-variable calculus. You’re off to a great start! 🚀

Practice Quiz

5 questions to test your understanding