Convex function with modulusRelation between Positive definite matrix and strictly convex functionComposition...

A running toilet that stops itself

3.5% Interest Student Loan or use all of my savings on Tuition?

How do you make a gun that shoots melee weapons and/or swords?

If nine coins are tossed, what is the probability that the number of heads is even?

Interpretation of linear regression interaction term plot

Why aren't there more Gauls like Obelix?

Was it really inappropriate to write a pull request for the company I interviewed with?

ESPP--any reason not to go all in?

Short story about cities being connected by a conveyor belt

How spaceships determine each other's mass in space?

Why is there an extra space when I type "ls" on the Desktop?

I've given my players a lot of magic items. Is it reasonable for me to give them harder encounters?

Rationale to prefer local variables over instance variables?

What does "rhumatis" mean?

How to recover against Snake as a heavyweight character?

Inorganic chemistry handbook with reaction lists

Why does a car's steering wheel get lighter with increasing speed

How can I portion out frozen cookie dough?

What exactly is the meaning of "fine wine"?

What is the purpose of a disclaimer like "this is not legal advice"?

What would be the most expensive material to an intergalactic society?

Averaging over columns while ignoring zero entries

A vote on the Brexit backstop

How would an energy-based "projectile" blow up a spaceship?



Convex function with modulus


Relation between Positive definite matrix and strictly convex functionComposition of non-monotonic convex functionConvex, non-negative function starting from 0Is there any way to make the following function convex?Is the function $f(x) = |x|$ convex?How to determine whether a function is concave, convex, quasi-concave and quasi-convexThe Hessian being positive semidefinite at a point means it's positive semidefinite around the point?Convex function parameterUnder what conditions is the following set convex?Approximation of arbitrary convex function













1












$begingroup$


Find the values of the real parameter $a$ such that the function
$f:[0,1] to R, f(x)=x^2-|x-a|$ is a convex function.
It is clear that if $a=0$ or $a=1$ the function will be the restriction of a quadratic function, thus convex.



And intutively f is not convex when $ a in (0,1)$ because in that case the function would have "a concavity" around the point $a$. but i would be interested in a rigorous approach in this case.










share|cite|improve this question









$endgroup$

















    1












    $begingroup$


    Find the values of the real parameter $a$ such that the function
    $f:[0,1] to R, f(x)=x^2-|x-a|$ is a convex function.
    It is clear that if $a=0$ or $a=1$ the function will be the restriction of a quadratic function, thus convex.



    And intutively f is not convex when $ a in (0,1)$ because in that case the function would have "a concavity" around the point $a$. but i would be interested in a rigorous approach in this case.










    share|cite|improve this question









    $endgroup$















      1












      1








      1





      $begingroup$


      Find the values of the real parameter $a$ such that the function
      $f:[0,1] to R, f(x)=x^2-|x-a|$ is a convex function.
      It is clear that if $a=0$ or $a=1$ the function will be the restriction of a quadratic function, thus convex.



      And intutively f is not convex when $ a in (0,1)$ because in that case the function would have "a concavity" around the point $a$. but i would be interested in a rigorous approach in this case.










      share|cite|improve this question









      $endgroup$




      Find the values of the real parameter $a$ such that the function
      $f:[0,1] to R, f(x)=x^2-|x-a|$ is a convex function.
      It is clear that if $a=0$ or $a=1$ the function will be the restriction of a quadratic function, thus convex.



      And intutively f is not convex when $ a in (0,1)$ because in that case the function would have "a concavity" around the point $a$. but i would be interested in a rigorous approach in this case.







      functions convex-analysis






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked yesterday









      amarius8312amarius8312

      1897




      1897






















          1 Answer
          1






          active

          oldest

          votes


















          2












          $begingroup$

          You said:




          It is clear that if $a=0$ or $a=1$ the function will be the restriction of a quadratic function, thus convex.




          That is correct, and holds even for $a le 0$ and for $a ge 1$.



          Then you said:




          And intutively f is not convex when $ a in (0,1)$ because in that case the function would have "a concavity" around the point $a$.




          For a rigorous approach we can compute
          $$
          frac 12 bigl( f(a-h) + f(a+h)bigr) - f(a)
          $$

          which should be $ge 0$ for a convex function. But if $0 < a < 1$ and $0 < h < min(a, 1-a)$ (so that all terms are defined) this expression evaluates to
          $$
          h^2-2h = (1-h)^2 - 1 < 0 , ,
          $$

          so that $f$ is not convex.



          Alternatively: If $f$ were convex then
          $$
          f(x) le (1-x)f(0) + x f(1) = (1-x)(-a) + xa = -a + 2ax
          $$

          for all $x in [0, 1]$, this is violated at $x=a$ with $f(a) = a^2$.



          Yet another approach for the case $0 < a < 1$ would be to observe that
          $$
          f'(x) = begin{cases}
          2x + 1 & text{for } 0 le x < a \
          2x - 1 & text{for } a < x le 1 \
          end{cases}
          $$

          which also demonstrates that $f$ is not convex on $[0, 1]$, because
          a convex function has a right (and left) derivative at every point, and the right (and left) derivative is monotonically increasing.






          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%2f3139322%2fconvex-function-with-modulus%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









            2












            $begingroup$

            You said:




            It is clear that if $a=0$ or $a=1$ the function will be the restriction of a quadratic function, thus convex.




            That is correct, and holds even for $a le 0$ and for $a ge 1$.



            Then you said:




            And intutively f is not convex when $ a in (0,1)$ because in that case the function would have "a concavity" around the point $a$.




            For a rigorous approach we can compute
            $$
            frac 12 bigl( f(a-h) + f(a+h)bigr) - f(a)
            $$

            which should be $ge 0$ for a convex function. But if $0 < a < 1$ and $0 < h < min(a, 1-a)$ (so that all terms are defined) this expression evaluates to
            $$
            h^2-2h = (1-h)^2 - 1 < 0 , ,
            $$

            so that $f$ is not convex.



            Alternatively: If $f$ were convex then
            $$
            f(x) le (1-x)f(0) + x f(1) = (1-x)(-a) + xa = -a + 2ax
            $$

            for all $x in [0, 1]$, this is violated at $x=a$ with $f(a) = a^2$.



            Yet another approach for the case $0 < a < 1$ would be to observe that
            $$
            f'(x) = begin{cases}
            2x + 1 & text{for } 0 le x < a \
            2x - 1 & text{for } a < x le 1 \
            end{cases}
            $$

            which also demonstrates that $f$ is not convex on $[0, 1]$, because
            a convex function has a right (and left) derivative at every point, and the right (and left) derivative is monotonically increasing.






            share|cite|improve this answer











            $endgroup$


















              2












              $begingroup$

              You said:




              It is clear that if $a=0$ or $a=1$ the function will be the restriction of a quadratic function, thus convex.




              That is correct, and holds even for $a le 0$ and for $a ge 1$.



              Then you said:




              And intutively f is not convex when $ a in (0,1)$ because in that case the function would have "a concavity" around the point $a$.




              For a rigorous approach we can compute
              $$
              frac 12 bigl( f(a-h) + f(a+h)bigr) - f(a)
              $$

              which should be $ge 0$ for a convex function. But if $0 < a < 1$ and $0 < h < min(a, 1-a)$ (so that all terms are defined) this expression evaluates to
              $$
              h^2-2h = (1-h)^2 - 1 < 0 , ,
              $$

              so that $f$ is not convex.



              Alternatively: If $f$ were convex then
              $$
              f(x) le (1-x)f(0) + x f(1) = (1-x)(-a) + xa = -a + 2ax
              $$

              for all $x in [0, 1]$, this is violated at $x=a$ with $f(a) = a^2$.



              Yet another approach for the case $0 < a < 1$ would be to observe that
              $$
              f'(x) = begin{cases}
              2x + 1 & text{for } 0 le x < a \
              2x - 1 & text{for } a < x le 1 \
              end{cases}
              $$

              which also demonstrates that $f$ is not convex on $[0, 1]$, because
              a convex function has a right (and left) derivative at every point, and the right (and left) derivative is monotonically increasing.






              share|cite|improve this answer











              $endgroup$
















                2












                2








                2





                $begingroup$

                You said:




                It is clear that if $a=0$ or $a=1$ the function will be the restriction of a quadratic function, thus convex.




                That is correct, and holds even for $a le 0$ and for $a ge 1$.



                Then you said:




                And intutively f is not convex when $ a in (0,1)$ because in that case the function would have "a concavity" around the point $a$.




                For a rigorous approach we can compute
                $$
                frac 12 bigl( f(a-h) + f(a+h)bigr) - f(a)
                $$

                which should be $ge 0$ for a convex function. But if $0 < a < 1$ and $0 < h < min(a, 1-a)$ (so that all terms are defined) this expression evaluates to
                $$
                h^2-2h = (1-h)^2 - 1 < 0 , ,
                $$

                so that $f$ is not convex.



                Alternatively: If $f$ were convex then
                $$
                f(x) le (1-x)f(0) + x f(1) = (1-x)(-a) + xa = -a + 2ax
                $$

                for all $x in [0, 1]$, this is violated at $x=a$ with $f(a) = a^2$.



                Yet another approach for the case $0 < a < 1$ would be to observe that
                $$
                f'(x) = begin{cases}
                2x + 1 & text{for } 0 le x < a \
                2x - 1 & text{for } a < x le 1 \
                end{cases}
                $$

                which also demonstrates that $f$ is not convex on $[0, 1]$, because
                a convex function has a right (and left) derivative at every point, and the right (and left) derivative is monotonically increasing.






                share|cite|improve this answer











                $endgroup$



                You said:




                It is clear that if $a=0$ or $a=1$ the function will be the restriction of a quadratic function, thus convex.




                That is correct, and holds even for $a le 0$ and for $a ge 1$.



                Then you said:




                And intutively f is not convex when $ a in (0,1)$ because in that case the function would have "a concavity" around the point $a$.




                For a rigorous approach we can compute
                $$
                frac 12 bigl( f(a-h) + f(a+h)bigr) - f(a)
                $$

                which should be $ge 0$ for a convex function. But if $0 < a < 1$ and $0 < h < min(a, 1-a)$ (so that all terms are defined) this expression evaluates to
                $$
                h^2-2h = (1-h)^2 - 1 < 0 , ,
                $$

                so that $f$ is not convex.



                Alternatively: If $f$ were convex then
                $$
                f(x) le (1-x)f(0) + x f(1) = (1-x)(-a) + xa = -a + 2ax
                $$

                for all $x in [0, 1]$, this is violated at $x=a$ with $f(a) = a^2$.



                Yet another approach for the case $0 < a < 1$ would be to observe that
                $$
                f'(x) = begin{cases}
                2x + 1 & text{for } 0 le x < a \
                2x - 1 & text{for } a < x le 1 \
                end{cases}
                $$

                which also demonstrates that $f$ is not convex on $[0, 1]$, because
                a convex function has a right (and left) derivative at every point, and the right (and left) derivative is monotonically increasing.







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited yesterday

























                answered yesterday









                Martin RMartin R

                29.7k33558




                29.7k33558






























                    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%2f3139322%2fconvex-function-with-modulus%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

                    Nidaros erkebispedøme

                    Birsay

                    Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?