Hello,
I’m trying to use Chebfun to solve an eigenvalue problem in atmosphere science. The ODE and its two boundary conditions are as follows:

k is the wavenumber as a known parameter, c is the unknown parameter (complex; considered as the eigenvalue). Given a certain k (say k=0.1), there would be many eigenvalues c and corresponding eigenfunctions. Among those, the most unstable mode is needed, which means finding the eigenvalue c with largest imaginary value.
Since c is the desired eigenvalue, I changed the above equation a little:

In this case, there are unknow parameter c appearing on the left-hand side of the equation. I would like to know how to use Chebfun to tackle problem like this?
The following is my “unfinished” codes....
k = 0.1;
z = chebfun('z',[0 1]);
N = chebop( @(z,w) (1-k^2*(c+z)^2)*diff(w,2)-2/(c+z)*diff(w,1)-(2*k^2-c)*w, [0 1] );
N.lbc = 0; % fixed end
N.rbc = 0;
[V,D] = eigs(N,10);
I would be very grateful if anyone can help me with this.
Best regards,
Yang
--
You received this message because you are subscribed to the Google Groups "chebfun-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chebfun-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/chebfun-users/a19e1bf6-b79e-483d-b072-6de640489776n%40googlegroups.com.

To view this discussion on the web, visit https://groups.google.com/d/msgid/chebfun-users/78ad17ea-00f1-44df-a299-726699bc7aaen%40googlegroups.com.