Functions

Functions

Domain and range

Type 4 Domain And Range Extended 7 min read

On this page
  1. In this note
  2. Formula bank
  3. Inputs and outputs
  4. Finding the range
  5. Reading domain and range from a graph
  6. Ways they test it
  7. Mistakes to avoid
  8. Summary
  9. Practice
  10. Can I do this?
  11. Quiz

In this note

Syllabus 2.12/2.13: domain and range Extended
  • 2.12Understand the domain (the inputs allowed) and the range (the outputs produced).
  • 2.12Find values that must be excluded from a domain.
  • 2.12Find the range of linear and quadratic functions, and read domain and range from asymptotes.

Before you start: Function notation and completing the square. Next: Asymptotes.

Formula bank

DomainLearn itthe inputs x allowedexclude anything that divides by zero or square-roots a negative.Use it when 'which value must be excluded?'.
RangeLearn itthe outputs f(x) producedlinear: work out the two ends; quadratic: use the turning point.Use it when 'find the range'.
Completed squareLearn it\((x+p)^{2}+q\ge q\)the smallest output is q.Use it when range of a quadratic.
Reciprocal graphLearn it\(y=\dfrac a{x-b}+c\): domain \(x\ne b\), range \(y\ne c\)read them off the asymptotes.Use it when a curve with asymptotes.

Inputs and outputs

The domain is the set of inputs a function is allowed to take. The range is the set of outputs it actually produces from those inputs. A function can't divide by zero or take the square root of a negative number, so those inputs are left out.

FunctionDomainWhy
\(f(x)=\dfrac5{x-2}\)\(x\ne2\)x = 2 would divide by zero
\(f(x)=\sqrt{x-3}\)\(x\ge3\)no square root of a negative
\(f(x)=4x-3\)all real numbersnothing goes wrong

Try it yourself

1
Which value must be excluded from the domain of \(p(x)=\dfrac4{2x+6}\)?
Hint
\(2x+6=0\).
Show answer

Answer −3

Finding the range

General methodHow to find the range

  1. Linear function on a domain: work out the outputs at the two ends of the domain; write smaller ≤ f(x) ≤ larger.
  2. Quadratic (all real x): complete the square, \((x+p)^{2}+q\). A square is never negative, so \(f(x)\ge q\).
  3. A list of inputs: work out each output and list each value once.
  4. Ends of the domain included (≤) → ends of the range included; strict (<) → strict.

Example \(m(x)=7-2x\), domain \(0\le x\le5\). Find the range.

Work out both ends; it is decreasing, so they swap round.

  1. \(m(0)=7\), \(m(5)=-3\)

Answer \(-3\le m(x)\le7\)

Example 2 \(f(x)=x^{2}+4x-3\). Find the range.

Complete the square; the square is never negative.

  1. \(f(x)=(x+2)^{2}-7\)
  2. \((x+2)^{2}\ge0\)

Answer \(f(x)\ge-7\)

Try it yourself

1
\(g(x)=3x+1\), domain \(0\le x\le2\). Find the range.
Show answer

Answer \(1\le g(x)\le7\)

2
Range of \(f(x)=x^{2}+3\) (all real x). Type the smallest value of f(x).
Show answer

Answer 3

For a curve with asymptotes, the domain and range come straight from the asymptote lines. \(y=\dfrac a{x-b}+c\) has a vertical asymptote \(x=b\) (that x is never allowed) and a horizontal asymptote \(y=c\) (that y is never reached). So the domain is \(x\ne b\) and the range is \(y\ne c\). For \(y=2^{x}+1\) the curve stays above \(y=1\): range \(y>1\).

FunctionAsymptotesDomainRange
\(y=\dfrac3{x-2}+1\)\(x=2\), \(y=1\)\(x\ne2\)\(y\ne1\)
\(y=\dfrac1{x}\)\(x=0\), \(y=0\)\(x\ne0\)\(y\ne0\)
\(y=2^{x}+1\)\(y=1\)all x\(y>1\)
Going on to A Level: finding the range of a function from its graph or its completed square is a key skill in 9709 Paper 1. See Asymptotes for how to sketch these curves.

Ways they test it

Type 1 Range of a linear function

"\(k(x)=5x-4\), domain \(-2\le x\le3\). Find the range." (2 marks)

Spot it a domain with two ends.

  1. Work out both ends.
  2. Smaller first, same type of signs.

For example \(k(-2)=-14\), \(k(3)=11\)

    Answer \(-14\le k(x)\le11\)

    Type 2 Excluded value

    "Which value of x must be excluded from the domain of \(\dfrac4{2x+6}\)?" (1 mark)

    Spot it x in a denominator.

    1. Set the denominator = 0.
    2. Solve.

    For example \(2x+6=0\)

      Answer \(x=-3\)

      Type 3 Range of a quadratic

      "Write \(x^{2}-6x+11\) as \((x-a)^{2}+b\). Hence state the range." (3 marks)

      Spot it 'hence' after completing the square.

      1. Complete the square.
      2. Range: f(x) ≥ b.

      For example \((x-3)^{2}+2\)

        Answer \(f(x)\ge2\)

        Type 4 Mapping a list

        "h(x) = x² + 1 with domain {−2, −1, 0, 1, 2}. List the range." (1 mark)

        Spot it a set of inputs in curly brackets.

        1. Work out each output.
        2. List each value once.

        For example outputs 5, 2, 1, 2, 5

          Answer {1, 2, 5}

          Mistakes to avoid

          • ✗ Range = the domain✓ work out the outputsDifferent sets.
          • ✗ \(7\le m(x)\le-3\)✓ \(-3\le m(x)\le7\)Smaller value first.
          • ✗ Range of x² + 3 is x ≥ 3✓ f(x) ≥ 3A range is about the outputs.

          Summary

          • Domain = inputs allowed; range = outputs produced.
          • Exclude values that make a denominator zero or a square root negative.
          • Linear: the two ends. Quadratic: complete the square, \(f(x)\ge q\).
          • Asymptotes give the domain (x ≠ …) and range (y ≠ …) straight away.

          If you see …

          • "find the range" of a linear functionwork out the outputs at both ends of the domain.
          • a quadratic with no domain givencomplete the square: range ≥ the minimum.

          Practice

          Practice: easy, medium, hard

          Easy

          1
          \(g(x)=3x+1\), domain \(-1\le x\le4\). Find the range.
          Show answer

          Answer \(-2\le g(x)\le13\)

          2
          Which value must be excluded from the domain of \(\dfrac1{x+5}\)?
          Show answer

          Answer −5

          3
          \(h(x)=x^{2}+1\), domain {−2, −1, 0, 1, 2}. List the range.
          Show answer

          Answer 1, 2, 5

          Medium

          1
          \(k(x)=5x-4\), domain \(-2\le x\le3\). Find the range.
          Guide me

          What is it asking? an inequality

          What do we know? work out k(−2) and k(3)

          Plan smaller first

          Show working
          1. \(k(-2)=-14\)
          2. \(k(3)=11\)

          Answer \(-14\le k(x)\le11\)

          2
          \(m(x)=7-2x\), domain \(-1\le x\le3\). Find the range.
          Guide me

          What is it asking? an inequality

          What do we know? decreasing

          Plan m(−1) = 9, m(3) = 1

          Show working
          1. \(m(-1)=9\)
          2. \(m(3)=1\)

          Answer \(1\le m(x)\le9\)

          3
          Range of \(f(x)=x^{2}-4\) (all real x). Type the smallest value of f(x).
          Guide me

          What is it asking? the minimum output

          What do we know? \(x^{2}\ge0\)

          Plan so \(f(x)\ge-4\)

          Show working
          1. \(x^{2}\ge0\Rightarrow x^{2}-4\ge-4\)

          Answer −4

          Hard

          1
          \(f(x)=x^{2}-6x+11\). Write it as \((x-a)^{2}+b\) and state the smallest value of \(f(x)\).
          Guide me

          What is it asking? a, b, minimum

          What do we know? half of −6 is −3

          Plan subtract 9, add 11

          Show working
          1. \((x-3)^{2}-9+11=(x-3)^{2}+2\)
          2. range \(f(x)\ge2\)

          Answer \((x-3)^{2}+2\); minimum 2

          PartAnswer / workingMarksGuidance
          \((x-3)^{2}+2\)B2
          \(f(x)\ge2\)B1
          Total: 3 marks
          2
          \(f(x)=x^{2}+4x-3\). Find the smallest value of \(f(x)\).
          Guide me

          What is it asking? the minimum

          What do we know? \((x+2)^{2}-7\)

          Plan the square is never negative

          Show working
          1. \((x+2)^{2}-4-3\)
          2. \(f(x)\ge-7\)

          Answer −7

          PartAnswer / workingMarksGuidance
          \((x+2)^{2}-7\)B2
          \(f(x)\ge-7\)B1
          Total: 3 marks
          3
          \(y=\dfrac3{x-2}+1\). Which x-value is not in the domain, and which y-value is not in the range?
          Guide me

          What is it asking? two values

          What do we know? vertical asymptote where \(x-2=0\)

          Plan horizontal asymptote at \(y=1\)

          Show working
          1. \(x-2=0\Rightarrow x=2\)
          2. \(\dfrac3{x-2}\) is never 0, so \(y\) is never 1

          Answer \(x\ne2\), \(y\ne1\)

          PartAnswer / workingMarksGuidance
          \(x\ne2\)B1
          \(y\ne1\)B1
          Total: 2 marks

          Can I do this?

          Anything unticked: revise that section first. All ticked: take the quiz.

          Quiz

          The multiple-choice and guided questions need JavaScript. The concept checks and exam practice below work without it.

          Your progress on this note is saved when JavaScript is on.