Unit 3, lesson 18

Finding the Domain

How to find the natural domain of a real formula by listing every root and denominator condition and keeping only the inputs that satisfy all of them at once.

  • Theory part 35
  • Practice part 36
  • Domain and Range

Type −4\sqrt{-4} into a calculator set to real numbers and it answers with an error. Type 1/01/0 and it does the same. A formula quietly refuses some inputs, and before you graph it, take its limit or differentiate it, you need to know which ones. Finding the domain is the habit of asking, for each operation in the formula, what it needs in order to give a real number.

Key terms

Real-valued function

Definition A real-valued function is a function whose outputs are real numbers. In this course its inputs are real numbers as well, so a formula counts as defined at xx only when every step of evaluating it at xx produces a real number. Complex numbers are not allowed as intermediate or final values.

In plain words Every number that appears while you compute f(x)f(x), and the final answer, must be an ordinary real number.

Example For f(x)=xf(x) = \sqrt{x} the input x=9x = 9 gives the real output 33. The input x=−4x = -4 would need −4\sqrt{-4}, which is not a real number, so ff is not defined at −4-4 as a real-valued function.

Domain

Definition The domain of a function ff is the set of all inputs xx for which f(x)f(x) is defined. A function is not fully described until its domain is known, either because it is stated or because it is understood from the formula.

In plain words The domain is the list of inputs the function accepts.

Example A function given by a table

xx−1-10022
g(x)g(x)553388

has domain {−1,0,2}\{-1, 0, 2\}. Asking for g(1)g(1) makes no sense, because 11 is not an input of gg.

Natural domain

Definition When a function is given by a formula and no domain is stated, its natural domain is the set of all real numbers xx for which the displayed formula produces a real value. It is found from the formula exactly as written, before any simplification. Canceling a factor does not add the inputs where the factor was zero.

In plain words Use every real number that the formula, as written, can handle. Simplifying first can hide a problem, so read the domain off the original formula.

Example The formula

q(x)=x2−4x−2q(x) = \frac{x^2 - 4}{x - 2}

is undefined at x=2x = 2, where the denominator is zero. For x≠2x \ne 2 it equals x+2x + 2, but the natural domain of qq is still all real numbers except 22. The graph is the line y=x+2y = x + 2 with a hole at (2,4)(2, 4).

Radicand

Definition The radicand is the expression under a root sign. A real even root, such as u\sqrt{u} or u4\sqrt[4]{u}, is defined exactly when its radicand satisfies u≥0u \ge 0. A real odd root, such as u3\sqrt[3]{u}, is defined for every real uu.

In plain words Square roots and other even roots need the inside to be zero or positive. Cube roots accept anything.

Example For f(x)=6−2xf(x) = \sqrt{6 - 2x} the radicand must satisfy 6−2x≥06 - 2x \ge 0. Subtract 66 to get −2x≥−6-2x \ge -6, then divide by −2-2 and reverse the inequality, which gives x≤3x \le 3. The natural domain is (−∞,3](-\infty, 3]. The endpoint 33 is included because 0=0\sqrt{0} = 0 is a real number. By contrast, x−53\sqrt[3]{x - 5} has domain (−∞,∞)(-\infty, \infty).

Denominator restriction

Definition Every denominator in a formula must be nonzero at the input. When the whole denominator is an even root, that root must exist and must not be zero, so its radicand must be strictly positive. For example

1u is defined exactly when u>0.\frac{1}{\sqrt{u}} \text{ is defined exactly when } u > 0.

In plain words You can never divide by zero. A square root underneath a fraction bar adds a stronger condition than a square root on top, because the root itself must not be zero.

Example For k(x)=1x−1k(x) = \frac{1}{\sqrt{x - 1}} the radicand must be positive, so x−1>0x - 1 > 0 and x>1x > 1. The natural domain is (1,∞)(1, \infty). At x=1x = 1 the root equals 00, and dividing by it is impossible, so 11 is left out, while x−1\sqrt{x - 1} on its own would accept x=1x = 1.

Intersection of conditions

Definition If a formula imposes conditions C1,C2,…,CnC_1, C_2, \ldots, C_n on xx, one for each root and each denominator, then its natural domain is the set of real numbers that satisfy all of them at the same time. This is the intersection of the solution sets,

{x∣C1}∩{x∣C2}∩⋯∩{x∣Cn}.\begin{aligned} &\{x \mid C_1\} \cap \{x \mid C_2\} \\[0.4em] &\quad \cap \cdots \cap \{x \mid C_n\}. \end{aligned}

Each endpoint of the result is included or excluded according to every condition that involves it.

In plain words Solve each condition on its own, draw them on one number line, and keep only the part where they all overlap.

Example Compare two formulas built from the same pieces. The first has the root in the numerator,

h(x)=x+2x−3.h(x) = \frac{\sqrt{x + 2}}{x - 3}.

The root needs x+2≥0x + 2 \ge 0, so x≥−2x \ge -2. The denominator needs x≠3x \ne 3. Both hold on

[−2,3)∪(3,∞).[-2, 3) \cup (3, \infty).

The second has the root in the denominator,

p(x)=x−3x+2.p(x) = \frac{x - 3}{\sqrt{x + 2}}.

Now the numerator is fine for every xx, and the denominator needs x+2>0x + 2 > 0. The domain is (−2,∞)(-2, \infty), which includes 33 and excludes −2-2, the opposite choices from hh at both points.

Inputh(x)h(x)p(x)p(x)
−2-200undefined
33undefined00

Stated domain

Definition A stated domain is a domain given explicitly with the function, such as f(x)=x2f(x) = x^2 for 0≤x≤30 \le x \le 3, or one forced by the context of a problem. A stated domain must be a subset of the natural domain, and when one is given it replaces the natural domain, even if the formula would accept more inputs.

In plain words Sometimes the problem tells you which inputs to use. Then those are the only inputs, whatever the formula could handle.

Example The area of a square with side ss is A(s)=s2A(s) = s^2. The formula accepts every real ss, but a side length must be positive, so in this context the domain is (0,∞)(0, \infty). The input s=−3s = -3 gives the number 99, yet it does not describe any square.

Check yourself

  1. Find the natural domain of f(x)=5−xx+1f(x) = \frac{\sqrt{5 - x}}{x + 1}.
Show the answer

The root needs 5−x≥05 - x \ge 0, so x≤5x \le 5. The denominator needs x≠−1x \ne -1. Together the domain is

(−∞,−1)∪(−1,5].(-\infty, -1) \cup (-1, 5].
  1. Find the natural domain of g(x)=1x2−9g(x) = \frac{1}{\sqrt{x^2 - 9}}.
Show the answer

A root in the denominator needs a strictly positive radicand, so x2−9>0x^2 - 9 > 0, which means x2>9x^2 > 9. That holds exactly when x<−3x < -3 or x>3x > 3, so the domain is

(−∞,−3)∪(3,∞).(-\infty, -3) \cup (3, \infty).
  1. A classmate says the domain of r(x)=x2−1x−1r(x) = \frac{x^2 - 1}{x - 1} is all real numbers, because r(x)=x+1r(x) = x + 1. Are they right?
Show the answer

No. The natural domain comes from the formula as written, and its denominator is zero at x=1x = 1. The domain is all real numbers except 11. The simplification r(x)=x+1r(x) = x + 1 holds only for x≠1x \ne 1.

How this lesson connects