Stability of Crank-Nicholson method

In summary, the conversation discusses the stability of the Crank-Nicholson method when applied to an equation involving A and B. It is stated that in order for the method to be stable, p(A^-1 B) must be less than 1, where p is the spectral radius. The conversation then goes on to discuss the use of eigenvalue decomposition to determine the stability of the method, with the conclusion that the method is unconditionally stable as long as the eigenvalues are smaller than 1.
  • #1
Nusc
760
2

Homework Statement


If p(A^-1 B) < 1 then the Crank-Nicholson method is stable for all eigenvalues.Where p is the spectral radius.

Homework Equations


Stability requires that A*U_j=B*U_{j-1} which gives
U_j = A^-1 B U_{j-1}

The Attempt at a Solution



Where do I start?
 
Physics news on Phys.org
  • #2
Nusc said:
Where do I start?
By defining A,B, and the problem more clearly. Are you saying you need to prove that if p(A^-1 B)<1, then the Crank-Nicholson method applied to some equation involving A and B is stable?
 
  • #3
Yes.
So for A*U_j = B*U_{j-1} we have:
The finite difference matrix for A:

1+lamda -lamda/2 ... 0
-lamda/2 1+lamda ... 0
0 ...
... -lamda/2
0 ... -lamda/2 1+lamda

Some tridiagonal matrix.
Similarly for B
B:

1-lamda +lamda/2 ... 0
+lamda/2 1-lamda ... 0
0 ...
... +lamda/2
0 ... +lamda/2 1-lamda

This is in general. I'm not sure if this is correct because I assume we need to do it for another problem.
 
  • #4
If your equation is
[tex]Au_j = Bu_{j-1}[/tex],
then
[tex]u_j = A^{-1}Bu_{j-1}[/tex]
and
[tex]u_{j+1} = A^{-1}Bu_{j}= \left(A^{-1}B\right)A^{-1}Bu_{j-1}[/tex],
and
[tex]u_{j+2} = A^{-1}Bu_{j-1}u_{j+1} = \left(A^{-1}B\right)^3u_{j-1}[/tex].
You can continue this on forever to get the term after n steps as
[tex]u_{j+n} = \left(A^{-1}B\right)^{n+1}u_{j-1}[/tex].

Now factor A^{-1}B by eigenvalue decomposition to obtain
[tex] A^{-1}B = TDT^{-1}[/tex]
where D is a diagonal matrix containing the eigenvalues and T contains the corresponding eigenvectors.
Note that
[tex]\left(A^{-1}B\right)^2 = \left(TDT^{-1}\right)^2 = TDT^{-1}TDT^{-1}= TD^2T^{-1}[/tex]
And similarly,
[tex] \left( A^{-1}B \right)^n = TD^nT^{-1}[/tex]

Now if you plug this into the previous equation, you find that
[tex]u_{j+n} = \left(A^{-1}B\right)^{n+1}u_{j-1} = TD^{n+1}T^{-1}u_{j-1}[/tex]

The system is stable if the solution u_{j+n} is bounded for all n. Since D is a diagonal matrix, D^{n+1} is just the diagonal elements raised to the n+1th power. So what happens if a number bigger than one is raised to a large power? And what about when the number is smaller than one? This is why you have the condition on the size of the eigenvalues.
 
  • #5
If a number bigger than one is raised to a large power, then the system will become unstable.
If a number smaller than one is raised to a large power, then the system will become stable.

Hence the method is unconditionally stable.

Is that correct?
 

What is the Crank-Nicholson method?

The Crank-Nicholson method is a numerical method used to solve partial differential equations. It is a combination of the forward Euler method and the backward Euler method, resulting in a more accurate and stable solution.

How does the Crank-Nicholson method ensure stability?

The Crank-Nicholson method has a stability criteria that requires the time step to be less than or equal to the spatial step squared. This ensures that the solution does not grow exponentially and remains bounded.

What makes the Crank-Nicholson method more stable than other numerical methods?

The Crank-Nicholson method is an implicit method, meaning that the future time step is dependent on the current and previous time steps. This eliminates the possibility of unstable solutions that may occur in explicit methods where the future time step is only dependent on the current time step.

What are the limitations of the Crank-Nicholson method?

The Crank-Nicholson method is only suitable for linear partial differential equations. It also requires a large amount of computational resources, making it less efficient for large-scale problems.

Can the Crank-Nicholson method be applied to non-uniform spatial grids?

Yes, the Crank-Nicholson method can be applied to non-uniform spatial grids. However, it may require additional interpolation or transformation steps to ensure accuracy.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
257
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
  • Differential Equations
Replies
8
Views
3K
  • Mechanical Engineering
Replies
1
Views
686
  • Calculus and Beyond Homework Help
Replies
10
Views
5K
  • Calculus and Beyond Homework Help
Replies
3
Views
886
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
2K
Back
Top