The domain of a linear function from a graph is the set of all x-values the graphed line actually covers. If the line runs edge to edge with no dot at either end, the domain is all real numbers, written (-∞, ∞). If either end carries a filled or open dot, the domain becomes a bounded interval, and the x-coordinates of those dots give you the endpoints. That one visual cue — endpoint or no endpoint — decides the answer before any algebra starts.
What "Domain" Means on a Coordinate Plane
On a graph, domain is a horizontal read: sweep your eyes left to right and record every x-coordinate the curve touches. The line's steepness, its y-intercept, and its slope never enter the answer. Two lines with slopes of 5 and -0.2 can share the same domain if both span the same horizontal stretch.
A straight line is a continuous set, so the domain is always an interval or a pair of rays joined into one interval. There are no holes to list separately, because the function passes through every x-value between its endpoints. You will never write a domain for a line as a set of individual numbers unless the graph itself consists of one isolated point, which is not a linear function in any standard course.
Textbook wording matters here. When a problem says "state the domain of the function shown," it is asking about the drawn portion, not the algebraic rule underneath. A line that represents y = 2x + 1 but is drawn only between x = -1 and x = 4 has a restricted domain despite the formula accepting any real input. The graph is the authority.
Check whether the axes show a grid scale before reading anything. A line touching the left edge at a tick labeled -6 and the right edge at a tick labeled 6 tells you the visible domain, not necessarily the function's domain. Graph windows are arbitrary. Only endpoints marked with dots restrict a function; edges of the viewing window do not.
Reading Endpoints: Closed Dots, Open Dots, and Arrows
Three visual markers carry the entire answer, and each maps to one bracket decision. A filled dot means the endpoint is included, so the interval uses a square bracket. An open dot means it is excluded, so the interval uses a parenthesis. An arrow, or a line running to the edge of the plane with no marker, means the line continues forever in that direction.
| Marker at the endpoint | Meaning | Interval notation | Inequality form |
|---|---|---|---|
| Filled (closed) dot | x-value included | [a, b] | a ≤ x ≤ b |
| Open dot | x-value excluded | (a, b) | a < x < b |
| Arrow or no marker | Continues indefinitely | (-∞, ∞) or a ray | x ∈ ℝ or x ≥ a |
| Filled dot at one end, arrow at the other | One-sided bound | [a, ∞) or (-∞, a] | x ≥ a or x ≤ a |
Mix the markers and you get mixed brackets. A line starting with a filled dot at x = -3 and ending with an open dot at x = 5 gives [-3, 5). Students lose more points to bracket direction than to any other part of this skill, so say the interval aloud: "x is at least -3 and strictly less than 5."
Infinity never takes a square bracket. There is no largest real number, so the symbol ∞ sits next to a parenthesis in every correct answer, on both ends of a full line. Writing [-∞, ∞] is a guaranteed deduction on nearly every rubric that includes interval notation as a scoring point.
When the Domain Is All Real Numbers: The No-Endpoint Case
Most linear graphs in algebra courses show no dots at all. The line simply exits the frame on the left and right, which signals a domain of (-∞, ∞), or "all real numbers" in words. This is the default for any linear function written in the form y = mx + b with no stated restriction, because every real number can be multiplied by a slope and shifted by an intercept.
You can confirm the same result algebraically without the picture. A linear function has no denominators containing x and no even roots of x-expressions, so nothing in the rule can produce an undefined output. That reasoning is what the graph is showing you visually, and the two methods should always agree. If they disagree, the graph has a restriction you missed.
Some teachers want interval notation, others want set-builder like {x | x ∈ ℝ}, and some accept a sentence. Answer in the format the course has been using. The mathematical content is identical across all three, and switching formats mid-course is the fastest way to get marked wrong on a technically correct answer.
Watch for "domain" questions on graphs that look unbounded but aren't. A line drawn to the very edge of a printed grid could be a window-limited view of a restricted function, and if any problem in the set has used endpoint dots, check the others for dots you might have skimmed past. Print quality varies, and a tiny solid dot at a line's end is easy to overlook at a glance.
Restricted Domains From Real-World Graphs
Word problems attach domains to lines constantly, and the graph usually shows them with endpoints. A delivery van's distance from a depot over a 6-hour shift, plotted as distance against time, runs from t = 0 to t = 6 with filled dots at both ends. The domain is [0, 6], measured in hours. Negative time and hours beyond the shift have no meaning in the scenario.
That physical reasoning sometimes overrides the drawing. A graph of a candle burning might show the line continuing past the moment the candle is fully consumed, because the linear model is being extended beyond its sensible range. The drawn domain would be (-∞, ∞) while the contextual domain stops at the burnout time. In a modeling course, name the contextual domain; in a pure graphing exercise, report what is drawn.
Interval notation for applied domains often carries units, and writing them correctly signals you understand the context. "The domain is [0, 6] hours" reads better than a bare interval, and some rubrics award a point for the unit. Include it when the problem supplies one.
Some scenarios produce one-sided domains rather than bounded ones. A graph of a savings account balance starting at opening day has a filled dot at the start and an arrow at the right, giving [0, ∞). The arrow means the model keeps producing values indefinitely, even if the account is eventually closed.
Turning a Restriction Into Algebra: Domain From Endpoint Coordinates
When a rubric asks for the domain and the function, the endpoints do more than bound the interval — they generate the equation. Take two marked endpoints, read their coordinates, compute the slope as the change in y over the change in x, then substitute one point into point-slope form. The result is a piece of the line that passes through both dots, and its domain is the interval between their x-coordinates.
Worked example: a line runs from (-2, 1) with a filled dot to (4, 13) with a filled dot. The slope is (13 − 1) ÷ (4 − (−2)) = 12 ÷ 6 = 2. Point-slope through (-2, 1) gives y − 1 = 2(x + 2), which simplifies to y = 2x + 5. Check the second point: 2(4) + 5 = 13, correct. The domain is [-2, 4], and an open dot at either end would change both the bracket and the inequality statement.
A slope of zero is a legitimate outcome and often surprises students. Endpoints at (-1, 4) and (3, 4) produce y = 4, a horizontal line, and the domain is still [-1, 3]. The function is constant, not absent. Conversely, a single point cannot define a slope at all, because the change in x is zero, so a "line" reduced to one dot is not a function you can express in slope-intercept form.
Label the domain separately from the equation in your final answer. Graders scan for the interval as a distinct item, and burying [-2, 4] inside the derivation line costs points. Write the function, then write "Domain: [-2, 4]" on its own line.
Interval Notation Traps That Cost Points
Four mistakes account for most lost credit on this topic, and each has a simple guard. Bracket direction is the first: a smaller number sits on the left, and its bracket matches whether that endpoint is included. Reversing [-3, 5] into [5, -3] is wrong on every rubric, because intervals read left to right, always.
Mixing open and closed braces is the second trap. Use square brackets [ and ] for included endpoints, parentheses ( and ) for excluded ones, and never mix the two styles on one endpoint. The notation [3, 7) and [3, 7] differ by exactly one number, and on an open dot the answer is the parenthesis version, no exceptions.
Inequality form gets its own pair of errors. "x ≤ 5" includes 5; "x < 5" does not. Students copy the dot type into the wrong operator regularly, so translate aloud: filled dot means "or equal to" appears in the symbol. Both the inequality and the interval answer must encode the same inclusion decision.
The fourth trap is treating a graph's visible window as a boundary. Only dots restrict a linear domain. A line reaching the edge of the printed grid with no marker still has arrows extending beyond the page, and the domain stays (-∞, ∞). If you find yourself writing the leftmost tick mark as an endpoint, stop and look for a dot.
Comparing the Three Notation Styles for the Same Domain
The same set of x-values can be written three ways, and each style has a place depending on the course and the question wording. Recognizing all three prevents a correct answer from being marked wrong for format alone.
| Style | Example for x between -1 and 4, both included | Example for x below 2, not including 2 | Typical use |
|---|---|---|---|
| Interval notation | [-1, 4] | (-∞, 2) | Precalculus and calculus defaults |
| Inequality | -1 ≤ x ≤ 4 | x < 2 | Algebra I, and connecting to the picture |
| Set-builder | {x | -1 ≤ x ≤ 4} | {x | x < 2} | Discrete math and formal proofs |
Interval notation is the most compact and the one most online homework systems accept by default. Inequality form remains the friendliest for beginners because each symbol maps to a visual feature. Set-builder notation is rarely required before college-level courses, but it appears in standardized test answer choices.
When a test offers multiple-choice answers in one style and you computed another, convert rather than panic. Take the interval, write the inequalities as a bridge, then translate to whichever format is on the page. The three styles never disagree about inclusion, and a mismatch almost always means an arithmetic slip rather than a formatting issue.
Graph-to-Domain Workflow You Can Repeat
Follow these steps in order and the same procedure handles every linear graph, restricted or not.
1: Locate both ends of the drawn line. Follow the line to its leftmost and rightmost visible points before deciding anything. 2: Check each end for an endpoint marker. Filled dot means bracket; open dot means parenthesis; arrow or bare edge means infinity. 3: Read the x-coordinate of each marked endpoint off the axis scale. Confirm the grid spacing first so a dot between ticks isn't misread. 4: Write the interval left to right, pairing each endpoint with its correct bracket. 5: Translate to inequality form as a cross-check. If the two disagree, re-check the dot types. 6: Add units or context limits if the problem is an applied scenario.
If the two ends look different after a second pass, or a dot's fill is ambiguous, use the algebra to settle it. A restricted line's rule will still pass through the endpoint coordinates, and checking whether the point satisfies an inequality version gives a clean confirmation. Precision here beats speed, since a single bracket error usually costs the entire item.
Where the Skill Breaks Down: Common Edge Cases
The standard method assumes a well-drawn graph with legible markers. Real classroom materials fail that assumption more often than expected. Scanned worksheets sometimes print a filled dot as a smudge indistinguishable from a line ending naturally, and minor rounding in drawn coordinates can put an endpoint half a unit off its intended value.
Curved graphs break the "single interval" expectation, because a parabola can produce a domain like (-∞, ∞) while restricted monthly revenue models produce [0, 12] in months. A car's value over time model is linear and usually drawn with a one-sided or unbounded domain, while a taxi fare function has a domain of [0, ∞) because distance traveled cannot be negative. Spell out which portion you're reading before writing your answer. If a problem's endpoint dips below the x-axis, that affects the range; the domain still depends on how far left and right the graph reaches. Every x-value between the endpoints is hit somewhere on a linear graph, so the domain interval and the actual horizontal coverage are the same set.
The trickiest edge case is a linear graph that is a single ray with an open dot at the start but no arrow drawn — just a line ending at the frame. Treat it as continuing, since absence of a dot means no restriction, but note in your answer if a rubric from a specific course says otherwise. Check the course's convention sheet before the exam, not during it.
FAQ
What is the domain of a line with arrows on both ends?
The domain is (-∞, ∞), because arrows mean the line extends without bound in both horizontal directions. This holds regardless of slope, so a steep line and a nearly flat one share the same answer. The rule applies to any linear function given as y = mx + b with no context restricting its input. If a graph's window cuts the line off visually, the arrows still govern.
Can a linear function have an empty domain?
No — every linear function has at least one x-value, and the smallest possible nonempty domain is a single number such as {3}. A graph containing exactly one point cannot represent a linear function in slope-intercept form, because slope requires two distinct points and a nonzero change in x. In practice, a rubric asking for a domain will never expect an empty set.
Is the domain the same as the range for a linear function?
Sometimes, and the coincidence is worth checking. For y = x, every point's y equals its x, so [2, 6] maps to [2, 6] and the two sets match. For y = 2x + 5 on [-2, 4], the range is [1, 13] and the domain stays [-2, 4]. Compute them separately unless the slope is exactly 1 and the intercept is 0.
How do you handle an open dot at one end and a filled dot at the other?
Pair each endpoint with its own bracket: filled gets a square bracket, open gets a parenthesis. A line starting with a filled dot at x = 7 and ending with an open dot at x = 12 gives [7, 12). In inequality form that becomes 7 ≤ x < 12, and both versions encode the identical inclusion decision.
Do you use brackets with infinity in interval notation?
Never. The symbols ∞ and -∞ always take parentheses, as in (-∞, 3], because infinity is not a real number and cannot be included. Every correct interval involving infinity pairs it with a parenthesis on that side. A bracketed infinity is one of the most common notation deductions on tests.
What does a dashed line mean for the domain?
A dashed line usually indicates an inequality boundary, not a function to analyze for domain, and its endpoints follow the same dot rules. If the problem asks for the domain of the graphed relation, read the horizontal extent exactly as you would for a solid line. Make sure you're not being asked for a shaded region, which has a different domain entirely.
Does the visible graph window ever limit the domain?
No — window edges are not restrictions. Only endpoint markers or clearly terminated line segments restrict a linear function's domain. A line that touches the printed boundary without a dot continues beyond it. This is the single most common misreading in graphing exercises.