Let $S\subset \mathbb{R}^{n}\times \mathbb{R}$ and consider it’s projection onto $\mathbb{R}^n$, $S ={ x\in \mathbb{R}^n\mid (x, y)\in S, y\in \mathbb{R}}.$ Assuming $S$ is convex, prove that $S$ is convex.
My question is how does one go about proving the projection is convex. I know it seems trivial, but I keep losing marks for what I feel is the correct way to go about it. Thus I was wondering if someone could possibly give me an example of how I am supposed to do this. Thanks!