Numerical Solution for BVODE without First Derivatives: Help Required

  • Context: Graduate 
  • Thread starter Thread starter ktsharp
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around solving a boundary value ordinary differential equation (BVODE) numerically, specifically focusing on a system involving two equations with boundary conditions provided but lacking first derivative values. The conversation explores numerical methods applicable to this scenario, including finite difference methods and potential challenges posed by non-linear terms.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents a BVODE system and seeks numerical solutions without first derivative values.
  • Another participant suggests using finite element methods (FEM) or finite difference methods, noting that traditional Runge-Kutta methods are typically for initial value problems.
  • A participant expresses familiarity with finite difference methods and attempts to derive equations based on assumptions made from the provided equations.
  • There is a discussion about the absence of a boundary condition for a specific variable, leading to a breakdown of how to set up the system of equations.
  • Participants raise concerns about handling non-linear terms in the equations, suggesting that methods like Newton's method may be necessary for solving the resulting non-linear equations.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best numerical method to apply, and there are differing views on how to handle the boundary conditions and non-linear terms in the equations. The discussion remains unresolved regarding the specific approach to take.

Contextual Notes

Participants express uncertainty about the application of finite element methods and the implications of non-linear terms, indicating that additional assumptions or clarifications may be needed to proceed effectively.

ktsharp
Messages
8
Reaction score
0
I'm intending to solve the following BVODE:

[tex] <br /> \frac{dy}{dx} & = & a + by,<br /> [/tex]

[tex] <br /> \frac{d^{2}z}{dx^{2}} & = & {\alpha}y\frac{dz}{dx} - \beta +cz\frac{dy}{dx}.<br /> [/tex]



I have the boundary values for both y and z at x=0, L, however I do NOT have any values for either first derivatives. How can I solve this numerically?
 
Physics news on Phys.org
What numerical methods do you know? It sounds like you are trying to use something like a "Runge-Kutta" which really applies to initial value problems. Typically for a boundary value problem you would use "finite elements". That is, divide the interval from 0 to L into intervals of length h (equal length intervals is simplest but not necessary), then approximate the first derivative by
[tex]\frac{z(x_{i+1})- z(x_f)}{h}[/tex]
and the second derivative by
[tex]\frac{z(x_{i+2})- 2f(x_{i+1})+ f(x_i)}{h^2}[/tex]

That will give a system of equations to solve for [itex]z(x_i)[/itex] and [itex]y(x_i)[/itex].
 
Thank you for your reply!

I am not familiar with the FEM, although I am familiar with finite difference methods, which is what this seems to be as you have written it above, but for an ODE. If I make the above assumption, I will get


[tex] <br /> y_{i+1} = y_{i}(hb+1) + ha.<br /> [/tex]

[tex] <br /> f(y_{i})z_{i+2} = g(y_{i})z_{i+1} -\beta h^{2} - z_{i}.<br /> [/tex]

It seems the problem is then what is the BV for [tex]z_{i+1}[/tex]?
 
There is no "boundary condition" for [itex]z_{i+1}[/itex] because you no longer have a differential equation for [itex]z_{i+1}[/itex].

As a very simple example, suppose you were to use 3 intervals so you need to find [itex]y_0, y_1, y_2, y_3, z_0, z_1, z_2, z_3[/itex].
Then the left boundary condition gives you values for [itex]y_0[/itex] and [itex]z_0[/itex]. Those are your first two equations. Then on the three intervals, your differential equation gives 6 equations involving two values of y and z. Finally, your right boundary condition gives two values for [itex]y_3[/itex] and [itex]z_3[/itex]. That's a total of 8 equations to solve for the 8 values of y and z.
 
Thanks again for your help. So what happens with the nonlinear terms in the second equation?
 
If your differential equations are non-linear, as these are, then the simultaneous equations you get will be non-linear. You might have to use something like Newton's method to solve those.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 1 ·
Replies
1
Views
965
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K