Note first that the definition says nothing about a formula; just that the result must be properly defined. And the definition can be complicated; for example
In the simplest examples, like
f (x) = x2 the domain of f is the
whole of
, but even for relatively simple cases, such as
f (x) =
, we need to restrict to a smaller domain, in this case the
domain D is
{x : x
0}, since we cannot define the square root
of a negative number, at least if we want the function to have real -
values, so that
T
.
Note that the domain is part of the definition of a function, so
changing the domain technically gives a different function. This
distinction will start to be important in this course. So
f1 : ![]()
![]()
defined by
f1(x) = x2 and
f2 : [- 2, 2]![]()
defined by
f2(x) = x2 are formally different functions, even though
they both are ``x2'' Note also that the range of f2 is
[0, 4]. This illustrate our first use of intervals. Given
f : ![]()
![]()
, we can always restrict the domain of f to an interval I to
get a new function. Mostly this is trivial, but sometimes it is
useful.
Another natural situation in which we need to be careful of the domain of a function occurs when taking quotients, to avoid dividing by zero. Thus the function
g(x) = It is often of interest to investigate the behaviour of a function near a singularity. For example if
=
for x