Numerical method for ODEs without frequency error
up vote
0
down vote
favorite
To solve an ODE numerically,
one usually use finite difference methods.
For example,
simple harmonic oscillator, i.e.
$$y''=-omega^2y$$
can be discretized by
$$frac{y_{n+1}-2y_n+y_{n-1}}{Delta x^2}=-omega^2y_n$$
However, if we use this formula to solve the equation,
the frequency of the numerical solution is different from
true frequency $omega$.
Then my question is,
is there any discretization method without frequency error?
For example, is Runge-Kutta method similarly suffer from frequency error?
EDIT
Simple harmonic oscillator is just an example.
My equation is actually PDE (Wave equation).
numerical-methods finite-differences finite-difference-methods
add a comment |
up vote
0
down vote
favorite
To solve an ODE numerically,
one usually use finite difference methods.
For example,
simple harmonic oscillator, i.e.
$$y''=-omega^2y$$
can be discretized by
$$frac{y_{n+1}-2y_n+y_{n-1}}{Delta x^2}=-omega^2y_n$$
However, if we use this formula to solve the equation,
the frequency of the numerical solution is different from
true frequency $omega$.
Then my question is,
is there any discretization method without frequency error?
For example, is Runge-Kutta method similarly suffer from frequency error?
EDIT
Simple harmonic oscillator is just an example.
My equation is actually PDE (Wave equation).
numerical-methods finite-differences finite-difference-methods
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
To solve an ODE numerically,
one usually use finite difference methods.
For example,
simple harmonic oscillator, i.e.
$$y''=-omega^2y$$
can be discretized by
$$frac{y_{n+1}-2y_n+y_{n-1}}{Delta x^2}=-omega^2y_n$$
However, if we use this formula to solve the equation,
the frequency of the numerical solution is different from
true frequency $omega$.
Then my question is,
is there any discretization method without frequency error?
For example, is Runge-Kutta method similarly suffer from frequency error?
EDIT
Simple harmonic oscillator is just an example.
My equation is actually PDE (Wave equation).
numerical-methods finite-differences finite-difference-methods
To solve an ODE numerically,
one usually use finite difference methods.
For example,
simple harmonic oscillator, i.e.
$$y''=-omega^2y$$
can be discretized by
$$frac{y_{n+1}-2y_n+y_{n-1}}{Delta x^2}=-omega^2y_n$$
However, if we use this formula to solve the equation,
the frequency of the numerical solution is different from
true frequency $omega$.
Then my question is,
is there any discretization method without frequency error?
For example, is Runge-Kutta method similarly suffer from frequency error?
EDIT
Simple harmonic oscillator is just an example.
My equation is actually PDE (Wave equation).
numerical-methods finite-differences finite-difference-methods
numerical-methods finite-differences finite-difference-methods
edited Nov 13 at 6:23
asked Nov 13 at 6:17
Shu S
184
184
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2996381%2fnumerical-method-for-odes-without-frequency-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown