Solving system of ODE with initial value problem (IVP)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
6
down vote

favorite












I have a question about a system of ODE.
If we have:



$fracdxdt=x+2y$



$fracdydt=3x+2y$



with $x(0)=6$ and $y(0)=4$,



how come the solution to the IVP is:



$x(t)=4e^4t+2e^-t$



$y(t)=6e^4t-2e^-t$



I tried doing integral by separating the variable but I didn't get that solution. That example & solution are from my numerical method book, please see the attached image



example & solution










share|cite|improve this question







New contributor




JIM BOY is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • What was your solution?
    – Neo
    yesterday










  • $x(t)+2y(t)=14e^t$ and $3x(t)+2y(t)=26e^t$ I cannot get $e^4t$ or $e^-t$
    – JIM BOY
    yesterday










  • How did you go about getting these numbers?
    – Neo
    yesterday










  • For example for $dx/dt$, I separate the variable and use integral, that gives me $ln|x+2y|=t+c_1$. Then I changed the form to $e$, which gives me $x+2y=e^t+c_1$. Then it becomes $x+2y=e^tec_1$, where $e^c_1=C_1$ (a constant).
    – JIM BOY
    yesterday











  • That is incorrect, as the derivative of the equation does not match what you started with.
    – Neo
    yesterday














up vote
6
down vote

favorite












I have a question about a system of ODE.
If we have:



$fracdxdt=x+2y$



$fracdydt=3x+2y$



with $x(0)=6$ and $y(0)=4$,



how come the solution to the IVP is:



$x(t)=4e^4t+2e^-t$



$y(t)=6e^4t-2e^-t$



I tried doing integral by separating the variable but I didn't get that solution. That example & solution are from my numerical method book, please see the attached image



example & solution










share|cite|improve this question







New contributor




JIM BOY is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • What was your solution?
    – Neo
    yesterday










  • $x(t)+2y(t)=14e^t$ and $3x(t)+2y(t)=26e^t$ I cannot get $e^4t$ or $e^-t$
    – JIM BOY
    yesterday










  • How did you go about getting these numbers?
    – Neo
    yesterday










  • For example for $dx/dt$, I separate the variable and use integral, that gives me $ln|x+2y|=t+c_1$. Then I changed the form to $e$, which gives me $x+2y=e^t+c_1$. Then it becomes $x+2y=e^tec_1$, where $e^c_1=C_1$ (a constant).
    – JIM BOY
    yesterday











  • That is incorrect, as the derivative of the equation does not match what you started with.
    – Neo
    yesterday












up vote
6
down vote

favorite









up vote
6
down vote

favorite











I have a question about a system of ODE.
If we have:



$fracdxdt=x+2y$



$fracdydt=3x+2y$



with $x(0)=6$ and $y(0)=4$,



how come the solution to the IVP is:



$x(t)=4e^4t+2e^-t$



$y(t)=6e^4t-2e^-t$



I tried doing integral by separating the variable but I didn't get that solution. That example & solution are from my numerical method book, please see the attached image



example & solution










share|cite|improve this question







New contributor




JIM BOY is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a question about a system of ODE.
If we have:



$fracdxdt=x+2y$



$fracdydt=3x+2y$



with $x(0)=6$ and $y(0)=4$,



how come the solution to the IVP is:



$x(t)=4e^4t+2e^-t$



$y(t)=6e^4t-2e^-t$



I tried doing integral by separating the variable but I didn't get that solution. That example & solution are from my numerical method book, please see the attached image



example & solution







differential-equations differential






share|cite|improve this question







New contributor




JIM BOY is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question







New contributor




JIM BOY is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question






New contributor




JIM BOY is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









JIM BOY

333




333




New contributor




JIM BOY is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





JIM BOY is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






JIM BOY is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • What was your solution?
    – Neo
    yesterday










  • $x(t)+2y(t)=14e^t$ and $3x(t)+2y(t)=26e^t$ I cannot get $e^4t$ or $e^-t$
    – JIM BOY
    yesterday










  • How did you go about getting these numbers?
    – Neo
    yesterday










  • For example for $dx/dt$, I separate the variable and use integral, that gives me $ln|x+2y|=t+c_1$. Then I changed the form to $e$, which gives me $x+2y=e^t+c_1$. Then it becomes $x+2y=e^tec_1$, where $e^c_1=C_1$ (a constant).
    – JIM BOY
    yesterday











  • That is incorrect, as the derivative of the equation does not match what you started with.
    – Neo
    yesterday
















  • What was your solution?
    – Neo
    yesterday










  • $x(t)+2y(t)=14e^t$ and $3x(t)+2y(t)=26e^t$ I cannot get $e^4t$ or $e^-t$
    – JIM BOY
    yesterday










  • How did you go about getting these numbers?
    – Neo
    yesterday










  • For example for $dx/dt$, I separate the variable and use integral, that gives me $ln|x+2y|=t+c_1$. Then I changed the form to $e$, which gives me $x+2y=e^t+c_1$. Then it becomes $x+2y=e^tec_1$, where $e^c_1=C_1$ (a constant).
    – JIM BOY
    yesterday











  • That is incorrect, as the derivative of the equation does not match what you started with.
    – Neo
    yesterday















What was your solution?
– Neo
yesterday




What was your solution?
– Neo
yesterday












$x(t)+2y(t)=14e^t$ and $3x(t)+2y(t)=26e^t$ I cannot get $e^4t$ or $e^-t$
– JIM BOY
yesterday




$x(t)+2y(t)=14e^t$ and $3x(t)+2y(t)=26e^t$ I cannot get $e^4t$ or $e^-t$
– JIM BOY
yesterday












How did you go about getting these numbers?
– Neo
yesterday




How did you go about getting these numbers?
– Neo
yesterday












For example for $dx/dt$, I separate the variable and use integral, that gives me $ln|x+2y|=t+c_1$. Then I changed the form to $e$, which gives me $x+2y=e^t+c_1$. Then it becomes $x+2y=e^tec_1$, where $e^c_1=C_1$ (a constant).
– JIM BOY
yesterday





For example for $dx/dt$, I separate the variable and use integral, that gives me $ln|x+2y|=t+c_1$. Then I changed the form to $e$, which gives me $x+2y=e^t+c_1$. Then it becomes $x+2y=e^tec_1$, where $e^c_1=C_1$ (a constant).
– JIM BOY
yesterday













That is incorrect, as the derivative of the equation does not match what you started with.
– Neo
yesterday




That is incorrect, as the derivative of the equation does not match what you started with.
– Neo
yesterday










5 Answers
5






active

oldest

votes

















up vote
3
down vote



accepted










take laplace transform on both sides of both differential equations to get



$(s-1)X(s)=2Y(s)+6 $ ;



$(s-2)Y(s)=3X(s)+4\$ respectively



solve for $X(s)$ and $Y(s)$ like algebric equations to give ;



$Y(s)=dfrac4s+14(s+1)(s-4)implies y(t)=-2e^-t+6e^4t$



$X(s)=dfrac6s-4(s+1)(s-4)implies x(t)=2e^-t+4e^4t$






share|cite|improve this answer


















  • 1




    Thank you! looks like i missed some of the steps to solve ODE with IVP
    – JIM BOY
    yesterday

















up vote
1
down vote













Hint: With $$y=fracx'-x2$$ we get
$$y'=3x+frac32(x'-x)$$ and we get $$y'=fracx''-x'2$$ so we obtain
$$fracx''-x'2=3x+frac32(x'-x)$$
Can you finish?
From here you will get
$$x''-4x'-3x=0$$ make the ansatz $$x=e^lambda t$$






share|cite|improve this answer






















  • I'm not too sure how to get the $e$ from there
    – JIM BOY
    yesterday










  • Thanks, I'll go check on the $x=e^lambda t$
    – JIM BOY
    yesterday

















up vote
0
down vote













Hint:



One possibility is to eliminate one of the unknowns.



$$x'=x+2yimplies x''=x'+2y'$$ and $$y'=3x+2y=3x+(x'-x),$$



hence



$$x''-3x'-4x=0.$$






share|cite|improve this answer




















  • I'm not too sure how to get the e from there
    – JIM BOY
    yesterday










  • @JIMBOY: review your theory of univariate linear ODE with constant coefficients.
    – Yves Daoust
    yesterday

















up vote
0
down vote













Let us consider your system of ODE:
$$fracdxdt=x+2y\fracdydt=3x+2y$$
It follows that
$$fracdxdt+fracdydt=4x+4yrightarrow fracd(x+y)dt=4(x+y)rightarrow fracd(x+y)x+y=4dt$$
Integration on both sides yields
$$ln(x+y)=4t+Crightarrow x+y=Ce^4trightarrow y=Ce^4t-x$$
Substitution into $fracdxdt$ gives
$$fracdxdt=x+2(Ce^4t-x)rightarrow fracdxdt+x=2Ce^4t$$
Multiply by $e^t$ on both sides:
$$fracdxdte^t+xe^t=2Ce^5trightarrowfracd(xe^t)dt=2Ce^5t$$
Integration on both sides yields
$$xe^t=frac2C5e^5t+Krightarrow x=frac2C5e^4t+Ke^-t$$
Substitution into $y$ gives
$$y=frac3C5e^4t-Ke^-t$$
Apply conditions:
$$x(0)+y(0)=6+4=10rightarrow Ce^4(0)=10rightarrow C=10\x(0)=6rightarrow frac2(10)5e^4(0)+Ke^-(0)=6rightarrow K=2$$
Thus,
$$x(t)=4e^4t+2e^-t\y(t)=6e^4t-2e^-t$$






share|cite|improve this answer



























    up vote
    0
    down vote













    Observe that you have
    $$ beginpmatrix dotx \ doty endpmatrix = beginpmatrix 1 & 2 \ 3 & 2 endpmatrix cdot beginpmatrixx \ y endpmatrix text. $$
    The eigenvalues of this matrix are $4, -1$, so both solutions are of the form $a mathrme^4x + b mathrme^-1x$. As others have shown, you then match the coefficients to the initial value data.






    share|cite|improve this answer




















      Your Answer




      StackExchange.ifUsing("editor", function ()
      return StackExchange.using("mathjaxEditing", function ()
      StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
      StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
      );
      );
      , "mathjax-editing");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "69"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );






      JIM BOY is a new contributor. Be nice, and check out our Code of Conduct.









       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2945517%2fsolving-system-of-ode-with-initial-value-problem-ivp%23new-answer', 'question_page');

      );

      Post as a guest






























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote



      accepted










      take laplace transform on both sides of both differential equations to get



      $(s-1)X(s)=2Y(s)+6 $ ;



      $(s-2)Y(s)=3X(s)+4\$ respectively



      solve for $X(s)$ and $Y(s)$ like algebric equations to give ;



      $Y(s)=dfrac4s+14(s+1)(s-4)implies y(t)=-2e^-t+6e^4t$



      $X(s)=dfrac6s-4(s+1)(s-4)implies x(t)=2e^-t+4e^4t$






      share|cite|improve this answer


















      • 1




        Thank you! looks like i missed some of the steps to solve ODE with IVP
        – JIM BOY
        yesterday














      up vote
      3
      down vote



      accepted










      take laplace transform on both sides of both differential equations to get



      $(s-1)X(s)=2Y(s)+6 $ ;



      $(s-2)Y(s)=3X(s)+4\$ respectively



      solve for $X(s)$ and $Y(s)$ like algebric equations to give ;



      $Y(s)=dfrac4s+14(s+1)(s-4)implies y(t)=-2e^-t+6e^4t$



      $X(s)=dfrac6s-4(s+1)(s-4)implies x(t)=2e^-t+4e^4t$






      share|cite|improve this answer


















      • 1




        Thank you! looks like i missed some of the steps to solve ODE with IVP
        – JIM BOY
        yesterday












      up vote
      3
      down vote



      accepted







      up vote
      3
      down vote



      accepted






      take laplace transform on both sides of both differential equations to get



      $(s-1)X(s)=2Y(s)+6 $ ;



      $(s-2)Y(s)=3X(s)+4\$ respectively



      solve for $X(s)$ and $Y(s)$ like algebric equations to give ;



      $Y(s)=dfrac4s+14(s+1)(s-4)implies y(t)=-2e^-t+6e^4t$



      $X(s)=dfrac6s-4(s+1)(s-4)implies x(t)=2e^-t+4e^4t$






      share|cite|improve this answer














      take laplace transform on both sides of both differential equations to get



      $(s-1)X(s)=2Y(s)+6 $ ;



      $(s-2)Y(s)=3X(s)+4\$ respectively



      solve for $X(s)$ and $Y(s)$ like algebric equations to give ;



      $Y(s)=dfrac4s+14(s+1)(s-4)implies y(t)=-2e^-t+6e^4t$



      $X(s)=dfrac6s-4(s+1)(s-4)implies x(t)=2e^-t+4e^4t$







      share|cite|improve this answer














      share|cite|improve this answer



      share|cite|improve this answer








      edited yesterday

























      answered yesterday









      veeresh pandey

      909316




      909316







      • 1




        Thank you! looks like i missed some of the steps to solve ODE with IVP
        – JIM BOY
        yesterday












      • 1




        Thank you! looks like i missed some of the steps to solve ODE with IVP
        – JIM BOY
        yesterday







      1




      1




      Thank you! looks like i missed some of the steps to solve ODE with IVP
      – JIM BOY
      yesterday




      Thank you! looks like i missed some of the steps to solve ODE with IVP
      – JIM BOY
      yesterday










      up vote
      1
      down vote













      Hint: With $$y=fracx'-x2$$ we get
      $$y'=3x+frac32(x'-x)$$ and we get $$y'=fracx''-x'2$$ so we obtain
      $$fracx''-x'2=3x+frac32(x'-x)$$
      Can you finish?
      From here you will get
      $$x''-4x'-3x=0$$ make the ansatz $$x=e^lambda t$$






      share|cite|improve this answer






















      • I'm not too sure how to get the $e$ from there
        – JIM BOY
        yesterday










      • Thanks, I'll go check on the $x=e^lambda t$
        – JIM BOY
        yesterday














      up vote
      1
      down vote













      Hint: With $$y=fracx'-x2$$ we get
      $$y'=3x+frac32(x'-x)$$ and we get $$y'=fracx''-x'2$$ so we obtain
      $$fracx''-x'2=3x+frac32(x'-x)$$
      Can you finish?
      From here you will get
      $$x''-4x'-3x=0$$ make the ansatz $$x=e^lambda t$$






      share|cite|improve this answer






















      • I'm not too sure how to get the $e$ from there
        – JIM BOY
        yesterday










      • Thanks, I'll go check on the $x=e^lambda t$
        – JIM BOY
        yesterday












      up vote
      1
      down vote










      up vote
      1
      down vote









      Hint: With $$y=fracx'-x2$$ we get
      $$y'=3x+frac32(x'-x)$$ and we get $$y'=fracx''-x'2$$ so we obtain
      $$fracx''-x'2=3x+frac32(x'-x)$$
      Can you finish?
      From here you will get
      $$x''-4x'-3x=0$$ make the ansatz $$x=e^lambda t$$






      share|cite|improve this answer














      Hint: With $$y=fracx'-x2$$ we get
      $$y'=3x+frac32(x'-x)$$ and we get $$y'=fracx''-x'2$$ so we obtain
      $$fracx''-x'2=3x+frac32(x'-x)$$
      Can you finish?
      From here you will get
      $$x''-4x'-3x=0$$ make the ansatz $$x=e^lambda t$$







      share|cite|improve this answer














      share|cite|improve this answer



      share|cite|improve this answer








      edited yesterday

























      answered yesterday









      Dr. Sonnhard Graubner

      69.8k32862




      69.8k32862











      • I'm not too sure how to get the $e$ from there
        – JIM BOY
        yesterday










      • Thanks, I'll go check on the $x=e^lambda t$
        – JIM BOY
        yesterday
















      • I'm not too sure how to get the $e$ from there
        – JIM BOY
        yesterday










      • Thanks, I'll go check on the $x=e^lambda t$
        – JIM BOY
        yesterday















      I'm not too sure how to get the $e$ from there
      – JIM BOY
      yesterday




      I'm not too sure how to get the $e$ from there
      – JIM BOY
      yesterday












      Thanks, I'll go check on the $x=e^lambda t$
      – JIM BOY
      yesterday




      Thanks, I'll go check on the $x=e^lambda t$
      – JIM BOY
      yesterday










      up vote
      0
      down vote













      Hint:



      One possibility is to eliminate one of the unknowns.



      $$x'=x+2yimplies x''=x'+2y'$$ and $$y'=3x+2y=3x+(x'-x),$$



      hence



      $$x''-3x'-4x=0.$$






      share|cite|improve this answer




















      • I'm not too sure how to get the e from there
        – JIM BOY
        yesterday










      • @JIMBOY: review your theory of univariate linear ODE with constant coefficients.
        – Yves Daoust
        yesterday














      up vote
      0
      down vote













      Hint:



      One possibility is to eliminate one of the unknowns.



      $$x'=x+2yimplies x''=x'+2y'$$ and $$y'=3x+2y=3x+(x'-x),$$



      hence



      $$x''-3x'-4x=0.$$






      share|cite|improve this answer




















      • I'm not too sure how to get the e from there
        – JIM BOY
        yesterday










      • @JIMBOY: review your theory of univariate linear ODE with constant coefficients.
        – Yves Daoust
        yesterday












      up vote
      0
      down vote










      up vote
      0
      down vote









      Hint:



      One possibility is to eliminate one of the unknowns.



      $$x'=x+2yimplies x''=x'+2y'$$ and $$y'=3x+2y=3x+(x'-x),$$



      hence



      $$x''-3x'-4x=0.$$






      share|cite|improve this answer












      Hint:



      One possibility is to eliminate one of the unknowns.



      $$x'=x+2yimplies x''=x'+2y'$$ and $$y'=3x+2y=3x+(x'-x),$$



      hence



      $$x''-3x'-4x=0.$$







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered yesterday









      Yves Daoust

      117k667213




      117k667213











      • I'm not too sure how to get the e from there
        – JIM BOY
        yesterday










      • @JIMBOY: review your theory of univariate linear ODE with constant coefficients.
        – Yves Daoust
        yesterday
















      • I'm not too sure how to get the e from there
        – JIM BOY
        yesterday










      • @JIMBOY: review your theory of univariate linear ODE with constant coefficients.
        – Yves Daoust
        yesterday















      I'm not too sure how to get the e from there
      – JIM BOY
      yesterday




      I'm not too sure how to get the e from there
      – JIM BOY
      yesterday












      @JIMBOY: review your theory of univariate linear ODE with constant coefficients.
      – Yves Daoust
      yesterday




      @JIMBOY: review your theory of univariate linear ODE with constant coefficients.
      – Yves Daoust
      yesterday










      up vote
      0
      down vote













      Let us consider your system of ODE:
      $$fracdxdt=x+2y\fracdydt=3x+2y$$
      It follows that
      $$fracdxdt+fracdydt=4x+4yrightarrow fracd(x+y)dt=4(x+y)rightarrow fracd(x+y)x+y=4dt$$
      Integration on both sides yields
      $$ln(x+y)=4t+Crightarrow x+y=Ce^4trightarrow y=Ce^4t-x$$
      Substitution into $fracdxdt$ gives
      $$fracdxdt=x+2(Ce^4t-x)rightarrow fracdxdt+x=2Ce^4t$$
      Multiply by $e^t$ on both sides:
      $$fracdxdte^t+xe^t=2Ce^5trightarrowfracd(xe^t)dt=2Ce^5t$$
      Integration on both sides yields
      $$xe^t=frac2C5e^5t+Krightarrow x=frac2C5e^4t+Ke^-t$$
      Substitution into $y$ gives
      $$y=frac3C5e^4t-Ke^-t$$
      Apply conditions:
      $$x(0)+y(0)=6+4=10rightarrow Ce^4(0)=10rightarrow C=10\x(0)=6rightarrow frac2(10)5e^4(0)+Ke^-(0)=6rightarrow K=2$$
      Thus,
      $$x(t)=4e^4t+2e^-t\y(t)=6e^4t-2e^-t$$






      share|cite|improve this answer
























        up vote
        0
        down vote













        Let us consider your system of ODE:
        $$fracdxdt=x+2y\fracdydt=3x+2y$$
        It follows that
        $$fracdxdt+fracdydt=4x+4yrightarrow fracd(x+y)dt=4(x+y)rightarrow fracd(x+y)x+y=4dt$$
        Integration on both sides yields
        $$ln(x+y)=4t+Crightarrow x+y=Ce^4trightarrow y=Ce^4t-x$$
        Substitution into $fracdxdt$ gives
        $$fracdxdt=x+2(Ce^4t-x)rightarrow fracdxdt+x=2Ce^4t$$
        Multiply by $e^t$ on both sides:
        $$fracdxdte^t+xe^t=2Ce^5trightarrowfracd(xe^t)dt=2Ce^5t$$
        Integration on both sides yields
        $$xe^t=frac2C5e^5t+Krightarrow x=frac2C5e^4t+Ke^-t$$
        Substitution into $y$ gives
        $$y=frac3C5e^4t-Ke^-t$$
        Apply conditions:
        $$x(0)+y(0)=6+4=10rightarrow Ce^4(0)=10rightarrow C=10\x(0)=6rightarrow frac2(10)5e^4(0)+Ke^-(0)=6rightarrow K=2$$
        Thus,
        $$x(t)=4e^4t+2e^-t\y(t)=6e^4t-2e^-t$$






        share|cite|improve this answer






















          up vote
          0
          down vote










          up vote
          0
          down vote









          Let us consider your system of ODE:
          $$fracdxdt=x+2y\fracdydt=3x+2y$$
          It follows that
          $$fracdxdt+fracdydt=4x+4yrightarrow fracd(x+y)dt=4(x+y)rightarrow fracd(x+y)x+y=4dt$$
          Integration on both sides yields
          $$ln(x+y)=4t+Crightarrow x+y=Ce^4trightarrow y=Ce^4t-x$$
          Substitution into $fracdxdt$ gives
          $$fracdxdt=x+2(Ce^4t-x)rightarrow fracdxdt+x=2Ce^4t$$
          Multiply by $e^t$ on both sides:
          $$fracdxdte^t+xe^t=2Ce^5trightarrowfracd(xe^t)dt=2Ce^5t$$
          Integration on both sides yields
          $$xe^t=frac2C5e^5t+Krightarrow x=frac2C5e^4t+Ke^-t$$
          Substitution into $y$ gives
          $$y=frac3C5e^4t-Ke^-t$$
          Apply conditions:
          $$x(0)+y(0)=6+4=10rightarrow Ce^4(0)=10rightarrow C=10\x(0)=6rightarrow frac2(10)5e^4(0)+Ke^-(0)=6rightarrow K=2$$
          Thus,
          $$x(t)=4e^4t+2e^-t\y(t)=6e^4t-2e^-t$$






          share|cite|improve this answer












          Let us consider your system of ODE:
          $$fracdxdt=x+2y\fracdydt=3x+2y$$
          It follows that
          $$fracdxdt+fracdydt=4x+4yrightarrow fracd(x+y)dt=4(x+y)rightarrow fracd(x+y)x+y=4dt$$
          Integration on both sides yields
          $$ln(x+y)=4t+Crightarrow x+y=Ce^4trightarrow y=Ce^4t-x$$
          Substitution into $fracdxdt$ gives
          $$fracdxdt=x+2(Ce^4t-x)rightarrow fracdxdt+x=2Ce^4t$$
          Multiply by $e^t$ on both sides:
          $$fracdxdte^t+xe^t=2Ce^5trightarrowfracd(xe^t)dt=2Ce^5t$$
          Integration on both sides yields
          $$xe^t=frac2C5e^5t+Krightarrow x=frac2C5e^4t+Ke^-t$$
          Substitution into $y$ gives
          $$y=frac3C5e^4t-Ke^-t$$
          Apply conditions:
          $$x(0)+y(0)=6+4=10rightarrow Ce^4(0)=10rightarrow C=10\x(0)=6rightarrow frac2(10)5e^4(0)+Ke^-(0)=6rightarrow K=2$$
          Thus,
          $$x(t)=4e^4t+2e^-t\y(t)=6e^4t-2e^-t$$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered yesterday









          Stijn Dietz

          33110




          33110




















              up vote
              0
              down vote













              Observe that you have
              $$ beginpmatrix dotx \ doty endpmatrix = beginpmatrix 1 & 2 \ 3 & 2 endpmatrix cdot beginpmatrixx \ y endpmatrix text. $$
              The eigenvalues of this matrix are $4, -1$, so both solutions are of the form $a mathrme^4x + b mathrme^-1x$. As others have shown, you then match the coefficients to the initial value data.






              share|cite|improve this answer
























                up vote
                0
                down vote













                Observe that you have
                $$ beginpmatrix dotx \ doty endpmatrix = beginpmatrix 1 & 2 \ 3 & 2 endpmatrix cdot beginpmatrixx \ y endpmatrix text. $$
                The eigenvalues of this matrix are $4, -1$, so both solutions are of the form $a mathrme^4x + b mathrme^-1x$. As others have shown, you then match the coefficients to the initial value data.






                share|cite|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Observe that you have
                  $$ beginpmatrix dotx \ doty endpmatrix = beginpmatrix 1 & 2 \ 3 & 2 endpmatrix cdot beginpmatrixx \ y endpmatrix text. $$
                  The eigenvalues of this matrix are $4, -1$, so both solutions are of the form $a mathrme^4x + b mathrme^-1x$. As others have shown, you then match the coefficients to the initial value data.






                  share|cite|improve this answer












                  Observe that you have
                  $$ beginpmatrix dotx \ doty endpmatrix = beginpmatrix 1 & 2 \ 3 & 2 endpmatrix cdot beginpmatrixx \ y endpmatrix text. $$
                  The eigenvalues of this matrix are $4, -1$, so both solutions are of the form $a mathrme^4x + b mathrme^-1x$. As others have shown, you then match the coefficients to the initial value data.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered yesterday









                  Eric Towers

                  30.8k22264




                  30.8k22264




















                      JIM BOY is a new contributor. Be nice, and check out our Code of Conduct.









                       

                      draft saved


                      draft discarded


















                      JIM BOY is a new contributor. Be nice, and check out our Code of Conduct.












                      JIM BOY is a new contributor. Be nice, and check out our Code of Conduct.











                      JIM BOY is a new contributor. Be nice, and check out our Code of Conduct.













                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2945517%2fsolving-system-of-ode-with-initial-value-problem-ivp%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Displaying single band from multi-band raster using QGIS

                      How many registers does an x86_64 CPU actually have?