Separation of variables for nonhomogeneous PDE











up vote
3
down vote

favorite












I need to solve the equation below using separation of variables.
$$frac{partial f(x,y)}{partial x} - frac{partial f(x,y)}{partial y} = 2$$
The thing is, i've always done with $0$ after the equal sign. I'm really stuck with that $2$; when doing the separation I get $X'Y-XY'=2$ and can't separate X and Y after that.










share|cite|improve this question






















  • Did try to substitute $f=h(x,y)-2y$ ?
    – Isham
    Nov 15 at 21:52

















up vote
3
down vote

favorite












I need to solve the equation below using separation of variables.
$$frac{partial f(x,y)}{partial x} - frac{partial f(x,y)}{partial y} = 2$$
The thing is, i've always done with $0$ after the equal sign. I'm really stuck with that $2$; when doing the separation I get $X'Y-XY'=2$ and can't separate X and Y after that.










share|cite|improve this question






















  • Did try to substitute $f=h(x,y)-2y$ ?
    – Isham
    Nov 15 at 21:52















up vote
3
down vote

favorite









up vote
3
down vote

favorite











I need to solve the equation below using separation of variables.
$$frac{partial f(x,y)}{partial x} - frac{partial f(x,y)}{partial y} = 2$$
The thing is, i've always done with $0$ after the equal sign. I'm really stuck with that $2$; when doing the separation I get $X'Y-XY'=2$ and can't separate X and Y after that.










share|cite|improve this question













I need to solve the equation below using separation of variables.
$$frac{partial f(x,y)}{partial x} - frac{partial f(x,y)}{partial y} = 2$$
The thing is, i've always done with $0$ after the equal sign. I'm really stuck with that $2$; when doing the separation I get $X'Y-XY'=2$ and can't separate X and Y after that.







differential-equations pde






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 15 at 21:01









Alexandre

183




183












  • Did try to substitute $f=h(x,y)-2y$ ?
    – Isham
    Nov 15 at 21:52




















  • Did try to substitute $f=h(x,y)-2y$ ?
    – Isham
    Nov 15 at 21:52


















Did try to substitute $f=h(x,y)-2y$ ?
– Isham
Nov 15 at 21:52






Did try to substitute $f=h(x,y)-2y$ ?
– Isham
Nov 15 at 21:52












2 Answers
2






active

oldest

votes

















up vote
3
down vote



accepted










$$frac{partial f(x,y)}{partial x} - frac{partial f(x,y)}{partial y} = 2$$
Substitute $f(x,y)=h(x,y)+2x$
$$frac{partial h(x,y)}{partial x} - frac{partial h(x,y)}{partial y} =0 $$






share|cite|improve this answer

















  • 1




    This. Now I'm able to solve the problem. Many thanks, my friend!
    – Alexandre
    Nov 16 at 12:39










  • @Alexandre yes you can solve it now you're welcomed
    – Isham
    Nov 16 at 12:42


















up vote
1
down vote













Let $(a,b)$ be some vector such that $a-b=2$. Then,



$$f_x-f_y=2=(1,-1) cdot (a,b)$$



$$(1,-1) cdot (f_x,f_y)=(1,-1) cdot (a,b)$$



It follows that $(f_x-a,f_y-b)$ is orthogonal to $(1,-1)$. Let $g(x,y)=f(x,y)-ax-by$. Then $nabla g$ is orthogonal to $(1,-1)$. So $nabla g=lambda(1,1)$ and $g(x,y)=lambda (x+y)$. Hence $lambda(x+y)+ax+by=f(x,y)$. Or with $b=2-a$:



$$f(x,y)=lambda(x+y)+ax+(2-a)x$$



$$=lambda x+ lambda y+2 x$$






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: 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%2f3000327%2fseparation-of-variables-for-nonhomogeneous-pde%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








    up vote
    3
    down vote



    accepted










    $$frac{partial f(x,y)}{partial x} - frac{partial f(x,y)}{partial y} = 2$$
    Substitute $f(x,y)=h(x,y)+2x$
    $$frac{partial h(x,y)}{partial x} - frac{partial h(x,y)}{partial y} =0 $$






    share|cite|improve this answer

















    • 1




      This. Now I'm able to solve the problem. Many thanks, my friend!
      – Alexandre
      Nov 16 at 12:39










    • @Alexandre yes you can solve it now you're welcomed
      – Isham
      Nov 16 at 12:42















    up vote
    3
    down vote



    accepted










    $$frac{partial f(x,y)}{partial x} - frac{partial f(x,y)}{partial y} = 2$$
    Substitute $f(x,y)=h(x,y)+2x$
    $$frac{partial h(x,y)}{partial x} - frac{partial h(x,y)}{partial y} =0 $$






    share|cite|improve this answer

















    • 1




      This. Now I'm able to solve the problem. Many thanks, my friend!
      – Alexandre
      Nov 16 at 12:39










    • @Alexandre yes you can solve it now you're welcomed
      – Isham
      Nov 16 at 12:42













    up vote
    3
    down vote



    accepted







    up vote
    3
    down vote



    accepted






    $$frac{partial f(x,y)}{partial x} - frac{partial f(x,y)}{partial y} = 2$$
    Substitute $f(x,y)=h(x,y)+2x$
    $$frac{partial h(x,y)}{partial x} - frac{partial h(x,y)}{partial y} =0 $$






    share|cite|improve this answer












    $$frac{partial f(x,y)}{partial x} - frac{partial f(x,y)}{partial y} = 2$$
    Substitute $f(x,y)=h(x,y)+2x$
    $$frac{partial h(x,y)}{partial x} - frac{partial h(x,y)}{partial y} =0 $$







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Nov 15 at 22:00









    Isham

    12.7k3929




    12.7k3929








    • 1




      This. Now I'm able to solve the problem. Many thanks, my friend!
      – Alexandre
      Nov 16 at 12:39










    • @Alexandre yes you can solve it now you're welcomed
      – Isham
      Nov 16 at 12:42














    • 1




      This. Now I'm able to solve the problem. Many thanks, my friend!
      – Alexandre
      Nov 16 at 12:39










    • @Alexandre yes you can solve it now you're welcomed
      – Isham
      Nov 16 at 12:42








    1




    1




    This. Now I'm able to solve the problem. Many thanks, my friend!
    – Alexandre
    Nov 16 at 12:39




    This. Now I'm able to solve the problem. Many thanks, my friend!
    – Alexandre
    Nov 16 at 12:39












    @Alexandre yes you can solve it now you're welcomed
    – Isham
    Nov 16 at 12:42




    @Alexandre yes you can solve it now you're welcomed
    – Isham
    Nov 16 at 12:42










    up vote
    1
    down vote













    Let $(a,b)$ be some vector such that $a-b=2$. Then,



    $$f_x-f_y=2=(1,-1) cdot (a,b)$$



    $$(1,-1) cdot (f_x,f_y)=(1,-1) cdot (a,b)$$



    It follows that $(f_x-a,f_y-b)$ is orthogonal to $(1,-1)$. Let $g(x,y)=f(x,y)-ax-by$. Then $nabla g$ is orthogonal to $(1,-1)$. So $nabla g=lambda(1,1)$ and $g(x,y)=lambda (x+y)$. Hence $lambda(x+y)+ax+by=f(x,y)$. Or with $b=2-a$:



    $$f(x,y)=lambda(x+y)+ax+(2-a)x$$



    $$=lambda x+ lambda y+2 x$$






    share|cite|improve this answer

























      up vote
      1
      down vote













      Let $(a,b)$ be some vector such that $a-b=2$. Then,



      $$f_x-f_y=2=(1,-1) cdot (a,b)$$



      $$(1,-1) cdot (f_x,f_y)=(1,-1) cdot (a,b)$$



      It follows that $(f_x-a,f_y-b)$ is orthogonal to $(1,-1)$. Let $g(x,y)=f(x,y)-ax-by$. Then $nabla g$ is orthogonal to $(1,-1)$. So $nabla g=lambda(1,1)$ and $g(x,y)=lambda (x+y)$. Hence $lambda(x+y)+ax+by=f(x,y)$. Or with $b=2-a$:



      $$f(x,y)=lambda(x+y)+ax+(2-a)x$$



      $$=lambda x+ lambda y+2 x$$






      share|cite|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        Let $(a,b)$ be some vector such that $a-b=2$. Then,



        $$f_x-f_y=2=(1,-1) cdot (a,b)$$



        $$(1,-1) cdot (f_x,f_y)=(1,-1) cdot (a,b)$$



        It follows that $(f_x-a,f_y-b)$ is orthogonal to $(1,-1)$. Let $g(x,y)=f(x,y)-ax-by$. Then $nabla g$ is orthogonal to $(1,-1)$. So $nabla g=lambda(1,1)$ and $g(x,y)=lambda (x+y)$. Hence $lambda(x+y)+ax+by=f(x,y)$. Or with $b=2-a$:



        $$f(x,y)=lambda(x+y)+ax+(2-a)x$$



        $$=lambda x+ lambda y+2 x$$






        share|cite|improve this answer












        Let $(a,b)$ be some vector such that $a-b=2$. Then,



        $$f_x-f_y=2=(1,-1) cdot (a,b)$$



        $$(1,-1) cdot (f_x,f_y)=(1,-1) cdot (a,b)$$



        It follows that $(f_x-a,f_y-b)$ is orthogonal to $(1,-1)$. Let $g(x,y)=f(x,y)-ax-by$. Then $nabla g$ is orthogonal to $(1,-1)$. So $nabla g=lambda(1,1)$ and $g(x,y)=lambda (x+y)$. Hence $lambda(x+y)+ax+by=f(x,y)$. Or with $b=2-a$:



        $$f(x,y)=lambda(x+y)+ax+(2-a)x$$



        $$=lambda x+ lambda y+2 x$$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Nov 15 at 22:22









        Ahmed S. Attaalla

        14.7k12049




        14.7k12049






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


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


            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%2f3000327%2fseparation-of-variables-for-nonhomogeneous-pde%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

            Plaza Victoria

            Brian Clough

            Cáceres