Suppose there is a function $f (a,b) = \log \Big(e^{a - b} + e^{-a + b} \Big)$, we know that log-sum-exp is convex (related link), and I want to show whether $f(a,b)$ is also convex.
My answer (probability not correct) is that $f(a,b)$ is a convex function because $a-b$ and $-a+b$ are both affine, and they are composed in the convex log-sum-exp function, so $f(a,b)$ is also convex. Is my answer correct? If not, how to show whether $f(a,b)$ is convex or not?