numerical methods 2: hill’s method - university of...

65
Numerical Methods 2: Hill’s Method Bernard Deconinck Department of Applied Mathematics University of Washington [email protected] http://www.amath.washington.edu/ ˜ bernard Stability and Instability of Nonlinear Waves University of Washington, September 6-8, 2006

Upload: others

Post on 13-Mar-2021

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Numerical Methods 2:Hill’s Method

Bernard Deconinck

Department of Applied Mathematics

University of Washington

[email protected]

http://www.amath.washington.edu/˜bernard

Stability and Instability of Nonlinear WavesUniversity of Washington, September 6-8, 2006

Page 2: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Acknowledgements

The work presented here is done in collaboration with

J. Nathan Kutz (UW). I will also present results from

projects involving John Carter (Seattle U.), Firat

Kiyak (UW), Dmitry Pelinovsky (McMaster), and

Roger Thelwell (UW).

The National Science Foundation is acknowledged for

its support (NSF-DMS 0139093; NSF-DMS 0604546).

Page 3: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

1 Introduction and motivation

In this talk, I will discuss how to compute a numerical

approximation to the spectrum of a linear operator

with periodic coefficients. This is useful for several

reasons. In the framework of this workshop, it tells us

something about the spectral stability of periodic

equilibrium solutions of partial differential equations.

Page 4: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Spectral stability

Consider the evolution system

ut = N(u). (∗)

with an equilibrium solution ue:

N(ue) = 0.

Is this solution stable or unstable? Start with linear

stability analysis first: let

u = ue + εψ.

Substitute in (∗) and retain first-order terms in ε:

ψt = L[ue(x)]ψ.

Page 5: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Separation of variables: ψ(x, t) = eλtφ(x):

L[ue(x)]φ = λφ.

• This is a spectral problem.

• If <(λ) ≤ 0 for all bounded φ(x), then ue is

spectrally stable.

Page 6: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

2 Spectra of linear operators with periodic

coefficients

Let’s look at scalar problems in one spatial dimension:

Our starting point is

Lφ = λφ,

with

L =∑Mk=0 fk(x)∂kx, fk(x + L) = fk(x).

Page 7: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

2 Spectra of linear operators with periodic

coefficients

Let’s look at scalar problems in one spatial dimension:

Our starting point is

Lφ = λφ,

with

L =∑Mk=0 fk(x)∂kx, fk(x + L) = fk(x).

We wish to determine

• The spectrum σ(L) = {λ ∈ C : ||φ|| < ∞}.

• For any λ ∈ σ(L): what are the corresponding

eigenfunctions φ(λ, x)?

Page 8: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

What space do the eigenfunctions live in? There are

several natural options:

1. The eigenfunctions are periodic with the same

period as the coefficients

2. The period of the eigenfunctions is an integer

multiple of that of the coefficients

3. The eigenfunctions are bounded

Page 9: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

What space do the eigenfunctions live in? There are

several natural options:

1. The eigenfunctions are periodic with the same

period as the coefficients

2. The period of the eigenfunctions is an integer

multiple of that of the coefficients

3. The eigenfunctions are bounded

(1) (2) (3)

Page 10: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Comments:

• (3) is the most natural one for almost all

applications

Page 11: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Comments:

• (3) is the most natural one for almost all

applications

• (1) or (2) are easy to do numerically, but are not

always justified by the applications.

Page 12: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Comments:

• (3) is the most natural one for almost all

applications

• (1) or (2) are easy to do numerically, but are not

always justified by the applications.

• All three approaches would lead us to conclude

“instability” in the previous example. They do not

always lead to the same conclusion.

Page 13: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

3 Hill’s method for scalar 1-D problems

Let’s return to our original spectral problem:

Lφ = λφ,

with

L =∑Mk=0 fk(x)∂kx, fk(x + L) = fk(x).

We have

fk(x) =∞∑

j=−∞fk,j e

i2πjx/L,

with

fk,j =1

L

∫ L/2

−L/2fk(x) e

−i2πjx/Ldx.

Page 14: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

How about the eigenfunctions φ? For this, we need

Floquet’s theorem.

Page 15: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

How about the eigenfunctions φ? For this, we need

Floquet’s theorem.

Floquet’s theorem: Consider

φx = A(x)φ, A(x + L) = A(x). (∗)

Floquet’s theorem states that the fundamental matrix

Φ for this system has the decomposition

Φ(x) = P (x)eRx,

with P (x + L) = P (x) and R constant.

Page 16: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Conclusion: all bounded solutions of (∗) are of the

form

φ = eiµx

∞∑j=−∞

φj ei2πjx/L

,

with µ ∈ [0, 2π/L).

Page 17: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Conclusion: all bounded solutions of (∗) are of the

form

φ = eiµx

∞∑j=−∞

φj ei2πjx/L

,

with µ ∈ [0, 2π/L).

Thus the eigenfunctions are expanded as

φ = eiµx

∞∑j=−∞

φj ei2πjx/PL

,

with µ ∈ [0, 2π/PL)

Page 18: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Next:

• Substitute in the equation, cancel eiµx

• Determine the n-th Fourier coefficient

Page 19: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Next:

• Substitute in the equation, cancel eiµx

• Determine the n-th Fourier coefficient

This gives

⇒ L(µ)φ = λφ ,

with φ = (· · · , φ−2, φ−1, φ0, φ1, φ2, · · · )T and

L(µ)nm =

0 if P |/n−m

M∑k=0

fk,n−m

P

[i

(µ +

2πm

PL

)]kif P |n−m

Page 20: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

More transparently:

fk(x)∂kx ↔

∗ ∗ ∗

∗ ∗ ∗∗ ∗ ∗

∗ ∗ ∗∗ ∗ ∗

∗ ∗ ∗∗ ∗ ∗

∗ ∗ ∗∗ ∗ ∗

with P − 1 zero “diagonals” between any pair of

successive non-zero “diagonals”.

Page 21: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

More transparently:

fk(x)∂kx ↔

∗ ∗ ∗

∗ ∗ ∗∗ ∗ ∗

∗ ∗ ∗∗ ∗ ∗

∗ ∗ ∗∗ ∗ ∗

∗ ∗ ∗∗ ∗ ∗

with P − 1 zero “diagonals” between any pair of

successive non-zero “diagonals”.

Note:so far, no approximations have been made. At this

point: Cut off at N modes → (2N + 1) × (2N + 1)

matrix.

Page 22: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Algorithm:

Page 23: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Algorithm:

• Find Fourier coefficients of all functions

Page 24: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Algorithm:

• Find Fourier coefficients of all functions

• Fix P

Page 25: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Algorithm:

• Find Fourier coefficients of all functions

• Fix P

• Choose a number of µ values µ1, µ2, . . .

Page 26: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Algorithm:

• Find Fourier coefficients of all functions

• Fix P

• Choose a number of µ values µ1, µ2, . . .

• For all chosen µ values, construct LN(µ)

Page 27: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Algorithm:

• Find Fourier coefficients of all functions

• Fix P

• Choose a number of µ values µ1, µ2, . . .

• For all chosen µ values, construct LN(µ)

• Use favorite eigenvalue/vector solver

Page 28: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Algorithm:

• Find Fourier coefficients of all functions

• Fix P

• Choose a number of µ values µ1, µ2, . . .

• For all chosen µ values, construct LN(µ)

• Use favorite eigenvalue/vector solver

• Reconstruct eigenfunctions corresponding to

eigenvalues

Page 29: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

History

• Fourier (1807), Floquet (1883)

Page 30: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

History

• Fourier (1807), Floquet (1883)

• Hill (1886)

Page 31: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

History

• Fourier (1807), Floquet (1883)

• Hill (1886)

Page 32: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

History

• Fourier (1807), Floquet (1883)

• Hill (1886)

• various isolated papers (Hall (1978),. . . )

Page 33: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

History

• Fourier (1807), Floquet (1883)

• Hill (1886)

• various isolated papers (Hall (1978),. . . )

• Pavlenko and Petviashvili (1982)

Page 34: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

History

• Fourier (1807), Floquet (1883)

• Hill (1886)

• various isolated papers (Hall (1978),. . . )

• Pavlenko and Petviashvili (1982)

• various isolated papers (Fil’chenkov et al. (1987),

Blennerhassett and Bassom (2002), . . . )

Page 35: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

4 Vector, Multi-D, whole-line or nonlocal

problems

Vector problems

For vector problems

Lφ = λφ,

where L is a matrix of linear operators, replace every

matrix entry Lij by Lij

Page 36: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Multidimensional problems

• Expand the coefficient functions in a

multidimensional Fourier series.

• Expand the eigenfunctions using Bloch theory.

For instance, in 2-D:

φ = eiµ1x+iµ2y

∞∑j1,j2=−∞

φj1j2 ei2πj1x/P1L1+i2πj2x/P2L2,

with µ1 ∈ [0, 2π/P1L1), µ2 ∈ [0, 2π/P2L2).

Page 37: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Whole-line problems

Note: this is not supposed to work... Let’s push our

luck!

• Restrict the coefficient functions to large period

boxes.

• Proceed as before.

• Some bands will degenerate to isolated points

(eigenvalues), so one may judge the accuracy of

this limiting process.

Page 38: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Nonlocal problems

If the spectral problem contains convolutions∫∞−∞R(x− y)φ(y)dy,

or antiderivatives ∫ xa φ(y)dy,

these are easily incorporated to the Fourier-series

based approach.

Page 39: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

5 Examples

the return of the algorithm:

• Find Fourier coefficients of all functions

• Choose a number of µ values µ1, µ2, . . .

• For all chosen µ values, construct LN(µ)

• Use favorite eigenvalue/vector solver

• Reconstruct eigenfunctions corresponding to

eigenvalues

Page 40: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

5.1 The Mathieu equation

The Mathieu equation is

−y′′ + 2q cos(2x)y = ay.

We have: L = −∂2x + 2q cos(2x), L = π, M = 2

f2(x) = −1 → f2 = (−1),

f1(x) = 0 → f1 = (),

f0(x) = 2q cos(2x) → f0 = (q, 0, q).

Page 41: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

5.1 The Mathieu equation

The Mathieu equation is

−y′′ + 2q cos(2x)y = ay.

We have: L = −∂2x + 2q cos(2x), L = π, M = 2

f2(x) = −1 → f2 = (−1),

f1(x) = 0 → f1 = (),

f0(x) = 2q cos(2x) → f0 = (q, 0, q).

The Mathieu equation is equivalent to

qφn−P +(µ + 2n

P

)2φn + qφn+P = aφn, n ∈ Z.

Page 42: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Truncation leads to the family of matrices(µ− 2N/P )2 q

· · · q

q (µ− 2/P )2 · · ·q µ2 q

· · · (µ+ 2/P )2 q

q · · ·q (µ+ 2N/P )2

,

of which the spectrum is computed for different µ

values.

Page 43: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

−2 0 2 4 6 8 10−1

0

1

−2 0 2 4 6 8 10−1

0

1

−2 0 2 4 6 8 10−1

0

1

Im

ag{a

}

−2 0 2 4 6 8 10−1

0

1(d)

(c)

(b)

(a)

Real{a}

Numerical

approximations of the

spectrum for the

Mathieu equation, using

different values of the

Floquet resolution.

−2 0 2 4 6 8 10−1

0

1

−2 0 2 4 6 8 10−1

0

1

−2 0 2 4 6 8 10−1

0

1

Im

ag{a

}

−2 0 2 4 6 8 10−1

0

1(d)

(c)

(b)

(a)

Real{a}

The figures correspond

to P = 1, P = 2,

P = 3, and Finite

differences, 4th order

Page 44: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Accuracy: 10−3 Accuracy: 10−6 Accuracy: 10−9

Matrix size CPU time Matrix size CPU time Matrix size CPU time

FFHM (P = 1) 5 0.5 7 0.6 9 0.5

FFHM (P = 2) 7 1 13 1 17 1

FFHM (P = 4) 9 1.5 25 2.6 33 3.3

FDM2 239 1075 8000 5.5E6 N/A N/A

FDM4 52 25 293 1100 1630 1.5E5

Comparing the FDM (2nd and 4th order) and FFHM for computing the lowest eigenvaluea ≈ −1.513956885056448 with q = 2. All CPU times are given relative to those of theFFHM with P = 2, which are 0.0004s, 0.0007s and 0.0010s, respectively.

Page 45: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Accuracy: 10−3 Accuracy: 10−6 Accuracy: 10−9

Matrix size CPU time Matrix size CPU time Matrix size CPU time

FFHM (P = 1) 5 0.5 7 0.6 9 0.5

FFHM (P = 2) 7 1 13 1 17 1

FFHM (P = 4) 9 1.5 25 2.6 33 3.3

FDM2 239 1075 8000 5.5E6 N/A N/A

FDM4 52 25 293 1100 1630 1.5E5

Comparing the FDM (2nd and 4th order) and FFHM for computing the lowest eigenvaluea ≈ −1.513956885056448 with q = 2. All CPU times are given relative to those of theFFHM with P = 2, which are 0.0004s, 0.0007s and 0.0010s, respectively.

δ2 = 0.25 δ2 = 0.025 δ2 = 0.0025D CPU time D CPU time D CPU time

FFHM (P = 1) 12 0.4 124 1 1190 1.3

FFHM (P = 2) 6 1 62 1 590 1

FFHM (P = 4) 3 2 31 1.3 295 1.3

FDM4

Matrix size=1172 1 5.4E5 N/A N/A N/A N/A

FDM4, D > 1 4 8100 32 2100 310 1700

Comparing the FDM (4th order) and FFHM for computing a uniform approximation tothe second spectral band with q = 2. All CPU times are given relative to those of theFFHM, with P = 2, which are 0.001s, 0.03s and 0.35s, respectively.

Page 46: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

qaxis

aaxis

q

a

The spectrum of the Mathieu equation for varying

values of q

Page 47: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

5.2 Hill’s equation with a finite number of gaps

Consider the two Hill equations

−u′′ +(2k2sn2(x, k) − k2

)u= λu, (a)

−v′′ +(6k2sn2(x, k) − 4 − k2

)v= λv. (b)

Here sn(x, k) is Jacobi’s elliptic sine function.

Page 48: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

5.2 Hill’s equation with a finite number of gaps

Consider the two Hill equations

−u′′ +(2k2sn2(x, k) − k2

)u= λu, (a)

−v′′ +(6k2sn2(x, k) − 4 − k2

)v= λv. (b)

Here sn(x, k) is Jacobi’s elliptic sine function.

The spectra of these two equations are shown below.

Page 49: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Then

sn2(x, k) =

1

k2

(1 −

E(k)

K(k)

)−

2π2

k2K2(k)

∞∑n=1

nqn

1 − q2ncos

(nπx

K(k)

),

with

k′ =√

1 − k2,

K(k) =

∫ π/2

0

(1 − k

2sin

2x)−1/2

dx,

E(k) =

∫ π/2

0

(1 − k

2sin

2x)1/2

dx,

q = e−πK(k′)/K(k).

Page 50: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

Acc

urac

y

Matrix size

The accuracy of Hill’s method, compared to that of

the 4th order finite-difference method.

Page 51: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

y

y

x

The eigenfunction

sn(x, k)dn(x, k) of (b)

with k = 0.9 and the

pointwise error of its

approximation.

Page 52: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

y

y

x

The eigenfunction

sn(x, k)dn(x, k) of (b)

with k = 0.9 and the

pointwise error of its

approximation.

0 0.2 0.4 0.6 0.8 1-12

-10

-8

-6

L2

0 0.2 0.4 0.6 0.8 1kval

0

10

20

30

40

50

nval

k

Matrix size

L −

erro

r2

Matrix sizes required for

sufficiently small

L2-error for varying k.

Page 53: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

5.3 An example from Bose-Einstein condensates

Consider

iψt = −12ψxx + |ψ|2ψ + ψV0 sin2 x.

This equation has an exact solution

ψ =(√B cosx + i

√B − V0 sinx

)e

−i(B+1/2)t, (∗)

where B is a free parameter.

Page 54: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

The dynamics of the exact

solution (∗) with V0 = −1,

B = 1/2 (bottom) and

B = 1 (top). The top

picture appears stable.

Page 55: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

The spectra corresponding to the linear stability

problem of the exact solution (∗) for varying B values:

B ∈ [0, 1].

Page 56: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

5.4 A 2-D NLS equation periodic example

Consider

iψt − ψxx + ψyy + 2|ψ|2ψ = 0.

This equation has exact 1-D solutions of the form

ψ = φ(x)eiωt = k sn(x, k)ei(1+k2)t.

Page 57: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

5.4 A 2-D NLS equation periodic example

Consider

iψt − ψxx + ψyy + 2|ψ|2ψ = 0.

This equation has exact 1-D solutions of the form

ψ = φ(x)eiωt = k sn(x, k)ei(1+k2)t.

The linear stability problem is:

(ω − 6φ2 + ρ2 + ∂2x)U= λV

−(ω − 2φ2 + ρ2 + ∂2x)V= λU .

Page 58: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

5.4 A 2-D NLS equation periodic example

Consider

iψt − ψxx + ψyy + 2|ψ|2ψ = 0.

This equation has exact 1-D solutions of the form

ψ = φ(x)eiωt = k sn(x, k)ei(1+k2)t.

The linear stability problem is:

(ω − 6φ2 + ρ2 + ∂2x)U= λV

−(ω − 2φ2 + ρ2 + ∂2x)V= λU .

Thus: for a given value of k, compute spectra for a

range of ρ values

Page 59: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

In the literature, you may find graphs like (k =√

0.8):

ρ

λ

Unstable eigenvalues for the linear stability problem of

the sn solution, using periodic perturbations.

Page 60: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

We can now compute “all” unstable modes:

ρ

λ

Unstable eigenvalues for the linear stability problem of

the sn solution (k =√

0.8).

Page 61: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

5.5 A 2-D NLS equation soliton example

Consider

iψt + ψxx − ψyy + 2|ψ|2ψ = 0.

This equation has the one-dimensional soliton solution

ψ(x, t) = sech(x)eit.

Page 62: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

5.5 A 2-D NLS equation soliton example

Consider

iψt + ψxx − ψyy + 2|ψ|2ψ = 0.

This equation has the one-dimensional soliton solution

ψ(x, t) = sech(x)eit.

The associated spectral problem is

(ω − 6φ2 − ρ2 − ∂2x)U = λV

−(ω − 2φ2 − ρ2 − ∂2x)V = λU,

which has received lots of attention in the literature.

Page 63: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)
Page 64: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.2 0.4 0.6 0.8 1 1.2 1.4

Re( )λ

ρ −3

−2

−1

0

1

2

3

0.2 0.4 0.6 0.8 1 1.2 1.4

Im( )λ

ρ

−1

−0.5

0

0.5

1

−0.6 −0.4 −0.2 0.2 0.4 0.6

λ

Page 65: Numerical Methods 2: Hill’s Method - University of Washingtondepts.washington.edu/bdecon/workshop2012/c2_stability.pdf · 2006. 9. 4. · aComparing the FDM (2nd and 4th order)

6 spectrUW: A black-box spectral calculator

• Hill’s method constitutes a black-box algorithm →

• SpectrUW: a black-box software package for the

computation of spectra of linear operators.

- One-dimensional scalar or vector operators

with parameters

- Two-dimensional scalar or vector operators

with parameters

- Three-dimensional scalar or vector operators

with parameters