Solving the linear first order differential equation?












5












$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$








  • 1




    $begingroup$
    Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
    $endgroup$
    – Fakemistake
    Feb 24 at 9:20


















5












$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$








  • 1




    $begingroup$
    Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
    $endgroup$
    – Fakemistake
    Feb 24 at 9:20
















5












5








5





$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 Feb 24 at 18:49









David Richerby

2,18011324




2,18011324










asked Feb 24 at 8:53









A.SmithA.Smith

262




262








  • 1




    $begingroup$
    Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
    $endgroup$
    – Fakemistake
    Feb 24 at 9:20
















  • 1




    $begingroup$
    Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
    $endgroup$
    – Fakemistake
    Feb 24 at 9:20










1




1




$begingroup$
Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
$endgroup$
– Fakemistake
Feb 24 at 9:20






$begingroup$
Why don't you separate the variables like $$frac{dy}{y}=-xdx?$$ Also the final conclusion is definitely wrong.
$endgroup$
– Fakemistake
Feb 24 at 9:20












4 Answers
4






active

oldest

votes


















11












$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$
    That helped a lot! Thank you!
    $endgroup$
    – A.Smith
    Feb 24 at 15:25



















4












$begingroup$

(Too long for a comment.)



No one else has mentioned this, so I will...



Remember: $y$ is a function of $x$, not something that is constant with respect to variation of $x$. (Forgetting this is a fairly common error when first performing implicit differentiation.) It can help to write "$y(x)$" rather than just "$y$".



Your error is believing $int -x y(x) , mathrm{d}x = frac{-1}{2}x^2 y$. But $y$ is not some constant in this integral; it is a function that depends on $x$. Otherwise, what is written could be the absurdity (when, say $y(x) = frac{1}{x^2}$), "$int -x cdot frac{1}{x^2} ,mathrm{d}x = frac{-1}{2} x^2 cdot frac{1}{x^2} + C_1 = C$" rather than the correct
$$ int -x cdot frac{1}{x^2} ,mathrm{d}x = ln|x| + C text{.} $$



Quick way to verify this: Implicitly differentiate your antiderivative to see if you get the integrand and differential element back:begin{align*}
left( frac{-1}{2}x^2 y(x) right)'
&= frac{-1}{2}x^2 (y(x))' + left( frac{-1}{2}x^2 right)' y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) + left( frac{-1}{2} cdot 2 x ,mathrm{d}x right) y(x) \
&= frac{-1}{2}x^2 ,mathrm{d}y(x) - x y(x) ,mathrm{d}x text{,}
end{align*}

which isn't quite "$- x y,mathrm{d}x$".



(However, we have shown begin{align*}
int left( frac{-1}{2}x^2 frac{mathrm{d}y(x)}{mathrm{d}x} - x y(x) right) ,mathrm{d}x
&= int frac{mathrm{d}}{mathrm{d}x} left( frac{-1}{2}x^2 y(x) right) , mathrm{d} x \
&= frac{-1}{2}x^2 y(x) + C text{.}
end{align*}

Familiarity with this kind of manipulation could be useful in the future.)






share|cite|improve this answer









$endgroup$





















    3












    $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











    $endgroup$













    • $begingroup$
      Thank you so so much! I super appreciate it!
      $endgroup$
      – A.Smith
      Feb 24 at 15:53










    • $begingroup$
      You're welcome :)
      $endgroup$
      – st.math
      Feb 24 at 16:32



















    3












    $begingroup$

    Here is another method that does not use separation of variables and uses integrating factors. Write
    $$
    y'+xy=0
    $$

    and multiply both sides by $e^{int x, dx}=e^{x^2/2}$ to get that
    $$
    0=y'e^{x^2/2}+xye^{x^2/2}=frac{d}{dx}(ye^{x^2/2}).
    $$

    So
    $$
    ye^{x^2/2}=cimplies y=ce^{-x^2/2}
    $$

    for some $c$. Since $y(0)=1$, we deduce that
    $$
    y=exp(-x^2/2).
    $$






    share|cite|improve this answer









    $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-equation%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      11












      $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$
        That helped a lot! Thank you!
        $endgroup$
        – A.Smith
        Feb 24 at 15:25
















      11












      $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$
        That helped a lot! Thank you!
        $endgroup$
        – A.Smith
        Feb 24 at 15:25














      11












      11








      11





      $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 Feb 24 at 9:10

























      answered Feb 24 at 8:55









      Paras KhoslaParas Khosla

      1,643219




      1,643219








      • 1




        $begingroup$
        That helped a lot! Thank you!
        $endgroup$
        – A.Smith
        Feb 24 at 15:25














      • 1




        $begingroup$
        That helped a lot! Thank you!
        $endgroup$
        – A.Smith
        Feb 24 at 15:25








      1




      1




      $begingroup$
      That helped a lot! Thank you!
      $endgroup$
      – A.Smith
      Feb 24 at 15:25




      $begingroup$
      That helped a lot! Thank you!
      $endgroup$
      – A.Smith
      Feb 24 at 15:25











      4












      $begingroup$

      (Too long for a comment.)



      No one else has mentioned this, so I will...



      Remember: $y$ is a function of $x$, not something that is constant with respect to variation of $x$. (Forgetting this is a fairly common error when first performing implicit differentiation.) It can help to write "$y(x)$" rather than just "$y$".



      Your error is believing $int -x y(x) , mathrm{d}x = frac{-1}{2}x^2 y$. But $y$ is not some constant in this integral; it is a function that depends on $x$. Otherwise, what is written could be the absurdity (when, say $y(x) = frac{1}{x^2}$), "$int -x cdot frac{1}{x^2} ,mathrm{d}x = frac{-1}{2} x^2 cdot frac{1}{x^2} + C_1 = C$" rather than the correct
      $$ int -x cdot frac{1}{x^2} ,mathrm{d}x = ln|x| + C text{.} $$



      Quick way to verify this: Implicitly differentiate your antiderivative to see if you get the integrand and differential element back:begin{align*}
      left( frac{-1}{2}x^2 y(x) right)'
      &= frac{-1}{2}x^2 (y(x))' + left( frac{-1}{2}x^2 right)' y(x) \
      &= frac{-1}{2}x^2 ,mathrm{d}y(x) + left( frac{-1}{2} cdot 2 x ,mathrm{d}x right) y(x) \
      &= frac{-1}{2}x^2 ,mathrm{d}y(x) - x y(x) ,mathrm{d}x text{,}
      end{align*}

      which isn't quite "$- x y,mathrm{d}x$".



      (However, we have shown begin{align*}
      int left( frac{-1}{2}x^2 frac{mathrm{d}y(x)}{mathrm{d}x} - x y(x) right) ,mathrm{d}x
      &= int frac{mathrm{d}}{mathrm{d}x} left( frac{-1}{2}x^2 y(x) right) , mathrm{d} x \
      &= frac{-1}{2}x^2 y(x) + C text{.}
      end{align*}

      Familiarity with this kind of manipulation could be useful in the future.)






      share|cite|improve this answer









      $endgroup$


















        4












        $begingroup$

        (Too long for a comment.)



        No one else has mentioned this, so I will...



        Remember: $y$ is a function of $x$, not something that is constant with respect to variation of $x$. (Forgetting this is a fairly common error when first performing implicit differentiation.) It can help to write "$y(x)$" rather than just "$y$".



        Your error is believing $int -x y(x) , mathrm{d}x = frac{-1}{2}x^2 y$. But $y$ is not some constant in this integral; it is a function that depends on $x$. Otherwise, what is written could be the absurdity (when, say $y(x) = frac{1}{x^2}$), "$int -x cdot frac{1}{x^2} ,mathrm{d}x = frac{-1}{2} x^2 cdot frac{1}{x^2} + C_1 = C$" rather than the correct
        $$ int -x cdot frac{1}{x^2} ,mathrm{d}x = ln|x| + C text{.} $$



        Quick way to verify this: Implicitly differentiate your antiderivative to see if you get the integrand and differential element back:begin{align*}
        left( frac{-1}{2}x^2 y(x) right)'
        &= frac{-1}{2}x^2 (y(x))' + left( frac{-1}{2}x^2 right)' y(x) \
        &= frac{-1}{2}x^2 ,mathrm{d}y(x) + left( frac{-1}{2} cdot 2 x ,mathrm{d}x right) y(x) \
        &= frac{-1}{2}x^2 ,mathrm{d}y(x) - x y(x) ,mathrm{d}x text{,}
        end{align*}

        which isn't quite "$- x y,mathrm{d}x$".



        (However, we have shown begin{align*}
        int left( frac{-1}{2}x^2 frac{mathrm{d}y(x)}{mathrm{d}x} - x y(x) right) ,mathrm{d}x
        &= int frac{mathrm{d}}{mathrm{d}x} left( frac{-1}{2}x^2 y(x) right) , mathrm{d} x \
        &= frac{-1}{2}x^2 y(x) + C text{.}
        end{align*}

        Familiarity with this kind of manipulation could be useful in the future.)






        share|cite|improve this answer









        $endgroup$
















          4












          4








          4





          $begingroup$

          (Too long for a comment.)



          No one else has mentioned this, so I will...



          Remember: $y$ is a function of $x$, not something that is constant with respect to variation of $x$. (Forgetting this is a fairly common error when first performing implicit differentiation.) It can help to write "$y(x)$" rather than just "$y$".



          Your error is believing $int -x y(x) , mathrm{d}x = frac{-1}{2}x^2 y$. But $y$ is not some constant in this integral; it is a function that depends on $x$. Otherwise, what is written could be the absurdity (when, say $y(x) = frac{1}{x^2}$), "$int -x cdot frac{1}{x^2} ,mathrm{d}x = frac{-1}{2} x^2 cdot frac{1}{x^2} + C_1 = C$" rather than the correct
          $$ int -x cdot frac{1}{x^2} ,mathrm{d}x = ln|x| + C text{.} $$



          Quick way to verify this: Implicitly differentiate your antiderivative to see if you get the integrand and differential element back:begin{align*}
          left( frac{-1}{2}x^2 y(x) right)'
          &= frac{-1}{2}x^2 (y(x))' + left( frac{-1}{2}x^2 right)' y(x) \
          &= frac{-1}{2}x^2 ,mathrm{d}y(x) + left( frac{-1}{2} cdot 2 x ,mathrm{d}x right) y(x) \
          &= frac{-1}{2}x^2 ,mathrm{d}y(x) - x y(x) ,mathrm{d}x text{,}
          end{align*}

          which isn't quite "$- x y,mathrm{d}x$".



          (However, we have shown begin{align*}
          int left( frac{-1}{2}x^2 frac{mathrm{d}y(x)}{mathrm{d}x} - x y(x) right) ,mathrm{d}x
          &= int frac{mathrm{d}}{mathrm{d}x} left( frac{-1}{2}x^2 y(x) right) , mathrm{d} x \
          &= frac{-1}{2}x^2 y(x) + C text{.}
          end{align*}

          Familiarity with this kind of manipulation could be useful in the future.)






          share|cite|improve this answer









          $endgroup$



          (Too long for a comment.)



          No one else has mentioned this, so I will...



          Remember: $y$ is a function of $x$, not something that is constant with respect to variation of $x$. (Forgetting this is a fairly common error when first performing implicit differentiation.) It can help to write "$y(x)$" rather than just "$y$".



          Your error is believing $int -x y(x) , mathrm{d}x = frac{-1}{2}x^2 y$. But $y$ is not some constant in this integral; it is a function that depends on $x$. Otherwise, what is written could be the absurdity (when, say $y(x) = frac{1}{x^2}$), "$int -x cdot frac{1}{x^2} ,mathrm{d}x = frac{-1}{2} x^2 cdot frac{1}{x^2} + C_1 = C$" rather than the correct
          $$ int -x cdot frac{1}{x^2} ,mathrm{d}x = ln|x| + C text{.} $$



          Quick way to verify this: Implicitly differentiate your antiderivative to see if you get the integrand and differential element back:begin{align*}
          left( frac{-1}{2}x^2 y(x) right)'
          &= frac{-1}{2}x^2 (y(x))' + left( frac{-1}{2}x^2 right)' y(x) \
          &= frac{-1}{2}x^2 ,mathrm{d}y(x) + left( frac{-1}{2} cdot 2 x ,mathrm{d}x right) y(x) \
          &= frac{-1}{2}x^2 ,mathrm{d}y(x) - x y(x) ,mathrm{d}x text{,}
          end{align*}

          which isn't quite "$- x y,mathrm{d}x$".



          (However, we have shown begin{align*}
          int left( frac{-1}{2}x^2 frac{mathrm{d}y(x)}{mathrm{d}x} - x y(x) right) ,mathrm{d}x
          &= int frac{mathrm{d}}{mathrm{d}x} left( frac{-1}{2}x^2 y(x) right) , mathrm{d} x \
          &= frac{-1}{2}x^2 y(x) + C text{.}
          end{align*}

          Familiarity with this kind of manipulation could be useful in the future.)







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Feb 24 at 19:36









          Eric TowersEric Towers

          32.8k22370




          32.8k22370























              3












              $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











              $endgroup$













              • $begingroup$
                Thank you so so much! I super appreciate it!
                $endgroup$
                – A.Smith
                Feb 24 at 15:53










              • $begingroup$
                You're welcome :)
                $endgroup$
                – st.math
                Feb 24 at 16:32
















              3












              $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











              $endgroup$













              • $begingroup$
                Thank you so so much! I super appreciate it!
                $endgroup$
                – A.Smith
                Feb 24 at 15:53










              • $begingroup$
                You're welcome :)
                $endgroup$
                – st.math
                Feb 24 at 16:32














              3












              3








              3





              $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











              $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














              share|cite|improve this answer



              share|cite|improve this answer








              edited Feb 24 at 10:01

























              answered Feb 24 at 9:55









              st.mathst.math

              3818




              3818












              • $begingroup$
                Thank you so so much! I super appreciate it!
                $endgroup$
                – A.Smith
                Feb 24 at 15:53










              • $begingroup$
                You're welcome :)
                $endgroup$
                – st.math
                Feb 24 at 16:32


















              • $begingroup$
                Thank you so so much! I super appreciate it!
                $endgroup$
                – A.Smith
                Feb 24 at 15:53










              • $begingroup$
                You're welcome :)
                $endgroup$
                – st.math
                Feb 24 at 16:32
















              $begingroup$
              Thank you so so much! I super appreciate it!
              $endgroup$
              – A.Smith
              Feb 24 at 15:53




              $begingroup$
              Thank you so so much! I super appreciate it!
              $endgroup$
              – A.Smith
              Feb 24 at 15:53












              $begingroup$
              You're welcome :)
              $endgroup$
              – st.math
              Feb 24 at 16:32




              $begingroup$
              You're welcome :)
              $endgroup$
              – st.math
              Feb 24 at 16:32











              3












              $begingroup$

              Here is another method that does not use separation of variables and uses integrating factors. Write
              $$
              y'+xy=0
              $$

              and multiply both sides by $e^{int x, dx}=e^{x^2/2}$ to get that
              $$
              0=y'e^{x^2/2}+xye^{x^2/2}=frac{d}{dx}(ye^{x^2/2}).
              $$

              So
              $$
              ye^{x^2/2}=cimplies y=ce^{-x^2/2}
              $$

              for some $c$. Since $y(0)=1$, we deduce that
              $$
              y=exp(-x^2/2).
              $$






              share|cite|improve this answer









              $endgroup$


















                3












                $begingroup$

                Here is another method that does not use separation of variables and uses integrating factors. Write
                $$
                y'+xy=0
                $$

                and multiply both sides by $e^{int x, dx}=e^{x^2/2}$ to get that
                $$
                0=y'e^{x^2/2}+xye^{x^2/2}=frac{d}{dx}(ye^{x^2/2}).
                $$

                So
                $$
                ye^{x^2/2}=cimplies y=ce^{-x^2/2}
                $$

                for some $c$. Since $y(0)=1$, we deduce that
                $$
                y=exp(-x^2/2).
                $$






                share|cite|improve this answer









                $endgroup$
















                  3












                  3








                  3





                  $begingroup$

                  Here is another method that does not use separation of variables and uses integrating factors. Write
                  $$
                  y'+xy=0
                  $$

                  and multiply both sides by $e^{int x, dx}=e^{x^2/2}$ to get that
                  $$
                  0=y'e^{x^2/2}+xye^{x^2/2}=frac{d}{dx}(ye^{x^2/2}).
                  $$

                  So
                  $$
                  ye^{x^2/2}=cimplies y=ce^{-x^2/2}
                  $$

                  for some $c$. Since $y(0)=1$, we deduce that
                  $$
                  y=exp(-x^2/2).
                  $$






                  share|cite|improve this answer









                  $endgroup$



                  Here is another method that does not use separation of variables and uses integrating factors. Write
                  $$
                  y'+xy=0
                  $$

                  and multiply both sides by $e^{int x, dx}=e^{x^2/2}$ to get that
                  $$
                  0=y'e^{x^2/2}+xye^{x^2/2}=frac{d}{dx}(ye^{x^2/2}).
                  $$

                  So
                  $$
                  ye^{x^2/2}=cimplies y=ce^{-x^2/2}
                  $$

                  for some $c$. Since $y(0)=1$, we deduce that
                  $$
                  y=exp(-x^2/2).
                  $$







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Feb 24 at 16:42









                  Foobaz JohnFoobaz John

                  22.3k41452




                  22.3k41452






























                      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-equation%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

                      How to change which sound is reproduced for terminal bell?

                      Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                      Can I use Tabulator js library in my java Spring + Thymeleaf project?