Runge Kutta Method for 2nd ODE [closed]
Given the equation
$$
y''=ccdot(1+(y')^2)^{1/2} ~~where~~ c=0.053.
$$
Putting this in system form, I get
begin{align}
y'&=z
\
y''&=c⋅(1+z^2)^{1/2}
end{align}
I am to use 4th Order Runge-Kutta method to solve this for $y(30)$,
given initial conditions $y(0)=25$ and $y'(0)=0$.
However, I am confused as to how I incorporate $y$ into my method if $y$ is not in the given equation.
Any help would be really appreciated.
systems-of-equations runge-kutta-methods
closed as unclear what you're asking by José Carlos Santos, Ali Caglayan, Rebellos, Riccardo.Alestra, supinf Nov 29 at 14:46
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
Given the equation
$$
y''=ccdot(1+(y')^2)^{1/2} ~~where~~ c=0.053.
$$
Putting this in system form, I get
begin{align}
y'&=z
\
y''&=c⋅(1+z^2)^{1/2}
end{align}
I am to use 4th Order Runge-Kutta method to solve this for $y(30)$,
given initial conditions $y(0)=25$ and $y'(0)=0$.
However, I am confused as to how I incorporate $y$ into my method if $y$ is not in the given equation.
Any help would be really appreciated.
systems-of-equations runge-kutta-methods
closed as unclear what you're asking by José Carlos Santos, Ali Caglayan, Rebellos, Riccardo.Alestra, supinf Nov 29 at 14:46
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
Given the equation
$$
y''=ccdot(1+(y')^2)^{1/2} ~~where~~ c=0.053.
$$
Putting this in system form, I get
begin{align}
y'&=z
\
y''&=c⋅(1+z^2)^{1/2}
end{align}
I am to use 4th Order Runge-Kutta method to solve this for $y(30)$,
given initial conditions $y(0)=25$ and $y'(0)=0$.
However, I am confused as to how I incorporate $y$ into my method if $y$ is not in the given equation.
Any help would be really appreciated.
systems-of-equations runge-kutta-methods
Given the equation
$$
y''=ccdot(1+(y')^2)^{1/2} ~~where~~ c=0.053.
$$
Putting this in system form, I get
begin{align}
y'&=z
\
y''&=c⋅(1+z^2)^{1/2}
end{align}
I am to use 4th Order Runge-Kutta method to solve this for $y(30)$,
given initial conditions $y(0)=25$ and $y'(0)=0$.
However, I am confused as to how I incorporate $y$ into my method if $y$ is not in the given equation.
Any help would be really appreciated.
systems-of-equations runge-kutta-methods
systems-of-equations runge-kutta-methods
edited Nov 29 at 13:22
LutzL
55.7k42054
55.7k42054
asked Nov 29 at 7:19
Diana s.
1
1
closed as unclear what you're asking by José Carlos Santos, Ali Caglayan, Rebellos, Riccardo.Alestra, supinf Nov 29 at 14:46
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by José Carlos Santos, Ali Caglayan, Rebellos, Riccardo.Alestra, supinf Nov 29 at 14:46
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
You are right that you could apply the integration only to $z=y'$, $z'=csqrt{1+z^2}$, $z(0)=y'(0)$ and then obtain $y$ via cumulative summation of the function table of $z$.
However, in treating it as a system there is no difference if $y$ occurs explicitly or not, the formulation of the vector version of RK4 takes no notice of the variable dependencies of the component functions.
If $y'=f(y,z)$ and $z'=g(y,z)$, here with $f(y,z)=z$ and $g(y,z)=h(z)$, then the RK4 stages start as
k1y = dt*f(y,z)
k1z = dt*g(y,z)
k2y = dt*f(y+0.5*k1y, z+0.5*k1z)
k2z = dt*g(y+0.5*k1y, z+0.5*k1z)
etc.
add a comment |
By integration, $$frac{y''}{sqrt{1+y'^2}}=c$$
gives
$$text{arsinh }y'=cx+d,$$
$$y'=sinh(cx+d)$$ and
$$y=frac1ccosh(cx+d)+e$$
where
$$sinh d=0,$$
$$frac1ccosh(d)+e=25.$$
Do you really need numerical integration ?
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are right that you could apply the integration only to $z=y'$, $z'=csqrt{1+z^2}$, $z(0)=y'(0)$ and then obtain $y$ via cumulative summation of the function table of $z$.
However, in treating it as a system there is no difference if $y$ occurs explicitly or not, the formulation of the vector version of RK4 takes no notice of the variable dependencies of the component functions.
If $y'=f(y,z)$ and $z'=g(y,z)$, here with $f(y,z)=z$ and $g(y,z)=h(z)$, then the RK4 stages start as
k1y = dt*f(y,z)
k1z = dt*g(y,z)
k2y = dt*f(y+0.5*k1y, z+0.5*k1z)
k2z = dt*g(y+0.5*k1y, z+0.5*k1z)
etc.
add a comment |
You are right that you could apply the integration only to $z=y'$, $z'=csqrt{1+z^2}$, $z(0)=y'(0)$ and then obtain $y$ via cumulative summation of the function table of $z$.
However, in treating it as a system there is no difference if $y$ occurs explicitly or not, the formulation of the vector version of RK4 takes no notice of the variable dependencies of the component functions.
If $y'=f(y,z)$ and $z'=g(y,z)$, here with $f(y,z)=z$ and $g(y,z)=h(z)$, then the RK4 stages start as
k1y = dt*f(y,z)
k1z = dt*g(y,z)
k2y = dt*f(y+0.5*k1y, z+0.5*k1z)
k2z = dt*g(y+0.5*k1y, z+0.5*k1z)
etc.
add a comment |
You are right that you could apply the integration only to $z=y'$, $z'=csqrt{1+z^2}$, $z(0)=y'(0)$ and then obtain $y$ via cumulative summation of the function table of $z$.
However, in treating it as a system there is no difference if $y$ occurs explicitly or not, the formulation of the vector version of RK4 takes no notice of the variable dependencies of the component functions.
If $y'=f(y,z)$ and $z'=g(y,z)$, here with $f(y,z)=z$ and $g(y,z)=h(z)$, then the RK4 stages start as
k1y = dt*f(y,z)
k1z = dt*g(y,z)
k2y = dt*f(y+0.5*k1y, z+0.5*k1z)
k2z = dt*g(y+0.5*k1y, z+0.5*k1z)
etc.
You are right that you could apply the integration only to $z=y'$, $z'=csqrt{1+z^2}$, $z(0)=y'(0)$ and then obtain $y$ via cumulative summation of the function table of $z$.
However, in treating it as a system there is no difference if $y$ occurs explicitly or not, the formulation of the vector version of RK4 takes no notice of the variable dependencies of the component functions.
If $y'=f(y,z)$ and $z'=g(y,z)$, here with $f(y,z)=z$ and $g(y,z)=h(z)$, then the RK4 stages start as
k1y = dt*f(y,z)
k1z = dt*g(y,z)
k2y = dt*f(y+0.5*k1y, z+0.5*k1z)
k2z = dt*g(y+0.5*k1y, z+0.5*k1z)
etc.
edited Nov 29 at 16:50
answered Nov 29 at 13:25
LutzL
55.7k42054
55.7k42054
add a comment |
add a comment |
By integration, $$frac{y''}{sqrt{1+y'^2}}=c$$
gives
$$text{arsinh }y'=cx+d,$$
$$y'=sinh(cx+d)$$ and
$$y=frac1ccosh(cx+d)+e$$
where
$$sinh d=0,$$
$$frac1ccosh(d)+e=25.$$
Do you really need numerical integration ?
add a comment |
By integration, $$frac{y''}{sqrt{1+y'^2}}=c$$
gives
$$text{arsinh }y'=cx+d,$$
$$y'=sinh(cx+d)$$ and
$$y=frac1ccosh(cx+d)+e$$
where
$$sinh d=0,$$
$$frac1ccosh(d)+e=25.$$
Do you really need numerical integration ?
add a comment |
By integration, $$frac{y''}{sqrt{1+y'^2}}=c$$
gives
$$text{arsinh }y'=cx+d,$$
$$y'=sinh(cx+d)$$ and
$$y=frac1ccosh(cx+d)+e$$
where
$$sinh d=0,$$
$$frac1ccosh(d)+e=25.$$
Do you really need numerical integration ?
By integration, $$frac{y''}{sqrt{1+y'^2}}=c$$
gives
$$text{arsinh }y'=cx+d,$$
$$y'=sinh(cx+d)$$ and
$$y=frac1ccosh(cx+d)+e$$
where
$$sinh d=0,$$
$$frac1ccosh(d)+e=25.$$
Do you really need numerical integration ?
answered Nov 29 at 13:30
Yves Daoust
124k671221
124k671221
add a comment |
add a comment |