Why does the method of Lagrange multiplier fail?











up vote
0
down vote

favorite












Question



Let $mathbf{x}$ and $mathbf{y}$ be two vectors in $mathbb{R}^2$, and $f$ be a function defined by $f(mathbf{x},mathbf{y}) := mathbf{x} cdot mathbf{y}$. Can this function be minimised subject to the conditions $parallel mathbf{x} parallel = parallel mathbf{y} parallel = 1$, with the method of Lagrange multiplier?



Attempt



I failed to used Lagrange multiplier to solve this question. The primary reason is that as I try to express $f$ as a function of four variables $x_1, x_2, x_3, x_4$, the gradient of $g_1$ and the gradient of $g_2$ has the last two entries being $0$. While the gradient of $f$ does not have zero elements. Thus, it seems there can be no $lambda_1$ and $lambda_2$ that equates the three gradient vectors. Am I correct? Or am I grossly simplifying the question when I express $f$ as a function of four variables?










share|cite|improve this question


















  • 4




    When you have 2 constraints the associated system of equations is $nabla f = lambda nabla g_1 + mu nabla g_2$ rather than $nabla f = lambda nabla g_1$ AND $nabla f = mu g_2$
    – user25959
    Nov 23 at 18:22






  • 2




    See example here: mathonline.wikidot.com/…
    – user25959
    Nov 23 at 18:23






  • 1




    Also another way : Notice that $$- |x| ~ |y| leq langle x ,y rangle$$
    – Red shoes
    Nov 23 at 18:27






  • 1




    @Redshoes Probably it was his intent to prove that inequality with Lagrange multipliers
    – Federico
    Nov 23 at 18:29










  • @Federico If that would be orginal question, I would fix $y$ and just minimize $x.y$ over the constraint $|x|^2 = 1$. Then we have a mode with less variable and one constraint (only one Lagrange multiplier ). so much easier to solve.
    – Red shoes
    Nov 23 at 18:54















up vote
0
down vote

favorite












Question



Let $mathbf{x}$ and $mathbf{y}$ be two vectors in $mathbb{R}^2$, and $f$ be a function defined by $f(mathbf{x},mathbf{y}) := mathbf{x} cdot mathbf{y}$. Can this function be minimised subject to the conditions $parallel mathbf{x} parallel = parallel mathbf{y} parallel = 1$, with the method of Lagrange multiplier?



Attempt



I failed to used Lagrange multiplier to solve this question. The primary reason is that as I try to express $f$ as a function of four variables $x_1, x_2, x_3, x_4$, the gradient of $g_1$ and the gradient of $g_2$ has the last two entries being $0$. While the gradient of $f$ does not have zero elements. Thus, it seems there can be no $lambda_1$ and $lambda_2$ that equates the three gradient vectors. Am I correct? Or am I grossly simplifying the question when I express $f$ as a function of four variables?










share|cite|improve this question


















  • 4




    When you have 2 constraints the associated system of equations is $nabla f = lambda nabla g_1 + mu nabla g_2$ rather than $nabla f = lambda nabla g_1$ AND $nabla f = mu g_2$
    – user25959
    Nov 23 at 18:22






  • 2




    See example here: mathonline.wikidot.com/…
    – user25959
    Nov 23 at 18:23






  • 1




    Also another way : Notice that $$- |x| ~ |y| leq langle x ,y rangle$$
    – Red shoes
    Nov 23 at 18:27






  • 1




    @Redshoes Probably it was his intent to prove that inequality with Lagrange multipliers
    – Federico
    Nov 23 at 18:29










  • @Federico If that would be orginal question, I would fix $y$ and just minimize $x.y$ over the constraint $|x|^2 = 1$. Then we have a mode with less variable and one constraint (only one Lagrange multiplier ). so much easier to solve.
    – Red shoes
    Nov 23 at 18:54













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Question



Let $mathbf{x}$ and $mathbf{y}$ be two vectors in $mathbb{R}^2$, and $f$ be a function defined by $f(mathbf{x},mathbf{y}) := mathbf{x} cdot mathbf{y}$. Can this function be minimised subject to the conditions $parallel mathbf{x} parallel = parallel mathbf{y} parallel = 1$, with the method of Lagrange multiplier?



Attempt



I failed to used Lagrange multiplier to solve this question. The primary reason is that as I try to express $f$ as a function of four variables $x_1, x_2, x_3, x_4$, the gradient of $g_1$ and the gradient of $g_2$ has the last two entries being $0$. While the gradient of $f$ does not have zero elements. Thus, it seems there can be no $lambda_1$ and $lambda_2$ that equates the three gradient vectors. Am I correct? Or am I grossly simplifying the question when I express $f$ as a function of four variables?










share|cite|improve this question













Question



Let $mathbf{x}$ and $mathbf{y}$ be two vectors in $mathbb{R}^2$, and $f$ be a function defined by $f(mathbf{x},mathbf{y}) := mathbf{x} cdot mathbf{y}$. Can this function be minimised subject to the conditions $parallel mathbf{x} parallel = parallel mathbf{y} parallel = 1$, with the method of Lagrange multiplier?



Attempt



I failed to used Lagrange multiplier to solve this question. The primary reason is that as I try to express $f$ as a function of four variables $x_1, x_2, x_3, x_4$, the gradient of $g_1$ and the gradient of $g_2$ has the last two entries being $0$. While the gradient of $f$ does not have zero elements. Thus, it seems there can be no $lambda_1$ and $lambda_2$ that equates the three gradient vectors. Am I correct? Or am I grossly simplifying the question when I express $f$ as a function of four variables?







multivariable-calculus optimization lagrange-multiplier






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 23 at 18:11









hephaes

1658




1658








  • 4




    When you have 2 constraints the associated system of equations is $nabla f = lambda nabla g_1 + mu nabla g_2$ rather than $nabla f = lambda nabla g_1$ AND $nabla f = mu g_2$
    – user25959
    Nov 23 at 18:22






  • 2




    See example here: mathonline.wikidot.com/…
    – user25959
    Nov 23 at 18:23






  • 1




    Also another way : Notice that $$- |x| ~ |y| leq langle x ,y rangle$$
    – Red shoes
    Nov 23 at 18:27






  • 1




    @Redshoes Probably it was his intent to prove that inequality with Lagrange multipliers
    – Federico
    Nov 23 at 18:29










  • @Federico If that would be orginal question, I would fix $y$ and just minimize $x.y$ over the constraint $|x|^2 = 1$. Then we have a mode with less variable and one constraint (only one Lagrange multiplier ). so much easier to solve.
    – Red shoes
    Nov 23 at 18:54














  • 4




    When you have 2 constraints the associated system of equations is $nabla f = lambda nabla g_1 + mu nabla g_2$ rather than $nabla f = lambda nabla g_1$ AND $nabla f = mu g_2$
    – user25959
    Nov 23 at 18:22






  • 2




    See example here: mathonline.wikidot.com/…
    – user25959
    Nov 23 at 18:23






  • 1




    Also another way : Notice that $$- |x| ~ |y| leq langle x ,y rangle$$
    – Red shoes
    Nov 23 at 18:27






  • 1




    @Redshoes Probably it was his intent to prove that inequality with Lagrange multipliers
    – Federico
    Nov 23 at 18:29










  • @Federico If that would be orginal question, I would fix $y$ and just minimize $x.y$ over the constraint $|x|^2 = 1$. Then we have a mode with less variable and one constraint (only one Lagrange multiplier ). so much easier to solve.
    – Red shoes
    Nov 23 at 18:54








4




4




When you have 2 constraints the associated system of equations is $nabla f = lambda nabla g_1 + mu nabla g_2$ rather than $nabla f = lambda nabla g_1$ AND $nabla f = mu g_2$
– user25959
Nov 23 at 18:22




When you have 2 constraints the associated system of equations is $nabla f = lambda nabla g_1 + mu nabla g_2$ rather than $nabla f = lambda nabla g_1$ AND $nabla f = mu g_2$
– user25959
Nov 23 at 18:22




2




2




See example here: mathonline.wikidot.com/…
– user25959
Nov 23 at 18:23




See example here: mathonline.wikidot.com/…
– user25959
Nov 23 at 18:23




1




1




Also another way : Notice that $$- |x| ~ |y| leq langle x ,y rangle$$
– Red shoes
Nov 23 at 18:27




Also another way : Notice that $$- |x| ~ |y| leq langle x ,y rangle$$
– Red shoes
Nov 23 at 18:27




1




1




@Redshoes Probably it was his intent to prove that inequality with Lagrange multipliers
– Federico
Nov 23 at 18:29




@Redshoes Probably it was his intent to prove that inequality with Lagrange multipliers
– Federico
Nov 23 at 18:29












@Federico If that would be orginal question, I would fix $y$ and just minimize $x.y$ over the constraint $|x|^2 = 1$. Then we have a mode with less variable and one constraint (only one Lagrange multiplier ). so much easier to solve.
– Red shoes
Nov 23 at 18:54




@Federico If that would be orginal question, I would fix $y$ and just minimize $x.y$ over the constraint $|x|^2 = 1$. Then we have a mode with less variable and one constraint (only one Lagrange multiplier ). so much easier to solve.
– Red shoes
Nov 23 at 18:54










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Let $f,g_1,g_2:mathbb R^{2d}tomathbb R$ be given by
$$
f(x,y)=xcdot y qquad g_1(x,y)=|x|^2 qquad g_2(x,y)=|y|^2.
$$

You want to minimize $f$ subject to $g_1=g_2=1$. Then
$$
nabla f(x,y) = (y,x) qquad nabla g_1(x,y) = (2x, 0) qquad nabla g_2(x,y) = (0, 2y).
$$

From Lagrange you get
$$
(y,x) = lambda_1(2x,0) + lambda_2(0,2y) = 2(lambda_1 x, lambda_2 y).
$$

From this you get that $x$ and $y$ bust be linearly dependent, hence $y=pm x$ because of the constraint. $y=-x$ is a global minimizer, $y=x$ is a global maximizer.






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',
    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%2f3010668%2fwhy-does-the-method-of-lagrange-multiplier-fail%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










    Let $f,g_1,g_2:mathbb R^{2d}tomathbb R$ be given by
    $$
    f(x,y)=xcdot y qquad g_1(x,y)=|x|^2 qquad g_2(x,y)=|y|^2.
    $$

    You want to minimize $f$ subject to $g_1=g_2=1$. Then
    $$
    nabla f(x,y) = (y,x) qquad nabla g_1(x,y) = (2x, 0) qquad nabla g_2(x,y) = (0, 2y).
    $$

    From Lagrange you get
    $$
    (y,x) = lambda_1(2x,0) + lambda_2(0,2y) = 2(lambda_1 x, lambda_2 y).
    $$

    From this you get that $x$ and $y$ bust be linearly dependent, hence $y=pm x$ because of the constraint. $y=-x$ is a global minimizer, $y=x$ is a global maximizer.






    share|cite|improve this answer

























      up vote
      1
      down vote



      accepted










      Let $f,g_1,g_2:mathbb R^{2d}tomathbb R$ be given by
      $$
      f(x,y)=xcdot y qquad g_1(x,y)=|x|^2 qquad g_2(x,y)=|y|^2.
      $$

      You want to minimize $f$ subject to $g_1=g_2=1$. Then
      $$
      nabla f(x,y) = (y,x) qquad nabla g_1(x,y) = (2x, 0) qquad nabla g_2(x,y) = (0, 2y).
      $$

      From Lagrange you get
      $$
      (y,x) = lambda_1(2x,0) + lambda_2(0,2y) = 2(lambda_1 x, lambda_2 y).
      $$

      From this you get that $x$ and $y$ bust be linearly dependent, hence $y=pm x$ because of the constraint. $y=-x$ is a global minimizer, $y=x$ is a global maximizer.






      share|cite|improve this answer























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        Let $f,g_1,g_2:mathbb R^{2d}tomathbb R$ be given by
        $$
        f(x,y)=xcdot y qquad g_1(x,y)=|x|^2 qquad g_2(x,y)=|y|^2.
        $$

        You want to minimize $f$ subject to $g_1=g_2=1$. Then
        $$
        nabla f(x,y) = (y,x) qquad nabla g_1(x,y) = (2x, 0) qquad nabla g_2(x,y) = (0, 2y).
        $$

        From Lagrange you get
        $$
        (y,x) = lambda_1(2x,0) + lambda_2(0,2y) = 2(lambda_1 x, lambda_2 y).
        $$

        From this you get that $x$ and $y$ bust be linearly dependent, hence $y=pm x$ because of the constraint. $y=-x$ is a global minimizer, $y=x$ is a global maximizer.






        share|cite|improve this answer












        Let $f,g_1,g_2:mathbb R^{2d}tomathbb R$ be given by
        $$
        f(x,y)=xcdot y qquad g_1(x,y)=|x|^2 qquad g_2(x,y)=|y|^2.
        $$

        You want to minimize $f$ subject to $g_1=g_2=1$. Then
        $$
        nabla f(x,y) = (y,x) qquad nabla g_1(x,y) = (2x, 0) qquad nabla g_2(x,y) = (0, 2y).
        $$

        From Lagrange you get
        $$
        (y,x) = lambda_1(2x,0) + lambda_2(0,2y) = 2(lambda_1 x, lambda_2 y).
        $$

        From this you get that $x$ and $y$ bust be linearly dependent, hence $y=pm x$ because of the constraint. $y=-x$ is a global minimizer, $y=x$ is a global maximizer.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Nov 23 at 18:28









        Federico

        4,184512




        4,184512






























            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%2f3010668%2fwhy-does-the-method-of-lagrange-multiplier-fail%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

            Ellipse (mathématiques)

            Quarter-circle Tiles

            Mont Emei