POPStudying

Cambridge 0580 IGCSE  ·  Topic E2.13

E2.13 Functions: Domain, Range, Composite & Inverse Functions

Image  ·  914 × 270

What is a function, and what does f(a)f(a) mean?

A function, written f(x)f(x), is a rule that assigns exactly one output to every input. f(a)f(a) means "substitute aa for every xx" in that rule.

f(x)=2x+35  ⟹  f(3)=2(3)+35=95f(x)=\frac{2x+3}{5} \implies f(3) = \frac{2(3)+3}{5}=\frac{9}{5}

What are the domain and range of a function?

The domain is the set of inputs the function is allowed to take — you must exclude any value that would cause division by zero or the square root of a negative number. The range is the set of outputs the function can actually produce, found by considering how the function behaves across its whole domain.

For g(x)=4x+2g(x)=\dfrac{4}{x+2}, the domain excludes x=−2x=-2 (written x≠−2x\neq-2), since substituting it would divide by zero. For h(x)=x−3h(x)=\sqrt{x-3}, the domain requires x−3≥0x-3\ge0, so x≥3x\ge3, since a negative number has no real square root.

Exam Tip

Always check a function for two specific danger signs before stating its domain: a variable in a denominator (exclude wherever it equals zero) and a variable under a square root (require it to be ≥0\ge0).

How do I find a composite function like fg(x)fg(x)?

Work from the inside out: the function closest to xx is applied first, and its entire result becomes the input to the next function.

Given f(x)=2x+35f(x)=\dfrac{2x+3}{5} and g(x)=x2−1g(x)=x^2-1, find fg(2)fg(2):

  1. Apply gg first, since it's closest to xx: g(2)=22−1=3g(2)=2^2-1=3.
  2. Feed that result into ff: f(3)=2(3)+35=95f(3) = \dfrac{2(3)+3}{5}=\dfrac{9}{5}.

Exam Tip

In fg(x)fg(x), it's tempting to apply ff first because it's written first — but the function nearest the bracket around xx, here gg, is always the one applied first.

For gf(x)gf(x) with the same two functions, substitute the whole expression f(x)f(x) into gg:

gf(x)=(2x+35)2−1=4x2+12x+925−2525=4x2+12x−1625gf(x) = \left(\frac{2x+3}{5}\right)^2-1 = \frac{4x^2+12x+9}{25}-\frac{25}{25} = \frac{4x^2+12x-16}{25}

How do I find the inverse of a function?

Write the function as y=f(x)y=f(x), swap xx and yy, then rearrange to make yy the new subject — this reverses the original mapping, so that f−1(f(x))=xf^{-1}(f(x))=x for every valid xx.

y=2x+35  ⟹  5y=2x+3  ⟹  x=5y−32y=\frac{2x+3}{5} \implies 5y=2x+3 \implies x=\frac{5y-3}{2}

Swapping xx and yy: f−1(x)=5x−32f^{-1}(x) = \dfrac{5x-3}{2}.

Exam Tip

f−1(x)f^{-1}(x) is the inverse function — it undoes ff — and is completely different from the reciprocal 1f(x)\dfrac{1}{f(x)}. The −1-1 here is a label, not an instruction to divide. A quick check: f(f−1(x))f(f^{-1}(x)) should simplify back to just xx.

How can a mapping diagram help me understand a function?

A mapping diagram draws each input on a left-hand list with an arrow pointing to its single output on a right-hand list. Because a function gives exactly one output per input, no input value ever has two arrows leaving it — if you see that on a diagram, the relationship shown is not a valid function.

Worked Example

Given f(x)=3x−5f(x)=3x-5 and g(x)=4x+2g(x)=\dfrac{4}{x+2} for x≠−2x\neq-2:

(a) Find g−1(x)g^{-1}(x).

(b) Find fg(3)fg(3).

  1. (a) Let y=4x+2y=\dfrac{4}{x+2}. Multiply both sides by (x+2)(x+2): y(x+2)=4y(x+2)=4.
  2. Expand and rearrange to isolate xx: xy+2y=4  ⟹  xy=4−2y  ⟹  x=4−2yyxy+2y=4 \implies xy=4-2y \implies x=\dfrac{4-2y}{y}.
  3. Swap xx and yy: g−1(x)=4−2xxg^{-1}(x) = \dfrac{4-2x}{x}.
  4. (b) Apply gg first: g(3)=43+2=45g(3)=\dfrac{4}{3+2}=\dfrac{4}{5}.
  5. Feed into ff: f(45)=3(45)−5=125−5=−135f\left(\dfrac{4}{5}\right) = 3\left(\dfrac{4}{5}\right)-5 = \dfrac{12}{5}-5 = -\dfrac{13}{5}.