Evaluating a Function Given in Tabular Form
We can represent functions in tables. Conversely, we can use information in tables to write functions, and we can evaluate functions using the tables. For example, how well do our pets recall the fond memories we share with them? There is an urban legend that a goldfish has a memory of 3 seconds, but this is just a myth. Goldfish can remember up to 3 months, while the beta fish has a memory of up to 5 months. And while a puppy’s memory span is no longer than 30 seconds, the adult dog can remember for 5 minutes. This is meager compared to a cat, whose memory span lasts for 16 hours.
The function that relates the type of pet to the duration of its memory span is more easily visualized with the use of a table. See the table below.
| Pet | Memory span in hours |
|---|---|
| Puppy | 0.008 |
| Adult dog | 0.083 |
| Cat | 16 |
| Goldfish | 2160 |
| Beta fish | 3600 |
At times, evaluating a function in table form may be more useful than using equations. Here let us call the function [latex]P[/latex].
The domain of the function is the type of pet and the range is a real number representing the number of hours the pet’s memory span lasts. We can evaluate the function [latex]P[/latex] at the input value of “goldfish.” We would write [latex]P\left(\text{goldfish}\right)=2160[/latex]. Notice that, to evaluate the function in table form, we identify the input value and the corresponding output value by looking at the corresponding row in the table.
Using the table below,
- Evaluate [latex]g\left(3\right)[/latex].
- Solve [latex]g\left(n\right)=6[/latex].
| n | 1 | 2 | 3 | 4 | 5 |
| g(n) | 8 | 6 | 7 | 6 | 8 |
Finding Function Values from a Graph
Evaluating a function using a graph also requires finding the corresponding output value for a given input value, only in this case, we find the output value by looking at the graph. Solving a function equation using a graph requires finding all instances of the given output value on the graph and observing the corresponding input value(s).
Given the graph
- Evaluate [latex]f\left(2\right)[/latex].
- Solve [latex]f\left(x\right)=4[/latex].

set of all input values of a function
set of all output values for a function

