BORING EDUCATION — LIVE EXPERIMENTProduct is live. Experiments are running. Feedback is being collected. Improvements are underway.Welcome to Boring Education. We're glad you're here while we're figuring out how to make learning better.
BORINGEDUCATION

1.3Free

Composition and inverse: machines in a row, and the undo button

Your guide: Sir AhmedSays brackets have saved more marks than any calculator.

The problem

Put on socks, then shoes. Now try shoes, then socks. Same two actions, very different result. Functions are the same: doing f then g is usually not the same as g then f.

And sometimes you want to take the shoes off again: to undo a function and get back your input. That undo machine is the inverse function.

The composition of f and g is (gof)(x) = g(f(x)): apply f first, then g. In general gf(x) ≠ fg(x). The inverse f−1 of a one-one function reverses it: f−1(y) = x exactly when y = f(x).

Step 1 / 7

Notes, short questions and MCQs

Read the full notes: key terms, model answers and MCQs with answers

The problem

Put on socks, then shoes. Now try shoes, then socks. Same two actions, very different result. Functions are the same: doing f then g is usually not the same as g then f.

And sometimes you want to take the shoes off again: to undo a function and get back your input. That undo machine is the inverse function.

The composition of f and g is (gof)(x) = g(f(x)): apply f first, then g. In general gf(x) ≠ fg(x). The inverse f−1 of a one-one function reverses it: f−1(y) = x exactly when y = f(x).

Key terms

Composition gf
gf(x) = g(f(x)): the output of f becomes the input of g. With f(x) = 2x + 3 and g(x) = x2, gf(x) = g(2x + 3) = (2x + 3)2.
Order matters
fg means g first, then f; gf means f first, then g. We also write ff as f2 and fff as f3.
Inverse function f−1
For a one-one function f from X onto Y, f−1 goes from Y back to X. Then f−1(f(x)) = x and f(f−1(y)) = y: both compositions are identity maps.
Algebraic method
Write y = f(x), solve for x in terms of y, then rename y as x. Domain and range swap: domain f−1 = range f, and range f−1 = domain f.

Short questions with model answers

  1. Q1. Let f(x) = 2x + 1 and g(x) = x2 − 1. Find fg(x) and gf(x).

    • fg(x) = f(x2 − 1) = 2(x2 − 1) + 1 = 2x2 − 1
    • gf(x) = g(2x + 1) = (2x + 1)2 − 1 = 4x2 + 4x

    fg(x) = 2x2 − 1 · gf(x) = 4x2 + 4x

  2. Q2. Find f−1(x) for f(x) = 2x + 1 and verify it.

    • y = 2x + 1 ⇒ x = ½(y − 1)
    • f−1(x) = ½(x − 1)
    • f(f−1(x)) = 2 · ½(x − 1) + 1 = x

    f−1(x) = ½(x − 1)

  3. Q3. Without finding the inverse, state the domain and range of f−1 for f(x) = 2 + √(x − 1).

    • Domain f = [1, +∞)
    • Range f = [2, +∞)
    • Domain f−1 = [2, +∞), range f−1 = [1, +∞)

    Domain f−1 = [2, +∞) · Range f−1 = [1, +∞)

Common mistakes

  • ✗ Reading gf(x) left to right as “g first, then f”.

    ✓ gf(x) = g(f(x)): the function next to x acts first. So f acts first, then g.

  • ✗ Writing f−1(x) = 1/f(x).

    ✓ f−1 is the undo function, not the reciprocal. For f(x) = 2x + 1, f−1(x) = ½(x − 1), not 1/(2x + 1).

  • ✗ Giving f−1 the same domain as f.

    ✓ They swap: the domain of f−1 is the range of f, and the range of f−1 is the domain of f.

MCQs

  1. 1. If f(x) = 2x + 1, then f2(x) = f(f(x)) is:

    1. (a) 4x2 + 4x + 1
    2. (b) 4x + 3
    3. (c) 4x + 2
    4. (d) 2x2 + 1
    Show answer

    (b) f(2x + 1) = 2(2x + 1) + 1 = 4x + 3. f2 means f twice, not f squared.

  2. 2. If g(x) = x2 − 1, then g2(x) = g(g(x)) is:

    1. (a) x4 − 1
    2. (b) x4 − 2x2
    3. (c) x4 − 2x2 + 2
    4. (d) (x2 − 1)2
    Show answer

    (b) (x2 − 1)2 − 1 = x4 − 2x2 + 1 − 1 = x4 − 2x2.

  3. 3. For f(x) = −2x + 8, f−1(−1) is:

    1. (a) 10
    2. (b) 4.5
    3. (c) −4.5
    4. (d) 3.5
    Show answer

    (b) f−1(x) = (8 − x)/2, so f−1(−1) = 9/2 = 4.5. Check: f(4.5) = −9 + 8 = −1.

  4. 4. For f(x) = 2 + √(x − 1), the domain of f−1 is:

    1. (a) [1, +∞)
    2. (b) [2, +∞)
    3. (c) (−∞, 2]
    4. (d) all real numbers
    Show answer

    (b) Domain f−1 = range f = [2, +∞).

  5. 5. f−1(f(x)) equals:

    1. (a) f(x)
    2. (b) 1
    3. (c) x
    4. (d) f−1(x)
    Show answer

    (c) Undoing f returns the original input: f−1∘f is the identity map.

Quick revision

  • gf(x) = g(f(x)): f first, then g. In general gf(x) ≠ fg(x); f2 means f(f(x)).
  • A one-one onto function has an inverse; f−1(f(x)) = x and f(f−1(y)) = y.
  • To find f−1: set y = f(x), solve for x, rename. Domain and range swap.