Skip to content
One hour with George, then a written plan the next working day. Book yours.

Finding the domain of a function

To find a domain, ask what input would break the formula, and keep everything else. Only three things break a real-number function at this level: a zero in a denominator, a negative number under an even root, and a zero or negative number inside a logarithm. Each of the ten problems below is one of those traps or a combination of two.

For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.

Book your first session
Ten domain problems with answers in interval notation
FunctionWhat breaks itDomain
f(x) = square root of (2x - 6)the radicand must be at least 0, so 2x - 6 at least 0[3, infinity)
f(x) = 1 / (x squared - 9)x squared - 9 = 0 at x = 3 and x = -3all reals except 3 and -3
f(x) = square root of (x squared - 4x - 5)(x - 5)(x + 1) at least 0(-infinity, -1] and [5, infinity)
f(x) = (square root of (x + 3)) / (x - 2)x + 3 at least 0, and x not 2[-3, 2) and (2, infinity)
f(x) = ln(5 - x)the argument must be above 0, so x below 5(-infinity, 5)
f(x) = 1 / (square root of (4 - x squared))the radicand must be above 0 (it is also in a denominator)(-2, 2)
f(x) = (cube root of x) / (x - 1)an odd root accepts every real number; only x = 1 breaks the fractionall reals except 1
f(x) = 2 to the power 1/(x - 4)the exponent has a denominator that cannot be 0all reals except 4
f(x) = log base 2 of ((x + 1) / (x - 3))the fraction must be above 0 and x not 3(-infinity, -1) and (3, infinity)
f(x) = square root of (9 - x squared)9 - x squared at least 0, so -3 at most x at most 3[-3, 3]

A round bracket leaves the endpoint out, and a square bracket keeps it. The union sign joins separate pieces.

Our own problems. Each answer was solved by hand and confirmed by testing every quarter-step from -10 to 10 in code.

What is the quickest way to start?

Write the domain as "all real numbers" and then cross out inputs. A polynomial crosses out nothing, so the domain of 5x cubed - 2x + 1 is every real number. A fraction crosses out the zeros of its denominator. An even root, such as a square root, crosses out every input that makes the radicand negative. An odd root, such as a cube root, crosses out nothing by itself. A logarithm crosses out every input that makes its argument 0 or negative. An exponential function accepts any exponent that is itself defined.

How do you solve a radicand inequality?

Treat it as a sign problem in three steps. First, solve the equation to find the boundary points. Second, mark them on a number line and test one value in each piece. Third, keep the pieces where the test had the sign you need, and decide the brackets from whether the inequality allows equality.

Worked example: Domain of a square root with a quadratic inside

Find the domain of f(x) = square root of (x squared - 4x - 5).

  1. The radicand must be at least 0: x squared - 4x - 5 is at least 0.
  2. Factor the quadratic: (x - 5)(x + 1) is at least 0. The boundary points are x = 5 and x = -1.
  3. Test a point in each piece. At x = -2 the product is (-7)(-1) = 7, which is positive. At x = 0 it is (-5)(1) = -5, which is negative. At x = 6 it is (1)(7) = 7, which is positive.
  4. Keep the two positive pieces, and keep the boundary points because "at least 0" allows equality.

Answer: (-infinity, -1] and [5, infinity).

Source: Original example by George Li Tutoring; solution checked by evaluating the radicand at test points.

What if two traps appear at once?

Solve each condition on its own and keep the inputs that satisfy all of them. In (square root of (x + 3)) / (x - 2), the root needs x at least -3, and the fraction needs x not 2. Combine them: start at -3, include it, and skip 2, which gives [-3, 2) and (2, infinity). In 1 / (square root of (4 - x squared)), the root already allows 0 inside, but a denominator forbids it, so the endpoints go away and you are left with (-2, 2).

Which mistakes cost the most points?

  • Writing a bracket where a round bracket belongs, or the reverse, on an endpoint.
  • Solving a quadratic inequality by only finding the roots, and not testing the pieces.
  • Forgetting that a denominator and a root can both restrict the same function.
  • Treating a cube root like a square root. Cube roots accept negative numbers.

If you want help drilling these in the order a course teaches them, see high school course tutoring or book a first session. The rule-by-rule version of this page is the domain of each kind of function.

Common questions

How do you find the domain of a function?

Start from all real numbers and remove inputs that make a denominator zero, a square root of a negative number, or a logarithm of zero or a negative number.

Which inputs does a square root function accept?

Every input that leaves the expression under the root at 0 or above.

Which inputs does a logarithm accept?

All inputs that make the argument strictly greater than zero.

Which inputs does a cube root function accept?

Every real number, because an odd root of a negative number is a real number.

Sources