Skip to main content
Mathovia

Algebra / Graphing and Functions

Domain of a Function: Which Inputs Are Allowed

The domain is the set of inputs a function is allowed to accept. For most formulas the answer is 'all real numbers', so the real skill is spotting the three situations where it is not: a denominator that could be zero, an even root of a negative, and a logarithm of something non-positive. This lesson covers all three, plus reading a domain off a graph, restrictions that come from the real-world context, and how to write the answer properly.

Practice Problems
M
Written by
Mathovia Team
Editorial Team

Every function has a set of inputs it can legally accept. Sometimes that set is everything; often it is everything except a couple of values that would break the arithmetic. Finding the domain is mostly a matter of knowing what to look for.

The domain of a function as its set of allowed inputs
The domain is the set of allowed inputs

What the Domain Is

The domain is the set of all inputs for which the function produces a real output.

Visually it is the graph’s shadow on the -axis — everywhere the curve exists, read horizontally.

A square root curve with an orange bar beneath it on the x-axis showing the interval the graph occupies
The domain is the shadow the graph casts on the x-axis.

The default is generous. Start by assuming all real numbers, then take away only what genuinely fails.

The Three Restrictions

In an algebra course, almost every restricted domain comes from one of three operations.

1. Division by zero

A denominator may never be zero. Set it equal to zero, solve, and exclude those values.

For , the denominator vanishes at , so the domain is every real number except 2.

The graph of 1 over x minus 2 with a dashed vertical asymptote at x = 2 where the curve breaks
The graph breaks exactly where the denominator is zero.

Only the denominator matters. is undefined at ; the numerator being zero at is perfectly fine — the function is simply zero there.

2. Even roots of negatives

Square roots, fourth roots and every other even root need a non-negative inside, because no real number squares to a negative.

For , require , giving .

The graph of the square root of x minus 3, with the region to the left of x = 3 shaded and labelled no real values here
Nothing exists to the left of where the inside turns negative.

Note the rather than : zero is allowed under a root, since . Odd roots have no restriction at all — is a real number, so a cube root accepts everything.

3. Logarithms of non-positives

A logarithm needs a strictly positive argument. For , require , so . Here zero is not allowed, so the inequality is strict.

Putting Restrictions Together

When a function contains more than one of these, every condition must hold at once — take the overlap.

For :

  • The root needs , so .
  • The denominator needs , so .

Together: but not 4, written .

Writing the Answer

Three notations are in use, and courses vary in which they expect.

DescriptionInequalityIntervalSet-builder
Everythingall reals
From 3 upward
Above
All but 2
Between 1 and 5

The bracket rule is worth memorising: square brackets include the endpoint, round brackets exclude it. Infinity always takes a round bracket, because you never reach it.

A number line with a filled dot at 3 and shading to the right, labelled domain x greater than or equal to 3 or [3, infinity)
The same domain on a number line and in interval notation.

For more on the brackets, see Interval Notation.

Reading the Domain From a Graph

Scan left to right and note where the curve exists.

  • A filled dot means that endpoint is included → square bracket.
  • An open circle means it is excluded → round bracket.
  • An arrow means the graph continues forever in that direction.
  • A vertical asymptote is a value the graph approaches but never reaches → excluded.
  • A gap in the middle means the domain is a union of pieces.

A graph running from a filled dot at to an open circle at has domain .

Domains From Context

When a function models something real, the situation restricts the inputs even when the algebra does not.

The area of a square of side is . Algebraically the domain is all real numbers, but a side length cannot be negative or zero, so the practical domain is .

Similar cases turn up everywhere: a number of items must be a non-negative whole number, a time since an event cannot be negative, a percentage cannot exceed 100. Exam questions often ask for the “domain in context”, and the answer is nearly always narrower than the algebraic one.

Worked Example A: A Polynomial

Find the domain of .

Nothing to break — no division, no roots, no logs. Domain: all real numbers, .

Worked Example B: A Rational Function

Find the domain of .

Domain: all reals except , or .

Worked Example C: A Square Root

Find the domain of .

Dividing by reversed the inequality. Domain: .

Worked Example D: Two Restrictions

Find the domain of .

The root needs ; the denominator needs , which rules out as well. So strictly.

Domain: . A root in a denominator always tightens into .

Worked Example E: In Context

A rectangle has perimeter 40, so width gives length and area .

Algebraically the domain is all reals. In context both dimensions must be positive: and , so .

Common Mistakes to Avoid

  • Excluding values that make the numerator zero. Only the denominator matters.
  • Using instead of under a root. Zero under a square root is fine.
  • Restricting an odd root. Cube roots accept negatives.
  • Forgetting to flip the inequality when dividing by a negative.
  • Simplifying away a restriction. reduces to , but is still excluded — the original had a hole there.
  • Bracketing infinity squarely. It is always and .
  • Ignoring context. A negative side length is not a valid input, whatever the algebra says.

Where Domain Leads Next

  • Range — the matching question about outputs.
  • Asymptotes and holes, which sit exactly at excluded values.
  • Graphing functions, where the domain tells you how much to draw.
  • Composite functions, whose domain must satisfy both functions at once.
  • Inverse functions, where domain and range swap roles.
  • Calculus, where continuity and differentiability are asked about only on the domain.

Practice Problems

Work each one before opening the answer.

Problem 1. Find the domain of .

Show answer

All real numbers, .

Problem 2. Find the domain of .

Show answer

All reals except 0: .

Problem 3. Find the domain of .

Show answer

: .

Problem 4. Find the domain of .

Show answer

: .

Problem 5. Find the domain of .

Show answer

: .

Problem 6. Find the domain of .

Show answer

A cube root is an odd root, so there is no restriction: all real numbers.

Problem 7. Find the domain of .

Show answer

at : .

Problem 8. Find the domain of .

Show answer

Root needs ; denominator excludes 9. So .

Problem 9. A graph runs from an open circle at to a filled dot at . State the domain.

Show answer

— open on the left, closed on the right.

Problem 10. Find the domain of .

Show answer

: . Strict, because is undefined.

Problem 11. A ball’s height after seconds is , landing at . Give the domain in context.

Show answer

, or . Time cannot be negative and the flight ends on landing.

Problem 12. Find the domain of .

Show answer

Need (strict, since the root is in the denominator): , or .

Quick Reference

FeatureConditionExample
Polynomialnonedomain is all reals
Denominator excludes 2
Even rootinside needs
Odd rootnone accepts everything
Logarithmargument needs
Root in a denominatorinside strict, not
From a graphthe shadow on the -axisfilled = included
In contextwhatever the situation allowslengths are positive

The domain answers what may go in; range answers what comes out. Both belong to a function, are written with function notation, and are read off the picture in Graphing Functions. The bracket conventions are covered in Interval Notation. More Algebra lessons are available.

Frequently Asked Questions

What is the domain of a function?+

The domain is the set of all input values the function is allowed to take. For a function written , it is every value of that produces a real output.

How do you find the domain of a function?+

Start from all real numbers, then exclude anything that breaks the formula: values making a denominator zero, values making the inside of an even root negative, and values making the argument of a logarithm zero or negative.

What is the domain of a polynomial?+

All real numbers. Polynomials only ever add, subtract and multiply, and none of those operations can fail, so there is nothing to exclude. In interval notation the answer is .

How do you find the domain of a fraction?+

Set the denominator equal to zero and solve. Those values are excluded, and everything else is allowed. For the domain is all real numbers except .

How do you find the domain of a square root?+

Set the expression under the root to be greater than or equal to zero and solve the inequality. For you need , so the domain is .

How do you find the domain from a graph?+

Read how far the graph extends left and right, and project it down onto the -axis. That shadow is the domain. A filled endpoint is included, an open circle is not, and an arrow means it continues forever.

Related lessons