- Verberg vooruitgang Hide progress Toon vooruitgang Show progress
- Verwijder je antwoorden (op deze pagina) Remove your answers (on this page)
Now that we have defined the concept of a function, we’ll spend the rest of Chapter IntroductiontoFunctions revisiting families of curves from prior courses in Algebra by viewing them through a ‘function lens’. We start with lines and refer the reader to Section AppLines for a review of the basic properties of lines. The simplest lines are vertical and horizontal lines. We leave it to the reader (see Exercise whynoverticallineshere) to think about why we eschew vertical lines in our discussion here, and begin with a functional description of horizontal lines.
Consider the horizontal lines graphed in the \(xy\)-plane as shown below. The Vertical Line Test, Theorem VLT, tells us that each describes \(y\) as a function of \(x\) so the question becomes how to represent these functions algebraically. The key here is to remember that the equation relating the independent variable \(x\), the dependent variable \(y\), and the function \(f\) is given by \(y = f(x)\).
In the graph on the left, \(y\) always equals \(3\) so we have \(f(x) = 3\). Procedurally, ‘\(f(x) = 3\)’ says that the rule \(f\) takes the input \(x\), and, regardless of that input, gives the output \(3\). This is an example of what is called a constant function - a function which returns the same value regardless of the input. Likewise, the function represented by the graph in the middle is \(f(x) = -2\), and the graph on the right (the \(x\)-axis) is the graph of \(f(x) = 0\). In general, we have the following definition:
Some remarks about Definition constantfunction are in order. First, note that we are using ‘\(x\)’ as the independent variable, ‘\(f\)’ as the function name, and the letter ‘\(b\)’ as a parameter. In this context, a parameter is a fixed, but arbitrary, constant used to describe a family of functions. Different values of \(b\) determine different constant functions. For example, \(b = 3\) gives \(f(x) = 3\), \(b = -2\) gives \(f(x) = -2\), and so on. Once \(b\) is chosen, however, it does not change as the independent variable, \(x\), changes.
Also note that we are using the generic defaults for function names and independent variables, namely \(f\) and \(x\), respectively. The functions \(G(t) = \sqrt {\pi }\) and \(Z(\rho ) = 0\) are also fine examples of constant functions. Recall that inherent in the definition of a function is the notion of domain, so we record (as part of the definition) that a constant function has domain \((-\infty , \infty )\). The range of a constant function is the set \(\{b \}\). The value \(b\) in this case is both the maximum and minimum of \(f\), attained at each value in its domain.
The next example showcases an application of constant functions and introduces the notion of a piecewise-defined function.
The independent variable here is specified as \(A\), so we’ll label our horizontal axis that way. The dependent variable remains unspecified so we can use the default \(y\). The graph of \(y = p(A)\) consists of three horizontal line pieces: the first is \(y = 5.75\) for \(0 \leq A < 6\), the second piece is \(y = 7.25\) for \(6 \leq A < 50\), and the last piece is \(y = 5.75\) for \(A \geq 50\).
For the first piece, note that \(A = 0\) is included in the inequality \(0 \leq A < 6\) but \(A = 6\) is not. For this reason, we have a point indicated at \((0, 5.75)\) but leave a hole at \((6, 5.75)\). Similarly, to graph the second piece, we begin with a point at \((6, 7.25)\) and continue the horizontal line to a hole at \((50, 7.25)\). Lastly, we finish the graph with a point at \((50, 5.75)\) and continue to the right indefinitely. Note the scaling on the horizontal axis compared to the vertical axis.
One of the favorite piecewise-defined functions in mathematical circles is the greatest integer of \(x\), denoted by \(\lfloor x \rfloor \). In Section setsofnumbersboxonthispage we defined the set of integers as \(\mathbb {Z} = \{ \ldots , -3, -2, -1, 0, 1, 2, 3, \ldots \}\). The value \(\lfloor x \rfloor \) is defined to be the largest integer \(k\) with \(k \leq x\). That is, \(\lfloor x \rfloor \) is the unique integer \(k\) such that \(k \leq x < k+1\). Said differently, given any real number \(x\), if \(x\) is an integer, then \(\lfloor x \rfloor = x\). If not, then \(x\) lies in an interval between two integers, \(k\) and \(k+1\) and we choose \(\lfloor x \rfloor = k\), the left endpoint.
A partial description of \(\lfloor x \rfloor \) is given alongside a partial graph at the top of the next page. (A full description or a complete graph would require infinitely large paper!) We use the vertical dots \(\, \smash {\vdots } \,\) to indicate that both the rule and the graph continue indefinitely following the established pattern.
\( \lfloor x \rfloor = \begin{cases} \vdots & \\ -5 & \text {if $\,-5 \leq x < -4$} \\ -4 & \text {if $\,-4 \leq x < -3$} \\ -3 & \text {if $\,-3 \leq x < -2$} \\ -2 & \text {if $\,-2 \leq x < -1$} \\ -1 & \text {if $\,-1 \leq x < 0$} \\ 0 & \text {if $\,\hphantom {-}0 \leq x < 1$} \\ 1 & \text {if $\,\hphantom {-}1 \leq x < 2$} \\ 2 & \text {if $\,\hphantom {-}2 \leq x < 3$} \\ 3 & \text {if $\,\hphantom {-}3 \leq x < 4$} \\ 4 & \text {if $\,\hphantom {-}4 \leq x < 5$} \\ 5 & \text {if $\,\hphantom {-}5 \leq x < 6$} \\ \smash {\vdots } & \end{cases} \)