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

I've came up with the following. Is there a way to change it to limit domain to the (0,5]?

|(1/x) + ((1/x) - 5))|

1 answer

sqrt(5-x)/x