Hi, As part of my project I have been asked to code a program that peforms the runge kutta 4th order algoritm on a equation of form:
The way I have been told to do this is use x_1 and x_2 and use them like this:
and then perform the runge Kutta algoritm on x_1 and x_2 serperately.
I haven't done anything on second order differentials for awhile now, could someone tell me how to set this up? Also is an initial condition needed? I think the solution is something like f(x) =e^(Ax).
Thanks for your fast response.
I'm still not quite sure how I am going to set it up. I have found the piece of paper with my supervisors hints. He does this:
(which is what you said basically)
and sets up x' = Ax, which has solution
This is the analytical solution and I understand it, but I'm kind of confused on the numerical methods way of doing it.
I think its meant to be RK4 on and then on , but what do I do with these two outputs?
I'm fairly sure the original equation is only meant to have 1 output.