Skip to main content

Evaluating Functions

Understand function notation f(x), evaluate functions at given inputs, interpret domain and range, and see how functions model real-world relationships.

Lesson 11 of 11 Algebra & Equations Intermediate ⏱ 9 min read
πŸ”₯ Why This Matters

Every time you use a formula β€” converting Celsius to Fahrenheit, calculating compound interest, predicting population growth β€” you're using a function. In programming, every method or procedure is a function. In science, every law (F = ma, E = mcΒ²) is a function. The function is the universal language of quantitative relationships, and f(x) notation is how mathematicians, scientists, and engineers write them.

🎯 What You'll Learn
  • Read and write function notation: f(x), g(t), h(n)
  • Evaluate a function at any given input value
  • Identify the domain (valid inputs) and range (resulting outputs) of a function
  • Use functions to model real-world relationships
πŸ“– Key Vocabulary
FunctionA rule that assigns exactly one output to each input. Each x has exactly one y. f(x) NotationRead as "f of x" β€” the name of the function is f; x is the input variable. Input (x)The value you plug into the function β€” also called the independent variable or argument. Output f(x)The result after applying the function rule β€” also called the dependent variable or value. DomainThe set of all valid input values (x values) for the function. RangeThe set of all possible output values (f(x) values) produced by the function.
Key Concept β€” Function Notation

\(f(x) = 3x^2 - 2x + 1\) defines a function named f with input x. The notation \(f(4)\) means "evaluate f when x = 4": substitute 4 everywhere you see x.

\[ f(4) = 3(4)^2 - 2(4) + 1 = 3(16) - 8 + 1 = 48 - 8 + 1 = 41 \]

Think of a function as a machine: you put in an input (x), it applies the rule, and out comes one output (f(x)). Same input β†’ same output, every time.

Function Machine β€” f(x) = 2x + 5

Input
x = 3
β†’
f(x) = 2x + 5
apply the rule
β†’
Output
f(3) = 11

2(3) + 5 = 6 + 5 = 11

Worked Example 1 β€” Basic: Evaluate at a Number

Given \(f(x) = 5x - 3\), find \(f(2)\) and \(f(-1)\).

  • \(f(2) = 5(2) - 3 = 10 - 3 = 7\)
  • \(f(-1) = 5(-1) - 3 = -5 - 3 = -8\)

Each input gives exactly one output β€” that's what defines a function.

Worked Example 2 β€” Intermediate: Evaluate at an Expression

Given \(g(x) = x^2 + 1\), find \(g(a+1)\).

  1. Replace x with (a+1): \(g(a+1) = (a+1)^2 + 1\)
  2. Expand: \((a+1)^2 = a^2 + 2a + 1\)
  3. Add 1: \(g(a+1) = a^2 + 2a + 2\)
\[ g(a+1) = a^2 + 2a + 2 \]
Worked Example 3 β€” Real World: Temperature Model

The temperature in a city during a cold snap is modeled by \(T(h) = -0.5h + 60\) where h = hours after midnight and T = temperature in Β°F.

  • \(T(0)\) = midnight temperature: \(-0.5(0) + 60 = 60Β°F\)
  • \(T(12)\) = noon temperature: \(-0.5(12) + 60 = -6 + 60 = 54Β°F\)
  • \(T(h) = 32\) (freezing): \(-0.5h + 60 = 32\) β†’ \(h = 56\) β†’ 56 hours after midnight

The function predicts temperature at any hour β€” and we can solve backward to find when freezing occurs.

✏️ Quick Check

Given \(f(x) = 2x^2 - x + 3\):

  1. Find \(f(0)\)
  2. Find \(f(-2)\)
  3. For what value of x does \(f(x) = 12\)?
β–Ά Show Answers
  1. \(f(0) = 0 - 0 + 3 =\) 3
  2. \(f(-2) = 2(4) - (-2) + 3 = 8 + 2 + 3 =\) 13
  3. \(2x^2 - x + 3 = 12\) β†’ \(2x^2 - x - 9 = 0\) β†’ x β‰ˆ 2.34 or βˆ’1.84 (two solutions)
⚠️ Common Mistakes
  • Reading f(x) as multiplication: \(f(3)\) does NOT mean f Γ— 3. It means "evaluate the function f at the input x = 3."
  • Forgetting to square the entire substituted expression: For \(f(x) = x^2\), \(f(a+1) = (a+1)^2\), NOT \(a^2 + 1\).
  • Confusing domain and range: Domain = inputs (x values); Range = outputs (y or f(x) values). Check which is being asked.
βœ… Key Takeaways
  • f(x) = rule: function notation packages a rule so we can evaluate it at any input.
  • Evaluate by substituting the input for every x β€” use parentheses to avoid sign errors.
  • Domain = valid inputs; range = resulting outputs.
  • Functions model the world β€” every formula with a variable input is a function.
πŸ’Ό Career Connection β€” Software Engineering

In programming, functions are the cornerstone of all code: you define a function with inputs (parameters) and a rule (the body), then call it at any input. The mathematical definition of a function β€” one output per input, encapsulated in a named rule β€” is identical to a programming function. Every software developer uses function thinking dozens of times per day.

Calculator Connection

Use the Function Evaluation Calculator to evaluate any function at a given input with step-by-step substitution shown. The Function Plotter graphs your function so you can visualize the domain, range, and behavior across all inputs.

Try it with the Calculator

Apply what you've learned with these tools.

Function Evaluation
Evaluate any function f(x) by substituting a value and computing the result step by step.
Use calculator β†’
Function Plotter
A high-performance interactive graphing calculator powered by Math.js and ECharts.
Use calculator β†’
← Previous Lesson
Back to
Slope and Linear Relationships
Test Your Knowledge

Evaluating Functions - Quiz

5 questions per attempt  Β·  Intermediate  Β·  Pass at 70%

Start Quiz β†’

More in Algebra & Equations

Understanding Order of Operations Variables and Expressions Order of Operations (PEMDAS) with Variables
← All Algebra & Equations lessons