### 8.4.1 Domain of a function

The domain command finds the domain of a function.

- domain takes one mandatory argument and one optional argument:
  - expr, an expression involving a single variable.
  - Optionally, x, the variable, which by default will be x.
- domain(expr ⟨,x ⟩) returns the domain of the function defined by expr.

#### Examples

domain(ln(x+1))

x>−1 |  |  |  |  |  |  |  |  |  |

domain(asin(2*t),t)

t≥ − |
1
2
| ∧ t≤ |
1
2

Find the domain of the function f(x)=√1−√2−√x−3:

domain(sqrt(1-sqrt(2-sqrt(x-3))),x)

x≥ 4∧ x≤ 7 |  |  |  |  |  |  |  |  |  |