Introduction to Functions
Article Contents
- What is a Function?
- Function Notation f(x)
- Functions as Machines
- Ways to Represent a Function
- Representation by Formula
- Representation by Table
- Representation by Graph
- Real-Life Examples of Functions
- When is a Relation NOT a Function?
- Interactive Exercises
1. What is a Function? {#what-is-a-function}
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 from set to set is a rule that assigns to every element exactly one element .
We write:
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 to describe a function. Here:
- is the name of the function
- is the input (also called the argument)
- is the output (the value of the function at )
Example
This means: "take any number , multiply it by 2, then add 3."
| Input | Calculation | Output |
Different Function Names
Functions don't have to be called . We can use any letter:
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 ).
- The machine applies its rule (e.g., multiply by 2, add 3).
- The machine produces an output .
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 | 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 .
Examples
| Function | Formula | Type |
| Linear | Straight line | |
| Quadratic | Parabola | |
| Direct proportion | Line through origin | |
| Inverse proportion | Hyperbola |
From a formula, you can compute for any allowed input.
6. Representation by Table {#representation-by-table}
A table lists selected input-output pairs:
Tables are useful when:
- You only need specific values
- You are preparing to draw a graph
- The function comes from measured data
Read more in Functions and Tables.
7. Representation by Graph {#representation-by-graph}
A graph shows all input-output pairs as points in the coordinate plane.
The graph gives a visual overview of how the function behaves. Read more in Functions and Graphs.
8. Real-Life Examples of Functions {#real-life-examples}
Functions appear everywhere in daily life:
Temperature during the day
The temperature depends on the time of day :
At 6:00 it might be 10 C, at 14:00 it might be 25 C. Each time has exactly one temperature.
Price of items
If apples cost \Pn$:
Distance and speed
A car travelling at 60 km/h covers a distance that depends on time :
Conversion formulas
Converting Celsius to Fahrenheit:
9. When is a Relation NOT a Function? {#not-a-function}
A relation is not a function if one input produces more than one output.
The Vertical Line Test
On a graph, draw a vertical line at any -value. If the line crosses the curve more than once, it is not a function.
Example: (a circle)
This is not a function because for , we get and -- two outputs for one input.
10. Interactive Exercises {#interactive-exercises}
Test your understanding of function basics:
Summary
| Concept | Description |
| Function | A rule assigning exactly one output to each input |
| notation | = function name, = input, = output |
| Formula | Algebraic rule, e.g. |
| Table | List of input-output pairs |
| Graph | Visual picture of all pairs |
| Vertical line test | If a vertical line crosses the graph more than once, it is not a function |
Related Articles
- Variables in Functions -- dependent vs independent variables
- Functions and Tables -- representing functions with tables
- Functions and Graphs -- plotting and reading graphs
- Domain of a Function -- which inputs are allowed
- Summary of Functions -- quick reference card