Watch on Instagram

Math Bytes · Multivariable calculus · Episode 1 · Multivariable functions

Functions of two variables

A function of two variables, f(x, y), takes two inputs and gives one output. Treat the output as a height above each spot (x, y) on the floor, and all the heights together make a surface; for x² + y² it is a bowl.

Posted · About a 1 minute watch, 2 minute read · Take the quiz

From one input to two

So far, a function f(x) took one number and gave back one number. Its graph was a curve: one height for each x.

A function of two variables, f(x, y), takes two inputs, x and y, and still gives back one output.

The output is a height

Picture the floor as the xy plane. Every spot on the floor is a pair (x, y). The output z = f(x, y) is a height standing above that spot.

Worked example: x² + y²

Take f(x, y) = x² + y².

  1. Pick a spot: (1, 2), so x = 1 and y = 2.
  2. Plug in: f(1, 2) = 1² + 2² = 1 + 4.
  3. Height: 5. A post of height 5 stands above the spot (1, 2).

Do that at every spot and the tops of all the posts form a surface. For x² + y² it is a bowl: height 0 at the middle (0, 0), rising faster the further out you go. Instead of a curve, a whole landscape.

Try it yourself

  1. For f(x, y) = x² + y², what is the height above the spot (3, 1)?
  2. For g(x, y) = x · y, what is g(2, 5)?

(Answers: 1. 3² + 1² = 9 + 1 = 10. 2. 2 · 5 = 10.)

Good to know

  • Multivariable calculus (often called Calculus 3) is a college course, the next step after AP Calculus.
  • The surface z = x² + y² is called a paraboloid; "bowl" is the plain-English word for it.
  • Functions can have more than two inputs, too, like f(x, y, z). Those can't be drawn as a surface, but the idea of "inputs in, one output out" is the same.
  • The 3D pictures in the video are flat sketches with simple perspective.

Answer to the comment question

f(x, y) = 2x + y². What's f(3, 4)? 22. Plug in x = 3 and y = 4: 2 · 3 + 4² = 6 + 16 = 22.

Test your knowledge

Quick quiz: Functions of two variables

4 multiple-choice questions. Pick one answer for each, then check how you did.

1How many outputs does a function of two variables, f(x, y), give for each input pair?
2In the 3D picture, what does the output z = f(x, y) show?
3For f(x, y) = x² + y², what is f(1, 2)?
4What shape is the graph of z = x² + y²?

Sources

Video transcript

What does a graph look like when a function has two inputs?

So far, f of x took one number and gave back one number. Its graph was a curve.

A function of two variables takes two inputs, x and y, and gives one output.

Picture the floor as the x y plane. The output is a height, standing above each spot on the floor.

Take f of x, y equals x squared plus y squared. At one, two, the height is one plus four: five.

Do that everywhere and you get a surface. Here, it's a bowl. Instead of a curve, a whole landscape.

Your turn. f of x, y equals two x plus y squared. What's f of three, four? Comment your answer below!

That's your byte.

More from Multivariable calculus

All Multivariable calculus lessons