Lemmara logo

Functions: One-One, Inverses and Restricted Domains

Tell one-one from many-one, restrict a domain so an inverse exists, find inverses and composites with their domains and ranges, and sketch f with its inverse.

48real exam questions on this topic
  • 7 steps
  • 10 min
  • 1 syllabus

Try a real exam question on this

0606/22 · Feb/Mar 2025 · Q7 · 5 marks · Solve it step by step, the way the examiner marks it.

Loading the animated solution…

See the solution as text
Text version of the solution

Given f(x) = 2e^x + a for x ≥ 0 and g(x) = √(x − 1) for x ≥ 1, find a so gf exists, then solve gf(x) = 3 with a = 5.

(a) 2 marks

Find the smallest integer a such that the composite function gf is defined for every x ≥ 0.

  1. Understand the question. f is 2e to the x plus a for x at least 0, and g is the square root of x minus 1 for x at least 1, and we must find the least whole number a so that gf exists for all x at least 0.
  2. Key words. Function means a rule that maps each input to exactly one output.
  3. Use domain and range of composite functions. gf means apply f first, so every output of f must be allowed as an input to g.
  4. Why does this work? fg(x) means do g first, then put its answer into f.
  5. The function nearest to x acts first, just like working from the inside of brackets outwards.
  6. Find the range of f. Since x is at least 0, e to the x is at least 1, so f(x) is at least 2 plus a.
  7. Range of f: f(x) ≥ 2 + a
  8. Match the range of f to the domain of g. g only accepts inputs at least 1, so 2 plus a must be at least 1.
  9. gf exists when the range of f lies in the domain of g: 2 + a ≥ 1
  10. Solve for a. Subtract 2 from both sides to get a is at least negative 1, so the least integer a is negative 1.
  11. Least a = −1

Answer a = −1

(b) 3 marks

With a = 5, solve gf(x) = 3, giving the answer to 3 decimal places.

  1. Understand the question. With a equal to 5, f is 2e to the x plus 5, and we must solve gf(x) equal to 3, giving x correct to 3 decimal places.
  2. Use the composite function definition. gf means put f into g, and here a is 5, so f(x) is 2e to the x plus 5.
  3. Why does this work? fg(x) means do g first, then put its answer into f.
  4. The function nearest to x acts first, just like working from the inside of brackets outwards.
  5. Form gf(x). Replace the input of g with 2e to the x plus 5, then set it equal to 3.
  6. gf(x) = √((2e^x + 5) − 1) = 3
  7. Square both sides. Squaring removes the square root, giving 2e to the x plus 4 equals 9.
  8. 2e^x + 4 = 9
  9. Rearrange. Subtract 4 from both sides and then divide by 2, so e to the x is 2.5.
  10. e^x = 2.5
  11. Take natural logs. The inverse of e to the x is ln, so x is ln 2.5, which is 0.916 to three decimal places.
  12. x = ln 2.5 = 0.916

Answer x = 0.916

The lesson, step by step

Step 1 of 7

Function, domain, range

Press one button on a vending machine and you get one snack. Never two, never a surprise. A function works the same way: each input gives exactly one output.

Rule

A function gives exactly one output for each input. The domain is the set of inputs you are allowed to use. The range is the set of outputs you get.

You will see two ways to write the same function. Both say “double x and add 1, for x of 0 or more”:

Formula

  • — the output when the input is x.

  • — the domain. The range here is .

Formula

  • — read “maps to”: x goes to 2x + 1. It is the same function, written as an arrow.

Worked example

  1. 1

    Explain why the graph of (a circle) does not represent a function.

  2. 2

    — Pick one input and look for its outputs.

  3. 3

    — One input gives two outputs.

  4. 4

    — A vertical line at x = 3 meets the graph twice. A function allows at most once.

Rule

Write a range with the function's letter, not with x: , or , or . Writing for a range loses the mark.

Key idea

The Swiss mathematician Leonhard Euler first wrote f(x) for a function in 1734. Almost three hundred years later, every exam paper still uses his notation.

Key idea

Domain is what goes in. Range is what comes out. A function never gives two outputs for one input.

See this step move in Lemmara

Step 2 of 7

One-one or many-one

Some functions send two different inputs to the same output. For , both 3 and −3 give 9.

Rule

A one-one function: every output comes from exactly one input.

A many-one function: at least one output comes from two or more inputs.

To check from a graph, draw horizontal lines. If any horizontal line meets the graph more than once, the function is many-one.

Only a one-one function has an inverse. The inverse must take the output back to the input. If 9 came from both 3 and −3, the inverse would not know which one to give back.

Worked example

  1. 1

    The function has domain . Explain why does not exist.

  2. 2

    — Complete the square. The turning point is at x = 3.

  3. 3

    — The turning point is inside the domain, so the curve goes down and then back up.

  4. 4

    — Two inputs give the same output.

  5. 5

    — So f has no inverse: would need two answers.

Common mistake

Writing only “because it is a quadratic”. Say the function is many-one (not one-one), and back it up with two inputs that give the same output.

Key idea

No inverse means two inputs share an output. Name the function as many-one and show the pair.

See this step move in Lemmara

Step 3 of 7

Restricting the domain

A many-one function can be made one-one by cutting its domain. For a quadratic, cut at the turning point and keep one side.

Worked example

  1. 1

    for . Find the least value of k for which exists, and the range of f.

  2. 2

    — Complete the square. Take out the 2 first.

  3. 3

    — The bracket is 0 when x = −2, and then f is −5.

  4. 4

    — From x = −2 onwards the curve only goes up, so f is one-one.

  5. 5

    — The range. The smallest output is at the turning point.

Notice: if k were smaller than −2, the domain would include both sides of the turning point and f would be many-one again.

Common mistake

Writing the range as . The range is about outputs, so write .

Common mistake

Taking the x-coordinate of the turning point for the range. The range uses the y-coordinate, −5.

Key idea

To make a quadratic one-one, start the domain at the turning point. Its y-value starts the range.

See this step move in Lemmara

Step 4 of 7

Finding the inverse

To find an inverse, swap x and y, then make y the subject. Two facts tell you the domain and range at once.

Rule

Domain of = range of f.

Range of = domain of f.

Worked example

  1. 1

    for . Find and state its domain.

  2. 2

    — Write y = f(x), then swap x and y.

  3. 3

    — Add 5, then divide by 2.

  4. 4

    — Square root both sides. There are two signs for now.

  5. 5

    — The range of the inverse is the domain of f, x ≥ −2. Only the plus sign gives values of −2 or more.

  6. 6

    — The domain of the inverse is the range of f.

Exponential functions come up often. You need one fact: ln undoes e. If , then .

Worked example

  1. 1

    for all real x. Find and its domain.

  2. 2

    — Swap x and y.

  3. 3

    — Add 1, then divide by 4.

  4. 4

    — Take ln of both sides.

  5. 5

    — is always positive, so the range of g is . That is the domain of the inverse.

Common mistake

Thinking means . The −1 is a label for the inverse, not a power.

Common mistake

Leaving the answer as “y = …”. Write it with the correct notation, , and give its domain.

Key idea

Swap, solve, then swap the domain and range. They tell you which sign to keep.

See this step move in Lemmara

Step 5 of 7

Composite functions

A composite function feeds the output of one function into another. means : do f first, then g. Read it from the inside out.

Worked example

  1. 1

    and . Find and .

  2. 2

    — f first: add 3. Then g squares the result.

  3. 3

    — g first: square. Then f adds 3. A different answer, so order matters.

Worked example

  1. 1

    . Find .

  2. 2

    — means h twice, not h squared.

  3. 3

    — Put 3x − 2 in place of x, then expand.

Rule

exists only if every output of f is allowed into g: the range of f must fit inside the domain of g. Then the domain of gf is the domain of f.

Worked example

  1. 1

    for and for . Show gf exists, find its range, and solve .

  2. 2

    — The range of f. Every output is 1 or more.

  3. 3

    — The outputs of f all fit, so gf exists. Its domain is x ≥ 0.

  4. 4

    — f first, then g.

  5. 5

    — Feed the range of f, 1 or more, into g: the outputs start at .

  6. 6

    — Square both sides. 8 is in the domain, so it is valid.

If the domain of f were instead, f could output −1. Then g would need , which is impossible, so gf would not exist.

Common mistake

Doing g first for gf. The function next to the x acts first.

Key idea

Inside out: the function nearest x acts first. Check that its range fits into the next function's domain.

See this step move in Lemmara

Step 6 of 7

Graphs of f and its inverse

An inverse swaps every input with its output. So the point (a, b) on becomes (b, a) on . Swapping x and y is a reflection in the line .

Rule

The graph of is the reflection of in the line .

Worked example

  1. 1

    Sketch and for , .

  2. 2

    — Draw this line first, as a dashed guide.

  3. 3

    — The end point of f swaps to the end point of the inverse.

  4. 4

    — The y-intercept of f becomes the x-intercept of the inverse.

  5. 5

    — Check with the formula from before: it agrees.

Asymptotes swap too. has asymptote , so its inverse has asymptote .

Some functions are their own inverse, such as or . Their graphs are symmetrical about .

Common mistake

Reflecting in the x-axis or the y-axis. The mirror line for an inverse is always .

Key idea

Draw first. Then swap the coordinates of each key point and mirror the curve across the line.

See this step move in Lemmara

Step 7 of 7

Which method? Read the question

Function questions come in parts that build on each other. Match the words to the method.

You seeYou do
“Explain why this is not a function”Find one input with two outputs
“Explain why does not exist”Show f is many-one: two inputs, same output
“Least value of k so exists”Complete the square; k is the x of the turning point
“Find the range of f”Smallest (or largest) output; write
“Find ”Swap x and y, make y the subject, choose the sign
“Domain / range of ”Swap the range and domain of f
“Explain why gf exists”Range of f lies inside the domain of g
“Sketch f and ”Reflect in ; swap the coordinates of key points

Common mistake

Losing the domain. An inverse or a composite is not finished until its domain is stated whenever the question asks for it.

Key idea

Find the range of f first. It becomes the domain of the inverse, and it must fit inside the domain of any function applied after f.

See this step move in Lemmara

More real exam questions on this

Solve one in Lemmara and see where every mark goes.

All 48 questions on this topic

Lemmara is an independent study tool, not affiliated with or endorsed by Cambridge International Education or Pearson Edexcel. The lessons and worked examples are Lemmara’s own.

Try a real exam question on this

Solve it →