I have following function $f(x_1,x_2\cdots x_K)$ $$f(x_1,x_2\cdots x_K)=\log\left(a+\sum_{i=1}^K\frac{b_i}{c+x_i}\right)$$ where $x_i$'s are all $\geq0$ and $a>0,b_i>0,>0$. I want to know how can we prove that the above function is jointly convex with respect to $(x_1,x_2\cdots x_K)$. I know we can use Hessian matrix to show this. So I have found following derivatives that are needed to construct the Hessian matrix $$\frac{\partial^2 f(x_1,x_2\cdots x_K)}{\partial x_i^2}=b_i(c+x_i)^{-3}\left(a+\sum_{i=1}^K\frac{b_i}{c+x_i}\right)^{-1}\left[2-b_i(c+x_i)^{-1}\left(a+\sum_{i=1}^K\frac{b_i}{c+x_i}\right)^{-1}\right]$$ and $$\frac{\partial^2 f(x_1,x_2\cdots x_K)}{\partial x_i \partial x_j}=-\frac{b_ib_j}{(c+x_i)^2(c+x_j)^2}\left(a+\sum_{i=1}^K\frac{b_i}{c+x_i}\right)^{-2}$$ Now if we can show that the resulting Hessian matrix is positive definite (or semi-definite) then we can say that the above function is convex. I do not know how to show that the resulting matrix has this property. Any help in this regard will be much appreciated. Thanks in advance.
How to prove that its a convex function?
384 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail AtThere are 2 best solutions below
On
I believe that in this case the more efficient way to prove is via the composition rules. It is known that $$ g(y_0, y_1, \dots, y_n) = \log\left( \sum_{j=0}^n e^{y_j} \right) $$ is convex. It is the well-known "log-sum-exp" function, and proving that it is convex is quite easy. It is also increasing in each argument.
It is also easy to show using the second derivative that each of the functions $\log(b_j / (c + x_j))$ is also convex on $x_j \geq 0$ for $b_j,c>0$. The function $\log(a)$ is convex since it is a constant. Thus, the composition: $$ f(x_1, \dots, x_n) = g(\log(a), \log(b_1 / (c + x_1)), \dots, \log(b_n / (c + x_n)) = \log\left( a + \sum_{j=1}^n \frac{b_j}{c+x_j} \right) $$ is also convex by the theorem regarding the composition of a convex and increasing function over a convex function.
let $m=(m_1,m_2,m_3..m_K)$ and $n=(n_1,n_2,...,n_K)$ If the function is convex then $$d_1f(m)+d_2f(n)\ge f(d_1m+d_2n)$$where $d_1+d_2=1$ This means we need to prove $$\log\left(\left(a+\sum_{i=1}^K\frac{b_i}{c+d_1m_i}\right)^{d_1}\left(a+\sum_{i=1}^K\frac{b_i}{c+(1-d_1)n_i}\right)^{d_2}\right)\ge\log\left(a+\sum_{i=1}^K\frac{b_i}{c+ d_1m_i+d_2n_i}\right)$$
I am not sure how to prove this inequality but this should be easier than proving that hessian is positive semi definite.
$$\left(a+\sum_{i=1}^K\frac{b_i}{c+d_1m_i}\right)^{d_1}\left(a+\sum_{i=1}^K\frac{b_i}{c+d_2n_i}\right)^{d_2}\ge\left(a+\sum_{i=1}^K\frac{b_i}{c+ d_1m_i+d_2n_i}\right)$$
From Frank Moses' Comment $$\left(a+\sum_{i=1}^K\frac{b_i}{c+ d_1m_i+d_2n_i}\right)=\left(a+\sum_{i=1}^K\frac{b_i}{c+ d_1m_i+d_2n_i}\right)^{d_1}\left(a+\sum_{i=1}^K\frac{b_i}{c+ d_1m_i+d_2n_i}\right)^{1-d_1}$$ It is clear that $c+d_1m_i \le c+d_1m_i+d_2n_i$ using this we can prove the inequality given.