Getting the final solution for the subgradient of function $F(x) := max 0, frac12(x^2 - 1)$

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have to find the subgradients of the following function.



$$F(x) := max left0, frac12(x^2 - 1)right$$



Analytically I can see subdifferentials at $x=-1$ is $nabla f(-1) in [-1 ,0] $ and at $x =1$ is $nabla f(1) in [0,1]$.



I am facing difficulties while obtaining these subdifferentials ($v$) using following inequality, $f(x) - f(bar x) ge langle v,x-bar x rangle, xin R$.



If I apply $bar x = -1$ what should be my $f(x)$?



Similarly what should be the $f(x)$ at $bar x =1$?



How can we obtain above-observed subdifferential using the definition of subdifferential? (above inequality)







share|cite|improve this question





















  • use max, langle and rangle
    – LinAlg
    Jul 30 at 15:25














up vote
0
down vote

favorite












I have to find the subgradients of the following function.



$$F(x) := max left0, frac12(x^2 - 1)right$$



Analytically I can see subdifferentials at $x=-1$ is $nabla f(-1) in [-1 ,0] $ and at $x =1$ is $nabla f(1) in [0,1]$.



I am facing difficulties while obtaining these subdifferentials ($v$) using following inequality, $f(x) - f(bar x) ge langle v,x-bar x rangle, xin R$.



If I apply $bar x = -1$ what should be my $f(x)$?



Similarly what should be the $f(x)$ at $bar x =1$?



How can we obtain above-observed subdifferential using the definition of subdifferential? (above inequality)







share|cite|improve this question





















  • use max, langle and rangle
    – LinAlg
    Jul 30 at 15:25












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have to find the subgradients of the following function.



$$F(x) := max left0, frac12(x^2 - 1)right$$



Analytically I can see subdifferentials at $x=-1$ is $nabla f(-1) in [-1 ,0] $ and at $x =1$ is $nabla f(1) in [0,1]$.



I am facing difficulties while obtaining these subdifferentials ($v$) using following inequality, $f(x) - f(bar x) ge langle v,x-bar x rangle, xin R$.



If I apply $bar x = -1$ what should be my $f(x)$?



Similarly what should be the $f(x)$ at $bar x =1$?



How can we obtain above-observed subdifferential using the definition of subdifferential? (above inequality)







share|cite|improve this question













I have to find the subgradients of the following function.



$$F(x) := max left0, frac12(x^2 - 1)right$$



Analytically I can see subdifferentials at $x=-1$ is $nabla f(-1) in [-1 ,0] $ and at $x =1$ is $nabla f(1) in [0,1]$.



I am facing difficulties while obtaining these subdifferentials ($v$) using following inequality, $f(x) - f(bar x) ge langle v,x-bar x rangle, xin R$.



If I apply $bar x = -1$ what should be my $f(x)$?



Similarly what should be the $f(x)$ at $bar x =1$?



How can we obtain above-observed subdifferential using the definition of subdifferential? (above inequality)









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 30 at 18:45









VHarisop

804421




804421









asked Jul 30 at 10:10









Malintha

1276




1276











  • use max, langle and rangle
    – LinAlg
    Jul 30 at 15:25
















  • use max, langle and rangle
    – LinAlg
    Jul 30 at 15:25















use max, langle and rangle
– LinAlg
Jul 30 at 15:25




use max, langle and rangle
– LinAlg
Jul 30 at 15:25










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










For $barx=-1$ you get:
$$f(x) - f(-1) geq langle v,x-(-1) rangle$$
$$f(x) geq langle v,x+1 rangle$$
Clearly $v=0$ is a subdifferential, because $f(x) geq 0$ for all $x in mathbbR$. But also $v=-1$ is a subdifferential because $f(x) geq -x-1$ for all $x in mathbbR$ (just draw a plot of $F$ and of $g(x) = -x-1$).






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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f2866857%2fgetting-the-final-solution-for-the-subgradient-of-function-fx-max-0-f%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    For $barx=-1$ you get:
    $$f(x) - f(-1) geq langle v,x-(-1) rangle$$
    $$f(x) geq langle v,x+1 rangle$$
    Clearly $v=0$ is a subdifferential, because $f(x) geq 0$ for all $x in mathbbR$. But also $v=-1$ is a subdifferential because $f(x) geq -x-1$ for all $x in mathbbR$ (just draw a plot of $F$ and of $g(x) = -x-1$).






    share|cite|improve this answer

























      up vote
      1
      down vote



      accepted










      For $barx=-1$ you get:
      $$f(x) - f(-1) geq langle v,x-(-1) rangle$$
      $$f(x) geq langle v,x+1 rangle$$
      Clearly $v=0$ is a subdifferential, because $f(x) geq 0$ for all $x in mathbbR$. But also $v=-1$ is a subdifferential because $f(x) geq -x-1$ for all $x in mathbbR$ (just draw a plot of $F$ and of $g(x) = -x-1$).






      share|cite|improve this answer























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        For $barx=-1$ you get:
        $$f(x) - f(-1) geq langle v,x-(-1) rangle$$
        $$f(x) geq langle v,x+1 rangle$$
        Clearly $v=0$ is a subdifferential, because $f(x) geq 0$ for all $x in mathbbR$. But also $v=-1$ is a subdifferential because $f(x) geq -x-1$ for all $x in mathbbR$ (just draw a plot of $F$ and of $g(x) = -x-1$).






        share|cite|improve this answer













        For $barx=-1$ you get:
        $$f(x) - f(-1) geq langle v,x-(-1) rangle$$
        $$f(x) geq langle v,x+1 rangle$$
        Clearly $v=0$ is a subdifferential, because $f(x) geq 0$ for all $x in mathbbR$. But also $v=-1$ is a subdifferential because $f(x) geq -x-1$ for all $x in mathbbR$ (just draw a plot of $F$ and of $g(x) = -x-1$).







        share|cite|improve this answer













        share|cite|improve this answer



        share|cite|improve this answer











        answered Jul 30 at 15:31









        LinAlg

        5,4111319




        5,4111319






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2866857%2fgetting-the-final-solution-for-the-subgradient-of-function-fx-max-0-f%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What is the equation of a 3D cone with generalised tilt?

            Color the edges and diagonals of a regular polygon

            Relationship between determinant of matrix and determinant of adjoint?