Functions of Two Variables

What Is a Function of Two Variables?

A function of two variables assigns a unique value z (codomain) to each pair of values (x, y) in its domain. $$ z=f(x,y) $$

In real functions, the domain (or definition set) consists of pairs of real numbers.

$$ R^2 = [(x,y) : x,y \in R] $$

The codomain, on the other hand, is a set of real numbers.

$$ f: \: R^2 \rightarrow R $$

Note: Here, x and y are the independent variables, while z is the dependent variable. However, the choice of variable names is arbitrary.

How to Represent a Function of Two Variables

Representation in Three-Dimensional Space

To graphically represent a function of two variables, we use a Cartesian coordinate system with three axes: x, y, and z.

This creates a diagram in three-dimensional space.

three-dimensional Cartesian diagram

The (x, y) plane is the Cartesian product of the real numbers, denoted as R2 or RxR.

Therefore, the domain of a function with two variables is a subset of the (x, y) plane.

a point in three-dimensional space

Each pair (x, y) in the domain corresponds to a value on the z-axis, where z = f(x, y).

Thus, the codomain of a function with two variables is represented as a point in three-dimensional space.

Note: Each value of a function with two variables corresponds to a point in three-dimensional space with coordinates (x, y, z).

Representation on a Plane

You can also represent a function z=f(x,y) on a two-dimensional plane by relating the variables in pairs, such as (x, z) and (y, z).

In this case, two separate graphs are required.

an example of plane representation

This approach is useful for highlighting the relationships between each independent variable and the dependent variable.

Note: The independent variable not shown is projected onto the plane of the remaining variables through orthogonal projection.

A Practical Example

Here's an example of a function with two variables:

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

The graphical representation of this function in three-dimensional Cartesian coordinates is shown below:

a function with two variables

This surface is known as a hyperbolic paraboloid.

To represent the function on a plane, first set the x variable to zero:

$$ z= f(0,y) = -y^2 $$

Then set the y variable to zero:

$$ z= f(x,0) = x^2 $$

By doing this, you obtain the projections of the function on the (y, z) and (x, y) planes.

representation on the plane

And so on.

 
 

Please feel free to point out any errors or typos, or share suggestions to improve these notes. English isn't my first language, so if you notice any mistakes, let me know, and I'll be sure to fix them.

FacebookTwitterLinkedinLinkedin
knowledge base

Functions with Two or More Variables