Runge Kutta Method for 2nd ODE [closed]












0














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.










share|cite|improve this 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.




















    0














    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.










    share|cite|improve this 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.


















      0












      0








      0







      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.










      share|cite|improve this question















      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






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      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.
























          2 Answers
          2






          active

          oldest

          votes


















          1














          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.






          share|cite|improve this answer































            0














            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 ?






            share|cite|improve this answer




























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              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.






              share|cite|improve this answer




























                1














                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.






                share|cite|improve this answer


























                  1












                  1








                  1






                  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.






                  share|cite|improve this answer














                  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.







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Nov 29 at 16:50

























                  answered Nov 29 at 13:25









                  LutzL

                  55.7k42054




                  55.7k42054























                      0














                      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 ?






                      share|cite|improve this answer


























                        0














                        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 ?






                        share|cite|improve this answer
























                          0












                          0








                          0






                          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 ?






                          share|cite|improve this answer












                          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 ?







                          share|cite|improve this answer












                          share|cite|improve this answer



                          share|cite|improve this answer










                          answered Nov 29 at 13:30









                          Yves Daoust

                          124k671221




                          124k671221















                              Popular posts from this blog

                              Tonle Sap (See)

                              I get strange results when I access the Sqlitedatabase with Unity C# via XAMPP

                              Guatemaltekische Davis-Cup-Mannschaft