A function is an input-output process. While more generally a function definition can specify any kind of input and any kind of output, for us a function will always be one number in, one number out.
A function is not a formula. A formula is just one way to describe the input-output process of a function, but there are other ways to do so, including:
A device that measures wind speed is called an anemometer. Suppose an anemometer is set up in the quad of the Augustana Campus. For representing time measured in seconds from the instant the anemometer is fully set up and operational, let represent the wind speed measured by the device at time , in kilometres per hour.
It would be pretty difficult to come up with a formula in that describes the function in Example 2.1.3. However, as weβll see in Example 2.3.8, itβs possible (but tedious) to create a βformulaβ for a function that has initially been defined by a table of values, as in Example 2.1.2.
The information in Example 2.1.2 seems incomplete β how can we determine or from the table? Since the function description does not specify how to determine output values for these inputs, we must accept that there are no such output values and .
The set of all values of the independent variable that can be used as an input value for the function, in the sense that there is an associated output value. For values of that are not in the domain, we say that the output value is undefined.
If we assume that the anemometer in Example 2.1.3 could continuously record wind speed measurements, then the domain of the function in that example is , and the function is undefined for .
Technically, the domain of a function is part of its definition, but it is often not explicitly specified. In that case, we should assume that the domain is as large as possible, and includes all possible input values that βmake senseβ in the function definition.
However, sometimes we want to restrict the possible input values for some reason, even if the description of the functionβs input-output process could allow other input values.
Here the domain is explicitly specified as being . So even though the formula is defined, technically the output value is undefined because we have specified in the function definition that the input-output formula only applies for .
only outputs positive values. But is every positive value an actual output of the function? Yes, because if is a positive number, there is at least one example of an input value so that ; in particular,
For a point in the Cartesian plane, the property of being on the graph or not on the graph of a function is precisely determined by whether or not is true.
In Figure 2.2.3, the point appears on the graph because for and , the equality is true, whereas the point appears displaced from the graph because for and , the equality is not true.
Consider again the function in Example 2.1.2, which was defined by a table of values. Since the table only defines five input-output pairs, the graph consists of only five isolated points.
Figure2.2.5.An example graph that consists of only five points.
Every function can be associated with a collection of points in the Cartesian plane representing input-output pairs, and for many of the functions we study this collection of points will βjoin togetherβ to form a curve. Is the opposite true? Is every curve in the Cartesian plane the graph of a function?
The βonly onceβ part of Pattern 2.2.6 represents the fact that a function should associate one and only one output value to each input value in the domain. If some vertical line intersects the curve more than once, then those intersection points associate different output values to the same input value, which a function cannot do. The βor not at allβ part of Pattern 2.2.6 covers the situation of a vertical line at a -position that is not in the domain of the function, in which case there is no corresponding point on the graph for a vertical line at that -position to intersect.
(a)A curve that passes the Vertical Line Test.
(b)A curve that does not pass the Vertical Line Test.
If a curve passes the Vertical Line Test, of what function will it be the graph? Remember that a function can be described as an input-output process in several different ways. To describe a function via a graph, assign an output value to each input value as follows:
if the vertical line at position does not intersect the graph, leave undefined
if the vertical line at position does intersect the graph and the graph passes the Vertical Line Test, then we can assume that there is only one such point of intersection, so set to be the second coordinate of that point.
Sometimes we want to βstitch togetherβ several formulas, so that one formula applies to one subdomain, another formula applies to another subdomain, and so on.
Salespeople at a particular store make a base salary of $4000 per month, on top of which they make a $10 commission on every unit they sell. As an additional incentive, after the first 100 units they sell in a month, the commission on additional units sold is $15.
Let represent the number of units sold in a month by any one salesperson, and let represent the salary to be paid to that employee. In the domain we have
We can collect together several formulas into one function definition with some notation. For example, the salary function from Example 2.3.1 can be expressed as
The format of this notation begins with a large left brace, which alerts the reader that the formulas on the right are to be grouped together as cases in the definition of the function. Then we have the formulas and their associated domain of application, one per line. Itβs important that the subdomains donβt overlap, so that we havenβt defined a particular output value in more than one way. However, there is no requirement that the subdomains meet β the function can be left undefined at input values between the subdomains.
A function that is defined in pieces in this way is called, fittingly, a piecewise function. As you can imagine, a piecewise function will also have a graph that appears to be built out of pieces.
the graph of which appears in Figure 2.3.5. At , the parabola portion on the left ends at height but the line begins at height , so the two βpiecesβ of graph do not meet at the transition point. Also notice that we have drawn a closed point at at the βendβ of the parabola portion of the graph, but have drawn an open point at at the βbeginningβ of the line portion. This represents the fact that the parabola subdomain contains the input value while the line subdomain does not, so the piecewise definition dictates that the formula applies when .
Figure2.3.5.Graph of a piecewise-defined function with a βjumpβ in values.
We can use this notation to define a βformulaβ for a function that as been defined by a table of values, but it is not really any different than writing down a table of values.
This function is still only defined at a handful of points β for example, is undefined because there is no listed formula whose associated subdomain is or contains .
The graphs in Figure 2.3.5 and Figure 2.3.7 have an odd feature β they approach one value then suddenly jump to a different value. Weβll call this type of feature a point of discontinuity.
A function is said to be continuous at a specific input value if the values of can always be restricted to being within some arbitrarily small open range around the value by restricting the inputs to some sufficiently small open subdomain around . Otherwise, the function is said to be discontinuous at that point.
In other words, a function is continuous at a point if whenever , and we can always make the first approximation better by tightening the second approximation.
The function in Example 2.3.4 is discontinuous at . It has value there, but if is slightly bigger than then , not . So itβs not possible to restrict output values to the open range
around the actual output value . That is, when we take to mean βno lower than and no higher than β, there is no way to make this true for all , no matter how small a subdomain around that we take for the meaning of because there will always be some with , outside of that restricted range.
On the other hand, that same function is continuous at . No matter how small a range around we take to mean, it is always possible to restrict to some small open subdomain around so that is true for all within that subdomain.
(a)There will always be values of for (represented by the part of the graph highlighted red), that are outside of the range , no matter how small of a subdomain around we take to mean.
(b)Using any small range around , we can always restrict the domain around so that is true for all . (The Greek letter in the figure represents a small amount above or below to create a small range.)
Figure2.4.3.A point of discontinuity and one of continuity.
Graphically, we think of a function as being continuous at an input value if its graph βflows throughβ the point , while the graph near a point of discontinuity features some sort of gap or jump. In particular, a function will always be discontinuous at a point that is not in its domain, since then there is no value with which to compare its βnearbyβ values.
Discussing continuity point-by-point is tedious; we generally just look for likely spots for discontinuities. (See below for examples.) Between discontinuities, we make a blanket pronouncement of continuity.
If a function is continuous on its entire domain we will say exactly that: the function is continuous on its domain. If we just say that a function is continuous, we mean that the function is continuous at all real input values.
Why not just define in the first place? Our function might be created as the ratio of two other quantities, where the numerator is a model for some quantity, the denominator is a model for a separate quantity, and we want the function to track their ratio. In this case, it is important to record that the ratio is undefined when the second quantity is zero.
However, the fact that is true for βalmost allβ input values justifies the terminology removable discontinuity β we could βremoveβ the discontinuity by replacing by the continuous function , so that is true for βalmost allβ input values. Thus βfixesβ the discontinuity in , and so is called a continuous extension of .
We will call such an input location a singularity for the function. The vertical line at that location (as represented by a dashed line in the example graph in Figure 2.4.7) is called a vertical asymptote for the functionβs graph.
we may conclude that the graph must descend through every possible output value between and over the domain . (Note, however, that this doesnβt mean the graph cannot ascend on some portion of this domain.)
Sketching graphs by plotting a few points and then connecting the dots is not a good strategy in general, unless you are a computer and can plot millions of points. The issue is that you may overlook important features that occur between the points you plotted.
Then join your points together smoothly to make a βgraphβ for . Finally, get an online graphing app to graph for you and compare with your βgraphβ β you will find that they are very different.
A better strategy is to become familiar with a set family of reference graphs, and try to interpret graphs of similar functions as transformations of the reference graphs. We often will still plot a few βanchorβ points to keep track of as we perform the transformations, but mainly we want to use the relationships between the graph at hand and a reference graph.
If we take an βoldβ function and add some fixed value to every output, we create a βnewβ function whose graph is moved up (if the added fixed value is positive) or down (if the added fixed value is negative). Accordingly, for
we relate each of them to the function , whose graph we should know as one-half of a sideways parabola. Some anchor points we might focus on to help us draw the shifted graph are at and .
Figure2.5.2.Two vertical shifts of the graph of , one up and one down.
If we take an βoldβ function and multiply every output by some fixed, positive scale factor, we create a βnewβ function whose graph has been stretched away from the horizontal axis (if the scale factor is greater than ) or compressed towards the horizontal axis (if the scale factor is less than ). Accordingly, for
If we take an βoldβ function and change the sign of every output, we create a βnewβ function whose graph has been reflected in the horizontal axis. Accordingly, for
For a positive constant, adding that constant to a function shifts its graph up by that amount, while subtracting that constant shifts its graph down.
Scaling.
Multiplying a function by a positive scale factor that is greater than one stretches the graph away from the horizontal axis by that factor, while a positive scale factor that is less than one compresses the graph towards the horizontal axis.
Reflection.
Multiplying a function by a negative scale factor (or by ) reflects the graph in the horizontal axis (as well as any scaling effect).
We will see that horizontal shifts and scales reverse these patterns. For that reason, we will investigate horizontal shifts in terms of subtracting either a positive or negative shift term and horizontal scales in terms of dividing by a scale factor that is either greater or less than one.
If we subtract a positive constant from the independent variable before using it as the input for a function, we are essentially causing output values to occur βlater.β For example, for , the βoldβ functionβs initial output value occurs at for the βnewβ function:
On the other hand, if we subtract a negative constant from the independent variable (so, in effect, adding a positive constant), we cause output values to occur βearlierβ. For example, for , the initial value of the βnewβ function is the same as the βoldβ functionβs value at :
we relate each of them to the function . Now when we choose and track anchor points (again at and for ), we want to determine what new independent variable value will produce the same output.
Figure2.5.8.Two horizontal shifts of the graph of , one right and one left.
If we divide the independent variable by a positive constant that is greater than 1 before using it as the input for a function, we again are causing output values to occur βlater,β at least for positive inputs. For example, for , the value achieved by the βoldβ function at wonβt be achieved by the βnewβ function until :
However, this effect is symmetric about the vertical axis β using our same example the value achieved by the βoldβ function at is achieved by the βnewβ function until :
Dividing the independent variable by a positive constant that is less than 1 has the opposite effect, so that outputs of the old function are βpulled inβ towards the vertical axis. For example, for , the output value of the βoldβ function at becomes the output value of the βnewβ function at :
Again, the effect is symmetric about the vertical axis, so that the overall effect is to compress the graph of the βoldβ function towards the vertical axis.
again we relate each of them to the graph of the function . And again when we track anchor points (again at and for ), we want to determine what new independent variable value will produce the same output. But we can immediately say that the anchor point at wonβt move, so weβll focus on the one at .
Figure2.5.10.Two horizontal scales of the graph of , one stretched and one compressed.
Sometimes it is possible to re-interpret a horizontal scale as a vertical scale or vice versa, depending on the algebraic properties of the functionβs formula. For example, for
from Example 2.5.9, we could interpret the βnewβ function as either a horizontal stretch by a factor of or as a vertical compression by a factor of .
If we take an βoldβ function and change the sign of inputs before they are used, we create a βnewβ function whose graph has been reflected in the vertical axis. Accordingly, for
again we relate it to the graph of the function . It may seem like the formula for makes no sense, since the square root of a negative number is undefined. However, we are implicitly also reflecting the domain of to create the domain of : if , then , and in this case will make sense.
Again weβll focus on anchor points at and , and again for each anchor point we need to determine what new independent variable value will produce the same output.
Figure2.5.13.Horizontal reflection of the graph of .
Subtracting a positive constant from the independent variable of a function shifts its graph to the right by that amount, while subtracting a negative constant shifts its graph to the left.
Scaling.
Dividing the independent variable of a function by a positive scale factor that is greater than one stretches the graph away from the vertical axis by that factor, while dividing by a positive scale factor that is less than one compresses the graph towards the vertical axis.
Reflection.
Replacing the independent variable in a function by its negative reflects the graph in the vertical axis.