A function is a special relation in which every element of the domain is paired with exactly one element of the codomain. On a graph, this is tested with the vertical line test: if some vertical line meets the graph more than once, the relation is not a function. A function f from A to B is written f: A → B, and f(x) is the image of x.
Key terms
- Function
- a relation giving each input exactly one output
- One-to-one (injective)
- distinct inputs have distinct outputs
- Onto (surjective)
- range equals the codomain
- Bijective
- both one-to-one and onto
- Even function
- f(−x) = f(x)
- Odd function
- f(−x) = −f(x)
- Greatest integer function ⌊x⌋
- the largest integer not exceeding x
Key formulas
Summary
- A function gives exactly one output per input (vertical line test).
- One-to-one: horizontal line test; onto: range = codomain.
- Classification depends on the stated domain and codomain.
In everyday life: Each Ethiopian national ID number belongs to exactly one person, and no two people share a number, which is a one-to-one function from people to ID numbers.
Check yourself
- Is f(x) = x² on ℝ one-to-one? Why?
- Give an example of an even function.
- Find ⌊3.9⌋ and ⌊−0.5⌋.
Practice questions
1. True or false: The function f: ℝ → ℝ, f(x) = x² is one-to-one.
Show answer
Answer: False
f(2) = f(−2) = 4, so two different inputs share an output; a horizontal line meets the parabola twice.
On WeLearn
The full lesson: reading notes, worked examples, class activities and the Unit 1 quiz
Study Types of Functions on WeLearnTeach Types of Functions with WeLearn
We will bring a demo to your school: a lesson on your interactive TV, a virtual lab and a classroom game, with your own teachers.
