Computing first derivative based on second derivative

Click For Summary
SUMMARY

The discussion centers on the numerical solution of a partial differential equation (PDE) using an explicit Runge-Kutta method. The user proposes substituting the first time derivative of the function E with a new variable u, allowing for the application of finite difference approximations for spatial derivatives. The consensus is that while the method of lines can be employed to discretize the spatial domain, the use of Runge-Kutta methods, which are traditionally designed for ordinary differential equations (ODEs), may not be appropriate for PDEs without careful consideration of the discretization process.

PREREQUISITES
  • Understanding of partial differential equations (PDEs)
  • Familiarity with explicit Runge-Kutta methods
  • Knowledge of finite difference methods for numerical approximation
  • Concept of the method of lines for spatial discretization
NEXT STEPS
  • Research the method of lines for discretizing PDEs
  • Learn about finite difference schemes for spatial derivatives
  • Study the application of Runge-Kutta methods to ordinary differential equations (ODEs)
  • Explore numerical stability and convergence issues in PDE solutions
USEFUL FOR

Mathematicians, physicists, and engineers involved in numerical analysis and computational modeling of partial differential equations.

TheCanadian
Messages
361
Reaction score
13
I am trying to numerically solve a PDE, and just had a question as to the validity of a certain approach. For example, given the PDE:

$$ \frac {\partial ^2 E}{\partial t^2} = - k\frac {\partial E}{\partial t} + c^2 \frac {\partial ^2 E}{\partial z^2} - c\frac {\partial E}{\partial z}$$

If I was to apply an explicit Runge-Kutta method, I could make a substitution:

$$ u = \frac {\partial E}{\partial t} $$

and solve the following instead:

$$ \frac {\partial u}{\partial t} = - ku + c^2 \frac {\partial ^2 E}{\partial z^2} - c\frac {\partial E}{\partial z}
\\ \\
u = \frac {\partial E}{\partial t} $$

where the spatial derivatives are computed by a finite difference approximation (e.g. backward difference). I was just wondering: is solving the following a valid approach?

$$ \frac {\partial E}{\partial t} = \frac{1}{k}(-\frac {\partial ^2 E}{\partial t^2} + c^2 \frac {\partial ^2 E}{\partial z^2} - c\frac {\partial E}{\partial z})$$

Where now both the spatial derivatives and second time derivative are approximated by backward difference schemes, while I apply the Runge-Kutta method to the first time derivative of ##E##. I have not seen this done anywhere, but was just curious as to why (or why not) this is an unacceptable method? Mathematically, it seems odd that my first order derivative depends on higher order derivatives of itself, although I don't immediately see any reason why this is wrong numerically.
 
Physics news on Phys.org
I don't believe this makes sense. To the best of my knowledge, Runge-Kutta methods are specific to ordinary DEs, not partial DEs.
 
Mark44 said:
I don't believe this makes sense. To the best of my knowledge, Runge-Kutta methods are specific to ordinary DEs, not partial DEs.

Yes, that is correct. I would have to apply a method of lines first to discretize the ##z##-space. Once I have done this, I am applying the spatial derivatives to step ##E## forward in the ##z##-direction at a particular ##t##.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K