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 this right or do I need to change something?

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

2 answers

You missed your other 1/x on the other side and youhave to multiply.
Could you please explain what you mean?

Do you mean instead of adding like I am to multiply the first 1/x by the ((1/x) - 5)?