Algebra

Domain and Range

Last updated: March 2026 · Intermediate
Before you start

You should be comfortable with:

Real-world applications
🌑️
HVAC

Refrigerant charging, airflow, system sizing

πŸ’°
Retail & Finance

Discounts, tax, tips, profit margins

Every function has a domain and a range. The domain is the set of all inputs the function can accept, and the range is the set of all outputs the function actually produces. Understanding these two sets tells you where a function β€œlives” β€” what you are allowed to plug in and what you can expect to get out. This matters in pure algebra and in every applied field, where physical constraints naturally limit the inputs and outputs of a formula.

Definitions

  • Domain: The set of all xx-values (inputs) for which the function is defined.
  • Range: The set of all yy-values (outputs) that the function produces.

Think of the domain as β€œwhat can I plug in?” and the range as β€œwhat comes out?”

Finding Domain and Range from a Table

When a function is given as a set of ordered pairs or a table, the domain is the collection of all xx-values and the range is the collection of all yy-values.

Example 1: Find the domain and range

xxf(x)f(x)
βˆ’3-399
0000
2244
552525

Domain: {βˆ’3,β€…β€Š0,β€…β€Š2,β€…β€Š5}\{-3,\; 0,\; 2,\; 5\}

Range: {0,β€…β€Š4,β€…β€Š9,β€…β€Š25}\{0,\; 4,\; 9,\; 25\}

List each value once, even if it appears multiple times in the table.

Finding Domain and Range from a Graph

On a graph, the domain is the set of xx-values the graph covers (read left to right), and the range is the set of yy-values the graph covers (read bottom to top).

Example 2: A line segment from (βˆ’2,1)(-2, 1) to (4,7)(4, 7)

The graph starts at x=βˆ’2x = -2 and ends at x=4x = 4, so the domain is [βˆ’2,4][-2, 4]. The lowest yy-value is 1 and the highest is 7, so the range is [1,7][1, 7].

Example 3: The graph of y=x2y = x^2

The parabola extends infinitely left and right, so the domain is (βˆ’βˆž,∞)(-\infty, \infty). The lowest point is at y=0y = 0 (the vertex), and the graph opens upward forever, so the range is [0,∞)[0, \infty).

Interval Notation

Interval notation is a compact way to describe continuous sets of numbers:

NotationMeaningIncludes endpoints?
[a,b][a, b]All numbers from aa to bbYes (both)
(a,b)(a, b)All numbers between aa and bbNo (neither)
[a,b)[a, b)All numbers from aa up to but not including bbLeft only
(a,b](a, b]All numbers after aa through bbRight only
(βˆ’βˆž,∞)(-\infty, \infty)All real numbersN/A β€” infinity is never included
[0,∞)[0, \infty)All numbers from 0 onwardLeft only

Key rule: Use a square bracket [[ or ]] when the endpoint is included, and a parenthesis (( or )) when it is not. Infinity always gets a parenthesis because it is not a number you can reach.

Set-Builder Notation

Set-builder notation describes a set by stating the condition its members must satisfy:

{x∣xβ‰₯0}readsΒ asΒ "theΒ setΒ ofΒ allΒ xΒ suchΒ thatΒ xΒ isΒ greaterΒ thanΒ orΒ equalΒ toΒ 0"\{x \mid x \geq 0\} \quad \text{reads as "the set of all } x \text{ such that } x \text{ is greater than or equal to 0"}

The vertical bar ∣\mid means β€œsuch that.” Some textbooks use a colon instead: {x:xβ‰₯0}\{x : x \geq 0\}.

Comparing the Two Notations

Interval notationSet-builder notation
(βˆ’βˆž,∞)(-\infty, \infty){x∣x∈R}\{x \mid x \in \mathbb{R}\}
[0,∞)[0, \infty){x∣xβ‰₯0}\{x \mid x \geq 0\}
(βˆ’βˆž,5)(-\infty, 5){x∣x<5}\{x \mid x < 5\}
(βˆ’βˆž,3)βˆͺ(3,∞)(-\infty, 3) \cup (3, \infty){x∣xβ‰ 3}\{x \mid x \neq 3\}

Both notations say the same thing β€” use whichever your course requires.

Finding Domain from Equations

For most algebraic functions, the domain is β€œall real numbers” unless the equation contains one of these restrictions:

Restriction 1: Division by Zero

You cannot divide by zero. If the function has a variable in the denominator, set the denominator not equal to zero.

Example 4: Find the domain of f(x)=1xβˆ’3f(x) = \dfrac{1}{x - 3}

The denominator is zero when xβˆ’3=0x - 3 = 0, i.e., x=3x = 3.

Domain: All real numbers except 3

  • Interval notation: (βˆ’βˆž,3)βˆͺ(3,∞)(-\infty, 3) \cup (3, \infty)
  • Set-builder notation: {x∣xβ‰ 3}\{x \mid x \neq 3\}

Example 5: Find the domain of g(x)=x+2x2βˆ’9g(x) = \dfrac{x + 2}{x^2 - 9}

Factor the denominator: x2βˆ’9=(xβˆ’3)(x+3)x^2 - 9 = (x - 3)(x + 3)

Set each factor not equal to zero: xβ‰ 3x \neq 3 and xβ‰ βˆ’3x \neq -3.

Domain: (βˆ’βˆž,βˆ’3)βˆͺ(βˆ’3,3)βˆͺ(3,∞)(-\infty, -3) \cup (-3, 3) \cup (3, \infty)

Restriction 2: Square Roots of Negative Numbers

In real-number math, you cannot take the square root of a negative number. The expression under the radical must be greater than or equal to zero.

Example 6: Find the domain of h(x)=xβˆ’5h(x) = \sqrt{x - 5}

Set the radicand greater than or equal to zero:

xβˆ’5β‰₯0β€…β€ŠβŸΉβ€…β€Šxβ‰₯5x - 5 \geq 0 \implies x \geq 5

Domain: [5,∞)[5, \infty)

Example 7: Find the domain of f(x)=12βˆ’4xf(x) = \sqrt{12 - 4x}

12βˆ’4xβ‰₯012 - 4x \geq 0

βˆ’4xβ‰₯βˆ’12-4x \geq -12

x≀3(flipΒ theΒ inequalityΒ whenΒ dividingΒ byΒ aΒ negativeΒ number)x \leq 3 \quad \text{(flip the inequality when dividing by a negative number)}

Domain: (βˆ’βˆž,3](-\infty, 3]

Combined Restrictions

Example 8: Find the domain of f(x)=x+1xβˆ’4f(x) = \dfrac{\sqrt{x + 1}}{x - 4}

Restriction 1 (square root): x+1β‰₯0β€…β€ŠβŸΉβ€…β€Šxβ‰₯βˆ’1x + 1 \geq 0 \implies x \geq -1

Restriction 2 (denominator): xβˆ’4β‰ 0β€…β€ŠβŸΉβ€…β€Šxβ‰ 4x - 4 \neq 0 \implies x \neq 4

Combine: xβ‰₯βˆ’1x \geq -1 and xβ‰ 4x \neq 4.

Domain: [βˆ’1,4)βˆͺ(4,∞)[-1, 4) \cup (4, \infty)

Finding Range from Equations

Finding the range algebraically is often harder than finding the domain. Here are strategies:

  1. Linear functions f(x)=mx+bf(x) = mx + b (with mβ‰ 0m \neq 0): Range is (βˆ’βˆž,∞)(-\infty, \infty).
  2. Quadratic functions f(x)=ax2+bx+cf(x) = ax^2 + bx + c: Find the vertex. If a>0a > 0 (opens up), range is [yvertex,∞)[y_{\text{vertex}}, \infty). If a<0a < 0 (opens down), range is (βˆ’βˆž,yvertex](-\infty, y_{\text{vertex}}].
  3. Square root functions f(x)=xf(x) = \sqrt{x}: Outputs are always non-negative. Range is [0,∞)[0, \infty).

Example 9: Find the range of f(x)=x2βˆ’6x+5f(x) = x^2 - 6x + 5

Complete the square or use the vertex formula. The vertex is at x=βˆ’(βˆ’6)2(1)=3x = \dfrac{-(-6)}{2(1)} = 3:

f(3)=9βˆ’18+5=βˆ’4f(3) = 9 - 18 + 5 = -4

Since a=1>0a = 1 > 0, the parabola opens upward.

Range: [βˆ’4,∞)[-4, \infty)

Example 10: Find the range of f(x)=xβˆ’2+1f(x) = \sqrt{x - 2} + 1

The smallest value of xβˆ’2\sqrt{x - 2} is 00 (when x=2x = 2), so the smallest value of f(x)f(x) is 0+1=10 + 1 = 1. As xx increases, xβˆ’2\sqrt{x - 2} grows without bound.

Range: [1,∞)[1, \infty)

Real-World Application: Retail β€” Revenue Function

A retail store sells a product at $25 each. The revenue function is:

R(n)=25nR(n) = 25n

where nn is the number of units sold.

Domain in context: You cannot sell a negative number of units, and the store has a stock limit of, say, 500 units. So the domain is {n∣0≀n≀500}\{n \mid 0 \leq n \leq 500\} or in interval notation [0,500][0, 500].

Range in context: When n=0n = 0, revenue is $0. When n=500n = 500, revenue is 25(500)=25(500) = $12,500. So the range is [0,12500][0, 12500].

Notice how the real-world context restricts both the domain and range far more than the algebraic expression alone would suggest. Without context, R(n)=25nR(n) = 25n has domain and range of all real numbers.

Real-World Application: HVAC β€” Temperature Model

An HVAC technician models indoor temperature (degrees Fahrenheit) as a function of time tt (hours after the system turns on):

T(t)=βˆ’0.5t2+8t+60,0≀t≀12T(t) = -0.5t^2 + 8t + 60, \quad 0 \leq t \leq 12

Domain: The system runs for 12 hours, so tt ranges from 0 to 12: [0,12][0, 12].

Range: Find the vertex to determine the maximum temperature. The vertex occurs at t=βˆ’82(βˆ’0.5)=8t = \dfrac{-8}{2(-0.5)} = 8:

T(8)=βˆ’0.5(64)+8(8)+60=βˆ’32+64+60=92T(8) = -0.5(64) + 8(8) + 60 = -32 + 64 + 60 = 92

Check the endpoints: T(0)=60T(0) = 60 and T(12)=βˆ’0.5(144)+96+60=βˆ’72+96+60=84T(12) = -0.5(144) + 96 + 60 = -72 + 96 + 60 = 84.

The minimum output is 60 (at t=0t = 0) and the maximum is 92 (at t=8t = 8).

Range: [60,92][60, 92]

Common Mistakes to Avoid

  1. Forgetting to flip the inequality sign. When you multiply or divide an inequality by a negative number, the direction reverses. Missing this is the most common error in domain problems involving square roots.
  2. Using a square bracket with infinity. Infinity is not a number. Always write ∞)\infty) or (βˆ’βˆž(-\infty, never [∞[\infty or ∞]\infty].
  3. Assuming the range is always all real numbers. Many functions have restricted ranges. Quadratics, absolute values, and square root functions all have limited output sets.
  4. Ignoring context restrictions. In applied problems, the domain is often restricted by physical constraints (non-negative quantities, maximum capacity, time bounds) even when the algebra allows all real numbers.
  5. Confusing domain with range. Domain is inputs (xx-values); range is outputs (yy-values). On a graph: domain reads left-right, range reads bottom-top.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Find the domain of f(x)=1x+7f(x) = \dfrac{1}{x + 7}.

Set the denominator not equal to zero:

x+7β‰ 0β€…β€ŠβŸΉβ€…β€Šxβ‰ βˆ’7x + 7 \neq 0 \implies x \neq -7

Answer: (βˆ’βˆž,βˆ’7)βˆͺ(βˆ’7,∞)(-\infty, -7) \cup (-7, \infty)

Problem 2: Find the domain of g(x)=2xβˆ’10g(x) = \sqrt{2x - 10}.

2xβˆ’10β‰₯0β€…β€ŠβŸΉβ€…β€Š2xβ‰₯10β€…β€ŠβŸΉβ€…β€Šxβ‰₯52x - 10 \geq 0 \implies 2x \geq 10 \implies x \geq 5

Answer: [5,∞)[5, \infty)

Problem 3: Find the domain and range of f(x)=x2+1f(x) = x^2 + 1.

Domain: No restrictions β€” any real number can be squared. Domain is (βˆ’βˆž,∞)(-\infty, \infty).

Range: The minimum value of x2x^2 is 0 (at x=0x = 0), so the minimum of x2+1x^2 + 1 is 1.

Answer: Domain: (βˆ’βˆž,∞)(-\infty, \infty). Range: [1,∞)[1, \infty).

Problem 4: Find the domain of h(x)=xxβˆ’9h(x) = \dfrac{\sqrt{x}}{x - 9}.

Square root restriction: xβ‰₯0x \geq 0

Denominator restriction: x≠9x \neq 9

Combined: xβ‰₯0x \geq 0 and xβ‰ 9x \neq 9.

Answer: [0,9)βˆͺ(9,∞)[0, 9) \cup (9, \infty)

Problem 5: Find the range of f(x)=βˆ’2x2+8xβˆ’3f(x) = -2x^2 + 8x - 3.

Vertex at x=βˆ’82(βˆ’2)=2x = \dfrac{-8}{2(-2)} = 2:

f(2)=βˆ’2(4)+8(2)βˆ’3=βˆ’8+16βˆ’3=5f(2) = -2(4) + 8(2) - 3 = -8 + 16 - 3 = 5

Since a=βˆ’2<0a = -2 < 0, the parabola opens downward.

Answer: Range: (βˆ’βˆž,5](-\infty, 5]

Problem 6: A retail shop earns revenue R(n)=18nR(n) = 18n from selling nn units per day, with a maximum daily capacity of 200 units. State the domain and range in context.

Domain: 0≀n≀2000 \leq n \leq 200, or [0,200][0, 200].

Range: R(0)=0R(0) = 0 and R(200)=3600R(200) = 3600, so the range is [0,3600][0, 3600].

Answer: Domain: [0,200][0, 200]. Range: [0,3600][0, 3600]. Revenue ranges from $0 to $3,600.

Problem 7: Write {x∣xβ‰₯βˆ’4Β andΒ xβ‰ 2}\{x \mid x \geq -4 \text{ and } x \neq 2\} in interval notation.

Start with xβ‰₯βˆ’4x \geq -4: [βˆ’4,∞)[-4, \infty). Remove x=2x = 2 by splitting into two intervals:

Answer: [βˆ’4,2)βˆͺ(2,∞)[-4, 2) \cup (2, \infty)

Key Takeaways

  • Domain = all valid inputs; Range = all resulting outputs
  • Division by zero and square roots of negatives are the two main restrictions that limit domain in algebra
  • Interval notation uses brackets [β€…β€Š][ \; ] for included endpoints and parentheses (β€…β€Š)( \; ) for excluded endpoints; infinity always gets a parenthesis
  • Set-builder notation describes a set by its defining condition: {x∣condition}\{x \mid \text{condition}\}
  • For quadratics, the vertex determines the minimum or maximum, which defines the range boundary
  • In applied problems, context often restricts the domain and range beyond what the algebra alone requires

Return to Algebra for more topics in this section.

Last updated: March 29, 2026