Let x<=min(x,x′) and x>=max(x,x′). Ahomogeneous solution vanishing at the left wall is u(x)=sin[k(x+a/2)]; one vanishing at the right wall is v(x)=sin[k(a/2−x)]. Their Wronskian is uv′−u′v=−ksinka. Continuity and the source derivativejump G+′−G−′=−2m/ℏ2 therefore give
This is exactly the printed form because x<=(x+x′−∣x−x′∣)/2 and x>=(x+x′+∣x−x′∣)/2, with a minus sign from reversing the argument of the second sine.
The true poles occur at kn=nπ/a, n=1,2,…, corresponding to
The apparent zero at k=0 is removable: the numerator and ksinka both vanish quadratically. Negative values of kn duplicate the same energies, rather than describing extra levels. The boundary conditions and source jump uniquely determine the inverse whenever E is not an eigenvalue.