DWG NO. 1.2 — Lesson 2 of 6

Function Notation and Evaluating Functions

Unit 1: Functions and Their Graphs · ~15 min

Objective Evaluate functions at numeric and algebraic inputs using function notation, including piecewise functions.

Reading f(x)

f(x) doesn't mean "f times x." It means "the output that f produces when you feed it x." Think of a function as a machine: whatever you put in, it processes according to its rule, and something specific comes out the other side. f(3) asks the machine what comes out when the input is 3 — you find out by substituting 3 for every x in the rule and simplifying.

x f(x) the rule f(x) input process output

A function as a machine — an input goes in, the rule is applied, one output comes out

Evaluating with algebraic inputs

The same substitution works even when the input isn't a number yet — it can be an expression like a+h or 2x. Substitute the whole expression everywhere the variable appears, then simplify. This skill matters beyond this lesson: it's exactly what you'll need for composing functions in 1.5 and for calculus's difference quotient later on.

Piecewise functions

A piecewise function uses different rules for different parts of the domain. To evaluate one at a specific input, first check which piece's condition the input satisfies, then apply only that piece's rule.

Worked Example 1 · Numeric input
ProblemLet f(x) = 3x² − 2x + 1. Find f(−2).
1Substitute −2 for every x: f(−2) = 3(−2)² − 2(−2) + 1.
2Simplify: 3(4) − (−4) + 1 = 12 + 4 + 1.
f(−2) = 17
Worked Example 2 · Algebraic input
ProblemLet g(x) = 2x + 5. Find g(a+3).
1Substitute (a+3) for x: g(a+3) = 2(a+3) + 5.
2Distribute and simplify: 2a + 6 + 5.
g(a+3) = 2a + 11
Worked Example 3 · Piecewise function
Problemh(x) = x² if x < 0, and h(x) = 2x + 1 if x ≥ 0. Find h(−3) and h(4).
1For h(−3): since −3 < 0, use the first piece: h(−3) = (−3)² = 9.
2For h(4): since 4 ≥ 0, use the second piece: h(4) = 2(4) + 1 = 9.
h(−3) = 9  ·  h(4) = 9

Guided practice