How to build homotopy from convex to a point?
for example I want to build homotopy from the real line $\Bbb R $ to a single point $x_0$ I know that every path in a closed set $[a,x_0]$ in $\Bbb R$ is from the equation $a\cdot t+x_0\cdot (1-t) $ when $ t \in [0,1] $ but how to do this for all the real line?
so this will imply that the corresponde fundemental group in a convex is the trivial one.
Let $C$ be a convex subset of some $\mathbb{R}^n$ with the subspace topology inherited from $\mathbb{R}^n$. I guess you are looking for a homotopy $H : C \times [0,1] \to C$ such that $H(x,0) = x$ and $H(x,1) = x_0$ for all $x \in C$ (where $x_0 \in C$ is any prescribed point).
Define
$$H^\ast : \mathbb{R}^n \times [0,1]\to \mathbb{R}^n, H^\ast(x,t) = (1-t)x + tx_0 .$$
$H^\ast$ is easily seen to be a continuous map such that $H^\ast(x,0) = x$ and $H^\ast(x,1) = x_0$ for all $x$ . Moreover, we have $H^\ast(x,t) \in C$ for all $(x,t) \in C \times [0,1]$ because $C$ is convex. This means that $H^\ast$ restricts to the desired $H$.