| Input | Output |
| -5 | |
| -3.2 | |
| 0 | |
| 1.4 | |
| 2 | |
| 5.5 | |
Sequences help us to see patterns in the world around us, but sequences are only really useful when we have a first item, a second item, a third item, and so forth. What if we want more items than that? For example, say that we are measuring the temperature in Columbus, Ohio. We could make a sequence out of the high temperature (in degrees Fahrenheit) each day, and have a sequence like \[ \dots , 87, 88, 87, 89, 92, 83, \dots . \] But what if we wanted to measure the temperature each hour? We would need temperatures in between the ones we’ve recorded, or entries between the entries of our sequence. We could go ahead and do that, by rewriting our sequence, and perhaps get something like \[ \dots , 79, 77, 76, 74, 74, 73, \dots . \] However, if we were really trying to be precise here, we might start measuring minute-by-minute or second-by-second or even millisecond-by-millisecond. At any given time, we can find a corresponding temperature. And now, we’ve moved from sequences to functions.
How is this related to a function? We need to start with a set of inputs. In the case of a sequence, we want the inputs to be the element numbers, so that our input set is the counting numbers. \[ 1, 2, 3, \answer [given]{4}, \answer [given]{5}, \answer [given]{6}, \dots \] (Note that some sequences start with a -th term, and in that case we would need in our set of inputs as well!)
The outputs of this function are going to be the elements of the sequence. Let’s organize them in a chart.
| Input | Output |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| … | … |
| N | |
Notice that with sequences, we always have exactly one output for every input. This type of relationship isn’t only for sequences, but makes sense in a lot of real-life examples. For instance, we can’t be in more than one location at a time, so our location could be described as a function of time. A child has one particular height on each of their birthdays, so the child’s height on their birthday could be a function of how old they are. Lots of things in life happen one at a time!
In our example with the sequence, we encountered the function and its relationship described as \[ f(N) = (N-1) \times (-2) + 8. \] You might have seen functions described this way before. The is the name of the function, and the is describing the output in this case. The other side of the equation is telling us the relationship between the input and the output: if you use an input of , you will get an output of .
Some people find it helpful to model a function like a machine. They might draw a diagram like the following.
Kids typically start learning about functions around 8th grade. We would like you to see how some of the ideas of functions connect to things that kids learn in earlier grades, and we would like to use the idea of functions to build up to one of the best connections between geometry and algebra: graphing! We’ll do that in the next section. For now, let’s take a look at some types of functions.
Linear functions
The first type of function we would like to investigate is a linear function. There are two ways we can think about what it means for a function to be a linear function.
This is a very good definition for higher mathematics (and a very good definition for picturing what we are working with), but since we won’t talk about graphs until the next section, let’s give a different definition instead.Linear functions have a property that we will call a “constant rate of change”. In order to see what this means, let’s consider an example.
| Input | Output |
| -3 | |
| -2 | |
| -1 | |
| 0 | |
| 1 | |
| 2 | |
| 3 | |
We are trying to understand what we mean by a “constant rate of change”, so let’s investigate what is happening when the input values are changing.
- When we change from to , the input value changes by , and the output value changes by .
- When we change from to , the input value changes by , and the output value changes by .
- When we change from to , the input value changes by , and the output value changes by . (You may have to do some extra calculating here, or you might have observed a pattern.)
What about when the input value changes by some number other than ?
- When we change from to , the input value changes by , and the output value changes by .
- When we change from to , the input value changes by , and the output value changes by .
- When we change from to , the input value changes by , and the output value changes by .
- When we change from to , the input value changes by , and the output value changes by .
Now we are hopefully really seeing a pattern: if the input value changes by , the output value should change by . This pattern should work even for fractional or decimal changes. If we plug in we get and if we compare this value to we have changed the input by and we see that this changes the output by .
In fact, if we make a ratio of the change in input to the change in output, we see that this ratio is no matter what inputs and outputs we use.
When you explain whether or not a function has a constant rate of change, generally we are expecting you to argue using various points in the domain like in the previous example. However, you might be feeling a little suspicious at this point: how can we say that a linear function has a constant rate of change anywhere on its domain? We can prove it using algebra, but this is a bit more than we are looking for you to explain in general. Let’s use our function as an example. Say that we have some input and then we change the input by some value so that our new input is . We are looking at the ratio of change of outputs to change of inputs, so we need to plug in our inputs to our function. \[ \frac{\textrm{change in outputs}}{\textrm{change in inputs}} = \frac{f(x+N)-f(x)}{x+N-x} = \frac{(9(x+N)-5)-(9x-5)}{x+N-x} \] Let’s notice that the denominator simplifies to just and let’s expand the numerator as much as we can. Notice that we have to distribute that minus sign in the numerator! \[ \frac{9x+9N-5-9x+5}{N} \] Let’s simplify the numerator as much as we can, combining like terms. \[ \frac{9N}{N} \] Now the in the numerator and denominator can cancel, leaving us with the ratio we wanted. \[ \frac{\textrm{change in outputs}}{\textrm{change in inputs}} = \frac{9}{1} \] This ratio is the same no matter what values of and we started with, because the and both canceled as we did algebra. So, we get the same, constant ratio for every pair of inputs in the domain.
Perhaps at this point you are feeling like we have seen linear functions before, and we have!
Let’s start by making a table of values for this sequence.
| Piece number | Length |
| 1 | 2 |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| … | … |
| N | |
Linear functions are one of my favorite types of functions because they are easy to work with and do a good job representing a lot of different things we might like to model with a function. In fact, one of the biggest ideas in calculus, should you ever study it, is to replace complicated functions with estimates that are linear functions in order to make them easier to work with. We won’t do that here; instead we’ll move on to polynomial functions.
Polynomial functions
Polynomial functions, or polynomials for short, are a natural extension of linear functions. To write this definition in its most efficient form, we’ll need to remember that exponents tell us how many copies of that number or variable to multiply together. For instance, \[ x^4 = x \times x \times x \times x. \] The exponent tells us there are copies of all multiplied together. You can always write this out long hand if you aren’t comfortable with exponents.
That was a lot of letters. Let’s see if we can look at an example to make things a bit more clear.
First, notice that if we plug in some input to this relationship (like ) we’ll get exactly one output. \[ (1)^5 + 3(1)^4 - 2(1)-10 = \answer [given]{-8} \] So, this relationship is a function whose domain is all real numbers.
Next, let’s investigate the form of this function. The highest exponent we see is , so the in our definition above would be in this case. So we are trying to identify the values of in \[ a_5x^5 + a_4 x^4 + a_3x^3 + a_2x^2 + a_1x+a_0. \] Let’s start out by matching the term that doesn’t have any ’s in it. In the definition of the polynomial, that’s , and in our example that’s . So in this case . (This would be the constant term of this polynomial - the term with no ’s in it.) Next, what about the terms that have just in them? In the definition of the polynomial, that would be and in our example it would be . Next, we have the terms with in them. In the definition we have but in our example that term is missing. This means we can let and we could even write in place of writing nothing. Next up is the terms, and we see again that . We also have . For the term, we don’t have a number written next to , but we remember that we can always multiply by without changing the number, so instead of we could write and so we see that . In other words, we could write our polynomial as \[ f(x) = 1x^5 + 3x^4 + 0x^3 + 0x^2 + (-2)x + (-10) \] and this is now in the form we wanted to write our function as a polynomial.
First, let’s remember that means superbundles of sticks, bundles of sticks, and individual sticks in our system where we bundle after we hit sticks (or a bundle has sticks in it). We might also remember writing that number in expanded form, like \[ 7 \times 100 + 8 \times 10 + 6 \times 1. \] But, we can also think of sticks, our superbundle, as sticks or a bundle of bundles. This can also be written as sticks, meaning that we can rewrite our expanded form as follows. \[ 7 \times 10^2 + 8 \times 10^1 + 6 \] Now that’s looking more like a polynomial! If we write instead of we are looking at \[ 7x^2 + 8 x + 6 \] so that if we let and plug in we have \[ f(10) = 7 \times 10^2 + 8 \times 10 + 6 = 786. \] Maybe this seems a little bit like overkill, but you might also remember that we worked a little bit with other bases as well. If we bundled in groups of instead of , then would mean \[ 7 \times 12^2 + 8 \times 12 + 6 = f(12). \] The idea of bundles and superbundles is very much connected to the idea of polynomials!
Other functions
While polynomial functions are fairly common in math, there are plenty of other functions as well. You might have heard about functions like or . There are functions which are pieced together from other functions in lots of interesting ways. There are even functions whose relationship we can’t write down nicely, just like there are sequences that don’t have any particular pattern. We won’t work with these functions in this course, but we want you to finish up this section remembering that such things do exist, and when kids start working with them in high school and beyond, they are building on the foundations you have been setting throughout the early grades.