To prove the original statement, I invented (or discovered?) a function $f:\mathbb [a,b]\to[0,1]$ such that $f(x)=\frac1{b-a}x-\frac{a}{b-a}$ and proved that the function is bijective. Now I'm being asked to prove a similar relation, $(a,b)\sim(0,1)$. Would the same function, with similar ideas work in this case?
(I'm not sure if my tag is very adequate for this.)