Functions of a single variableA function of a single variable is most usefully represented by its graph.
Linear functionsA linear function of a single variable has the form
Quadratic functionsA quadratic function of a single variable has the form
The derivative of the function is zero when x = −b/2a, at which point the value of the function is c − b2/4a. The function may be written as
Sketch the graph of 2x2 − 8x + 6. The coefficient of x2 is positive, so the graph is U-shaped. The derivative is zero at x = 2, at which point the value of the function is −2. The value of the function at x = 0 is 6. The function is sketched in the following figure.
Reciprocal functionThe function
The curves in these diagrams are called “rectangular hyperbolae”.
Exponential functionThe function
Other functionsOne way to see the graph of a arbitrary function is to have some plotting software draw it for you. You can do that by going to one of the many webpages that plot the graph of a function you specify. In fact, Google automatically provides a plot if you search for a formula or comma-separated list of formulas. (Try searching for
x^2or, if you'd like to see something more interesting,
If you don't have a computing device handy (which is now of course an unlikely circumstance, and probably means you are on an outdoor adventure or writing an exam), it is usually helpful to examine several characteristics of the function:
- the points (if any) at which its first derivative is zero
- its value at the points at which its first derivative is zero
- its value when x = 0
- the points at which its value is zero
- the behavior of its derivative.
Sketch the function 2/x + x2/8. The derivative of this function is −2/x2 + x/4, which is zero when x = 2, at which point the value of the function is 3/2 and the second derivative is positive. As x decreases to 0, the value of the function increases without bound, and as x increases to 0, the value of the
function decreases without bound. The value of the function is zero when x = −161/3, which is approximately −2.52 and the derivative is negative for all negative values of x. Putting this information together we get the following figure.
Functions of two variablesThe graph of a function of two variables is a surface in three dimensions. This surface may be represented in a perspective drawing on a piece of paper, but for many functions the drawing (a) is difficult to execute and (b) hides some features of the function---only parts are visible. Computer software allows you to construct such drawings easily, from many different viewpoints, solving both problems. (Try searching in Google for
x^2 + y^2, for example. Or try
x^2+y^3+200*cos(x), which may evoke memories of your favorite water park.) But even so, another way of looking at a function of two variables is useful. This method, which involves the construction of a topographic map of the function, may easily be carried out by hand for many functions.
Level curvesLet f be a function of two variables, and c a constant. The set of pairs (x, y) such that
Let f(x, y) = x2 + y2 for all (x, y). The level curve of f for the value 1 is the set of all pairs (x, y) such that x2 + y2 = 1, a circle of radius 1. This set is shown in the
Let f(x, y) = a(x − b)2 + c(y − d)2. Each level curve of this function is an ellipse centered at (b, d). If a = c the ellipse is a circle (as in the previous example). If a < c
it is elongated horizontally; if a > c then the ellipse is elongated vertically. Examples are shown in the following figures.
Let f(x, y) = xy for all (x, y). The level curve of f for the value 1 is the set of all pairs (x, y) such that xy = 1, or, equivalently, y = 1/x. The part of this set for −3 ≤
x ≤ 3 and −3 ≤ y ≤ 3 is the union of the sets of points on the red lines in the following figure.
By drawing the level curves of a function for various values, we construct a topographic map of the function, which gives us a good picture of the nature of the function. If the values we choose are equally spaced (e.g. 1, 2, 3, or 10, 20, 30) then curves that are close indicate regions in which the rate of change of the function is large, whereas curves that are far apart indicate regions in which the rate of change of the function is small (just as contours close together on a map indicate hilly terrain and ones that are far apart indicate plains).
Let f(x, y) = x2 + y2 for all (x, y). A collection of level curves of f is shown in the following figure. The number on each curve is the value of the function to which it corresponds. The circles are closer together for larger values of the
function, so that the graph of the function is a bowl with sides whose slopes increase as we move away from the center.
Let f(x, y) = xy for all (x, y). A collection of level curves of f is shown in the following figure. The number on each curve is the value of the function to which it corresponds. (The level curve for the value 0 consists of the axes.)
Note that a level curve is defined as a set, and indeed some level curves of some functions are not “curves” at all.
Consider, for example, the function f defined by f(x, y) = 1 for all (x, y). (That is, the value of f is 1 for all values of x and y.) The level curve of this function for the value 2 is empty (there are no values of (x, y) such that f(x, y) = 2) and the level curve for the value 1 is the set all all points (x, y).
In less extreme examples, some but not all level curves are sets. Consider a basically conical mountain, with terraces at heights of 20 and 40; every horizontal cross-section is a disk and a vertical cross-section through the peak is shown in the following figure.
Some level curves of the function defining the surface of this mountain are shown in the next figure. The level curves corresponding to heights of the terraces—20 and 40—are thick, whereas those corresponding to heights of 10 and 30 are not.
Contour lines on topographic maps of regions of the world are never thick because the earth is nowhere exactly flat (even in Manitoba).
Economists call the level curves of a utility function indifference curves and those of a production function isoquants.