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.
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².
- Pick a spot:
(1, 2), sox = 1andy = 2. - Plug in:
f(1, 2) = 1² + 2² = 1 + 4. - 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
- For
f(x, y) = x² + y², what is the height above the spot(3, 1)? - For
g(x, y) = x · y, what isg(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.
Sources
- OpenStax, "Calculus Volume 3, 4.1 Functions of Several Variables": functions of two variables; graphs as surfaces z = f(x, y)
- MIT OpenCourseWare, "18.02 Multivariable Calculus (Fall 2007)": lecture notes
- Wolfram MathWorld, "Paraboloid": the bowl-shaped surface z = x² + y²
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
- Multivariable calculus EP3Partial derivatives
- Multivariable calculus EP4The gradient
- Multivariable calculus EP5Finding peaks and valleys in 3D
- Multivariable calculus EP6Lagrange multipliers