How To Write Interval Notation For Domain Of A Function

6 min read

How to Write Interval Notation for the Domain of a Function

Learning how to write interval notation for the domain of a function is one of the most practical skills in algebra and precalculus, because it gives you a clean, universal way to describe every input value a function is allowed to accept. Instead of writing long sentences such as "all real numbers except 5," you can simply write (−∞, 5) ∪ (5, ∞). This guide explains the rules of interval notation, the restrictions that limit a domain, and a step-by-step method you can apply to almost any function, with worked examples and practice problems.

What the Domain of a Function Means

The domain of a function is the complete set of input values (x-values) that produce a valid, real output. The range, by contrast, is the set of possible outputs (y-values). When a problem asks you to "state the domain," you are being asked: *which numbers can I safely substitute for x without breaking any mathematical rule?

Two things usually break a function:

  • Dividing by zero, which is undefined.
  • Taking an even root (such as a square root) of a negative number, which is not a real number.

There is one more common restriction: the argument of a logarithm must be strictly positive.

The Symbols of Interval Notation

Before writing domains, memorize the four symbols:

Symbol Name Meaning
( Open parenthesis Endpoint is excluded; also always used with ±∞
[ Closed bracket Endpoint is included
∪ Union Combines two or more separate intervals
∞ Infinity Not a number, never written with a bracket

So (2, 7] means "all numbers greater than 2 and less than or equal to 7," while [−3, ∞) means "all numbers from −3 upward, including −3." Notice that infinity always gets a parenthesis, because it is not a value you can actually reach.

Step-by-Step Method for Writing a Domain

Follow this sequence every time:

  1. Identify the function type. Is it a polynomial, a fraction, a radical, a logarithm, or a combination?
  2. List every restriction. Set each denominator not equal to zero; set each radicand of an even root greater than or equal to zero; set each log argument greater than zero.
  3. Solve the inequalities for x.
  4. Combine the conditions. If restrictions must all be true at once, use intersection (overlap). If the answer splits into separate pieces, use union (∪).
  5. Write the final answer in interval notation, ordering intervals from left to right on the number line.

Worked Examples

Example 1: Polynomial functions

For f(x) = 2x + 3 and g(x) = x² − 4x + 1, there are no denominators, no even roots, and no logarithms. Any real number works.

Domain: (−∞, ∞)

Example 2: A rational function

Find the domain of f(x) = 1/(x − 5) Surprisingly effective..

  • Restriction: x − 5 ≠ 0, so x ≠ 5.
  • Everything else is allowed, which splits the number line into two pieces.

Domain: (−∞, 5) ∪ (5, ∞)

Example 3: A rational function with two excluded values

For f(x) = 1/(x² − 4), factor the denominator: x² − 4 = (x − 2)(x + 2). Setting each factor not equal to zero gives x ≠ 2 and x ≠ −2 Easy to understand, harder to ignore..

Domain: (−∞, −2) ∪ (−2, 2) ∪ (2, ∞)

Example 4: A square root

For f(x) = √(x − 3), the radicand must be non-negative:

x − 3 ≥ 0 → x ≥ 3

Because 3 is included, use a bracket.

Domain: [3, ∞)

Example 5: A radical with a "closed" domain

For f(x) = √(9 − x²), solve 9 − x² ≥ 0, which means x² ≤ 9, so −3 ≤ x ≤ 3. Both endpoints are included.

Domain: [−3, 3]

Example 6: A logarithmic function

For f(x) = ln(x + 2), the argument must be strictly positive:

x + 2 > 0 → x > −2

Note the strict inequality: log of zero is undefined, so −2 is excluded.

Domain: (−2, ∞)

Example 7: Combined restrictions (the most common exam question)

For f(x) = √(x − 1)/(x − 3), two rules apply at once:

  • Radicand: x − 1 ≥ 0 → x ≥ 1
  • Denominator: x − 3 ≠ 0 → x ≠ 3

Both must be true, so start with [1, ∞) and punch out 3.

Domain: [1, 3) ∪ (3, ∞)

Example 8: Root in the denominator

For f(x) = (x + 1)/√(x − 4), the radicand must be positive, not merely non-negative, because the root sits in the denominator:

x − 4 > 0 → x > 4

Domain: (4, ∞)

Example 9: A piecewise function

For

Example 10 – Piecewise definition with differing restrictions

Consider

[ f(x)=\begin{cases} \displaystyle \frac{1}{x-2}, & x<0,\[6pt] \displaystyle \sqrt{x+1}, & 0\le x\le 4,\[6pt] \displaystyle \ln(5-x), & x>4. \end{cases} ]

Step 1 – Identify the function type – each piece is a rational expression, a square‑root, or a logarithm No workaround needed..

Step 2 – List every restriction

  • For the first piece ((x<0)) the denominator cannot be zero, so (x\neq 2); however the interval (x<0) already excludes 2, so no extra condition Surprisingly effective..

  • For the second piece the radicand must be non‑negative: (x+1\ge 0\Rightarrow x\ge -1). The piece is defined only for (0\le x\le 4), so the effective interval is ([0,4]).

  • For the third piece the argument of the log must be positive: (5-x>0\Rightarrow x<5). Together with the piece’s domain (x>4) we obtain ((4,5)) Simple, but easy to overlook. Practical, not theoretical..

Step 3 – Solve the inequalities – already done above.

Step 4 – Combine the conditions – the three intervals are disjoint, so we take the union:

[ \text{Domain}=(-\infty,0);\cup;[0,4];\cup;(4,5). ]

Because the first interval is open at 0 and the second starts at 0 (included), the combined left‑most part can be written as ((-\infty,4]). The right‑most part ends at 5 (exclusive). Hence the final domain is

[ \boxed{(-\infty,4];\cup;(4,5)}. ]


Example 11 – Absolute‑value and square‑root mixture

Find the domain of

[ f(x)=\frac{\sqrt{|x-1|}}{x^{2}-9}. ]

  • The numerator contains a square root, so the radicand (|x-1|) is always non‑negative; no restriction from the absolute value itself.

  • The denominator must not vanish: (x^{2}-9\neq 0\Rightarrow x\neq \pm 3).

  • Because the root is in the numerator (not the denominator), the radicand may be zero, so (|x-1|\ge 0) imposes no further limitation Worth keeping that in mind..

Thus the only exclusions are (x=3) and (x=-3). The number line is split into three intervals:

[ (-\infty,-3);\cup;(-3,3);\cup;(3,\infty). ]

Domain: (\boxed{(-\infty,-3);\cup;(-3,3);\cup;(3,\infty)}.)


Example 12 – Simultaneous logarithmic and radical constraints

Determine the domain of

[ f(x)=\frac{\ln(2x-1)}{\sqrt{x-4}}. ]

  • Logarithm: (2x-1>0\Rightarrow x>\tfrac12).

  • Square root in the denominator: the radicand must be strictly positive (cannot be zero), so (x-4>0\Rightarrow x>4).

Both conditions must hold simultaneously, therefore we intersect the two sets:

[ x>\tfrac12 \quad\text{and}\quad x>4 ;\Longrightarrow; x>4. ]

Domain: (\boxed{(4,\infty)}.)


Conclusion

Writing the domain of any algebraic expression follows a clear, repeatable procedure:

  1. Classify the expression to spot denominators, even‑root radicands, and logarithm arguments.
  2. Write each restriction as an inequality (denominator ≠
New This Week

Latest from Us

Worth Exploring Next

Other Angles on This

Thank you for reading about How To Write Interval Notation For Domain Of A Function. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home