# Give an example of a function, f(x), with a domain of (0,5] and a range of [0,∞)

Domain corresponds to values of the function that are represented on the x-axis, while range corresponds to the values of the function that lie on the y-axis.

## Answer: The example of a function with the domain of (0,5] and a range of [0,∞) is f(x) = √5 - x

Go through the explanation to understand better.

**Explanation:**

One can "construct" many functions with that property, for example, f(x) = √5 - x

Domain: 5 - x ≥ 0 ⇒ x ≤ 5

Look at the graph of the function shown below.

Clearly, the range of this function is [0, ∞)