Problem: Prove that $\displaystyle f(x) = \log(\sum_{k=1}^n\exp(x^Tw_k))$ is convex.
My attempt: For $x,y \in D$ and $t \in (0,1)$ we have \begin{eqnarray} f(tx+(1-t)y) = \log(\sum_{k=1}^n\exp(tx^Tw_k)\cdot \exp((1-t)y^Tw_k)) \end{eqnarray}
Now, I am stuck here since I don't know there exists a inequality $$\log(a_1b_1 + a_2b_2+...+a_nb_n) \le \log(a_1b_1)+...+\log(a_nb_n).$$ If this inequality exists then the problem will be solved. Thanks for any help.