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 would break the function, and the range by thinking about the graph.
| The function has | Domain restriction | How to find the range |
|---|---|---|
| A polynomial | None, all real numbers | Linear: all real numbers. Quadratic: use the vertex and whether it opens up or down |
| in a denominator | The denominator cannot be | Look for the horizontal asymptote; the function never takes that value |
| A square root of an expression | The expression must be or more | The square root is never negative, so use the smallest value of the expression |
| A logarithm of an expression | The expression must be greater than | All real numbers, unless the argument is limited |
| A composite function | must be in the domain of , and in the domain of | The outputs of must fit inside the domain of |
| A domain given in the question | Use that interval only | Evaluate at the ends and at any turning point inside |
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
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 , swap and , then rearrange to make the subject again - that's .
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 , the largest possible domain is all real except .
How do you write a domain or range?
Use inequalities. Strict signs leave out the end value, and and include it.
e.g. has domain and range .
What is the range of a function?
The range is every output value that the function takes for inputs in its domain. Find it from the graph or from the greatest and least values.
e.g. has range , since .
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 .
e.g. has range for all real , but for the range is .
Worked example, step by step
The question No calculator needed [5 marks]
Let , where takes its largest possible domain.
(a) State the domain of .
(b) Find the range of .
Worked solution: worked example
Answer: (a) Domain: . (b) Range: .
Step 1 - Find what breaks the function.
A fraction is undefined when its denominator is zero. Solve , which gives . M1 - Set the denominator equal to zero, , or state that 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 , so the domain is , . A1 - Domain
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: M1 - Rewrite as
Why? In the original form appears twice, which makes the outputs hard to see. In the new form appears once, so you can reason about the size of the second term.
Step 4 - Explain which value is missed.
The fraction can be any number except , because a fraction with numerator is never zero. So can be any number except . R1 - State that is never zero, so is never
Why? The range is every output the function can produce. Saying why is missed, rather than just stating it, is what the reasoning mark is for.
Step 5 - State the range.
The range is , . A1 - Range
Why? This agrees with the horizontal asymptote of the graph of a function of this form: the curve gets closer and closer to but never reaches it.
Step 6 - Check.
Try to solve : gives , which is impossible. So is never an output, as found.
Why? Testing the excluded value directly confirms the range without relying on the rewriting.
M1 Set the denominator equal to zero, , or state that is needed
A1 Domain
M1 Rewrite as
R1 State that is never zero, so is never
A1 Range
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.
Worked solution: practice question 1
Worked solution: practice question 2
Find the range of .
Worked solution: practice question 3
Your score so far: 0 out of 12 marks
Calculator steps: Enter a function and draw its graph, Find a maximum, minimum or zero of a graph (stationary points)
Common mistakes
- Forgetting to exclude a zero denominator. Any 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 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 -values you're allowed to put in; the range is the set of -values that come out. Reading a graph's vertex or asymptote correctly only helps if you know which one you're being asked for.
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 . |
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 -axis at . |
|
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 and . |
|
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 and . |
|
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 and is , with . |
|
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
| Code | Syllabus content |
|---|---|
| SL2.2 | Concept of a function, domain, range and graph. Function notation, for example , , . 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 , and the notation . Example: , the domain is , range is . A graph is helpful in visualizing the range. The domain of is equal to the range of . |
| SL2.5 | Composite functions. . Identity function. Finding the inverse function . 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 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 is the range of , and the range of is the domain of - the two swap places when you invert a function.
How do I find the domain of a function such as ?
The input of a logarithm must be positive, so and the domain is .
How do I find the range of a function from its graph?
Look at the lowest and highest -values the graph reaches, noting whether the end values are included. A curve that reaches but never goes below it has range .
How do I find the domain when there is both a square root and a denominator, as in ?
The root needs , and the denominator cannot be zero, so and the domain is . The outputs are all positive, so the range is .
Ready to practise properly?
Practice questions on every section, marked instantly like the real exam.