Home page for accesible maths 3 Functions of two or more variables

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

3.1 Some examples

Typical functions of two, three or four variables are:

f(x,y)=x2+y2,f(x,y,z)=x(y2-z2),f(x,y,z,t)=(x2+y2+z2)e-t.

Such functions arise constantly in applications to real-world problems. Usually, (x,y,z) represents a point in space and t (if present) represents time. But mathematically, the variables are just neutral numbers: a function of three variables is just a function on 3, the set of all ordered triples (x,y,z).

Geometrical representation. The equation z=f(x,y) defines a surface in three dimensions. We can try to draw it (which isn’t always easy!), or we can draw the contours f(x,y)=c in the (x,y)-plane, as is done on maps (as shown below). The contours are therefore “implicitly-defined functions” as described in the previous section.


If g is a function of three variables, then for each c, the equation g(x,y,z)=c again describes a surface: these are called the level surfaces of g. The previous example z=f(x,y) is the special case where g(x,y,z)=f(x,y)-z and c=0. A simple case: ax+by+cz=h is a plane.

Of course, following the formulation of a parametrized curve given in the previous section, we ought to be similarly precise about what a surface is. Indeed, we can define a parametrized surface in 3 as a continuous map φ:I3, where I2 is an appropriate set. The problem is defining what an ‘appropriate set’ is. We won’t go into the definition of such a set; in this course, any “reasonable” choice of I can be considered acceptable.

Parametrized curves and surfaces are particular examples of vector-valued functions. Similarly, we could define vector-valued functions in 3 or 4.

Example 3.1 Suppose an object of mass M is at the origin. The gravitational force exerted on a unit mass at position 𝐫=(xyz) is:

GM|𝐫|2-𝐫|𝐫|

Here the formula F=GM/r2 is well-known from Newtonian mechanics; the expression -𝐫/|𝐫| is a unit vector towards the origin. The force is a vector-valued function, depending on x,y,z but undefined at (xyz)=(0  0  0).

Example 3.2 Suppose the object of mass M has position γ(t)=(X(t)Y(t)Z(t)) at time t. Then the gravitational force exerted on a unit mass at position 𝐫=(xyz) and time t is:

GM|𝐫-γ(t)|2-(𝐫-γ(t))|𝐫-γ(t)|

This is a vector-valued function which depends on x,y,z and t (and is undefined at the point (X(t),Y(t),Z(t)) at time t).

Generally, we shall assume that our functions vary continuously except perhaps at isolated points. The following example shows the sort of thing that can happen near a discontinuity.

Example. Let  f(x,y)=x2-y2x2+y2  except at (0,0). On each straight line y=λx,  f(x,y) has the constant value (1-λ2)/(1+λ2) (in particular, 1 on the x-axis and -1 on the y-axis). We could define a surface z=f(x,y) in 3, but it’s quite hard to visualize the surface near the z-axis !