We now have the total solution. We need to observe the boundary conditions.
First of all, since we are assuming a bound state, we require our wave function to vanish as.
Therefore, we conclude that , since these terms diverge at infinities. Secondly, we are observing odd states, so, therefore, we conclude that and , since the cosine is an even function.
For simplicity, we shall define. After these conclusions, our solution has the following form:
Next, we need to connect the wave functions at the meeting points of different regions, as well as their derivatives, since both need to be continuous (the only case where the derivative is discontinuous is when the potential involves a delta function). It suffices to connect them at either or , since both give the same set of linear equations.
By requiring the continuity of the wave function and the continuity of the derivatives at,we obtain the following set of linear equations:
We can put this homogeneous set of equations into a matrix form, and the condition for it to have a non-trivial solution is given by the requirement for the determinant of the system to vanish:
localid="1658232743867"
This is a transcendental equation, and before we proceed, we need to observe the relation between and , namely:
After squaring the transcendental equation and inserting the relation betweenand, we obtain the following equation:
It is important to notice that the variable here is .
The following graph represents the latter equation (for some fixed values of and ), the red graph represents the tangent function, and the green graph represents the right side.