Guide, worksheet, and answer key
Find the domain restrictions and excluded values of a function, then write the domain in interval notation. This guide covers denominators, even roots, logarithms, graphs, and composite functions. The worksheet has 24 practice problems and three challenge problems, all with answers.
Written by Berke Sahbazoglu · BA Biochemistry, Washington University in St. Louis · 10+ years of tutoring experience; teaches Algebra I and Algebra II · Burke Tutoring in Fremont, CA · Published · Free to print
The problems below are adapted from problem types I use in Algebra II and Precalculus tutoring sessions.
Part of a nine guide unit. See all the rational expressions and rational functions worksheets, listed in a recommended order.
Download the worksheet and cheat sheet (PDF)
The domain of a function is the set of inputs that produce a real output. When a function is given only as a formula, such as f(x) = √x − 4x − 7, its domain is every real number the formula can accept. Textbooks call this the natural domain or implied domain.
A domain restriction is a condition that removes numbers from that set. An excluded value is one specific number that is removed. In a rational expression, it is a number that makes the denominator equal to zero. In the function above, 7 is an excluded value, and the square root adds the restriction x ≥ 4.
| Term | Meaning | Example |
|---|---|---|
| Domain | All x-values that give a real output | For 1/(x − 3): every real number except 3 |
| Excluded value | One number removed from the domain | 3, for 1/(x − 3) |
| Domain restriction | Any condition that removes numbers, one point or a whole interval | x − 4 ≥ 0, for √x − 4 |
| Restricted domain | A domain stated on purpose, narrower than the natural one | A(w) = w(20 − w) for 0 < w < 20 |
An excluded value removes a single point. A square root or a logarithm can remove an entire interval, such as every number below 4. Both answer the same question: for which inputs is the formula undefined?
In Algebra II, restrictions come from a short list of operations. Check the function for each one, write the condition it creates, and solve that condition.
| Operation in the function | Condition | Example | What gets removed |
|---|---|---|---|
| Division by an expression that contains x | denominator ≠ 0 | 5/(x − 2): x ≠ 2 | Single points |
| Negative exponent | base ≠ 0 | (x + 1)−2: x ≠ −1 | Single points |
| Square root or any even root | radicand ≥ 0 | √x − 4: x ≥ 4 | One or more intervals |
| Even root inside a denominator | radicand ≥ 0, and the complete denominator ≠ 0 | 1/√x − 4: x > 4; 1/(√x − 3): x ≥ 0, x ≠ 9 | Intervals, plus each point where the denominator is zero |
| Fraction exponent m/n in lowest terms, with n even | base ≥ 0, or base > 0 when the exponent is negative | x3/4: x ≥ 0; x−1/2: x > 0 | One or more intervals |
| Logarithm, ln or log | argument > 0 | ln(x + 3): x > −3 | Intervals, with the endpoint removed too |
| Polynomials, odd roots, absolute value, exponentials such as 2x | none of their own | 3√x − 8: every real x | Nothing, though the expression inside may carry restrictions |
| A real situation | the input has to make sense | a length has to be positive | Depends on the context |
When a function contains more than one of these, every condition has to hold at the same time. The domain is the set of numbers that pass all of them, which is the intersection of the individual solution sets.
Odd roots accept negative numbers. The cube root of −8 is −2, because (−2)3 = −8. Only even roots (square roots, fourth roots, and so on) need a nonnegative radicand. This page reads xm/n as (n√x)m. Some graphing tools treat x2/3 differently for negative x, so check which convention your class uses.
For a rational expression, the excluded values are the real zeros of the denominator. The routine has three steps.
Step 3 matters because simplifying changes the formula. The expression x2 − 9x2 + x − 6 simplifies to x − 3x − 2, and the simplified form only shows x ≠ 2. The original also excludes −3. The two expressions are equal only when x ≠ −3 and x ≠ 2, so both restrictions stay attached to the simplified answer.
On a graph, an excluded value shows up in one of two ways. If its factor cancels out of the denominator completely, the graph has a hole at that x-value. If a copy of the factor is still in the denominator after canceling, the graph has a vertical asymptote there. Either way the number is excluded from the domain.
Dividing by a rational expression adds one more source. In x + 1x − 3 ÷ x − 4x + 2, the numbers 3 and −2 are excluded because they zero out a denominator, and 4 is excluded because at x = 4 you would be dividing by zero.
The square root of a negative number is not a real number, so the radicand of an even root has to be greater than or equal to zero. That makes the restriction an inequality instead of an equation, so its solution can contain whole intervals of numbers.
For √10 − 2x, solve 10 − 2x ≥ 0. Subtract 10 to get −2x ≥ −10, then divide by −2. Dividing by a negative number reverses the inequality, so x ≤ 5. The domain is (−∞, 5]. A quick check: x = 0 gives √10, which is real, so 0 belongs in the answer.
For √x2 − 16, the radicand is zero at x = −4 and x = 4. Those two numbers split the number line into three intervals. Test one number from each: x = −5 gives 9, x = 0 gives −16, and x = 5 gives 9. The radicand is nonnegative outside the zeros and at the zeros themselves, so the domain is (−∞, −4] ∪ [4, ∞). This method is called a sign chart.
Keep two separate conditions when a root sits in a denominator. Every even-root radicand has to be nonnegative, and the complete denominator has to be nonzero.
In 5√3 − x, the root is the whole denominator. The radicand needs 3 − x ≥ 0, and the denominator √3 − x equals zero when x = 3. Together these give 3 − x > 0, so x < 3 and the domain is (−∞, 3). The same shortcut, radicand greater than zero, applies whenever the root is the entire denominator or one of its factors.
In 1√x − 3, the root is only one term of the denominator, so the shortcut does not apply. The radicand needs x ≥ 0, and the denominator √x − 3 equals zero when x = 9. Zero is allowed, because the denominator there is −3. The domain is [0, 9) ∪ (9, ∞).
If the radicand is itself a fraction, write two conditions: the inner denominator is not zero, and the whole fraction is at least zero. The sign chart then needs cut points at the zeros of the inner numerator and the inner denominator. Challenge problem 25 below is this case.
When a function has two or more sources, write one condition per source, solve each one, and keep only the numbers that pass all of them. A stacked number line makes the overlap easy to see. This page calls it a restriction map: one row per condition, plus a last row that is shaded only where every row above it is shaded.
Sometimes one restriction makes another one redundant. In ln(x) + √x + 2, the logarithm needs x > 0 and the root needs x ≥ −2. Every number greater than 0 is already greater than −2, so the domain is (0, ∞). The root condition still belongs on your paper. In this function it does not remove anything new.
Teachers and textbooks ask for the domain in interval notation, set-builder notation, or inequalities. All three describe the same set.
| Inequality | Interval notation | Set-builder notation |
|---|---|---|
| x ≠ 2 | (−∞, 2) ∪ (2, ∞) | {x ∈ ℝ | x ≠ 2} |
| x ≥ 4 | [4, ∞) | {x ∈ ℝ | x ≥ 4} |
| x < 3 | (−∞, 3) | {x ∈ ℝ | x < 3} |
| −3 ≤ x ≤ 4 | [−3, 4] | {x ∈ ℝ | −3 ≤ x ≤ 4} |
| x ≤ −4 or x ≥ 4 | (−∞, −4] ∪ [4, ∞) | {x ∈ ℝ | x ≤ −4 or x ≥ 4} |
| x ≥ −5, x ≠ −2, x ≠ 2 | [−5, −2) ∪ (−2, 2) ∪ (2, ∞) | {x ∈ ℝ | x ≥ −5, x ≠ ±2} |
| no restriction | (−∞, ∞) | ℝ |
On a graph, the domain is the set of x-values the graph covers. Read it from left to right along the x-axis, and look closely at the ends and at any gaps.
| Graph of the function | |
| Closed dot: the point is on the graph | |
| Open circle: the point is not on the graph | |
| Dashed line: vertical asymptote | |
| Arrowhead: the graph continues | |
| Domain | [−6, 0) ∪ (0, 3) ∪ (3, ∞) |
In a word problem, the situation can restrict the domain further than the formula does. A rectangle with a perimeter of 40 cm and a width of w cm has area A(w) = w(20 − w). The formula accepts every real w, but the width has to be positive and so does the other side, 20 − w. The domain in context is 0 < w < 20. Common Core standard HSF.IF.B.5 asks students to relate the domain of a function to its graph and to the situation it describes.
When two functions are added, subtracted, or multiplied, the result is defined only where both functions are defined, so the domain is the intersection of the two domains. Dividing adds one more condition: (f/g)(x) also needs g(x) ≠ 0.
A composite function f(g(x)) needs two things. First, x has to be in the domain of g. Second, the output g(x) has to be in the domain of f. Work from the inside out. Worked example 4 below does this for f(x) = 1/(x − 3) and g(x) = √x.
Find the domain before you simplify a composite. With f(x) = x2 and g(x) = √x − 1, the composite f(g(x)) = (√x − 1)2 simplifies to x − 1. The simplified formula accepts every real number, but g is only defined for x ≥ 1, so the domain of f(g(x)) is [1, ∞).
Find the excluded values of x2 − 9x2 + x − 6, then simplify it.
| Graph of the function | |
| Open circle: the point is not on the graph | |
| Dashed line: vertical asymptote | |
| Arrowhead: the graph continues | |
| x = −3 | Hole at (−3, 6/5), because the factor x + 3 cancels |
| x = 2 | Vertical asymptote, because the factor x − 2 remains |
Find the domain of g(x) = √12 + x − x2.
Find the domain of h(x) = √x + 5x2 − 4.
Let f(x) = 1x − 3 and g(x) = √x. Find the domain of f(g(x)).
These are six mistakes I correct in tutoring sessions on domain. Each one shows the wrong step, the fix, and the reason.
Build the list from the original denominator, before canceling. The canceled factor still made the original expression undefined at −3.
At x = 1 the expression equals 0/(−24) = 0, a real number. For a rational expression, only a zero in the denominator makes it undefined.
The whole radicand has to be nonnegative, not x by itself. Testing x = 1 gives √−3, which is not real.
At x = 2 the denominator is √0 = 0. The radicand has to be nonnegative and the complete denominator has to be nonzero. With the root as the whole denominator, those two conditions combine to x − 2 > 0.
Dividing both sides by −2 reverses the inequality. A test value catches it: x = 0 gives √6, which is real, so 0 has to be in the domain.
An excluded value gets a parenthesis on both sides of the gap. Infinity takes a parenthesis because no number in the set equals it.
Type a function of x. The finder lists every restriction it finds and names its source. It solves each one, draws the restriction map, and writes the domain in interval, set-builder, and inequality notation. You can also test a single value of x to see which rows pass. Work a problem by hand first, then use the finder to check each row of your work.
Use sqrt( ), cbrt( ), root(4, …), abs( ), ln( ), log( ), ^ for powers, and / for division. 2x and (x+1)(x-2) work without a multiplication sign. Put the whole denominator in parentheses: 1/(2x).
The finder handles polynomials and fractions of polynomials, square roots and other roots, absolute value, ln and log, and powers with whole-number or fraction exponents. Inside a single denominator, radicand, or logarithm it can solve one root or one logarithm at a time, such as √x − 3. If a condition goes beyond that, the finder reports that it cannot solve it. Boundaries are kept exact where a short exact form exists, such as √3 or e. Any other boundary is shown as a rounded decimal marked ≈.
The drill gives you a function or a graph and scores your domain in interval notation. Type inf for ∞ and U for ∪, as in (-inf, 2) U (2, inf). Fractions such as 3/2 are fine. If the notation itself has a problem, such as a bracket on infinity or intervals listed out of order, the drill tells you what to fix and does not score that entry.
This is the same content as the printable reference card. It is written out here so you can read it on a phone.
The worksheet PDF has all 24 practice problems and the three challenge problems with work space and number lines, followed by a full answer key with every domain shaded. The cheat sheet is one page.
Answers are in the collapsible box under each part. Write every domain in interval notation unless the directions say otherwise.
| Graph of the function | |
| Closed dot: the point is on the graph | |
| Open circle: the point is not on the graph | |
| Arrowhead: the graph continues |
| Graph of the function | |
| Closed dot: the point is on the graph | |
| Dashed line: vertical asymptote | |
| Arrowhead: the graph continues |
25. (−∞, −3] ∪ (1, ∞). The inner denominator needs x ≠ 1, and the radicand needs x + 3x − 1 ≥ 0. A sign chart with cuts at −3 and 1 shows the fraction is positive for x < −3 and x > 1. At x = −3 the fraction equals 0, and √0 = 0 is real, so −3 is included. At x = 1 the fraction is undefined, so 1 is excluded.
26. One answer is f(x) = √x + 2x − 5. The square root requires x ≥ −2, which starts the domain at −2 with a bracket, and the denominator removes 5. Grade other answers on whether their domain matches [−2, 5) ∪ (5, ∞); for example 1x − 5 + 4√x + 2 also works.
27. (−∞, 1] ∪ (2, ∞). The inside function f needs x ≠ 2. The outside function g needs f(x) + 1 ≥ 0, which is 1x − 2 + 1 = x − 1x − 2 ≥ 0. A sign chart with cuts at 1 and 2 gives x ≤ 1 or x > 2. Problem 22 had domain [−1, 3) ∪ (3, ∞), so reversing the order of a composition can change the domain completely.
Excluded values come back when you solve rational equations: a solution that matches an excluded value is extraneous and has to be rejected. The rational equations and extraneous solutions worksheet builds on the lists you make here.
All free to print, each with a full answer key.
Berke Sahbazoglu · Founder and tutor, Burke Tutoring in Fremont, CA
I have more than ten years of tutoring experience and teach Algebra I, Algebra II, and Precalculus in homes across Fremont, Newark, and Union City. I hold a BA in Biochemistry from Washington University in St. Louis and an MS in Bioinformatics from the University of Maryland Global Campus. The worksheets I publish here are built from the notes and homework sets I use in sessions.
Burke Tutoring provides in-home tutoring in Algebra I, Algebra II, and Precalculus across Fremont, Newark, and Union City. Sessions happen at your kitchen table, on your schedule, with the same tutor each week.
(510) 453-0350Serving Fremont, Newark, and Union City · Rates and formats
Standards and further reading