Chapter II · Functions of real variables
Functions of two variables
When z depends on two variables x and y, its graph is a surface in space; planes and spheres as loci of equations in three coordinates; and how horizontal slices turn a surface into a contour map.
Why this matters
Many quantities depend on more than one other: the height of land on two map coordinates, the pressure of a gas on its volume and temperature. §31 extends everything said about functions of one variable to functions of two variables, , and their graphs, which are surfaces in space. Hardy is brief, since “the remarks of §20 may all be applied, mutatis mutandis”, but the new picture needs practice: surfaces are hard to draw on flat paper, and the standard way round that, the contour map, is worth learning early. Partial derivatives (Chapter VII) are built on this picture.
The idea
is a function of and if a rule gives one or more values of for (some) pairs . To draw it, take three mutually perpendicular axes , , . The point is at signed distances , , from the coordinate planes , , . As ranges over the plane, the point moves over a surface, the graph of : above each point of the floor, the surface is at height .
A surface is hard to show on paper, but its horizontal slices are easy. Cut the surface by the plane : the section is the curve at height . Drop it onto the floor and label it . Doing this for many values of gives a contour map, exactly the principle of a contoured survey map.
Try this. Choose the paraboloid and move the level up and down; turn and tilt the surface. Then compare the cone , the saddle , and the two hills.
- the surface z = f(x, y)
- the plane , its section, and the matching contour
- other contours, equally spaced in height
What to notice
The section by and the highlighted contour are the same curve, one seen in space and one from above. Equally spaced heights give contours that crowd together where the surface is steep: the paraboloid’s circles get closer together further out, the cone’s are evenly spaced. The saddle’s contours are hyperbolas, and the level is the pair of axes. On the hills, contours close round each summit, and a figure-of-eight contour marks the pass between them.
Precise statements
is a function of the two variables and , written , if to some pairs of values of and there correspond one or more values of . Its graph, or the locus of the point , is the set of all points in space with a value of at . If the relation is given by a formula, that is the equation of the locus.
For a number , the curve in the plane is the contour (or level curve) of height : the projection onto of the section of the surface by the plane . A selection of contours, each labelled by its height, is a contour map of the surface.
(i) The general equation of the first degree, (with , , not all zero), represents a plane, and every plane has an equation of this form.
(ii) The equation represents the sphere with centre and radius when (a single point when it is , nothing when it is negative). Every sphere has an equation of this form.
Part (i) is proved in books on solid geometry; the proof is the three-dimensional version of the one for lines in §21. Part (ii) follows the circle proof step by step once we have the distance formula in space, which is where the new idea is.
Proofs
Apply Pythagoras twice: once in a horizontal plane, once in a vertical one. Then complete three squares, exactly as for the circle.
Distance from the origin
Let and let be the foot of the perpendicular from to the plane . In that plane, (Pythagoras). The triangle has a right angle at , because is vertical and lies in the horizontal plane. So .
Distance between two points
Moving the origin to (axes parallel to the old ones) changes coordinates to , , , so the distance from to is .
Complete the squares
is equivalent to .
Read off the locus
The left side is the squared distance from to . If the right side is , the locus is the set of points at distance from that centre: a sphere. If it is , only the centre; if negative, nothing. Conversely the sphere with centre and radius expands to this form with , , , .
The same distance formula explains the shapes in the explorer. On the paraboloid, the contour of height is , a circle of radius ; on the cone it has radius . Equally spaced therefore give radii , crowding outwards, for the paraboloid, and equally spaced radii for the cone.
Worked examples and exercises
Find the centre and radius of the sphere , and decide what represents.
Hint
Solution
, , , : centre and , so radius . Check: .
is : the sphere of radius about , which touches the plane at the origin.
Describe the sections of by the planes , by the plane , and by the plane .
Hint
Solution
: , a circle of radius centred on the axis when , the single point when , empty when . : , a parabola in the plane . : , the same parabola raised by . So the surface is generated by a parabola, and is also a stack of circles: it is the surface of revolution of about (compare §33).
Draw a series of contour lines for the surface , and describe its shape.
Hint
Solution
The contour is . For it is a rectangular hyperbola in the first and third quadrants, for one in the second and fourth, and for it is the pair of axes , . Larger gives hyperbolas further from the axes. So the surface rises in the first and third quadrants and falls in the second and fourth: it is a saddle, like a mountain pass, with the origin as the pass point. Along the lines it is the upward parabola ; along the downward parabola .
What is the form of the graphs of and ?
Hint
Solution
On the square , we have : the graph is a horizontal unit square at height . The whole surface is a staircase of flat squares, rising by one step in each of the directions of and , with vertical jumps along the lines and (which, as for , belong to the step on the far side). Its “contour” at an integer height is a union of squares along the diagonal band ; try it in the explorer.
The second is , the sum of the fractional parts. On each unit square it is the plane , rising from at the corner to nearly at the opposite corner, then dropping back to at the next square: a field of identical tilted tiles.
What is the form of the graphs of , and ?
Hint
Solution
is periodic with period in each variable: an egg-box of peaks of height at and pits of depth at , separated by saddles; the contour consists of the lines and .
is constant along each hyperbola : it is along the axes and the hyperbolas , with ridges () and troughs () along the hyperbolas in between. The ripples crowd together far from the axes.
is constant on circles about the origin, so it is a surface of revolution: circular ripples with crests at radii , closer and closer together as the radius grows, like waves spreading from a stone dropped at the origin, but compressed outwards.
Check yourself
What is the radius of the sphere ?
It is : centre , radius . In the general form , , and .
On a contour map with equally spaced heights, where is the surface steepest?
Between neighbouring contours the height changes by the same amount; covering it in a short horizontal distance means a steep slope. The paraboloid’s contours crowd outwards because it gets steeper away from the axis. Height and steepness are different things: a high plateau has widely spaced contours.
Every equation represents a surface.
False. represents a single point and nothing at all. Hardy says a single equation gives a locus that is called a surface but “may or may not satisfy our common-sense notion of what a surface should be” (§33).
For the saddle , what is the contour of height ?
when or , so the level curve is the pair of crossing lines. It separates the rising quadrants from the falling ones, which is why the pass point of a saddle lies on a crossing contour.
Hardy’s language
Summary
- is a function of two variables; its graph is the surface of points .
- Distance in space is (Pythagoras twice); hence is a sphere when . First-degree equations are planes.
- The section of the surface by , projected to the floor, is the contour . A contour map shows a surface on flat paper; close contours mean steep slopes.