edubun
English

Domain and range

f(x) = √(x + 2) has no real output at x = −3, because −3 + 2 = −1 and a negative number has no real square root. Its domain starts at −2.

What comes out when −3 goes into √(x + 2)?

It is tempting to think that a formula accepts any number. Try one. Put x = −3 into f(x) = √(x + 2). Under the root you get −3 + 2 = −1, and no real number squared gives −1. Nothing comes out. So the formula itself rules some inputs out, and the inputs it does accept form a set with its own name.

Domain is what goes in, range is what comes out

The domain of a function is the set of inputs it accepts, and the range is the set of outputs it can produce. For a list of pairs you read them off. OpenStax gives the function {(2, 10), (3, 10), (4, 20), (5, 30), (6, 40)}: its domain is {2, 3, 4, 5, 6} and its range is {10, 20, 30, 40}. The value 10 appears twice as an output but is listed once in the range. For a formula, the domain is usually every real number that does not break a rule of arithmetic.

Two rules decide most domains

For real numbers there are two rules to watch. You cannot divide by 0, and you cannot take an even root, such as a square root, of a negative number. OpenStax turns this into a short check. If the formula has no denominator and no even root, the domain is probably all real numbers. If it has a denominator, remove every x that makes the denominator 0. If it has an even root, keep only the x that make the expression under the root zero or positive. Real situations add their own limits: a number of tickets cannot be negative.

Examples make it concrete. For f(x) = 1/(x − 1), the denominator is 0 at x = 1, so the domain is every real number except 1. For f(x) = √(x + 2), we need x + 2 ≥ 0, so x ≥ −2. For f(x) = √(6 − x), we need 6 − x ≥ 0, so x ≤ 6. For f(x) = x² − 4 there is nothing to avoid and the domain is all real numbers; its range, though, is not everything, because x² is never negative, so x² − 4 is never below −4.

Brackets keep an endpoint, parentheses drop it

Domains and ranges are often whole stretches of the number line, and interval notation writes them compactly. The smaller endpoint comes first, then a comma, then the larger. A square bracket [ or ] means the endpoint is included; a parenthesis ( or ) means it is left out. Infinity is not a number you can reach, so it always gets a parenthesis. OpenStax's example: if you have $100 to spend, the amount you can spend is more than 0 and at most 100, written (0, 100]. The domain of √(x + 2) is [−2, ∞), and the domain of 1/(x − 1) is (−∞, 1) ∪ (1, ∞), where ∪ joins two pieces.

WordsInequalityInterval
x is at least −2x ≥ −2[−2, ∞)
x is at most 6x ≤ 6(−∞, 6]
x is more than 0 and at most 1000 < x ≤ 100(0, 100]
every real number except 1x ≠ 1(−∞, 1) ∪ (1, ∞)
every real number(−∞, ∞)

Domain and range as shadows on the two axes

On a graph, the domain is the shadow the curve casts on the x-axis, and the range is its shadow on the y-axis. Squash the graph flat onto each axis and see what is covered. In the lab the green bar on the x-axis is the domain and the orange bar on the y-axis is the range. A filled dot at an end means that endpoint belongs to the set; an open dot means it does not, which is the open circle you see at x = 1 for 1/(x − 1). Move the x slider into a forbidden region and the panel tells you which rule the input breaks.

Loading

Drag to turn. Scroll or pinch to zoom.

f(x) = √(x + 2): domain [−2, ∞), range [0, ∞). Pick another function from the list, such as 1/(x − 1), and try the input x = 1.
  1. What is the domain of f(x) = √(x + 2)?
    • [−2, ∞)
    • (−2, ∞)
    • [2, ∞)
    • (−∞, ∞)
  2. What is the domain of f(x) = 1/(x − 1)?
    • (−∞, 1) ∪ (1, ∞)
    • (1, ∞)
    • [1, ∞)
    • (−∞, ∞)
  3. What is the range of f(x) = x² − 4?
    • [−4, ∞)
    • (−∞, ∞)
    • [4, ∞)
    • (−4, ∞)
  4. What is the smallest number in the domain of f(x) = √(x − 5)?
  5. Which input must be left out of the domain of f(x) = 1/(x + 3)?
  6. How is "more than 0 and at most 100" written as an interval?
    • (0, 100]
    • [0, 100)
    • [0, 100]
    • (0, 100)
  7. What is the domain of {(2, 10), (3, 10), (4, 20), (5, 30), (6, 40)}?
    • {2, 3, 4, 5, 6}
    • {10, 20, 30, 40}
    • {2, 10}
    • {2, 3, 4, 5, 6, 10, 20, 30, 40}
  8. What is the range of the same set of pairs?
    • {10, 20, 30, 40}
    • {10, 10, 20, 30, 40}
    • {2, 3, 4, 5, 6}
    • [10, 40]
  9. What is the range of f(x) = 3 − |x|?
    • (−∞, 3]
    • [3, ∞)
    • (−∞, 3)
    • (−∞, ∞)
  10. What is the domain of f(x) = x³?
    • (−∞, ∞)
    • [0, ∞)
    • (0, ∞)
    • (−∞, 0]
Common mistakes
  • Giving {4, 9} as the domain of {(1, 4), (2, 4), (3, 9)}. That is the range. The domain is the set of first numbers, {1, 2, 3}. Before you write anything, say which side goes in.
  • Saying f(x) = x² + 1 has range (−∞, ∞) because its domain is (−∞, ∞). Domain and range are separate questions. x² ≥ 0, so x² + 1 ≥ 1, and 1 is reached at x = 0. The range is [1, ∞).
  • Writing the domain of √(x − 3) as (3, ∞). At x = 3 the root is √0 = 0, a real number, so 3 belongs: [3, ∞). Zero under a square root is fine. Zero in a denominator is not.
Teacher's noteDomain and range sound alike to a beginner, and both are sets. Tie each word to a direction and an axis before any formula: domain, in, x-axis; range, out, y-axis. With formulas, have students write the condition first, such as x − 1 ≠ 0 or x + 2 ≥ 0, and only then the interval. Going straight to brackets is where endpoints get lost.
Key points
  • Domain: allowed inputs. Range: possible outputs.
  • Leave out inputs that divide by 0 or take an even root of a negative number.
  • Interval notation: [ ] includes an endpoint, ( ) leaves it out, ∞ always gets ( ).
  • On a graph, the domain and range are its shadows on the two axes.
Sources for this course (8)
  • Curriculum: 교육부 고시 제2022-33호 [별책 8] 수학과 교육과정 (ncic.re.kr/inv/org/download.do?year=2022&seq=10003559&orgType=ogi4, PDF read 2026-10-19: 중학교 1~3학년군 [9수02-06] 그래프 해석(증가와 감소), [9수02-14] 함수의 개념·함숫값, 용어 함수·함숫값·기울기·평행이동, 고려 사항 「한 양이 변함에 따라 다른 양이 하나씩 정해지는 두 양 사이의 대응 관계를 이용하여 도입」; 고등학교 공통수학2 [10공수2-01-06] 평행이동, [10공수2-01-07] 원점·x축·y축·직선 y = x에 대한 대칭이동, [10공수2-03-01] 함수의 개념(두 집합 사이의 대응 관계), [10공수2-03-02] 합성함수, [10공수2-03-03] 역함수, 용어 정의역·치역·공역·대응·일대일대응·일대일함수·합성함수·역함수, 기호 f: X → Y, g ∘ f, (g ∘ f)(x), y = g(f(x)), f⁻¹, y = f⁻¹(x), 교수·학습 용어 조건제시법; 미적분Ⅰ 용어 구간·닫힌구간·열린구간 [a, b], (a, b), 평균변화율, [12미적Ⅰ-02-07] 증가와 감소, 극댓값·극솟값)
  • Textbook: OpenStax, College Algebra 2e, 3.1 Functions and Function Notation (relation, domain and range of ordered pairs, {(1, 2), (2, 4), (3, 6), (4, 8), (5, 10)}, the odd/even relation that is not a function, coffee menu prices, vertical line test, horizontal line test, one-to-one: openstax.org/books/college-algebra-2e/pages/3-1-functions-and-function-notation)
  • Textbook: OpenStax, College Algebra 2e, 3.2 Domain and Range (no even root of a negative number, no division by 0, interval notation with brackets and parentheses, (0, 100] for "more than 0 and at most $100", {(2, 10), (3, 10), (4, 20), (5, 30), (6, 40)}: .../pages/3-2-domain-and-range)
  • Textbook: OpenStax, College Algebra 2e, 3.3 Rates of Change and Behavior of Graphs (average rate of change, increasing and decreasing intervals, local maxima and minima: .../pages/3-3-rates-of-change-and-behavior-of-graphs)
  • Textbook: OpenStax, College Algebra 2e, 3.4 Composition of Functions (f(g(x)); f(x) = 2x + 1 and g(x) = 3 − x give f(g(x)) = 7 − 2x and g(f(x)) = −2x + 2, so composition is not commutative; c(s) calories and s(t) sit-ups; f(x) = 1/x and g(x) = x − 3: .../pages/3-4-composition-of-functions)
  • Textbook: OpenStax, College Algebra 2e, 3.5 Transformation of Functions (g(x) = f(x) + k vertical shift, f(x − h) horizontal shift, −f(x) and f(−x) reflections, af(x) stretches and compressions, roof vent example S(t) = V(t) + 20 (open vent area in square feet plus 20): .../pages/3-5-transformation-of-functions)
  • Textbook: OpenStax, College Algebra 2e, 3.7 Inverse Functions (f⁻¹ is not an exponent and not 1/f, C = (5/9)(F − 32), 75 °F is about 24 °C, 26 °C is about 79 °F, x² restricted to [0, ∞), reflection about y = x: .../pages/3-7-inverse-functions)
  • History block only: MacTutor, University of St Andrews, The function concept (Leibniz, August 1673, the word "function"; Johann Bernoulli's letter of 2 September 1694; Euler, Introductio in analysin infinitorum 1748 and Institutiones calculi differentialis 1755; Dirichlet 1837; Goursat 1923 "y = f(x)": mathshistory.st-andrews.ac.uk/HistTopics/Functions)

Checked: 2026-10-18