Suppose $u(x,y)$ is a concave and strictly increasing $\mathcal{C}^2$ function (think of a utility function from economics).
Define the one variable function $f(x)=u(x,e^r(K-x))$ for all $x\in [0,K]$, where $r,K\in\mathbb{R}$.
I want to show that $f$ has a maximum and that this maximum is unique.
I know that since $[0,K]$ is a compact set, $f([0,K])=\{ f(x)\in\mathbb{R}| x\in [0,K]\}$ is a closed and bounded set, thus $f$ has a maximum value in $[0,K]$.
My hypothesis is that $f$ is a concave function. If this is true, we can apply the fact that every maximum point of $f$ is a global maximum.
I also know, from the theory of concave functions, that because $u$ is a concave function of two variables $u''_{11},u''_{22}\leq 0$ and $u''_{11}u''_{22}-(u''_{12})^2\geq 0$. With this in mind, I have tried to show that $f''(x)\leq 0$.
Applying the chain rule to $f$, I want to show that
$$f''(x)=u''_{11}(x,e^r(K-x))-2e^ru''_{12}(x,e^r(K-x))+e^{2r}u''_{22}(x,e^r(K-x))$$
is less than or equal to $0$. I have tried without success.
Is there anything wrong in my reasoning? Is my approach bad? Any hints?