KTU S1

Functions of Several Variables

By the end you should be able to: Interpret a function of two variables through its graph, level curves and contour map, and sketch level curves for standard surfaces.

Everything so far took one number in and gave one number out. Real problems rarely do. Temperature depends on latitude and longitude; the cost of a component depends on material and labour; a neural network's loss depends on thousands of weights at once.

The object

z=f(x,y)z = f(x,y)

Two inputs, one output. The graph lives in three dimensions: a surface sitting above the xyxy-plane, with height zz at each point.

The problem with surfaces

You cannot draw four dimensions, and even three on paper is awkward. So we do what mapmakers do — slice.

Level curves

Fix the output at a constant cc and ask which inputs produce it:

f(x,y)=cf(x,y) = c

The result is a curve in the plane: a level curve. Draw several for different cc and you have a contour map — the surface described entirely in two dimensions.

This is not an analogy with maps. It is the same construction. On an Ordnance Survey map, height is f(x,y)f(x,y) and the brown contour lines are its level curves.

The standard three

f(x,y)=x2+y2f(x,y) = x^2 + y^2 — a paraboloid, a bowl.

Level curves: x2+y2=cx^2 + y^2 = c, which are circles of radius c\sqrt{c}. For c=1,4,9c = 1, 4, 9 the radii are 1,2,31, 2, 3.

Notice the spacing: as cc rises in equal steps the circles bunch closer together, because the bowl steepens as you climb. Contours crowding together means a steep surface. That reading is the whole point of a contour map.

f(x,y)=x2−5y2f(x,y) = x^2 - 5y^2 — a saddle.

Level curves are hyperbolas. Along the xx-axis the surface rises; along the yy-axis it falls. There is a point that is simultaneously a minimum in one direction and a maximum in another, which single-variable calculus has no vocabulary for.

f(x,y)=xyx2+y2f(x,y) = \dfrac{xy}{x^2+y^2} — undefined at the origin, and badly behaved near it in a way the next topic makes precise.

Reading a contour map

What you seeWhat it means
Contours close togetherSteep
Contours far apartNearly flat
Closed loops shrinking inwardA peak or a pit
Contours crossing themselvesA saddle

Contours for different values can never cross. A single point cannot have two different heights.