Wave function for a Square Well Potential