O Level 4024 · Section 2 · Topic 2.12

2.12 Functions

O Level 4024: topic 2.12 · IGCSE 0580: Extended only (topic 2.13)

I am studying

Your Progress on Topic 2.12

Notes and practice questions for this topic are being added.

Status:Not started
Read Notes
Not read yet
Start here

What you will learn in 2.12

Read these goals and key words first, then continue to the lesson.

What you need to know

Extended and O Level only. This topic is not in IGCSE Core. (In O Level 4024 this topic is numbered 2.12.)
  • 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

WordMeaning
FunctionA rule that gives exactly one output for each input
f(x)"f of x": the output of function f when the input is x
DomainAll the inputs (x values) you are allowed to use
RangeAll 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
Read

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.

  1. (a) Replace x with 4: f(4) = 3(4) - 5 = 12 - 5 = 7.
  2. (b) Replace x with -2: f(-2) = 3(-2) - 5 = -6 - 5 = -11.
  3. (c) Write an equation: 3x - 5 = 10. Add 5: 3x = 15. Divide by 3: x = 5.

Answer: (a) 7 (b) -11 (c) x = 5

f(4) means "put 4 in". It does not mean f × 4.

Domain and range

Problem: Write down the domain or range of each function.

  1. 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.
  2. g(x) = 1/(x - 2). You cannot divide by 0, so x - 2 cannot be 0. The domain is x ≠ 2.
  3. 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

  1. Write y = f(x).
  2. Rearrange to make x the subject.
  3. Swap: replace y with x, and write f⁻¹(x) = ...

Problem: f(x) = (2x + 1)/3. Find f⁻¹(x).

  1. y = (2x + 1)/3.
  2. Multiply both sides by 3: 3y = 2x + 1.
  3. Subtract 1: 3y - 1 = 2x.
  4. Divide by 2: x = (3y - 1)/2.
  5. Write it with x: f⁻¹(x) = (3x - 1)/2.

Answer: f⁻¹(x) = (3x - 1)/2

Check: f(4) = (8 + 1)/3 = 3. Then f⁻¹(3) = (9 - 1)/2 = 4. You get back to 4. Correct.

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.

  1. y = 3.75x.
  2. Divide by 3.75: x = y/3.75.
  3. f⁻¹(x) = x/3.75.
  4. 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)).

gf(x) = g(f(x)). The function nearest to x is done first.

Problem: f(x) = 2x + 3 and g(x) = x². Find (a) fg(3) (b) gf(3) (c) fg(x) (d) gf(x).

  1. (a) fg(3): g first. g(3) = 3² = 9. Then f(9) = 2(9) + 3 = 21.
  2. (b) gf(3): f first. f(3) = 2(3) + 3 = 9. Then g(9) = 9² = 81.
  3. (c) fg(x): put g(x) = x² into f. f(x²) = 2x² + 3. So fg(x) = 2x² + 3.
  4. (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)²

fg and gf are usually different. The order matters.

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?

  1. gf(50): discount first. f(50) = 0.8 × 50 = 40. Then g(40) = 40 + 5 = $45.
  2. 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).

  1. Put f(x) into f: f(2x + 3) = 2(2x + 3) + 3.
  2. 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).
Mind map

The whole topic on one page

Functions

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
Recall

Flashcards (9 cards)

Say the answer in your head first, then flip. Mark the ones you missed and go through them again.

Card 1 of 9
Ask

Still stuck? Ask the AI tutor

Ask about anything in topic 2.12. Answers are based on these notes.

Loading…