Evaluating Functions with Numeric Inputs
What You'll Learn
You'll learn how to substitute specific numbers into functions and calculate their outputs using the correct order of operations.
The Core Idea
Think of a function as a machine: you drop a number in, and it performs specific operations to produce an output. When you evaluate a function, you're simply replacing the input variable with a concrete number and calculating the result.
If you have a function written as f(x) = 3x² - 5x + 2, and you need to find f(4), here's what you do:
- Replace every x with 4:
f(4) = 3(4)² - 5(4) + 2 - Follow order of operations (PEMDAS/BODMAS):
- Handle exponents first:
f(4) = 3(16) - 5(4) + 2 - Multiply next:
f(4) = 48 - 20 + 2 - Add and subtract left to right:
f(4) = 30
- Handle exponents first:
Key Steps to Remember
-
Parentheses are your friend: When substituting, always put the input value in parentheses, especially with negatives. For
f(-2) = x² + 3x, write(-2)² + 3(-2)to avoid sign errors. -
Apply order of operations carefully: Exponents before multiplication, multiplication before addition—every time.
-
Show your work step-by-step: Don't try to do everything mentally. Write out each calculation stage.
Example Walkthrough
For g(x) = -2x³ + 4x - 1, evaluate g(-3):
g(-3) = -2(-3)³ + 4(-3) - 1g(-3) = -2(-27) + 4(-3) - 1g(-3) = 54 - 12 - 1g(-3) = 41
Key Takeaway: Evaluating a function means substituting the input for every instance of the variable, then carefully computing the result using proper order of operations—treating the function like a precise mathematical recipe.