Show that a linear function is convex

Click For Summary

Discussion Overview

The discussion centers on the convexity of linear functions, particularly in the context of using the Hessian matrix to determine convexity properties. Participants explore the implications of the Hessian being the zero matrix and discuss related concepts such as positive and negative definiteness.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants suggest using the Hessian matrix to show convexity, noting that for linear functions, the Hessian is the zero matrix.
  • There is a question about whether the Hessian matrix is positive semi-definite, with a focus on the condition $x^T H x \ge 0$ for non-zero vectors.
  • One participant provides an example of a non-linear function and discusses its Hessian matrix, concluding that it is negative semi-definite.
  • Participants discuss that a zero Hessian matrix implies the function is neither positive definite nor negative definite, but is both positive semi-definite and negative semi-definite.
  • There is a query about whether this means the function is both concave and convex, to which others agree.
  • Terminology such as "flat" and "hyper-planar" is introduced in relation to the properties of linear functions.

Areas of Agreement / Disagreement

Participants generally agree that a linear function is both concave and convex due to the properties of its Hessian matrix, but there is some discussion about the implications of this classification, particularly regarding strict convexity and concavity.

Contextual Notes

Participants do not resolve the implications of a function being both concave and convex, nor do they clarify the terminology used in this context.

mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :o
To show that a two-variable function is convex, we can use the hessiam matrix and the determinants. But the function is linear the matrix is the zero matrix. What can I do in this case?
 
Physics news on Phys.org
Re: show that a linear function is convex

mathmari said:
Hey! :o
To show that a two-variable function is convex, we can use the hessiam matrix and the determinants. But the function is linear the matrix is the zero matrix. What can I do in this case?

Hi! :rolleyes:

Is the Hessian matrix positive semi-definite?
Or put otherwise, does the condition $x^T H x \ge 0$ hold for any non-zero vector $x$?
 
Re: show that a linear function is convex

I like Serena said:
Hi! :rolleyes:

Is the Hessian matrix positive semi-definite?
Or put otherwise, does the condition $x^T H x \ge 0$ hold for any non-zero vector $x$?
for example for the function $f=ln((1+x+y)^2)$, the hessian matrix is $ H=[-\frac{2}{(1+x+y)^2}, -\frac{2}{(1+x+y)^2}; -\frac{2}{(1+x+y)^2}, -\frac{2}{(1+x+y)^2}] $. The determinants of its subarrays are $D1=|-\frac{2}{(1+x+y)^2}|=-\frac{2}{(1+x+y)^2}<0$ and $D=|H|=0$. So the matrix is negative semi definite. If all determinants were <0 (not equal),then it would be negative definite. But if we have the linear function $x+2y-5$,the hessian matrix is the zero matrix...so all the determinants of the subarrays are equal to zero. So we cannot know if it is positive or negative definite, can we?
 
Re: show that a linear function is convex

mathmari said:
for example for the function $f=ln((1+x+y)^2)$, the hessian matrix is $ H=[-\frac{2}{(1+x+y)^2}, -\frac{2}{(1+x+y)^2}; -\frac{2}{(1+x+y)^2}, -\frac{2}{(1+x+y)^2}] $. The determinants of its subarrays are $D1=|-\frac{2}{(1+x+y)^2}|=-\frac{2}{(1+x+y)^2}<0$ and $D=|H|=0$. So the matrix is negative semi definite. If all determinants were <0 (not equal),then it would be negative definite.

Yep.
(Although you should leave out the absolute value symbols for $D1$. :eek:)

But if we have the linear function $x+2y-5$,the hessian matrix is the zero matrix...so all the determinants of the subarrays are equal to zero. So we cannot know if it is positive or negative definite, can we?

Positive definite requires $>0$, which is not the case.
Similarly negative definite requires $<0$, which is also not the case.

So if the hessian matrix is the zero matrix it is neither positive definite nor negative definite.
However, it is both positive semi-definite and negative semi-definite.
 
Re: show that a linear function is convex

I like Serena said:
However, it is both positive semi-definite and negative semi-definite.
so do we conlude that the function is both concave and convex??
 
Re: show that a linear function is convex

mathmari said:
so do we conlude that the function is both concave and convex??

Yes.
Note that it is neither strictly convex, nor strictly concave.
 
Re: show that a linear function is convex

I like Serena said:
Yes.
Note that it is neither strictly convex, nor strictly concave.

Ok! Thank you! :o
 
I believe the technical term here is "flat" (;)) (although "hyper-planar" has a nicer ring to it, n'est-ce pas?).
 
Deveno said:
I believe the technical term here is "flat" (;)) (although "hyper-planar" has a nicer ring to it, n'est-ce pas?).

Do you mean that this is the technical term that a function is both concave and convex?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
2
Views
1K
Replies
3
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K