I agree with solution you have given, but how do i implement the same in Mathematica.
Using the solution from this expression, I need to solve more Differential Equations.
DSolve[{C''[z] - q^2*C[z] == -DiracDelta[z - z2], C[Infinity] == 0,
C[-Infinity] == 0}, C[z], z]
I tried giving the boundary conditions as the above mentioned, I ended getting an error message as shown below:
DSolve::bvlim: For some branches of the general solution, unable to compute the limit at the given points. Some of the solutions may be lost. >>
If you would be kind enough to give me the solution for this error.