Skip to content
IB Diploma ProgrammeSL & HL

Composite and inverse functions

Mathematics: Applications and Interpretation SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Composite and inverse functions notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Composite and inverse functions notes as text: skim, search, and jump between subtopics.

~14 min read

1. Composite functions: notation and meaning

The composite function (f ° g)(x) means f(g(x)). Work from the inside out: apply g to x first, then apply f to the result.

The order matters. In general (f ° g)(x) and (g ° f)(x) are different functions.

In context, each function is one step of a process. A describe-the-meaning question wants the order in which the steps happen. A justify question wants evidence: the two prices for the given x, or the two composites written out.

(f ° g)(x) = f(g(x))

(f ° g)(x) ≠ (g ° f)(x) in general

Worked example 16 marks

Walkea Tree is a furniture store. They offer a 30% discount on all chairs priced over 250 Canadian dollars (CAD).

A different furniture store, LuxeCraft, offer customers a reduction of 150 CAD on all chairs priced over 250 CAD.

(a) Given that x is the original price of a chair and x > 250,(i) write down a function f(x) that models the final price of a chair at Walkea Tree, after the discount is applied.(ii) write down a function g(x) that models the final price of a chair at LuxeCraft, after the reduction is applied.

A third store, Opulent Furnishings, decides to offer both a 30% discount and a reduction of 150 CAD on all their chairs priced over 250 CAD.

(b) Describe the meaning of (f ° g)(x), in context.

(c) State, with justification, whether (f ° g)(x) or (g ° f)(x) is better for the customer when they buy a chair with an original price of 450 CAD.

  1. 1

    A1: (a)(i) f(x) = 0.7x or f(x) = x - 0.3x [1]

  2. 2

    A1:(ii) g(x) = x - 150 [1]

  3. 3

    M1:(b) attempt to discuss the order in which the reduction and the discount are applied [1]

  4. 4

    A1: (f ° g)(x) describes when the 150 CAD reduction is applied before the 30% discount [1]

  5. 5

    R1:(c) (f ° g)(x) = 0.7x - 105 and (g ° f)(x) = 0.7x - 150 seen, or the numbers 165, 210 seen [1]

  6. 6

    A1: (g ° f)(x) is better for the customer. Do not award R0A1. [1]

  7. 7

    Check at 450: (g ° f)(450) = 0.7 × 450 - 150 = 165 and (f ° g)(450) = 0.7 × (450 - 150) = 210. The lower price is better.

2. Composite functions as a model

A model can feed the output of one function into another. In E(C(t)), the function C turns time into concentration and E turns concentration into effectiveness. The composite takes time straight to effectiveness.

To solve E(C(t)) = k there are two routes. Write the composite E(t) and solve it on the GDC, or solve E(C) = k for C first and then solve C(t) equal to that value.

On the GDC, enter the composite as one function, enter k as a second, and find the intersection. Give t with its unit and discard a negative t when the domain is t ≥ 0.

E(C(t)) = ln(C(t) + 1.5) - 1/(C(t) + 1)

solve E(C) = k ⇒ C ⇒ solve C(t) = C

Worked example 15 marks

The effectiveness, E, of a new drug compared to its concentration within a person is being studied by a company. The concentration, C mg/L, of the new drug within a person can be modelled by the function

C(t) = 150/(1 + 0.35t²), t ≥ 0,

where t is the number of hours after the drug is given to the person.

(a) Write down the initial concentration of the drug within the person.

The company finds that E can be modelled in terms of C by the function

E(C) = ln(C + 1.5) - 1/(C + 1), C ≥ 0.

(b) Find the value of t such that E = 2.

  1. 1

    A1:(a) 150 mg/L, since C(0) = 150/(1 + 0) [1]

  2. 2

    M1:(b) attempt to find the composite function E(t) [1]

  3. 3

    A1: E(t) = ln(150/(1 + 0.35t²) + 1.5) - 1/(150/(1 + 0.35t²) + 1) [1]

  4. 4

    M1: setting E(t) equal to 2 and solving on the GDC [1]

  5. 5

    A1: t = 7.70 hours (7.70484…) [1]

  6. 6

    Method 2: solve ln(C + 1.5) - 1/(C + 1) = 2 to get C = 6.88779…, then solve 150/(1 + 0.35t²) = 6.88779… for the same t. A negative solution is not given as the answer.

3. Inverse functions and how to find one

The inverse function f⁻¹ undoes f. If f takes a to b, then f⁻¹ takes b back to a.

To find an inverse function, write y = f(x), exchange x and y, then make y the subject. The result is f⁻¹(x). The markscheme gives a mark for the attempt to exchange variables.

Composing a function with its inverse, in either order, gives back x. Use this to check your answer.

(f ° f⁻¹)(x) = (f⁻¹ ° f)(x) = x

y = f(x) → x = f(y) → y = f⁻¹(x)

Worked example 14 marks

The function f is defined by f(x) = 1.8x + 32, where x is a temperature in degrees Celsius and f(x) is the temperature in degrees Fahrenheit. Find f⁻¹(x) and show that (f ° f⁻¹)(x) = x.

  1. 1

    M1: attempt to exchange variables: x = 1.8y + 32 [1]

  2. 2

    A1: f⁻¹(x) = (x - 32)/1.8 [1]

  3. 3

    M1: substitute f⁻¹(x) into f: (f ° f⁻¹)(x) = 1.8 × (x - 32)/1.8 + 32 [1]

  4. 4

    A1: = x - 32 + 32, so (f ° f⁻¹)(x) = x (AG) [1]

  5. 5

    Check with a value: f(10) = 50 and f⁻¹(50) = 18/1.8 = 10.

4. Restricting the domain

A function has an inverse only if each output comes from one input. A quadratic does not: two values of x give the same y. So restrict the domain to one side of the vertex.

The syllabus example: f(x) = (x - 3)² - 2 has an inverse if the domain is restricted to x ≥ 3 or to x ≤ 3. The vertex is at x = 3. The sketch shows y = (x - 3)²: the -2 moves the curve down but not the split.

The restriction chooses the sign of the square root. The range of f⁻¹ is the domain of f, so x ≥ 3 means f⁻¹(x) ≥ 3 and the positive root is taken.

domain x ≥ 3: f⁻¹(x) = 3 + √(x + 2)

domain x ≤ 3: f⁻¹(x) = 3 - √(x + 2)

Worked example 15 marks

The function f is defined by f(x) = (x + 2)² - 5 for x ≥ -2.

(a) Find f⁻¹(x).

(b) Write down the range of f⁻¹.

  1. 1

    M1: attempt to exchange variables: x = (y + 2)² - 5 [1]

  2. 2

    A1: y + 2 = ±√(x + 5) [1]

  3. 3

    R1: the domain of f is x ≥ -2, so y ≥ -2 and the root is positive [1]

  4. 4

    A1: f⁻¹(x) = -2 + √(x + 5) [1]

  5. 5

    A1:(b) the range of f⁻¹ is the domain of f: f⁻¹(x) ≥ -2 [1]

  6. 6

    Check: f(0) = 2² - 5 = -1 and f⁻¹(-1) = -2 + √4 = 0.

5. Inverse of a logarithmic function

Combine logarithms first, with the log laws, so y appears once. Then exchange x and y.

Write x = ln(…) as e^(x) = …. Then rearrange for y. A square gives ±, so the domain of f decides which sign to keep.

The range of f⁻¹ is the domain of f. For a domain x < -2 the inequality is strict, and the markscheme gives a mark for the strictness.

x = ln u Leftrightarrow e^(x) = u

-2ln(-x) = ln(x⁻²)

Worked example 19 marks

Consider the function f(x) = ln(2 -x) + ln(-2 -x) - 2ln(-x), where x < -2.

The function f(x) can be rewritten in the form ln(g(x)).

(a) Find an expression for g(x).

(b) Write down the range of f⁻¹(x).

The function f⁻¹(x) can be written in the form a/(√(1 - e^(x))).

(c) Find the value of a.

  1. 1

    M1:(a) correct use of one log law, such as x⁻², x² or (2 - x)(-2 -x) seen [1]

  2. 2

    A1: g(x) = (x² - 4)/x², or ((2 - x)(-2 - x))/x², or 1 - 4x⁻² [1]

  3. 3

    A2:(b) f⁻¹(x) < -2 or (-∞, -2). One mark for strictness with -2, and two for the completely correct inequality [2]

  4. 4

    M1:(c) attempt to exchange variables: x = ln((y² - 4)/y²) [1]

  5. 5

    A1: e^(x) = (y² - 4)/y², or e^(x) = 1 - 4y⁻² [1]

  6. 6

    A1: y²(e^(x) - 1) = -4 [1]

  7. 7

    A1: y = ±2/(√(1 - e^(x))) [1]

  8. 8

    A1: since the domain of f is x < -2, the root is negative: a = -2 [1]

Recap

  • (f ° g)(x) = f(g(x)): apply g first. In context, the order matters.
  • For a composite model, solve on the GDC, or solve for the middle variable first.
  • To find f⁻¹, exchange x and y. (f ° f⁻¹)(x) = (f⁻¹ ° f)(x) = x.
  • A quadratic has an inverse on one side of its vertex only: x ≥ 3 or x ≤ 3 for (x - 3)² - 2.
  • The range of f⁻¹ is the domain of f. Rewrite x = ln(…) as e^(x) = … first.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. Given f(x) = x + 4 and g(x) = 3x, state (f ° g)(x).1 mark
    Answer
    1. (f ° g)(x) = f(3x) = 3x + 4.

    Trap: g is applied first. (g ° f)(x) = 3(x + 4) = 3x + 12 is a different function.

  2. Given f(x) = 2x and g(x) = x + 1, which of the following is (g ° f)(3)? A 8 · B 7 · C 6 · D 41 mark
    Answer
    1. B. f(3) = 6, then g(6) = 7. A is f(g(3)) = 8, C is f(3), D is g(3).

    Trap: (g ° f)(3) means f first, then g.

  3. Given f(x) = x² - 1 and g(x) = x + 3, find (f ° g)(x). Give your answer in the form ax² + bx + c.2 marks
    Answer
    1. (f ° g)(x) = (x + 3)² - 1 [1] = x² + 6x + 9 - 1 = x² + 6x + 8 [1].

    Trap: Squaring x + 3 term by term gives x² + 9 and loses the 6x.

  4. A taxi fare, in dollars, for a journey of x km is f(x) = 5x + 2. (a) Find f⁻¹(x). (b) Describe the meaning of f⁻¹(17), in context.3 marks
    Answer
    1. (a)
    2. Exchange variables: x = 5y + 2 [1]. f⁻¹(x) = (x - 2)/5 [1].
    3. (b)
    4. f⁻¹(17) = 15/5 = 3 is the length of a journey, in km, whose fare is 17 dollars [1].

    Trap: Subtract 2 before dividing by 5. x/5 - 2 is a different function.

  5. A shop's online price is x dollars. Let f(x) = 0.8x be the price after a 20% discount and g(x) = x + 12 the price after a delivery fee of 12 dollars is added. (a) State what (g ° f)(x) represents, in context. (b) Calculate (g ° f)(50) and (f ° g)(50), and state which order gives the lower total.4 marks
    Answer
    1. (a)
    2. The discount is applied first, then the delivery fee is added [1].
    3. (b)
    4. (g ° f)(50) = g(40) = 52 dollars [1]. (f ° g)(50) = f(62) = 49.6 dollars [1]. (f ° g) is lower [1].

    Trap: (g ° f) applies f first. Reading it the other way reverses the answers.

  6. The function f is defined by f(x) = 2x + 8. (a) Find f⁻¹(x). (b) Show that (f ° f⁻¹)(x) = x.4 marks
    Answer
    1. (a)
    2. x = 2y + 8 [1]. f⁻¹(x) = (x - 8)/2 [1].
    3. (b)
    4. (f ° f⁻¹)(x) = 2 × (x - 8)/2 + 8 [1] = x - 8 + 8 = x [1].

    Trap: f ° f⁻¹ is a composition, not a product. Put f⁻¹(x) into f.

  7. Let f(x) = (x - 1)² - 4 for x ∈ R. (a) Explain why f has no inverse function. (b) State a restriction on the domain of f so that f⁻¹ exists.3 marks
    Answer
    1. (a)
    2. f(0) = -3 and f(2) = -3, so two inputs give one output [2].
    3. (b)
    4. x ≥ 1 (or x ≤ 1) [1].

    Trap: x ≥ 0 is not enough. f(0) = f(2), so the restriction must start at the vertex x = 1.

  8. Do not use a calculator. The function f is defined by f(x) = (x + 2)² - 5 for x ≤ -2. (a) Find f⁻¹(x). (b) Write down the range of f⁻¹.5 marks
    Answer
    1. (a)
    2. x = (y + 2)² - 5 [1]. y + 2 = ±√(x + 5) [1]. y ≤ -2, so the root is negative [1]. f⁻¹(x) = -2 - √(x + 5) [1].
    3. (b)
    4. f⁻¹(x) ≤ -2 [1].

    Trap: The restriction is x ≤ -2, so the positive root is the wrong one.

  9. Do not use a calculator. The function f is defined by f(x) = ln(2x - 6) for x > 3. (a) Find f⁻¹(x). (b) Write down the range of f⁻¹. (c) Find the exact value of f⁻¹(0).5 marks
    Answer
    1. (a)
    2. Exchange variables: x = ln(2y - 6) [1]. e^(x) = 2y - 6 [1]. f⁻¹(x) = (e^(x) + 6)/2 [1].
    3. (b)
    4. f⁻¹(x) > 3 [1].
    5. (c)
    6. f⁻¹(0) = (1 + 6)/2 = 7/2 [1]. Check: f(7/2) = ln 1 = 0.

    Trap: f⁻¹(x) ≥ 3 loses the strictness mark: the domain x > 3 is strict.

  10. A garden sprinkler is controlled by a dial. At dial setting s, the water pressure is p(s) = 0.4s + 2 bar, for 0 ≤ s ≤ 10. At a pressure of p bar, the spray reaches a distance d(p) = 0.5(p - 2)² + 1 metres, for 2 ≤ p ≤ 6. (a) Show that (d ° p)(s) = 0.08s² + 1. (b) Find the dial setting at which the spray reaches 5 m. Give your answer to three significant figures. (c) Find d⁻¹(x), and state its domain.9 marks
    Answer
    1. (a)
    2. d(p(s)) = 0.5(0.4s + 2 - 2)² + 1 [1] = 0.5 × 0.16s² + 1 [1] = 0.08s² + 1 (AG).
    3. (b)
    4. 0.08s² + 1 = 5 [1]. s² = 50 [1]. s = 7.07 (7.07106…), since s ≥ 0 rejects -7.07 [1].
    5. (c)
    6. x = 0.5(y - 2)² + 1 [1]. y - 2 = ±√(2x - 2) [1]. p ≥ 2: d⁻¹(x) = 2 + √(2x - 2) [1]. Domain 1 ≤ x ≤ 9 [1].

    Trap: s = ± 7.07: s ≥ 0, and the markscheme caps a negative answer at M1A1M1A0.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
f⁻¹(x) ≤ -2 for the range of the inverse (the strictness mark is lost)f⁻¹(x) < -2 or (-∞, -2), from the domain x < -2
(f ° g)(x) described with no order: the discount and the reduction are both applied(f ° g)(x) describes when the 150 CAD reduction is applied before the 30% discount
(g ° f)(x) is better, with no evidence (R0A1 is not awarded)the numbers 165, 210 seen, then (g ° f)(x) is better for the customer
t = ± 7.70 hours, or a negative solution given as the answer (at most M1A1M1A0)t = 7.70 hours, the one solution with t ≥ 0

Frequently asked questions

What does a composite function (f ° g)(x) mean?
(f ° g)(x) means f(g(x)). Apply g to x first, then apply f to the result. In general (f ° g)(x) ≠ (g ° f)(x), so the order matters. For a 30% discount f(x) = 0.7x and a reduction of 150 g(x) = x - 150, the value of (f ° g)(450) is 210.
How do you compare two composite functions in a pricing context?
Work out both composites at the same input and compare the results. For a chair priced at 450 CAD, (g ° f)(x) = 0.7x - 150 gives 165, while (f ° g)(x) = 0.7x - 105 gives 210. So (g ° f)(x) is better for the customer, because it gives the lower price.
How do you find the inverse of a linear function?
Write y = f(x), exchange x and y, then make y the subject. For f(x) = 1.8x + 32, exchanging the variables gives x = 1.8y + 32, so f⁻¹(x) = (x - 32)/1.8. Composing a function with its inverse, in either order, gives back x: (f ° f⁻¹)(x) = x.
How do you find the inverse of a quadratic function?
A quadratic has an inverse only when its domain is restricted to one side of the vertex. For f(x) = (x + 2)² - 5 with x ≥ -2, exchanging the variables gives y + 2 = ±√(x + 5). The domain of f fixes the positive root, so f⁻¹(x) = -2 + √(x + 5). The range of f⁻¹ is the domain of f, so f⁻¹(x) ≥ -2.
How do you find the inverse of a logarithmic function with a restricted domain?
Combine the logarithms first, then exchange x and y and write x = ln(…) as e^(x) = …. The domain decides the sign, and the range of f⁻¹ takes the strictness of the domain. For f(x) = ln(2x - 6) with x > 3, f⁻¹(x) = (e^(x) + 6)/2 and the range is f⁻¹(x) > 3. Check: f(7/2) = ln 1 = 0.
What is a common error when describing a composite function or solving a composite model?
Describing (f ° g)(x) without saying which step comes first loses the marks. It describes when the 150 CAD reduction is applied before the 30% discount. For a composite model E(C(t)), the answer is t = 7.70 hours, the one solution with t ≥ 0. A negative solution is not given as the answer.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters