The domain of a rational function
Leans on
Quick review (2 minutes)
Picture a vending machine with one broken button.
A rational function has the form f(x) = , where P(x) and Q(x) are polynomials and Q(x) is not the zero polynomial.
Domain of f: every real number x with Q(x) ≠ 0. Solve Q(x) = 0 on the original formula, before any canceling, and leave out each solution.
Say what is asked. 'Find the domain' means: list every input x that gives an output.
Cover the top. Copy down only the bottom of the formula as it was given. Do not cancel anything first.
Set the bottom equal to 0. This hunts for the inputs that would make the machine divide by 0.
Solve that equation. If the bottom is a line, undo the adding and the multiplying. If it has or higher, factor it and set each factor equal to 0.
Plug each solution back into the original bottom and confirm that you get 0.
Write the domain: all real numbers except those solutions. On a number line, put an open dot at each excluded number and write the pieces between them in interval notation, joined by ∪.
Work from the formula exactly as it was given. Do not simplify or cancel yet.
Ignore the top. Write the bottom by itself.
Set the bottom equal to 0. The solutions are the inputs to throw out, not the domain itself.
Solve. A bottom like 2x − 6 takes two moves: add 6, then divide by 2. A bottom with or needs factoring first, then each factor is set equal to 0.
Plug every solution back into the original bottom to see the 0 with your own eyes.
Line the excluded numbers up from smallest to largest. They cut the number line into pieces. Write each piece with round parentheses and join the pieces with ∪.
Count: one excluded number makes two pieces, two make three, three make four. If nothing is excluded, the domain is (−∞, ∞).
Find the domain of f(x) = . In plain words: list every input x that gives an output, by first finding the inputs that do not.
Excluded inputs: x = −3 and x = 4
Domain: (−∞, −3) ∪ (−3, 4) ∪ (4, ∞)
In words: all real numbers except −3 and 4
Canceling before you find the domain. f(x) = factors to and cancels to x + 1, which looks as if it accepts every number. But the original formula at x = 1 is 0 ÷ 0, which has no answer. The domain is still (−∞, 1) ∪ (1, ∞). Always solve bottom = 0 on the formula as it was given, and simplify only after that.
rational function
A function written as a fraction: one polynomial on top, another polynomial on the bottom. It is defined everywhere except where the bottom equals zero.
1 In plain words
Picture a vending machine with one broken button. Every other button drops a snack. Press the broken one and nothing comes out. A rational function is a fraction machine: one polynomial on top, another polynomial on the bottom. You feed it a number for x. It works out the top, works out the bottom, then divides. Almost every number goes through. The only numbers that fail are the ones that turn the bottom into 0, because no number can be divided by 0. The domain is the list of buttons that work: every real number except the ones that make the bottom zero. Finding the domain means finding the broken buttons and taping over them.
2 Picture it
Reminder
Reminder: Domain, Dividing by zero, Solving a linear equation, A product equal to zero, Factoring + bx + c, A square is never negative, Interval notation
- Domain. The domain is the set of all inputs a function accepts. For f(x) = , the domain is every real number except 0.
- Dividing by zero. No number can be divided by 0. 8 ÷ 0 asks what number times 0 gives 8, and nothing does. But 0 ÷ 8 = 0, because 0 × 8 = 0.
- Solving a linear equation. Undo the adding first, then the multiplying. 2x − 6 = 0: add 6 to get 2x = 6, then divide by 2 to get x = 3.
- A product equal to zero. If two things multiply to 0, one of them is 0. (x − 4)(x + 3) = 0 means x − 4 = 0 or x + 3 = 0, so x = 4 or x = −3.
- Factoring + bx + c. Find two numbers that multiply to c and add to b. For − x − 12, the numbers are −4 and 3, so it factors as (x − 4)(x + 3).
- A square is never negative. ≥ 0 for every real number x: = 9 and (−3 = 9. So plus a positive number is never 0.
- Interval notation. A round parenthesis leaves the end out, and ∪ means 'together with'. (−∞, 3) ∪ (3, ∞) reads: everything below 3, together with everything above 3.
3 Why
Division is multiplication run backward. 12 ÷ 3 = 4 because 4 × 3 = 12. So 12 ÷ 0 asks: what number times 0 gives 12? No number does, since anything times 0 is 0. An input that makes the bottom 0 therefore has no output, so it cannot be in the domain. Nothing else can go wrong. A polynomial only adds, subtracts and multiplies, and those work for every real number. So the top never causes trouble, and the bottom causes trouble only where it equals 0. That is why you look at the bottom and nowhere else.
4 The rule
A rational function has the form , where P(x) and Q(x) are polynomials and Q(x) is not the zero polynomial.
Domain of f: every real number x with . Solve on the original formula, before any canceling, and leave out each solution.
The same idea, five ways
'x can be any real number except 3.' Or: 'all reals but 3.'
The domain of f(x) = is every real number other than 3, because 3 is the one input that makes the bottom zero.
- x ≠ 3
- {x | x ≠ 3}
- Graph words: the graph has no point straight above or below x = 3
A road that runs forever in both directions with one bridge out at mile 3. You can stand anywhere on the road except on that one spot.
The same idea, other ways
Draw the number line. For f(x) = , the bottom is 0 at x = −2 and at x = 2, since (−2 − 4 = 0 and − 4 = 0. Erase those two dots. Everything that is still drawn is the domain: three stretches of line with two tiny gaps.
The machine for f(x) = has two jobs: subtract 3 from your number, then divide 5 by the result. Feed it 4 and it computes 5 ÷ 1 = 5. Feed it 8 and it computes 5 ÷ 5 = 1. Feed it 3 and it reaches 5 ÷ 0 and jams. The number 3 is the broken button. Every other button works.
Take f(x) = and try whole numbers. In the table, the columns under 0, 1, 3, 4 and 5 each hold an output. There is no column under 2, because f(2) would be 6 ÷ 0. Look at the columns under 1 and 3, the neighbors of 2: both hold ordinary numbers. The trouble sits at 2 alone, not near it.
Sharing 12 cookies among 3 plates puts 4 on each. Among 2 plates, 6 each. Among 1 plate, all 12. Among 0 plates, there is nowhere to put a cookie, and no count per plate makes sense. A fraction is a sharing problem, with the bottom as the number of plates. When the bottom is 0, the question has no answer, so that input has no output.
The top can be zero. The bottom cannot. Cover the top with your thumb, ask 'when is the bottom 0?', and throw those numbers out. Everything else stays.
5 How
- Say what is asked. 'Find the domain' means: list every input x that gives an output.
- Cover the top. Copy down only the bottom of the formula as it was given. Do not cancel anything first.
- Set the bottom equal to 0. This hunts for the inputs that would make the machine divide by 0.
- Solve that equation. If the bottom is a line, undo the adding and the multiplying. If it has or higher, factor it and set each factor equal to 0.
- Plug each solution back into the original bottom and confirm that you get 0.
- Write the domain: all real numbers except those solutions. On a number line, put an open dot at each excluded number and write the pieces between them in interval notation, joined by ∪.
Finding the domain of a rational function
- Work from the formula exactly as it was given. Do not simplify or cancel yet.
- Ignore the top. Write the bottom by itself.
- Set the bottom equal to 0. The solutions are the inputs to throw out, not the domain itself.
- Solve. A bottom like 2x − 6 takes two moves: add 6, then divide by 2. A bottom with or needs factoring first, then each factor is set equal to 0.
- Plug every solution back into the original bottom to see the 0 with your own eyes.
- Line the excluded numbers up from smallest to largest. They cut the number line into pieces. Write each piece with round parentheses and join the pieces with ∪.
- Count: one excluded number makes two pieces, two make three, three make four. If nothing is excluded, the domain is (−∞, ∞).
6 Worked example
Worked example
A quadratic bottom with two excluded inputs
Find the domain of f(x) = . In plain words: list every input x that gives an output, by first finding the inputs that do not.
Show the steps and the answer
- Cover the top, . Write down only the bottom: .The top is a polynomial, and a polynomial accepts every real number. Only the bottom can stop the division.
- Set the bottom equal to 0: .This step hunts for the inputs that would make the machine divide by 0, so they can be thrown out. It is not solving f(x) = 0.
- Factor the bottom. Find two numbers that multiply to and add to . They are and 3, so .(−4) × 3 = −12 and −4 + 3 = −1. A factored bottom shows its zeros one factor at a time.
- Set each factor equal to 0. gives . gives .A product is 0 only when one of its factors is 0, so these two small equations find every zero of the bottom.
- Plug each value back into the original bottom. At : . At : .Both make the bottom 0. The top is 9 at x = 4 and −5 at x = −3, so f(4) would be 9 ÷ 0 and f(−3) would be −5 ÷ 0. Neither has an answer.
- Throw out and 4 and keep everything else. On the number line, put an open dot at and an open dot at 4, then shade the three stretches around them.Two excluded numbers cut the line into three pieces: left of −3, between −3 and 4, and right of 4.
- Write the pieces in interval notation from left to right: .A round parenthesis means that end is left out, and ∪ joins the pieces into one set.
- Excluded inputs: x = −3 and x = 4
- Domain: (−∞, −3) ∪ (−3, 4) ∪ (4, ∞)
- In words: all real numbers except −3 and 4
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 1 of 6
One number to leave out
Find the domain of f(x) = . In plain words: which inputs give an output?
Show the steps and the answer
- Look at the bottom only: .The top is the number 4. It never causes trouble.
- Set the bottom equal to 0 and solve: , so .This finds the one input that would make the bottom zero, so it can be thrown out. Adding 6 to both sides leaves x alone.
- Plug it back in: , so f(6) would be .Division by 0 has no answer, so 6 is not in the domain.
- Write everything else: .One excluded number cuts the number line into two pieces.
- Excluded input: x = 6
- Domain: (−∞, 6) ∪ (6, ∞)
Rung 2 of 6
A line on the bottom, a fraction to leave out
Find the domain of g(x) = . In plain words: find the input that breaks the division, then keep all the others.
Show the steps and the answer
- Write the bottom and set it equal to 0: .This finds the input that makes the bottom zero. The top, x + 1, is ignored.
- Subtract 2 from both sides: .Subtracting 2 undoes the + 2 and keeps the equation balanced.
- Divide both sides by 3: .Dividing by 3 undoes the multiplying by 3. The answer is a fraction. Leave it exact.
- Plug it back in: .The bottom really is 0 there, so − must be left out.
- Write the domain: .One excluded number, two pieces.
- Excluded input: x = −
- Domain: (−∞, −) ∪ (−, ∞)
Rung 3 of 6
A bottom that is never zero
Find the domain of h(x) = . In plain words: is there any input that makes the bottom 0?
Show the steps and the answer
- Write the bottom and set it equal to 0: .Same hunt as always: look for inputs that make the bottom zero.
- Subtract 9 from both sides: .This asks which number, multiplied by itself, gives −9.
- Stop. No real number squared is negative, so this equation has no solution. is 0 or more for every real x, so + 9 is 9 or more. The bottom never reaches 0.
- Exclude nothing. Domain: .With no input that breaks the division, every real number is allowed.
- Excluded inputs: none
- Domain: (−∞, ∞), all real numbers
Rung 4 of 6
Pull out a number, then a difference of squares
Find the domain of k(x) = . In plain words: find every input that makes 2 − 18 equal 0 and leave those out.
Show the steps and the answer
- Set the bottom equal to 0: .This finds the inputs that would force a division by 0.
- Factor out the 2: .Both terms share a factor of 2, since 18 = 2 × 9.
- Factor as , giving .(x − 3)(x + 3) = + 3x − 3x − 9 = − 9. The middle terms cancel.
- Set each factor that contains x equal to 0: gives , and gives .A product is 0 only when a factor is 0. The factor 2 is never 0, so it adds nothing.
- Plug both back in: , and .Both inputs make the bottom zero, so both are thrown out.
- Write the domain: .Two excluded numbers cut the line into three pieces.
- Excluded inputs: x = −3 and x = 3
- Domain: (−∞, −3) ∪ (−3, 3) ∪ (3, ∞)
Rung 5 of 6
A common factor that tempts you to cancel
Find the domain of m(x) = . In plain words: which inputs does the formula, as written, accept?
Show the steps and the answer
- Do not cancel anything yet. Write the original bottom and set it equal to 0: .The domain belongs to the formula as it was given, before any simplifying.
- Factor: two numbers that multiply to 10 and add to are and , so .(−2) × (−5) = 10 and −2 + (−5) = −7.
- Set each factor equal to 0: and .These are the inputs that make the bottom zero, so they are the ones to throw out.
- Plug both back in: , and .Both make the original bottom 0.
- Notice the top: . It shares the factor () with the bottom. Keep 2 excluded anyway.At x = 2 the original formula is 0 ÷ 0. That asks what number times 0 gives 0, and every number does, so there is no single answer. The canceled form matches m only at inputs m already accepts.
- Write the domain: .Two excluded numbers, three pieces.
- Excluded inputs: x = 2 and x = 5
- Domain: (−∞, 2) ∪ (2, 5) ∪ (5, ∞)
Rung 6 of 6
A cubic bottom with three excluded inputs
Find the domain of p(x) = . In plain words: find every input that makes the bottom 0, then keep all the rest.
Show the steps and the answer
- Set the bottom equal to 0: .This finds every input that would force a division by 0.
- Factor out x: .Every term of the bottom contains at least one x.
- Factor the part in parentheses: two numbers that multiply to and add to are and 1. So .(−5) × 1 = −5 and −5 + 1 = −4.
- Set each of the three factors equal to 0: gives , and gives .A product is 0 only when a factor is 0. The lone x out front is a factor too, and it is the one people forget.
- Plug each back into the original bottom. At 0: . At 5: . At : .All three make the bottom zero, so all three are thrown out.
- Put them in order, , 0, 5, and write the domain: .Three excluded numbers cut the line into four pieces.
- Excluded inputs: x = −1, x = 0 and x = 5
- Domain: (−∞, −1) ∪ (−1, 0) ∪ (0, 5) ∪ (5, ∞)
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Memory device: 'The top can be zero. The bottom cannot.' Cover the top with your thumb before you start.
- Check in two directions. Each excluded number, plugged into the original bottom, must give exactly 0. One allowed number from each piece must give a bottom that is not 0.
- Count your pieces. One excluded number gives two intervals, two give three, three give four. If the count is off, a zero of the bottom is missing or an extra one slipped in.
- Count your zeros. A bottom whose highest power is has at most two zeros, and one with has at most three, because each zero uses up one factor containing x.
- Use round parentheses at every excluded number and at −∞ and ∞. A square bracket would say the number is included, and it is not.
- Watch the sign. The factor (x − 4) excludes 4, and the factor (x + 3) excludes −3. When unsure, plug the number in and see whether the factor becomes 0.
- Find the domain first, simplify second. Write the excluded numbers at the top of your page so they survive any canceling later.
7 The trap
Canceling before you find the domain. f(x) = factors to and cancels to x + 1, which looks as if it accepts every number. But the original formula at x = 1 is 0 ÷ 0, which has no answer. The domain is still (−∞, 1) ∪ (1, ∞). Always solve bottom = 0 on the formula as it was given, and simplify only after that.
Flash cards
Say the answer out loud, then flip.
In the vending machine picture, which buttons are the broken ones for a rational function?
- The inputs that turn the bottom of the fraction into 0.
- Every other real number works, so the domain is all real numbers except those.
Why do you check only the bottom of a rational function when finding the domain, and never the top?
- The top is a polynomial. It only adds, subtracts and multiplies, and those work for every real number.
- The one step that can fail is the division, and it fails only when the bottom equals 0.
Find the domain of f(x) = .
- Set the bottom equal to 0: − 5x + 6 = 0.
- Factor: (x − 2)(x − 3) = 0, so x = 2 or x = 3.
- Check: − 5 · 2 + 6 = 0 and − 5 · 3 + 6 = 0.
- Domain: (−∞, 2) ∪ (2, 3) ∪ (3, ∞).
f(x) = cancels to x + 3. Is x = 3 in the domain?
- No. In the formula as it was given, x = 3 makes the bottom 0, and the machine tries 0 ÷ 0, which has no answer.
- Domain: (−∞, 3) ∪ (3, ∞).
- Solve bottom = 0 first. Cancel only after that.