Solving a trascedental equation

  • Thread starter Thread starter dingo_d
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 2K views
dingo_d
Messages
199
Reaction score
0

Homework Statement



I have solved the problem of an infinite square well with a delta potential in the middle, what I got in the end is:

[tex]\cot(\frac{\sqrt{2 m E}}{\hbar}a)=-\frac{\Omega\hbar a \sqrt{2m E}}{2mE a}[/tex]
, where a is the width of the well, m the mass of the particle in it, E the energy eigenvalue, and [tex]\Omega[/tex] some parameter that was with the delta potential.

Now I need to solve that equation and I have no idea how to do that :\

I'm not much of a numerical solver :\

Anywho the solution to Schrödinger eq. is:

[tex]u_n^+(x) =<br /> \begin{cases}<br /> A\sin(k_n^+(x+a)) & \text{if } -a\leq x < 0 \\<br /> -A\sin(k_n^+(x-a)) & \text{if } 0< x \leq a<br /> \end{cases}[/tex]

And the [tex]k_n^+=\frac{n\pi}{2a}[/tex], where [tex]n=\pm 2,\pm 4,\ldots[/tex]
 
Physics news on Phys.org
Hmmm so I've set
[tex]f(ka)=\cot(ka)+\frac{\Omega}{ka}[/tex] and then with Mathematica I've made:
[tex]x_{n+1}=x_n+\frac{f(ka)}{f'(ka)}[/tex] and no matter what parameter I choose the solution doesn't converge :\

Now I dk if I'm doing sth wrong or not...
 
dingo_d said:
Hmmm so I've set
[tex]f(ka)=\cot(ka)+\frac{\Omega}{ka}[/tex] and then with Mathematica I've made:
[tex]x_{n+1}=x_n+\frac{f(ka)}{f'(ka)}[/tex] and no matter what parameter I choose the solution doesn't converge :\

Now I dk if I'm doing sth wrong or not...

There's a sign wrong in your iteration, it should be

[tex]x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}[/tex]

If you are using Mathematica, you can plot to get good starting points for Newton's method. You could also probably get a list of roots directly with Mathematica.
 
Oh, I've found it, I just hope it's right thing :D Thanks ^^