KS Maths
Topic 2.7 · Applications and Interpretation HL

Composite and inverse functions

The order is worth seven baht

A shop takes 100 baht off and adds 7% VAT. On a 1,000 baht ticket price that comes to 963 one way round and 970 the other. The seven baht is the VAT on the discount, and it is seven baht at every price.

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

function
A rule that gives exactly one output for each input.f(x) = x plus 2 is a function.
inverse
The operation that undoes another one.Subtraction is the inverse of addition.
inverse function
A function that undoes another function.If f adds 2, its inverse subtracts 2.
input
The number you put into a function or machine.If the input is 3, the output is 5.
output
The number that comes out of a function or machine.The function adds 2 to the input to give the output.
domain
All the input values a function can use.The domain of the square root is zero and above.
composite function
A function made by doing one function and then another.f(g(x)) means do g first, then f.
square
Multiply a number by itself. Also, a shape with four equal sides and four right angles.5 squared is 25.
square root
A number that gives the original number when multiplied by itself.The square root of 25 is 5.
range
The difference between the biggest and smallest value. Also, all the output values of a function.Data from 2 to 9 has range 7.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Three quick ones from earlier work. Try each on paper before you open the answer.

  1. Evaluate (2x + 1)² when x = 3.
    Answer

    49. Work out the bracket first, 2 × 3 + 1 = 7, then square it. Squaring each part separately gives 19, which is the slip to watch.

  2. Make x the subject of y = 3x − 4.
    Answer

    x = (y + 4) ÷ 3. Undo the subtraction first by adding 4, then undo the multiplication by dividing by 3. An inverse function is this undoing.

  3. Solve the equation (x − 1)² = 16.
    Answer

    x = 5 or x = −3. A square root gives two values, +4 and −4, so x − 1 = 4 or x − 1 = −4. Restricting a domain is how a function chooses just one.

Words used in this lesson
function
a rule that gives exactly one output for each input. For example: f(x) = 2x + 1 gives one output for each x.
composite function
one function applied to the result of another. For example: if f(x) = x + 1 and g(x) = 3x then f(g(x)) = 3x + 1.
inverse function
the function that undoes the first one. For example: if f doubles then its inverse halves.
input, output
the number that goes in, and the number that comes out. For example: in f(4) = 9, the input is 4 and the output is 9.
domain
the set of inputs that are allowed. For example: the domain x ≥ 3 allows only inputs of 3 or more.
range
the set of outputs the function gives. For example: y = x² has range y ≥ 0.
restrict
cut the domain down so the function behaves better. For example: restrict x² to x ≥ 0 so each output has one input.
one-to-one
each output comes from exactly one input. For example: y = 2x is one-to-one; y = x² is not.
self-inverse
a function that is its own inverse. For example: f(x) = −x undoes itself.
show that
prove the statement using the working shown. For example: “show that f(f(x)) = x” asks you to work it out and end at x.
discount firstVAT first1000.00− 100900.00× 1.07963.001000.00× 1.071070.00− 100970.007.00 baht apartTwo orders, two answers. The gap is the VAT on the 100 baht discount.Socks before shoes. The function written on the inside runs first.
963.00discount, then VAT
970.00VAT, then discount
7.00 baht apartverdict

The same two operations. Only the order changes, and the gap never does.

Writing it down

Call the two operations d for discount and v for VAT:

  1. d(x) = x − 100
  2. v(x) = 1.07x

Then the two orders are two different composite functions:

  1. (v ∘ d)(x) = v(d(x)) = 1.07(x − 100) = 1.07x − 107
  2. (d ∘ v)(x) = d(v(x)) = 1.07x − 100

Subtract them and the x disappears: the gap is 7, whatever the price. That is the 7% VAT on the 100 baht that one order charges and the other does not.

(f ∘ g)(x) means f(g(x)): g happens first. The function written on the inside runs first, which is the opposite of the reading order and the reason people get it backwards. Read it right to left, like putting on socks before shoes.

The rest of this lesson is in the full course

Still to come in this lesson:

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

IB Diploma plan: AI HL$99Every Diploma lesson in both courses and both levels, so a change of course never locks you out, and every lesson from Year 7 for the refreshers. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

AI HL Mock Exam Pack, $25BuyPlan $99