Think geometrically. Length of is and length of is . Thus, strech to . Now shift this interval by one to the right this gives .

Now the streching can be desribed by function by . And the shifting can be described by by . Thus, is what you are looking for. Finally is the mapping you want.