The Definition of a Function
A function is a rule that gives exactly one output for each input, so you always know what you'll get. The notation just means "what gives back when you put in 4."
What the symbols mean
- Function name
A rule that turns each input into exactly one output.
- Input
The value you plug in.
- Output
What the rule gives back when the input is 4.
Explanation
A function is simply a machine: you put a number in, and it hands exactly one number back. A vending machine is a good picture; press B4 and you get the same snack every time, never two different ones. The notation up top has three pieces: (the name of the machine), (what you put in) and (what comes out when you put in 4). It looks like multiplication, but it isn't; it's just a label. Functions are how science writes "this depends on that."
Exactly one output. is a function: each gives one . But isn't, because gives both and . A machine that sometimes hands back two answers isn't much use.
Vertical line test. On a graph, the inputs run along the x-axis, so a vertical line picks out one input. If any vertical line crosses the graph twice, that input has two outputs, and it's not a function of .
Evaluating. Replace every with the input, wrapped in parentheses so nothing gets lost: .
Domain and range. The domain is the inputs that make sense. Throw out anything that divides by zero or takes an even root of a negative number. The range is the outputs that actually come out.
A common mistake. It's tempting to think is just , as if the notation distributed. It doesn't: means "feed the whole thing into the rule." With , , which is not .
See it
Worked examples
For , find .
- 1
Replace every with : .
Practice
Type your answer and check it. Solve them all to complete the lesson.
For , find .
For , find in terms of .
What is the domain of ?
Which inputs are excluded from the domain of ?
Is a function of ?
A parking garage charges dollars for hours. Find .
For , simplify .
The hardest one here. Get it, and you've got this lesson.
The function satisfies for every . Find .
Where it's used
Every formula in science is a function: temperature as a function of time, dosage as a function of body mass, price as a function of demand. Spreadsheet cells and programming functions follow the same idea.