Numerical Solution to 2nd Order Eqn?

  • Context: Undergrad 
  • Thread starter Thread starter qspeechc
  • Start date Start date
  • Tags Tags
    2nd order Numerical
Click For Summary

Discussion Overview

The discussion revolves around numerical methods for solving second order non-homogeneous differential equations, exploring techniques for transforming these equations into first order systems and the implications for numerical solutions.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant inquires about numerical methods for second order non-homogeneous differential equations.
  • Another participant explains that second order equations can be expressed as a system of first order equations by introducing state variables, emphasizing the need for initial or boundary conditions.
  • A participant seeks clarification on how to numerically extract the variable after transforming the second order equation into first order form.
  • One participant clarifies that transforming a second order equation results in two first order equations and provides an example of how to set up the system for numerical solving.
  • There is a suggestion to use simultaneous solvers for the two first order equations derived from the second order equation.
  • A participant confirms understanding of the process of calculating values for both variables at each iteration step.
  • Another participant expresses uncertainty about their understanding of the explanation provided.

Areas of Agreement / Disagreement

Participants generally agree on the method of transforming second order equations into first order systems, but there is some uncertainty regarding the numerical extraction of variables and the iterative process involved.

Contextual Notes

Some assumptions about the initial and boundary conditions are not fully explored, and the discussion does not resolve the complexities involved in applying numerical methods to these equations.

qspeechc
Messages
839
Reaction score
15
Is there a numerical method for finding solutions to 2nd order non-homogeneous differential equations? Thanks.
 
Physics news on Phys.org
There are a plethora of numerical methods for finding solutions to a first order differential equation. Any second order differential equation (homogenous or not) can be expressed as a first order DE by making the first derivatives a state variable.

To solve a DE numerically you need not only the differential equations themselves but also information about the state. Initial value techniques are used in the case that the full state is known at some point in the domain. Boundary value techniques (much harder) are used in the case where only parts of the state are known, but at multiple points in the domain.
 
So, say I had a 2nd order DE, I re-write it as a DE interms of the first derivative, so it becomes first order. Then how do I extract the variable numerically, because we just found its derivative numerically, so actually, we have a set of data points for the derivative?
 
?? What do you mean by "re-write it as a DE in terms of the first derivative"? You should wind up with TWO first order differential equations.

If, for example, you have the second order equation, Y"(x)= f(x, Y, Y'), you could let U(x)= Y' so that your equation becomes U'= f(x, Y, U). Because that equation still involves Y, you need two equations: U'= f(x,Y,U) and Y'= U. Now run two simultaneous first order de solvers.

For example, if you are given Y"= f(x,Y,Y') with initial conditions Y(x0)= Y0, Y'(x0)= Y1, that is equivalent to the system of equations U'= f(x,Y,U) , Y'= U with conditions Y(x0)= Y0, U(x0)= Y1. Run, say, Runge-Kutta fourth order for both Y and U using the values calcuated for both Y and U at each step.
 
So, iffin I is understannin correkly, first find
U'= f(x,Y,U)
numerically, then from Y'= U find Y?
 
Find the next value of U then use that to find the next value of Y. In otherwords, calculate both U and Y at each step of your iteration.
 
Ah, I think I get it. Probably not. Thank you HallsofIvy
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
959
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K