Evaluate formulas one number at a time
Keep two recipe cards on a counter. For a composition, follow the inner recipe first, write its answer, and then use that answer in the outer recipe. A formula is a recipe written with letters. Each input letter labels a place to insert a value. The names x, t, and u can label the same place. For example, f(u) = and f(x) = describe the same root recipe. Using u for an outer input helps you keep it separate from the x inside another formula. The function name tells you which recipe to use; the letter inside the parentheses tells you where its input belongs.
- Order of operations. Square before subtracting: − 5 = 25 − 5 = 20.
- Signed arithmetic. (−4 = 16 and 16 − (−4) = 20.
- Substitution. Both slots in − t receive the same number: f(5) = − 5.
- Composition order. f(h(1)) starts with h(1), not f(1).
- Input-slot names. h(x) = 3x + 2 and h(t) = 3t + 2 both say multiply the input by 3 and add 2. They define the same function.
The input-variable letter does not change the instructions.
f of h of one
Put 1 into h’s formula, then put its resulting number into f’s formula.
- h(x) = 3x + 2
- f(t) = − t
- f(h(1)) = f(5) = 20
The first recipe makes the ingredient measured into the second recipe.
Finish the first recipe before beginning the second. A finished intermediate value becomes the ingredient measured into the second recipe.
f(t) = − t has two blanks holding the same input. At input 5 the blanks become − 5. Calling the blanks u would not change either operation.
.1Number into the inner formula
First evaluate the formula closest to the starting number. A zero intermediate answer is allowed unless the next function rejects zero.
- h(1) = 5 for h(x) = 3x + 2.
- The intermediate answer is a complete input for the next function.
With h(x) = 3x + 2, evaluate h(−2). The input is −2; find the first-stage output. Plan: substitute the entire signed number in parentheses, then multiply before adding.
- h(−2) = 3(−2) + 2.Replace the input letter with −2 and keep its sign inside parentheses.
- = −6 + 2 = −4.A positive times a negative is negative, and adding 2 moves two steps toward zero.
- Keep a negative input inside parentheses until multiplication is complete.
.2Intermediate answer into the outer formula
The outer recipe receives a new input. Insert that input in every position, even when it is negative. Parentheses show that the square acts on the negative number itself.
- f(−4) = (−4 − (−4).
- The square happens before the subtraction.
For f(t) = − t and h(x) = 3x + 2, find f(h(−2)). You want both stages completed. Plan: compute h(−2) = −4, then replace both t slots in f with that entire signed answer.
- h(−2) = −4, so f(h(−2)) = f(−4).The inner output becomes the outer input.
- f(−4) = (−4 − (−4) = 16 + 4 = 20.A negative squared is positive, and subtracting a negative adds its opposite.
- Circle every occurrence of the outer input letter before substituting.
- 1. Expand circle notation into parentheses if needed.
- 2. Copy the inner formula and replace every input letter with the original number, using parentheses for negative numbers.
- 3. Complete that arithmetic and write the intermediate output.
- 4. Copy the outer formula and replace every input letter with that output.
- 5. Complete the arithmetic and check by substituting into a combined formula.
Evaluate formulas at a numerical input
- 1. Expand circle notation into parentheses if needed.
- 2. Copy the inner formula and replace every input letter with the original number, using parentheses for negative numbers.
- 3. Complete that arithmetic and write the intermediate output.
- 4. Copy the outer formula and replace every input letter with that output.
- 5. Complete the arithmetic and check by substituting into a combined formula.
Let f(t) = − t and h(x) = 3x + 2. Find f(h(1)) and h(f(1)). You start at 1 and want the final output in each order. Plan: finish the inner arithmetic, then insert its answer into every outer slot. The input letters t and x are slot names; their difference does not change the method.
- For f(h(1)), start with h(1) = 3 × 1 + 2 = 5.h is the inner function for this order.
- f(h(1)) = f(5) = − 5 = 25 − 5 = 20.The output 5 replaces both occurrences of t in f.
- For h(f(1)), start with f(1) = − 1 = 1 − 1 = 0.f is the inner function for the reversed order.
- h(f(1)) = h(0) = 3 × 0 + 2 = 2.The intermediate output 0 is a valid numerical input to h.
- f(h(1)) = 20.
- h(f(1)) = 2.
Let g(x) = x + 1 and f(x) = 2x. Find (f ∘ g)(2). The input is 2; add 1 first, then use that answer as the input to the doubling function. Plan: finish g first, then carry its whole answer into f.
- (f ∘ g)(2) = f(g(2)).The circle means composition, so g is the inner function.
- g(2) = 2 + 1 = 3.The original input goes into g first.
- f(g(2)) = f(3) = 2 × 3 = 6.The output 3 from g is the input to f.
Let f(t) = − t and h(x) = 3x + 2. Find f(h(1)) and h(f(1)). You start at 1 and want the final output in each order. Plan: finish the inner arithmetic, then insert its answer into every outer slot. The input letters t and x are slot names; their difference does not change the method.
- For f(h(1)), start with h(1) = 3 × 1 + 2 = 5.h is the inner function for this order.
- f(h(1)) = f(5) = − 5 = 25 − 5 = 20.The output 5 replaces both occurrences of t in f.
- For h(f(1)), start with f(1) = − 1 = 1 − 1 = 0.f is the inner function for the reversed order.
- h(f(1)) = h(0) = 3 × 0 + 2 = 2.The intermediate output 0 is a valid numerical input to h.
- f(h(1)) = 20.
- h(f(1)) = 2.
For f(t) = − t and h(x) = 3x + 2, find f(h(−2)). You want both stages completed. Plan: compute h(−2) = −4, then replace both t slots in f with that entire signed answer.
- h(−2) = 3(−2) + 2 = −6 + 2 = −4, so f(h(−2)) = f(−4).The inner output becomes the outer input.
- f(−4) = (−4 − (−4) = 16 + 4 = 20.A negative squared is positive, and subtracting a negative adds its opposite.
Let q(x) = 2x + 3 and p(u) = . Find p(q(1)). You start with 1 and want the output after the linear rule and then the fraction rule. Plan: compute q(1), replace both outer u slots with that answer, and divide only after computing the whole top and bottom.
- q(1) = 2 × 1 + 3 = 5.The inner formula acts first, with multiplication before addition.
- p(q(1)) = p(5) = .Both u slots receive the same whole inner answer 5.
- 5 + 2 = 7 and 5 − 2 = 3, so p(q(1)) = .The top and bottom must each be completed before division; the bottom 3 is nonzero.
- Write the intermediate output on its own line before the outer substitution.
- Name the function before reading its formula. The letters inside formulas can be different and still represent input slots.
- Know cold: one line per function, inner first. The output of the first line is the input of the second.