Skip to content
🎯⭐ INTERACTIVE LESSON

Domain and Range

Learn step-by-step with interactive practice!

Domain and Range - Complete Interactive Lesson

Part 1: What Domain and Range Mean

🎯 Domain and Range

Part 1 of 5 — What Domain and Range Mean


Topics in This Part

Section
Inputs, Outputs, and Functions
Defining Domain and Range
Three Ways to Write a Set of Numbers

🔑 Key Concept: Every function is a machine: you feed it an input (xx) and it returns an output (yy). The domain is the collection of all legal inputs; the range is the collection of all outputs the machine can produce.

Inputs, Outputs, and Functions

Think of f(x)=2x+1f(x) = 2x + 1 as a function machine. Drop a number in for xx, and out comes a result:

Input xxRule 2x+12x+1Output f(x)f(x)
−2-22(−2)+12(-2)+1−3-3
002(0)+12(0)+111
332(3)+12(3)+177
  • The domain is the set of every xx you are allowed to put in.
  • The range is the set of every yy that can come out.

💡 A handy phrase: "Domain = xx, Range = yy." Domain is read left-to-right along the horizontal axis; range is read bottom-to-top along the vertical axis.

Concept Check 🎯

Domain & Range of a Set of Points

When a relation is just a list of points, the domain is the set of all the xx-coordinates and the range is the set of all the yy-coordinates. List each value once, in increasing order.

Example

{(−3, 4),  (0, 1),  (2, 4),  (5, −2)}\{(-3,\,4),\;(0,\,1),\;(2,\,4),\;(5,\,-2)\}

  • Domain: {−3, 0, 2, 5}\{-3,\,0,\,2,\,5\} — the xx-coordinates.
  • Range: {−2, 1, 4}\{-2,\,1,\,4\} — the yy-coordinates, with the repeated 44 written only once.

⚠️ A value that appears more than once is still listed a single time. Here 44 shows up twice as a yy-coordinate, but the range contains just one 44.

Read the Coordinates 🧮

Use the relation {(−1, 7),  (3, 2),  (4, 7),  (6, 0)}\{(-1,\,7),\;(3,\,2),\;(4,\,7),\;(6,\,0)\}.

1) How many distinct values are in the domain?  ?\,? 2) How many distinct values are in the range?  ?\,? 3) What is the smallest number in the domain?  ?\,?

Three Ways to Describe a Set

The same set of numbers can be written three ways. You will meet all three:

Notation"All real numbers from −2-2 up to (not including) 55"
Wordsxx is at least −2-2 and less than 55
Inequality−2≤x<5-2 \le x < 5
Interval[−2, 5)[-2,\, 5)

The bracket rules for interval notation:

  • Square bracket [  ][\;] → endpoint is included (matches ≤\le or ≥\ge).
  • Round bracket (  )(\;) → endpoint is excluded (matches << or >>).
  • ∞\infty and −∞-\infty always get a round bracket — you can never "reach" infinity.

🔑 All real numbers is written (−∞, ∞)(-\infty,\, \infty). We use this constantly in Part 3.

Translate the Notation 🔽

Match each inequality to its correct interval.

Part 2: Reading Domain & Range from Graphs

🎯 Domain and Range

Part 2 of 5 — Reading Domain & Range from Graphs


🔑 The Idea: To find a domain from a graph, "flatten" the curve onto the xx-axis and ask how far left and right it reaches. For the range, project onto the yy-axis and ask how far down and up it reaches.

Project Onto the Axes

  • Domain: scan left → right. What is the smallest xx the graph touches? The largest? That horizontal sweep is the domain.
  • Range: scan bottom → top. What is the lowest yy? The highest? That vertical sweep is the range.

Example: a parabola opening up

The graph of y=x2y = x^2 stretches forever left and right, so its domain is all real numbers, (−∞, ∞)(-\infty,\, \infty).

Its lowest point is the vertex at y=0y = 0, and it climbs forever upward, so its range is y≥0y \ge 0, written [0, ∞)[0,\, \infty).

Featurey=x2y = x^2
Domain(−∞, ∞)(-\infty,\, \infty)
Lowest output00 (at the vertex)
Range[0, ∞)[0,\, \infty)

💡 A plain line like y=2x+1y = 2x + 1 also has domain and range equal to (−∞, ∞)(-\infty,\, \infty) — it covers every xx and every yy.

Concept Check 🎯

Open vs. Closed Endpoints

Graphs often start or stop. The dot at an endpoint tells you whether that point is included:

  • Closed (filled) dot ● → the point is part of the graph → use a square bracket.
  • Open (hollow) dot ○ → the point is not part of the graph → use a round bracket.

Example

A line segment is drawn from a closed dot at (−2, 1)(-2,\,1) to an open dot at (3, 6)(3,\,6).

  • Domain: xx runs from −2-2 (included) to 33 (excluded) → [−2, 3)[-2,\, 3).
  • Range: as xx goes from −2-2 to 33, yy rises from 11 (included) to 66 (excluded) → [1, 6)[1,\, 6).

⚠️ Match each bracket to its own dot. A graph can be closed on one end and open on the other, like [−2, 3)[-2,\, 3) above.

Pick the Right Bracket 🔽

A curve runs from a closed dot at (−5, 2)(-5,\,2) to an open dot at (4, 2)(4,\,2), dipping to a lowest point of y=−1y = -1 in between.

Read the Sweep 🧮

A graph is a solid curve. Its leftmost point is a closed dot at (−3, 0)(-3,\,0) and its rightmost point is a closed dot at (6, 9)(6,\,9). Along the way it never goes below y=0y = 0.

1) Smallest xx-value in the domain = ?= \,? 2) Largest xx-value in the domain = ?= \,? 3) Smallest yy-value in the range = ?= \,?

Part 3: Domain from an Equation

🎯 Domain and Range

Part 3 of 5 — Domain from an Equation


🔑 The Idea: When you only have a formula, start by assuming every real number is allowed, then remove the values that break a rule. Two things break the rules: dividing by zero and taking the square root of a negative.

The Two Forbidden Moves

TroubleThe ruleWhat to do
Division by zeroThe denominator can never equal 00.Set the denominator =0= 0, solve, and exclude that xx.
Even root of a negativeUnder a     \sqrt{\;\;}, the inside can't be negative.Set the radicand ≥0\ge 0 and solve for the allowed xx.

Functions with none of these — plain polynomials like y=3x2−x+4y = 3x^2 - x + 4 — have domain (−∞, ∞)(-\infty,\, \infty). Nothing can break them.

💡 Quick test: No fraction with xx on the bottom and no square root of xx? Then the domain is all real numbers.

Concept Check 🎯

Fractions: Exclude Where the Bottom Is Zero

Example: f(x)=1x−3f(x) = \dfrac{1}{x - 3}

Set the denominator equal to zero and solve:

x−3=0  ⇒  x=3x - 3 = 0 \;\Rightarrow\; x = 3

So x=3x = 3 is forbidden; everything else is fine.

  • Inequality: x≠3x \ne 3
  • Interval: (−∞, 3)∪(3, ∞)(-\infty,\, 3) \cup (3,\, \infty) ← the symbol ∪\cup means "union" (glue the two pieces together).

Example: g(x)=x+1x2−4g(x) = \dfrac{x+1}{x^2 - 4}

x2−4=0  ⇒  x2=4  ⇒  x=±2x^2 - 4 = 0 \;\Rightarrow\; x^2 = 4 \;\Rightarrow\; x = \pm 2

Exclude both: domain is x≠2x \ne 2 and x≠−2x \ne -2.

⚠️ You only solve the denominator =0= 0. The numerator never restricts the domain — it's perfectly fine for the top to be zero.

Find the Forbidden Inputs 🧮

For each function, enter the xx-value(s) that must be excluded from the domain.

1) f(x)=4x−8f(x) = \dfrac{4}{x - 8}. Excluded value = ?= \,? 2) g(x)=xx+5g(x) = \dfrac{x}{x + 5}. Excluded value = ?= \,? 3) h(x)=62x−10h(x) = \dfrac{6}{2x - 10}. Excluded value = ?= \,?

Square Roots: Keep the Inside ≥0\ge 0

For an even root, force the radicand to be zero or positive.

Example: f(x)=x−2f(x) = \sqrt{x - 2}

x−2≥0  ⇒  x≥2x - 2 \ge 0 \;\Rightarrow\; x \ge 2

Domain: [2, ∞)[2,\, \infty). (The endpoint 22 is allowed, because 0=0\sqrt{0} = 0 is perfectly legal — so a square bracket.)

Example: g(x)=2x+6g(x) = \sqrt{2x + 6}

2x+6≥0  ⇒  2x≥−6  ⇒  x≥−32x + 6 \ge 0 \;\Rightarrow\; 2x \ge -6 \;\Rightarrow\; x \ge -3

Domain: [−3, ∞)[-3,\, \infty).

💡 Why ≥\ge and not >>? Zero under the root is fine — 0=0\sqrt{0}=0. Only negative insides are illegal, so the boundary point is always included.

Solve the Radicand 🔽

Find the domain of each square-root function.

Part 4: Range & Real-World Restrictions

🎯 Domain and Range

Part 4 of 5 — Range & Real-World Restrictions


🔑 The Idea: Range answers "what outputs are possible?" For familiar shapes you can reason it out from the vertex or the floor of a square root. And in word problems, context can shrink a domain that the math alone would allow.

Range of Common Functions

FunctionRangeWhy
Line y=mx+by = mx + b (with m≠0m \ne 0)(−∞, ∞)(-\infty,\, \infty)rises/falls forever
y=x2y = x^2[0, ∞)[0,\, \infty)never negative; min 00
y=a(x−h)2+ky = a(x-h)^2 + k, opens up[k, ∞)[k,\, \infty)vertex is the minimum
y=a(x−h)2+ky = a(x-h)^2 + k, opens down(−∞, k](-\infty,\, k]vertex is the maximum
y=xy = \sqrt{x}[0, ∞)[0,\, \infty)a root is never negative
$y =x$

💡 For a parabola in vertex form, the range starts (or ends) at the vertex's yy-value kk. Up → range goes up from kk. Down → range goes down from kk.

Concept Check 🎯

Real-World Domains: Let Context Decide

In an application, a value that is mathematically legal can still be physically impossible. Ask: can this quantity really be negative? a fraction? huge?

Example: filling a pool

A pool fills at 55 gallons per minute, holding at most 300300 gallons. The volume is V(t)=5tV(t) = 5t.

  • Math alone would allow any tt, even negative.
  • Context: time can't be negative, and once the pool is full at t=60t = 60 minutes (5⋅60=3005 \cdot 60 = 300), filling stops.
  • Realistic domain: 0≤t≤600 \le t \le 60, i.e. [0, 60][0,\, 60].
  • Realistic range: 0≤V≤3000 \le V \le 300, i.e. [0, 300][0,\, 300].

⚠️ Counting quantities (people, cars, tickets) force a domain of whole numbers — that's a discrete domain, not a smooth interval.

Restrict for Reality 🔽

A taxi charges a $3 flat fee plus $2 per mile: C(m)=3+2mC(m) = 3 + 2m, where mm is miles driven (up to a 5050-mile limit).

Apply the Context 🧮

Use the pool from above: V(t)=5tV(t) = 5t, full at 300300 gallons, 0≤t≤600 \le t \le 60.

1) How many gallons after t=10t = 10 minutes?  ?\,? 2) At what time tt is the pool full?  ?\,? 3) The largest value in the range of VV (in gallons) = ?= \,?

Part 5: Mixed Practice & Mastery Check

🎯 Domain and Range

Part 5 of 5 — Mixed Practice & Mastery Check


You can now (1) define domain and range, (2) read them off a graph, (3) find a domain from an equation, and (4) account for range and real-world limits. Let's put it together.

Quick Reference

SituationWhat to do
Set of pointsDomain = distinct xx's; Range = distinct yy's
GraphDomain = left↔right sweep; Range = down↔up sweep
PolynomialDomain =(−∞, ∞)= (-\infty,\, \infty)
Fraction   denom \dfrac{\ }{\,\text{denom}\,}Exclude where denominator =0= 0
Square root  \sqrt{\ }Require radicand ≥0\ge 0
Word problemTrim with context (no negatives, caps, whole numbers)

⚠️ Bracket reminder: square [  ][\;] = included (matches ≤,≥\le, \ge, closed dot), round (  )(\;) = excluded (matches <,><, >, open dot, and always ±∞\pm\infty).

Mixed Practice 🎯

One More Set 🧮

1) Relation {(2, 9),  (5, 9),  (8, 1)}\{(2,\,9),\;(5,\,9),\;(8,\,1)\}: how many distinct values are in the range?  ?\,? 2) f(x)=1x+6f(x) = \dfrac{1}{x + 6}: which xx-value is excluded from the domain?  ?\,? 3) g(x)=x−7g(x) = \sqrt{x - 7}: what is the smallest xx in the domain?  ?\,?

Exit Quiz ✅

Answer all three to finish the lesson.