A function is a rule that assigns exactly one output to each input. Think of it as a reliable machine: you put something in, and you always get the same thing out.
Formal Definition
A function f from set A to set B is a rule that assigns to every element x∈Aexactly one element y∈B.
We write:
f:A→B
The key word is exactly one -- for each input, there is one and only one output.
2. Function Notation f(x) {#function-notation}
We use the notation f(x) to describe a function. Here:
f is the name of the function
x is the input (also called the argument)
f(x) is the output (the value of the function at x)
Example
f(x)=2x+3
This means: "take any number x, multiply it by 2, then add 3."
Input x
Calculation
Output f(x)
x=0
2(0)+3
f(0)=3
x=1
2(1)+3
f(1)=5
x=−2
2(−2)+3
f(−2)=−1
x=4
2(4)+3
f(4)=11
Different Function Names
Functions don't have to be called f. We can use any letter:
g(x)=x2,h(t)=3t−1,p(n)=n+7
3. Functions as Machines {#functions-as-machines}
A helpful way to think about functions is as a machine:
You feed the machine an input (a number x).
The machine applies its rule (e.g., multiply by 2, add 3).
The machine produces an outputf(x).
Important: The same input always produces the same output. The machine is consistent.
4. Ways to Represent a Function {#ways-to-represent}
There are three main ways to describe a function:
Representation
Description
Best for
Formula
An equation like f(x)=x2−1
Exact calculations
Table
A list of input-output pairs
Specific values
Graph
A picture in the coordinate plane
Seeing the overall shape
Each representation shows the same function from a different perspective.
5. Representation by Formula {#representation-by-formula}
A formula gives a precise rule for computing f(x).
Examples
Function
Formula
Type
Linear
f(x)=3x+2
Straight line
Quadratic
f(x)=x2
Parabola
Direct proportion
f(x)=5x
Line through origin
Inverse proportion
f(x)=x6
Hyperbola
From a formula, you can compute f(x) for any allowed input.
6. Representation by Table {#representation-by-table}