Some functions are defined by rules that specify how to compute the output from the input. These rules can be verbal descriptions or expressions and equations. For example:
Rules in words:
Rules in function notation:
Some functions are defined by rules that relate two quantities in a situation. These functions can also be expressed algebraically with function notation.
Suppose function c gives the cost of buying n pounds of apples at $1.49 per pound. We can write the rule c(n)=1.49n to define function c.
To see how the cost changes when n changes, we can create a table of values.
| pounds of apples, n | cost in dollars, c(n) |
|---|---|
| 0 | 0 |
| 1 | 1.49 |
| 2 | 2.98 |
| 3 | 4.47 |
| n | 1.49n |
Plotting the pairs of values in the table gives us a graphical representation of c.