Let $C$ be a nonempty convex subset of $\mathbb{R}^{2}$ and $f,g:[a,b]\rightarrow \mathbb{R}$ be two continuous functions such that $\left(f(t),g(t)\right)\in C$ for all $t \in [a,b]$.
I want to prove that also $\left(\frac{1}{b-a}\int_{a}^{b} f(t)dt, \frac{1}{b-a}\int_{a}^{b} g(t)dt \right) \in C$.
I have tried to prove it by using the integral mean value theorem.
There exist $t_1,t_2 \in[a,b]$ such that $f(t_1)= \frac{1}{b-a} \int_{a}^{b} f(t)dt$ and $g(t_2)= \frac{1}{b-a}\int_{a}^{b} g(t)dt$.
But in general $t_1 \ne t_2$, so I cannot use the hypothesis that $\left(f(t),g(t)\right)\in C$ for all $t\in [a,b]$ in order to prove that also $\left(f(t_1),g(t_2)\right)=\left(\frac{1}{b-a}\int_{a}^{b} f(t)dt, \frac{1}{b-a}\int_{a}^{b} g(t)dt \right)\in C$.
How can I prove that property?
How is it possible to prove the same property in $\mathbb{R}^3$?
If we approximate the integral with a Riemann sum for a partition of $[a,b]$ in to $n$ equal intervals, then let point $p_n$ be the average of these points. Then $p_n\in C$. Also, at least one line through $p_n$ intersects the curve $(f,g)$ in at least two points $u_n,v_n$ with $p_n$ between $u_n$ and $v_n$ (why?).
If we let $n\to\infty$, we find that $p_n\to \frac1{b-a}\int_a^b$ so that the latter is $\in\overline C$. From the sequences $u_n, v_n$ we find a common convergent subsequence $u_{n_k}\to u$, $v_{n_k}\to v$ with both limits on the curve (this uses that $[a,b]$ is compact). Conclude that this makes $p\in C$.