Lemmara logo

Domain and Range

Domain and range: values left out because of a zero denominator or a negative square root, the range of a squared function, and the range of an inverse.

26real exam questions on this topic
  • 8 steps
  • 5 min
  • 4 syllabuses

Try a real exam question on this

0580/42 · Feb/Mar 2025 · Q14 · 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

For f(x) = 5 − 4x, evaluate the function at a value, form a composite expression in x, and find the inverse function.

(a) 1 mark

Calculate f(−3) using f(x) = 5 − 4x.

  1. Understand the question. The function f of x is five minus four x, and we must find the value of f at minus three.
  2. Substitute minus three into the function. The rule is five minus four times x, so replace x with minus three.
  3. f(−3) = 5 − 4 × (−3) = 5 + 12 = 17

Answer 17

(b) 2 marks

Substitute 3 − 2x into f and simplify the resulting expression.

  1. Understand the question. The function f of x is five minus four x, and we must find f of three minus two x, in its simplest form.
  2. Substitute the expression into the function. The rule is five minus four times x, so replace x with three minus two x.
  3. f(3 − 2x) = 5 − 4(3 − 2x)
  4. Expand the bracket. Four times three is twelve and four times minus two x is minus eight x, so subtracting gives minus twelve plus eight x.
  5. = 5 − 12 + 8x
  6. Collect like terms. Five minus twelve is minus seven, and the x term stays eight x.
  7. = 8x − 7

Answer 8x − 7

(c) 2 marks

Determine f⁻¹(x) for the function f(x) = 5 − 4x.

  1. Understand the question. The function f of x is five minus four x, and we must find its inverse, f to the power minus one of x.
  2. Find the inverse function. Start with y as the output, then swap x and y and make y the subject.
  3. Why does this work? The inverse function undoes the function. Its inputs are the function's outputs, and its outputs are the inputs.
  4. So swap x and y, then rearrange to make y the subject. That writes the undoing as a formula.
  5. y = 5 − 4x, swap: x = 5 − 4y
  6. Rearrange for y. Add four y to both sides and subtract x, so four y is five minus x.
  7. 4y = 5 − x
  8. Divide by four. y is five minus x all divided by four, so the inverse is that expression.
  9. f⁻¹(x) = (5 − x)/4

Answer (5 − x)/4

The lesson, step by step

Step 1 of 8

Domain and Range

A function is a machine. The domain is the inputs you are allowed to put in. The range is the outputs that can come out.

Key idea

Most questions ask which x must be left out. Two things break a function: dividing by 0, and the square root of a negative.

See this step move in Lemmara

Step 2 of 8

You Cannot Divide by Zero (Higher)

If x is in the bottom of a fraction, find the x that makes the bottom 0. That x is left out.

Worked example

  1. 1

    — Look at the bottom of the fraction. Only the bottom can cause trouble.

  2. 2

    — A fraction with 0 on the bottom has no value, so find the x that makes the bottom 0.

  3. 3

    — Take 9 from both sides. Putting in x = −9 would put 0 on the bottom.

  4. 4

    — Write the answer as x ≠ −9. Every other value of x is allowed.

Worked example

  1. 1

    — A second one, with a minus in front of the x. Look at the bottom again.

  2. 2

    — Set the bottom equal to 0.

  3. 3

    — Take 3 from both sides.

  4. 4

    — Divide both sides by −4. A negative divided by a negative is positive.

  5. 5

    — Leave out x = 3/4, or 0.75.

Common mistake

Setting the top to 0. The top can be 0; only the bottom cannot.

See this step move in Lemmara

Step 3 of 8

No Square Root of a Negative (Higher)

If x is inside a square root, the inside must be 0 or more.

Worked example

  1. 1

    — Look at what is inside the root.

  2. 2

    — You cannot take the square root of a negative, so the inside must be 0 or more.

  3. 3

    — Add 2x to both sides. This avoids dividing by a negative number later.

  4. 4

    — Divide both sides by 2.

  5. 5

    — Read it the other way round: x can be 4 or smaller.

  6. 6

    — The question asks which values cannot be used, so give the opposite: anything above 4.

See this step move in Lemmara

Step 4 of 8

The Range (Higher)

The range asks which outputs are possible. A square is never negative.

Worked example

  1. 1

    — A squared bracket.

  2. 2

    — A square is never negative, so the squared bracket is 0 or more.

  3. 3

    — The lowest value is 0. It happens when the bracket is 0, at x = −2.

  4. 4

    — There is no top limit, because x can be as large as you like. Write the range with f(x).

Common mistake

Writing the range with x. The range is about outputs, so use f(x) or y.

See this step move in Lemmara

Step 5 of 8

Range of a Shifted Square (Higher)

Exams often add a number to the square, or give it as . Write it as a squared bracket first, then read off the lowest value.

Worked example

  1. 1

    — A squared bracket, plus 5.

  2. 2

    — A square is never negative.

  3. 3

    — Add 5 to both sides, so the whole function is 5 or more.

  4. 4

    — Write the range with f(x).

Worked example

  1. 1

    — Complete the square first, to find the lowest point.

  2. 2

    — Half of 4 is 2, so use (x + 2)². That bracket adds an extra 4, so take 4 away.

  3. 3

    — The domain starts at x = −2, exactly where the bracket is 0. So −4 is the lowest value.

  4. 4

    — The values rise from −4 with no top limit.

Common mistake

Ignoring the domain. For with the lowest value is , not −4, because x never reaches −2.

See this step move in Lemmara

Step 6 of 8

Range from a Set of Inputs

When the domain is a short list of numbers, the range is just the list of answers.

Worked example

  1. 1

    — Put each number of the domain in, one at a time.

  2. 2

    — Replace x with −2. Use a bracket to keep the negative sign.

  3. 3

    — −3 × −2 = +6, because a minus times a minus is a plus.

  4. 4

    — Replace x with 0.

  5. 5

    — Replace x with 3, then work out 4 − 9.

  6. 6

    — List the outputs, smallest first. These three numbers are the whole range.

Common mistake

Writing −5 ≤ y ≤ 10. With a list of inputs only these three outputs are possible, so list them.

See this step move in Lemmara

Step 7 of 8

Range of an Inverse (Higher)

An inverse swaps inputs and outputs. So the range of the inverse is the domain of the function.

Worked example

  1. 1

    — The function and its domain.

  2. 2

    — An inverse swaps inputs and outputs, so the inputs of h become the outputs of the inverse.

  3. 3

    — The domain of h starts at −2, so every output of the inverse is −2 or more.

See this step move in Lemmara

Step 8 of 8

Which Method? Read the Question

Look for a fraction, a root or a square.

You seeYou do
x in the bottombottom = 0 is left out
x in a square rootinside must be 0 or more
Range of a square0 or more
Range of an inversethe domain of the function
Find f(3) or fg(x)Composite Functions

Key idea

Domain uses x. Range uses f(x) or y.

See this step move in Lemmara

More real exam questions on this

Solve one in Lemmara and see where every mark goes.

All 26 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 →