Finding the maximum of a function on a triangle











up vote
2
down vote

favorite












I want to find the maximum of $f(x,y) = x^ae^{-x}y^be^{-y}$ on the triangle given by $xgeq0$, $ygeq0$, and $x+yleq1$ in terms of $a$ and $b$ such that $a,b>0$.



I can see that the vertices of the triangle are $(0,0)$, $(1,0)$, and $(0,1)$. To check whether there is a maximum in the interior of the triangle, would I just check to find points where both partials vanish, or do I need to apply Lagrange multipliers? If so, what would I use for the constraint function? On the boundaries, I know to check the values at the three vertices, but what about all the other points on the boundaries?










share|cite|improve this question






















  • Lagrange multipliers are only used when you are forced to a constraint in the form of an equality; i.e. "maximise/minimise $f(x)$ given $g(x)=0$"" type questions. You would almost never want to try to introduce $g$ when it's not already there.
    – YiFan
    Dec 2 at 21:37















up vote
2
down vote

favorite












I want to find the maximum of $f(x,y) = x^ae^{-x}y^be^{-y}$ on the triangle given by $xgeq0$, $ygeq0$, and $x+yleq1$ in terms of $a$ and $b$ such that $a,b>0$.



I can see that the vertices of the triangle are $(0,0)$, $(1,0)$, and $(0,1)$. To check whether there is a maximum in the interior of the triangle, would I just check to find points where both partials vanish, or do I need to apply Lagrange multipliers? If so, what would I use for the constraint function? On the boundaries, I know to check the values at the three vertices, but what about all the other points on the boundaries?










share|cite|improve this question






















  • Lagrange multipliers are only used when you are forced to a constraint in the form of an equality; i.e. "maximise/minimise $f(x)$ given $g(x)=0$"" type questions. You would almost never want to try to introduce $g$ when it's not already there.
    – YiFan
    Dec 2 at 21:37













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I want to find the maximum of $f(x,y) = x^ae^{-x}y^be^{-y}$ on the triangle given by $xgeq0$, $ygeq0$, and $x+yleq1$ in terms of $a$ and $b$ such that $a,b>0$.



I can see that the vertices of the triangle are $(0,0)$, $(1,0)$, and $(0,1)$. To check whether there is a maximum in the interior of the triangle, would I just check to find points where both partials vanish, or do I need to apply Lagrange multipliers? If so, what would I use for the constraint function? On the boundaries, I know to check the values at the three vertices, but what about all the other points on the boundaries?










share|cite|improve this question













I want to find the maximum of $f(x,y) = x^ae^{-x}y^be^{-y}$ on the triangle given by $xgeq0$, $ygeq0$, and $x+yleq1$ in terms of $a$ and $b$ such that $a,b>0$.



I can see that the vertices of the triangle are $(0,0)$, $(1,0)$, and $(0,1)$. To check whether there is a maximum in the interior of the triangle, would I just check to find points where both partials vanish, or do I need to apply Lagrange multipliers? If so, what would I use for the constraint function? On the boundaries, I know to check the values at the three vertices, but what about all the other points on the boundaries?







multivariable-calculus lagrange-multiplier






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 2 at 21:26









chris102212

444




444












  • Lagrange multipliers are only used when you are forced to a constraint in the form of an equality; i.e. "maximise/minimise $f(x)$ given $g(x)=0$"" type questions. You would almost never want to try to introduce $g$ when it's not already there.
    – YiFan
    Dec 2 at 21:37


















  • Lagrange multipliers are only used when you are forced to a constraint in the form of an equality; i.e. "maximise/minimise $f(x)$ given $g(x)=0$"" type questions. You would almost never want to try to introduce $g$ when it's not already there.
    – YiFan
    Dec 2 at 21:37
















Lagrange multipliers are only used when you are forced to a constraint in the form of an equality; i.e. "maximise/minimise $f(x)$ given $g(x)=0$"" type questions. You would almost never want to try to introduce $g$ when it's not already there.
– YiFan
Dec 2 at 21:37




Lagrange multipliers are only used when you are forced to a constraint in the form of an equality; i.e. "maximise/minimise $f(x)$ given $g(x)=0$"" type questions. You would almost never want to try to introduce $g$ when it's not already there.
– YiFan
Dec 2 at 21:37










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










On two of the three boundaries, the function is just zero. On the last one, you know $x + y = 1$, so you can rewrite your function as a one-variable function



$$f(x, y) = f(x, 1 - x) = x^a e^{-x} (1 - x)^b e^{-(1 - x)} = frac 1 e x^a (1 - x)^b$$



which isn't too hard to maximize.



Then for the interior, try to identify the critical points where $f_x = f_y = 0$.






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%2f3023219%2ffinding-the-maximum-of-a-function-on-a-triangle%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    On two of the three boundaries, the function is just zero. On the last one, you know $x + y = 1$, so you can rewrite your function as a one-variable function



    $$f(x, y) = f(x, 1 - x) = x^a e^{-x} (1 - x)^b e^{-(1 - x)} = frac 1 e x^a (1 - x)^b$$



    which isn't too hard to maximize.



    Then for the interior, try to identify the critical points where $f_x = f_y = 0$.






    share|cite|improve this answer

























      up vote
      1
      down vote



      accepted










      On two of the three boundaries, the function is just zero. On the last one, you know $x + y = 1$, so you can rewrite your function as a one-variable function



      $$f(x, y) = f(x, 1 - x) = x^a e^{-x} (1 - x)^b e^{-(1 - x)} = frac 1 e x^a (1 - x)^b$$



      which isn't too hard to maximize.



      Then for the interior, try to identify the critical points where $f_x = f_y = 0$.






      share|cite|improve this answer























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        On two of the three boundaries, the function is just zero. On the last one, you know $x + y = 1$, so you can rewrite your function as a one-variable function



        $$f(x, y) = f(x, 1 - x) = x^a e^{-x} (1 - x)^b e^{-(1 - x)} = frac 1 e x^a (1 - x)^b$$



        which isn't too hard to maximize.



        Then for the interior, try to identify the critical points where $f_x = f_y = 0$.






        share|cite|improve this answer












        On two of the three boundaries, the function is just zero. On the last one, you know $x + y = 1$, so you can rewrite your function as a one-variable function



        $$f(x, y) = f(x, 1 - x) = x^a e^{-x} (1 - x)^b e^{-(1 - x)} = frac 1 e x^a (1 - x)^b$$



        which isn't too hard to maximize.



        Then for the interior, try to identify the critical points where $f_x = f_y = 0$.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Dec 2 at 21:28









        T. Bongers

        22.5k54460




        22.5k54460






























            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%2f3023219%2ffinding-the-maximum-of-a-function-on-a-triangle%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

            Bressuire

            Cabo Verde

            Gyllenstierna