Finding the domain and range of a function means identifying every input the rule accepts and every output it can actually produce. For most textbook functions you solve two separate problems: scan the expression for the five restrictions that kill inputs (division by zero, even roots of negatives, logs of non-positives, inverse trig arguments, and stated context limits), then invert the rule or read the vertex to pin down the outputs. Polynomials are the exception on both ends β every real number in, every real number out.
Start With the Denominator: Division by Zero Removes Points, Not Intervals
The first restriction to hunt for is a variable sitting in a denominator, because a fraction is undefined exactly where its bottom equals zero. Set that denominator to zero and solve; every solution you find is a hole punched out of the real line, and everything else survives. For f(x) = 1/(x β 3), the denominator dies at x = 3, so the domain is all reals except 3, written (ββ, 3) βͺ (3, β). For g(x) = (x + 1)/(xΒ² β 4), factoring gives (x β 2)(x + 2), so both 2 and β2 come out, and the domain is β \ {β2, 2}.
Watch for denominators that never reach zero. The expression xΒ² + 1 has a minimum value of 1, so h(x) = 5/(xΒ² + 1) is defined everywhere and its domain is all real numbers. That surprises people who assume any fraction carries a restriction. Check before you exclude.
A genuine failure case shows up when you clear denominators carelessly. Take f(x) = (xΒ² β 1)/(x β 1). Cancelling gives x + 1, and students often report the domain as all reals. Wrong. The original expression is undefined at x = 1, so the domain is β \ {1} even though the simplified rule is a straight line. The graph is that line with a single open point at (1, 2). Simplifying changes the rule, never the domain.
Rational functions with quadratics in the denominator are where most errors cluster, because a discriminant of zero collapses two roots into one excluded point. For k(x) = 7/(xΒ² β 6x + 9), the denominator is (x β 3)Β², so only x = 3 is excluded, not two values. Factor fully and count distinct roots.
Even Roots Need a Non-Negative Radicand, and That Inequality Does the Heavy Lifting
A square root (or any even root) of a negative number is not a real number, so the expression under the radical must be greater than or equal to zero. Set the radicand β₯ 0 and solve the inequality. For f(x) = β(x β 5), you need x β 5 β₯ 0, giving x β₯ 5, so the domain is [5, β) β a closed bracket because 5 itself is allowed. For g(x) = β(9 β xΒ²), the inequality 9 β xΒ² β₯ 0 factors to (3 β x)(3 + x) β₯ 0, which holds on [β3, 3].
Quadratics under a radical are the standard trap because the solution is an interval, not two rays. Build a sign chart: mark the roots on a number line, test one point in each region, and take the regions where the product is positive or zero. The roots themselves always belong, so brackets close on both ends.
Nested restrictions stack. For h(x) = β(x + 2)/(x β 4), the radical demands x β₯ β2 and the denominator bans x = 4, so the domain is [β2, 4) βͺ (4, β). Work one restriction at a time, then intersect the results. Miss either piece and the answer is wrong.
Odd roots behave completely differently, and this is where a lot of students over-restrict. The cube root of a negative number is real β β(β8) = β2 β so f(x) = β(x β 1) has domain β with no inequality to solve. The same applies to fifth roots and every other odd index. The restriction exists only for even indices like 2, 4, and 6.
Logarithms and Inverse Trig Functions Impose Their Own Arguments
A logarithm requires a strictly positive argument, so ln(x) needs x > 0 and log(x β 2) needs x > 2, with a round bracket at the boundary because zero itself is excluded. That single character difference from a square root β parenthesis instead of bracket β costs marks on exams every year. For f(x) = logβ(xΒ² β 4), solve xΒ² β 4 > 0 to get (ββ, β2) βͺ (2, β), two separate rays with both endpoints open.
Inverse trig functions tighten the input window in a way that's easy to forget. The arcsine and arccosine accept only arguments between β1 and 1 inclusive, so f(x) = arcsin(2x β 1) requires β1 β€ 2x β 1 β€ 1, which solves to 0 β€ x β€ 1. Arctangent and arccotangent accept every real number, so those carry no restriction at all. Check which inverse you have before assuming.
Combine a log with a fraction and the domain is the intersection. For g(x) = ln(x)/(x β 3), the log needs x > 0 and the denominator bans x = 3, so the domain is (0, 3) βͺ (3, β). Neither restriction overrides the other; both must hold simultaneously. Writing them as a list first and intersecting second keeps you from dropping one.
Word problems add a context restriction on top of the algebra, and that restriction is often the one that matters. A function giving the area of a rectangle with perimeter 40 is A(x) = x(20 β x), algebraically fine for every real x, but a side length cannot be negative, so the practical domain is (0, 20). Pure algebra says β; the situation says otherwise, and on an application question the situation wins.
Piecewise and Radical-Denominator Combos Are Where Domains Get Messy
A piecewise function carries a domain stitched from its pieces, and the honest answer is the union of the intervals where each piece applies, minus any points where that piece itself fails. If f(x) = xΒ² for x < 0 and 1/x for x β₯ 0, the first piece is defined on (ββ, 0) and the second on (0, β) because 1/x fails at exactly 0, so the domain is β \ {0}. Read the conditions attached to each piece before you worry about the algebra inside.
Functions that put a radical in the denominator need both checks applied to the same expression but with different inequalities β strict for the denominator, non-strict for the root alone. For f(x) = 1/β(x β 4), the radical needs x β₯ 4, but the denominator needs β(x β 4) β 0, which forces x β 4, so the domain collapses to (4, β). A bracket at 4 would be wrong twice over.
Composite functions are the quiet killer. For f(g(x)) with f(u) = βu and g(x) = x β 3, you need x β 3 β₯ 0, so the domain is [3, β). Now flip it: f(x) = x β 3 and g(u) = βu, so f(g(x)) = βx β 3, and the domain is [0, β). Same two functions, different order, different answer. Track which expression is actually the input.
Table of the five restriction rules, with the domain each one produces on a bare expression:
| Restriction type | Test condition | Example | Resulting domain |
|---|---|---|---|
| Denominator | Denominator β 0 | 1/(x β 3) | β \ {3} |
| Even root | Radicand β₯ 0 | β(x β 5) | [5, β) |
| Odd root | No restriction | β(x β 1) | β |
| Logarithm | Argument > 0 | ln(x β 2) | (2, β) |
| Inverse sine/cosine | β1 β€ argument β€ 1 | arcsin(2x β 1) | [0, 1] |
Read this table as a checklist and apply each row that matches your expression. If no row matches, the domain is all real numbers, and you should say so plainly rather than inventing a restriction.
Rational Functions: Read the Horizontal Asymptote, Then Check for Holes
For a rational function, the range usually starts with the horizontal asymptote, because the graph approaches that line without crossing it in most cases. For f(x) = 1/(x β 3), the horizontal asymptote is y = 0, so 0 is excluded from the range and the answer is (ββ, 0) βͺ (0, β). For g(x) = (2x + 1)/(x β 4), the asymptote sits at y = 2 (ratio of leading coefficients when degrees match), so the range is β \ {2}.
Holes complicate that shortcut, and this is the case most online explanations skip. For f(x) = (xΒ² β 4)/(x β 2), the simplified rule is x + 2 with a hole at x = 2, so the graph is the line y = x + 2 minus the point (2, 4). The range is therefore β \ {4}, not all reals, because 4 is the y-value of the missing point. A horizontal asymptote can also be crossed by some rational functions, which means the asymptote-only rule fails and you need calculus or a sign analysis to finish the job.
Set the rule equal to y and solve for x to check a suspicious value. For f(x) = (x + 1)/(x β 2), writing y = (x + 1)/(x β 2) and solving gives x = (2y + 1)/(y β 1), which fails at y = 1 β confirming 1 is excluded and the range is β \ {1}. That inversion method works whenever the function is one-to-one on its domain, and it exposes crossed asymptotes that the visual shortcut hides.
Degree comparisons set the asymptote quickly. Numerator degree lower than denominator gives y = 0; equal degrees give the ratio of leading coefficients; numerator degree exactly one higher gives a slant asymptote instead of a horizontal one, and the range covers all reals once you account for the excluded hole values. Confirm the asymptote on a graphing tool before committing, since the algebra can hide a crossing.
Quadratics and Polynomials: Vertex for Range, All Reals for Domain
Every polynomial β linear, quadratic, cubic, anything with whole-number powers β has domain β, with no exceptions and no restriction rules to apply. The interesting work is the range. For a quadratic in standard form f(x) = axΒ² + bx + c, the vertex sits at x = βb/(2a), and the y-value there is the minimum (if a > 0) or the maximum (if a < 0). For f(x) = xΒ² β 6x + 5, the vertex x-coordinate is 6/2 = 3, the vertex y-value is 3Β² β 18 + 5 = β4, and since a = 1 > 0 the range is [β4, β).
Vertex form makes it instant. For f(x) = 2(x + 1)Β² β 7, the vertex is (β1, β7) and the positive leading coefficient gives range [β7, β). Flip the sign and g(x) = β3(x β 2)Β² + 4 has maximum value 4 at x = 2, so the range is (ββ, 4]. Complete the square once if the function arrives in standard form, then read the answer off.
Cubics and higher odd-degree polynomials have range β because they run from ββ to β without a floor or ceiling. That covers f(x) = xΒ³, f(x) = xβ΅ β 3x, and any odd-degree polynomial you meet. Even-degree polynomials with a positive leading coefficient have a minimum but no maximum; with a negative leading coefficient they have a maximum but no minimum. That single sign test settles most range questions on polynomials without any calculus.
If the quadratic has no real roots, the vertex still exists and still sets the range. For f(x) = xΒ² + 1, the vertex is (0, 1) and the range is [1, β) even though the graph never touches the x-axis. Students sometimes confuse "no x-intercepts" with "no minimum," and those are unrelated facts.
Square Roots and Absolute Values: Range From the Vertex, Not the Domain
For a square-root function f(x) = aβ(x β h) + k, the range begins at the vertex y-value k, and the sign of a decides direction. For f(x) = β(x β 4) + 2, domain is [4, β) and range is [2, β), because the root output is never negative and adding 2 lifts the floor to 2. For g(x) = ββ(x + 1) + 5, the domain is [β1, β) but the range is (ββ, 5], since the negative sign flips the direction and 5 becomes the ceiling.
Absolute value functions behave the same way around their vertex. For f(x) = |x β 3| β 1, domain is β and range is [β1, β). For g(x) = β2|x + 4| + 6, range is (ββ, 6]. The vertex coordinates come straight off the transformed form, and the multiplier's sign picks floor or ceiling.
Watch for square roots that never reach their floor because of other structure. For f(x) = β(xΒ² + 1), the radicand has a minimum of 1, so the square root has a minimum of 1 and the range is [1, β), not [0, β). The floor moves up because the input never falls to zero. That same reasoning applies to any even root whose radicand has a positive minimum.
Composition with a quadratic inside a radical produces intervals, not rays. For f(x) = β(9 β xΒ²), the domain is [β3, 3] and the range is [0, 3], because the radicand peaks at 9 (giving root 3) and bottoms at 0 at the endpoints. Picture the upper half of a circle of radius 3 and the answer is obvious. Sketch first when a composite gets tangled.
Build the Domain First, Then the Range: A Worked Run Through Four Functions
The reliable order is domain first, range second, because the range depends on which inputs actually exist. Start with the expression, list every restriction that applies, intersect the results, and only then look at what outputs the surviving inputs can produce. Doing it in the other order invites answers that include outputs from inputs the function never accepts. Set aside two minutes per problem and you'll finish four functions in under ten.
Worked sequence for four common cases:
1: f(x) = 1/(xΒ² β 4). Denominator zero at x = 2 and x = β2, so domain = β \ {β2, 2}. For the range, note the denominator runs over (ββ, β4] βͺ (0, β), so the reciprocal runs over [β1/4, 0) βͺ (0, β); the range is [β1/4, β). 2: f(x) = β(x + 3). Radicand β₯ 0 gives x β₯ β3, domain = [β3, β). Root output is never negative, so range = [0, β). 3: f(x) = xΒ² β 4x + 1. Polynomial, domain = β. Vertex at x = 2, y = 4 β 8 + 1 = β3, positive leading coefficient, range = [β3, β). 4: f(x) = ln(x β 5). Argument > 0 gives x > 5, domain = (5, β). Logarithm covers all reals, so range = β.
Failure handling matters more than the clean cases. If your domain comes out empty, you made an arithmetic error β go back and recheck the inequalities. If the range answer contains a value you suspect is impossible, plug the corresponding y back into the rule, solve for x, and see whether that x lands inside the domain. When it doesn't, the value is genuinely outside the range. Slow down at the intersection step; almost every wrong answer is a correct inequality with a dropped endpoint.
Interval Notation, Brackets, and the Versions of This Method You'll Meet
Brackets encode inclusion and parentheses encode exclusion, and the notation is where correct algebra gets thrown away. Write β and ββ with parentheses only, because infinity is a direction, not a number. Union symbols join disconnected pieces; a backslash after β means "real numbers except." For f(x) = 1/(x β 3), write (ββ, 3) βͺ (3, β), and for f(x) = β(x β 5), write [5, β) β the bracket at 5 is doing real work.
Software versions of this task use slightly different machinery, and knowing that saves confusion when you cross-check. In Desmos, type the expression and the graph shows the domain as the horizontal span where a curve exists; the range is the vertical span. On a TI-84 Plus CE, the "Calculate minimum" and "Calculate maximum" tools under the CALC menu return both coordinates of a vertex, which reads off the range for quadratics directly. The textbook method and the graphing method should agree; when they don't, trust the algebra and find the error.
This method has been taught in roughly the same form since the 1950s, so nothing about it is version-specific or likely to change. The five restrictions β denominator, even root, log argument, inverse trig argument, and context β cover every elementary function on a standard precalculus syllabus. If you meet a function type not covered here, such as a secant or cosecant, the restriction is hidden in the reciprocal: sec ΞΈ = 1/cos ΞΈ, so domain excludes wherever cos ΞΈ = 0.
One habit worth building: graph the function on any free tool after you finish by hand, and check that the visible curve spans exactly the x-range and y-range you wrote down. A mismatch is a signal, not a failure β either your algebra or your reading of the graph is off, and the disagreement points to where. That self-check catches most endpoint errors before they cost marks.
FAQ
What is the range of f(x) = xΒ² + 4x + 1?
The range is [β3, β). The vertex sits at x = βb/(2a) = β4/2 = β2, and the y-value there is (β2)Β² + 4(β2) + 1 = 4 β 8 + 1 = β3. Because the leading coefficient is positive, the parabola opens upward and β3 is the floor. This is one below the answer for xΒ² β 4x + 1, since the sign on the linear term shifts the vertex left instead of right.
Is the domain of a cube root function ever restricted?
No, the domain of any odd root is all real numbers. A cube root accepts negative inputs because β(β27) = β3 is a real number, unlike the square root of a negative. A cube root function can still be restricted by an outer denominator or log, so check the whole expression, not just the root.
Can a function have a hole in its range but not its domain?
Yes β f(x) = (xΒ² β 4)/(x β 2) has domain β \ {2} and range β \ {4}. The hole in the domain at x = 2 removes the input that would have produced y = 4 in the simplified rule. This is the case most quick-answer sites miss, and it matters on any exam that tests rational functions in depth.
How do you find the range of a rational function whose graph crosses its horizontal asymptote?
Solve y = f(x) for x in terms of y and identify which y-values make the solution impossible. For f(x) = (x + 1)/(x β 2), solving gives x = (2y + 1)/(y β 1), which fails at y = 1, so the range is β \ {1} regardless of where the asymptote sits. When the asymptote is crossed, the asymptote tells you nothing β the inversion tells you everything.
What's the difference between domain and range, in one sentence?
The domain is the set of inputs the function accepts, and the range is the set of outputs it actually produces from those inputs. Domain is measured along the x-axis, range along the y-axis, and the two are connected β a restricted domain can shrink the range, but the range never contains a value the domain can't generate.
Does a square root function's range always start at zero?
No, it starts at whatever the vertical shift sets, and can move up if the radicand never reaches zero. For f(x) = β(xΒ² + 1), the minimum radicand is 1, so the range is [1, β). For f(x) = β(x β 4) + 2, the shift lifts the floor to 2, giving [2, β). Checking the radicand's minimum catches both cases.
How much time does a domain-and-range problem take on an exam?
Roughly 90 seconds for a single-restriction function and up to three minutes for a piecewise or composite case, based on typical precalculus timing. Budget the extra minute for the intersection step, because that step produces most of the errors on timed tests. Verify with a graphing app afterward only if time allows.