Domain and Range AA SL

The domain of a function is the set of input values it accepts and the range is the set of output values it produces. Find the domain by excluding values that make the function undefined, such as a zero denominator, a negative number under a square root or a non-positive input to a logarithm. Find the range by thinking about the shape of the graph. The same ideas decide the domain and range of composite and inverse functions.

Which method to use

Find the domain by asking what values of xx would break the function, and the range by thinking about the graph.

The function hasDomain restrictionHow to find the range
A polynomialNone, all real numbersLinear: all real numbers. Quadratic: use the vertex and whether it opens up or down
xx in a denominatorThe denominator cannot be 00Look for the horizontal asymptote; the function never takes that value
A square root of an expressionThe expression must be 00 or moreThe square root is never negative, so use the smallest value of the expression
A logarithm of an expressionThe expression must be greater than 00All real numbers, unless the argument is limited
A composite function f∘gf\circ gxx must be in the domain of gg, and g(x)g(x) in the domain of ffThe outputs of gg must fit inside the domain of ff
A domain given in the questionUse that interval onlyEvaluate at the ends and at any turning point inside

SL2.2

Domain and range

The domain of a function is the set of input values it accepts, and the range is the set of output values it produces. Find the domain by excluding values that make the function undefined, such as a zero denominator, a negative number under a square root or a non-positive input to a logarithm. Find the range by thinking about the shape of the graph.

Domain, range, and inverses

These two facts aren't formula-booklet entries - they're definitions you're expected to know and apply, especially once inverse functions are involved.

Domain of an inverse

Domain of f−1=Range of f\text{Domain of } f^{-1} = \text{Range of } f

Not in the booklet - prior knowledge. Swapping input and output when you invert a function swaps their domain and range too.

Swap and rearrange

Write y=f(x)y=f(x), swap xx and yy, then rearrange to make yy the subject again - that's f−1(x)f^{-1}(x).

Useful whenever a question asks for the domain of an inverse before you've even found the inverse itself.

Key terms

What is the largest possible domain?

If no domain is stated, use every real number that gives a real output. Remove only the values that make the function undefined.

e.g. For f(x)=1x−2f(x)=\dfrac{1}{x-2}, the largest possible domain is all real xx except x=2x=2.

How do you write a domain or range?

Use inequalities. Strict signs leave out the end value, and ≤\le and ≥\ge include it.

e.g. f(x)=x+1f(x)=\sqrt{x+1} has domain x≥−1x\ge-1 and range f(x)≥0f(x)\ge0.

What is the range of a function?

The range is every output value f(x)f(x) that the function takes for inputs in its domain. Find it from the graph or from the greatest and least values.

e.g. f(x)=x2+3f(x)=x^{2}+3 has range f(x)≥3f(x)\ge3, since x2≥0x^2\ge0.

How does restricting the domain change the range?

Removing inputs can remove outputs, so the range depends on the domain given. Always check whether the question restricts xx.

e.g. f(x)=x2f(x)=x^2 has range f(x)≥0f(x)\ge0 for all real xx, but for 1≤x≤31\le x\le3 the range is 1≤f(x)≤91\le f(x)\le9.

Worked example, step by step

The question No calculator needed [5 marks]

Let f(x)=2x+1x−3f(x)=\dfrac{2x+1}{x-3}, where xx takes its largest possible domain.

(a) State the domain of ff.

(b) Find the range of ff.

Worked solution: worked example

Answer: (a) Domain: x≠3x\ne3. (b) Range: f(x)≠2f(x)\ne2.

Step 1 - Find what breaks the function.

A fraction is undefined when its denominator is zero. Solve x−3=0x-3=0, which gives x=3x=3. M1 - Set the denominator equal to zero, x−3=0x-3=0, or state that x≠3x\ne3 is needed

Why? The function is a fraction, so the only danger is a zero denominator. There is no square root or logarithm to cause other restrictions.

Step 2 - State the domain.

Every real number except 33, so the domain is x∈Rx\in\mathbb{R}, x≠3x\ne3. A1 - Domain x≠3x\ne3

Why? The largest possible domain is every real number that gives a real output, so you remove only the value that breaks the function.

Step 3 - Rewrite to see the outputs.

Divide the numerator by the denominator: 2x+1x−3=2(x−3)+7x−3=2+7x−3.\dfrac{2x+1}{x-3}=\dfrac{2(x-3)+7}{x-3}=2+\dfrac{7}{x-3}. M1 - Rewrite as 2+7x−32+\dfrac{7}{x-3}

Why? In the original form xx appears twice, which makes the outputs hard to see. In the new form xx appears once, so you can reason about the size of the second term.

Step 4 - Explain which value is missed.

The fraction 7x−3\dfrac{7}{x-3} can be any number except 00, because a fraction with numerator 77 is never zero. So f(x)=2+7x−3f(x)=2+\dfrac{7}{x-3} can be any number except 22. R1 - State that 7x−3\dfrac{7}{x-3} is never zero, so f(x)f(x) is never 22

Why? The range is every output the function can produce. Saying why 22 is missed, rather than just stating it, is what the reasoning mark is for.

Step 5 - State the range.

The range is f(x)∈Rf(x)\in\mathbb{R}, f(x)≠2f(x)\ne2. A1 - Range f(x)≠2f(x)\ne2

Why? This agrees with the horizontal asymptote y=2y=2 of the graph of a function of this form: the curve gets closer and closer to y=2y=2 but never reaches it.

Step 6 - Check.

Try to solve f(x)=2f(x)=2: 2x+1=2(x−3)2x+1=2(x-3) gives 1=−61=-6, which is impossible. So 22 is never an output, as found.

Why? Testing the excluded value directly confirms the range without relying on the rewriting.

Marks (5):
M1 Set the denominator equal to zero, x−3=0x-3=0, or state that x≠3x\ne3 is needed
A1 Domain x≠3x\ne3
M1 Rewrite as 2+7x−32+\dfrac{7}{x-3}
R1 State that 7x−3\dfrac{7}{x-3} is never zero, so f(x)f(x) is never 22
A1 Range f(x)≠2f(x)\ne2

Now you try: enter your answers to be marked

These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.

1
Easy
No calc
[4 marks]
Consider f(x)=x−4f(x) = \sqrt{x - 4}.
(a) State the domain of ff.
[2]
(b) State the range of ff.
[2]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
No calc
[4 marks]
Let f(x)=xf(x)=\sqrt{x} and g(x)=4−x2g(x)=4-x^2.
(a) Find (f∘g)(x)(f\circ g)(x).
[1]
(b) State the domain of f∘gf\circ g.
[3]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
No calc
[4 marks]
Let f(x)=x2−6x+5f(x)=x^2-6x+5 for 0≤x≤50\le x\le5.

Find the range of ff.
[4]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 12 marks

Common mistakes

  • Forgetting to exclude a zero denominator. Any xx that makes the bottom of a fraction zero must be removed from the domain, even if it looks harmless in the original expression.
  • Missing the restriction on logs and roots. The argument of ln⁡(⋅)\ln(\cdot) must be strictly positive, and the expression under a square root must be non-negative - both are easy to skip when the function is buried inside a composite.
  • Mixing up domain and range. The domain is the set of xx-values you're allowed to put in; the range is the set of yy-values that come out. Reading a graph's vertex or asymptote correctly only helps if you know which one you're being asked for.

Try some questions on domain and range

Using your GDC

The exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, with what the screen shows. Pick your calculator.

Enter a function and draw its graph

Used in: Domain and range

How to enter a function and draw its graph on a TI-84 Plus CE

Enter the function in Y= and draw it

Press Y=. If there are old functions, move to each one with ▲ or ▼ and press clear to erase it. A function is only drawn while the = sign beside it is highlighted.

Plot1 Plot2 Plot3
\Y1=
\Y2=
\Y3=

With the cursor next to Y1=, type X,T,θ,n x² − 4 X,T,θ,n + 3. The calculator uses X,T,θ,n for xx.

Plot1 Plot2 Plot3
\Y1=X²-4X+3
\Y2=
\Y3=

Press window and set Xmin = −2, Xmax = 6, Ymin = −2, Ymax = 8, leaving Xscl and Yscl as 1. For a negative number use the (−) key, not the subtraction key.

WINDOW
Xmin=-2
Xmax=6
Xscl=1
Ymin=-2
Ymax=8
Yscl=1

Press graph.

The curve is an upward-opening parabola. It meets the yy-axis at y=3y = 3.

Draw more than one function, or hide one

Type the next function next to Y2= (press ▼ to reach it) and press graph again: every function whose = sign is highlighted is drawn. To keep a function but not draw it, move onto its = sign with ◀ and press enter, so the highlight disappears. Press enter again to turn it back on.

If the graph is blank or cut off

Press zoom and choose 6:ZStandard to draw with the standard window, or choose 0:ZoomFit, which keeps your Xmin and Xmax and sets Ymin and Ymax so the whole curve fits. Choosing a window by hand is in set a good viewing window.

For a graph that contains sin, cos or tan, check the angle mode first: press mode and see switching between degrees and radians.

If the graph does not appear, the cause is usually the window, not the function. Look at the window values before you retype anything.

The full guide: Enter a function and draw its graph

Find a maximum, minimum or zero of a graph (stationary points)

Used in: Domain and range

How to find a maximum, minimum or zero on a TI-84 Plus CE

Graph the function and use the CALC menu

Press Y=, clear any old functions with clear, then type X,T,θ,n ^ 3 − 6 X,T,θ,n x² + 5 X,T,θ,n + 4 next to Y1=.

Plot1 Plot2 Plot3
\Y1=X^3-6X²+5X+4
\Y2=

Press window and set Xmin = −2, Xmax = 6, Ymin = −15, Ymax = 10. For a negative number use the (−) key, not the subtraction key. Press graph. The graph should show the turning points and the places where it crosses the x-axis.

WINDOW
Xmin=-2
Xmax=6
Xscl=1
Ymin=-15
Ymax=10
Yscl=1

For the local maximum, press 2nd trace (CALC) and choose 4:maximum. Left Bound? appears with the cursor on the graph: use ◀ to move it to the left of the maximum, then press enter. Right Bound? appears: use ▶ to move to the right of the maximum and press enter. Guess? appears: move the cursor close to the maximum, between the two bounds, and press enter. With more than one graph drawn, use ▲ or ▼ first to put the cursor on the right graph.

The screen shows Maximum with x=0.472x = 0.472 and y=5.13y = 5.13.

Maximum X=0.472475 Y=5.128451

For the local minimum, press 2nd trace and choose 3:minimum, then set the left bound, the right bound and the guess in the same way, with the bounds either side of the minimum.

The screen shows Minimum with x=3.528x = 3.528 and y=−9.13y = -9.13.

Minimum X=3.527525 Y=-9.128451

For a zero (a place where the graph crosses the x-axis), press 2nd trace and choose 2:zero. Set the left bound on one side of the crossing and the right bound on the other, then give a guess between them. Each search finds one zero, so repeat with the bounds round each of the other crossings.

The zero between x=1x = 1 and x=2x = 2 is x=1.711x = 1.711, with y=0y = 0.

Zero X=1.710831 Y=0

Put the left and right bounds either side of the point you want, and the guess between them. A bound or guess that is outside the window, or on the wrong side, gives an error or a different point.

The full guide: Find a maximum, minimum or zero of a graph (stationary points)

See the full list of GDC guides for every calculator task.

Syllabus content covered

CodeSyllabus content
SL2.2Concept of a function, domain, range and graph. Function notation, for example f(x)f(x), v(t)v(t), C(n)C(n). The concept of a function as a mathematical model. Informal concept that an inverse function reverses or undoes the effect of a function. Inverse function as a reflection in the line y=xy=x, and the notation f−1(x)f^{-1}(x). Example: f(x)=2−xf(x)=\sqrt{2-x}, the domain is x≤2x\le2, range is f(x)≥0f(x)\ge0. A graph is helpful in visualizing the range. The domain of f−1(x)f^{-1}(x) is equal to the range of f(x)f(x).
SL2.5Composite functions. (f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)). Identity function. Finding the inverse function f−1(x)f^{-1}(x). The existence of an inverse for one-to-one functions.

Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).

Quick questions

How do you find the domain of a function?

Look for values of xx that would break the function - a zero denominator, a negative number under a square root, or a non-positive argument inside a log - and exclude them from the domain.

What is the domain of an inverse function?

The domain of f−1f^{-1} is the range of ff, and the range of f−1f^{-1} is the domain of ff - the two swap places when you invert a function.

How do I find the domain of a function such as ln⁡(2x−6)\ln(2x-6)?

The input of a logarithm must be positive, so 2x−6>02x-6>0 and the domain is x>3x>3.

How do I find the range of a function from its graph?

Look at the lowest and highest yy-values the graph reaches, noting whether the end values are included. A curve that reaches y=2y=2 but never goes below it has range f(x)≥2f(x)\ge2.

How do I find the domain when there is both a square root and a denominator, as in 1x−1\dfrac{1}{\sqrt{x-1}}?

The root needs x−1≥0x-1\ge0, and the denominator cannot be zero, so x−1>0x-1>0 and the domain is x>1x>1. The outputs are all positive, so the range is f(x)>0f(x)>0.

Ready to practise properly?

Practice questions on every section, marked instantly like the real exam.