Reduce second order diff equation into series of first order diff equations

shaka091
Messages
6
Reaction score
0
Hi guys I was hoping if someone could help me with this second order differential equation which i have to reduce into a series of first order equations and then solve using a fourth order runge kutta method.

The equation is

y"-30y'-3y=-2 with the initial conditions y(1)=-12 and y'(x=1)=-2

My attempt at reducing it is

I firstly did y'=z and then did dz/dx=30z+3y-2 with the conditions being x(0)=1, y(0)=-12 and z(0)=-2

could someone please tell me if this is right and if not point me in the right direction to be able to reduce it. I think i can solve it using the runge kutta. Thank you very much!
 
Physics news on Phys.org
That is entirely correct.

You can also solve this equation analytically without too much trouble by using an ansatz y(x) = A exp(rx) to the homogeneous equation, and finding the trivial solution y=2/3 to the full equation, so you can check that your integrator gives you correct results.
 
Thank you very much for your reply!

I followed all the steps in my lecture notes to reduce it and thought it was correct but I thought I must have got it wrong when i then put it into the runge kutta as i was getting back some pretty big values.

Evaluating y(1.2) using a step size of h=0.2

I got y(n+1)= -24.212 and z(n+1)=-377.1852 and x(n+1)= 1.2

I don't think that is right...
 
The function is really steep so it might be difficult to evaluate with approximate methods. The correct values should be higher, for example z(1.2) ~*-1337
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top