Formulating Function Rules
A function pairs each input with exactly one output. Build rules by testing them against every known pair, use f(x) to name outputs, and evaluate by substitution. In real-world pricing, distinguish a one-time fee from a repeating rate and choose inputs that make sense in context.

A Price with a Hidden Rule
Sky Riders Balloon Company charges a flat $40 booking fee plus $25 for each hour in the air. A one-hour ride costs $40 + $25 = $65, and a two-hour ride costs $40 + $50 = $90
What would a three-hour ride cost? What about ten hours? Rather than describing each price separately, the goal is to write one function rule that computes the total charge from the number of hours. We will return to this pricing question after developing the tools for writing and using rules
The Function Machine
A function pairs each input with exactly one output. A function rule is the expression that defines how the output is computed. Think of a machine: an input enters, the rule performs its calculation, and an output leaves
| Input side | Output side |
|---|---|
| Independent variable | Dependent variable |
| Input values, often called x-values | Output values, often called y-values |
| Domain: the input values | Range: the corresponding output values |
The input is independent because it is the quantity chosen before the rule computes. The output is dependent because its value depends on that input. For Sky Riders, the hours in the air enter the function machine, and the total ride price comes out
Finding Rules in Tables
One pair is not enough
Write an equation for the following table, then find y when x = 9. The output for x = 9 is initially unknown
| x | y |
|---|---|
| 1 | 7 |
| 2 | 11 |
| 3 | 15 |
| 4 | 19 |
| 5 | 23 |
| 9 | Unknown |
The first pair, (1, 7), fits more than one candidate rule. Both y = 7x and y = 4x + 3 produce 7 when x = 1. The rule y = x + 6 also fits that first pair, so a match at one pair is not enough to choose a rule
Test the next pair, (2, 11). For y = 7x, 7(2) = 14, not 11, so reject that candidate. For y = x + 6, 2 + 6 = 8, not 11, so reject that candidate too. For y = 4x + 3, 4(2) + 3 = 11. This candidate survives the second pair, but the remaining known pairs still need to be checked
The table-rule method
1. Use the first input-output pair to list candidate rules. Many rules can fit a single pair
2. Test each candidate against every remaining known pair. Reject a candidate as soon as it fails a pair, and continue checking any candidate that still fits
3. After completing the checks, write the rule as an equation and use it to compute missing values
| Known input | Check y = 4x + 3 | Table output |
|---|---|---|
| 1 | 4(1) + 3 = 7 | 7 |
| 2 | 4(2) + 3 = 11 | 11 |
| 3 | 4(3) + 3 = 15 | 15 |
| 4 | 4(4) + 3 = 19 | 19 |
| 5 | 4(5) + 3 = 23 | 23 |
The candidate y = 4x + 3 fits every known pair. Among the candidates tested, it is the rule that fits the table. From x = 1 through x = 5, each increase of 1 in x produces an increase of 4 in y, consistent with the multiplier 4
To find the missing output, substitute x = 9: y = 4(9) + 3 = 36 + 3 = 39. The completed pair is (9, 39)
Practice with ordered pairs
Complete the equation y =
$$multiplier$$
x
$$constant$$
so that it fits every ordered pair: (1, 2), (2, 5), (3, 8), and (4, 11). The offered entries are 3, 2, −1, and +1
The correct entries are 3 for the multiplier and −1 for the constant, giving y = 3x − 1. The outputs increase by 3 whenever x increases by 1. Checking every pair gives 3(1) − 1 = 2, 3(2) − 1 = 5, 3(3) − 1 = 8, and 3(4) − 1 = 11
Naming Functions with f(x)
Suppose a problem uses both y = 4x + 3 and y = 10 − x. Naming the functions makes it clear which rule is being used: f(x) = 4x + 3 and g(x) = 10 − x
Read f(x) as “f of x.” The letter f is the function's name, the parentheses hold the input, and x is that input. The whole expression f(x) names the output of function f for input x; it replaces y in the equation
“Find the value of y when x = −3” can be written more briefly as “Find f(−3).” Both ask for the output when the input is −3. The calculation has not changed; only the labeling is clearer
Any letter can name a function. For example, g(x) = 10 − x names a function g. The notation review is: f(x) means the output of f for input x; g(x) = 10 − x is a function named g; and f(−3) asks for the output of f when the input is −3
Evaluating Functions
To evaluate a function, replace every x in its rule with the stated input, then simplify using the order of operations. Keep negative inputs in parentheses so their signs stay attached
Example: f(x) = 4 + 3x
Given f(x) = 4 + 3x, find f(0) and f(−2). For the first output, substitute 0 for x: f(0) = 4 + 3(0) = 4 + 0 = 4
For the negative input, f(−2) = 4 + 3(−2). Multiply first: 3(−2) = −6. Then add: f(−2) = 4 + (−6) = −2
Example: g(x) = (x + 1)/8
Given g(x) = (x + 1)/8, find g(3) and g(−7). This rule adds 1 to the input and then divides the entire sum by 8
Substitute 3: g(3) = (3 + 1)/8 = 4/8 = 1/2. The fraction simplifies by dividing its numerator and denominator by 4
Substitute −7: g(−7) = ((−7) + 1)/8 = −6/8 = −3/4. Dividing the numerator and denominator by 2 gives the simplified output −3/4
Independent or Dependent?
To identify variables in a real situation, ask which quantity determines the other. From 2019 to 2024, a laptop's value decreased year after year. Time in years is the independent variable, or input. The laptop's value is the dependent variable, or output, because it depends on how much time has passed
Rate phrases such as “per hour” and “for every month” point toward the independent variable: the total depends on how many of those units occur. Decide by the relationship between the quantities, not by their order in a sentence
Practice: A dog walker earns $12 per walk, and a phone battery drains while a video plays. Classify these quantities as independent inputs or dependent outputs: number of walks, total money earned, and battery percent remaining
Number of walks is independent: it determines the earnings. Total money earned is dependent because it responds to the number of walks. Battery percent remaining is also dependent because it responds to how long the video has been playing
From Words to Rules
Sky Riders: separate the fee from the rate
Sky Riders charges a flat $40 booking fee plus $25 per hour in the air. Write a function rule for the total charge. Let x be the number of hours, the independent variable, and let g(x) be the total charge in dollars, the dependent variable
The phrase “$25 per hour” means 25 times the number of hours, or 25x. The $40 booking fee is added once, with no x attached. Therefore, g(x) = 40 + 25x
Reasonable domain and corresponding range
Choose sensible inputs and compute their outputs. For this example, use the domain $$\{1, 2, 3, 4\}$$ hours. These are reasonable ride lengths; −2 hours is not. This selected domain is the set of inputs being considered, not a claim that it lists every possible ride length
| Input x (hours) | Calculation | Output g(x) (dollars) |
|---|---|---|
| 1 | 40 + 25(1) | 65 |
| 2 | 40 + 25(2) | 90 |
| 3 | 40 + 25(3) | 115 |
| 4 | 40 + 25(4) | 140 |
For the selected domain $$\{1, 2, 3, 4\}$$ hours, the range is $$\{65, 90, 115, 140\}$$ dollars. The rule reproduces the one-hour and two-hour prices from the opening and gives a three-hour charge of $115
Practice: Lakeside Kayaks
Lakeside Kayaks charges a $15 rental fee plus $8 per hour on the water. Let x be the number of hours. Complete the rule f(x) =
$$one-time fee$$
$$hourly rate$$
x, then find f(2). The offered entries are 15, 8, 31, 46, and 23
The one-time fee is 15 and the hourly rate is 8, so f(x) = 15 + 8x. For two hours, f(2) = 15 + 8(2) = 15 + 16 = $31. The correct entries are 15, 8, and 31: the rate repeats for each hour, while the fee appears only once
Summary
A function pairs each input with exactly one output. The independent variable supplies the input, and the dependent variable is the output. The domain contains the inputs; the range contains their corresponding outputs
To find a rule from a table or ordered pairs, list candidates from the first pair and test them against every known pair. A rule that works only for the first pair is not enough
Read f(x) as “f of x.” It names the output of function f for input x and can replace y. It never means f times x
To evaluate, replace every x with the input and follow the order of operations. Keep negative inputs in parentheses and perform multiplication before addition or subtraction
For the fee-plus-rate situations in this lesson, the rule is fee + rate · x. Multiply the repeating rate by x, add the flat fee once, and choose domain values that make sense in context. Keep the input and output units clear
Quiz
For the first question, the mapping has inputs 1, 2, 3, and 4, with exactly these arrows: 1 → 5, 2 → 8, 3 → 11, and 4 → 14. Each input has one corresponding output
Complete a substitution chain
Given f(x) = 2x − 7, complete the substitution chain to find f(−3): f(−3) = 2(
$$substituted input$$
) − 7 =
$$final output$$
. The offered entries are −3, 3, −13, −1, and 13
The substituted input is −3, including its negative sign. Multiply first, then subtract 7: f(−3) = 2(−3) − 7 = −6 − 7 = −13. The two correct entries are −3 and −13
Choose a reasonable domain and range
A photographer charges a $60 session fee plus $25 per printed photo. The rule is g(x) = 60 + 25x, where x is the number of printed photos and g(x) is the charge in dollars