← All notesMaths AA · Functions, inverses and composites⬇ Download PDF
IB DP Maths AA · Topic 2 Functions · SL 2.1–2.5 · AHL 2.14 · ~6 min read

Functions, inverses and composites

Straight lines and their equations, what a function is, domain and range, key features of graphs, composite functions, inverse functions and their graphs, and (HL) odd and even functions, self-inverse functions and restricting domains.

Straight linesDomain & rangeKey features of graphsComposite functionsInverse functionsOdd & even functions (HL)Self-inverse (HL)
RSby Riyaz Sir
mentorriyaz.in
No tag = SL and HLHL ONLY HL students onlyFORMULA BOOKLET given in the examM1A1 how marks are awardedhighlight = comes up again and againTest yourself at the end

In 30 seconds

  • A function maps every input in its domain to exactly one output; the set of outputs is the range.
  • A composite (f ∘ g)(x) = f(g(x)) applies g first, then f. Order matters.
  • An inverse f−1 undoes f. It exists only if f is one-to-one; its graph is the reflection of f in y = x, and domain and range swap.
  • Lines: gradient m = Δy/Δx; parallel lines have equal gradients, perpendicular lines have m1m2 = −1.
  • HL: even functions (f(−x) = f(x)), odd functions (f(−x) = −f(x)), self-inverse functions (f = f−1) and restricting domains so an inverse exists.

By the end you can

  • Find gradients and equations of lines, including parallel and perpendicular lines.
  • Find the domain and range of a function and identify key features of its graph.
  • Form and evaluate composite functions.
  • Find inverse functions algebraically and sketch them by reflection in y = x.
  • Identify odd, even and self-inverse functions and restrict a domain to make an inverse exist. HL

1Straight lines

m = y2 − y1x2 − x1 FORMULA BOOKLET
gradient between two points
y = mx + c, ax + by + d = 0, y − y1 = m(x − x1) FORMULA BOOKLET
three forms of a line
Worked example

Find the line through (2, 3) perpendicular to y = 2x + 1, in the form ax + by + d = 0.

  1. perpendicular gradient = −½ A1
  2. y − 3 = −½(x − 2) M1
  3. x + 2y − 8 = 0 A1

2Functions, domain and range

domain (x)range (f(x))-2-1012014f(x) = x²: every input has exactly one output (a function), but outputs repeat, so no inverse.
One output per input: a function. Two inputs to one output is fine; one input to two outputs is not.
  • Domain problems: you cannot divide by zero, take the square root of a negative, or take the log of zero or a negative.
f(x)DomainRange
√(x − 2)x ≥ 2f(x) ≥ 0
1x − 3x ≠ 3f(x) ≠ 0
ln(x + 1)x > −1f(x) ∈ ℝ
x2 + 4x ∈ ℝf(x) ≥ 4
  • Key features (SL 2.3–2.4): intercepts, maximum and minimum points, symmetry, vertical and horizontal asymptotes. Sketch them, label them with coordinates or equations.
GDC (calculator) methodPaper 2: graph, then use zero, maximum, minimum and intersect. Set the window to show every key feature, and copy the coordinates to 3 s.f.

3Composite functions

(f ∘ g)(x) = f(g(x))
do g first, then f
Worked example

f(x) = 2x + 1 and g(x) = x2. Find (f ∘ g)(x), (g ∘ f)(x) and (f ∘ g)(3).

  1. (f ∘ g)(x) = f(x2) = 2x2 + 1 A1
  2. (g ∘ f)(x) = (2x + 1)2 A1
  3. (f ∘ g)(3) = 2(9) + 1 = 19 A1
Common mistakeThinking f ∘ g means "f first". The function written closest to x acts first: in f(g(x)), g acts on x.

4Inverse functions

  • Method: write y = f(x), swap x and y (or rearrange for x), make y the subject, write f−1(x) = …
Worked example

Find f−1(x) for f(x) = 2x + 3x − 1, x ≠ 1.

  1. y(x − 1) = 2x + 3 ⇒ xy − 2x = y + 3 M1
  2. x = y + 3y − 2 A1
  3. f−1(x) = x + 3x − 2, x ≠ 2 A1
xy(2, 3)(3, 2)y = f(x)y = f⁻¹(x)y = x(a, b) on f ⇔ (b, a) on f⁻¹. Domain of f⁻¹ = range of f.
Reflect every point (a, b) to (b, a): that is reflection in y = x.
  • f(f−1(x)) = f−1(f(x)) = x. The domain of f−1 is the range of f, and its range is the domain of f.
Exam tip"Solve f(x) = f−1(x)" is quickest by solving f(x) = x, when the graphs meet on the line y = x (true for increasing functions).

5Odd, even and self-inverse functions HL

xyxyeven: f(−x) = f(x), mirror in y-axisodd: f(−x) = −f(x), half-turn about O
Even functions have mirror symmetry in the y-axis; odd functions have half-turn symmetry about the origin.
Worked example

Is f(x) = x3 − 4x odd, even or neither?

  1. f(−x) = −x3 + 4x = −(x3 − 4x) = −f(x) M1
  2. odd A1
  • Self-inverse: f(f(x)) = x, so the graph is symmetric in y = x. Examples: f(x) = 1/x, f(x) = −x + c, f(x) = x + 3x − 1.
  • Restricting the domain: f(x) = x2 has no inverse on ℝ, but on x ≥ 0 it is one-to-one and f−1(x) = √x.
Worked example

f(x) = (x − 2)2 + 1. Find the largest domain of the form x ≥ a for which f−1 exists, and find f−1.

  1. the vertex is at x = 2, so x ≥ 2 A1
  2. y − 1 = (x − 2)2 ⇒ x = 2 + √(y − 1) (positive root because x ≥ 2) M1
  3. f−1(x) = 2 + √(x − 1), x ≥ 1 A1
Linking questionInverse functions explain why ln undoes ex (Exponents and logarithms) and why arcsin needs a restricted range (Trig identities). Composite functions are where the chain rule comes from (Differentiation).
Idea for your IA / explorationModel a real process as a composite (currency conversion then tax, temperature conversions) and explore when the inverse makes sense in context.

Test yourself — cover the answers first

Quick check

  1. Find the gradient of the line through (1, 5) and (4, −1).
  2. Give the domain of f(x) = 1/(x + 4).
  3. If f(x) = x + 3 and g(x) = 2x, find g(f(1)).
  4. Find f−1(x) for f(x) = 5x − 2.
  5. Which line is f−1 a reflection in?
  6. HL Is cos x odd or even?

Exam-style

  1. f(x) = 3x − 1 and g(x) = x + 13. Show that g = f−1 and find (f ∘ g)(x).
  2. HL f(x) = e2x − 1. Find f−1(x) and state its domain.
Show answers
  1. −2
  2. x ≠ −4
  3. 8
  4. (x + 2)/5
  5. y = x
  6. even
  7. f(g(x)) = 3(x + 13) − 1 = x
    and g(f(x)) = x, so g is the inverse
    (f ∘ g)(x) = x
  8. y + 1 = e2x ⇒ x = ½ ln(y + 1)
    f−1(x) = ½ ln(x + 1)
    domain x > −1 (the range of f)
Stuck on a question?

Send it to me on WhatsApp. I read every message.

Want regular help? Send this to your parent →
Share with a friendAsk Riyaz Sir

Independent notes written by Riyaz Sir. Not produced, endorsed or approved by the International Baccalaureate Organization. Syllabus codes refer to the IB DP subject guides.