Assume that is an orthonormal basis with respect to
Find an orthonormal basis with respect to
The idea is to scrunch up the functions P_n so that they fit into the unit interval, then multiply them by a suitable constant so that they still have norm 1.
In fact, let . Then you just have to check that is 1 if m=n and 0 otherwise.