I'm trying to solve this problem: Let $V$ be a real vector space with dimension $n$ and $S$ a subspace of $V$ with dimension $n-1$. Define an equivalence relation $\equiv$ on the set $V\setminus S$ by $u\equiv v$ if the line segment
$$L(u,v)=\{(1-t)u+tv: t\in [0,1]\}$$ satisfies that $L(u,v)\cap S=\emptyset$. Prove that $\equiv$ is an equivalence relation and it has exactly two equivalence classes.
I proved that $\equiv$ is reflexive and symmetric since for $u,v\in V\setminus S$ we have that $L(u,u)=\{u\}$ and $L(u,v)=L(v,u)$. But I couldn't prove that $\equiv$ is transitive. I saw with some examples in $\mathbb{R}^3$ using lines that the hypothesis of $\dim S=n-1$ is necessary for this but in the general case I don't know how to use this. And for the last part I think that for every $v\in V\setminus S$ the unique two equivalence classes are $[v]$ and $[-v]$. Could you please give me some suggestions for this? Thanks.
Let $\{e_1,\ldots,e_n\}$ be a basis of $V$ such that $\{e_1,\ldots,e_{n-1}\}\subset S$. For $x\in V$, let $x_k$ be the k-th component of $x$ in that basis. Then we have $V\setminus S = \{x\in V | x_n \neq 0\}$ and for $x,y\in V\setminus S$ we have $$x\equiv y \iff tx_n+(1-t)y_n\neq0 \text{ for all } t\in [0,1]$$ $$\iff (x_n\gt0\land y_n\gt0) \lor (x_n\lt0\land y_n\lt0) $$ In other words, $x\equiv y \iff $ the $e_n$ componnents of $x$ and $y$ have the same sign. That is clearly a reflexive, symmetric and transitive relation, and the equivalence classes are just the two sets determined by the sign of that component.