Theorem in section 2.3.2 of Boyd & Vandenberghe's Convex Optimization:
If $f:R^k \to R^n$ is an affine function and an set $ S \subseteq R^n$ is convex, the inverse image of $S$ under $f$ defined as $$f^{-1}(S)=\{\vec x|f(\vec x)\in S, x \in dom f\}$$ is convex.
$\text{My questions:1 How to prove the theorem? 2 I find an example: if}\ S'=\{(x,y,z)^T|x^2+y^2\le |z|,0\le |z| \lt \infty \} \text{, and if}\ f(\vec x)=[[1,0,0];[0,1,0]]\vec x(\vec x\in S'),\text{then } f(S')=S \text{ is convex. However the } S' \text{ is not convex. dose the example violate the theorem?}$