I am following Prof. Boyd’s lecture on Convex optimization. In the second lecture it is mentioned that the eq. $y = \theta x_1 + (1 − \theta)x_2$ represents the points lying on a line joining $x_1$ and $x_2$. I am unable to find a proof for this.
I tried to solve this taking a generic point $x_3=a \cdot x1+b\cdot x_2$ and solving for $dist(x_1 \to x_3) + dist(x_3 \to x_2) = dist(x_1 \to x_2)$, to get $a+b=1$. But the equation gets complex.
Following are course links: http://stanford.edu/class/ee364a/lectures.html
If someone can give a proof for this or give a reference which gives the proof.