Draw the graph of each of the following constant functions:
(i) f(x)=2 for all xϵR
(ii) f(x)=0 for all xϵR
(iii) f(x)=−2 for all xϵR
(i) Let f(x)=2 for all xϵR
Then, dom (f)=R and range (f) = {2}
We may prepare the table given below.
x−2−10123f(x)=2222222
On a graph paper, we draw X′OX and YOY′ as the x-axis and the y-axis respectively.
We take the scale: 10 small divisions = 1 unit
On this graph paper, we plot the points A(-2, 2), B(-1, 2), C(0, 2), D(1, 2), E(2, 2) and F(3, 2). Join A, B, C, D, E and F successively to obtain the required graph line ABCDEF, whose equation is y = 2.