Algebra 1FunctionsF-IF.A.2

Function Notation

f(3) is the output when the input is 3.

Not started Jump to practice

You know that a function gives exactly one output for each input. Function notation is a compact way to say which input you mean. If $f(x) = 2x + 3$, then $f(4)$ is the output when the input is $4$: $f(4) = 2(4) + 3 = 11$. It is evaluating an expression, with a name attached.

Why it works

The letter $f$ names a rule, and the parentheses hold the input. So $f(4)$ is read “$f$ of $4$,” not “$f$ times $4$.” Naming functions lets us talk about several at once ($f$, $g$, $h$) and write sentences like $f(4) = 11$, which says “input $4$ gives output $11$” in one short equation. That is also a point on the graph: $(4, 11)$.
Drag the point along the graph of $f(x) = x^2 - 2x$. Its $x$-coordinate is the input and its $y$-coordinate is the output: the point $(3, 3)$ says $f(3) = 3$.

Key idea

$f(a)$ means: replace every $x$ in the rule for $f$ with $a$, then simplify. The result is the output, and $(a, f(a))$ is a point on the graph of $f$.

Worked examples

Worked example: Evaluate at a negative input

If $g(x) = x^2 - 5x + 1$, find $g(-2)$.
  1. Replace every $x$ with $(-2)$: $g(-2) = (-2)^2 - 5(-2) + 1$.
  2. Simplify: $4 + 10 + 1 = 15$.

Answer: $g(-2) = 15$

Worked example: Combine outputs

If $f(x) = 3x - 4$, find $f(2) + f(-1)$.
  1. $f(2) = 3(2) - 4 = 2$.
  2. $f(-1) = 3(-1) - 4 = -7$.
  3. Add the outputs: $2 + (-7) = -5$.

Answer: $-5$

Worked example: An expression as the input

If $f(x) = x^2 + 1$, find $f(a + 2)$.
  1. The input is the whole expression $a + 2$, so put it in parentheses: $f(a + 2) = (a + 2)^2 + 1$.
  2. Expand: $a^2 + 4a + 4 + 1 = a^2 + 4a + 5$.

Answer: $a^2 + 4a + 5$

Common mistake

Reading $f(x)$ as “$f$ times $x$” and computing $f(3)$ as $3f$. There is no number called $f$ to multiply; $f$ is the name of a rule. Check: $f(3)$ must be a single number you get by putting $3$ into the rule.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 1 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • OpenStax, College Algebra 2e, section 3.1 Functions and Function Notation
  • OpenStax, Intermediate Algebra 2e, section 3.5 Relations and Functions
  • Common Core State Standards for Mathematics, F-IF.A.2: use function notation and evaluate functions
@teddyrookbook GitHub