Let $a_i \in \mathbb{R}^n, f(x) = \ln\ (\sum_{i=1}^n e^{\langle a_i, x\rangle })$. Show $f(x)$ is convex.
I don't really know where to start on this. Is it safe to say $x \in \mathbb{R}^n$ then or is that not necessary for inner products? I'm also confused because I know $\ln$ is concave so I don't see how ln of the sum would be convex.
I was thinking I needed to show the Hessian is symmetric semi-positive definite, but I'm not sure that's even possible from the info that I am given to work with. I am thinking showing that for all $x,y$, $f(\frac{x+y}{2}) \leq \frac{f(x) + f(y)}{2}$ might be best, but I am getting tripped up on the details there as well. Thoughts?