How do I prove that $f(\vec{x}) = \vec{b}.\vec{x} - \log \left (1+e^{\vec{a}.\vec{x}} \right )$ is concave? where $\vec{a}$ and $\vec{b}$ are constant vectors.
My steps are as follows: The first term is a linear function in $\vec{x}$ so the first term is concave in $\vec{x}$.
If I can prove that the second term is concave in $\vec{x}$, then the sum of two concave functions is concave.
In order to show that the second term is concave, I have to show that $\log \left (1+e^{\vec{a}.\vec{x}} \right )$ is convex, right? How to do that?