topic badge

2.03 Domain and range

Lesson

We have been exploring how functions and relations can be used to describe ways of linking two sets of data. We also learnt that relations can only be functions if there's only one $y$y value associated with each $x$x value.

For example, $\left\{\left(1,2\right),\left(5,3\right),\left(2,-7\right),\left(5,-1\right)\right\}${(1,2),(5,3),(2,7),(5,1)} is not a function as the same $x$x value of $5$5 can be related to the $y$y values of both $3$3 and $-1$1. We also know that graphically, we can use the vertical line test to see if a relation is a function.

Domain and range give us a way to describe the set of inputs and outputs for relations. These two words sound similar, don't they? They both seem to be talking about areas and spans, and in maths they have similar definitions:

Definition

Domain - the possible $x$x values of a relation

Range - the possible $y$y values of a relation

There are a number of ways to find the domain and range of a relation. One is to look at the coordinates given and simply list the possible values. For example in the previous example, the domain is $\left\{1,5,2\right\}${1,5,2} and the range is $\left\{2,3,-7,-1\right\}${2,3,7,1}. Notice how repeated values are not included and order is not important, as we only care about the POSSIBLE values of $x$x and $y$y

The other method is to look at a relation graphically, and see how 'wide' or 'long' the graph is:

Horizontally this graph spans from $-1$1 to $1$1, so we can write the domain as $-1\le x\le1$1x1. Similarly, the graph goes vertically from $-2$2 to $2$2 so the range can be written as $-2\le y\le2$2y2.

 

Practice questions

Question 1

Consider the relation in the table.

$x$x $y$y
$1$1 $3$3
$6$6 $2$2
$3$3 $7$7
$8$8 $1$1
$2$2 $2$2
  1. What is the domain of the relation? Enter the values, separated by commas.

  2. What is the range of the relation? Enter the values separated by commas.

  3. Is this relation a function?

    Yes

    A

    No

    B

question 2

Consider the graph of the relation on the $xy$xy-plane below.

Loading Graph...

A Cartesian coordinate plane with three points plotted with solid dots. The x and y-axis ranges from 0 to 12 marked in intervals of two. The points are connected by three line segments forming a triangle. A solid line segment connects the points $\left(2,7\right)$(2,7) to $\left(9,8\right)$(9,8), the points $\left(9,8\right)$(9,8) to $\left(7,3\right)$(7,3), and from points $\left(7,3\right)$(7,3) to $\left(2,7\right)$(2,7). The coordinates are not explicitly labeled.
  1. What is the domain of the relation?

    Express your answer using inequalities.

  2. What is the range of the relation?

    Express your answer using inequalities.

  3. Is this relation a function?

    Yes

    A

    No

    B

 

Natural domain of an equation

A relation or function may be given as an equation, for example $f(x)=x^2+1$f(x)=x2+1. The equation may have implied restrictions because of the type of equation or restrictions implied or defined for the context of the problem.

Firstly, when looking for the implied or 'natural domain' of an equation we can ask "Is there any input value the equation cannot handle?".

Exploration

The function $f\left(x\right)=\sqrt{x}$f(x)=x, defined for real numbers, cannot handle negative real numbers. Hence, its domain is: $x\ge0$x0.

The function $f\left(x\right)=\frac{1}{x}$f(x)=1x cannot handle zero. Hence, its domain is the compound interval: $\left(-\infty,0\right)\cup\left(0,\infty\right)$(,0)(0,)

Our first example, $f\left(x\right)=x^2+1$f(x)=x2+1 has no exclusions and so its natural domain includes all real numbers: $\left(-\infty,\infty\right)$(,).

Secondly, there might be what could be called user-defined restrictions where certain restrictions are put onto the domain so that the function makes sense in the real world.

For example, we might decide to define our function $f\left(x\right)=3.5x$f(x)=3.5x with a domain given by the set of positive integers, because we are actually using the function to determine the revenue on selling $x$x apples. Again we might define the function $f\left(t\right)=200t-4.9t^2$f(t)=200t4.9t2 where $t$t is the elapsed time in seconds after the stroke of midnight on 31 December 2015. Negative time makes no sense, so we restrict the input to the time domain  $t\ge0$t0

Worked example

Find the natural domain of $f\left(x\right)=\sqrt{x-x^2}$f(x)=xx2, defined over the reals. 

If we try $x=2$x=2, we immediately find a problem, since $f\left(2\right)=\sqrt{2-2^2}=\sqrt{-2}$f(2)=222=2. Clearly the natural domain is some subset of the real numbers that doesn't include $2$2. But how do we find it?

We know that we need $x-x^2\ge0$xx20, or after factorising, $x\left(1-x\right)\ge0$x(1x)0. In words this says that the product of the two numbers $x$x and $1-x$1x must be positive. A little thought leads to the realisation that $x$x must be confined to the interval $0\le x\le1$0x1.

Any number outside that interval will cause either $x$x or $1-x$1x (but never both) to become negative, and hence the product will become negative as well. So the natural domain is given by $0\le x\le1$0x1.

 

Range from equations

To find the range you can try one of the following strategies:

  • Graph the equation using technology and observe the range
  • Use our knowledge of the type of graph the equation produces to understand if there are any restrictions in the vertical direction. E.g. Find turning points for parabolas.
  • Rearrange the equation to '$x=$x= ....' and similar to domain ask ourselves "Is there any $y$y value the equation cannot handle?"

 

Remember!

If a restriction of the domain is given check key features of the graph as well as the end-points for restriction on the range.

 

When looking at parabolas, unless we have been given a restricted domain, we will find that the domain is all real $x$x, also written as the set $\left(-\infty,\infty\right)$(,), and that the range is either $\left[\text{min value},\infty\right)$[min value,) for concave up parabolas, or $\left(-\infty,\text{max value}\right]$(,max value] for concave down parabolas. This is illustrated in the following image.  

 

 

 

Practice questions

Question 3

The function $f$f is used to determine the area of a square given its side length.

  1. Which of the following values is not part of the domain of the function?

    $-8$8

    A

    $6.5$6.5

    B

    $9$9$\frac{1}{3}$13

    C

    $\sqrt{78}$78

    D
  2. For $n\ge0$n0, state the area function for a side length of $n$n.

  3. Plot the graph of the function $f$f.

    Loading Graph...

Question 4

The function $f\left(x\right)=\sqrt{x+1}$f(x)=x+1 has been graphed.

Loading Graph...

  1. State the domain of the function. Express as an inequality.

  2. Is there a value in the domain that can produce a function value of $-2$2?

    Yes

    A

    No

    B

question 5

Consider the parabola defined by the equation $y=x^2+5$y=x2+5.

  1. Is the parabola concave up or concave down?

    Concave up

    A

    Concave down

    B
  2. What is the $y$y-intercept of the parabola?

  3. What is the minimum $y$y value of the parabola?

  4. Hence determine the range of the parabola.

    $y\ge\editable{}$y

Question 6

Consider the graph of the rational function.

Loading Graph...

  1. State the domain using interval notation.

  2. State the range using interval notation.

Outcomes

1.2.1.3

use function notation, domain and range, and independent and dependent variables

What is Mathspace

About Mathspace