Solving the linear first order differential equaition?First-order linear differential equationSolving a...

Why is it that Bernie Sanders is always called a "socialist"?

Tikz: Perpendicular FROM a line

How to know if I am a 'Real Developer'

Using Ansible, how can I take actions on each file in a specific location?

Maybe pigeonhole problem?

How would an EMP effect spacesuits (and small-arms weapons)?

How can I prevent an oracle who can see into the past from knowing everything that has happened?

Isn't a semicolon (';') needed after a function declaration in C++?

What does an unprocessed RAW file look like?

What happened to Hermione’s clothing and other possessions after she wiped her parents’ memories of her?

Are there historical references that show that "diatonic" is a version of 'di-tonic' meaning 'two tonics'?

How can guns be countered by melee combat without raw-ability or exceptional explanations?

Is practicing on a digital piano harmful to an experienced piano player?

Including proofs of known theorems in master's thesis

Problems formatting part entries in ToC with `titletoc`

Minimum Viable Product for RTS game?

I am a giant among ants

How do I find the distance from a point to a plane?

Boss asked me to sign a resignation paper without a date on it along with my new contract

How do I avoid the "chosen hero" feeling?

Why does a single AND gate need 60 transistors?

Disk space full during insert, what happens?

Taking out the plank from one's own eye

In the Lost in Space intro why was Dr. Smith actor listed as a special guest star?



Solving the linear first order differential equaition?


First-order linear differential equationSolving a simple first order differential equationSolving a first order linear ODE via the method of integrating factorssolving second order linear differential equationIssue in first order differential equationDifferential Equation (First order with separable variable)First Order Differential Equation with Initial Value (Doesn't know how to remove the absolute sign)first order differential confusionHaving trouble exact first-order differential equation.first order differential equation and summation problem













2












$begingroup$


I was given the equation



$y' = -xy$, where $y(0) = 1$.



My solution was as follows:



$$frac{dy}{dx} = -xy $$



$$dy = -xy dx $$



$$int {dy} = int {-xy dx} $$



$$y = -frac{x^2}{2}y + c $$



$$y + frac{x^2}{2}y = c $$



$$y(1 + frac{x^2}{2}) = c $$



$$y = frac{c}{1 + frac{x^2}{2}} $$



I tried plugging in $0$ and $1$ respectively to find $c$, and got $c = 0$.



I just know that what I did is wrong. Where did I go wrong, please? Thanks!










share|cite|improve this question











$endgroup$












  • $begingroup$
    Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
    $endgroup$
    – Fakemistake
    3 hours ago


















2












$begingroup$


I was given the equation



$y' = -xy$, where $y(0) = 1$.



My solution was as follows:



$$frac{dy}{dx} = -xy $$



$$dy = -xy dx $$



$$int {dy} = int {-xy dx} $$



$$y = -frac{x^2}{2}y + c $$



$$y + frac{x^2}{2}y = c $$



$$y(1 + frac{x^2}{2}) = c $$



$$y = frac{c}{1 + frac{x^2}{2}} $$



I tried plugging in $0$ and $1$ respectively to find $c$, and got $c = 0$.



I just know that what I did is wrong. Where did I go wrong, please? Thanks!










share|cite|improve this question











$endgroup$












  • $begingroup$
    Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
    $endgroup$
    – Fakemistake
    3 hours ago
















2












2








2





$begingroup$


I was given the equation



$y' = -xy$, where $y(0) = 1$.



My solution was as follows:



$$frac{dy}{dx} = -xy $$



$$dy = -xy dx $$



$$int {dy} = int {-xy dx} $$



$$y = -frac{x^2}{2}y + c $$



$$y + frac{x^2}{2}y = c $$



$$y(1 + frac{x^2}{2}) = c $$



$$y = frac{c}{1 + frac{x^2}{2}} $$



I tried plugging in $0$ and $1$ respectively to find $c$, and got $c = 0$.



I just know that what I did is wrong. Where did I go wrong, please? Thanks!










share|cite|improve this question











$endgroup$




I was given the equation



$y' = -xy$, where $y(0) = 1$.



My solution was as follows:



$$frac{dy}{dx} = -xy $$



$$dy = -xy dx $$



$$int {dy} = int {-xy dx} $$



$$y = -frac{x^2}{2}y + c $$



$$y + frac{x^2}{2}y = c $$



$$y(1 + frac{x^2}{2}) = c $$



$$y = frac{c}{1 + frac{x^2}{2}} $$



I tried plugging in $0$ and $1$ respectively to find $c$, and got $c = 0$.



I just know that what I did is wrong. Where did I go wrong, please? Thanks!







ordinary-differential-equations derivatives






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 3 hours ago









Paras Khosla

951215




951215










asked 4 hours ago









A.SmithA.Smith

111




111












  • $begingroup$
    Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
    $endgroup$
    – Fakemistake
    3 hours ago




















  • $begingroup$
    Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
    $endgroup$
    – Fakemistake
    3 hours ago


















$begingroup$
Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
$endgroup$
– Fakemistake
3 hours ago






$begingroup$
Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
$endgroup$
– Fakemistake
3 hours ago












2 Answers
2






active

oldest

votes


















2












$begingroup$

Hint:



This is a variable separable differential equation that is we can separate the differential equation such that for some functions $f(x)$ and $g(y)$: $f(x)mathrm dx =g(y)mathrm dy$. $$dfrac{mathrm dy}{mathrm dx}=-xy implies int dfrac{1}{y}mathrm dy =-int x mathrm dx$$



Now all that is left is to compute the integral and use the inital condition to figure out the value of constant. Can you proceed?





Note that you cannot simply integrate $-xy$ wrt $x$. Your computation assumes that $y$ is a constant which it most certainly is not.






share|cite|improve this answer











$endgroup$





















    1












    $begingroup$

    After writing



    $$intfrac{mathrm{d}y}{y}=int -x,mathrm{d}x,$$



    you get $ln|y|=-frac{x^2}{2}+c_1$, which implies



    $$y(x)=cexp(-x^2/2)quadtext{for}quad c=pmexp(c_1).$$



    After plugging in $y(0)=1$, you get $c=1$, so



    $$y(x)=exp(-x^2/2).$$






    share|cite|improve this answer










    New contributor




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






    $endgroup$













      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',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3124604%2fsolving-the-linear-first-order-differential-equaition%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2












      $begingroup$

      Hint:



      This is a variable separable differential equation that is we can separate the differential equation such that for some functions $f(x)$ and $g(y)$: $f(x)mathrm dx =g(y)mathrm dy$. $$dfrac{mathrm dy}{mathrm dx}=-xy implies int dfrac{1}{y}mathrm dy =-int x mathrm dx$$



      Now all that is left is to compute the integral and use the inital condition to figure out the value of constant. Can you proceed?





      Note that you cannot simply integrate $-xy$ wrt $x$. Your computation assumes that $y$ is a constant which it most certainly is not.






      share|cite|improve this answer











      $endgroup$


















        2












        $begingroup$

        Hint:



        This is a variable separable differential equation that is we can separate the differential equation such that for some functions $f(x)$ and $g(y)$: $f(x)mathrm dx =g(y)mathrm dy$. $$dfrac{mathrm dy}{mathrm dx}=-xy implies int dfrac{1}{y}mathrm dy =-int x mathrm dx$$



        Now all that is left is to compute the integral and use the inital condition to figure out the value of constant. Can you proceed?





        Note that you cannot simply integrate $-xy$ wrt $x$. Your computation assumes that $y$ is a constant which it most certainly is not.






        share|cite|improve this answer











        $endgroup$
















          2












          2








          2





          $begingroup$

          Hint:



          This is a variable separable differential equation that is we can separate the differential equation such that for some functions $f(x)$ and $g(y)$: $f(x)mathrm dx =g(y)mathrm dy$. $$dfrac{mathrm dy}{mathrm dx}=-xy implies int dfrac{1}{y}mathrm dy =-int x mathrm dx$$



          Now all that is left is to compute the integral and use the inital condition to figure out the value of constant. Can you proceed?





          Note that you cannot simply integrate $-xy$ wrt $x$. Your computation assumes that $y$ is a constant which it most certainly is not.






          share|cite|improve this answer











          $endgroup$



          Hint:



          This is a variable separable differential equation that is we can separate the differential equation such that for some functions $f(x)$ and $g(y)$: $f(x)mathrm dx =g(y)mathrm dy$. $$dfrac{mathrm dy}{mathrm dx}=-xy implies int dfrac{1}{y}mathrm dy =-int x mathrm dx$$



          Now all that is left is to compute the integral and use the inital condition to figure out the value of constant. Can you proceed?





          Note that you cannot simply integrate $-xy$ wrt $x$. Your computation assumes that $y$ is a constant which it most certainly is not.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited 3 hours ago

























          answered 4 hours ago









          Paras KhoslaParas Khosla

          951215




          951215























              1












              $begingroup$

              After writing



              $$intfrac{mathrm{d}y}{y}=int -x,mathrm{d}x,$$



              you get $ln|y|=-frac{x^2}{2}+c_1$, which implies



              $$y(x)=cexp(-x^2/2)quadtext{for}quad c=pmexp(c_1).$$



              After plugging in $y(0)=1$, you get $c=1$, so



              $$y(x)=exp(-x^2/2).$$






              share|cite|improve this answer










              New contributor




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






              $endgroup$


















                1












                $begingroup$

                After writing



                $$intfrac{mathrm{d}y}{y}=int -x,mathrm{d}x,$$



                you get $ln|y|=-frac{x^2}{2}+c_1$, which implies



                $$y(x)=cexp(-x^2/2)quadtext{for}quad c=pmexp(c_1).$$



                After plugging in $y(0)=1$, you get $c=1$, so



                $$y(x)=exp(-x^2/2).$$






                share|cite|improve this answer










                New contributor




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






                $endgroup$
















                  1












                  1








                  1





                  $begingroup$

                  After writing



                  $$intfrac{mathrm{d}y}{y}=int -x,mathrm{d}x,$$



                  you get $ln|y|=-frac{x^2}{2}+c_1$, which implies



                  $$y(x)=cexp(-x^2/2)quadtext{for}quad c=pmexp(c_1).$$



                  After plugging in $y(0)=1$, you get $c=1$, so



                  $$y(x)=exp(-x^2/2).$$






                  share|cite|improve this answer










                  New contributor




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






                  $endgroup$



                  After writing



                  $$intfrac{mathrm{d}y}{y}=int -x,mathrm{d}x,$$



                  you get $ln|y|=-frac{x^2}{2}+c_1$, which implies



                  $$y(x)=cexp(-x^2/2)quadtext{for}quad c=pmexp(c_1).$$



                  After plugging in $y(0)=1$, you get $c=1$, so



                  $$y(x)=exp(-x^2/2).$$







                  share|cite|improve this answer










                  New contributor




                  st.math 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 answer



                  share|cite|improve this answer








                  edited 3 hours ago





















                  New contributor




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









                  answered 3 hours ago









                  st.mathst.math

                  2217




                  2217




                  New contributor




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





                  New contributor





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






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






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Mathematics Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3124604%2fsolving-the-linear-first-order-differential-equaition%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

                      Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

                      How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...