1
$\begingroup$

I have a problem with DSolve and the following code:

DSolve[{D[Ψ[x], x, x] == κ^2 Ψ[x],
  Ψ[0] == Ψs, Ψ[Infinity] == 0}, Ψ, x]

The error getting displayed in Mathematica is:

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.
$\endgroup$

1 Answer 1

4
$\begingroup$
ode=w''[x]==k^2*w[x]
Ic={w[0]==ws,w[L]==0}
sol=DSolveValue[{ode,Ic},w[x],x]
Assuming[k>0,Simplify[Limit[sol,L->Infinity]]]

Gives

Exp[-kx] ws
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.