Consider a potential V(x)=aδ(x). For x=0, we simply get the same behavior as for a piecewise constant potential. The interesting behavior is at the delta function. Usually we require ψ′ to be continuous, but since V(0) is infinite, ψ′ can’t be continuous, otherwise we would have infinite energy.
Integrate the Schrödinger equation around the discontinuity to consider its behavior:
We see that the slope on the left and right of the discontinuity is a function of a, the “strength” of the delta function, and ψ(0) the value of the wavefunction at the discontinuity.
We can combine this requirement with the constraint of a piecewise constant potential to analytically find wavefunctions for piecewise constant V with delta discontinuities.