Finite difference discretization for systems of higher ODEs

In summary: If you're trying to solve this numerically, one way it is often done is to convert to a set of first order ODEs. In this particular case, there would be 12 first order ODEs to integrate. Define,zj=yj (j = 1,3)zj+3=y'j (j = 1,3)zj+6=y''j (j=1,3)zj+9=y'''j (j=1,3)Thenz1' = z4z4' = z7z7'
  • #1
Ojo Saheed
6
0
How can I use finite difference to discretize a system of fourth order differential equations?
for example:
y(4)+5y(3)-2y''+3y'-y=0
 
Physics news on Phys.org
  • #2
This doesn't look like a system of 4th order ODEs. It looks like a single 4th order ODE.

Chet
 
  • #3
Chestermiller said:
This doesn't look like a system of 4th order ODEs. It looks like a single 4th order ODE.

Chet
Thanks for the reply Chet. Actually, I had thought that given an example of one the system of equations might suffice for a demonstration. In any case, a better representation of the system goes thus:
y1(4)=a1y1''+a2y2''+a3y3''+a4y1+a5y2+a6y3+a7
y2(4)=b1y1''+b2y2''+b3y3''+b4y1+b5y2+b6y3+b7
y3(4)=c1y1''+c2y2''+c3y3''+c4y1+c5y2+c6y3+c7
where a, b and c terms are constant coefficients
 
  • #4
Ojo Saheed said:
Thanks for the reply Chet. Actually, I had thought that given an example of one the system of equations might suffice for a demonstration. In any case, a better representation of the system goes thus:
y1(4)=a1y1''+a2y2''+a3y3''+a4y1+a5y2+a6y3+a7
y2(4)=b1y1''+b2y2''+b3y3''+b4y1+b5y2+b6y3+b7
y3(4)=c1y1''+c2y2''+c3y3''+c4y1+c5y2+c6y3+c7
where a, b and c terms are constant coefficients
If you're trying to solve this numerically, one way it is often done is to convert to a set of first order ODEs. In this particular case, there would be 12 first order ODEs to integrate.

Define,
zj=yj (j = 1,3)
zj+3=y'j (j = 1,3)
zj+6=y''j (j=1,3)
zj+9=y'''j (j=1,3)
Then
z1' = z4
z4' = z7
z7' = z10
z10' = a1z7+a2z8+a3z9+a4z1+a5z2+a6z3+a7
etc.

You end up with 12 coupled first order linear ODEs explicit in the derivatives. You can use an automatic integrator to solve them or use your own coding of Runge Kutta or forward Euler, or backward Euler, or whatever.

Chet
 
  • #5


Finite difference discretization is a numerical method used to approximate the solution of a differential equation by dividing the continuous domain into a finite number of discrete points. This method is commonly used for systems of higher order ordinary differential equations (ODEs) such as the example given, a fourth order ODE.

To use finite difference discretization for a system of fourth order ODEs, we can follow these steps:

1. Discretize the domain: First, we need to discretize the continuous domain of the ODE into a finite number of discrete points. This can be done by dividing the domain into equal intervals and choosing a finite number of points within each interval.

2. Approximate derivatives: Next, we need to approximate the derivatives of the ODE at each discrete point. This can be done using finite difference formulas, which involve calculating the difference between function values at adjacent points.

3. Substitute into the ODE: Once we have approximated the derivatives, we can substitute them into the original ODE at each discrete point. This will result in a system of algebraic equations.

4. Solve the system: Finally, we can solve the resulting system of algebraic equations to obtain the numerical solution at each discrete point. This solution can then be used to approximate the solution to the original ODE over the entire domain.

In the example given, the fourth order ODE can be discretized by dividing the domain into equal intervals and choosing a finite number of points within each interval. The derivatives can then be approximated using finite difference formulas, such as the central difference formula. These approximations can be substituted into the ODE at each discrete point, resulting in a system of algebraic equations. Solving this system will give us the numerical solution to the original ODE at each discrete point.
 

What is finite difference discretization for systems of higher ODEs?

Finite difference discretization is a numerical method used to approximate solutions to systems of higher order ordinary differential equations (ODEs). It involves dividing the continuous domain into a discrete grid and approximating the derivatives in the ODEs using difference equations.

What are the advantages of using finite difference discretization for systems of higher ODEs?

Some advantages of finite difference discretization include its simplicity, flexibility in handling complex systems and boundary conditions, and its ability to handle both linear and nonlinear ODEs. It also provides a discrete solution that can be easily computed and analyzed.

What are the limitations of finite difference discretization for systems of higher ODEs?

One limitation is that it can only approximate the solution at the grid points, so the accuracy of the solution depends on the size of the grid. Another limitation is that it may not be suitable for systems with discontinuous or singular solutions.

How does finite difference discretization differ from other numerical methods for solving systems of higher ODEs?

Finite difference discretization is a local method, meaning it approximates the solution at a specific point in the domain using information from nearby points. This is in contrast to global methods, such as finite element or spectral methods, which approximate the solution over the entire domain.

Can finite difference discretization be used for systems with time-dependent or variable coefficients?

Yes, finite difference discretization can handle time-dependent or variable coefficients. However, the discretization scheme may need to be adjusted to account for these variations in order to maintain accuracy in the solution.

Similar threads

  • Differential Equations
Replies
2
Views
954
  • Differential Equations
Replies
3
Views
1K
Replies
1
Views
929
Replies
4
Views
753
  • Differential Equations
Replies
12
Views
4K
  • Differential Equations
Replies
4
Views
631
Replies
1
Views
1K
  • Differential Equations
Replies
6
Views
2K
Replies
1
Views
1K
Replies
8
Views
4K
Back
Top