Numerical solution to the second order wave equation

Click For Summary
SUMMARY

The discussion focuses on solving the second order wave equation, specifically the equation u_{tt} = 4u_{xx}, by rewriting it as a system of first order equations and applying the Crank-Nicolson method. The user successfully reformulates the equation but encounters difficulties in decoupling the system due to the presence of the u term. The transformation matrix T is confirmed to be a matrix of eigenvectors, which is essential for diagonalization. The conversation includes references to previous experiences with similar problems, indicating a collaborative effort to resolve the issue.

PREREQUISITES
  • Understanding of partial differential equations (PDEs)
  • Familiarity with the Crank-Nicolson method for numerical solutions
  • Knowledge of eigenvalues and eigenvectors in linear algebra
  • Experience with matrix transformations in mathematical modeling
NEXT STEPS
  • Study the Crank-Nicolson method in detail, focusing on its application to PDEs
  • Learn about diagonalization of matrices and its role in decoupling systems of equations
  • Explore numerical methods for solving first order systems of PDEs
  • Investigate the implications of boundary and initial conditions on wave equation solutions
USEFUL FOR

Mathematicians, physicists, and engineers working with wave equations, as well as students and researchers interested in numerical methods for solving partial differential equations.

tjackson3
Messages
140
Reaction score
0

Homework Statement


Consider the second order wave equation

u_{tt} = 4u_{xx}

There are initial and boundary conditions attached, but I'm less concerned with those for the moment. I think I can figure those out if I can figure out where to get started.

Rewrite this as a system of first order equations of the form \mathbf{u}_t = A\mathbf{u}_x + B\mathbf{u} where \mathbf{u} = (u,u_t,u_x)^T and solve using the Crank-Nicolson method.

Homework Equations



The Crank-Nicolson method (which is implicit) is given by

u_j^{n+1} - (1/4)\lambda(u_{j+1}^{n+1} - u_{j-1}^{1}) = u_j^n + (1/4)\lambda(u_{j+1}^n - j_{j-1}^n

The Attempt at a Solution



The first thing I did was to rewrite the equation as a system, as instructed. This came out to be

\left[\begin{array}{c}u \\ u_t \\ u_x\end{array}\right]_t = \left[\begin{array}{ccc}0 & 0 &0\\ 0&0&4\\ 0&1&0\end{array}\right]\left[\begin{array}{c}u\\ u_t \\ u_x\end{array}\right]_x + \left[\begin{array}{ccc}0 & 1 &0\\ 0&0&0\\ 0&0&0\end{array}\right]\left[\begin{array}{c}u\\ u_t \\ u_x\end{array}\right]

I feel stuck from here, though. Typically when you deal with systems of equations in PDEs, you decouple the system by diagonalizing it. This was the suggested step even in this case, in one of the books I found. You write A = T^{-1}\Lambda T and premultiply by T to get

T\mathbf{u}_t = \Lambda T\mathbf{u}_x + TB\mathbf{u}

In theory, then, you can make a change of variables w = Tu to get a completely decoupled system. In this case, however, the presence of that u term makes it impossible to completely decouple. After computing T, I ended up with this system:

\mathbf{v}_t = \left[\begin{array}{ccc}-2 & 0 &0\\ 0&2&0\\ 0&0&0\end{array}\right]\mathbf{v}_x + \left[\begin{array}{ccc}0 & 0 &0\\ 0&-2&0\\ 0&1&0\end{array}\right]\mathbf{u}

I'm not sure where to go from here, since I can't even eliminate u. Does anyone have any experience with this? Thanks!

edit: forgot to include u at the end
 
Last edited:
Physics news on Phys.org
Is the transformation matrix T a matrix of eigenvectors?
 
Yes, T is a matrix of eigenvectors with \Lambda the corresponding diagonal matrix of eigenvalues
 
I'll post, step by step, how I used this method for a heat conduction problem a number of years ago. First I'll try photographing it from a journal article. If that is illegible, I'll type it out. Equation will be first order in time. I'll post within 2 hours.
 
Awesome, thank you!
 
Here are some pictures of pages from something that belongs to me so there are no copyright issues. I'm not a lawyer. Method is same as was used in journal article I cited above. Hope this helps you out.
 

Attachments

  • DSC00104.JPG
    DSC00104.JPG
    15.2 KB · Views: 568
  • DSC00105.JPG
    DSC00105.JPG
    15.7 KB · Views: 561
  • DSC00106.JPG
    DSC00106.JPG
    21 KB · Views: 584
That was very helpful. Thank you again!
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
0
Views
886
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
1K
  • · Replies 6 ·
Replies
6
Views
1K
Replies
1
Views
2K
Replies
8
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
7
Views
2K