Skip to content

Functions of several variables

5 min read

Short answer

A function of several variables takes more than one input and returns one output, like f(x,y)=x2+y2f(x,y)=x^2+y^2. Its domain is the set of input points where the formula makes sense (a region in the plane for two variables), and its graph z=f(x,y)z=f(x,y) is a surface in 3D. To see the surface in 2D, slice it with level curves or fix one variable at a time.

Diagramdomain: x² + y² ≤ 9(1, 2)
For f(x, y) = √(9 − x² − y²), the formula only works inside the disk of radius 3. The point (1, 2) is in the domain, with f = 2.

Finding the domain

Look for what breaks the formula: division by zero, even roots of negative numbers, logarithms of non-positive numbers. Each restriction becomes an inequality in xx and yy. The domain is the region satisfying them all, which you can sketch.

Seeing the graph

The graph is the set of points (x,y,f(x,y))(x,y,f(x,y)), a surface above the domain. You rarely draw it by hand. Instead, hold yy fixed to get a curve in xx (a cross-section), or set f=cf=c to get a level curve. Together these give a mental model of the surface.

Worked example

Find the domain and range of f(x,y)=9−x2−y2f(x,y)=\sqrt{9-x^2-y^2} and compute f(1,2)f(1,2).

We need 9−x2−y2≥09-x^2-y^2\ge0, so the domain is the disk x2+y2≤9x^2+y^2\le9.

On that disk, x2+y2x^2+y^2 goes from 0 (at the center) to 9 (on the edge), so ff goes from 33 down to 00: the range is [0,3][0,3]. The graph is the upper hemisphere of radius 3.

f(1,2)=9−1−4=4=2f(1,2)=\sqrt{9-1-4}=\sqrt4=2.

Try it yourself

Describe the domain of f(x,y)=ln⁡(x−y)f(x,y)=\ln(x-y).

Show the answer

We need x−y>0x-y>0, i.e. y<xy<x: the open half-plane below the line y=xy=x (the line itself is excluded).

Keep going with practice

Vidi's Multivariable & Vector Calculus course begins with functions of several variables, using an interactive 3D coordinate explorer.