Introduction to Functions

Introduction to Functions

Article Contents

  1. What is a Function?
  2. Function Notation f(x)
  3. Functions as Machines
  4. Ways to Represent a Function
  5. Representation by Formula
  6. Representation by Table
  7. Representation by Graph
  8. Real-Life Examples of Functions
  9. When is a Relation NOT a Function?
  10. 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 CalculationOutput

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:

Input x Function f rule: f(x) = 2x + 3 Output f(x)
  • 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 .
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:

RepresentationDescriptionBest for
FormulaAn equation like Exact calculations
TableA list of input-output pairsSpecific values
GraphA picture in the coordinate planeSeeing 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

FunctionFormulaType
LinearStraight line
QuadraticParabola
Direct proportionLine through origin
Inverse proportionHyperbola

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.

x y 1 2 3 4 5 1 2 3 4 f(x) = 0.5x + 1

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.

Function (passes test) 1 point Not a function (fails test) 2 points!

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

ConceptDescription
FunctionA rule assigning exactly one output to each input
notation = function name, = input, = output
FormulaAlgebraic rule, e.g.
TableList of input-output pairs
GraphVisual picture of all pairs
Vertical line testIf a vertical line crosses the graph more than once, it is not a function