What is the convex conjugate of $f=\max_{i=1\dots n}x_i$ on $\mathbb{R}^n$?
My attempt: $$f^*(y)=\sup_{x\in\mathbb{R}^n}\left(y^Tx-f(x)\right)$$ $$f^*(y)=\sup_{x\in\mathbb{R}^n}\left(y^Tx-\max_{i=1\dots n}x_i\right)$$ let the max occur at index $t$ then, $$f^*(y)=\sup_{x\in\mathbb{R}^n}\left(y^Tx-x_t\right)=\sup_{x\in\mathbb{R}^n}\left(\sum_{i\ne t}^ny_ix_i+y_tx_t-x_t\right)$$
I am not sure how to proceed.
If $y_i < 0$ for some $i$, then you can choose $x_i$ to be very negative and let the other components of $x$ be zero to see that the supremum is $\infty$. If $y \geq 0$ and $\sum_i y_i > 1$, you can choose $x$ to have very positive components of equal magnitude to see that the supremum is $\infty$. If $y \geq 0$ and $\sum_i y_i < 1$, you can choose $x$ to have very negative components of equal magnitude to see that the supremum is $\infty$. Finally, if $y \geq 0$ and $\sum_i y_i = 1$, then $y^T x \leq \max_i x_i$ for all $x$ and so the supremum is at most $0$. So, $f^*$ is the indicator function of the set $S = \{ y \geq 0 \mid \sum_i y_i = 1 \}$.