2 Functions of two variables
The aim of this Section is to enable the reader to gain confidence in dealing with functions of several variables. In order to do this we often concentrate on functions of just two variables. The latter have an easy geometrical interpretation and we can therefore use our geometrical intuition to help understand the meaning of much of the mathematics associated with such functions. We begin by reminding the reader of the Cartesian coordinate system used to locate points in three dimensions. A point is located by specifying its Cartesian coordinates defined in Figure 1.
Figure 1
Within this 3-dimensional space we can consider simple surfaces. Perhaps the simplest is the plane . From HELM booklet 9.6 on vectors we recall the general equation of a plane:
where are constants. This plane intersects the axis (where ) at the point , intersects the axis (where ) at the point and the axis (where ) at the point . See Figure 2 where the dotted lines are hidden from view behind the plane which passes through three points marked on the axes.
Figure 2
There are some special cases of note.
-
.
Here the plane is . This plane (for any given values of and ) is parallel to the plane a distance units from it. See Figure 3a.
-
Here the plane is and is parallel to the plane at a distance units from it. See Figure 3b.
-
Here the plane is which is parallel to the plane a distance units from it. See Figure 3c.
Figure 3
Planes are particularly simple examples of surfaces . Generally, a surface is described by a relation connecting the three variables . In the case of the plane this relation is linear . In some cases, as we have seen, one or two variables may be absent from the relation. In three dimensions such a relation still defines a surface, for example defines the plane of the - and -axes.
Although any relation connecting defines a surface, by convention, one of the variables (usually ) is chosen as the dependent variable and the other two therefore are independent variables. For the case of a plane (and ) we would write, for example,
Generally a surface is defined by a relation of the form
where the expression on the right is any relation involving two variables .
2.1 Sketching surfaces
A plane is relatively easy to sketch since it is flat all we need to know about it is where it intersects the three coordinate axes. For more general surfaces what we do is to sketch curves (like contours) which lie on the surface. If we draw enough of these curves our ‘eye’ will naturally interpret the shape of the surface.
Let us see, for example, how we sketch
.
Firstly we confirm that
is a surface
since this is a relation connecting the three coordinate variables
. In the standard notation our function of two variables is
To sketch the surface we fix one of the variables at a constant value.
Fix at value .
From our discussion above we remember that is the equation of a plane parallel to the plane. In this case our relation becomes:
Since is now a function of a single variable , with held constant, this relation: defines a curve which lies in the plane .
In Figure 4(a) we have drawn this curve (a parabola ). Now by changing the value chosen for we will obtain a sequence of curves, each a parabola, lying in a different plane, and each being a part of the surface we are trying to sketch. In Figure 4(b) we have drawn some of the curves of this sequence.
Figure 4
(a) (b)
What we have done is to slice the surface by planes parallel to the plane. Each slice intersects the surface in a curve. In this case we have not yet plotted enough curves to accurately visualise the surface so we need to draw other surface curves.
Fix at value
Here (the equation of a plane parallel to the plane.) In this case the surface becomes
Again is a function of single variable (since is fixed) and describes a curve: again the curve is a parabola , but this time residing on the plane . For each different we choose a different parabola is obtained: each lying on the surface . Some of these curves have been sketched in Figure 5(a). These have then combined with the curves of Figure 4(b) to produce Figure 5(b).
Figure 5
(a) (b)
We now have an idea of what the surface defined by looks like but to complete the picture we draw a final sequence of curves.
Fix at value .
We have (the equation of a plane parallel to the plane.) In this case the surface becomes
But this is the equation of a circle centred on , of radius . (Clearly we must choose because cannot be negative.) As we vary we obtain different circles, each lying on a different plane . In Figure 6 we have combined the circles with the curves of Figure 5(b) to obtain a good visualisation of the surface .
Figure 6
(Technically the surface is called a paraboloid , obtained by rotating a parabola about the axis.)
With the wide availability of sophisticated graphics packages the need to be able to sketch a surface is not as important as once it was. However, we urge the reader to attempt simple surface sketching in the initial stages of this study as it will enhance understanding of functions of two variables.