← Math Concepts

Functions

A function gives one output for each allowed input. Read the rule, follow the input through it, and check which inputs can produce a given result.

Key Ideas

One output per input

Different inputs may have the same output. One input cannot have two different outputs. In a graph of a function, a vertical line can meet the graph at most once.

Evaluate from the inside out

For f(g(x)), calculate g(x) first and use its result as the input to f. Reversing the order can change the result.

Read what the rule does

A linear function changes by a constant amount for each unit increase in its input. In f(x) = (x − h)2 + k, the minimum output is k at x = h. Inputs equally far from h give the same output.

Choose the rule for the input

A piecewise function gives different formulas for different inputs. Check the condition before substituting. For example, the floor function gives the greatest integer less than or equal to the input, so the floor of −0.7 is −1.

Go Further

Read the change in output

A print shop charges a setup fee of $4 and $3 per poster. For f(x) = 4 + 3x, each additional poster raises the total by $3. The setup fee is the value at zero.

Posters012
Cost$4$7$10

Round down on the number line

The floor of 2.8 is 2. The floor of −0.2 is −1 because −1 is the greatest integer at or below −0.2.

Input−1−0.202.8
Floor−1−102

Try It Yourself

1. The Conflicting Machine Record

A machine is supposed to give exactly one output for each setting. The table shows four recorded tests. Which input shows that the recorded relationship cannot be a function?

Recorded machine tests
InputOutput
16
38
56
39
Show hint

Look for a repeated input, then compare its outputs.

Show solution

The conflicting input is 3, which has outputs 8 and 9. Inputs 1 and 5 both giving 6 is allowed.

2. Two Machines, Two Orders

Let f(x) = 3x − 2 and g(x) = x2 + 1. Start with −2. Find f(g(−2)) and g(f(−2)).

For the first expression, send the input through g before f. Swap the two machines for the second expression.
Show hint

Compute g(−2) and f(−2) separately. Use parentheses when squaring a negative input.

Show solution

g(−2) = 5, then f(5) = 13. In the other order, f(−2) = −8, then g(−8) = 65.

3. Two Inputs, One Output

A puzzle assigns a score of h(x) = (x − 3)2 + 5 to any real-number input x. Which inputs give a score of 14?

The square depends on the distance from 3. Look the same distance to the left and to the right.
Show hint

Subtract 5 from 14. What distances from 3 have that square?

Show solution

(x − 3)2 = 9, so x − 3 is either −3 or 3. The two inputs are 0 and 6. Each gives 9 + 5 = 14.

Watch Next

Graphing Quadratic Functions · Vertex, Intercepts & Symmetry

Connect the last problem to a graph by finding the vertex and line of symmetry in this Shark Academy lesson.

Watch on YouTube