When using a numerical method to solve for the energy levels of a finite potential well I am using the method of checking to see when the wavefunctions match inside and outside the well. When they are equal then there is an energy level. Do I need to equate the two functions or do I need to equate their derivatives in order to evaluate the energy levels?