Algebra · Lesson 15 of 16
Functions and Graphs
A function is a rule that turns each input into exactly one output. Its graph is a picture of every input–output pair.
What you will learn
- Use function notation f(x).
- Find domain and range, composite and inverse functions.
- Recognise the graph of a function.
Before you start: you should know substitution and straight-line graphs. See Linear Equations.
The idea
A function is a machine: put a number in, apply a rule, get a number out. The crucial condition is that each input produces exactly one output. The rule “double it and add one” is a function; so is “square it”.
We name functions with letters and write
read as ” of equals ”. Then means “put into the machine”: .
Domain and range
- The domain is the set of inputs allowed. For , the domain is , because you cannot take the real square root of a negative number.
- The range is the set of outputs the function actually produces. For , the range is .
Graphs
Plot every input against its output and you get the graph . The graph is a complete visual record of the function. A quick test: a curve is the graph of a function only if every vertical line crosses it at most once.
Transforming graphs
Small changes to the rule move the graph in predictable ways:
- shifts the graph up .
- shifts it right (note the opposite sign).
- stretches it vertically by factor .
- reflects it in the -axis.
Worked examples
Example 1: Evaluating and solving
For , find and solve .
- Substitute: .
- To solve , write , so .
- Factorise: .
Answer: ; when or .
Example 2: Composite functions
Let and . Find and .
- Work from the inside out. , then .
- For the other order: , then .
Answer: and . Order matters.
Example 3: Finding an inverse
Find the inverse of .
- Write .
- Rearrange to make the subject: , so .
- Swap the letters back to name the inverse: .
- Check: and . ✓
Answer:
The graph of an inverse function is the reflection of the original graph in the line .
Why it matters
Functions are how mathematics models the world. Temperature as a function of time, profit as a function of price, the height of a ball as a function of seconds since it was thrown. Every spreadsheet column calculated from another is a function, and every line of code that takes an input and returns a value is one too.
Functions are the objects that calculus studies. The derivative of a function describes its rate of change, and composite functions are exactly what the chain rule differentiates.
Practice
Your turn. Type or choose an answer, then press Check. Getting one wrong is fine, that is what practice is for. You can try as many times as you like.