Evaluate a formula
Quick review (2 minutes)
Think of a recipe with a blank for an ingredient amount.
To evaluate a formula, replace every input variable with the whole stated input in parentheses, then calculate or expand. The value or expression you obtain is the output.
Say what the question asks. Evaluate f(2) means the input is 2; find its output. It does not ask which input produces 2.
Copy the formula, replacing every input letter with the given input in parentheses.
For a number, do powers first, then multiplication, then addition and subtraction. For an expression, multiply out parentheses before collecting like terms.
Check by putting a numerical input into both the starting recipe and the expanded expression. Matching results can catch an expansion error.
A function machine named g accepts any real number as its input x and produces the output
g(x) = 3 - 8x + 6.
In words, the recipe is: square the input and multiply by 3, subtract 8 times the input, then add 6.
(a) Evaluate g(-2).
(b) Evaluate g(k - 2), where k stands for any real number. Write the output as an expanded expression in k with like terms collected.
Losing the middle term when squaring a sum. Write (a + h)(a + h) and keep all four products before combining the two ah terms.
Say what the question asks. Evaluate f(2) means the input is 2; find its output. It does not ask which input produces 2.
Copy the formula, replacing every input letter with the given input in parentheses.
For a number, do powers first, then multiplication, then addition and subtraction. For an expression, multiply out parentheses before collecting like terms.
Check by putting a numerical input into both the starting recipe and the expanded expression. Matching results can catch an expansion error.
Set
A collection of distinct members. Braces list them, and repeating a member does not create a new member.
Real number
A number on the number line, including integers, fractions and numbers such as .
Variable
A letter that represents a number or another chosen value.
Function
A relation assigning exactly one output to every input in its domain.
Input
A value chosen for a function. The definition decides which values are allowed.
Output
The result a function assigns to a particular input.
Algebraic expression
A combination of values, letters and operations, without asserting an equality.
Equation
A statement that two expressions are equal, shown with an equals sign.
Formula
A mathematical instruction connecting quantities, often written as an equation.
Evaluate
Find the output at a given input by applying the rule or reading its representation.
Solve
Find every allowed input that satisfies a stated equation or produces a specified output.
Constant
A value that stays fixed in the stated rule.
Square root
The nonnegative number whose square equals the given nonnegative input.
Distributive property
Multiplying a sum multiplies every term in it: a(b + c) = ab + ac.
Factor
A quantity multiplied by another quantity in a product.
Like terms
Terms with the same variable part and powers, so their coefficients can be combined.
Power
A quantity written with a base and exponent. Positive whole-number exponents count multiplied copies; zero and negative exponents extend that pattern.
Area
The amount of flat surface inside a shape, measured in square units.
Nonnegative
Zero or positive; written x ≥ 0.
≠
A symbol saying two quantities are not equal.
Term
One added or subtracted piece of an expression. Keep its sign with that piece.
1 In plain words
Think of a recipe with a blank for an ingredient amount. You choose a number and put that same number in every copy of the blank. A function formula works that way: evaluating means the input is known and you want the output. Parentheses are a seat belt around the whole input. They keep a negative sign or a sum attached while you square or multiply. If the input is a letter, you make a recipe for any value of that letter. If the input is a sum, put the entire sum in every blank, then multiply out and collect matching terms.
2 Picture it
Reminder
Reminder: Signed arithmetic, Distributive property, Squaring a sum, Subtracting parentheses, Nonzero factor cancellation
- Signed arithmetic. A negative squared is positive when enclosed: (−2 = 4, while 3(−2) = −6.
- Distributive property. Multiply every term inside: 3(a + h) = 3a + 3h.
- Squaring a sum. (a + h = + 2ah + because it contains four products, not two.
- Subtracting parentheses. −( + 3a − 4) = − − 3a + 4; each sign changes.
- Nonzero factor cancellation. = 2a + h only for h ≠ 0.
3 Why
A formula tells how an output is built from its input. Replacing every occurrence of the input variable by the same value applies that definition consistently. Replacing only one occurrence changes the recipe. Parentheses preserve the input as a whole: (−3 squares −3, whereas − negates the square of 3. For sums, distribution rewrites the result without changing its value, because each term multiplies every relevant term in the other group.
4 The rule
To evaluate a formula, replace every input variable with the whole stated input in parentheses, then calculate or expand.
The value or expression you obtain is the output.
The same idea, five ways
f of negative three
The input is −3. Find the output of f at that input.
Fill every ingredient blank with the same amount.
The same idea, other ways
For f(x) = + 3x − 4, the recipe is square the input, add three times the input, then subtract 4. Input 2 gives 4 + 6 − 4 = 6. The name f stays on the machine; 2 is the input and 6 is the output.
Read + 3x − 4 as (blank + 3(blank) − 4. If the input is a + h, write (a + h) in both blanks. This makes f(a + h) = (a + h + 3(a + h) − 4 before any expansion. The parentheses act like a bag keeping all of the input together.
(input + 3(input) − 4
input = a + h
A square with side a + h splits into four rectangles: , ah, ha and . The two middle pieces add to 2ah. That is why (a + h = + 2ah + . The picture uses positive lengths, while multiplication gives the same identity for any real a and h.
Part 1: Numeric substitution
Think of a recipe with two places asking for the same ingredient amount. A function such as f(x) = + 3x − 4 uses the input twice, so you must place your number in both spots. A negative input belongs in parentheses. The square uses the whole negative number, while the separate multiplication by 3 keeps its negative sign. Follow the order of operations after replacing the input.
- Evaluate means input is known and output is wanted.
- f(−3) uses (−3, which is 9. Writing − without parentheses means −(), which is −9.
Reminder
Reminder: Order of operations
- Order of operations. Powers and products come before sums: + 3 × 2 = 4 + 6 = 10.
The same idea, five ways
f of negative three equals negative four.
Replace both input positions by the whole negative input, then compute the output.
Put the same ingredient amount in every matching blank in a recipe.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Draw parentheses around every replacement before doing arithmetic.
- Two blanks, one number: Write f(2) = (2 + 3(2) − 4. Both blanks receive 2, as both copies of your name on a form receive the same name.
- Signed multiplication: For input −3, the square is (−3)(−3) = 9, while 3(−3) = −9. Compute these pieces separately so the two signs cannot get mixed together.
Part 2: Symbolic substitution
A letter can stand for an amount you have not chosen yet, like an empty measuring cup marked a. Replacing x with a gives a recipe for any value of a. Replacing x with a + h puts the entire sum into each input spot. You can leave a correct answer unexpanded, or use the distributive property, multiplying each piece, to rewrite it. Expansion changes the appearance of the output expression, not the value it will have when numbers are chosen.
- An algebraic expression can be an input: f(a + h) means use the whole sum a + h.
- (a + h = (a + h)(a + h) = + ah + ha + = + 2ah + .
- 3(a + h) = 3a + 3h because 3 multiplies each term in the sum.
Reminder
Reminder: Subtracting parentheses
- Subtracting parentheses. A subtraction applies to every term: 7 − (a + 1) = 7 − a − 1.
The same idea, five ways
q of the whole sum a plus one equals a squared plus a.
The complete expression a + 1 replaces each input variable before the result is expanded.
Keep a sealed ingredient bag together when filling each recipe blank.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Write the squared sum as two identical parentheses before expanding; the middle term becomes visible.
- A sealed input bag: Place a + h inside parentheses before following the recipe. You are squaring the bag's whole contents, not squaring a and then adding h.
- Multiply every pair: In (a + h)(a + h), the first a multiplies a and h, then the first h multiplies a and h. The four products are , ah, ha and . None can be skipped.
5 How
- Say what the question asks. Evaluate f(2) means the input is 2; find its output. It does not ask which input produces 2.
- Copy the formula, replacing every input letter with the given input in parentheses.
- For a number, do powers first, then multiplication, then addition and subtraction. For an expression, multiply out parentheses before collecting like terms.
- Check by putting a numerical input into both the starting recipe and the expanded expression. Matching results can catch an expansion error.
Evaluate the entire input
- Say what the question asks. Evaluate f(2) means the input is 2; find its output. It does not ask which input produces 2.
- Copy the formula, replacing every input letter with the given input in parentheses.
- For a number, do powers first, then multiplication, then addition and subtraction. For an expression, multiply out parentheses before collecting like terms.
- Check by putting a numerical input into both the starting recipe and the expanded expression. Matching results can catch an expansion error.
6 Worked example
Worked example
Evaluate g(-2) and g(k - 2) for a function machine
A function machine named g accepts any real number as its input x and produces the output
g(x) = 3 - 8x + 6.
In words, the recipe is: square the input and multiply by 3, subtract 8 times the input, then add 6.
(a) Evaluate g(-2).
(b) Evaluate g(k - 2), where k stands for any real number. Write the output as an expanded expression in k with like terms collected.
Show the steps and the answer
- Say what each part asks. In (a) the input is the number ; find its output. In (b) the input is the whole expression ; find its output, which will be an expression in k.g(-2) names the output of the machine when -2 goes in. It does not ask which input produces an output of -2, so there is no equation to solve: we substitute and calculate.
- For (a), copy the recipe with (-2) in place of every x: .The input letter x appears twice, and each one must be replaced. Parentheses keep the negative sign attached to the input, so the square acts on the whole number -2, sign included.
- Do the power first: , so .Powers come before multiplication. A negative number times itself is positive, so the square is 4. Without the parentheses, - would mean -() = -4, which is not the square of the input.
- Multiply next: and , so . Then add and subtract: .Multiplication comes before addition and subtraction, and subtracting -16 is the same as adding 16. The number 34 is the output for the input -2.
- For (b), copy the recipe with (k - 2) in place of every x: .The whole input k - 2 replaces x, so it goes in parentheses in both places. This is not g(k) - 2: that would subtract 2 from the output, while here 2 is subtracted from the input before the machine works on it.
- Multiply out the square: .The power is still handled first, and for an expression that means multiplying out the parentheses. Squaring multiplies the binomial by itself, which produces the middle term -4k; (k - 2 is not - 4 and not + 4.
- Distribute the 3 and the : and . So .A number in front of parentheses multiplies every term inside. The -8 multiplies the -2 too, and a negative times a negative gives +16.
- Collect like terms: and , so .Only terms with the same power of k can be combined. Nothing more can be simplified, so this expression is the output for the input k - 2.
- Check (b) with a number, say . Starting recipe: the input is , and . Expanded expression: .The recipe and the expanded expression must give the same output for every value of k, so a numerical input can catch an expansion error. Here both give 1. A slip such as -8(k - 2) = -8k - 16 would have produced 3 - 20k + 2, which gives -31 at k = 3 and would not match.
Work to write
- g(-2) = 3(4) - 8(-2) + 6 = 12 + 16 + 6 = 34
- Check with k = 3: g(1) = 3 - 8 + 6 = 1 and 3(3 - 20(3) + 34 = 27 - 60 + 34 = 1
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 3
Evaluation rung 1: a constant and a line
Let k(x) = 5 and L(x) = 4x − 3. Evaluate k(3) and L(4). Each question gives an input and asks for its output.
What it asks. Use each stated input to find its output from the named formula.
Show the steps and the answer
The plan. Replace every input-variable slot with the whole input in parentheses. Work powers before multiplication, and multiplication before adding or subtracting. For a square root, compute its inside first and choose the nonnegative root. Check by following the original recipe again.
- Plan. Replace every input-variable slot with the whole input in parentheses. Work powers before multiplication, and multiplication before adding or subtracting. For a square root, compute its inside first and choose the nonnegative root. Check by following the original recipe again.
- Every input slot receives the complete input, including its sign.
- Square a negative input in parentheses: (−2 = 4. A constant recipe gives the same output for every input.
- Keep separate requested outputs on separate answer lines.
- .This formula always returns 5 and contains no input variable to replace.
- .Replace the x in the second formula with 4.
- .Multiply before subtracting.
- k(3) = 5.
- L(4) = 13.
Rung 2 of 3
Protect a negative input
Let r(x) = 3x − 7. Evaluate r(−4). This means use −4 as the input and find the output.
What it asks. Use each stated input to find its output from the named formula.
Show the steps and the answer
The plan. Replace every input-variable slot with the whole input in parentheses. Work powers before multiplication, and multiplication before adding or subtracting. For a square root, compute its inside first and choose the nonnegative root. Check by following the original recipe again.
- Plan. Replace every input-variable slot with the whole input in parentheses. Work powers before multiplication, and multiplication before adding or subtracting. For a square root, compute its inside first and choose the nonnegative root. Check by following the original recipe again.
- Every input slot receives the complete input, including its sign.
- Square a negative input in parentheses: (−2 = 4. A constant recipe gives the same output for every input.
- Keep separate requested outputs on separate answer lines.
- .The whole negative input replaces x.
- .A positive times a negative is negative.
- .Starting at −12 and subtracting 7 moves seven more places left.
Rung 3 of 3
A sum in both input spots
For s(x) = , evaluate s(a + h). The input is the entire sum a + h; find its output expression.
What it asks. Use the entire expression as input and find the simplified output expression.
Show the steps and the answer
The plan. Replace every input-variable slot with the whole input in parentheses. Expand a squared sum with all four products and distribute multiplication or subtraction through the entire group. Combine matching terms and check by assigning numbers to the input letters.
- Plan. Replace every input-variable slot with the whole input in parentheses. Expand a squared sum with all four products and distribute multiplication or subtraction through the entire group. Combine matching terms and check by assigning numbers to the input letters.
- Every input slot receives the complete input, including its sign.
- A square of a sum includes two middle products. A negative sign outside parentheses changes every enclosed sign.
- Keep separate requested outputs on separate answer lines.
- .A square multiplies the whole input by itself.
- ah ha .Multiply each term in the first parentheses by each term in the second.
- ah .ah and ha are equal, so together they are 2ah.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Put a seat belt of parentheses around each whole input before doing arithmetic.
- A numerical spot-check can expose a wrong expression. A derivation proves the expression for every allowed input.
7 The trap
Losing the middle term when squaring a sum. Write (a + h)(a + h) and keep all four products before combining the two ah terms.