Domain of a function
A function is given when to each number x from some set a number y is assigned; x is the independent variable (argument), y is the function. The set of all values the argument may take is the domain of the function. For a function given by a formula, the domain is all x for which the formula makes sense. So an expression in a denominator must not be zero, and an expression under an even-degree root (such as a square root) must not be negative. Polynomials (for example quadratic functions) are defined for all real numbers. The function y = |x| is defined for all x: y = x for x ≥ 0 and y = −x for x < 0; its graph is symmetric about the Oy axis and consists of the bisectors of the first and second coordinate angles. The graph of y = |x − 3| − 2 is obtained from y = |x| by shifting 3 units right and 2 units down.
| Expression | Condition |
|---|---|
| denominator | ≠ 0 |
| under a square root | ≥ 0 |
Friends split a bill of 60 units equally, so each pays 60 : n. With four friends that is 15 units, with five 12 units. For n = 0 the formula has no meaning, so n can only be 1, 2, 3, ...: that is the domain of this function.
An accountant finds the cost per person, a programmer adds a check to avoid division by zero, and a spreadsheet user sees an error message when a formula divides by an empty cell.
Think of two everyday formulas of your own (for example a share per person, or distance divided by speed) and write which values the variable cannot take in each.
“It makes no sense!”: the teacher names formulas and students find which value of x cannot be used (division by zero, root of a negative number). The first correct student invents the next formula.