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

Sri Keyuravati of krama tradition

How to deal with an underperforming subordinate?

Players preemptively rolling, even though their rolls are useless or are checking the wrong skills

How to get a 2D Plot from a 3D Listplot?

Where does documentation like business and software requirement spec docs fit in an agile project?

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

What does an unprocessed RAW file look like?

Is Screenshot Time-tracking Common?

How can find the 2D Voronoi cell area distribution?

Solving the linear first order differential equation?

Identical projects by students at two different colleges: still plagiarism?

Calculating the strength of an ionic bond that contains poly-atomic ions

Why do neural networks need so many examples to perform?

If I tried and failed to start my own business, how do I apply for a job without job experience?

Is it possible to detect 100% of SQLi with a simple regex?

Can I travel from country A to country B to country C without going back to country A?

Is it possible to map from a parameter to a trajectory?

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

Does copper wire need to say it's copper?

What would be some possible ways of escaping higher gravity planets?

Why don't you get burned by the wood benches in a sauna?

smartctl reports overall health test as passed but the tests failed?

How do I add a strong "onion flavor" to the biryani (in restaurant style)?

Why "rm -r" is unable to delete this folder?



Solving the linear first order differential equation?


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













4












$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
    9 hours ago


















4












$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
    9 hours ago
















4












4








4





$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 4 mins ago









David Richerby

2,18011324




2,18011324










asked 10 hours ago









A.SmithA.Smith

212




212












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




















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


















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






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












3 Answers
3






active

oldest

votes


















8












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













  • $begingroup$
    That helped a lot! Thank you!
    $endgroup$
    – A.Smith
    3 hours ago



















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










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$













  • $begingroup$
    Thank you so so much! I super appreciate it!
    $endgroup$
    – A.Smith
    3 hours ago










  • $begingroup$
    You're welcome :)
    $endgroup$
    – st.math
    2 hours ago



















2












$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

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    8












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













    • $begingroup$
      That helped a lot! Thank you!
      $endgroup$
      – A.Smith
      3 hours ago
















    8












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













    • $begingroup$
      That helped a lot! Thank you!
      $endgroup$
      – A.Smith
      3 hours ago














    8












    8








    8





    $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 9 hours ago

























    answered 9 hours ago









    Paras KhoslaParas Khosla

    1,011215




    1,011215












    • $begingroup$
      That helped a lot! Thank you!
      $endgroup$
      – A.Smith
      3 hours ago


















    • $begingroup$
      That helped a lot! Thank you!
      $endgroup$
      – A.Smith
      3 hours ago
















    $begingroup$
    That helped a lot! Thank you!
    $endgroup$
    – A.Smith
    3 hours ago




    $begingroup$
    That helped a lot! Thank you!
    $endgroup$
    – A.Smith
    3 hours ago











    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










    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$













    • $begingroup$
      Thank you so so much! I super appreciate it!
      $endgroup$
      – A.Smith
      3 hours ago










    • $begingroup$
      You're welcome :)
      $endgroup$
      – st.math
      2 hours ago
















    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










    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$













    • $begingroup$
      Thank you so so much! I super appreciate it!
      $endgroup$
      – A.Smith
      3 hours ago










    • $begingroup$
      You're welcome :)
      $endgroup$
      – st.math
      2 hours ago














    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










    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 8 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 8 hours ago









    st.mathst.math

    2807




    2807




    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.












    • $begingroup$
      Thank you so so much! I super appreciate it!
      $endgroup$
      – A.Smith
      3 hours ago










    • $begingroup$
      You're welcome :)
      $endgroup$
      – st.math
      2 hours ago


















    • $begingroup$
      Thank you so so much! I super appreciate it!
      $endgroup$
      – A.Smith
      3 hours ago










    • $begingroup$
      You're welcome :)
      $endgroup$
      – st.math
      2 hours ago
















    $begingroup$
    Thank you so so much! I super appreciate it!
    $endgroup$
    – A.Smith
    3 hours ago




    $begingroup$
    Thank you so so much! I super appreciate it!
    $endgroup$
    – A.Smith
    3 hours ago












    $begingroup$
    You're welcome :)
    $endgroup$
    – st.math
    2 hours ago




    $begingroup$
    You're welcome :)
    $endgroup$
    – st.math
    2 hours ago











    2












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


















      2












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
















        2












        2








        2





        $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 2 hours ago









        Foobaz JohnFoobaz John

        22.2k41452




        22.2k41452






























            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

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