Q. 68

Question

Consider the equation 

y=1     if x is rational0     if x is irrational

Is this a function? What is its domain? What is its range? What is its y-intercept, if any? What are its x-intercepts, if any? Is it even, odd, or neither? How would you describe its graph? 

Step-by-Step Solution

Verified
Answer

The equation y=1     if x is rational0     if x is irrationalis a function.

The domain is the set of all real numbers and its range is given by the set 0,1.

The y-intercept of the function is (0,1) and the function has infinite x intercepts.

The function is even.

The graph of the function is discrete.

1Step 1. Given information

For the equation y=1     if x is rational0     if x is irrational, we can see that any value of x corresponds to only one value of y.

So the given equation is a function.

2Step 2. Domain and Range

The function can take any x rational or irrational.

So the domain of the function is the set of all real numbers.

The function has only two outputs 0 and 1. So its range is given by the set 0,1

3Step 3. Identify the intercepts

As 0 is a rational number so when 0 is the input of the function the output is 1. So the point (0,1) lies on the function. So the y intercept of the function is (0,1).

For every input which is irrational number the output that is the y coordinate is 0.

So the function has infinte x intercepts.

4Step 4. Describe the graph

Putting negative values of x does not change the output of the function because if x is rational then -x is also rational and if x is irrational then -x is also irrational.

So f(x)=f(-x) for all x and hence the function is even.

The graph of the function is discrete giving the output 0 when the input is irrational and giving the output 1 when the input is rational. There will be only lots of points and the graph would be discontinuous in nature.