2.12 Functions
I am studying
Your Progress on Topic 2.12
Notes and practice questions for this topic are being added.
What you will learn in 2.12
Read these goals and key words first, then continue to the lesson.
What you need to know
- A function is a rule that turns one number (the input) into another (the output).
- How to use function notation, like f(x) = 3x - 5 and f(4).
- What the domain and range of a function are.
- How to find an inverse function, f⁻¹(x).
- How to find a composite function, like gf(x).
Key words
| Word | Meaning |
|---|---|
| Function | A rule that gives exactly one output for each input |
| f(x) | "f of x": the output of function f when the input is x |
| Domain | All the inputs (x values) you are allowed to use |
| Range | All the outputs the function can give |
| Inverse function, f⁻¹(x) | The function that undoes f. It takes the output back to the input |
| Composite function, gf(x) | Do f first, then do g to the answer |
Revision Notes: Functions
A function is a machine
Think of a function as a machine. A number goes in, the machine does something to it, and a number comes out.
f(x) = 3x - 5 means: multiply by 3, then subtract 5.
Real-life example: a currency converter
At an exchange shop, $1 = 3.75 riyals. The rule for changing dollars into riyals is a function: f(x) = 3.75x, where x is the number of dollars.
f(20) means "how many riyals for $20?". f(20) = 3.75 × 20 = 75.
Using function notation
Problem: f(x) = 3x - 5. Find (a) f(4) (b) f(-2) (c) the value of x when f(x) = 10.
- (a) Replace x with 4: f(4) = 3(4) - 5 = 12 - 5 = 7.
- (b) Replace x with -2: f(-2) = 3(-2) - 5 = -6 - 5 = -11.
- (c) Write an equation: 3x - 5 = 10. Add 5: 3x = 15. Divide by 3: x = 5.
Answer: (a) 7 (b) -11 (c) x = 5
Domain and range
Problem: Write down the domain or range of each function.
- f(x) = x². Any number can go in, so the domain is all numbers. A square is never negative, so the range is f(x) ⩾ 0.
- g(x) = 1/(x - 2). You cannot divide by 0, so x - 2 cannot be 0. The domain is x ≠ 2.
- h(x) = √x. You cannot take the square root of a negative number (in this course). The domain is x ⩾ 0.
Inverse functions
The inverse undoes the function. If f turns 4 into 7, then f⁻¹ turns 7 back into 4.
Method
- Write y = f(x).
- Rearrange to make x the subject.
- Swap: replace y with x, and write f⁻¹(x) = ...
Problem: f(x) = (2x + 1)/3. Find f⁻¹(x).
- y = (2x + 1)/3.
- Multiply both sides by 3: 3y = 2x + 1.
- Subtract 1: 3y - 1 = 2x.
- Divide by 2: x = (3y - 1)/2.
- Write it with x: f⁻¹(x) = (3x - 1)/2.
Answer: f⁻¹(x) = (3x - 1)/2
Real-life example: changing riyals back to dollars
Problem: f(x) = 3.75x changes dollars into riyals. Find f⁻¹(x) and use it to change 300 riyals into dollars.
- y = 3.75x.
- Divide by 3.75: x = y/3.75.
- f⁻¹(x) = x/3.75.
- f⁻¹(300) = 300 ÷ 3.75 = 80.
Answer: f⁻¹(x) = x/3.75, and 300 riyals = $80
Composite functions
gf(x) means: do f first, then put the answer into g. Work from the inside out, like g(f(x)).
Problem: f(x) = 2x + 3 and g(x) = x². Find (a) fg(3) (b) gf(3) (c) fg(x) (d) gf(x).
- (a) fg(3): g first. g(3) = 3² = 9. Then f(9) = 2(9) + 3 = 21.
- (b) gf(3): f first. f(3) = 2(3) + 3 = 9. Then g(9) = 9² = 81.
- (c) fg(x): put g(x) = x² into f. f(x²) = 2x² + 3. So fg(x) = 2x² + 3.
- (d) gf(x): put f(x) = 2x + 3 into g. g(2x + 3) = (2x + 3)².
Answer: (a) 21 (b) 81 (c) 2x² + 3 (d) (2x + 3)²
Real-life example: a discount and a delivery charge
An online shop takes 20% off, and charges $5 for delivery.
- f(x) = 0.8x takes 20% off the price x.
- g(x) = x + 5 adds the delivery charge.
Problem: A pair of shoes costs $50. Does the order matter?
- gf(50): discount first. f(50) = 0.8 × 50 = 40. Then g(40) = 40 + 5 = $45.
- fg(50): delivery first. g(50) = 50 + 5 = 55. Then f(55) = 0.8 × 55 = $44.
Answer: Yes. Adding delivery first and then taking 20% off everything is $1 cheaper. The shop will do the discount first.
ff(x)
Problem: f(x) = 2x + 3. Find ff(x).
- Put f(x) into f: f(2x + 3) = 2(2x + 3) + 3.
- Expand: 4x + 6 + 3 = 4x + 9.
Answer: ff(x) = 4x + 9
Common mistakes
- Doing the functions in the wrong order. In gf(x), f is done first.
- Thinking f⁻¹(x) means 1/f(x). It means the inverse, not "1 over".
- Forgetting to swap y back to x at the end of finding an inverse.
Exam tips
- Check an inverse by putting a number through f and then through f⁻¹. You should get back where you started.
- For composite functions with algebra, use brackets: write f(2x + 3), then replace every x in f with (2x + 3).
The whole topic on one page
Notation
- f(x) = 3x - 5
- f(4): put 4 in
- Domain: inputs
- Range: outputs
Inverse f⁻¹(x)
- y = f(x)
- Make x the subject
- Swap back to x
- It undoes f
Composite gf(x)
- f first, then g
- fg and gf are usually different
- ff(x): f twice
Real life
- Currency converter
- Discount then delivery
Notation
- f(x) = 3x - 5
- f(4): put 4 in
- Domain: inputs
- Range: outputs
Inverse f⁻¹(x)
- y = f(x)
- Make x the subject
- Swap back to x
- It undoes f
Composite gf(x)
- f first, then g
- fg and gf are usually different
- ff(x): f twice
Real life
- Currency converter
- Discount then delivery
Flashcards (9 cards)
Say the answer in your head first, then flip. Mark the ones you missed and go through them again.
Keyboard: Space to flip · ← → to move · 1 Again · 2 Got it
Still stuck? Ask the AI tutor
Ask about anything in topic 2.12. Answers are based on these notes.