Functions of Several Variables
Functions of Several Variables
Several Variables
18.1
Introduction
A function of a single variable y = f (x) is interpreted graphically as a planar curve. In this lock
we generalise the concept to functions of more than one variable. We shall see that a function
of two variables z = f (x, y) can be interpreted as a surface. Functions of two or more variables
arise often in engineering and in science and it is important to be able to deal with such functions
with condence and skill. We see in this Block how to sketch simple surfaces. In later Blocks
we shall examine how to determine the rate of change of f (x, y) with respect to x and y and
also how to obtain the optimum values of functions of several variables.
Prerequisites
Before starting this Block you should . . .
Learning Outcomes
Learning Style
After completing this Block you should be able To achieve what is expected of you . . .
to . . .
understand the mathematical description
of a surface
Solution
f (0, 1, 0) = 02 + 1 0 + 2 = 2; f (1, 1, 2) = 1 2 + 2 = 1
three dimensions. A point P is located by specifying its cartesian coordinates (a, b, c) as dened
in Figure 1.
z
P
c
y
a
Figure 1
Within this 3-dimensional space we can consider simple surfaces here. Perhaps the simplest is
the plane. From Block 9.6 on vectors we recall the general equation of a plane:
Ax + By + Cz = D
whereA, B, C,
D are constants. This plane intersects the xaxis (where
D y = z = 0) at the
D
point A , 0, 0 , intersects the yaxis
(where
x = z = 0) at the point 0, B , 0 and the zaxis
D
(where x = y = 0) at the point 0, 0, C . See Figure 2.
z
D
C
D
B
D
A
Figure 2
There are some special cases of note.
B = C = 0 A = 0.
Here the plane is x = D/A. This plane (for any given values of D and A) is parallel to
the zy plane a distance D/A units from it. See Figure 3a.
A = 0, C = 0 B = 0
Here the plane is y = D/B and is parallel to the zx plane at a distance D/B units from
it. See Figure 3b.
A = 0, B = 0 C = 0
3
Here the plane is z = D/C which is parallel to the xy plane a distance D/C units from
it. See Figure 3c.
z
D
C
D
B
y
D
A
x
(a)
(b)
(c)
Figure 3
Planes are particularly simple examples of surfaces.
Generally, a surface is described by a relation connecting the three variables x, y, z. In the case
of the plane this relation is Ax + By + Cz = D. In some cases, as we have seen, one or two
variables may be absent from the relation. In three dimensions such a relation still denes a
surface.
Although any relation connecting x, y, z denes a surface, by convention, one of the variables
(usually z) is chosen as the dependent variable and the other two therefore are independent
variables. For the case of a plane Ax + By + Cz = D (and C = 0) we would write, for example,
z=
1
(D Ax By)
C
Surface sketching
A plane is relatively easy to sketch since 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 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 the surface z = x2 + y 2
Firstly we conrm that z = x2 + y 2 is a surface since this is a relation connecting the three
coordinate variables x, y, z. In the standard notation our function of two variables is f (x, y)
x2 + y 2 . To sketch the surface we x one of the variables at a constant value.
Fix x at value x0
From our discussion above we remember that x = x0 is the equation of a plane parallel to the
zy plane. In this case our relation becomes:
z = x20 + y 2
Engineering Mathematics: Open Learning Unit Level 1
18.1: Chap Title
Since z is now a function of a single variable y this relation: z = x20 + y 2 denes a curve: but
the curve lies in the plane x = x0 .
In Figure 4(a) we have drawn this curve (a parabola). Now by changing the value chosen for
x0 we will obtain a sequence of curves each lying in a dierent plane but 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.
z
x0
(a)
(b)
Figure 4
What we have done is to slice the surface by planes parallel to the zy plane. Each slice intersects
the surface in a curve.
In this case we havent yet plotted enough curves to accurately visualise the surface so we need
to draw other surface curves.
Fix y at value y0
Here y = y0 (the equation of a plane parallel to the zx plane). In this case the surface becomes
z = x2 + y02
Again z is a function of single variable (since y0 is xed) and describes a curve: again the curve
is a parabola, but this time residing on the plane y = y0 . For each y0 we choose a dierent
parabola is obtained: each lying on the surface z = x2 + y 2 . Some of these curves have been
sketched in Figure 5(a) (and then combined with the curves of Figure 4(b) in Figure 5(b)).
We now hopefully have a good idea of what the surface dened by z = x2 + y 2 looks like but to
complete the picture we draw a nal sequence of curves.
z
y
x
(a)
(b)
Figure 5
Fix z at value z0
The relation z = z0 is the equation of a plane parallel to the xy plane.
In this case the surface becomes
z0 = x2 + y 2
y
x
y
x
Figure 6
(Technically the surface is called a paraboloid and is obtained by rotating a parabola about the
zaxis).
With the wide availability of sophisticated graphics packages the need to be able to sketch a
surface is not quite 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.
DERIVE can handle functions of several variables. For example, we might wish to work with
the function x2 sin y uyx3 . We would imput this into DERIVE in the usual way by keying in
Author:Expression x 2 sin y uyx 3. DERIVE responds with:
x2 SIN(y) u y x3
If we wish we can give this function a name by keying:
Author:Expression f (x, y, u) := x 2 sin y uyx 3. DERIVE responds with:
F (x, y, u) := x2 SIN(y) u y x3
This function can now be evaluated at any point of interest. For example, to nd the value
f (1, 3/2, 3) we would key Author:Expression f (1, 3/2, 3 =) and (choosing simplify)
DERIVE responds
3
9
, 3) =
1
2
2
The numerical value can be obtained by keying Simplify:Approximate.
F (1,
10