Functions of Single Variable in Statistics
Functions of Single Variable in Statistics
FUNCTION OF A SINGLE
VARIABLE
Structure
1.1 Introduction 1.5 Some Special Functions
having Applications in
Expected Learning Outcomes
Statistics, Probability and
1.2 Constant and Variable Machine Learning
Quantity
1.6 Summary
1.3 Interval and its Types
1.7 Terminal Questions
1.4 Definition, Notations and
1.8 Solutions/Answers
Pictorial Presentation of a
Function
1.1 INTRODUCTION
In statistics, we use parameters for population characteristics such as mean,
variance, etc. Constants and variables are also used in statistics. So, it
becomes important to understand the distinction between fixed constant,
parameter and variable which is discussed in Sec. 1.2. Another important thing
that we are going to use on many occasions in different courses is the interval.
In Sec. 1.3 different types of intervals are discussed. To understand many
concepts of probability and statistics such as probability mass function,
probability density function, cumulative distribution function, likelihood function,
etc. you should have a good understanding of function, therefore, a brief
overview of the function is given in Sec. 1.4. There are some special functions
which have their applications in statistics, probability and machine learning
such as linear, polynomial, logarithm, exponential, modulus functions, logistic
sigmoid function, etc. which are discussed in Sec. 1.5. In the course MST-024
on machine learning you will also use many other functions such as loss
function, distance function (Manhattan distance, Euclidean distance,
Chebyshev distance), etc. The distance function is discussed in Unit 3.
In the next unit, you will study types of functions, countable sets, continuity
and differentiability of a function.
❖ define different types of constants, variables, and intervals, and can give
examples of each;
where (p, q) represents the greatest common divisor (gcd) or highest common
factor (hcf) of p and q
After getting the idea about these different families of numbers, the next thing
that you should be familiar with is the meaning of constant and variable.
Actually, you have used them so many times in school mathematics. Here, we
are discussing them because we want to further classify them. In fact, they are
a particular type of quantity so the story begins by defining the quantity itself
as follows.
Quantity
In mathematics and statistics, quantity means those things on which four basic
mathematical operations: addition, subtraction, multiplication and division can
be applied. For example: (i) 2, 5 (ii) population mean (μ) (iii) number of
children per family (iv) all real numbers between 2 and 3 including 2 and 3,
etc. all are examples of different types of quantity which you will come across
during your study of different courses of [Link]. Applied Statistics programme.
Fixed Constant: Those types of constants which always remain the same
(unchanged) independent of the place and time are known as fixed constants.
3
For example: 2, , 13, − 17, , etc. are fixed constants because the
2
number 2 will remain the same whether you use it in the morning or evening or
in India or in any other country. Similarly, the number which is equal to the
quotient of the circumference of a circle (2πr) and its diameter (2r) is a fixed
constant. Value of does not depend on the length of the radius of the circle.
Also, remember 22/7 is not the exact value of it is just an approximate
value.
Length of circumference of the circle
Exact value of = . ... (1.8)
Length of diameter of the same circle
For example, from school mathematics, you know that the equation y = x + c
represents a straight line which makes an angle of 450 (⸪ slope is 1 =
coefficient of x if we compare it with y = mx + c) with a positive direction of the
x-axis. For each real value of c, this equation gives a different straight line
refer to Fig. 1.2. Here, c behaves like an arbitrary constant because for a
particular line, its value is a fixed constant but its value varies from line to line.
Similarly, in normal distribution mean (μ) and variance (σ2) are parameters
because they remain fixed constant in a particular normal distribution but vary
from normal distribution to normal distribution refer to Fig. 1.3.
Variable
A quantity which may change its value even in a particular problem is known
x 2 − x − 12 = 0 ( x − 4 )( x + 3 ) = 0 x = 4 or − 3
Discrete Variable: If the nature of the quantity is such that its possible values
can be written in a sequence then such a quantity is known as discrete in
nature or discrete variable. For example, the number of children in a family
in a country may be 0, 1, 2, 3, … . Here, you know that the minimum possible
number of children in a family is 0 and after 0 the next possible value for the
12
quantity, the number of children in a family is 1. There is no possibility Function of a
Single
between 0 and 1 for the quantity, the number of children in a family. Similarly, Variable
after 1 the next possible value for the quantity, the number of children in a
family is 2 and so on. Here, you can write the possible values in a sequence
(0, 1, 2, 3, …) so the quantity, the number of children in a family is a discrete
quantity and so is an example of a discrete variable. Other examples of
discrete variables are the number of accidents at a particular site on a road,
the number of defective items in a packet of 100 items, the outcome of a die
when it is thrown once, etc.
Continuous Variable: If the nature of the quantity is such that it can take any
possible value between two certain limits, then such a quantity is known as
continuous in nature or continuous variable. In other words, if a quantity is
continuous in nature, then you cannot write all its possible values in a
sequence. For example, you cannot write all real numbers from 2 to 3 in a
In this section, we will study interval and its types. Interval makes sense only
in the family of real numbers and is defined as follows:
Let be the set of all real numbers. Then a set I is said to be an interval
if whenever a, b I and a < x b then x I. For example, the set of all real
numbers satisfying 2 x 3 is an interval where x can take any real value
between 2 and 3 including 2 and 3. … (1.9)
Now, you have gone through the definition of interval so we can explain the
point why interval makes sense only in the family of real numbers. For
example, consider the family of rational numbers: as 1, 2 then we cannot
form an interval in the family of rational numbers with endpoints 1 and 2
including 1 and 2 because you know that value of 2 up to three decimal
places is 1.414 and so 1 2 2 but 2 is an irrational number, not a
rational number and hence 2 [1, 2] because we are assuming the interval
[1, 2] in the family of rational numbers. That is why interval makes sense only
in the family of real numbers.
Types of Intervals
Intervals are classified on the basis of two criteria:
(a) Whether it contains its endpoints or does not contain its endpoints
For example, open interval (2, 5) contains each real number lying
between 2 and 5 but does not contain 2 and 5. To represent an open
interval on real line we make open dots at both endpoints. Fig. 1.4 (a)
indicates it on the real line.
i.e., x (2, 5) 2 x 5
Closed Interval: An interval I with endpoints a and b (a < b) is
called closed interval if it contains all real numbers between a and b and
also contains endpoints a and b. A closed interval with endpoints a and b
is denoted by [a, b] and mathematically is defined as follows:
[a, b] = {x : a x b} … (1.11)
For example, closed interval [2, 5] contains each real number lying
between 2 and 5 including 2 and 5. To represent a closed interval on a
real line we make solid dots at both endpoints. Fig. 1.4 (b) indicates it on
the real line.
i.e., x [2, 5] 2 x 5
For example, left open and right closed interval (2, 5] contain each real
number lying between 2 and 5 including end point 5 but does not contain
end point 2. To represent it on real line we have to make an open dot at
2 and a solid dot at 5. Fig. 1.4 (c) indicates it on the real line.
i.e., x (2,5] 2 x 5
[a, b) = {x : a x b} … (1.13)
For example, left closed and right open interval [2, 5) contain each real
number lying between 2 and 5 including endpoint 2 but does not contain
endpoint 5. To represent it on a real line we have to make a solid dot at
2 and an open dot at 5. Fig. 1.4 (d) indicates it on the real line.
i.e., x [2, 5) 2 x 5
15
Real Analysis (b) Different Types of Intervals based on the Criteria Whether its length
is finite or infinite
Length of an Interval: Length of each of the intervals (a, b), [a, b],
(a, b], [a, b) is defined as b − a, a b.
i.e., length of the interval = difference of the end points … (1.14)
For example, if I = (2, 7) then (I) = 7 − 2 = 5, , where (I) denotes the
length of the interval I.
For example,
(i) The set {x : x a, a } is an infinite interval and is denoted by
(a, ). Fig. 1.4 (e) Indicates the infinite interval (2, ) on real line.
Fig. 1.4 (g) to (i) indicate the infinite intervals ( − , ), [2, ), and ( − , 5]
respectively on real line.
Fig. 1.4: Visualisation of (a) open interval (b) closed interval (c) left open and
16 right closed (d) left closed and right open (e to i) infinite intervals
Remark 1 Function of a
Single
Variable
• Each interval contains infinitely many elements.
• Each interval is an infinite set but an infinite set may or may not be an
interval. For example, , , are infinite sets but are not intervals.
• A set may or may not be an interval. For example, {2, 7} is a set but not
an interval.
• , set of all real numbers, is an infinite interval given by = ( − , ).
• Remember that − and are not included in the set of real numbers.
Also, if extreme value is or − , then open bracket is used on that side
of the interval having or − . In Unit 3 of this course we will extend set
of real numbers by including two special numbers − and + and we
will denote this new set by *
= ( − , ) {− , + } = {− , + }.
You know about function from school mathematics. You can treat function as a
machine if it works in such a way that (i) corresponding to each input it gives
output and (ii) output is unique for each input. Mathematically, a function is
defined as follows:
Let X and Y be two non-empty sets. Then a rule which associates each
element of X to a unique element of Y is called a function from X to Y. X is
called domain of the function. Y is called co-domain of the function, and the
set of only those values of Y for which function is defined is called range of the
function. That is, the subset { y Y : y = f(x) for some x X} of Y is called
range of the function. … (1.17)
If we treat function as a machine then the set of all inputs is called domain of
the function and the set of all outputs is called range of the function. If we
define a function f : → by
y = f(x) = x 2 + 1, x
Note 2: One point which may come in your mind is that if m4 is a mother then
there should be at least one daughter of the mother m4 . But as we know that
to become a mother it is not necessary that there should be a daughter. A
mother may have only one son or only two sons or more than two sons without
a daughter.
The rule g shown in Fig. 1.6 (b) is not a function because daughter d1 has two
mothers m1 and m2 which is not possible. [i.e., condition (ii) given in the box is
not satisfied]
The rule h shown in Fig. 1.6 (c) is not a function because daughter d3 has no
mother. If the daughter d3 came in this world, then there should be some
mother of the daughter d3 . [i.e., condition (i) given in the box is not satisfied]
The rule ϕ shown in Fig. 1.6 (d) is a function because each daughter has
unique mother. We see that both daughters d1, d2 have the same mother, no
problem it is possible. Further mothers m3 , m4 have no daughters again no
problem it is also possible. In this case:
Remark 2
Solution: f : → be defined by
f(x) = 3n, n
Range of the function f = Set of only those values for which function is defined
= {3, 6, 9, …}
Co-domain = {1, 2, 3, }=
Graph of the function when both domain and co-domain are set of natural
numbers is shown in Fig. 1.8 (a). Graph of the function when both domain and
co-domain are set of real numbers is shown in Fig. 1.8 (b). Note the effect of
domain and range on the graph of a function. Here mathematical expression
of the function is the same but domain and range are different. In Fig. 1.8 (a)
only points at (1, 1), (2, 2), (3, 3), (4, 4), … represent its graph while in Fig. 1.8
(b) complete line represent its graph.
(a) (b)
Fig. 1.8: Graph of the function f(x) = 3x (a) when f is from to (b) when f is
20 from to
Example 2: Find the domain of the function f : → , defined by Function of a
Single
Variable
f(x) = (x − 3)(5 − x) , x
For f(x) to be real, the quantity under the square root should be non-negative
and hence
(x − 3)(5 − x) 0
− (x − 3)(x − 5) 0
Now, if we choose x less than 3, the LHS of this inequality comes out to be
(–ve) (–ve) = + ve hence does not satisfy the inequality.
Also, if we choose x greater than 5, the LHS of this inequality comes out to be
(+ve) (+ve) = +ve again does not satisfy this inequality.
But, if we take 3 < x < 5, the LHS becomes (+ve) (–ve) = –ve and hence
satisfies the inequality. Also, x = 3 and x = 5 satisfy inequality. So, required
domain of the given function is [3, 5].
Now, the number 7 does not lie in the domain of f so f(7) cannot be obtained
for this function. However, 3, 4 and 5 all lie in the domain of f so values of f at
3, 4 and 5 can be obtained and are given as follows.
f(4) = (4 − 3)(5 − 4) = 1 1 = 1
1
f(x) = , x . Also, evaluate f(1), f ( 3 ) , f( − 5) .
x−2
Constant Function
Suppose you have a special coin having head on both sides. Then whenever
you will throw it, each time its outcome will be head. Ignore the possibility of
landing on edge like Sholay film. If X is a variable having value 1 if head
appears and 0 otherwise then X will always take value 1. Such type of
behaviour is represented by a constant function in mathematics and
degenerate random variable in probability theory. In mathematics constant
function is defined as follows:
For example,
(i) f: → defined by
f(x) = 3, n
(ii) f: → defined by
f(x) = 3, x
is also a constant function and its graph is shown in Fig. 1.10 (b).
22
Function of a
Single
Variable
(a) (b)
Fig. 1.10: Graph of the constant function f(x) = 3 (a) when f is from to (b) when f is
from to
Remark 3
If you connect this function with the example of daughters and mothers then
you find that all daughters have 3 as their mothers. But then mother 3 has
infinitely many daughters. In real life you will not find a mother who has infinite
daughters. So, keep in mind that example of daughters and mothers is given
just for better understanding of the two conditions for a rule to become a
function. So, limit that example only for understanding the two conditions
required for a rule to be a function. The next function that you are going to
study is identity function. You will see that identity function associates each
element with itself. But in real life a daughter cannot be mother of herself. So,
again the same reason example of daughters and mothers is given just for
better understanding of the two conditions for a rule to become a function.
Keep this point in mind.
Identity Function
You know from school mathematics that when you multiply a real number with
1 outcome will be the same number itself. That is, for any real number a, we
have a.1 = 1.a = a. In the universe of functions identity function plays the same
role as 1 plays in the family of real numbers. In mathematics identity function
is defined as follows:
For example,
(i) f: → defined by
f(n) = n, n N … (1.20)
23
Real Analysis
(ii) Instead of set of natural numbers if you want to define identity function in
the set of real numbers then it is defined the same way just replace
by as follows:
f: → defined by
f(x) = x, x … (1.21)
(a) (b)
Fig. 1.12: Graph of the identity function f(x) = x (a) when f is from to (b)
when f is from to
Polynomial Function
A function f : → is said to be a polynomial function of degree n (only
possible values of n are 0, 1, 2, 3, 4, …) if it is defined as
For example, if f(x) = (x – 3)7(x – 5)9(x – 13) then multiplicity of zeros 3, 5 and
13 are 7, 9 and 1 respectively.
Fig. 1.13: Graphs of the different polynomials of degree 0, 1 and 2 with positive leading
coefficient in (a), (c), (e) and negative leading coefficient in (b), (d), (f) and
having root(s) multiplicity one
25
Real Analysis Polynomials shown in Fig. 1.14 (a), (b) to Fig. 1.16 (a), (b) are mentioned in
the graphs. From the graphs of these polynomials note that:
Fig. 1.14: Graphs of the cubic polynomials (a) with positive leading coefficient, and (b)
negative leading coefficient
26
Function of a
Single
Variable
Fig. 1.15: Graphs of the polynomials of degree 5 (a) with positive leading
coefficient, and (b) negative leading coefficient
Fig. 1.16: Graphs of the 10-degree polynomials having four roots 1, 2, 3 and 3.5
with multiplicities 3, 2, 4, 1 respectively (a) with positive leading
coefficient, and (b) negative leading coefficient
Exponential Function
From school mathematics you know that if you invest Rs P at r% per annum
for a period of n years compounded annually then amount A after n years is
given by
n
r
A = P 1 +
100
So, if you invest Rs 1 for a period of 4 years and growth rate is 2 then after 4
years your amount will be A = 24 = Rs 16. Such type of functions where we
have a constant in the base and variable (here time) in the power are known
27
Real Analysis as exponential functions. Mathematically, an exponential function is defined as
follows:
A function f : → defined by
f(x) = a x , x , a 0, a 1 … (1.29)
x
1
For example, f(x) = 2 , g(x) = 10 , h(x) = , etc. all are exponential
x x
2
functions.
20 = 1, 21 = 2, 22 = 4, 23 = 8, etc.
2−1 = 1 = 0.5, 2−2 = 1 = 1 = 0.25, 2−3 = 1 = 0.125, etc.
2 22 4 8
+
and hence its range is the set of positive real numbers = (0, ). This is not
only true for this particular exponential function but it is true in general for all
the exponential functions so range of an exponential function is + = (0, ).
… (1.30)
Fig. 1.17: Graph of exponential function (a) f(x) = (1/2)x (b) f(x) = 2x
28
Example 3: In the following exponential functions name the rate, time and Function of a
Single
amount. Variable
(i) A = 3n (ii) B = 10m (iii) ak = x (iv) 8(4/3) = 16
Therefore, we have
Logarithm Function
In Sec. 1.4 you have seen that function can be treated as a machine (refer Fig.
1.5) which gives unique output corresponding to each input. You know that in
an exponential function if rate is 10 and time is 3 then output (amount) will be
1000. If you are interested in another machine (function) which works in such
a way that if output of an exponential function is given as input in this new
machine, then its output should be corresponding input of the exponential
function such a machine (function) is known as logarithm function. In this new
machine rate of exponential function is known as base of the logarithm
function. Table 1.1 explains this inverse relationship between exponential and
logarithm functions and Fig. 1.18 shows both functions as machines
simultaneously.
Table 1.1: Exponential and logarithm functions are inverse of each other
2 5 25 = 32 2 32 log2 32 = 5
2 0 20 = 1 2 1 log2 1 = 0
e x ex e ex loge x = x
29
Real Analysis Note that when output of an exponential function is given as input to the
logarithm function then output of the logarithm function matches with
corresponding input of the exponential function and vice versa. In the last row
of the Table 1.1 the number e is a special number in mathematic. You have
studied expansion of e x in school mathematics and the same is given as
follows.
x x2 x3 x 4 x5
ex = 1 + + + + + + … (1.31)
1 2 3 4 5
1 1 1 1 1
e = 1+ + + + + + … (1.32)
1 2 3 4 5
Fig. 1.18: Exponential and logarithm functions are machines which undo effect
of each other
Fig. 1.19: Graph of logarithm function (a) f(x) = log1/2 x (b) f(x) = log2 x
31
Real Analysis Finally, following are some important laws of logarithm function
m
2. loga = loga m − loga n … (1.36)
n
4. a loga m = m … (1.38)
5. loga a = 1 … (1.39)
1
6. loga b = … (1.40)
logb a
logn b
7. loga b = this is known as base change formula, in fact we can
logn a
take any base in place of n. … (1.41)
Remark 4
• When we write log x it means base is e. That is, in most of the cases
base is mentioned only when it is other than e.
Solution:
Similarly,
(ii) log4 64 = x 4 x = 64 4 x = 43 x = 3
(iii) log8 64 = x 8 x = 64 8 x = 8 2 x = 2
4
(v) log8 16 = x 8 x = 16 (23 )x = 2 4 23x = 2 4 3x = 4 x =
3
x
(vi) log 3 81 = x ( 3 )x = 81 3 x/2 = 3 4 =4x =8
2
32
3 Function of a
(vii) log16 x = (16)3/2 = x (4 2 )3/2 = x 4 3 = x x = 64 Single
2 Variable
1 1 1
(viii) log2 x = − 3 2− 3 = x 3
=x =xx=
2 8 8
(i) X = A1 A 2 A 3 An
For example, if X = {1, 3, 7, 9, 12, 13} then the collection of the non-empty
subsets A1 = {1, 3, 7}, A 2 = {9}, A 3 = {12, 13} of X form a partition of X. Another
partition of X may be formed by the non-empty subsets
B1 = {1, 3,}, B2 = {7, 9, 12, 13} of X. Similarly, more partitions can be formed.
x + 2, 0 x <2
2x, 2 x <3
f(x) =
x − 1, x=3
x2 , 3 x 5
The function defined like this in pieces (here we have four pieces) is known as
piecewise function. Often sub-domains are mutually disjoint but, in some
cases if Di D j for some i and j then values of ith and jth pieces of the
function at the common point is the same. For example, if in the present
example D1 also includes 2, i.e., D1 = [0, 2] then D1 D2 = {2}. Now value of f
obtained using the first piece and the second piece at x = 2 should match. This
can be seen as follows: … (1.46)
For Indian citizens having age less than 60 years and taxable income Rs x
(rounded in rupees) then calculation of income tax for FY 2020-21 under old
tax regime is a piecewise function given as follows:
34
0, x 250000 Function of a
Single
5% of (x − 250000), 250001 x 500000 Variable
f(x) =
12500 + 20% of (x − 500000), 500001 x 1000000
112500 + 30% of (x − 1000000), x 1000001
There are some piecewise functions which are used in mathematics and
statistics. Here, we will discuss only four of them namely: modulus function,
unit step function (both having two pieces), Signum function (having three
pieces), and greatest integer function (having infinite pieces).
x, x 0
f(x) = x = , x R … (1.47)
− x, x <0
Note that this function has two pieces one piece corresponding to non-
negative values of x and other corresponding to negatives values of x.
35
Real Analysis Unit Step Function
If a machine behaves in such a way that its output is 1 in the case its input is
zero or positive number, and its output is 0 in the case input is a negative
number, then behaviour of such a machine matches with unit step function.
Mathematically, unit step function is defined as follows:
1, x0
f(x) = U(x) = , x R … (1.49)
0, x <0
Note that like modulus function this function also has two pieces one piece
corresponding to non-negative values of x and other corresponding to
negative values of x.
Domain and Range of the Unit Step Function: Unit step function is defined
for all real values of x hence its domain is = ( − , ). But this function takes
only two values 0 and 1 so range of the unit step function is {0, 1} … (1.50)
Graphical Behaviour of Unit Step Function: Unit step function takes only
two values 0 and 1 so its graph is represented by two horizontal straight lines
y = 0 and y = 1 and is shown in Fig. 1.22. Note the point why we have made
open dot at the position (0, 0) and solid dot at the position (0, 1). Refer Fig. 1.4
where we have said about it.
Solution:
f(2) = 2 − 1 − 2 − 3 2(2) − 5 = 2 − −1 − 3 −1 = 2 − 1 − 3 = − 2
2 0, so by definition of modulus function 2 = 2
Also − 1 0, so −1 = − ( −1) = 1
Similarly,
36 f( − 2) = − 2 − 1 + 2 − 3 2( − 2) − 5 = 2 − 3 − 3 − 9 = 2 − 3 − 27 = − 28
f(3) = 3 − 1 − 3 − 3 2(3) − 5 = 3 − − 2 − 3 1 = 3 − 2 − 3 = − 2 Function of a
Single
Variable
f( − 3) = − 3 − 1 + 3 − 3 2( − 3) − 5 = 3 − 4 − 3 −11 = 3 − 4 − 33 = − 34
1 1 1 1 1 1 1 1
f = − 1 − − 3 2 − 5 = − − 3 − 4 = − − 12 = − 12
2 2 2 2 2 2 2 2
Solution:
1 − 2x = 5
1 − 2x = 5 or 1 − 2x = − 5
− 2x = 5 − 1 or − 2x = − 5 − 1
− 2x = 4 or − 2x = − 6
x = − 2 or x = 3
Signum Function
The piecewise function f : → defined by
− 1, x <0
f(x) = sgn(x) = 0, x =0 x … (1.51)
x 0
1,
x
, x 0
f(x) = sgn(x) = x … (1.52)
0,
x =0
Note that this function has three pieces one piece corresponding to negative
values of x, one piece corresponding to x = 0 and third piece corresponding to
positive values of x.
Domain and Range of the Signum Function: This function is defined for all
real values of x and hence its domain is = ( − , ). But this function takes
only three values − 1, 0 and 1 so range of the signum function is { − 1, 0, 1}.
… (1.53)
Fig. 1.23: Graph of (a) Signum function (b) Greatest integer function
− 3, − 3 x<− 2
− 2, − 2 x<−1
−1, − 1 x <0
f(x) = [x] = 0, 0 x <1 … (1.54)
1, 1 x<2
2, 2 x <3
3, 3 x<4
Note that this function has infinite pieces where value in each piece is an
integer. In general, if n is an integer and n ≤ x < n + 1 then [x] = n.
Note 3: In Unit 4 of the course MST-012 you will study cumulative distribution
function (cdf) of a discrete random variable. There you will see that graphical
behaviour of cdf of a discrete random variable is similar to this function. Height
38 at each step will be dictated by the probability at the corresponding value of
the random variable. This is one of the reasons we discussed this function Function of a
Single
here so that understanding of cdf becomes easy for you. Variable
Remark 5
• In the course MSTL-011 you will study floor() function in R. The floor()
function in R is nothing but is simply greatest integer function that is
discussed here.
• In the course MSTL-011 you will study another function namely ceiling()
function in R. The ceiling() function in R gives us the smallest integer
greater than or equal to x. It is generally denoted by x . For example,
4.75 = 5, 4.999 = 5, 4.0001 = 5, − 4.75 = − 4, − 0.15 = 0,
− 100.75 = − 100.
Example 7: Evaluate: (i) sgn( − 1.76) (ii) sgn( 3.89) (iii) sgn( 0) (iv) sgn( 5)
(v) −1.76 (vi) 3.89 (vii) 0 (viii) 5 (ix) − 1.76 (x) 3.89 (xi) 0
(xii) 5
Therefore,
(i) sgn( − 1.76) = − 1 (ii) sgn( 3.89) = 1 (iii) sgn( 0) = 0 (iv) sgn( 5) = 1
For example,
= x = f(x)
modulus function is an even function
(iii) f(x) = x 2 + x 3
( )
f( − x) = ( − x)5 + ( − x)3 + ( − x) = − x 5 − x 3 − x = − x 5 + x 3 + x = − f(x)
1
(ii) f(x) = is also an odd function since
x3
1 1 1
f( − x) = = = − 3 = − f(x)
( − x)3
−x 3
x
Fig. 1.24: (a) Graph of an even function (b) Graph of an odd function
40
Now, you can try the following Self-Assessment Question. Function of a
Single
Variable
SAQ 2
1.6 SUMMARY
A brief summary of what we have covered in this unit is given as follows:
• Length of each of the intervals (a, b), [a, b], (a, b], [a, b) is defined as
b − a, a b.
• Let X and Y be two non-empty sets. Then a rule which associates each
element of X to a unique element of Y is called a function from X to Y. X
is called domain of the function. Y is called co-domain of the function
and the set of only those values of Y for which function is defined is
called range of the function. That is, subset
41
Real Analysis { y Y : y = f(x) for some x X} of Y is called range of the function.
1
f(x) = , x . Also, evaluate f(0), f(4), f( −1), f( −5) if possible.
x+5
1
3. If f(x) = then evaluate f(0), f( − log x), f(log x).
1 + e− x
4. If f(x) = (x + 4)3 (x − 3)4 (x + 6)5 (x − 5)6 then which xero has multiplicity
equal to 5.
5. If f(x) = (x + 4)3 (x − 3)4 (x + 6)5 (x − 5)6 then which xero has multiplicity
equal to 4.
1.8 SOLUTIONS/ANSWERS
Self-Assessment Questions (SAQs)
1. If we put x = 2 in the given function then denominator becomes zero and
hence function is not defined at x = 2. Other than 2 it is defined for all
real values of x. That is function takes real values for all real values of x
except x = 2. Hence domain of the function f is {2}.
We note that f(x) cannot be zero for any value of x in its domain.
However, other than 0, f(x) can assume any real value so it’s range is
{0}
1 1 1 1
Now, f(1) = = = −1, f(3) = = = 1 and
1 − 2 −1 3−2 1
1 1 1
f( − 5) = = =−
−5 −2 −7 7
42
2. f(x) = 5 − x − 3 + x + 1 Function of a
Single
Variable
f(2) = 5 − 2 − 3 + 2 + 1 = 5 − −1 + 3
= 5 − ( −( −1)) + 3 − 1 0, so −1 = − ( −1), but 3 0, so 3 = 3
= 5 − 1+ 3 = 7
Similarly,
f( −2) = 5 − − 2 − 3 + − 2 + 1 = 5 − − 5 + −1
= 5 − ( − ( −5)) + ( − ( −1)) = 5 − 5 + 1 = 1
f(6) = 5 − 6 − 3 + 6 + 1 = 5 − 3 + 7 = 5 − 3 + 7 = 9
f( − 5) = 5 − − 5 − 3 + − 5 + 1 = 5 − − 8 + − 4
= 5 − ( − ( − 8)) + ( − ( − 4)) = 5 − 8 + 4 = 1
f(12) = 5 − 12 − 3 + 12 + 1 = 5 − 9 + 13 = 5 − 9 + 13 = 9
Terminal Questions
Now,
1 1 5 1 1 1 1 1
f(0) = = = , f(4) = = = , f( − 1) = =
0+5 5 5 4+5 9 3 −1 + 5 2
1 1 1
3. f(0) = = =
1+ e 0
1+ 1 2
1 1 1
f( − log x) = = = elog f ( x) = f(x)
1+ e − ( − log x)
1+ elog x
1+ x
1 1 1 1 x
f(log x) = − log x
= = = =
1+ e x +1
−1
1
1 + elog x log
1+
1
1+ e x
x
44