The differential with the second derivative of the wavefunction equal to negative a constant squared times the wavefunction is solved as a sinusoidal equation. The differential with the second derivative of the wavefunction equal to positive a constant squared times the wavefunction is solved as an exponential, which must be decreasing for the wavefunction to be finite at large values of x.